mapbox-maps-ios
mapbox-maps-ios copied to clipboard
Map localization is not working according to the device's locale
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.