Skip to content

fix(preview): translate the sandbox boot phase labels - #6442

Merged
pedrofrxncx merged 1 commit into
mainfrom
fix/booting-visual-phase-labels-i18n-w1
Aug 24, 2026
Merged

fix(preview): translate the sandbox boot phase labels#6442
pedrofrxncx merged 1 commit into
mainfrom
fix/booting-visual-phase-labels-i18n-w1

Conversation

@pedrofrxncx

@pedrofrxncx pedrofrxncx commented Aug 23, 2026

Copy link
Copy Markdown
Collaborator

The four boot-phase pill headlines in BootingVisual (apps/web/src/components/sandbox/preview/booting-visual.tsx) — "Reserving sandbox", "Cloning your repo", "Installing packages", "Starting your preview" — were hardcoded English strings rendered to every user while a sandbox boots, regardless of locale, violating the repo's i18n rule (all user-facing copy in apps/web/src must go through t()).

A pt-br user watching their sandbox boot sees English text mixed into an otherwise-localized preview panel; this makes the boot sequence consistent with the rest of the app's i18n coverage.

What changed:

  • Added sandbox.bootingVisual.phaseProvision/phaseCloning/phaseInstall/phaseDev keys to i18n/en/sandbox.ts and their pt-br mirrors (phaseDev reuses the existing sandbox.preview.startingPreview wording: "Starting your preview"/"Iniciando seu preview").
  • booting-visual.tsx's PHASE_LABELS constant is now a phaseLabels(t) function computed from useT(), matching the pattern already used elsewhere in this directory (e.g. path-param-picker-chip.tsx's kindLabels).

No behavior change beyond the string source — same four labels, same phase-to-label mapping, just localized.

To confirm: bunx tsc --noEmit in apps/web (green — TranslationKey compile-check covers the pt-br mirror), bunx oxlint on the three touched files (0 warnings/errors), bun run fmt (no changes). No unit test exists for this presentational component and none is warranted here.


Summary by cubic

Localizes the sandbox boot-phase labels in BootingVisual by replacing hardcoded English strings with i18n keys, so users see phase labels in their locale. Previously all users saw English; now labels resolve via t() with en and pt-br coverage; no visual or logic changes beyond localization.

  • Adds sandbox.bootingVisual.phaseProvision/phaseCloning/phaseInstall/phaseDev in en and pt-br (phaseDev keeps the existing “Starting your preview” wording).
  • Replaces the PHASE_LABELS constant with a phaseLabels(t) mapper and passes labels into pillHeadline; integrates useT().
  • Claim-phase override behavior stays the same; only the default phase label source changes.
  • No migration required.

Written for commit a9f41ea. Summary will update on new commits.

Review in cubic

The four provision/cloning/install/dev pill headlines in BootingVisual
were hardcoded English strings shown to every user regardless of locale.
Route them through t() with new sandbox.bootingVisual.phase* keys,
mirrored in pt-br.
@pedrofrxncx
pedrofrxncx merged commit 2ceb045 into main Aug 24, 2026
34 checks passed
@pedrofrxncx
pedrofrxncx deleted the fix/booting-visual-phase-labels-i18n-w1 branch August 24, 2026 15:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant