You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It is [nil] when lang is not fed and it is added to locales as Locale::Tag::Irregular: en. So localesalways becomes non-empty here and unless locales.size > 0 clause prevents using values from Accept-Language header.
This applies to lang from both query string and cookie.
locale 2.1.3
Gist
Locale::Middleware calls
Locale::Driver::CGI#set_request
with[request["lang"]]
as the first argument(query_lang
).locale/lib/locale/middleware.rb
Lines 30 to 33 in b59486e
It is
[nil]
whenlang
is not fed and it is added tolocales
asLocale::Tag::Irregular: en
. Solocales
always becomes non-empty here andunless locales.size > 0
clause prevents using values fromAccept-Language
header.This applies to
lang
from both query string and cookie.locale/lib/locale/driver/cgi.rb
Lines 45 to 60 in b59486e
The text was updated successfully, but these errors were encountered: