This repository will give you a JSON list of all countries in the world, with their:
- Translated names in English, Spanish, Portuguese, Japanese, Korean, Russian, Italian, Swedish, Finnish, French, Chinese and in native language
- Respective country code
- Language code(s).
I chose JSON format as it holds the most flexibility of use.
The format is as below below:
{
"country_name": {
"en": "Singapore",
"native": "Singapore",
"es": "Singapur",
"pt": "Singapura",
"ja": "シンガポール",
"ko": "싱가포르",
"ru": "Сингапур",
"it": "Singapore",
"sv": "Singapore",
"fi": "Singapore",
"fr": "Singapour",
"zh": "新加坡"
},
"country_code": "SG",
"language_code": [
"en",
"ms",
"ta",
"zh"
]
}
Feel free to extend that list to your needs.
Enjoy!