You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The following code in Chrome, Firefox, etc, will return a currency symbol of 'US$':
new Intl.NumberFormat('en-CA', {
style: 'currency',
currencyDisplay: 'symbol',
currency: 'USD'
}).format(65421.45)
And it will simply use '$' if the currency is set to 'CAD':
new Intl.NumberFormat('en-CA', {
style: 'currency',
currencyDisplay: 'symbol',
currency: 'CAD'
}).format(65421.45)
But in Edge (and all versions of IE), both of these examples will return a currency symbol of '$'. It will not return US$ or CA$, no matter the locale or currency used. (Same goes for AUD, HKD, etc.)