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
formatNumber
options
As in the title, it is not possible to omit options argument of formatNumber. There is an example in the readme indicating it should work:
i18n.t("points", { count: points, points: i18n.formatNumber(points), });
However, this actually leads to following error:
formatNumber.js:17 Uncaught TypeError: Cannot read properties of undefined (reading 'raise') at formatNumber (formatNumber.js:17:1) at I18n.formatNumber (I18n.js:274:28)
Passing empty object as options results in NaN being returned.
NaN
As in the example, and similar to how to Intl allows, I would expect that it's possible to omit the options param:
Intl
Intl.NumberFormat().format(14.45435)
The text was updated successfully, but these errors were encountered:
Fixed by 8b2ca74
Sorry, something went wrong.
No branches or pull requests
As in the title, it is not possible to omit
options
argument offormatNumber
.There is an example in the readme indicating it should work:
However, this actually leads to following error:
Passing empty object as options results in
NaN
being returned.What do you expect
As in the example, and similar to how to
Intl
allows, I would expect that it's possible to omit theoptions
param:Software:
The text was updated successfully, but these errors were encountered: