Description
Use Intl.NumberFormat to enable language-sensitive number formatting.
Locale will need to be retrieved from the localization service.
This may need to be a new method in the service.
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.
Description
Use Intl.NumberFormat to enable language-sensitive number formatting.
Locale will need to be retrieved from the localization service.
This may need to be a new method in the service.
A
product-price-currencyentry will need to be specified in the config to display the correct currency symbol:Since the currency symbol's position is dynamic it will need to be the same size as the number.