Coder Social home page Coder Social logo

Comments (3)

nvkelso avatar nvkelso commented on June 9, 2024

Thanks for the feedback, I can see the utility as I already do this in Who's On First.

Some considerations:

  • Some countries have more than 1 official national language. Belgium, Switzerland, and Canda all come immediately to mind. Which one would be listed first in a list, or singularly if we only include 1?
  • Some countries have 1 or more unofficial (or regional) languages. Spain comes to mind.
  • Should we include name_{official} properties for a given country when that language isn't already part of the include set of default name translations?

See also:

from natural-earth-vector.

Robbendebiene avatar Robbendebiene commented on June 9, 2024

Thanks for your quick reply.

  • Some countries have more than 1 official national language. Belgium, Switzerland, and Canda all come immediately to mind. Which one would be listed first in a list, or singularly if we only include 1?
  • Some countries have 1 or more unofficial (or regional) languages. Spain comes to mind.

I personally would include all of them and simply order them alphabetically. Ordering by popularity might feel neat, but I don't think this adds much of a value especially because of the multiple definitions of "popularity".

Should we include name_{official} properties for a given country when that language isn't already part of the include set of default name translations?

This is a cool idea. Do you already have properties/fields that only exist for certain countries?


Edit: I recently put together a simple wikidata query to get the official national languages per country code. Not sure if this is of any value for you https://gist.github.com/Robbendebiene/8b623625f2de111676bc170d56758833

from natural-earth-vector.

freenetst avatar freenetst commented on June 9, 2024

It is also possible that in some provinces the official language is different from that of the rest of the countries, at the ne_10_admin_1_states_provinces level.
For example, in Italy in the province of Bolzano (South Tyrol - BZ) the official language is German, because they are territories of German language and culture acquired in the First World War.

from natural-earth-vector.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.