]> git.openstreetmap.org Git - rails.git/blobdiff - app/assets/javascripts/index/directions/graphhopper.js
Get current locale correctly in routing engines
[rails.git] / app / assets / javascripts / index / directions / graphhopper.js
index 6a1043fbf366797591f265c206fff86c775ba2d3..b11c4947204d2ca356d206de66e163775aecba4e 100644 (file)
@@ -57,7 +57,7 @@
         // https://graphhopper.com/api/1/docs/routing/
         const query = new URLSearchParams({
           vehicle: vehicleType,
-          locale: OSM.i18n.currentLocale(),
+          locale: OSM.i18n.locale,
           key: "LijBPDQGfu7Iiq80w3HzwB4RUDJbMbhs6BU0dEnn",
           elevation: false,
           instructions: true,