fix locale update for 2.3.x

This commit is contained in:
nightpool 2018-03-12 18:41:31 -04:00 committed by Andrew
parent f367a8cd15
commit e0a0ef3f91
1 changed files with 4 additions and 2 deletions

View File

@ -88,9 +88,11 @@ module Mastodon
]
config.i18n.default_locale = ENV['DEFAULT_LOCALE']&.to_sym
unless config.i18n.available_locales.include?(config.i18n.default_locale)
if config.i18n.available_locales.include?(config.i18n.default_locale)
config.i18n.fallbacks = [:en]
else
config.i18n.default_locale = :'en-CY'
config.i18n.fallbacks = [:en]
end
# config.paths.add File.join('app', 'api'), glob: File.join('**', '*.rb')