From 30f8e412bc0b43e62b46b99f2cbe3d0c7ac13d51 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Mon, 25 Mar 2013 12:50:18 +0000 Subject: [PATCH] Wait until after rails has initialise I18n to preload the resources --- config/initializers/i18n.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/config/initializers/i18n.rb b/config/initializers/i18n.rb index f3da8a127..c8bbdcce0 100644 --- a/config/initializers/i18n.rb +++ b/config/initializers/i18n.rb @@ -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 -- 2.39.5