* Python 3.6 is no longer supported (:gh:`919`) - Aarni Koskela
* The `get_next_timezone_transition` function is no more (:gh:`958`) - Aarni Koskela
New features
* CLDR: Babel now uses CLDR 42 (:gh:`951`) - Aarni Koskela
* Dates: `pytz` is now optional; Babel will prefer it but will use `zoneinfo` when available. (:gh:`940`) - @ds-cbo
* General: Babel now ships type annotations, thanks to Jonah Lawrence's work in multiple PRs.
* Locales: @modifiers are now retained when parsing locales (:gh:`947`) - martin f. krafft
* Messages: JavaScript template string expression extraction is now smarter. (:gh:`939`) - Johannes Wilm
* Numbers: NaN and Infinity are now better supported (:gh:`955`) - Jonah Lawrence
* Numbers: Short compact currency formats are now supported (:gh:`926`) - Jonah Lawrence
* Numbers: There's now a `Format.compact_decimal` utility function. (:gh:`921`) - Jonah Lawrence
Bugfixes
~~~~~~~~
* Dates: The cache for parsed datetime patterns is now bounded (:gh:`967`) - Aarni Koskela
* Messages: Fuzzy candidate matching accuracy is improved (:gh:`970`) - Jean Abou Samra
* Numbers: Compact singular formats and patterns with no numbers work correctly (:gh:`930`, :gh:`932`) - Jonah Lawrence, Jun Omae
Improvements & cleanup
Dates: babel.dates.UTC is now an alias for datetime.timezone.utc (:gh:957) - Aarni Koskela
Dates: babel.localtime was slightly cleaned up. (:gh:952) - Aarni Koskela
Documentation: Documentation was improved by Maciej Olko, Jonah Lawrence, lilinjie, and Aarni Koskela.
Infrastructure: Babel is now being linted with pre-commit and ruff. - Aarni Koskela
Version 2.11.0
Upcoming deprecation
* This version, Babel 2.11, is the last version of Babel to support Python 3.6.
Babel 2.12 will require Python 3.7 or newer.
Improvements
~~~~~~~~~~~~
* Support for hex escapes in JavaScript string literals :gh:`877` - Przemyslaw Wegrzyn
* Add support for formatting decimals in compact form :gh:`909` - Jonah Lawrence
</tr></table>
</code></pre>
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="https://github.com/python-babel/babel/commit/f5bb5bffdbc7923bc0297b99fd9dc2cb69afd6e7"><code>f5bb5bf</code></a> Become 2.12.0</li>
<li><a href="https://github.com/python-babel/babel/commit/d597370bfcaa8c7421ec5639ecda7b55467167dc"><code>d597370</code></a> Tox: also test with pytz installed (<a href="https://github-redirect.dependabot.com/python-babel/babel/issues/974">#974</a>)</li>
<li><a href="https://github.com/python-babel/babel/commit/373a52f0425d0af1e578e8562a8db93fc3a02488"><code>373a52f</code></a> Renovate CI tools a bit (<a href="https://github-redirect.dependabot.com/python-babel/babel/issues/972">#972</a>)</li>
<li><a href="https://github.com/python-babel/babel/commit/c76f1d4bc574c4885b7a1afa90da3ca5026153ec"><code>c76f1d4</code></a> Merge pull request <a href="https://github-redirect.dependabot.com/python-babel/babel/issues/970">#970</a> from jeanas/autojunk</li>
<li><a href="https://github.com/python-babel/babel/commit/c8b7ac5b7ae1428aa6315abb6b90af0c03ab4e30"><code>c8b7ac5</code></a> Turn off difflib "autojunk" heuristic in fuzzy matching</li>
<li><a href="https://github.com/python-babel/babel/commit/63bb71a5acd0d49a2ceee15098485bc34b0e8864"><code>63bb71a</code></a> In fuzzy matching, also .lower().strip() fuzzy candidates</li>
<li><a href="https://github.com/python-babel/babel/commit/08af5e2bab184c1b5d357ebde8c0efdbe6288e2c"><code>08af5e2</code></a> Replace babel.localedata.locale_identifiers cache with LRU cache</li>
<li><a href="https://github.com/python-babel/babel/commit/221c937af65e6691a0958ec9bbc29a9bbbd77383"><code>221c937</code></a> Replace babel.dates._pattern_cache with an LRU cache</li>
<li><a href="https://github.com/python-babel/babel/commit/14e7c00eef2592823256c833a9180f374c77f7d4"><code>14e7c00</code></a> Merge pull request <a href="https://github-redirect.dependabot.com/python-babel/babel/issues/966">#966</a> from DenverCoderOne/number-type-improvements</li>
<li><a href="https://github.com/python-babel/babel/commit/053c242d2943adbc2d2cc90f41eb8c48383fd895"><code>053c242</code></a> Type fixes from 961</li>
<li>Additional commits viewable in <a href="https://github.com/python-babel/babel/compare/v2.10.3...v2.12.0">compare view</a></li>
</ul>
</details>
<br />
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`.
[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)
---
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Updates the requirements on babel to permit the latest version.
Release notes
Sourced from babel's releases.
... (truncated)
Changelog
Sourced from babel's changelog.