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

Open Beginner friendly
#168 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
82/100
Issue type
Feature
Clarity
Clearly specified
Activity status
Active
Tech stack
react, typescript

Research direction

Start in src/forks/Tour/TourStep.tsx, where the hardcoded "Done"/"Next"/"Back"/"Close tour" strings, the {n} of {total} counter and the "Tour step" fallback are assembled, and read TourStepProps/TourProps alongside it. Then look at how a neighbouring ui-common component takes a prop with a uic.* catalog default, and follow that pattern for each label. Done means every listed string comes from the catalog and can be overridden by a prop, with the component's existing tests or stories passing.

Written by the indexing model from the issue text.

Description

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

Dominant language
TypeScript
Stars
2
Forks
0
Avg merge
17h 58m
Merged PRs (30d)
25

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from lablup/ui-common

All issues in lablup/ui-common

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.