Skip to content

feat(studio): internationalize the browser UI - #128

Merged
phodal merged 2 commits into
QoderAI:mainfrom
GCGH159:main
Aug 29, 2026
Merged

feat(studio): internationalize the browser UI#128
phodal merged 2 commits into
QoderAI:mainfrom
GCGH159:main

Conversation

@GCGH159

@GCGH159 GCGH159 commented Aug 28, 2026

Copy link
Copy Markdown
Contributor

Summary

Adds react-i18next with bundled English and Simplified Chinese resources across thirteen Studio namespaces in packages/harness-studio. The language is auto-detected from the browser, switchable from the context bar, and persisted in localStorage following the existing theme-toggle pattern.

  • Component copy, aria labels, status copy, and error fallbacks now resolve through t(); Intl date/number formatting follows the active Studio language while machine data (commit messages, report payloads, file paths, protocol names) stays verbatim.
  • Model helpers (studioDestinations, studioOverview, capabilitySummary) accept a t parameter; unit tests pass a real English t bound to the bundled resources.
  • Structural parity between en and zh-CN resources is guarded by a vitest check; the Playwright suite gains auto-detect, manual switch, and persistence coverage.

Follows docs/specs/2026-08-28-studio-i18n.md. Validated with the Studio unit suite (297 passing), the resource parity check, tsc, and the harness-studio build.

@GCGH159
GCGH159 force-pushed the main branch 7 times, most recently from a79e4fa to 379b20c Compare August 29, 2026 10:44
Add react-i18next with bundled en and zh-CN resources across thirteen
Studio namespaces. Language is auto-detected from the browser, switchable
from the context bar, and persisted in localStorage following the theme.
Rebased onto the Project-scoped Studio workbench; upstream additions
(Project sidebar, project-aware empty states, usage/context reporting)
resolve copy through t() with matching resource entries.

Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
Completes docs/specs/2026-08-28-studio-i18n.md by translating the Customization, AgentReact, and Artifact collaboration surfaces while preserving observed server and protocol data verbatim. It also synchronizes the document language without refetching runtime state on language changes.

Validated with Studio typecheck/build, 64 Vitest files, focused language and layout Playwright coverage, and the full 55-test browser suite with one pre-existing theme-load race passing on retry.

Co-authored-by: Codex (GPT 5.6 Sol) <codex@openai.com>
@phodal
phodal merged commit 19c9716 into QoderAI:main Aug 29, 2026
4 checks passed
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.

2 participants