]> git.openstreetmap.org Git - rails.git/blobdiff - app/assets/javascripts/index/directions/fossgis_valhalla.js
Get current locale correctly in routing engines
[rails.git] / app / assets / javascripts / index / directions / fossgis_valhalla.js
index 13fc020c2860b5ed305ad74f41e06908fabf379b..d5e781e4a7b2cfa18942cff7f3e0b7acb4da3be0 100644 (file)
@@ -97,7 +97,7 @@
             costing: costing,
             directions_options: {
               units: "km",
-              language: OSM.i18n.currentLocale()
+              language: OSM.i18n.locale
             }
           })
         });