Module: I18n::Backend::Memoize

Defined in:
lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/i18n-1.12.0/lib/i18n/backend/memoize.rb

Instance Method Summary collapse

Instance Method Details

#available_localesObject



15
16
17
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/i18n-1.12.0/lib/i18n/backend/memoize.rb', line 15

def available_locales
  @memoized_locales ||= super
end

#eager_load!Object



29
30
31
32
33
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/i18n-1.12.0/lib/i18n/backend/memoize.rb', line 29

def eager_load!
  memoized_lookup
  available_locales
  super
end

#reload!Object



24
25
26
27
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/i18n-1.12.0/lib/i18n/backend/memoize.rb', line 24

def reload!
  reset_memoizations!
  super
end

#store_translations(locale, data, options = EMPTY_HASH) ⇒ Object



19
20
21
22
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/i18n-1.12.0/lib/i18n/backend/memoize.rb', line 19

def store_translations(locale, data, options = EMPTY_HASH)
  reset_memoizations!(locale)
  super
end