python-babel
babel
Blog
Docs
Changelog
Blog
Docs
Changelog
Overview
Branches
Benchmarks
Runs
Performance History
Latest Results
Try to hold `_cache_lock` less in `load()`
faster-load
10 hours ago
Return Z before computing the sign and hours Per review: the zero-offset early return does not need the sign or the divmod, so hoist it above them. `seconds == 0` before the divmod is the same condition as `hours == 0 and seconds == 0` after it, since divmod splits the same total.
vineethsaivs:fix/timezone-gmt-negative-offset
10 hours ago
Add format_relative_datetime and get_relative_name
cldr-48-relative
11 hours ago
Merge pull request #1310 from python-babel/systemic-aliases Add support for other systemic aliases specified in CLDR `root.xml`
master
12 hours ago
Import aliases from CLDR data and use them better We had some manual fallbacks for missing field/unit lengths, and ignored many `<alias>`es in CLDR data entirely. This PR imports those aliases and uses them to resolve missing lengths, improving output in corner cases and fixes some rare KeyError crashes too. There's a quirk related to person-variant unit aliases, which are only expressed in CLDR for the short length. If one follows the spec to the letter, a request for a long/narrow person-variant unit will route through the short length and lose the requested length. We use the same "workaround" as ICU to preserve the length, by importing these as whole-unit aliases. Not totally spec- compliant, but the end result is simply better. Fixes #1076
systemic-aliases
12 hours ago
Import aliases from CLDR data and use them better We had some manual fallbacks for missing field/unit lengths, and ignored many `<alias>`es in CLDR data entirely. This PR imports those aliases and uses them to resolve missing lengths, improving output in corner cases and fixes some rare KeyError crashes too. There's a quirk related to person-variant unit aliases, which are only expressed in CLDR for the short length. If one follows the spec to the letter, a request for a long/narrow person-variant unit will route through the short length and lose the requested length. We use the same "workaround" as ICU to preserve the length, by importing these as whole-unit aliases. Not totally spec- compliant, but the end result is simply better. Fixes #1076
systemic-aliases
19 hours ago
Update messages' plural rules from CLDR 48.1 data This is also a partial revert of 80f1e49727e8c1235f9da26b60ff202b77a8fab6; the script from PR #1303 misguidedly removed some plural form definitions and had them incorrectly fall back to the global default.
cldr-48-plurals
24 hours ago
Add format_relative_datetime and get_relative_name
cldr-48-relative
2 days ago
Latest Branches
CodSpeed Performance Gauge
0%
Try to hold `_cache_lock` less in `load()`
#1264
4 months ago
317ab08
faster-load
CodSpeed Performance Gauge
0%
Fix get_timezone_gmt hour for negative fractional offsets
#1291
11 hours ago
8cef79c
vineethsaivs:fix/timezone-gmt-negative-offset
CodSpeed Performance Gauge
0%
Support CLDR 48 relative date formats
#1306
2 days ago
66e3df0
cldr-48-relative
© 2026 CodSpeed Technology
Home
Terms
Privacy
Docs
×
Advertisement