forked from cybrespace/mastodon
fix locale update for 2.3.x
This commit is contained in:
parent
f367a8cd15
commit
e0a0ef3f91
|
@ -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')
|
||||
|
|
Loading…
Reference in New Issue