X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/4254a1f2910d993aed343ea963c59e8ac9ca52c2..957d75295b2c379b17e61a2a22ee28fb5f701589:/app/assets/javascripts/index/directions/osrm.js
diff --git a/app/assets/javascripts/index/directions/osrm.js b/app/assets/javascripts/index/directions/osrm.js
index b58ba30a2..2156bf309 100644
--- a/app/assets/javascripts/index/directions/osrm.js
+++ b/app/assets/javascripts/index/directions/osrm.js
@@ -66,9 +66,10 @@ function OSRMEngine() {
var instText = "" + (i + 1) + ". ";
instText += TURN_INSTRUCTIONS[instCodes[0]];
if (instCodes[1]) {
- instText += "exit " + instCodes[1] + " ";
+ instText += I18n.t('javascripts.directions.instructions.exit', { exit: instCodes[1] } );
}
if (instCodes[0] !== 15) {
+ instText += " ";
instText += s[1] ? "" + s[1] + "" : I18n.t('javascripts.directions.instructions.unnamed');
}
if ((i + 1) < data.route_instructions.length) {