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

Simplified Chinese #23

Closed
wants to merge 3 commits into from
Closed

Simplified Chinese #23

wants to merge 3 commits into from

Conversation

1ec5
Copy link
Contributor

@1ec5 1ec5 commented Jul 3, 2018

This PR adds support for Simplified Chinese, falling back on Chinese for certain low-zoom-level source layers that lack Simplified Chinese data in Streets source v7.

locale-utils has been added as a dependency. This library is used for locale code matching in various other Mapbox tools, so using it here ensures consistent behavior. As this is the library’s first dependency, its inclusion breaks the normal <script> tag usage that the examples rely on. A build step will need to be added to build a version of the library that the examples can include direclty.

Additionally, a special case may need to be added for mul, as described in #17 (comment). locale-utils only supports valid IETF language tags, so supporting that PR’s local code would be less straightforward.

Fixes #5.

/cc @lukasmartinelli @bsudekum @chriswu42

@1ec5 1ec5 self-assigned this Jul 3, 2018
@1ec5 1ec5 requested a review from lukasmartinelli July 3, 2018 19:41
@andrewharvey
Copy link

andrewharvey commented Sep 7, 2018

Hmm. Although the mapbox-streets-v7 spec https://www.mapbox.com/vector-tiles/mapbox-streets-v7/ says name_zh-Hans exists, inspecting the vector tiles in Studio it appears to be missing. 🤔

@1ec5
Copy link
Contributor Author

1ec5 commented Sep 7, 2018

The documentation is a little confusing, but name_zh-Hans is omitted from the country_label, state_label, and marine_label layers.

/ref mapbox/mapbox-gl-native#12164

@1ec5 1ec5 mentioned this pull request Feb 21, 2020
@ryanhamley
Copy link
Contributor

I'm closing this since #39 added support for Simplified and Traditional Chinese while dropping v7 support

@ryanhamley ryanhamley closed this Mar 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Simplified Chinese
4 participants