|
1 | 1 | (function() {
|
2 | 2 | 'use strict';
|
| 3 | + |
| 4 | + var spanish = { |
| 5 | + directions: { |
| 6 | + N: 'norte', |
| 7 | + NE: 'noreste', |
| 8 | + E: 'este', |
| 9 | + SE: 'sureste', |
| 10 | + S: 'sur', |
| 11 | + SW: 'suroeste', |
| 12 | + W: 'oeste', |
| 13 | + NW: 'noroeste', |
| 14 | + SlightRight: 'leve giro a la derecha', |
| 15 | + Right: 'derecha', |
| 16 | + SharpRight: 'giro pronunciado a la derecha', |
| 17 | + SlightLeft: 'leve giro a la izquierda', |
| 18 | + Left: 'izquierda', |
| 19 | + SharpLeft: 'giro pronunciado a la izquierda', |
| 20 | + Uturn: 'media vuelta' |
| 21 | + }, |
| 22 | + instructions: { |
| 23 | + // instruction, postfix if the road is named |
| 24 | + 'Head': |
| 25 | + ['Derecho {dir}', ' sobre {road}'], |
| 26 | + 'Continue': |
| 27 | + ['Continuar {dir}', ' en {road}'], |
| 28 | + 'TurnAround': |
| 29 | + ['Dar vuelta'], |
| 30 | + 'WaypointReached': |
| 31 | + ['Llegó a un punto del camino'], |
| 32 | + 'Roundabout': |
| 33 | + ['Tomar {exitStr} salida en la rotonda', ' en {road}'], |
| 34 | + 'DestinationReached': |
| 35 | + ['Llegada a destino'], |
| 36 | + 'Fork': ['En el cruce gira a {modifier}', ' hacia {road}'], |
| 37 | + 'Merge': ['Incorpórate {modifier}', ' hacia {road}'], |
| 38 | + 'OnRamp': ['Gira {modifier} en la salida', ' hacia {road}'], |
| 39 | + 'OffRamp': ['Toma la salida {modifier}', ' hacia {road}'], |
| 40 | + 'EndOfRoad': ['Gira {modifier} al final de la carretera', ' hacia {road}'], |
| 41 | + 'Onto': 'hacia {road}' |
| 42 | + }, |
| 43 | + formatOrder: function(n) { |
| 44 | + return n + 'º'; |
| 45 | + }, |
| 46 | + ui: { |
| 47 | + startPlaceholder: 'Inicio', |
| 48 | + viaPlaceholder: 'Via {viaNumber}', |
| 49 | + endPlaceholder: 'Destino' |
| 50 | + }, |
| 51 | + units: { |
| 52 | + meters: 'm', |
| 53 | + kilometers: 'km', |
| 54 | + yards: 'yd', |
| 55 | + miles: 'mi', |
| 56 | + hours: 'h', |
| 57 | + minutes: 'min', |
| 58 | + seconds: 's' |
| 59 | + } |
| 60 | + }; |
| 61 | + |
3 | 62 | L.Routing = L.Routing || {};
|
4 | 63 |
|
5 | 64 | L.Routing.Localization = L.Class.extend({
|
|
208 | 267 | }
|
209 | 268 | },
|
210 | 269 |
|
211 |
| - 'es': { |
212 |
| - directions: { |
213 |
| - N: 'norte', |
214 |
| - NE: 'noreste', |
215 |
| - E: 'este', |
216 |
| - SE: 'sureste', |
217 |
| - S: 'sur', |
218 |
| - SW: 'suroeste', |
219 |
| - W: 'oeste', |
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' |
228 |
| - }, |
229 |
| - instructions: { |
230 |
| - // instruction, postfix if the road is named |
231 |
| - 'Head': |
232 |
| - ['Derecho {dir}', ' sobre {road}'], |
233 |
| - 'Continue': |
234 |
| - ['Continuar {dir}', ' en {road}'], |
235 |
| - 'TurnAround': |
236 |
| - ['Dar vuelta'], |
237 |
| - 'WaypointReached': |
238 |
| - ['Llegó a un punto del camino'], |
239 |
| - 'Roundabout': |
240 |
| - ['Tomar {exitStr} salida en la rotonda', ' en {road}'], |
241 |
| - 'DestinationReached': |
242 |
| - ['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}' |
249 |
| - }, |
250 |
| - formatOrder: function(n) { |
251 |
| - return n + 'º'; |
252 |
| - }, |
253 |
| - ui: { |
254 |
| - startPlaceholder: 'Inicio', |
255 |
| - viaPlaceholder: 'Via {viaNumber}', |
256 |
| - 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' |
266 |
| - } |
267 |
| - }, |
| 270 | + 'es': spanish, |
| 271 | + 'sp': spanish, |
| 272 | + |
268 | 273 | 'nl': {
|
269 | 274 | directions: {
|
270 | 275 | N: 'noordelijke',
|
|
0 commit comments