Skip to content

Add Intl.NumberFormat and update toLocaleString#2258

Merged
lahma merged 2 commits into
sebastienros:mainfrom
lahma:intl-pr6-number-format
Jan 24, 2026
Merged

Add Intl.NumberFormat and update toLocaleString#2258
lahma merged 2 commits into
sebastienros:mainfrom
lahma:intl-pr6-number-format

Conversation

@lahma

@lahma lahma commented Jan 24, 2026

Copy link
Copy Markdown
Collaborator

Implement locale-aware number formatting:

  • Styles: decimal, currency, percent, unit
  • Notations: standard, scientific, engineering, compact
  • Compact notation uses PluralRules for proper plural forms
  • NumberFormatInfo caching for performance
  • Update Number and BigInt toLocaleString methods

lahma and others added 2 commits January 24, 2026 17:12
Implement locale-aware number formatting:
- Styles: decimal, currency, percent, unit
- Notations: standard, scientific, engineering, compact
- Compact notation uses PluralRules for proper plural forms
- NumberFormatInfo caching for performance
- Update Number and BigInt toLocaleString methods

Register NumberFormat in IntlInstance.

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
@lahma
lahma enabled auto-merge (squash) January 24, 2026 15:16
@lahma
lahma merged commit acdb026 into sebastienros:main Jan 24, 2026
4 checks passed
@lahma
lahma deleted the intl-pr6-number-format branch January 24, 2026 15:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant