From 24ddb8657d383487bbfae3a674c9c7db36982c88 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Tue, 26 Jul 2016 18:36:56 +0100 Subject: [PATCH] Revert "Don't pass the locale to the Mapzen routing engine" This reverts commit 38180c56c9be9d99406c9088b60f5912c2648a04. --- app/assets/javascripts/index/directions/mapzen.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/assets/javascripts/index/directions/mapzen.js b/app/assets/javascripts/index/directions/mapzen.js index 1b775ba51..348cb99c9 100644 --- a/app/assets/javascripts/index/directions/mapzen.js +++ b/app/assets/javascripts/index/directions/mapzen.js @@ -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() } }) }, -- 2.43.2