]> git.openstreetmap.org Git - rails.git/blobdiff - app/assets/javascripts/index/directions/mapzen.js
Revert "Don't pass the locale to the Mapzen routing engine"
[rails.git] / app / assets / javascripts / index / directions / mapzen.js
index 1b775ba5106ffec7760c207e19261243ad719b11..348cb99c99c58367b7611f3b4b318ec5c02f5afe 100644 (file)
@@ -46,7 +46,8 @@ function MapzenEngine(id, costing) {
             locations: points.map(function (p) { return { lat: p.lat, lon: p.lng }; }),
             costing: costing,
             directions_options: {
-              units: "km"
+              units: "km",
+              language: I18n.currentLocale()
             }
           })
         },