python-babel / babel

The official repository for Babel, the Python Internationalization Library
http://babel.pocoo.org/
BSD 3-Clause "New" or "Revised" License
1.29k stars 433 forks source link

Aymara (ay) missing from LOCALE_ALIASES #993

Open irl opened 1 year ago

irl commented 1 year ago

With reference to:

https://github.com/python-babel/babel/blob/0ce196fccc024b1a65453ba6519954ada1dab6cb/babel/core.py#L106

I am working on a project that is including an Aymara translation, and have encountered an issue where babel does not know what to do with the language code ay. This language is an official language in both Bolivia and Peru.

I do not know the specifics of this language, but I believe that there are no country-specific variations. It is spoken across an area through multiple bordering countries. For this reason, "ay_AY" may be more appropriate than "ay_BO", but I'd definitely defer to someone more knowledgable on this.