Skip to content

Settlement subdivision and POI labels are not translated to the device locale language in Standard style #2702

@sylvainBrunet

Description

@sylvainBrunet

Environment

  • Android OS version: All
  • Devices affected: All
  • Maps SDK Version: 11.17.1

Observed behavior and steps to reproduce

When using Mapbox Standard style, map labels for settlement-subdivision-label and poi-label layers are displayed in English instead of the device's locale language.

The phone is configured in French, but labels like arrondissements and some POIs are shown in English as you can see in the screenshot below.

Image

Steps to reproduce:

  1. Set device language to French
  2. Load a map using Mapbox Standard style
  3. Observe that settlement-subdivision-label and poi-label are displayed in English

Expected behavior

The map labels should display in the user's device locale language (French in this case). Labels for settlement subdivisions (arrondissements) and points of interest should respect the device's language settings.

Notes / preliminary analysis

According to the documentation, localizeLabels() does not work with Mapbox Standard style

However, the Feature Properties documentation shows that multilingual data is available in the tileset:

  • name - Name in local language
  • name_en - Name in English

This suggests the Standard style is using name_en by default instead of respecting the device locale.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug 🪲Something isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions