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?

1 Answer 1


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


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 and acknowledge you have read our privacy policy.

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