<p dir="auto">Chinese map labels with the new vector tile / MapLibre GL layers haven't been rendering properly in the Chrome browser.<br>
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>:</p>
<a href="https://github.com/user-attachments/assets/52ef6127-b4a3-4152-8684-7e1904723456">image.png (view on web)</a>
<p dir="auto">In <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="3285620988" data-permission-text="Title is private" data-url="https://github.com/mapbox/tiny-sdf/issues/58" data-hovercard-type="pull_request" data-hovercard-url="/mapbox/tiny-sdf/pull/58/hovercard" href="https://github.com/mapbox/tiny-sdf/pull/58">mapbox/tiny-sdf#58</a> and  <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="3294112318" data-permission-text="Title is private" data-url="https://github.com/maplibre/maplibre-gl-js/issues/6223" data-hovercard-type="pull_request" data-hovercard-url="/maplibre/maplibre-gl-js/pull/6223/hovercard" href="https://github.com/maplibre/maplibre-gl-js/pull/6223">maplibre/maplibre-gl-js#6223</a> we added support for MapLibre to pass the document language to Tiny-SDF, and Tiny-SDF sets the language in the canvas <code class="notranslate">ctx.lang</code> to render CJK characters.  So I think all that's left is upgrading <code class="notranslate">maplibre-gl</code> here. If we need to update yarn.lock too please let me know.</p>
<p dir="auto">Note: in the MapLibre GL layers, switching the UI language changes which <code class="notranslate">name</code> 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.</p>

<hr>

<h4>You can view, comment on, or merge this pull request online at:</h4>
<p>  <a href='https://github.com/openstreetmap/openstreetmap-website/pull/6377'>https://github.com/openstreetmap/openstreetmap-website/pull/6377</a></p>

<h4>Commit Summary</h4>
<ul>
  <li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/6377/commits/efab9e7ba017f1e2778594da683644db921bb4b5" class="commit-link">efab9e7</a>  upgrade maplibre-gl for Chrome / CJK support</li>
</ul>

<h4 style="display: inline-block">File Changes </h4> <p style="display: inline-block">(<a href="https://github.com/openstreetmap/openstreetmap-website/pull/6377/files">1 file</a>)</p>
<ul>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/6377/files#diff-7ae45ad102eab3b6d7e7896acd08c427a9b25b346470d7bc6507b6481575d519">package.json</a>
    (2)
  </li>
</ul>

<h4>Patch Links:</h4>
<ul>
  <li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/6377.patch'>https://github.com/openstreetmap/openstreetmap-website/pull/6377.patch</a></li>
  <li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/6377.diff'>https://github.com/openstreetmap/openstreetmap-website/pull/6377.diff</a></li>
</ul>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />Reply to this email directly, <a href="https://github.com/openstreetmap/openstreetmap-website/pull/6377">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLISDGLW7SY7NPQWKC33Q3VSDAVCNFSM6AAAAACFQVCV5SVHI2DSMVQWIX3LMV43ASLTON2WKOZTGM3TSOJRGQ4TKMI">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AAK2OLIXZVXT7E2CWPXSW3T3Q3VSDA5CNFSM6AAAAACFQVCV5SWGG33NNVSW45C7OR4XAZNFJFZXG5LFVJRW63LNMVXHIX3JMTHMS5LIY4.gif" height="1" width="1" alt="" /><span style="color: transparent; font-size: 0; display: none; visibility: hidden; overflow: hidden; opacity: 0; width: 0; height: 0; max-width: 0; max-height: 0; mso-hide: all">Message ID: <span><openstreetmap/openstreetmap-website/pull/6377</span><span>@</span><span>github</span><span>.</span><span>com></span></span></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/openstreetmap/openstreetmap-website/pull/6377",
"url": "https://github.com/openstreetmap/openstreetmap-website/pull/6377",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>