pull/381/head
Pete Matsyburka 1 year ago committed by Oleksandr Turchyn
parent d32b0e6d20
commit fd4bef1706

@ -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

Loading…
Cancel
Save