Tour step button labels are hardcoded in English and cannot be localized
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 2/5
- Tiempo estimado
- 1-3 horas
- Aptitud para principiantes
- 82/100
- Tipo de issue
- Nueva funcionalidad
- Claridad
- Bien especificado
- Estado de actividad
- Activo
- Stack tecnológico
- react, typescript
- Área
- frontend, internationalization
Línea de trabajo
Empieza en src/forks/Tour/TourStep.tsx, donde se ensamblan las cadenas hardcodeadas "Done"/"Next"/"Back"/"Close tour", el contador {n} of {total} y el fallback "Tour step", y lee TourStepProps/TourProps junto a él. Luego fíjate en cómo un componente ui-common vecino recibe una prop con un valor predeterminado de catálogo uic.*, y sigue ese patrón para cada etiqueta. Hecho significa que cada cadena listada proviene del catálogo y se puede sobrescribir mediante una prop, con las pruebas o stories existentes del componente pasando.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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).
- Lenguaje dominante
- TypeScript
- Estrellas
- 2
- Forks
- 0
- Merge medio
- 17 h 58 min
- PR fusionados (30 d)
- 25
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Sin plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de lablup/ui-common
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 66/100
Los mantenedores suelen responder en 1 día
Todos los issues de lablup/ui-common
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
super-productivity/super-productivity#12128 · 2 comentarios ·
Los mantenedores suelen responder en 1 día
-
A docs change can fail pnpm check, because outreach lint and gen:types both write .astro/ at oncePosiblemente ocupada @2389400626lh-ops la tomó hoy. AbiertoArea: Infrastructure Area: Outreach Bug Difficulty: Low Good First Issue Priority: Low
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
DouglasNeuroInformatics/OpenDataCapture#1956 ·
Los mantenedores suelen responder en 1 día
-
enhancement
Dificultad 2/5 1-3 horas Aptitud para principiantes 77/100
Los mantenedores suelen responder en 1 día
-
`getClientCredentialsToken()` sends `scopes` (comma-joined) instead of the OAuth `scope` parameterAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
-
Dificultad 1/5 1-3 horas Aptitud para principiantes 72/100
justyns/silverbullet-ai#199 ·