You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
import"@formatjs/intl-numberformat/polyfill-force";import"@formatjs/intl-numberformat/locale-data/zh-Hant";constformatter=newIntl.NumberFormat("zh-Hant",{notation: "compact",useGrouping: "always",});console.log(formatter.format(1000));// expected 1,000 but get 1000
Desktop
Node: v18
The text was updated successfully, but these errors were encountered:
Which package?
"@formatjs/intl-numberformat": "^8.10.3"
Describe the bug
The format number polyfill doesn't accept
useGrouping
asalways
when the notation iscompact
.To Reproduce
Codesandbox URL
https://codesandbox.io/p/devbox/epic-sun-jmty2q?embed=1&file=%2Findex.ts
Expected behavior
Desktop
The text was updated successfully, but these errors were encountered: