| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
The Ukrainian locale added in python-pendulum#793 used 'ua', which is the ISO 3166 country code. The correct ISO 639-1 language code for Ukrainian is 'uk' (as used by CLDR, from which the locale data is generated). Rename the locale directory and fix its internal import accordingly. Closes python-pendulum#955
| Back | FazBrowse Home | New Git URL |
Closes #955
The Ukrainian locale added in #793 was registered under ua, which is the ISO 3166 country code. The correct ISO 639-1 language code for Ukrainian is uk — which is also the code CLDR uses (the source the locale data is generated from; there is no ua locale in CLDR).
This renames src/pendulum/locales/ua/ → src/pendulum/locales/uk/ and updates the locale's internal import.
Verified:
Note on backwards compatibility: set_locale("ua") / locale="ua" will no longer resolve, since ua was never a valid language code. As ua was only introduced in 3.2.0 I've done a straight rename, but if you'd prefer to keep ua as a temporary alias for one release I'm happy to add that — just say the word.
Changelog updated.