mapbox / mapbox/MapboxGeocoder.swift
GeocodeOptions.locale loses script and country codes
まだ誰も着手していません。
- 主要言語
- 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
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
GeocodeOptions が locale を Geocoding API に渡している、MapboxGeocoder/MBGeocodeOptions.swift の 101 行目付近から始めます。locale がどのように language query parameter になるかを追跡し、zh-Hant-HK のような locale がそのまま維持されることを確認します。完全な locale identifier が、単なる言語コードだけではなく渡されれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- swift
- 領域
- api
- issue の種類
- バグ
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 活発さ
- 停滞
- 明瞭さ
- 明確に書かれている
- 初心者へのやさしさ
- 45/100