Wait until after rails has initialise I18n to preload the resources
This commit is contained in:
parent
652b09b4d1
commit
30f8e412bc
1 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue