I am using Intl.NumberFormat
and when I set the currency to CAD with an English locale, I am getting CA$5.00
. I thought the symbols would be something $ or Can$ or C$ or CAD
I just threw up a simple codepen https://codepen.io/jrock2004/pen/MMKqQq?editors=1010
const price = 5,
locale = 'en-US',
currency = 'CAD';
const formatter = new Intl.NumberFormat (locale, {
style: 'currency',
currency: currency,
});
const formattedPrice = formatter.format (price);
Am I doing something wrong or maybe nothing is wrong at all? Thanks