This country names parser is just a simple helper to create a select/option HTML for country names and country codes (in different languages) from an external data source. It's something we have had to do quite often so have pushed it up to Github.
- Go here https://stefangabos.github.io/world_countries/
- Select the second JSON option for each country you want
- Press download
- Put the file you download here and unzip
This script will expect a directory called data containing directories with names which are the two letter lowercase language codes. These directories should contain a file called "countries.json".
Create a directory called output for your files to go in.