Skip to content

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

US - United States
LocaleLocalized value
en-US  American EnglishUnited States
fr-FR  French (France)États-Unis
de-DE  German (Germany)Vereinigte Staaten
fi-FI  Finnish (Finland)Yhdysvallat
sv-FI  Swedish (Finland)USA
ko-KR  Korean (South Korea)미국
hi-IN  Hindi (India)संयुक्त राज्य

See also