-
Story
-
Resolution: Done
-
Normal
-
None
-
None
We're currently using the JavaScript features to format currencies. However, we may want to use react-intl instead?
Both approaches will format USD to 2 decimal places and JPY (yen) to 3 decimals. However, we're currently fixing to 2 decimals in the code below.
return fValue.toLocaleString(getLocale(),
{ style: 'currency', currency: unit || 'USD', minimumFractionDigits: fractionDigits, maximumFractionDigits: fractionDigits, });
We at least need to remove the maximum digits. And ensure formatting works for currencies other than USD.