<p dir="auto">There was an issue <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1527799941" data-permission-text="Title is private" data-url="https://github.com/openstreetmap/openstreetmap-website/issues/3888" data-hovercard-type="issue" data-hovercard-url="/openstreetmap/openstreetmap-website/issues/3888/hovercard" href="https://github.com/openstreetmap/openstreetmap-website/issues/3888">#3888</a> that asked to make directions distances translatable. It was done, but not entirely. Step distances were still untranslatable after the issue was closed.</p>
<p dir="auto">Before in Russian:</p>
<p dir="auto"><a href="https://github.com/user-attachments/assets/fea830d4-da1a-4d42-ab11-10faba1b45f9">image.png (view on web)</a><br>
Notice that the total distance units are "ΠΊΠΌ", but the first step has untranslated "km".</p>
<p dir="auto">After:</p>
<p dir="auto"><a href="https://github.com/user-attachments/assets/cf03a322-5f30-4ae5-88da-6476a69f927a">image.png (view on web)</a></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/5781'>https://github.com/openstreetmap/openstreetmap-website/pull/5781</a></p>

<h4>Commit Summary</h4>
<ul>
  <li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/5781/commits/c6e4eb2da867b2d6969947063cedd5c8bfdea432" class="commit-link">c6e4eb2</a>  Remove unitTemplate from formatDistance</li>
  <li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/5781/commits/dca2409c440fa9f92aa6ed42c911f6156bf89118" class="commit-link">dca2409</a>  Move getDistText next to other formatting functions</li>
  <li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/5781/commits/8f3185b98e984cd7be726519e00295702017320b" class="commit-link">8f3185b</a>  Return to a previous structure of getDistText</li>
  <li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/5781/commits/7e92bfc0e7ce5ffd779ee5c0e56ce72d2ba25628" class="commit-link">7e92bfc</a>  Rename distance formatting functions</li>
  <li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/5781/commits/8e3c5705a15330000e2bc958e3c2ceee383ca7d8" class="commit-link">8e3c570</a>  Translate step distance units</li>
</ul>

<h4 style="display: inline-block">File Changes </h4> <p style="display: inline-block">(<a href="https://github.com/openstreetmap/openstreetmap-website/pull/5781/files">1 file</a>)</p>
<ul>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/5781/files#diff-fdb9558c2ba79ddf9fbcb92594a8a8fa54abb1b3e25ce264de37951b428a958b">app/assets/javascripts/index/directions.js</a>
    (39)
  </li>
</ul>

<h4>Patch Links:</h4>
<ul>
  <li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/5781.patch'>https://github.com/openstreetmap/openstreetmap-website/pull/5781.patch</a></li>
  <li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/5781.diff'>https://github.com/openstreetmap/openstreetmap-website/pull/5781.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/5781">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLI7J3RZUS3IQMGNQKL2TRBOXAVCNFSM6AAAAABYUJAOCWVHI2DSMVQWIX3LMV43ASLTON2WKOZSHEYDKNBUGAZTONQ">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AAK2OLOGE4HRGZX4TQWWJLL2TRBOXA5CNFSM6AAAAABYUJAOCWWGG33NNVSW45C7OR4XAZNFJFZXG5LFVJRW63LNMVXHIX3JMTHK2LMAPA.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/5781</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/5781",
"url": "https://github.com/openstreetmap/openstreetmap-website/pull/5781",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>