Chinese map labels with the new vector tile / MapLibre GL layers haven't been rendering properly in the Chrome browser. When the user sets their UI language to Traditional Chinese, these two labels should have these characters rendered as <span lang="zh">门</span> and <span lang="zh-Hant">北</span>:
<img width="925" height="356" alt="image" src="https://github.com/user-attachments/assets/52ef6127-b4a3-4152-8684-7e1904723456" /> In https://github.com/mapbox/tiny-sdf/pull/58 and https://github.com/maplibre/maplibre-gl-js/pull/6223 we added support for MapLibre to pass the document language to Tiny-SDF, and Tiny-SDF sets the language in the canvas `ctx.lang` to render CJK characters. So I think all that's left is upgrading `maplibre-gl` here. If we need to update yarn.lock too please let me know. Note: in the MapLibre GL layers, switching the UI language changes which `name` tag we prefer. So we're rendering CJK characters in the user's language and NOT trying to render Hong Kong in Traditional Chinese, Beijing in Simplified Chinese, Tokyo in Japanese, etc. You can view, comment on, or merge this pull request online at: https://github.com/openstreetmap/openstreetmap-website/pull/6377 -- Commit Summary -- * upgrade maplibre-gl for Chrome / CJK support -- File Changes -- M package.json (2) -- Patch Links -- https://github.com/openstreetmap/openstreetmap-website/pull/6377.patch https://github.com/openstreetmap/openstreetmap-website/pull/6377.diff -- Reply to this email directly or view it on GitHub: https://github.com/openstreetmap/openstreetmap-website/pull/6377 You are receiving this because you are subscribed to this thread. Message ID: <openstreetmap/openstreetmap-website/pull/6...@github.com>
_______________________________________________ rails-dev mailing list rails-dev@openstreetmap.org https://lists.openstreetmap.org/listinfo/rails-dev