This commit is contained in:
Pete Matsyburka
2024-10-06 22:49:48 +03:00
committed by Oleksandr Turchyn
parent d32b0e6d20
commit fd4bef1706
+1 -1
View File
@@ -62,7 +62,7 @@ class ApplicationController < ActionController::Base
end
def with_browser_locale(&)
return yield if I18n.locale != :'en-US'
return yield if I18n.locale != :'en-US' && I18n.locale != :en
locale = params[:lang].presence
locale ||= request.env['HTTP_ACCEPT_LANGUAGE'].to_s[BROWSER_LOCALE_REGEXP].to_s