Menu
Feedback
Start here

Known issues

Known issues
Intl not considering custom currency in formatCurrency
Store Framework
ID: 736695
Backlog
Published on1/19/2023
Last updated on1/19/2023
1 min read

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
1
Photo of the contributor
+ 1 contributors
Was this helpful?
Yes
No
Suggest Edits (GitHub)
Contributors
1
Photo of the contributor
+ 1 contributors
On this page
Still got questions?
Ask the community
Find solutions and share ideas in the VTEX Community
Join our community
Request VTEX support
For personalized assistance, contact our experts
Open a support ticket
GitHubDeveloper PortalCommunityFeedback