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
1 changed files with 6 additions and 1 deletions

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