Language detection should prioritise a base language match over an exact match later in the order

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

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

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
62/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
typescript

調査の方向性

Start by tracing how browser language preferences are matched to the form's button language, especially when the form does not specify a language. Reproduce the case with only es-PA configured; the expected result is Spanish buttons rather than English. The issue does not name a file or test, so locate the language-detection entry point and its related tests before making changes.

索引モデルが issue の本文から書いたものです。

説明

Expected Behaviour

Users can configure multiple languages in the browser in the order of preference. These include specific language, such as 'es-PA' for Spanish spoken in Panama. If the user specifies 'es-PA' and the form doesn't define a language, then the form buttons should be in Spanish.

Observed Behaviour

The form buttons are in English.

Reproduction Steps

Steps:

  1. Configure the browser to use 'es-PA' and nothing else
  2. Load a form which doesn't specify a language
Additional Context

Reported on the forum with additional use cases: https://forum.getodk.org/t/web-forms-1-1-1-six-issues-ui-language-fallback-title-wrapping-guidance-hints-region-names-contrast-select-one-external/58660

主要言語
TypeScript
スター
38
フォーク
24
PR マージ指標
30日以内にマージされた PR はありません

環境構築

  • Dockerfile・Docker Compose ファイルなし
  • プルリクエストのテンプレートあり
  • コントリビューションガイドなし

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

getodk/web-forms のほかの issue

getodk/web-forms の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

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

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