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

Aperta Adatta ai principianti
#168 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
82/100
Tipo di issue
Funzionalità
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
react, typescript

Direzione di ricerca

Inizia in src/forks/Tour/TourStep.tsx, dove si assemblano le stringhe hardcoded "Done"/"Next"/"Back"/"Close tour", il contatore {n} of {total} e il fallback "Tour step", e leggi TourStepProps/TourProps accanto. Poi guarda come un componente ui-common vicino riceve una prop con un default di catalogo uic.*, e segui quel pattern per ogni etichetta. Fatto significa che ogni stringa elencata proviene dal catalogo e può essere sovrascritta da una prop, con i test o le stories esistenti del componente che passano.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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).

Lingua principale
TypeScript
Stelle
2
Fork
0
Merge medio
17h 58m
PR unite (30g)
25

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di lablup/ui-common

Tutte le issue di lablup/ui-common

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.