List of countries in json format that includes country dial code, country abbreviation and flag.
Get Started
- npm install country-list-translate-json
Importing TypeScript types
import { countries , key_countries } from 'country-list-translate-json';
Get arabic country name
- countries.name_ar
Get dial code
- countries.dial_code
Get country code
- countries.code
Get country flag
- countries.flag
Usage
access it one time through key_countries
- key_countries.Egypt or key_countries['Egypt']
Data Example
{
name_ar: "مصر",
dial_code: "+20",
code: "EG",
flag: "🇪🇬"
},