Settlement subdivision and POI labels are not translated to the device locale language in Standard style
还没有人认领这个 Issue。
评估
调研方向
首先,在法语设备 locale 下使用 Mapbox Standard style 的 Android 上复现该问题,重点关注 settlement-subdivision-label 和 poi-label 图层。检查已记录的 localizeLabels() 行为以及可用的 name 和 name_en feature 属性;当两种标签类型都使用设备 locale,而不是默认使用英语时,即表示完成。
由索引模型根据 Issue 内容生成。
描述
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.
- 主要语言
- Kotlin
- 星标
- 578
- 派生
- 164
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
mapbox/mapbox-maps-android 的其他 Issue
-
bug :beetle:
难度 2/5 1-3 小时 新手友好度 76/100
mapbox/mapbox-maps-android#2727 ·
-
bug :beetle:
难度 4/5 3-5 天 新手友好度 38/100
mapbox/mapbox-maps-android#2736 ·
-
bug :beetle:
难度 5/5 一周以上 新手友好度 22/100
mapbox/mapbox-maps-android#2734 · 1 个 reaction ·
-
难度 4/5 3-5 天 新手友好度 48/100
mapbox/mapbox-maps-android#2733 ·
-
bug :beetle:
难度 4/5 3-5 天 新手友好度 50/100
mapbox/mapbox-maps-android#2732 ·
查看 mapbox/mapbox-maps-android 的全部 Issue
相似的 Issue
-
enhancement
难度 2/5 1-3 小时 新手友好度 67/100
维护者通常 1 天内回复
-
afk-ok area:agents size:S
难度 2/5 1-3 小时 新手友好度 82/100
enorm-labs/event-junkie#3523 ·
维护者通常 1 天内回复
-
submit-adaption submit-adaption-pre
难度 1/5 1 小时以内 新手友好度 82/100
BetterAndroid/android-notification-icon-project#750 · 1 条评论 ·
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 70/100
openbase/planetsudo.engine#107 ·
维护者通常 1 天内回复
-
native-cpu: -Wreturn-type in skainet_row_threads.c:150 (worker fn has no return)可能已有人在做 @Doomguy-BFG9000 今天认领。 未关闭good first issue size:xs skill:native
难度 1/5 1 小时以内 新手友好度 78/100
SKaiNET-developers/SKaiNET#1358 · 1 条评论 ·
维护者通常 1 天内回复