UNPKG

world_countries_lists

Version:

Constantly updated lists of world countries and their associated alpha-2, alpha-3 and numeric codes as defined by the ISO 3166 standard, available in multiple formats, in multiple languages and with national flags included

48 lines (45 loc) 541 B
export type LanguageCode = | 'ar' | 'hy' | 'eu' | 'br' | 'bg' | 'zh' | 'zh-tw' | 'hr' | 'cs' | 'da' | 'nl' | 'eo' | 'de' | 'el' | 'en' | 'et' | 'fa' | 'fi' | 'fr' | 'hu' | 'it' | 'ja' | 'ko' | 'lt' | 'no' | 'pl' | 'pt' | 'ro' | 'ru' | 'sr' | 'sk' | 'sl' | 'es' | 'sv' | 'th' | 'tr' | 'uk' export interface Country { id: number alpha2: string alpha3: string name: string } export type TranslatedCountry = Omit<Country, 'name'> & Record<LanguageCode, string>