If DEFAULT_LOCALE is set, enforce it instead of HTTP request locale (#6817)

Fix #6784
th-downstream
Eugen Rochko 7 years ago committed by GitHub
parent cabb197337
commit 77badbc85a

@ -17,7 +17,11 @@ module Localized
end
def default_locale
request_locale || I18n.default_locale
if ENV['DEFAULT_LOCALE'].present?
I18n.default_locale
else
request_locale || I18n.default_locale
end
end
def request_locale

Loading…
Cancel
Save