Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

Settlement subdivision and POI labels are not translated to the device locale language in Standard style

未关闭
#2,702 0 条评论 1 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
45/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
停滞
技术栈
android, kotlin
领域
mobile

调研方向

首先,在法语设备 locale 下使用 Mapbox Standard style 的 Android 上复现该问题,重点关注 settlement-subdivision-label 和 poi-label 图层。检查已记录的 localizeLabels() 行为以及可用的 name 和 name_en feature 属性;当两种标签类型都使用设备 locale,而不是默认使用英语时,即表示完成。

由索引模型根据 Issue 内容生成。

描述

bug :beetle:

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.

Image

Steps to reproduce:

  1. Set device language to French
  2. Load a map using Mapbox Standard style
  3. 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

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

mapbox/mapbox-maps-android 的其他 Issue

查看 mapbox/mapbox-maps-android 的全部 Issue

相似的 Issue

更多 Kotlin Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。