forked from cybrespace/mastodon
en-cy: fix logged out locale
This commit is contained in:
parent
e82de8035d
commit
98232134f8
|
@ -20,7 +20,12 @@ module Localized
|
|||
if ENV['DEFAULT_LOCALE'].present?
|
||||
I18n.default_locale
|
||||
else
|
||||
request_locale || I18n.default_locale
|
||||
case request_locale
|
||||
when /en\b/, nil
|
||||
I18n.default_locale
|
||||
else
|
||||
request_locale
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue