BitNumberField spin buttons fall back to undocumented English labels

クローズ 初心者向け
#14,562 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

関連するプルリクエストがすでにマージされています。

  • #14595 @msynk による — マージ済み

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
62/100
issue の種類
ドキュメント
明瞭さ
おおむね明確
活発さ
活発
技術スタック
csharp

調査の方向性

まず BitNumberField の IncrementAriaLabel、DecrementAriaLabel、クリアボタンのラベルパラメータに関する XML ドキュメントコメントを確認し、次にデモのパラメータ表でそれらの既定値が null と記載されている箇所を確認してください。そのうえで、コンポーネントが実際に描画する英語のフォールバックテキストと比較してください。最低限の完了状態は、各ラベルのフォールバックテキストがドキュメントに明記されていることです。フォールバックテキストを多言語化すべきかどうかは、コーディングに入る前にメンテナーが判断・確認すべき事項です。

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

説明

area / BlazorUI

When IncrementAriaLabel and DecrementAriaLabel are left unset, BitNumberField names its spin buttons "Increase value" and "Decrease value". The docs don't say so: the XML docs only describe the parameters, and the demo's parameter table lists their default as null. A localized page gets no hint that there is English text to replace until someone reads the rendered markup.

On a Persian page that doesn't set them, a screen reader reads "Increase value, button" in the middle of a Persian form. With HideInput the buttons are the only tab stops, so it comes up every time. The clear button ("Clear value") and the loading announcement ("Loading") fall back to English the same way.

<div dir="rtl" lang="fa">
    <BitNumberField @bind-Value="hours" Label="ساعت" Mode="BitSpinButtonMode.Spread" />
</div>

@code {
    private int hours = 1;
}

Expected: the docs give the default the buttons actually get.
Actual: the docs say null, and the buttons are named "Decrease value" and "Increase value".

Seen with Bit.BlazorUI 11.0.0-pre-16, the same on develop.

主要言語
C#
スター
1.4k
フォーク
264
平均マージ
10時間 28分
マージ済み PR(30日)
477

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

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

bitfoundation/bitplatform のほかの issue

bitfoundation/bitplatform の issue をすべて見る

似ている issue

C# の issue をもっと見る

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

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