Change your map’s label language

When building a map from a Mapbox template style, map labels will appear in English by default. You can change the language of your map's labels directly in the Mapbox Studio style editor or dynamically using Mapbox GL JS, the Mapbox Maps SDK for Android, or the Mapbox Maps SDK for iOS. This guide also outlines changing label language in Mapbox Studio Classic.

Languages available

All Mapbox template maps use the Mapbox Streets vector tileset for map features. In this tileset, there are different name fields for each label layer. For a complete list of supported languages, see the Mapbox Streets v8 tileset documentation.

Language support in the Navigation SDKs

Looking for information about the languages supported by the Mapbox Navigation SDKs? See our documentation on internationalization for the Mapbox Navigation SDK for iOS and the Mapbox Navigation SDK for Android.

Right-to-left language support

Mapbox GL JS

The mapbox-gl-rtl-text plugin adds support for text written in the Arabic and Hebrew languages.

Mapbox Studio

Mapbox Studio loads the mapbox-gl-rtl-text plugin by default.

Change label language in Mapbox Studio


In template styles built with style components, you can change the language of labels using component properties. The available components vary from style to style, but for each component containing labels:

  1. Click the name of the component.
  2. Find the Language property and select a language from the dropdown menu.
  3. Repeat for all components containing labels.


To change the language of individual layers in the Layers tab:

  1. Create a new style or edit an existing one in Mapbox Studio.
  2. Switch to the Layers tab.
  3. Select the layer that contains the labels you'd like to edit.
  4. Under the Text tab, click the value next to Text field. A panel will appear with all language options for the layer.
  5. Click the desired language; the map will update on select.

Change label language dynamically

Mapbox GL JS

If you are comfortable with JavaScript, you can change the language of your labels dynamically by using the .setLayoutProperty() method in Mapbox GL JS. See the language switcher Mapbox GL JS example for more details.

You can also use the Mapbox GL Language plugin to automatically change the layers of a map style to use the text-field that matches the browser language. Read more about this and other capabilities of the Mapbox GL Language plugin on GitHub.

Mapbox Maps SDK for Android

With the Mapbox Maps SDK for Android, you can change the language of labels on your map dynamically at runtime. For example, here's how you would change a map's city labels to Russian:

map.getStyle(new Style.OnStyleLoaded() {
public void onStyleLoaded(@NonNull Style style) {
Layer settlementLabelLayer = style.getLayer("settlement-label");
if (settlementLabelLayer != null) {

You could also use the Mapbox Localization Plugin for Android if you want to change the language of the entire map all at once. This plugin detects the set language of the Android device and then changes all map text to that language. The plugin also enables you to change the entire map to a specific language. This could be useful if you want to provide your user the ability to switch the map to a specific language at a specific time, rather than locking the map to the device's set default language or a particular language.

Mapbox Maps SDK for iOS

With the Mapbox Maps SDK for iOS, you can automatically change the language of labels to the system's preferred language at runtime.

func mapView(_ mapView: MGLMapView, didFinishLoading style: MGLStyle) {
style.localizeLabels(into: nil)

You can also change labels to a specific language, either throughout the map or only for certain kinds of labels:

// 'style' in this case refers to an MGLStyle object.
let layer = style.layer(withIdentifier: "place-city-sm") as! MGLSymbolStyleLayer
let spanish = Locale(identifier: "es")
layer.text = layer.text.mgl_expressionLocalized(into: spanish)

See the Maps SDK for iOS documentation for more information.

Change label language in Mapbox Studio Classic

Most of the Mapbox preset styles in Mapbox Studio Classic will have a @name variable in the CartoCSS. This is where you can set the language. Below are the options and an example of how to set the value of @name to '[name_en]' or English labels.

// Language options: name (local), name_en, name_fr, name_es, name_de
@name: '[name_en]';

Swap out any of the language options inside the brackets to change your labels to that language.

Next, you must set all the labels with the property text-name with the value @name. For example:

#country_label[zoom>=3] {
  text-name: @name;
Was this page helpful?