Replies: 1 comment 5 replies
-
The formats you supply to |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi Community,
I'm trying to use Global Formatters to format default numbers, but for some reason, they don't seem to work as expected. Here's what I have so far:
Usage:
According to the Intl.NumberFormat documentation, decimal is supposed to be the default for all plain number formatting. However, in my setup, the
useGrouping: falseoption doesn’t seem to take effect - numbers are still being grouped.Has anyone run into a similar issue or can point out what might be going wrong with the global number formatters setup? Any guidance would be greatly appreciated.
P.S. If I use
{ "MILES_AWAY": "{distance, number, decimal} miles away" }in the translation file - it works well, but I would rather not to add a default (decimal) style to all number variables.Beta Was this translation helpful? Give feedback.
All reactions