currencyCodeFormatter @localizer/format-number 1.1.1
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
Locale | Localized value |
---|---|
en-US | £ |
fr-FR | £GB |
de-DE | £ |
fi-FI | £ |
sv-FI | GBP |
ko-KR | £ |
hi-IN | £ |