Unit and currency options
currencyDisplay
How to display the currency in currency formatting:
"code"
- ISO currency code (e.g., USD)."symbol"
(default) - Localized currency symbol (e.g., €)."narrowSymbol"
- Narrow format symbol (e.g., $100 instead of US$100)."name"
- Localized currency name (e.g., dollar).
NOTE
This option is only applicable for currencyFormatter
Examples:
currencySign
In some locales, the accounting format wraps negative numbers in parentheses instead of using a minus sign. Possible values: "standard"
(default) and "accounting"
.
NOTE
This option is only applicable for currencyFormatter
Examples:
unitDisplay
The unit formatting style to use in unit formatting:
"short"
(default) - Example: 16 l."narrow"
- Example: 16l."long"
- Example: 16 litres.
NOTE
This option is only applicable for unitFormatter
Examples:
"Attributions and copyright licensing" by Mozilla Contributors, licensed under CC-BY-SA 4.0.