]> git.openstreetmap.org Git - rails.git/blobdiff - config/initializers/i18n.rb
Merge pull request #35 from tomhughes/routing
[rails.git] / config / initializers / i18n.rb
index f3da8a1274855d3ebfe1535ff43468f826c58db2..2562b67a0dd8c472bf80889add63ff9d7de74679 100644 (file)
@@ -42,4 +42,8 @@ I18n::Backend::Simple.include(I18n::Backend::Fallbacks)
 
 I18n.fallbacks.map("no" => "nb")
 
-I18n.available_locales
+I18n.enforce_available_locales = false
+
+Rails.configuration.after_initialize do
+  I18n.available_locales
+end