Open dipanshparmar opened 1 year ago
Hi @dipanshparmar Yes this was done intentionally as the name of the country varies per language.
To get the name of the country you might want to use this API: https://restcountries.com/v3.1/alpha/ + ID to get
BUT, if you think using the English name as a default is better, then we might implement this. Let me know your thoughts
Using the English names by default is a better idea for simplicity's sake and to get the work done. e.g. If I'm working on a country guessing app on the map, forcing the users to connect to the internet only to display the name of the country they selected seems inconvenient to me. Also, you should remove the name parameter if it is not supposed to do anything.
What do you think?
At this moment the name parameter is used for all other maps (like Japan, Argentina). It does make sense to add the name of countries as well. I will add it in the next release :)
Thank you. Looking forward to it :)
When printing the country name on the click, it just prints an empty string.
Code used:
Output