Skip to content

API reference / @localizer/format-number / fixedCurrencyFormatter

Function: fixedCurrencyFormatter()

fixedCurrencyFormatter<T>(currency, options?): ValueFormatter<T>

Defined in: fixedCurrencyFormatter.ts:34

Formats values as fixed localized currency strings.

Type Parameters

Type ParameterDescription
T extends number | bigintThe value type, either number or bigint.

Parameters

ParameterTypeDescription
currencyCurrencyCodeThe currency code (e.g., 'USD', 'EUR').
options?NumberFormatOptionsOptional formatting options.

Returns

ValueFormatter<T>

A ValueFormatter for localized currency strings.