mapbox-gl-js
mapbox-gl-js copied to clipboard
Chinese cannot be recognized using the browser language
Hello, the current mapbox language settings are: Simplified Chinese: zh-Hans, Traditional Chinese: zh-Hant, but in the browser, zh-Hans and zh-Hant are not recognized language codes, so there is no way to automatically display Chinese for users in Chinese areas.
The language codes recognized in the browser are:
Simplified Chinese: zh-cn, zh-sg, zh Traditional Chinese: zh-tw, zh-hk
I hope it can be adjusted, thank you!
- I proposed a fix in https://github.com/mapbox/mapbox-gl-language/pull/67
- If Mapbox assigns someone to this - the dependency TinySDF was recently updated to support rendering Traditional and Simplified Chinese characters in Chrome, see https://github.com/mapbox/tiny-sdf/pull/58