This change prevents parseLocaleIntoCodes() from matching in the middle of the locale identifier and adds support for three-letter ISO 639-3 language codes. For example, spa-ES (Spanish in Spain) was being parsed as the bogus language code sp, ignoring the country code.
This change prevents
parseLocaleIntoCodes()
from matching in the middle of the locale identifier and adds support for three-letter ISO 639-3 language codes. For example,spa-ES
(Spanish in Spain) was being parsed as the bogus language codesp
, ignoring the country code./cc @bsudekum