feat(studio): internationalize the browser UI - #128
Merged
Conversation
GCGH159
force-pushed
the
main
branch
7 times, most recently
from
August 29, 2026 10:44
a79e4fa to
379b20c
Compare
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 inlocalStoragefollowing the existing theme-toggle pattern.t();Intldate/number formatting follows the active Studio language while machine data (commit messages, report payloads, file paths, protocol names) stays verbatim.studioDestinations,studioOverview,capabilitySummary) accept atparameter; unit tests pass a real Englishtbound to the bundled resources.enandzh-CNresources 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 theharness-studiobuild.