Fix some bugs for I18n fallbacks
This commit is contained in:
parent
9e27797092
commit
bbd0d35070
1 changed files with 3 additions and 0 deletions
|
|
@ -6,3 +6,6 @@
|
|||
I18n.load_path += Dir[Rails.root.join('config', 'locales', '**', '*.{rb,yml}')]
|
||||
I18n.default_locale = DEFAULT_LANGUAGE
|
||||
I18n::Backend::Simple.send(:include, I18n::Backend::Fallbacks)
|
||||
AVAILABLE_LANGUAGE_CODES.each do |c|
|
||||
I18n.fallbacks[c.to_sym] = [c.to_sym, DEFAULT_LANGUAGE.to_sym, :en]
|
||||
end
|
||||
Loading…
Reference in a new issue