Skip to content

currencyCodeFormatter
@localizer/format-number 1.1.3
​

The currencyCodeFormatter provides a flexible way to format currency codes into human-readable names or symbols. It supports various configuration options to tailor the output to your specific needs, making it ideal for applications requiring localized or customized currency representations.

Usage ​

typescript
import { 
currencyCodeFormatter
} from '@localizer/format-number';
const
formatter
=
currencyCodeFormatter
({
currencyDisplay
: 'name',
}); const
result
=
formatter
('GBP');

See formatter options for configuration details.

Demo ​

name
GBP - British Pound
LocaleLocalized value
en-US  American English£
fr-FR  French (France)£GB
de-DE  German (Germany)£
fi-FI  Finnish (Finland)£
sv-FI  Swedish (Finland)GBP
ko-KR  Korean (South Korea)£
hi-IN  Hindi (India)£

See also ​