fix locale update for 2.3.x

This commit is contained in:
nightpool 2018-03-12 18:41:31 -04:00 committed by chr
parent f8d0ebbe4f
commit d81e1e5554
1 changed files with 4 additions and 1 deletions

View File

@ -83,8 +83,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')