fixedCurrencyRangeFormatter @localizer/format-number 1.1.1
A customizable formatter designed for monetary ranges, ensuring a consistent fixed currency display.
Usage
typescript
import { fixedCurrencyRangeFormatter } from '@localizer/format-number';
const formatter = fixedCurrencyRangeFormatter('EUR', {
currencyDisplay: 'symbol',
notation: 'compact',
compactDisplay: 'short',
});
const result = formatter(1000, 1500);
See formatter options for configuration details.
Demo
Locale | Localized value |
---|---|
en-US | €1,000.00 – €1,500.00 |
fr-FR | 1 000,00–1 500,00 € |
de-DE | 1.000,00–1.500,00 € |
fi-FI | 1 000,00–1 500,00 € |
sv-FI | 1 000,00‒1 500,00 € |
ko-KR | €1,000.00 ~ €1,500.00 |
hi-IN | €1,000.00 – €1,500.00 |