Force translations to be preloaded during startup
authorTom Hughes <tom@compton.nu>
Mon, 25 Mar 2013 10:49:58 +0000 (10:49 +0000)
committerTom Hughes <tom@compton.nu>
Mon, 1 Apr 2013 13:18:21 +0000 (14:18 +0100)
config/initializers/i18n.rb

index 48d1ec9..f3da8a1 100644 (file)
@@ -41,3 +41,5 @@ I18n::Backend::Simple.include(I18n::Backend::PluralizationFallback)
 I18n::Backend::Simple.include(I18n::Backend::Fallbacks)
 
 I18n.fallbacks.map("no" => "nb")
+
+I18n.available_locales