Skip to content

German localization for intword missing thousand, and some plurals #88

Description

@NavisGames

What did you do?

I am using humanize.intword to get a number to be a intword in german.

What did you expect to happen?

The Code should print something like 1.2 Millionen or 2 Tausend

What actually happened?

Everytime, it prints 1.2 Million, on other numbers that are in the thousands it doesnt print "tausend" it prints "thousand" like in the english.

A few Months or Weeks ago everything worked fine in german. i dont know why it doesnt work anymore

What versions are you using?

  • OS: Windows 10
  • Python: 3.10
  • Humanize: 4.40

Please include code that reproduces the issue.

The best reproductions are self-contained scripts with minimal dependencies.

import humanize
_t = humanize.i18n.activate("de_DE")

def intword(num):
    num = humanize.intword(num)
    num = num.replace(".0", "")
    return num

print(intword(1250000) # 1.2 Million should be 1.2 Millionen
print(intword(2000) # 2 thousand should be 2 Tausend

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions