Intl.NumberFormat() - narrowSymbol issue in en-CA culture, USD currency #858
Labels
c: numbers
Component: numbers, currency, units
Data
Related to locale data
s: blocked
Status: the issue is blocked on upstream
Hello,
as per "narrowSymbol"
Use a narrow format symbol ("$100" rather than "US$100").
Issue: When we use en-CA culture, USD currency the result is not narrow symbol $100, but US$100 (which I would expect if I used "symbol".
Test code:
const number = 100;
console.log('USD, en-CA: ',
new Intl.NumberFormat('en-CA', {currencySign: "standard", currencyDisplay: 'narrowSymbol', style: 'currency', currency: 'USD' }).format(
number,
),
);
console.log('USD, en-US: ',
new Intl.NumberFormat('en-US', {currencySign: "standard", currencyDisplay: 'narrowSymbol', style: 'currency', currency: 'USD' }).format(
number,
),
);
Code output:
"USD, en-CA: " "US$100.00"
"USD, en-US: " "$100.00"
PS. it would be good to check also rest of the currencies.
The text was updated successfully, but these errors were encountered: