]> git.openstreetmap.org Git - rails.git/commitdiff
Wait until after rails has initialise I18n to preload the resources
authorTom Hughes <tom@compton.nu>
Mon, 25 Mar 2013 12:50:18 +0000 (12:50 +0000)
committerTom Hughes <tom@compton.nu>
Mon, 1 Apr 2013 13:18:21 +0000 (14:18 +0100)
config/initializers/i18n.rb

index f3da8a1274855d3ebfe1535ff43468f826c58db2..c8bbdcce00d3675131fdd058fb9e4200f12c09e3 100644 (file)
@@ -42,4 +42,6 @@ I18n::Backend::Simple.include(I18n::Backend::Fallbacks)
 
 I18n.fallbacks.map("no" => "nb")
 
-I18n.available_locales
+Rails.configuration.after_initialize do |app|
+  I18n.available_locales
+end