Language

4 posts / 0 new
Last post
alanfuller
Language

Is there any way top set the language  for 

L.mapquest.directionsControl({

Thanks, in anticiptation


MQBrianCoakley
The control itself does not

The control itself does not have language control. But you can control the language of the route results. Here is how I did it.

 

        L.mapquest.directionsControl({
          routeSummary: {
            enabled: false
          },
          narrativeControl: {
            enabled: true,
            compactResults: false
          },
          directions: {
            options:{
              locale: 'es_ES',
              avoids: ['toll road']
            }
          }
        }).addTo(map);

 


alanfuller
As you say, that does half

As you say, that does half the job.

Is there any plan to properly localize - there really are only a few strings - and the major languages doing the major western Spanish, French and German shouldn't be too hard?

Am I missing something?


MQBrianCoakley
There is no plan to properly
There is no plan to properly localize the controls at this time.