Tour step button labels are hardcoded in English and cannot be localized

オープン 初心者向け
#168 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

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

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

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
82/100
issue の種類
機能追加
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
react, typescript

調査の方向性

src/forks/Tour/TourStep.tsx から始めてください。ここでは、ハードコードされた "Done"/"Next"/"Back"/"Close tour" という文字列、{n} of {total} カウンター、"Tour step" フォールバックが組み立てられており、TourStepProps/TourProps も併せて読んでください。次に、隣接する ui-common コンポーネントが uic.* カタログのデフォルトを持つ prop をどのように受け取るかを確認し、各ラベルについてそのパターンに従ってください。完了とは、列挙されたすべての文字列がカタログから取得され、prop で上書きでき、コンポーネントの既存のテストまたは stories が通ることを意味します。

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

説明

frontdesk
Summary

TourStep in ui-common's Tour fork (@lablup/ui-common/lab) renders its control labels as hardcoded English strings: "Done", "Next", "Back", "Close tour", plus the step counter {n} of {total} and the fallback dialog label "Tour step". None of them is a prop or goes through ui-common's message catalog, so a product cannot localize them. Every other built-in ui-common string is a prop with a catalog default.

Steps to reproduce
  1. Render a Tour with one or more TourSteps in an app whose locale is not English (for example Korean), with uiCommonMessages passed to the InternationalizationProvider.
  2. Open the tour.
  3. Look at the step callout's buttons.
Expected / Actual
  • Expected: the button labels, the close-button label and the step counter follow the active locale through the uic.* catalog, and each can be overridden with a prop.
  • Actual: they always read "Next" / "Done" / "Back" / "Close tour" / "1 of 3" in English.
Evidence
  • src/forks/Tour/TourStep.tsx (built as dist/forks/Tour/TourStep.js in 0.2.0-alpha.21.canary-20261111033103-c445de1bd): label: isLastStep ? "Done" : "Next", label: "Back", closeButtonLabel: "Close tour", `${index + 1} of ${count}`, label: typeof heading === "string" ? heading : "Tour step".
  • TourStepProps and TourProps declare no label props.
Notes
  • Seen in backend.ai-webui's admin view-switch tour, where the "Done" button stays in English under the Korean UI.
  • Scope: only the hardcoded Tour strings. Adding the webui translations is separate work.

Reported via Teams (Quill). Requested by @yomybaby. The Teams thread is in this issue's Teams thread field (organization members only).

主要言語
TypeScript
スター
2
フォーク
0
平均マージ
17時間 58分
マージ済み PR(30日)
25

環境構築

はじめの一歩

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

lablup/ui-common のほかの issue

lablup/ui-common の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

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

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