Force an I18n reload to work around ordering problem
Unfortunately the rails-i18n-updater plugin adds the rails translations to the load path after rails has already loaded the translations, so we have to force a reload to get the translated versions.
This commit is contained in:
parent
07b834785f
commit
2cac555019
1 changed files with 4 additions and 0 deletions
|
@ -40,3 +40,7 @@ I18n::Backend::Simple.send(:include, I18n::Backend::PluralizationFallback)
|
|||
I18n.load_path << "#{Rails.root}/config/pluralizers.rb"
|
||||
|
||||
I18n::Backend::Simple.send(:include, I18n::Backend::Fallbacks)
|
||||
|
||||
Rails.configuration.after_initialize do
|
||||
I18n.reload!
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue