Module: I18n
- Defined in:
- lib/i18n/backend/moirai.rb,
lib/i18n/extensions/i18n.rb
Defined Under Namespace
Modules: Backend
Class Attribute Summary collapse
-
.original_backend ⇒ Object
Returns the value of attribute original_backend.
Class Method Summary collapse
Class Attribute Details
.original_backend ⇒ Object
Returns the value of attribute original_backend.
5 6 7 |
# File 'lib/i18n/extensions/i18n.rb', line 5 def original_backend @original_backend end |
Class Method Details
.translate_without_moirai(key, locale) ⇒ Object
8 9 10 11 12 13 14 15 16 |
# File 'lib/i18n/extensions/i18n.rb', line 8 def self.translate_without_moirai(key, locale, **) raise "Original backend is not set" unless original_backend begin original_backend.translate(locale, key, **) rescue nil end end |