countryName @localizer/format 1.1.1
The countryName
provides a standardized way to format country names based on their ISO 3166-1 alpha-2 codes. It ensures consistency and localization support for displaying country names in various contexts.
Usage
typescript
import { countryName } from '@localizer/format';
const result = countryName('US');
Demo
Locale | Localized value |
---|---|
en-US | United States |
fr-FR | États-Unis |
de-DE | Vereinigte Staaten |
fi-FI | Yhdysvallat |
sv-FI | USA |
ko-KR | 미국 |
hi-IN | संयुक्त राज्य |