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

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
@ClementParis016 ClementParis016 force-pushed the feat/format-extend-intl-options branch from 956893d to d455a13 Compare August 5, 2021 15:27
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.

1 participant