Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for Intl.NumberFormat notation option #1501

Closed
handsfelloff opened this issue Oct 15, 2019 · 1 comment
Closed

Support for Intl.NumberFormat notation option #1501

handsfelloff opened this issue Oct 15, 2019 · 1 comment

Comments

@handsfelloff
Copy link

handsfelloff commented Oct 15, 2019

Currently Intl.NumberFormat option notation is not supported.

i.e.

<FormattedNumber value={1234} style='decimal' notation="compact"/>

outputs: 1,234

rather than the desired notation form:

Intl.NumberFormat("en",{notation: "compact"}).format(1234)

outputs: 1.2k

The property notation above is being stripped since it is not included in number.ts NUMBER_FORMAT_OPTIONS

@longlho
Copy link
Member

longlho commented Oct 16, 2019 via email

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

No branches or pull requests

2 participants