]> git.ipfire.org Git - thirdparty/babel.git/commit
Add support for non-Latin numbering systems for number symbols (#1036)
authorTeo <33686434+kajte@users.noreply.github.com>
Tue, 28 Nov 2023 09:18:50 +0000 (11:18 +0200)
committerGitHub <noreply@github.com>
Tue, 28 Nov 2023 09:18:50 +0000 (11:18 +0200)
commitaca7663728e08e9d60b192b11fa6626a60974929
tree65feb399220abaca78c4634a29d50d57ac27fc3b
parentd4e65e25487b3e80e20898ea679db4db2fa1d696
Add support for non-Latin numbering systems for number symbols (#1036)

- Import number symbols for available numbering systems from cldr data
- Add default_numbering_system  and other_numbering_systems properties for Locale
- Add numbering_system argument to relevant number formatting fuctions and use number symbols based on the given numbering system

Refs https://github.com/python-babel/babel/issues/446

Co-authored-by: Aarni Koskela <akx@iki.fi>
babel/core.py
babel/numbers.py
babel/support.py
babel/units.py
scripts/import_cldr.py
tests/test_core.py
tests/test_numbers.py
tests/test_smoke.py
tests/test_support.py