mapbox / mapbox/MapboxGeocoder.swift

GeocodeOptions.locale loses script and country codes

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

还没有人认领这个 Issue。

bug
主要语言
Swift
星标
133
派生
46
PR 合并指标
30 天内没有已合并 PR

描述

GeocodeOptions only passes along the bare language code to the Geocoding API. For example, even if the system locale is Traditional Chinese (Hong Kong) and the developer sets the locale property to Locale.current, the language query parameter ends up being zh instead of zh-Hant-HK. GeocodeOptions should pass along the entire locale identifier; it would be API’s responsibility to strip any components it doesn’t need or understand.

/cc @apendleton

贡献指南

打开贡献指南

从这里开始

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

调研方向

从 MapboxGeocoder/MBGeocodeOptions.swift 第 101 行附近开始,这里 GeocodeOptions 将 locale 传递给 Geocoding API。跟踪 locale 如何成为 language query parameter,并验证像 zh-Hant-HK 这样的 locale 是否保持不变。只有传递完整的 locale identifier,而不只是其基本语言代码,才算完成。

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

评估

技术栈
swift
领域
api
Issue 类型
缺陷
难度
2/5
预计耗时
1-3 小时
活跃度
停滞
描述清晰度
描述清楚
新手友好度
45/100

把新 issue 发到你的邮箱

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