diff --git a/src/humanize/i18n.py b/src/humanize/i18n.py index 6c95749..8c02923 100644 --- a/src/humanize/i18n.py +++ b/src/humanize/i18n.py @@ -15,6 +15,7 @@ # Mapping of locale to thousands separator _THOUSANDS_SEPARATOR = { + "de_DE": ".", "fr_FR": " ", } diff --git a/tests/test_i18n.py b/tests/test_i18n.py index 87ce3bb..3f219bf 100644 --- a/tests/test_i18n.py +++ b/tests/test_i18n.py @@ -42,6 +42,8 @@ def test_intcomma() -> None: assert humanize.intcomma(number) == "10,000,000" try: + humanize.i18n.activate("de_DE") + assert humanize.intcomma(number) == "10.000.000" humanize.i18n.activate("fr_FR") assert humanize.intcomma(number) == "10 000 000"