Changing the Map Language

When creating a map, it's possible to control the displayed language. You can set this via the mapOptions, specifically by using the language option.

// Set language to Japanese
const options = {
    'mapOptions': {
        'language': 'ja'
    }
};

// Create the map
const map = mapbox.map(locations, options);

With that in place, most text on the map will appear in your specified language...

Example of map in Japanese

Language Code Format

According to the Mapbox docs (opens new window), the language must be a BCP-47 language code (opens new window).