Module: I18n::Backend::InterpolationCompiler
- Defined in:
- lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/i18n-1.12.0/lib/i18n/backend/interpolation_compiler.rb
Defined Under Namespace
Modules: Compiler
Instance Method Summary collapse
- #interpolate(locale, string, values) ⇒ Object
- #store_translations(locale, data, options = EMPTY_HASH) ⇒ Object
Instance Method Details
#interpolate(locale, string, values) ⇒ Object
99 100 101 102 103 104 105 106 107 |
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/i18n-1.12.0/lib/i18n/backend/interpolation_compiler.rb', line 99 def interpolate(locale, string, values) if string.respond_to?(:i18n_interpolate) string.i18n_interpolate(values) elsif values super else string end end |
#store_translations(locale, data, options = EMPTY_HASH) ⇒ Object
109 110 111 112 |
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/i18n-1.12.0/lib/i18n/backend/interpolation_compiler.rb', line 109 def store_translations(locale, data, = EMPTY_HASH) compile_all_strings_in(data) super end |