Skip to content

Conversation

@hugovk
Copy link
Member

@hugovk hugovk commented Dec 20, 2025

Fixes #93.

import humanize
_t = humanize.i18n.activate("it_IT")
print(humanize.thousands_separator())
print(humanize.decimal_separator())
print(humanize.intcomma(1234559.123))
print(humanize.intword(1234559.123))

Before:

.
,
1.234.559,123
1,2 milioni

After:

.
,
1.234.559,123
1.2 milioni

@hugovk hugovk added the changelog: Added For new features label Dec 20, 2025
@codecov
Copy link

codecov bot commented Dec 20, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 99.51%. Comparing base (3dca143) to head (7175184).
⚠️ Report is 6 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #287   +/-   ##
=======================================
  Coverage   99.51%   99.51%           
=======================================
  Files          11       11           
  Lines         829      831    +2     
=======================================
+ Hits          825      827    +2     
  Misses          4        4           
Flag Coverage Δ
macos-latest 97.83% <100.00%> (+<0.01%) ⬆️
ubuntu-latest 97.83% <100.00%> (+<0.01%) ⬆️
windows-latest 95.90% <100.00%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@hugovk hugovk enabled auto-merge December 20, 2025 16:07
@hugovk hugovk merged commit e87f2e2 into python-humanize:main Dec 20, 2025
44 checks passed
@hugovk hugovk deleted the intword-decimal-sep branch December 20, 2025 16:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

changelog: Added For new features

Projects

None yet

Development

Successfully merging this pull request may close these issues.

How to set thousands and decimal separators to intword?

1 participant