Skip to content

feat(fork): translate ++ screens into every locale - #152

Merged
wianvdm merged 2 commits into
mainfrom
feat/plusplus-i18n
Nov 20, 2026
Merged

wianvdm merged 2 commits into
mainfrom
feat/plusplus-i18n

Conversation

@wianvdm

@wianvdm wianvdm commented Nov 20, 2026

Copy link
Copy Markdown
Owner

The v0.1.11 merge translated upstream's UI. Fork-owned (++) copy stayed English: vite.config.ts excluded apps/*/src/plusplus/** from t3code/no-untranslated-copy, and five fork strings in upstream settings files carried disable comments.

What changed

  • Exclusion removed. vite.config.ts no longer exempts ++ paths. vp run i18n:untranslated reports 0 for web, mobile and client-runtime.
  • Web ++ copy wrapped: context bridge settings, token-efficiency settings and provenance, upstream release row, sidebar pill and toasts, the Processes panel (labels, statuses, tooltips), and monetary usage. Logic helpers take resolve: MessageResolver = m (upstream pattern), and components pass useMessages().
  • Mobile ++ copy wrapped: token-efficiency section and provenance, monetary usage text.
  • Upstream files: the three context-bridge entries in settingsSearch.ts now use msg() for title and searchTerms. "Fork version" in AboutVersionTitle.tsx and the GitHub Releases message in UpdateTrackSwitchDialog.tsx are wrapped too. All five disable comments are gone.
  • Catalogs: regenerated with gt generate, which added 100 web keys and 23 mobile keys and removed none. Every new key is hand-translated into de, es, fr, ja, ko, pt-BR, ru, sv and zh. On Windows, gt generate reorders the whole catalog, so I rebuilt each file in main's key order. The catalog diffs are additions only.
  • Left in English on purpose: buildUpstreamMergePrompt is a prompt sent to an agent, so it keeps English with a reasoned disable comment. Repository names, tags, environment names, revisions and error details are passed as variables.

Registry (plusplus/seams.json)

  • New generated entries for the 10 mobile catalogs (generated.mobile-i18n-catalog-*).
  • Web catalog deltas raised to [128, 6]. Their reason now mentions the added ++ translations.
  • Legacy deltas updated to the actual numstat: settingsSearch.ts [23, 0], AboutVersionTitle.tsx [2, 3], UpdateTrackSwitchDialog.tsx [20, 14] (raised by 4), vite.config.ts [0, 2].

Not covered

sourceLabel, refreshOutcomeMessage and ATTRIBUTION_TEXT (for example "Cached upstream", "Refresh updated. … is active.") come from packages/plusplus. The base package has no GT dependency and is not in either app's gt.config.json scan, and the lint rule does not cover it. Translating them would need a client-side copy sibling, which is a separate change.

Verification

  • vp run i18n:check: passes (run from a scratch copy that spawns gt.cmd with shell: true, since the script cannot spawn gt on Windows).
  • vp run check:changed: format, lint, knip, typecheck (44 packages), tests (15 files) and react compiler pass. Fork Boundaries failed only on a Windows Filename too long under .repos/. Rerun directly with core.longpaths=true, it passes.
  • vp test run on ++ tests: web unit 188 passed, web browser 46 passed (5 files), mobile 17 passed. No tests were removed or changed.

Model and harness: Claude Opus 5.5 via Claude Code in T3 Code.

🤖 Generated with Claude Code

Wrap the fork-owned copy in apps/{web,mobile}/src/plusplus and the five
fork strings in upstream settings files with <T>, gt() and msg(), add the
new catalog keys with hand translations for de, es, fr, ja, ko, pt-BR, ru,
sv and zh, and drop the lint exclusion that let ++ copy skip
t3code/no-untranslated-copy.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@github-actions github-actions Bot added size:XXL seam Advisory: PR touches a fork/upstream integration seam. sync-conflict Advisory: PR touches fork-diverged files likely to conflict on upstream sync. labels Nov 20, 2026
@github-actions

github-actions Bot commented Nov 20, 2026 •

Copy link
Copy Markdown

Thread transfer impact

✅ Thread transfer remains within every enforced ceiling.

ℹ️ The exact PR base did not have a successful artifact. Baseline uses the latest successful main measurement shown below.

Provider Metric Main baseline This PR Impact PR ceiling
Codex Total thread wire 5.0 KiB 5.0 KiB 0 B (0.0%) 6.8 KiB ✅
Codex Thread snapshot wire 3.8 KiB 3.8 KiB 0 B (0.0%) 4.9 KiB ✅
Codex Live turn WebSocket wire 1.2 KiB 1.2 KiB 0 B (0.0%) 2.0 KiB ✅
Codex Live turn WebSocket decoded 21.5 KiB 21.5 KiB 0 B (0.0%) 24.4 KiB ✅
Codex Live turn messages 1 1 0 (0.0%) 8 ✅
Claude Total thread wire 5.0 KiB 5.0 KiB 0 B (0.0%) 6.8 KiB ✅
Claude Thread snapshot wire 3.8 KiB 3.8 KiB 0 B (0.0%) 4.9 KiB ✅
Claude Live turn WebSocket wire 1.2 KiB 1.2 KiB 0 B (0.0%) 2.0 KiB ✅
Claude Live turn WebSocket decoded 21.9 KiB 21.9 KiB 0 B (0.0%) 24.4 KiB ✅
Claude Live turn messages 1 1 0 (0.0%) 8 ✅

Other scenarios

All 64 scenario measurements match main.

All 64 scenario measurements
Provider Scenario Metric Main baseline This PR Impact PR ceiling
Codex short turn resume WebSocket decoded 10.5 KiB 10.5 KiB 0 B (0.0%) 12.7 KiB ✅
Codex short turn resume WebSocket messages 2 2 0 (0.0%) 2 ✅
Codex long turn running, cold open HTTP decoded 281.7 KiB 281.7 KiB 0 B (0.0%) 302.7 KiB ✅
Codex long turn running, cold open rows 75 75 0 (0.0%) 75 ✅
Codex long turn running, history page HTTP decoded 92.4 KiB 92.4 KiB 0 B (0.0%) 107.4 KiB ✅
Codex long turn running, history page rows 75 75 0 (0.0%) 75 ✅
Codex long turn finished, cold open HTTP decoded 381.5 KiB 381.5 KiB 0 B (0.0%) 410.2 KiB ✅
Codex long turn finished, cold open rows 151 151 0 (0.0%) 151 ✅
Codex long turn finished, socket cold open WebSocket decoded 381.6 KiB 381.6 KiB 0 B (0.0%) 410.2 KiB ✅
Codex long turn finished, socket cold open WebSocket messages 2 2 0 (0.0%) 2 ✅
Codex long turn finished, socket cold open rows 151 151 0 (0.0%) 151 ✅
Codex long turn finished, work page HTTP decoded 186.2 KiB 186.2 KiB 0 B (0.0%) 200.2 KiB ✅
Codex long turn finished, work page rows 150 150 0 (0.0%) 150 ✅
Codex idle thread resume WebSocket decoded 65 B 65 B 0 B (0.0%) 200 B ✅
Codex idle thread resume WebSocket messages 1 1 0 (0.0%) 1 ✅
Codex fleet shell snapshot HTTP decoded 42.4 KiB 42.4 KiB 0 B (0.0%) 53.7 KiB ✅
Codex fleet shell snapshot rows 27 27 0 (0.0%) 27 ✅
Codex fleet shell subscribe WebSocket decoded 65 B 65 B 0 B (0.0%) 200 B ✅
Codex fleet shell subscribe WebSocket messages 1 1 0 (0.0%) 1 ✅
Codex fleet shell resume check HTTP decoded 18 B 18 B 0 B (0.0%) 100 B ✅
Codex fleet shell resume check rows 0 0 0 0 ✅
Codex stale shell reload HTTP decoded 42.4 KiB 42.4 KiB 0 B (0.0%) 53.7 KiB ✅
Codex stale shell reload rows 27 27 0 (0.0%) 27 ✅
Codex stale shell resume WebSocket decoded 140 B 140 B 0 B (0.0%) 400 B ✅
Codex stale shell resume WebSocket messages 2 2 0 (0.0%) 2 ✅
Codex stale todo list cold open HTTP decoded 72.4 KiB 72.4 KiB 0 B (0.0%) 83.0 KiB ✅
Codex stale todo list cold open rows 75 75 0 (0.0%) 75 ✅
Codex stale todo list cold open nodes 2 2 0 (0.0%) 4 ✅
Codex stale todo list cold open subagents 2 2 0 (0.0%) 4 ✅
Codex stale todo list cold open plans 1 1 0 (0.0%) 2 ✅
Codex stale todo list cold open providerTurns 1 1 0 (0.0%) 2 ✅
Codex stale todo list cold open checkpoints 1 1 0 (0.0%) 2 ✅
Claude short turn resume WebSocket decoded 10.6 KiB 10.6 KiB 0 B (0.0%) 12.7 KiB ✅
Claude short turn resume WebSocket messages 2 2 0 (0.0%) 2 ✅
Claude long turn running, cold open HTTP decoded 283.3 KiB 283.3 KiB 0 B (0.0%) 302.7 KiB ✅
Claude long turn running, cold open rows 75 75 0 (0.0%) 75 ✅
Claude long turn running, history page HTTP decoded 93.4 KiB 93.4 KiB 0 B (0.0%) 107.4 KiB ✅
Claude long turn running, history page rows 75 75 0 (0.0%) 75 ✅
Claude long turn finished, cold open HTTP decoded 384.2 KiB 384.2 KiB 0 B (0.0%) 410.2 KiB ✅
Claude long turn finished, cold open rows 151 151 0 (0.0%) 151 ✅
Claude long turn finished, socket cold open WebSocket decoded 384.3 KiB 384.3 KiB 0 B (0.0%) 410.2 KiB ✅
Claude long turn finished, socket cold open WebSocket messages 2 2 0 (0.0%) 2 ✅
Claude long turn finished, socket cold open rows 151 151 0 (0.0%) 151 ✅
Claude long turn finished, work page HTTP decoded 188.1 KiB 188.1 KiB 0 B (0.0%) 200.2 KiB ✅
Claude long turn finished, work page rows 150 150 0 (0.0%) 150 ✅
Claude idle thread resume WebSocket decoded 66 B 66 B 0 B (0.0%) 200 B ✅
Claude idle thread resume WebSocket messages 1 1 0 (0.0%) 1 ✅
Claude fleet shell snapshot HTTP decoded 43.0 KiB 43.0 KiB 0 B (0.0%) 53.7 KiB ✅
Claude fleet shell snapshot rows 27 27 0 (0.0%) 27 ✅
Claude fleet shell subscribe WebSocket decoded 66 B 66 B 0 B (0.0%) 200 B ✅
Claude fleet shell subscribe WebSocket messages 1 1 0 (0.0%) 1 ✅
Claude fleet shell resume check HTTP decoded 18 B 18 B 0 B (0.0%) 100 B ✅
Claude fleet shell resume check rows 0 0 0 0 ✅
Claude stale shell reload HTTP decoded 43.0 KiB 43.0 KiB 0 B (0.0%) 53.7 KiB ✅
Claude stale shell reload rows 27 27 0 (0.0%) 27 ✅
Claude stale shell resume WebSocket decoded 140 B 140 B 0 B (0.0%) 400 B ✅
Claude stale shell resume WebSocket messages 2 2 0 (0.0%) 2 ✅
Claude stale todo list cold open HTTP decoded 73.4 KiB 73.4 KiB 0 B (0.0%) 83.0 KiB ✅
Claude stale todo list cold open rows 75 75 0 (0.0%) 75 ✅
Claude stale todo list cold open nodes 2 2 0 (0.0%) 4 ✅
Claude stale todo list cold open subagents 2 2 0 (0.0%) 4 ✅
Claude stale todo list cold open plans 1 1 0 (0.0%) 2 ✅
Claude stale todo list cold open providerTurns 1 1 0 (0.0%) 2 ✅
Claude stale todo list cold open checkpoints 1 1 0 (0.0%) 2 ✅

Baseline: 495d44b · PR result: 4708a5c · Source CI: success

Scenario and decoded snapshot size

10 historical turns, 5 command tools per turn, 878.9 KiB retained MCP result per historical turn, and a 1.05 MiB retained result in the measured turn.

  • Codex decoded thread snapshot: 108.5 KiB
  • Claude decoded thread snapshot: 108.8 KiB

Updated in place by a trusted workflow. PR artifacts are strictly validated and never executed.

@wianvdm
wianvdm merged commit f5792cc into main Nov 20, 2026
29 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

seam Advisory: PR touches a fork/upstream integration seam. size:XXL sync-conflict Advisory: PR touches fork-diverged files likely to conflict on upstream sync.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant