mirror of
https://github.com/glitch-soc/mastodon.git
synced 2025-01-11 10:12:56 -05:00
If DEFAULT_LOCALE is set, enforce it instead of HTTP request locale (#6817)
Fix #6784
This commit is contained in:
parent
721234230c
commit
39f27b6cf3
@ -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…
x
Reference in New Issue
Block a user