Menu
Feedback
Start here
Tutorials
Developer portal

Known Issues
Support Rules
Troubleshooting

Frequently Asked Questions
Announcements
Known issues
Intl not considering custom currency in formatCurrency
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.

Contributors
2
Photo of the contributor
Photo of the contributor
+ 2 contributors
Contributors
2
Photo of the contributor
Photo of the contributor
+ 2 contributors
On this page
Still got questions?
Ask the community
Find solutions and share ideas in the VTEX community.
Join our community
Request support from VTEX
For personalized assistance, contact our experts.
Open a support ticket
GithubDeveloper portalCommunityFeedback