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
|
config.i18n.default_locale = ENV['DEFAULT_LOCALE']&.to_sym
|
||||||
|
if config.i18n.available_locales.include?(config.i18n.default_locale)
|
||||||
unless config.i18n.available_locales.include?(config.i18n.default_locale)
|
config.i18n.fallbacks = [:en]
|
||||||
|
else
|
||||||
config.i18n.default_locale = :'en-CY'
|
config.i18n.default_locale = :'en-CY'
|
||||||
|
config.i18n.fallbacks = [:en]
|
||||||
end
|
end
|
||||||
|
|
||||||
# config.paths.add File.join('app', 'api'), glob: File.join('**', '*.rb')
|
# config.paths.add File.join('app', 'api'), glob: File.join('**', '*.rb')
|
||||||
|
|
Loading…
Reference in New Issue