en-cy: fix logged out locale

This commit is contained in:
nightpool 2018-03-14 00:04:31 -04:00 committed by Andrew
parent 8513e1ba67
commit ce90b464ae

View file

@ -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