From 6b5d9cb83b86e6c9721cb4b4b4cec6a473c824cb Mon Sep 17 00:00:00 2001 From: Starfall Date: Wed, 12 Aug 2020 21:36:19 -0500 Subject: Enable translation fallback in all environments --- config/application.rb | 3 +++ config/environments/production.rb | 4 ---- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/config/application.rb b/config/application.rb index ad6cf82d7..9c632fefc 100644 --- a/config/application.rb +++ b/config/application.rb @@ -122,6 +122,9 @@ module Mastodon config.i18n.default_locale = :en end + # fall back to English when a translation cannot be found + config.i18n.fallbacks = [:en] + # config.paths.add File.join('app', 'api'), glob: File.join('**', '*.rb') # config.autoload_paths += Dir[Rails.root.join('app', 'api', '*')] diff --git a/config/environments/production.rb b/config/environments/production.rb index 60219dae1..bdda469ba 100644 --- a/config/environments/production.rb +++ b/config/environments/production.rb @@ -58,10 +58,6 @@ Rails.application.configure do # Set this to true and configure the email server for immediate delivery to raise delivery errors. # config.action_mailer.raise_delivery_errors = false - # Enable locale fallbacks for I18n (makes lookups for any locale fall back to - # English when a translation cannot be found). - config.i18n.fallbacks = [:en] - # Send deprecation notices to registered listeners. config.active_support.deprecation = :notify -- cgit