Skip to content

Commit fbc312a

Browse files
committed
update spanish texts and add units
1 parent 4b01626 commit fbc312a

File tree

1 file changed

+24
-14
lines changed

1 file changed

+24
-14
lines changed

src/L.Routing.Localization.js

Lines changed: 24 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@
208208
}
209209
},
210210

211-
'sp': {
211+
'es': {
212212
directions: {
213213
N: 'norte',
214214
NE: 'noreste',
@@ -217,34 +217,35 @@
217217
S: 'sur',
218218
SW: 'suroeste',
219219
W: 'oeste',
220-
NW: 'noroeste'
220+
NW: 'noroeste',
221+
SlightRight: 'leve giro a la derecha',
222+
Right: 'derecha',
223+
SharpRight: 'giro pronunciado a la derecha',
224+
SlightLeft: 'leve giro a la izquierda',
225+
Left: 'izquierda',
226+
SharpLeft: 'giro pronunciado a la izquierda',
227+
Uturn: 'media vuelta'
221228
},
222229
instructions: {
223230
// instruction, postfix if the road is named
224231
'Head':
225232
['Derecho {dir}', ' sobre {road}'],
226233
'Continue':
227234
['Continuar {dir}', ' en {road}'],
228-
'SlightRight':
229-
['Leve giro a la derecha', ' sobre {road}'],
230-
'Right':
231-
['Derecha', ' sobre {road}'],
232-
'SharpRight':
233-
['Giro pronunciado a la derecha', ' sobre {road}'],
234235
'TurnAround':
235236
['Dar vuelta'],
236-
'SharpLeft':
237-
['Giro pronunciado a la izquierda', ' sobre {road}'],
238-
'Left':
239-
['Izquierda', ' en {road}'],
240-
'SlightLeft':
241-
['Leve giro a la izquierda', ' en {road}'],
242237
'WaypointReached':
243238
['Llegó a un punto del camino'],
244239
'Roundabout':
245240
['Tomar {exitStr} salida en la rotonda', ' en {road}'],
246241
'DestinationReached':
247242
['Llegada a destino'],
243+
'Fork': ['En el cruce gira a {modifier}', ' hacia {road}'],
244+
'Merge': ['Incorpórate {modifier}', ' hacia {road}'],
245+
'OnRamp': ['Gira {modifier} en la salida', ' hacia {road}'],
246+
'OffRamp': ['Toma la salida {modifier}', ' hacia {road}'],
247+
'EndOfRoad': ['Gira {modifier} al final de la carretera', ' hacia {road}'],
248+
'Onto': 'hacia {road}'
248249
},
249250
formatOrder: function(n) {
250251
return n + 'º';
@@ -253,6 +254,15 @@
253254
startPlaceholder: 'Inicio',
254255
viaPlaceholder: 'Via {viaNumber}',
255256
endPlaceholder: 'Destino'
257+
},
258+
units: {
259+
meters: 'm',
260+
kilometers: 'km',
261+
yards: 'yd',
262+
miles: 'mi',
263+
hours: 'h',
264+
minutes: 'min',
265+
seconds: 's'
256266
}
257267
},
258268
'nl': {

0 commit comments

Comments
 (0)