Intl not considering custom currency in formatCurrency
ID: 736695
Backlog
Published on 1/19/2023
•
Last update on 1/19/2023
Summary
In some store locales, the Intl formatter displays the wrong currency symbol, not considering the one passed through the culture
https://github.com/vtex-apps/format-currency/blob/master/react/formatCurrency.ts
Simulation
Set a trade policy locale and a custom currency and call the function formatCurrency from format-currency, it will not display properly because intl uses the locale to define (it happens more often in mobile)
Workaround
It is possible to implement custom price components with a different currency symbol.