diff options
author | Starfall <us@starfall.systems> | 2020-08-12 21:36:19 -0500 |
---|---|---|
committer | Starfall <us@starfall.systems> | 2020-08-12 21:36:19 -0500 |
commit | 6b5d9cb83b86e6c9721cb4b4b4cec6a473c824cb (patch) | |
tree | 9722f8694ea8f193cdd6d1c2f314f9dbe01ccc58 | |
parent | 7f4995774f3a4aaa5440d79faa827ef2bf4064ce (diff) |
Enable translation fallback in all environments
-rw-r--r-- | config/application.rb | 3 | ||||
-rw-r--r-- | 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 |