diff options
author | Jan Provaznik <jprovaznik@gitlab.com> | 2018-11-21 12:17:26 +0100 |
---|---|---|
committer | Jan Provaznik <jprovaznik@gitlab.com> | 2018-11-21 12:17:26 +0100 |
commit | e423096b77f37acb446ac36d2cf79eaf632b2628 (patch) | |
tree | b5b0cc287688bd43078da7a0718cff4f97718632 /config/environments | |
parent | 8edce61654463e20c7265d41263fcf8dd62abfae (diff) | |
download | gitlab-ce-e423096b77f37acb446ac36d2cf79eaf632b2628.tar.gz |
Explicitly set locale fallbacksjprovazn-locale-fix
With a recent change in i18n, default language is not
included in fallbacks by default. This causes that
MissingTranslationData exception is raised both in
development and production mode.
This patch sets explicitly fallbacks language to english
which assures that english is used for missing translations.
Diffstat (limited to 'config/environments')
-rw-r--r-- | config/environments/production.rb | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/config/environments/production.rb b/config/environments/production.rb index 71195164e7a..49a4e873093 100644 --- a/config/environments/production.rb +++ b/config/environments/production.rb @@ -65,10 +65,6 @@ Rails.application.configure do # Enable threaded mode # config.threadsafe! unless $rails_rake_task - # Enable locale fallbacks for I18n (makes lookups for any locale fall back to - # the I18n.default_locale when a translation can not be found) - config.i18n.fallbacks = true - # Send deprecation notices to registered listeners config.active_support.deprecation = :notify |