Subject: | http_accept_langs does not recognize es-419 |
I found a situation where in some browsers (specifically Opera 26) when setting the preferred language to "Spanish (Latin America)" the language code passed in the Accept-Language header is "es-419", but the corresponding existing lexicon is not used.
Digging in the code I found that the reason is that language codes that contain digits are not recognized, causing I18N::LangTags::Detect::http_accept_langs to return an empty list.