<h3 dir="auto">Description</h3>
<ul dir="auto">
<li>Group unit translations by sending the scope with <code class="notranslate">translateDistanceUnits</code></li>
<li>Regroup <code class="notranslate">writeSummary</code> and <code class="notranslate">writeSteps</code> into <code class="notranslate">writeContent</code> and <code class="notranslate">writeStep</code></li>
<li>Unify unit toggling into <code class="notranslate">writeContent</code> with <code class="notranslate">data-unit</code> to simplify event binding.</li>
</ul>
<h3 dir="auto">How has this been tested?</h3>
<p dir="auto">locally</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/5992'>https://github.com/openstreetmap/openstreetmap-website/pull/5992</a></p>

<h4>Commit Summary</h4>
<ul>
  <li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/5992/commits/05db15f6b04153770f4e503b31b8fdca82642279" class="commit-link">05db15f</a>  Refactor directions output rendering and unit handling</li>
</ul>

<h4 style="display: inline-block">File Changes </h4> <p style="display: inline-block">(<a href="https://github.com/openstreetmap/openstreetmap-website/pull/5992/files">3 files</a>)</p>
<ul>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/5992/files#diff-396a931418806325579f46a72d42cdad99145a9c35f6aa55c933a8d5c0c78507">app/assets/javascripts/index/directions-route-output.js</a>
    (109)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/5992/files#diff-175024ba29ee5273987697064c25cb6ae914b8d15af4f7015eec79276ca73344">app/views/directions/show.html.erb</a>
    (4)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/5992/files#diff-44438ce218f5287c58d0017f965d888715635d94280669896f75841fbd7b4cd7">config/locales/en.yml</a>
    (10)
  </li>
</ul>

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