Version 2.4.0
Version 2.4.0
New Features
Some of these changes might break your current code and/or tests.
- CLDR: CLDR 29 is now used instead of CLDR 28 (#405) (@akx)
- Messages: Add option 'add_location' for location line formatting (#438, #459) (@rrader, @Alxpy)
- Numbers: Allow full control of decimal behavior (#410) (@etanol)
Minor Improvements and bugfixes
- Documentation: Improve Date Fields descriptions (#450) (@ldwoolley)
- Documentation: Typo fixes and documentation improvements (#406, #412, #403, #440, #449, #463) (@zyegfryed, @adamchainz, @jwilk, @akx, @roramirez, @abhishekcs10)
- Messages: Default to UTF-8 source encoding instead of ISO-8859-1 (#399) (@asottile)
- Messages: Ensure messages are extracted in the order they were passed in (#424) (@ngrilly)
- Messages: Message extraction for JSX files is improved (#392, #396, #425) (@karloskar, @georgschoelly)
- Messages: PO file reading supports multi-line obsolete units (#429) (@mbirtwell)
- Messages: Python message extractor respects unicode_literals in future (#427) (@sublee)
- Messages: Roundtrip Language headers (#420) (@kruton)
- Messages: units before obsolete units are no longer erroneously marked obsolete (#452) (@mbirtwell)
- Numbers:
parse_pattern
now preserves the full original pattern (#414) (@jtwang) - Numbers: Fix float conversion in
extract_operands
(#435) (@akx) - Plurals: Fix plural forms for Czech and Slovak locales (#373) (@ykshatroff)
- Plurals: More plural form fixes based on Mozilla and CLDR references (#431) (@mshenfield)
Internal improvements
- Local times are constructed correctly in tests (#411) (@etanol)
- Miscellaneous small improvements (#437) (@scop)
- Regex flags are extracted from the regex strings (#462) (@singingwolfboy)
- The PO file reader is now a class and has seen some refactoring (#429, #452) (@mbirtwell)