Fallback to default language when a translation is missing for the current language
This commit is contained in:
parent
cf82a0a9c8
commit
9e27797092
1 changed files with 1 additions and 0 deletions
|
|
@ -5,3 +5,4 @@
|
|||
# The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.
|
||||
I18n.load_path += Dir[Rails.root.join('config', 'locales', '**', '*.{rb,yml}')]
|
||||
I18n.default_locale = DEFAULT_LANGUAGE
|
||||
I18n::Backend::Simple.send(:include, I18n::Backend::Fallbacks)
|
||||
|
|
|
|||
Loading…
Reference in a new issue