pydantic / pydantic-extra-types

Extra Pydantic types.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add support for ISO 639-1 codes

mdomke opened this issue · comments

In #141 support for ISO 639-3 and 639-5 language codes was added, but the still very common ISO 639-1 alpha2 format was left out? Is there a reason for this? Otherwise, I could quickly add the missing ISO639_1 type. What do you think?

Hello @mdomke 👋🏻

Thanks for opening this. Yes, with pleasure, you can open a PR and add the ISO639_1 support.

Erm... I think what I was looking for was already implemented in #153. In my opinion we can close this issue, because I second the suggestion to refactor the existing ISO639_3 and ISO639_5 classes into a LanguageAlpha3 class
#153 (comment) .