en-cy: fix logged out locale

This commit is contained in:
nightpool 2018-03-14 00:04:31 -04:00 committed by chr
parent e82de8035d
commit 98232134f8
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