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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(format): extend native Intl options #58

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ClementParis016
Copy link
Member

@ClementParis016 ClementParis016 commented Aug 5, 2021

The goal of this PR is to make the formatting options of format() and unsafeFormat() extend from the native Intl.NumberFormat options and spread them so the consumer can use any of the native options, especially the ones that have been added in the spec recently (such as notation and compactDisplay), without requiring the library to be updated.

But I'm actually not sure this could work 馃
I don't know if the Intl.NumberFormat type is bundled in with the library and in which version (for ex. es5 doesn't have the same type than es2020).

Anyway, there is an issue with tests and I can't figure it out. It seems we pre-build the calls to Intl.NumberFormat and this somehow makes this fail now. Any help would be much appreciated 馃檹馃徎

@ClementParis016 ClementParis016 added the help wanted Extra attention is needed label Aug 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant