MartinsOnuoha / countriesNowAPI

CountriesNow is an Open source API for retrieving geo-information for countries, including their states, cities, population, etc. 🌎
http://countriesnow.space
MIT License
178 stars 54 forks source link

Multilangual names #82

Open SaraShoukry opened 2 years ago

SaraShoukry commented 2 years ago

Thanks for the great work Can you guide me to create an Arabic version for this?

MartinsOnuoha commented 2 years ago

Hi @SaraShoukry, Sure I can do that. Which part of the API would you like to translate? The documentation? or the responses?

SaraShoukry commented 2 years ago

@MartinsOnuoha The countries, states & cities

MartinsOnuoha commented 2 years ago

Hi @SaraShoukry , alright, can you show a sample of what the arabic response would look like? For example. This is the English response for a single country and a flag:

{
  "error": false,
  "msg": "country and flag retrieved",
  "data": {
    "name": "Nigeria",
    "flag": "https://upload.wikimedia.org/wikipedia/commons/7/79/Flag_of_Nigeria.svg"
  }
}

can you show me what an arabic version of this would look like?

vijaynk18 commented 2 years ago

@SaraShoukry Can you please provide the response in Arabic so that we can close this issue?

lpunderscore commented 2 years ago

Hi,

Is it already possible to fetch language specific countries, can't find it in the documentation?

For example, in french:

United States of America => États Unis d'Amérique Cambodia => Cambodge

Would the translations have to be done manually for all countries and states / provinces?

MartinsOnuoha commented 2 years ago

Hi @lpunderscore , Currently we do not have translations for the API, and yes the translation would have to be done manually for each state/provinces

SaraShoukry commented 2 years ago

sorry but i didn't complete the translation task

MartinsOnuoha commented 2 years ago

That's alright, let me know if you still want to do this, else we can close this issue.