-
-
Notifications
You must be signed in to change notification settings - Fork 210
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
Add support for number range formatting #540
Comments
Thanks for the feature request @vimtor! I think However, we rely on polyfills, so in regard to your question about Node.js 18 support, you'd have to polyfill the API anyway. Would that work for you? |
Yes, @amannn! That would be a great addition :) Regarding the polyfill, I assume the polyfill will be included with the library, right? If that is the case, it would work 100% |
Would you be interested in contributing this feature? :) |
Yes! I would love to contribute to this feature. Would it be better to wait until the RSC integration is merged, right? |
Great to hear, I'm fine either way! You can either:
I hope to stabilize the RSC integration in the next few weeks, so there shouldn't be much difference practically. |
Superseded by #774. We can still add this if there's need for this functionality. |
Is your feature request related to a problem? Please describe.
I want to format a range of numbers using the existing number range format API:
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/NumberFormat/formatRange
Describe the solution you'd like
Either an option to the
.number
method in theFormatter
object or a newnumberRange
method.Describe alternatives you've considered
I've considered using the API directly, but it is only supported in Node.js 19. The latest version available in Vercel is Node.js 18.
The text was updated successfully, but these errors were encountered: