Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add several indigenous American languages to language picker #1186

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

claysmalley
Copy link
Member

This PR adds to the language picker 207 languages indigenous to the so-called United States. Since Unicode CLDR is missing language names for most of them, I've included the English name of each as a fallback.

Note that many of these languages currently have no geographic labels on OSM or Wikidata, and the map will just fall back to English. By surfacing these languages in the picker, I hope to encourage mappers to fill in the gaps.

src/js/language_label.js Outdated Show resolved Hide resolved
// included as a fallback, in case CLDR is missing data on language names.

// Eskaleut
{ id: "ale", name: "Aleut" },
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is fine as a start, but maybe we could try to source the names dynamically from Wikidata, like we do for route networks in the legend. That would allow us to support more interface languages than just English, which seems appropriate for a feature focused on multilingualism.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm in favor of sourcing language labels from Wikidata, though I'm not experienced with async Wikidata queries. I'll make a separate issue for it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants