Tour step button labels are hardcoded in English and cannot be localized
メンテナーはふだん 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 の本文から書いたものです。
説明
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
- Render a
Tourwith one or moreTourSteps in an app whose locale is not English (for example Korean), withuiCommonMessagespassed to the InternationalizationProvider. - Open the tour.
- 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 asdist/forks/Tour/TourStep.jsin0.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".TourStepPropsandTourPropsdeclare 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
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
lablup/ui-common のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
メンテナーはふだん 1 日以内に返信
lablup/ui-common の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
super-productivity/super-productivity#12128 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
A docs change can fail pnpm check, because outreach lint and gen:types both write .astro/ at once対応中かも @2389400626lh-ops が今日担当しました。 オープンArea: Infrastructure Area: Outreach Bug Difficulty: Low Good First Issue Priority: Low
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
DouglasNeuroInformatics/OpenDataCapture#1956 ·
メンテナーはふだん 1 日以内に返信
-
enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 77/100
メンテナーはふだん 1 日以内に返信
-
`getClientCredentialsToken()` sends `scopes` (comma-joined) instead of the OAuth `scope` parameterオープン
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
-
難易度 1/5 1〜3時間 初心者へのやさしさ 72/100
justyns/silverbullet-ai#199 ·