@wocart/storefront / index / MoneyFormatOptions
Interface: MoneyFormatOptions
Deep Money Formatter
One formatter for every price a storefront shows. Handles locale-aware formatting and Arabic-Indic digits; the symbol follows the amount.
Design principle: ONE function that handles all cases. Callers curry if needed.
Properties
decimals?
optionaldecimals?:number
Decimal places (default: 0)
locale
locale:
string
Locale: 'ar-DZ' | 'fr-FR' | 'en-US'
symbol
symbol:
string
Currency symbol: 'دج' | 'DA' | 'DZD'