From 40ecbe034899f2b16ad9f64beaa3a622dcdb1890 Mon Sep 17 00:00:00 2001 From: Pierre Mesure Date: Thu, 20 Feb 2020 11:09:55 +0100 Subject: [PATCH] Remove fallbacks = true from staging, preprod and prod --- config/environments/preproduction.rb | 6 +++--- config/environments/production.rb | 6 +++--- config/environments/staging.rb | 6 +++--- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/config/environments/preproduction.rb b/config/environments/preproduction.rb index 39c060f13..17103a67c 100644 --- a/config/environments/preproduction.rb +++ b/config/environments/preproduction.rb @@ -78,9 +78,9 @@ Rails.application.configure do config.action_mailer.smtp_settings = Rails.application.secrets.smtp_settings end - # Enable locale fallbacks for I18n (makes lookups for any locale fall back to - # the I18n.default_locale when a translation cannot be found). - config.i18n.fallbacks = true + # Disable locale fallbacks for I18n + # (prevents using fallback locales set in application.rb). + # config.i18n.fallbacks = false # Send deprecation notices to registered listeners. config.active_support.deprecation = :notify diff --git a/config/environments/production.rb b/config/environments/production.rb index 707331124..e0c2d5a75 100644 --- a/config/environments/production.rb +++ b/config/environments/production.rb @@ -79,9 +79,9 @@ Rails.application.configure do config.action_mailer.smtp_settings = Rails.application.secrets.smtp_settings end - # Enable locale fallbacks for I18n (makes lookups for any locale fall back to - # the I18n.default_locale when a translation cannot be found). - config.i18n.fallbacks = true + # Disable locale fallbacks for I18n + # (prevents using fallback locales set in application.rb). + # config.i18n.fallbacks = false # Send deprecation notices to registered listeners. config.active_support.deprecation = :notify diff --git a/config/environments/staging.rb b/config/environments/staging.rb index f47529f64..ec77bac43 100644 --- a/config/environments/staging.rb +++ b/config/environments/staging.rb @@ -78,9 +78,9 @@ Rails.application.configure do config.action_mailer.smtp_settings = Rails.application.secrets.smtp_settings end - # Enable locale fallbacks for I18n (makes lookups for any locale fall back to - # the I18n.default_locale when a translation cannot be found). - config.i18n.fallbacks = true + # Disable locale fallbacks for I18n + # (prevents using fallback locales set in application.rb). + # config.i18n.fallbacks = false # Send deprecation notices to registered listeners. config.active_support.deprecation = :notify