<p></p>
<p>I suspect I know what's going on with the first case - because you have <code>ja</code> listed right at the end we preserve that as very low priority but as you don't have <code>ko</code> listed explicitly we will insert it after the last of the Korean variants (<code>ko-hani</code>) that you do have listed so it winds up taking priority over Japanese.</p>
<p>If you didn't have <code>ja</code> listed explicitly then we would have inserted it after the last of the Japanese variants (<code>ja-hani</code>) which would then have been before <code>ko</code> in the list.</p>
<p>In the second case because you have Vietnamese variants listed we insert <code>vi</code> after the last of them as a fallback so that then gets selected as there are no other matches as I don't think <code>zh-Hans</code> will match at all.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/openstreetmap/openstreetmap-website/issues/2647#issuecomment-641197559">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLIM5BC4WUGUKO3LRL3RVYFGLANCNFSM4NZID52Q">unsubscribe</a>.<img src="https://github.com/notifications/beacon/AAK2OLOKP6V4QPP4V2DU7X3RVYFGLA5CNFSM4NZID522YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEY36L5Y.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/openstreetmap/openstreetmap-website/issues/2647#issuecomment-641197559",
"url": "https://github.com/openstreetmap/openstreetmap-website/issues/2647#issuecomment-641197559",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>