Skip to content
Source
Sign inSign up
pingdotgg/t3code

feat(web,mobile,desktop): translate the whole app into every supported language #37893

Mergedmaria-rcksmerged 102 commits intomain fromrefs/pull/37893/headmerged by maria-rcks View on GitHub

maria-rckscommented

Before, with Español selected (thread view, new thread, command palette, Settings > Keybindings):

before: thread view with Spanish selected, sidebar, details panel and composer all English

before: new thread screen with Spanish selected, heading and composer English

before: command palette with Spanish selected, every command English

before: Settings > Keybindings with Spanish selected, Spanish navigation beside an English page

After, same screens and data:

after: thread view in Spanish

after: new thread screen in Spanish

after: command palette in Spanish

after: Settings > Keybindings in Spanish, command names and the scope row translated

The other languages:

thread view in Chinese

Settings > Providers in Chinese

delete-thread confirmation in Japanese

Settings > Keybindings in Korean

Settings > Providers in Russian

new thread screen in German

new thread screen in French

Settings > Keybindings in Brazilian Portuguese

thread view in Swedish

Settings > General in Swedish

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

before: thread context menu in Chinese, 置顶线程, 完结线程, 归档线程

after: thread context menu in Chinese, 置顶会话, 收尾会话, 归档会话

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):

recording: switching the web app's language from English to Chinese, Japanese, and Spanish without a reload

Mobile, on an EAS iOS simulator:

mobile thread list in Chinese

mobile thread view in Chinese, with the 智能体 chip

mobile thread list in Spanish

mobile language picker listing Svenska

mobile Settings in Swedish

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:

mobile Snooze menu before the fix: the first item shows raw ICU plural text

mobile Snooze menu after the fix, in Spanish: "En 1 hora", "En 3 horas"

mobile Snooze menu after the fix, in Russian, with the one and few plural forms

mobile Snooze menu in Swedish: "Om 1 timme", "Om 3 timmar"

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

    2. github-actions[bot](GitHub profile, opens in a new tab)commented

      Thread transfer impact

      ✅ Thread transfer remains within every enforced ceiling.

      ProviderMetricMain baselineThis PRImpactPR ceiling
      CodexTotal thread wire5.0 KiB5.0 KiB0 B (0.0%)6.8 KiB✅
      CodexThread snapshot wire3.8 KiB3.8 KiB0 B (0.0%)4.9 KiB✅
      CodexLive turn WebSocket wire1.2 KiB1.2 KiB0 B (0.0%)2.0 KiB✅
      CodexLive turn WebSocket decoded21.5 KiB21.5 KiB0 B (0.0%)24.4 KiB✅
      CodexLive turn messages110 (0.0%)8✅
      ClaudeTotal thread wire5.0 KiB5.0 KiB0 B (0.0%)6.8 KiB✅
      ClaudeThread snapshot wire3.8 KiB3.8 KiB0 B (0.0%)4.9 KiB✅
      ClaudeLive turn WebSocket wire1.2 KiB1.2 KiB0 B (0.0%)2.0 KiB✅
      ClaudeLive turn WebSocket decoded21.9 KiB21.9 KiB0 B (0.0%)24.4 KiB✅
      ClaudeLive turn messages110 (0.0%)8✅

      Other scenarios

      All 64 scenario measurements match main.

      All 64 scenario measurements
      ProviderScenarioMetricMain baselineThis PRImpactPR ceiling
      Codexshort turn resumeWebSocket decoded10.5 KiB10.5 KiB0 B (0.0%)12.7 KiB✅
      Codexshort turn resumeWebSocket messages220 (0.0%)2✅
      Codexlong turn running, cold openHTTP decoded281.7 KiB281.7 KiB0 B (0.0%)302.7 KiB✅
      Codexlong turn running, cold openrows75750 (0.0%)75✅
      Codexlong turn running, history pageHTTP decoded92.4 KiB92.4 KiB0 B (0.0%)107.4 KiB✅
      Codexlong turn running, history pagerows75750 (0.0%)75✅
      Codexlong turn finished, cold openHTTP decoded381.5 KiB381.5 KiB0 B (0.0%)410.2 KiB✅
      Codexlong turn finished, cold openrows1511510 (0.0%)151✅
      Codexlong turn finished, socket cold openWebSocket decoded381.6 KiB381.6 KiB0 B (0.0%)410.2 KiB✅
      Codexlong turn finished, socket cold openWebSocket messages220 (0.0%)2✅
      Codexlong turn finished, socket cold openrows1511510 (0.0%)151✅
      Codexlong turn finished, work pageHTTP decoded186.2 KiB186.2 KiB0 B (0.0%)200.2 KiB✅
      Codexlong turn finished, work pagerows1501500 (0.0%)150✅
      Codexidle thread resumeWebSocket decoded65 B65 B0 B (0.0%)200 B✅
      Codexidle thread resumeWebSocket messages110 (0.0%)1✅
      Codexfleet shell snapshotHTTP decoded42.4 KiB42.4 KiB0 B (0.0%)53.7 KiB✅
      Codexfleet shell snapshotrows27270 (0.0%)27✅
      Codexfleet shell subscribeWebSocket decoded65 B65 B0 B (0.0%)200 B✅
      Codexfleet shell subscribeWebSocket messages110 (0.0%)1✅
      Codexfleet shell resume checkHTTP decoded18 B18 B0 B (0.0%)100 B✅
      Codexfleet shell resume checkrows0000✅
      Codexstale shell reloadHTTP decoded42.4 KiB42.4 KiB0 B (0.0%)53.7 KiB✅
      Codexstale shell reloadrows27270 (0.0%)27✅
      Codexstale shell resumeWebSocket decoded140 B140 B0 B (0.0%)400 B✅
      Codexstale shell resumeWebSocket messages220 (0.0%)2✅
      Codexstale todo list cold openHTTP decoded72.4 KiB72.4 KiB0 B (0.0%)83.0 KiB✅
      Codexstale todo list cold openrows75750 (0.0%)75✅
      Codexstale todo list cold opennodes220 (0.0%)4✅
      Codexstale todo list cold opensubagents220 (0.0%)4✅
      Codexstale todo list cold openplans110 (0.0%)2✅
      Codexstale todo list cold openproviderTurns110 (0.0%)2✅
      Codexstale todo list cold opencheckpoints110 (0.0%)2✅
      Claudeshort turn resumeWebSocket decoded10.6 KiB10.6 KiB0 B (0.0%)12.7 KiB✅
      Claudeshort turn resumeWebSocket messages220 (0.0%)2✅
      Claudelong turn running, cold openHTTP decoded283.3 KiB283.3 KiB0 B (0.0%)302.7 KiB✅
      Claudelong turn running, cold openrows75750 (0.0%)75✅
      Claudelong turn running, history pageHTTP decoded93.4 KiB93.4 KiB0 B (0.0%)107.4 KiB✅
      Claudelong turn running, history pagerows75750 (0.0%)75✅
      Claudelong turn finished, cold openHTTP decoded384.2 KiB384.2 KiB0 B (0.0%)410.2 KiB✅
      Claudelong turn finished, cold openrows1511510 (0.0%)151✅
      Claudelong turn finished, socket cold openWebSocket decoded384.3 KiB384.3 KiB0 B (0.0%)410.2 KiB✅
      Claudelong turn finished, socket cold openWebSocket messages220 (0.0%)2✅
      Claudelong turn finished, socket cold openrows1511510 (0.0%)151✅
      Claudelong turn finished, work pageHTTP decoded188.1 KiB188.1 KiB0 B (0.0%)200.2 KiB✅
      Claudelong turn finished, work pagerows1501500 (0.0%)150✅
      Claudeidle thread resumeWebSocket decoded66 B66 B0 B (0.0%)200 B✅
      Claudeidle thread resumeWebSocket messages110 (0.0%)1✅
      Claudefleet shell snapshotHTTP decoded43.0 KiB43.0 KiB0 B (0.0%)53.7 KiB✅
      Claudefleet shell snapshotrows27270 (0.0%)27✅
      Claudefleet shell subscribeWebSocket decoded66 B66 B0 B (0.0%)200 B✅
      Claudefleet shell subscribeWebSocket messages110 (0.0%)1✅
      Claudefleet shell resume checkHTTP decoded18 B18 B0 B (0.0%)100 B✅
      Claudefleet shell resume checkrows0000✅
      Claudestale shell reloadHTTP decoded43.0 KiB43.0 KiB0 B (0.0%)53.7 KiB✅
      Claudestale shell reloadrows27270 (0.0%)27✅
      Claudestale shell resumeWebSocket decoded140 B140 B0 B (0.0%)400 B✅
      Claudestale shell resumeWebSocket messages220 (0.0%)2✅
      Claudestale todo list cold openHTTP decoded73.4 KiB73.4 KiB0 B (0.0%)83.0 KiB✅
      Claudestale todo list cold openrows75750 (0.0%)75✅
      Claudestale todo list cold opennodes220 (0.0%)4✅
      Claudestale todo list cold opensubagents220 (0.0%)4✅
      Claudestale todo list cold openplans110 (0.0%)2✅
      Claudestale todo list cold openproviderTurns110 (0.0%)2✅
      Claudestale todo list cold opencheckpoints110 (0.0%)2✅

      Baseline: 856c84e · PR result: 398de55 · 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.

    3. 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.

      EnglishThis PRSuggestedWhy
      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 代理 → 智能体.

    4. maria-rcks changed the title

    5. @@ -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: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.

      -        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-2 on behalf of Maria

      Fixed 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.ts on that commit reports 0 errors, so no existing code was relying on the gap.

    6. macroscopeapp[bot](GitHub profile, opens in a new tab)commented

      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
      Review your spending limits in [Billing settings](https://app.macroscope.com/pingdotgg/settings/billing), or comment `@macroscope-app review this PR` to bypass the limit and review now. You can add or adjust custom eligibility rules. [Learn more](https://docs.macroscope.com/approvability#example-custom-eligibility-rules).
    7. macroscopeapp[bot](GitHub profile, opens in a new tab)commented

      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:

      FileDiff SizeEstimate
      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

      Tip

      To get this pull request reviewed, you can:

      1. Comment @macroscope-app on this PR to request a manual review (monthly spend limits still apply).
      2. 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.
      3. Raise your cost limit in your workspace billing settings.
      [Turn off this reminder going forward](https://app.macroscope.com/pingdotgg/settings#Personal)
    8. maria-rckscommented

      Note

      Written by claude-fable-5-2 on behalf of Maria

      Thanks, 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.

    9. maria-rcks merged this055b449

    10. maria-rcks closed this

Sign in to join this conversation.