]> git.openstreetmap.org Git - rails.git/blobdiff - config/initializers/i18n.rb
Merge remote-tracking branch 'upstream/master' into routing-ui-tweaks-2
[rails.git] / config / initializers / i18n.rb
index 48d1ec976f334f7cc6841e99c7ea9f8521a03f38..2562b67a0dd8c472bf80889add63ff9d7de74679 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
+  I18n.available_locales
+end