currency @localizer/format 1.1.1
The unit
is used to format measurement values by appending appropriate units. It supports a wide range of units, including compound units like "kilometer-per-hour," making it versatile for various use cases.
Usage
typescript
import { unit } from '@localizer/format';
const result = unit(120, 'kilometer-per-hour');
Demo
Locale | Localized value |
---|---|
en-US | 120 km/h |
fr-FR | 120 km/h |
de-DE | 120 km/h |
fi-FI | 120 km/h |
sv-FI | 120 km/h |
ko-KR | 120km/h |
hi-IN | 120 कि॰मी॰/घं॰ |