Skip to content

translate_without_moirai raises if translation is missing #67

@sislr

Description

@sislr
def self.translate_without_moirai(key, locale, **)
    raise "Original backend is not set" unless original_backend

    original_backend.translate(locale, key, **)
end

we should probably check whether the translation exists first, or rescue I18n::MissingTranslation

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions