Closed xhluca closed 2 years ago
Might also add ISO country codes so we'd be able to cover regional variants (e.g. "fr_CA" vs "fr_FR"). Heres the downloadable version
Looks like this project covers pretty much what I had in mind already: https://github.com/LBeaudoux/iso639
Might be worth considering ISO-639-1, ISO-639 Macro. This would have the added benefit of mapping endonyms as well, e.g.
dlt.endonym.get("日本語") -> "ja"
which would be equivalent todlt.lang.JAPANESE -> "ja"
or something like that.Some useful links: