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
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 Millionenor2 TausendWhat 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?
Please include code that reproduces the issue.
The best reproductions are self-contained scripts with minimal dependencies.