Skip to content

Map localization is not working according to the device's locale #2350

@rahulpatracropsly

Description

@rahulpatracropsly

Environment

  • Xcode version: 16.3
  • iOS version: 18.5
  • Devices affected: All
  • Maps SDK Version: 11.6.0

Observed behavior and steps to reproduce

Map labels do not update based on the user's phone locale.

Expected behavior

The Map labels should according to user's phone locale

Notes / preliminary analysis

Attempted to localize the map labels using the following code:
try? mapView.mapboxMap.localizeLabels(into: Locale(identifier: "da"))

Expected the map to display labels in Danish ("da"), but there was no visible change—the labels remained in the default language (English).

Additional links and references

In the screenshot below, the label should be displayed as 'Helsingør' in Danish, but it is shown as 'Elsinore' instead.

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug 🪲Something is broken!

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions