updated config to fallback to english

custom
ava fox 4 months ago
parent b2d260b884
commit 19788f7e8f
  1. 12
      config/application.rb

@ -47,6 +47,7 @@ module Mastodon
config.i18n.available_locales = [
:'en-FOX',
:en,
:af,
:ar,
:ast,
:bg,
@ -59,7 +60,6 @@ module Mastodon
:da,
:de,
:el,
:en,
:eo,
:es,
:'es-AR',
@ -118,10 +118,12 @@ module Mastodon
:'zh-TW',
]
config.i18n.default_locale = :'en-FOX'
unless config.i18n.available_locales.include?(config.i18n.default_locale)
config.i18n.default_locale = :en
config.i18n.default_locale = ENV['DEFAULT_LOCALE']&.to_sym
if config.i18n.available_locales.include?(config.i18n.default_locale)
config.i18n.fallbacks = [:en]
else
config.i18n.default_locale = :'en-FOX'
config.i18n.fallbacks = [:en]
end
# config.paths.add File.join('app', 'api'), glob: File.join('**', '*.rb')

Loading…
Cancel
Save