OnroerendErfgoed / language-tags

Dealing with IANA language tags in Python

Home Page:https://pypi.python.org/pypi/language-tags

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

language tag 'aa' is detected as invalid

WangJiannan opened this issue · comments

>>> from language_tags import tags
>>> tags.check('aa')
False
>>> tags.tag('aa').errors[0].message
"Missing language tag in 'aa'."

However, I find 'aa' is just the first subtag in language-subtag-registry. And online BCP 47 Validator tells that 'aa' is valid and well-formed language tag.

I had sent pull request to fix this issue: #28
(The CI failure is due to coverage decreased which results from code deletion)

Thank you. The bug only appeared with the language tag 'aa' because it had a index value of 0.
I will make a new release with the fix.