| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
'ua' is the ISO 3166 country code for Ukraine, not a language code.
The correct ISO 639 language code for Ukrainian is 'uk', which is what
locale.getlocale() and Accept-Language headers actually report (e.g.
'uk_UA'). Locale.load('uk') previously raised ValueError.
Rename the locales/ua package to locales/uk and add an alias table in
Locale.load() so the old 'ua' code keeps resolving to the same
translations for backwards compatibility.
Fixes python-pendulum#955
| Back | FazBrowse Home | New Git URL |
Summary
ua is an ISO 3166 country code (Ukraine), not the ISO 639 language code for Ukrainian, which is uk. This mismatch means:
Fix
Test plan
Fixes #955