2

I'm looking to set up a dropdown of languages once the app picks up the city a person is in. Where would I find this database or API?

0

You can probably use geonames for this. See, for example, Barcelona:

https://www.geonames.org/3128760/barcelona.html

It shows "preferred" names for the languages Catalan and Spanish

enter image description here

and you'll notice that Madrid doesn't have Catalan as a preferred language

enter image description here


examples of export data: https://download.geonames.org/export/dump/readme.txt

so you'd need the files and cities500.zip and alternateNamesV2.zip.

Also check for libraries for Python/R or other programming languages, that download and parse the appropriate language

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.