<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/100172442/193697167-9b2db132-71b7-4ddb-80a2-4a46d2f94e27.png"><img src="https://user-images.githubusercontent.com/100172442/193697167-9b2db132-71b7-4ddb-80a2-4a46d2f94e27.png" alt="Screenshot_20221003-182747" style="max-width: 100%;"></a></p>
<p dir="auto">This screenshot of the map key in Punjabi above shows the situation this PR is intebded to address, where "and" and opposite direction commas appear interspersed with the localized map key. This is because of the localized strings being joined with <code class="notranslate">to_sentence</code>, which is not aware of every locale and how to delimit a list for each one. Rather than asking all translators to translate "and" and provide a comma, this just uses either a left-to-right comma or a right-to-left comma depending on the known direction in order to keep things simple.</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/3731'>https://github.com/openstreetmap/openstreetmap-website/pull/3731</a></p>
<h4>Commit Summary</h4>
<ul>
<li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/3731/commits/47d3d7d9e72fe1d071080e73db2de6bb82784e72" class="commit-link">47d3d7d</a> Fixes delimeter direction in map key</li>
</ul>
<h4 style="display: inline-block">File Changes </h4> <p style="display: inline-block">(<a href="https://github.com/openstreetmap/openstreetmap-website/pull/3731/files">1 file</a>)</p>
<ul>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/3731/files#diff-1ed86bfa2aa7755d8f1f78574beceeb01b246a86beed16f43eb4d286f35667a9">app/views/site/key.html.erb</a>
(13)
</li>
</ul>
<h4>Patch Links:</h4>
<ul>
<li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/3731.patch'>https://github.com/openstreetmap/openstreetmap-website/pull/3731.patch</a></li>
<li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/3731.diff'>https://github.com/openstreetmap/openstreetmap-website/pull/3731.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/3731">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLOOSSN2QPSS6B7SKBTWBNNMPANCNFSM6AAAAAAQ4ASA3M">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AAK2OLO2YP5RO3MTPNEZHMTWBNNMPA5CNFSM6AAAAAAQ4ASA3OWGG33NNVSW45C7OR4XAZNFJFZXG5LFVJRW63LNMVXHIX3JMTHFGLCOZY.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/3731</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/3731",
"url": "https://github.com/openstreetmap/openstreetmap-website/pull/3731",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>