Module: I18n::Backend::Cache

Defined in:
lib/i18n/backend/cache.rb

Overview

TODO Should the cache be cleared if new translations are stored?

Constant Summary

Instance Method Summary (collapse)

Instance Method Details

- (Object) translate(locale, key, options = {})



65
66
67
# File 'lib/i18n/backend/cache.rb', line 65

def translate(locale, key, options = {})
  I18n.perform_caching? ? fetch(cache_key(locale, key, options)) { super } : super
end