Search code examples
google-maps-api-3google-directions-api

Display Google Map Direction instructions in different languages


I am using Google Map service. Now I integrated Google Map Direction into my application, but all direction instructions are English.

Anyone know the way to translate it into other languages? (e.g Vietnamese). You can see the site: maps.google.com, when you use your own language, all the direction instructions are translated into your language. That's what I need.

Thanks :)


Solution

  • The directions service will either use the browser's configured language or you can specify the language to use when loading the API.

    From the API docs:

    Textual directions will be provided using the browser's preferred language setting, or the language specified when loading the API JavaScript using the language parameter. (For more information, see Localization.)