feat(web,mobile,desktop): translate the whole app into every supported language #37893
main fromrefs/pull/37893/head·merged by maria-rcks View on GitHubBefore, with Español selected (thread view, new thread, command palette, Settings > Keybindings):




After, same screens and data:




The other languages:










Chinese wording, before and after adopting the community catalog (thread 线程 to 会话, agent 代理 to 智能体):


Switching language without a reload, English to 中文 to 日本語 to Español (recorded two commits before the head, so its Spanish navigation still shows one label cut off that the head fixes):
Mobile, on an EAS iOS simulator:





The simulator run caught a bug the unit tests could not: Hermes has no Intl.PluralRules, so every plural message showed its raw ICU text, in English too. Before and after loading the polyfill, on the same device:




Choosing a language in Settings changed almost nothing: four web files and two mobile screens were wrapped for translation (about 110 strings), and the rest of the app was English literals. This wraps every user-facing string in the web app, the mobile app, the desktop main process, and the shared client packages (9,633 web keys, 4,684 mobile, 101 desktop) and translates all of them into German, Spanish, French, Japanese, Korean, Brazilian Portuguese, Russian, Chinese, and Swedish. Swedish is a new language in the picker.
Sentences that were assembled from fragments or around an English noun ("pull request", "ago", "in") are now whole messages with ICU plurals and selects, so each language can order and inflect them. Labels built in shared code take a resolver, errors carry a translatable message beside the English one, and workers, widgets, and WebViews get codes or text from the app because they cannot load the catalogs. Server-imported modules in packages/shared stay free of GT through client-only siblings, and packages/contracts, the server, and bundler config are untouched. t3code/no-untranslated-copy is a new lint error at zero hits, scripts/i18n-check.ts now compares JSX entries by content and covers the desktop catalogs, and docs/internals/i18n.md has the conventions.
Simplified Chinese follows the wording of the community catalog deepfry666/t3code-cn, as native speakers asked here and on #31313: thread is 会话, agent is 智能体 (代理 stays for a network proxy), session is translated by meaning so it does not read as a thread, and a space separates Chinese text from variables. Of the 7,787 strings whose English also exists in that catalog, 104 differ, each for a stated reason. The other seven languages were checked against the localized site, native-speaker reviews on earlier PRs, and the localized UIs of VS Code, GitHub, Claude Code, and ChatGPT; that changed 67 to 711 strings each (for example pt-BR says "thread", French says "Paramètres", Spanish and Japanese no longer call the composer a music composer).
Checks: CI is green on the head (lint, typecheck and build, i18n:check, both web test shards, mobile, server, rust). All 127,278 string values in the 27 catalogs format through GT’s ICU formatter without a throw. Two independent reviewers read the merges with main, the Swedish plumbing, and the changed translations; their findings (two Chinese strings, 36 Swedish term fixes) are applied. A final pass on the head hashed all 15,996 gt() and msg() calls against the catalogs: 12 chip and thread feed labels were being passed a translator the scanner could not see and rendered English; they now use msg() and are translated, and the sweep finds 0 calls without a catalog entry. Those 12 labels (mostly screen reader labels and one tooltip) were checked by i18n:check, typecheck and the timeline browser tests, not captured in the app.
Not verified:
- The desktop main process (application menu, context menu, native dialogs) has never run: there is no Electron here. Check on a Mac: Settings > General > Language > 中文 should change the menu bar without a restart, the Edit menu should still get the system's "Emoji & Symbols" item, and a relaunch should come up translated.
- Mobile on Android has not run on a device. On iOS, Chinese, Spanish and Swedish were checked across the thread list, a thread, the new task screen, Settings and the snooze plurals (Swedish and the new Chinese wording at
d9142cc384d), and the other six languages on the thread list, a thread, and Settings. - The translations were written and cross-checked by models, with one term list per language. Chinese follows a native-speaker catalog and pt-BR, de, fr, ko and ru apply native reviews from earlier PRs, but no native speaker has read these catalogs. Swedish has had no native input at all; its macOS "Full skivåtkomst" label should be checked on a Swedish Mac.
- The uploaded recording has not been played in a browser player, only inspected frame by frame.
Known limits: text the server authors (provider errors, activity labels, tool titles, effort labels such as "Medium") and Live Activity updates pushed by the relay stay English; the date picker's own weekday and month labels stay English (translating them needs per-language chunks, a bundling change); Electron's role-based menu items stay English on Windows and Linux; on mobile the native tab bar's VoiceOver labels and UIKit's search button stay English (they are hardcoded in native code, and changing them needs a new native build), and voice model language names stay English (the data is about 600 KB); times follow the device locale and durations keep a decimal point ("5.7 s") in every language; a few sentences in the new Issues code still take an English noun as a variable.
Deferred, as follow-ups: the lint rule does not see copy held in a variable, string concatenation, arrays, or toast("…"), and does not cover apps/desktop/src; scripts/i18n-check.ts does not validate ICU syntax; settings search ranks an exact translated title no higher than a keyword hit.
Written by claude-fable-5-2 with claude-opus-5-5 children, in Claude Code through T3 Code.
🤖 Generated with Claude Code
Reviewed with sol-loop: 5 rounds with claude-opus-5-5 at high. Verdicts: approved, approved.
- 1
github-actions[bot](GitHub profile, opens in a new tab) added labelsvouch:trusted
github-actions[bot](GitHub profile, opens in a new tab) added labelssize:XXL
Two Simplified Chinese terms to settle before this catalog lands#
This PR sets the zh vocabulary for ~8,600 web strings plus mobile and desktop, so it's the cheapest point to fix two core terms. A native speaker raised the same two on #31313 (comment) and got no reply. The community zh fork deepfry666/t3code-cn (~9,000 strings, used daily) already ships the alternatives consistently.
English This PR Suggested Why thread 线程 (599 strings) 会话 线程 is the OS/concurrency term, and it's what a Chinese developer reads first. A T3 thread is a conversation with an agent plus its work, which 会话 describes. agent 代理 (260) 智能体 This catalog also uses 代理 for a network proxy (4 strings, e.g. 检查代理和防火墙), so "Agents" reads as "Proxies". 智能体 is the standard Chinese term for an AI agent, and t3.codes/zh already uses it. The catch with 会话 is that this catalog already uses it for "session" (会话 appears in 82 strings). The fork handles that by translating session by meaning: "starts a fresh session" → 全新上下文, the pairing session → 登录状态 / 连接, and 会话 only where it really is one (智能体会话). Conversation stays 对话.
I'd leave the rest of the zh catalog as is. If it helps, I can open a follow-up PR with these replacements once this lands. #37978 fixes a few of the existing settings strings, including 代理 → 智能体.
maria-rcks changed the title
All clear
Posted via Macroscope — UI Consistency- @@ -0,0 +379,21 @@379+ literalUnionAliases.add(declaration.id.name);380+ }381+ }382+ },383+ JSXText(node) {384+ const ancestors = nonCopyAncestors(node);385+ if (386+ ancestors.size === 0 ? isCopy(node.value) : isPlainSentenceInCode(ancestors, node.value)387+ ) {388+ report(node);389+ }390+ },391+ JSXExpressionContainer(node) {392+ const parent = node.parent;393+ if (parent?.type !== "JSXElement" && parent?.type !== "JSXFragment") return;394+ if (insideNonCopyElement(node)) return;395+ reportLeaves(node.expression);396+ },397+ JSXAttribute(node) {398+ if (node.name.type !== "JSXIdentifier" || !isCopyName(node.name.name)) return;399+ if (insideNonCopyElement(node)) return;
🟢 Low
rules/no-untranslated-copy.ts:399User-facing attributes inside
<kbd>,<code>, or<pre>are skipped, so<kbd aria-label="Keyboard shortcut">produces no diagnostic and the untranslated label goes unchecked. The ancestor exemption is appropriate for child text but also suppressesJSXAttributechecks; remove it here so copy props are still checked.- if (insideNonCopyElement(node)) return;🚀 Reply "fix it for me" or copy this AI Prompt for your agent:
In file @oxlint-plugin-t3code/rules/no-untranslated-copy.ts around line 399: User-facing attributes inside `<kbd>`, `<code>`, or `<pre>` are skipped, so `<kbd aria-label="Keyboard shortcut">` produces no diagnostic and the untranslated label goes unchecked. The ancestor exemption is appropriate for child text but also suppresses `JSXAttribute` checks; remove it here so copy props are still checked.Note
Written by
claude-fable-5-2on behalf of MariaFixed in 3ee38fc4249: the ancestor exemption no longer applies to
JSXAttribute, so copy props on or inside<kbd>,<code>, and<pre>are checked.vp lint apps packages scripts vite.config.tson that commit reports 0 errors, so no existing code was relying on the gap. Approvability#
Verdict: Needs Human Approval
Macroscope's review found this PR requires human approval — This expands app-wide localization and adds translation tooling. It also introduces explicit lint and Effect diagnostic suppressions, which require human review under the repository’s approval requirements.
Needs human approval because:
- Per-review cost limit exceeded (workspace setting). Approvability relies on correctness review in order to determine eligibility
Macroscope skipped reviewing this pull request. Per-review cost limit exceeded (workspace setting).
This review would cost an estimated $43.50, which exceeds your per-review limit of $15.00.
The top 3 files driving up this estimate:
File Diff Size Estimate apps/web/src/i18n/translations/sv.json705.54KB $21.79 apps/mobile/src/i18n/translations/sv.json351.59KB $10.86 packages/client-runtime/src/work-log/t3ToolSentences.ts43.22KB $1.34 [Turn off this reminder going forward](https://app.macroscope.com/pingdotgg/settings#Personal)Tip
To get this pull request reviewed, you can:
- Comment
@macroscope-appon this PR to request a manual review (monthly spend limits still apply). - Exclude the file(s) above from review by adding a pattern to your
.macroscope/ignore.md— note that creating this file replaces Macroscope's built-in default ignores rather than extending them. - Raise your cost limit in your workspace billing settings.
- Comment
Note
Written by
claude-fable-5-2on behalf of MariaThanks, both terms are in as of 94d51d3db4e, and Maria asked to go further and take the fork's wording generally.
- thread → 会话. 线程 no longer appears in any zh catalog (web, mobile, desktop).
- agent → 智能体. 代理 is left in 6 strings, all a network proxy or the SSH agent (认证代理).
- session, by meaning, the way the fork does it: 登录状态 / 连接 for sign-in and pairing, 全新上下文 for a fresh agent session, 智能体会话 for an agent session, 运行实例 for ACP and Codex native sessions, and bare 会话 only for provider sessions where the fork uses it. Conversation stays 对话. All 92 strings with "session" were checked one by one.
- The rest of the fork's term table is applied too: 提供方, 快捷键, 暂缓, 收尾, 实验功能, 版本控制, 凭据 (with 密钥 for keys), 定时任务, PR in short labels, issue and token in English, and a space between Chinese text and variables.
Of the 7,787 strings whose English also exists in
i18n/zh-CN.json, the catalog now differs in 104. Those are cases where the fork's match came from a different screen (for example "Run on" as the environment picker), tool names the fork has in past tense, or a sign-in session that would read as a thread.Two places where a second look from a native speaker would help:
- Provider sessions keep bare 会话 in a few strings ("新会话将使用更新后的提供方", "{count} 个会话" in usage). They sit near 会话 as thread.
- "在 {branch} 分支新建会话" is cut off in the thread context menu when the branch name is long.
#37978 overlaps with this on the settings strings; whichever lands second will need a rebase of the zh files. Corrections by key are welcome here or as a follow-up.
maria-rcks merged this055b449
maria-rcks closed this
Sign in to join this conversation.
Thread transfer impact#
✅ Thread transfer remains within every enforced ceiling.
Other scenarios#
All 64 scenario measurements match
main.All 64 scenario measurements
short turn resumeWebSocket decodedshort turn resumeWebSocket messageslong turn running, cold openHTTP decodedlong turn running, cold openrowslong turn running, history pageHTTP decodedlong turn running, history pagerowslong turn finished, cold openHTTP decodedlong turn finished, cold openrowslong turn finished, socket cold openWebSocket decodedlong turn finished, socket cold openWebSocket messageslong turn finished, socket cold openrowslong turn finished, work pageHTTP decodedlong turn finished, work pagerowsidle thread resumeWebSocket decodedidle thread resumeWebSocket messagesfleet shell snapshotHTTP decodedfleet shell snapshotrowsfleet shell subscribeWebSocket decodedfleet shell subscribeWebSocket messagesfleet shell resume checkHTTP decodedfleet shell resume checkrowsstale shell reloadHTTP decodedstale shell reloadrowsstale shell resumeWebSocket decodedstale shell resumeWebSocket messagesstale todo list cold openHTTP decodedstale todo list cold openrowsstale todo list cold opennodesstale todo list cold opensubagentsstale todo list cold openplansstale todo list cold openproviderTurnsstale todo list cold opencheckpointsshort turn resumeWebSocket decodedshort turn resumeWebSocket messageslong turn running, cold openHTTP decodedlong turn running, cold openrowslong turn running, history pageHTTP decodedlong turn running, history pagerowslong turn finished, cold openHTTP decodedlong turn finished, cold openrowslong turn finished, socket cold openWebSocket decodedlong turn finished, socket cold openWebSocket messageslong turn finished, socket cold openrowslong turn finished, work pageHTTP decodedlong turn finished, work pagerowsidle thread resumeWebSocket decodedidle thread resumeWebSocket messagesfleet shell snapshotHTTP decodedfleet shell snapshotrowsfleet shell subscribeWebSocket decodedfleet shell subscribeWebSocket messagesfleet shell resume checkHTTP decodedfleet shell resume checkrowsstale shell reloadHTTP decodedstale shell reloadrowsstale shell resumeWebSocket decodedstale shell resumeWebSocket messagesstale todo list cold openHTTP decodedstale todo list cold openrowsstale todo list cold opennodesstale todo list cold opensubagentsstale todo list cold openplansstale todo list cold openproviderTurnsstale todo list cold opencheckpointsBaseline:
856c84e· PR result:398de55· Source CI: successScenario 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.
Updated in place by a trusted workflow. PR artifacts are strictly validated and never executed.