-
Notifications
You must be signed in to change notification settings - Fork 4.1k
Closed
Description
Description
The currency symbol and number formatting need to handle i18n.
Use Intl.NumberFormat to enable language-sensitive number formatting.
Locale will need to be retrieved, code example.
A product-price-currency entry will need to be specified in the config to display the correct currency symbol:
product-price: 100,
product-price-currency: ‘USD’
Since the currency symbol's position is dynamic it will need to be the same size as the number.
cc @newmuis who may have more context on i18n.
Alternatives Considered
product-price as a string that includes currency symbol and number formatting.
This makes validation and number formatting complex.
Additional Context
We do not want to support currency conversion - that would require a request to an API.
No response
Reactions are currently unavailable
