Skip to content

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

kilometer
hour
LocaleLocalized value
en-US  American English120 km/h
fr-FR  French (France)120 km/h
de-DE  German (Germany)120 km/h
fi-FI  Finnish (Finland)120 km/h
sv-FI  Swedish (Finland)120 km/h
ko-KR  Korean (South Korea)120km/h
hi-IN  Hindi (India)120 कि॰मी॰/घं॰

See also