I’m in a bit of a trouble. I have developed a script, which finds a users country. The script returns the native version of the country; eg. Denmark (English) is Danmark (Danish) on the server. Is there a fast way to convert it to English?
Share
Your best option is to put the time in to build a dataset. Once you have this information in a database, queries will be easy and you won’t have to rely on outside influence to your script.
This site should get you started. Click on each individual country and it shows its English name and its name in it’s local language.