<span style="color: transparent; display: none; height: 0; max-height: 0; max-width: 0; opacity: 0; overflow: hidden; mso-hide: all; visibility: hidden; width: 0;">
  <h3 dir="auto">URL</h3>
<p dir="auto"><a href="https://www.openstreetmap.org/directions?engine=fossgis_valhalla_car&route=42.038752%2C13.626598%3B42.038752%2C13.626598#map=19/42.038804/13.627943" rel="nofollow">https://www.openstreetmap.org/directions?engine=fossgis_valhalla_car&route=42.038752%2C13.626598%3B42.038752%2C13.626598#map=19/42.038804/13.627943</a></p>
<h3 dir="auto">How to reproduce the issue?</h3>
<p dir="auto">Go to the above URL. The route will never be calculated and there’s an endless loading spinner.</p>
<h3 dir="auto">Screenshot(s) or anything else?</h3>
<p dir="auto">Error in the browser console:</p>
<pre class="notranslate"><code class="notranslate">17:23:32.586 Uncaught TypeError: OSM.i18n.currentLocale is not a function
    getRoute https://www.openstreetmap.org/assets/index-fb5318a386ef84e62dbd686715e843ad6afc2cb94d8c1c31114220032f53d736.js:9
    s https://www.openstreetmap.org/assets/index-fb5318a386ef84e62dbd686715e843ad6afc2cb94d8c1c31114220032f53d736.js:8
    y https://www.openstreetmap.org/assets/index-fb5318a386ef84e62dbd686715e843ad6afc2cb94d8c1c31114220032f53d736.js:9
    setValue https://www.openstreetmap.org/assets/index-fb5318a386ef84e62dbd686715e843ad6afc2cb94d8c1c31114220032f53d736.js:8
    d https://www.openstreetmap.org/assets/index-fb5318a386ef84e62dbd686715e843ad6afc2cb94d8c1c31114220032f53d736.js:9
    load https://www.openstreetmap.org/assets/index-fb5318a386ef84e62dbd686715e843ad6afc2cb94d8c1c31114220032f53d736.js:9
    run https://www.openstreetmap.org/assets/index-fb5318a386ef84e62dbd686715e843ad6afc2cb94d8c1c31114220032f53d736.js:9
    load https://www.openstreetmap.org/assets/index-fb5318a386ef84e62dbd686715e843ad6afc2cb94d8c1c31114220032f53d736.js:9
    <anonymous> https://www.openstreetmap.org/assets/index-fb5318a386ef84e62dbd686715e843ad6afc2cb94d8c1c31114220032f53d736.js:1
    u https://www.openstreetmap.org/assets/application-819d5ef9c9be076fee37756c270ec7ab72d539c4e87c6a55121841d48df2e845.js:12
    d https://www.openstreetmap.org/assets/application-819d5ef9c9be076fee37756c270ec7ab72d539c4e87c6a55121841d48df2e845.js:12
index-fb5318a386ef84e62dbd686715e843ad6afc2cb94d8c1c31114220032f53d736.js:9:8703
</code></pre>
<p dir="auto">This JavaScript crash prevents the fetch-route code from executing, as there’s never a network request sent for getting directions.</p>
<p dir="auto">As the missing function is called <code class="notranslate">currentLocale</code>, I tried <a href="https://www.openstreetmap.org/preferences" rel="nofollow">changing the language of my OSM account</a> from German to English, to no avail.</p>
<p dir="auto">Yesterday (18 March 2025, 18:00 UTC), it worked fine, but today (19 March, 16:20 UTC), it’s broken. A recent commit might have broken something, so please review them one more time. <strong>Please do it quickly!</strong></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/issues/5821">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLKAYWXRNQZNHAAK6D32VGL5RAVCNFSM6AAAAABZLKCV3WVHI2DSMVQWIX3LMV43ASLTON2WKOZSHEZTENBUHE3DIOI">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AAK2OLKQQQ7JBR36B2AXOQ32VGL5RA5CNFSM6AAAAABZLKCV3WWGG33NNVSW45C7OR4XAZNFJFZXG5LFVJRW63LNMVXHIX3JMTHK5SNBOE.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/issues/5821</span><span>@</span><span>github</span><span>.</span><span>com></span></span></p>
</span>


<div style="display: flex; flex-wrap: wrap; white-space: pre-wrap; align-items: center; "><img alt="Openstreetmapler" height="20" width="20" style="border-radius:50%; margin-right: 4px;" decoding="async" src="https://avatars.githubusercontent.com/u/9383930?s=20&v=4" /><strong>Openstreetmapler</strong> created an issue <a href="https://github.com/openstreetmap/openstreetmap-website/issues/5821">(openstreetmap/openstreetmap-website#5821)</a></div>
<h3 dir="auto">URL</h3>
<p dir="auto"><a href="https://www.openstreetmap.org/directions?engine=fossgis_valhalla_car&route=42.038752%2C13.626598%3B42.038752%2C13.626598#map=19/42.038804/13.627943" rel="nofollow">https://www.openstreetmap.org/directions?engine=fossgis_valhalla_car&route=42.038752%2C13.626598%3B42.038752%2C13.626598#map=19/42.038804/13.627943</a></p>
<h3 dir="auto">How to reproduce the issue?</h3>
<p dir="auto">Go to the above URL. The route will never be calculated and there’s an endless loading spinner.</p>
<h3 dir="auto">Screenshot(s) or anything else?</h3>
<p dir="auto">Error in the browser console:</p>
<pre class="notranslate"><code class="notranslate">17:23:32.586 Uncaught TypeError: OSM.i18n.currentLocale is not a function
    getRoute https://www.openstreetmap.org/assets/index-fb5318a386ef84e62dbd686715e843ad6afc2cb94d8c1c31114220032f53d736.js:9
    s https://www.openstreetmap.org/assets/index-fb5318a386ef84e62dbd686715e843ad6afc2cb94d8c1c31114220032f53d736.js:8
    y https://www.openstreetmap.org/assets/index-fb5318a386ef84e62dbd686715e843ad6afc2cb94d8c1c31114220032f53d736.js:9
    setValue https://www.openstreetmap.org/assets/index-fb5318a386ef84e62dbd686715e843ad6afc2cb94d8c1c31114220032f53d736.js:8
    d https://www.openstreetmap.org/assets/index-fb5318a386ef84e62dbd686715e843ad6afc2cb94d8c1c31114220032f53d736.js:9
    load https://www.openstreetmap.org/assets/index-fb5318a386ef84e62dbd686715e843ad6afc2cb94d8c1c31114220032f53d736.js:9
    run https://www.openstreetmap.org/assets/index-fb5318a386ef84e62dbd686715e843ad6afc2cb94d8c1c31114220032f53d736.js:9
    load https://www.openstreetmap.org/assets/index-fb5318a386ef84e62dbd686715e843ad6afc2cb94d8c1c31114220032f53d736.js:9
    <anonymous> https://www.openstreetmap.org/assets/index-fb5318a386ef84e62dbd686715e843ad6afc2cb94d8c1c31114220032f53d736.js:1
    u https://www.openstreetmap.org/assets/application-819d5ef9c9be076fee37756c270ec7ab72d539c4e87c6a55121841d48df2e845.js:12
    d https://www.openstreetmap.org/assets/application-819d5ef9c9be076fee37756c270ec7ab72d539c4e87c6a55121841d48df2e845.js:12
index-fb5318a386ef84e62dbd686715e843ad6afc2cb94d8c1c31114220032f53d736.js:9:8703
</code></pre>
<p dir="auto">This JavaScript crash prevents the fetch-route code from executing, as there’s never a network request sent for getting directions.</p>
<p dir="auto">As the missing function is called <code class="notranslate">currentLocale</code>, I tried <a href="https://www.openstreetmap.org/preferences" rel="nofollow">changing the language of my OSM account</a> from German to English, to no avail.</p>
<p dir="auto">Yesterday (18 March 2025, 18:00 UTC), it worked fine, but today (19 March, 16:20 UTC), it’s broken. A recent commit might have broken something, so please review them one more time. <strong>Please do it quickly!</strong></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/issues/5821">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLKAYWXRNQZNHAAK6D32VGL5RAVCNFSM6AAAAABZLKCV3WVHI2DSMVQWIX3LMV43ASLTON2WKOZSHEZTENBUHE3DIOI">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AAK2OLKQQQ7JBR36B2AXOQ32VGL5RA5CNFSM6AAAAABZLKCV3WWGG33NNVSW45C7OR4XAZNFJFZXG5LFVJRW63LNMVXHIX3JMTHK5SNBOE.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/issues/5821</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/issues/5821",
"url": "https://github.com/openstreetmap/openstreetmap-website/issues/5821",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>