mapbox / mapbox/MapboxGeocoder.swift

GeocodeOptions.locale loses script and country codes

オープン
#109 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

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. リポジトリをフォークし、ブランチを切って変更します。
  4. 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

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。