<p></p>
<p><b>@1ec5</b> commented on this pull request.</p>

<hr>

<p>In <a href="https://github.com/openstreetmap/openstreetmap-website/pull/6313#discussion_r2268959642">config/ui_languages.yml</a>:</p>
<pre style='color:#555'>>  - :code: zh-CN
   :native_name: 中文(简体)
+  :english_name: Chinese (Simplified)
 - :code: zh-TW
   :native_name: 中文(繁體)
+  :english_name: Chinese (Traditional)
 - :code: zh-HK
   :native_name: 中文(香港)
+  :english_name: Chinese (Hong Kong)
</pre>
<p dir="auto">Hm, looks like this is based on <a href="https://translatewiki.net/wiki/Portal:Zh#portal-statistics" rel="nofollow">Translatewiki.net’s language code mapping</a>. They uses zh-Hans and zh-Hant for Simplified and Traditional, with zh-Hant-HK as an override for the Hong Kong standard of Traditional (similar to how our en-GB overrides whatever en is). They’ve disabled other national variants for translation. That means MediaWiki only has these three localizations too, but their language switching UI shows all the other national variants as aliases, like zh-SG as an alias to zh-Hans.</p>
<p dir="auto">The choice between zh-CN, zh-TW, and zh-HK is aligned with Windows preferences, but these days most other platforms and libraries use both script and country codes for Chinese, so some users set those instead (see <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="635296186" data-permission-text="Title is private" data-url="https://github.com/openstreetmap/openstreetmap-website/issues/2647" data-hovercard-type="issue" data-hovercard-url="/openstreetmap/openstreetmap-website/issues/2647/hovercard" href="https://github.com/openstreetmap/openstreetmap-website/issues/2647">#2647</a>, sort of). <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="3266145738" data-permission-text="Title is private" data-url="https://github.com/mapbox/mapbox-gl-language/issues/67" data-hovercard-type="pull_request" data-hovercard-url="/mapbox/mapbox-gl-language/pull/67/hovercard" href="https://github.com/mapbox/mapbox-gl-language/pull/67">mapbox/mapbox-gl-language#67</a> would ensure a reasonable fallback regardless of the form of language code.</p>
<p dir="auto"><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/mapmeld/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/mapmeld">@mapmeld</a>, am I barking up the wrong tree, or is there a more sensible set of options we could expose? We can take it to a separate issue if so.</p>

<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/6313#discussion_r2268959642">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLNUOCAGFC6MU3ORFVL3NGKY7AVCNFSM6AAAAACDRTVSROVHI2DSMVQWIX3LMV43YUDVNRWFEZLROVSXG5CSMV3GSZLXHMZTCMBZGAZTAOJUGA">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AAK2OLMGLMLRNPJTZDUBW733NGKY7A5CNFSM6AAAAACDRTVSROWGG33NNVSW45C7OR4XAZNRKB2WY3CSMVYXKZLTORJGK5TJMV32UY3PNVWWK3TUL5UWJTVZKAGBY.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/6313/review/3109030940</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/6313#discussion_r2268959642",
"url": "https://github.com/openstreetmap/openstreetmap-website/pull/6313#discussion_r2268959642",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>