mapbox-maps-ios icon indicating copy to clipboard operation
mapbox-maps-ios copied to clipboard

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

Open rahulpatracropsly opened this issue 5 months ago • 1 comments

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

rahulpatracropsly avatar Jul 17 '25 05:07 rahulpatracropsly