Implement long/narrow -> short fallback in babel.units#1225
Implement long/narrow -> short fallback in babel.units#1225trillllian wants to merge 2 commits intopython-babel:masterfrom
Conversation
|
hi, i noticed 2.18.0 was released recently. is there any chance someone could take a look at this PR? it is really not a complicated fix in my opinion, and this bug causes quite a few strings in our application to go untranslated. (well, currently it's not much of a problem since we are using babel 2.12 which has a much older CLDR, but it would be nice to upgrade.) thanks for all the great work on babel regardless! |
akx
left a comment
There was a problem hiding this comment.
LGTM, one tiny performance note.
Sorry reviewing this had fallen through the cracks!
Also implemented fallback from the correct pluralization to "other", which was also missing. Fixes python-babel#1217.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #1225 +/- ##
==========================================
+ Coverage 92.04% 92.05% +0.01%
==========================================
Files 27 27
Lines 4715 4721 +6
==========================================
+ Hits 4340 4346 +6
Misses 375 375
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Co-authored-by: Aarni Koskela <akx@iki.fi>
Also implemented fallback from the correct pluralization to "other", which was also missing.
Fixes #1217.