Module: I18n::Backend::Cache
- Defined in:
- lib/i18n/backend/cache.rb
Overview
TODO Should the cache be cleared if new translations are stored?
Instance Method Summary collapse
Instance Method Details
#translate(locale, key, options = {}) ⇒ Object
78 79 80 |
# File 'lib/i18n/backend/cache.rb', line 78 def translate(locale, key, = {}) I18n.perform_caching? ? fetch(cache_key(locale, key, )) { super } : super end |