You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
Repository navigation
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
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 out en for mul) match the preference:
if (language.length > mostSpecificLanguage.length) {
mostSpecificLanguage = language;
}
}
if ([mostSpecificLanguage isEqualToString:@"mul"]) {
return acceptsEnglish ? @"en" : nil;
}
This logic was introduced because NSBundle prefers English over mul as a last resort. We should add a special case for English being above mostSpecificLanguage in preferencesArray.
Activity
1ec5 commentedon May 14, 2018
Fixed in #11907 on the release-boba branch for iOS map SDK v4.0.1 and macOS map SDK v0.7.1.