mapbox-gl-js icon indicating copy to clipboard operation
mapbox-gl-js copied to clipboard

Chinese cannot be recognized using the browser language

Open uubbbb opened this issue 6 months ago • 1 comments

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

Image

Image

I hope it can be adjusted, thank you!

uubbbb avatar Jun 26 '25 09:06 uubbbb

  • 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

mapmeld avatar Aug 07 '25 01:08 mapmeld