Skip to content
Snippets Groups Projects
Unverified Commit 39f27b6c authored by Eugen Rochko's avatar Eugen Rochko Committed by GitHub
Browse files

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

Fix #6784
parent 72123423
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment