Merge branch 'master' into overpass
[rails.git] / config / initializers / i18n.rb
index 48d1ec976f334f7cc6841e99c7ea9f8521a03f38..156eea4ecad2d8a1992f30d99970d1eb3166bee6 100644 (file)
@@ -41,3 +41,9 @@ I18n::Backend::Simple.include(I18n::Backend::PluralizationFallback)
 I18n::Backend::Simple.include(I18n::Backend::Fallbacks)
 
 I18n.fallbacks.map("no" => "nb")
+
+I18n.enforce_available_locales = false
+
+Rails.configuration.after_initialize do |app|
+  I18n.available_locales
+end