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
I think golang.org/x/text/language's Parse is based on Unicode Locale Data Markup Language (LDML)'s Unicode Language and Locale Identifiers which is based on BCP47 (but they are not strictly the same). E.g., Unicode Language and Locale Identifiers allow the underscore _ to be used as a separator.
Package version eg. v9, v10:
v10
Issue, Question or Enhancement:
When using
bcp47_language_tag
for validation, some non-BCP47 tags such as "eng
" or "en_US
" are passing as valid.isBCP47LanguageTag()
usesgolang.org/x/text/language
'sParse
and its documentation says:Code sample, to showcase or reproduce:
I expect both of these to fail, but they don't:
The text was updated successfully, but these errors were encountered: