From: Tom Hughes Date: Tue, 26 Jul 2016 17:36:56 +0000 (+0100) Subject: Revert "Don't pass the locale to the Mapzen routing engine" X-Git-Tag: live~3816 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/24ddb8657d383487bbfae3a674c9c7db36982c88?ds=sidebyside Revert "Don't pass the locale to the Mapzen routing engine" This reverts commit 38180c56c9be9d99406c9088b60f5912c2648a04. --- 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() } }) },