Currency code @localizer/format-number 1.0.1
currencyCodeFormatter<
T
> (options?
): ValueFormatter<T
>
T
extends CurrencyCode - The type of value to format.options
- Optional configuration of the formatter.
This formatter returns the localized symbol or abbreviation for a currency code, aligning with the user's regional settings.
TIP
If you prefer to use default settings, consider using a preconfigured currency symbol formatter. It simplifies the process by providing a ready-to-use configuration for common use cases.