Skip to content

Commit

Permalink
add cache backend for i18n
Browse files Browse the repository at this point in the history
  • Loading branch information
lukebaker committed Jun 20, 2013
1 parent 923638f commit a2dc37c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions config/initializers/i18n.rb
@@ -1,2 +1,4 @@
I18n.backend.class.send(:include, I18n::Backend::Fallbacks)
I18n.backend.class.send(:include, I18n::Backend::Cache)
I18n.cache_store = ActiveSupport::Cache.lookup_store(:memory_store)
I18n.fallbacks.map('fr' => 'en')

0 comments on commit a2dc37c

Please sign in to comment.