FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Add locale support for decimal separator in `intword` by hugovk · Pull Request #287 · python-humanize/humanize · GitHub

Add locale support for decimal separator in intword - #287

Merged
hugovk merged 1 commit into
python-humanize:mainfrom
hugovk:intword-decimal-sep
Dec 20, 2025
Merged

Add locale support for decimal separator in intword#287
hugovk merged 1 commit into
python-humanize:mainfrom
hugovk:intword-decimal-sep

Conversation

hugovk commented Dec 20, 2025

Copy link
Copy Markdown
Member

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 added the changelog: Added For new features label Dec 20, 2025

codecov Bot commented Dec 20, 2025
edited
Loading

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 99.51%. Comparing base (3dca143) to head (7175184).
⚠️ Report is 24 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 enabled auto-merge December 20, 2025 16:07
hugovk merged commit e87f2e2 into python-humanize:main Dec 20, 2025
44 checks passed
hugovk deleted the intword-decimal-sep branch December 20, 2025 16:07
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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


Back | FazBrowse Home | New Git URL