Revert "Don't pass the locale to the Mapzen routing engine"
authorTom Hughes <tom@compton.nu>
Tue, 26 Jul 2016 17:36:56 +0000 (18:36 +0100)
committerTom Hughes <tom@compton.nu>
Tue, 26 Jul 2016 17:36:56 +0000 (18:36 +0100)
This reverts commit 38180c56c9be9d99406c9088b60f5912c2648a04.

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()
             }
           })
         },