Diaoul / babelfish

BabelFish is a Python library to work with countries and languages
BSD 3-Clause "New" or "Revised" License
25 stars 13 forks source link

IETF region support #43

Open ratoaq2 opened 1 year ago

ratoaq2 commented 1 year ago

Is there any plan for babelfish to support IETF regions?

https://en.wikipedia.org/wiki/IETF_language_tag

An optional region subtag based on a two-letter country code from ISO 3166-1 alpha-2 (usually written in upper case), or a three-digit code from UN M.49 for geographical regions;

The main point here is to be able to handle es-419 (Spanish (Latin America)) which is a very common way to classify media tracks (in movies or series) for these Spanish languages

Diaoul commented 1 year ago

I did not know that this was a thing. Definitely something that could be in babelfish!

ratoaq2 commented 1 year ago

https://unstats.un.org/unsd/methodology/m49/overview/ contains the full list in CSV format for the UN M.49 codes