Module: I18n::Backend::Fast
- Includes:
- Links
- Defined in:
- lib/active_support/vendor/i18n-0.3.7/i18n/backend/fast.rb
Instance Method Summary collapse
- #flattened_translations ⇒ Object
- #init_translations ⇒ Object
- #merge_translations(locale, data, options = {}) ⇒ Object
- #reset_flattened_translations! ⇒ Object
Instance Method Details
#flattened_translations ⇒ Object
21 22 23 |
# File 'lib/active_support/vendor/i18n-0.3.7/i18n/backend/fast.rb', line 21 def flattened_translations @flattened_translations ||= flatten_translations(translations) end |
#init_translations ⇒ Object
30 31 32 33 |
# File 'lib/active_support/vendor/i18n-0.3.7/i18n/backend/fast.rb', line 30 def init_translations super reset_flattened_translations! end |
#merge_translations(locale, data, options = {}) ⇒ Object
25 26 27 28 |
# File 'lib/active_support/vendor/i18n-0.3.7/i18n/backend/fast.rb', line 25 def merge_translations(locale, data, = {}) super reset_flattened_translations! end |
#reset_flattened_translations! ⇒ Object
17 18 19 |
# File 'lib/active_support/vendor/i18n-0.3.7/i18n/backend/fast.rb', line 17 def reset_flattened_translations! @flattened_translations = nil end |