We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I think we should throw RangeError when either of the inputs to formatRange() is negative.
new Intl.NumberFormat().formatRange(-5, -3); // RangeError
CLDR's number range data is very limited and does not cover this case in a cohesive way. Better to forbid it, and we can add it later if we need to.
The text was updated successfully, but these errors were encountered:
Possible use cases:
Sorry, something went wrong.
2020-10-08: We'll allow negative numbers. Adopt current behavior for negative plurals as well (always return "other").
2020-10-08 discussion: https://github.com/tc39/ecma402/blob/master/meetings/notes-2020-10-08.md#range-with-negative-values-11
8d8e9a6
Successfully merging a pull request may close this issue.
I think we should throw RangeError when either of the inputs to formatRange() is negative.
CLDR's number range data is very limited and does not cover this case in a cohesive way. Better to forbid it, and we can add it later if we need to.
The text was updated successfully, but these errors were encountered: