This repository was archived by the owner on Aug 8, 2023. It is now read-only.
Label localization prioritizes other languages over English despite user preference #11906
Labels
bug
iOS
Mapbox Maps SDK for iOS
localization
Human language support and internationalization
macOS
Mapbox Maps SDK for macOS
Milestone
As of #11651, if the Preferred Languages setting lists English followed by another language that the Mapbox Streets source includes, such as French,
-[MGLStyle localizeLabelsIntoLocale:]
prefers that other language instead of English.The following code will only ever resolve to English if none of the languages in
MGLMapboxStreetsAlternativeLanguages
(which swaps outen
formul
) match the preference:mapbox-gl-native/platform/darwin/src/MGLVectorTileSource.mm
Lines 115 to 125 in 62c875e
This logic was introduced because NSBundle prefers English over
mul
as a last resort. We should add a special case for English being abovemostSpecificLanguage
inpreferencesArray
./cc @bsudekum @friedbunny
The text was updated successfully, but these errors were encountered: