forked from cybrespace/mastodon
en-cy: fix logged out locale
This commit is contained in:
parent
8513e1ba67
commit
ce90b464ae
|
@ -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