mapbox / mapbox/mapbox-maps-android
Settlement subdivision and POI labels are not translated to the device locale language in Standard style
Dieses Issue hat noch niemand übernommen.
- Vorherrschende Sprache
- Kotlin
- Sterne
- 578
- Forks
- 161
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
Environment
- Android OS version: All
- Devices affected: All
- Maps SDK Version: 11.17.1
Observed behavior and steps to reproduce
When using Mapbox Standard style, map labels for settlement-subdivision-label and poi-label layers are displayed in English instead of the device's locale language.
The phone is configured in French, but labels like arrondissements and some POIs are shown in English as you can see in the screenshot below.
Steps to reproduce:
- Set device language to French
- Load a map using Mapbox Standard style
- Observe that settlement-subdivision-label and poi-label are displayed in English
Expected behavior
The map labels should display in the user's device locale language (French in this case). Labels for settlement subdivisions (arrondissements) and points of interest should respect the device's language settings.
Notes / preliminary analysis
According to the documentation, localizeLabels() does not work with Mapbox Standard style
However, the Feature Properties documentation shows that multilingual data is available in the tileset:
- name - Name in local language
- name_en - Name in English
This suggests the Standard style is using name_en by default instead of respecting the device locale.
Beitragsleitfaden
Erste Schritte
- Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
- Forke das Repository und arbeite in einem Branch.
- Öffne einen Pull Request, der die Issue-Nummer nennt.
Rechercherichtung
Beginne damit, das Problem auf Android mit dem Mapbox Standard style und einer französischen Gerätesprache zu reproduzieren, wobei du dich auf die Layer settlement-subdivision-label und poi-label konzentrierst. Prüfe das dokumentierte Verhalten von localizeLabels() und die verfügbaren Feature-Eigenschaften name und name_en; abgeschlossen ist die Aufgabe, wenn beide Label-Typen die Gerätesprache verwenden, statt standardmäßig auf Englisch zurückzufallen.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- android, kotlin
- Bereich
- mobile
- Issue-Typ
- Bug
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 45/100