Skip to content

feat(j5): J5's web and desktop screens in nine languages - #1297

Merged
Jacksondr5 merged 18 commits into
j5/mainfrom
j5code/i18n-1180-web-a
Nov 29, 2026
Merged

Jacksondr5 merged 18 commits into
j5/mainfrom
j5code/i18n-1180-web-a

Conversation

@Jacksondr5

@Jacksondr5 Jacksondr5 commented Nov 28, 2026 •

Copy link
Copy Markdown
Owner

Problem

T3 Code v0.1.11 ships its UI in nine languages (de, es, fr, ja, ko, pt-BR, ru, sv, zh), but J5's own screens were English only. They were exempt from t3code/no-untranslated-copy until #1180, under FORK case 129. This PR translates J5's web, client-runtime and desktop copy, and narrows the exemption to apps/mobile/src/j5/**. Mobile follows in PR 2, and PR 3 retires the exemption.

Part of #1180.

What changed

  • Wrapped copy. Every user-visible English string in apps/web/src/j5, packages/client-runtime/src/j5 and the desktop find bar (apps/desktop/src/j5) is wrapped as docs/internals/i18n.md describes: <T> for JSX, useGT()/gt() for props, msg() in tables with useMessages() where they render, m(msg()) outside React, and resolve: MFunctionType = mFallback parameters in client-runtime. That's about 1,750 wrap sites, including template literals and fragment-built sentences that the lint rule misses.
  • Whole sentences. Sentences that used to be built from fragments, or that dropped a translated phrase into another sentence's slot, are now single ICU strings or selects, with one whole sentence per grammatical case. User content and server, project, thread and person names stay as variables.
  • What stays English: "J5 Code", "J5 Connect", provider and model names, anything sent to an agent (prompts, briefs, reply instructions), server-authored text, and values saved to the server and read by other clients or agents. Examples are a duplicated persona's prefilled name, Playbook Author's description, and the "Create playbook" thread title.
  • Crew seat access. The access label on a Crew seat, which the server sends as English, now renders client-side from the seat's runtimeMode: upstream's translated runtime-mode label, or J5's "Read only" / "Repository write". The reasoning effort keeps the provider's own label, as upstream's composer does.
  • Rendered English is unchanged, with two deliberate exceptions:
    • "as a Owner" becomes "as an Owner".
    • The link-request dialog shows the environment's own label where it used to say "This server".
  • Catalogs. en.json only adds keys (web +1,542, mobile +326 for client-runtime, desktop +6); none are removed or changed. Every upstream translation is byte-for-byte unchanged. Where a J5 string has the same English and context as an upstream string, it reuses upstream's key and translation. About 560 J5 seam strings that j5/main carried in English in every locale (such as "Playbooks", "Persona", "People", "Artifacts" and "Agent Setup") are now translated.
  • Translation process:
    • Rule: Jackson's call (a), "translate everything except J5 Code and J5 Connect".
    • Glossary: the J5 project artifact i18n-1180/glossary.md, reviewed by a second model.
    • Translator: Sol 6.2, picked in a blind four-model bake-off. The bake-off is the project artifact i18n-1180/bakeoff-de.md.
    • Review: an independent Opus 5.5 back-translation review of every key in every language found 188 problems in the first pass and 40 in two follow-up rounds. All were fixed or rebutted with reasons.
    • Scripted gates: ICU syntax, placeholder sets, <T> node sets, brand names and glossary terms, run per language. i18n:check is clean.

UI changes

Captured at 1280×800 CSS pixels in the light theme, with the same invented data on both commits. Before is bcc21e2b39 (j5/main); after is the PR head. Thread names, agent-written messages, ask text and Crew briefs are test content, so they stay English.

Fleet in German.

Before After
Fleet in German, before Fleet in German, after

Inbox in German, with an open agent ask.

Before After
Inbox in German, before Inbox in German, after

Crew in German, with a pending two-member roster. The after image was re-captured at 38bbecfc3e: the seat's access now reads "Vollzugriff".

Before After
Crew in German, before Crew in German, after

People in German, with three paired people.

Before After
People in German, before People in German, after

Fleet in Japanese.

Before After
Fleet in Japanese, before Fleet in Japanese, after

Inbox in Japanese, with an open agent ask.

Before After
Inbox in Japanese, before Inbox in Japanese, after

Crew in Japanese, with a pending two-member roster. The after image was re-captured at 38bbecfc3e: the seat's access now reads "フルアクセス".

Before After
Crew in Japanese, before Crew in Japanese, after

People in Japanese, with three paired people.

Before After
People in Japanese, before People in Japanese, after

Live testing

Pass. A tester Peer Agent (GPT-6.1 Sol) captured before at bcc21e2b39 and after at a9d0b295c1, on an isolated live-test home with invented data and one server at a time.

  • Crew card: the first pass found English access labels ("Low · Full access"). Those were fixed in 323d7fa341/6bb0cdb0ea/38bbecfc3e. The Crew card was then re-captured at the head, 38bbecfc3e. It reads "Haiku 5.5 · Low · Vollzugriff" in German and "Haiku 5.5 · Low · フルアクセス" in Japanese.

  • What changed between a9d0b295c1 and the head: the access-label fix and the "Repository write" translation, both on the Crew card. The other three screens weren't re-tested, because nothing they render changed.

  • What was exercised:

    • switching the language in Settings, English → German → Japanese;
    • a populated Fleet;
    • the Inbox with an open agent ask;
    • an expanded pending Crew roster;
    • Settings → People with three paired people.

    Real Claude Haiku turns created the ask and the Crew, and also ran on the head. Every after-screen was inspected. No translated control overlaps or overflows; long thread names and the agent-written brief truncate as before.

  • Not exercised live: the other seven locales, other J5 screens and dialogs, empty, error and loading states, launching, declining or editing a Crew, answering the ask, the Electron shell, mobile (PR 2), and remote, relay or peer connections. This was a bounded screenshot pass. The translation quality of all nine locales was checked by the scripted gates and the per-language back-translation review described above.

  • Not done: CodeRabbit skipped this PR, because 180 changed files exceed its 100-file limit. An independent Opus 5.5 and GPT-6.2 Sol code review covered the full non-catalog diff instead. It found 7 real issues, all fixed.

Nothing needs testing by hand.

Upstream impact

Each upstream file edit is one line or one call, recorded in FORK.md:

  • vite.config.ts: the exemption narrows to apps/mobile/src/j5/** (case 129).
  • apps/web/src/components/ThreadSearchMatch.tsx: passes useMessages() to the J5 match label (case 94).
  • apps/web/src/components/CommandPalette.tsx: useHighlightsPaletteItems() replaces the constant table (case 75).
  • apps/web/src/components/sidebar/updateEverything.logic.ts: both J5 guard lines pass the existing resolve (case 120).
  • apps/web/src/components/chat/TimelineUserMessageRow.tsx: j5PromptRow(row.message, useMessages()) (case 7).
  • apps/desktop/src/i18n/messages.ts: a two-line activeUiLocale export, so the find bar page sets lang (case 126).
  • apps/web/src/components/ConfirmDialogHost.test.tsx: a J5-added test whose gt-react mock now resolves English through gtFallback.

This PR doesn't change what upstream's product does.

Heads-up for in-flight J5 web PRs: once this merges, unwrapped copy under apps/web/src/j5 and packages/client-runtime/src/j5 fails lint.

Checklist

  • One concern: the description has no "also"
  • Tests cover the changed behavior: existing tests still assert the English, three tests moved with logic that now renders whole sentences, and the "just now" checks decide from elapsed time instead of comparing translated text
  • UI changes: before/after screenshots above (static text, so no video)
  • Live testing: the section above says what ran live and what didn't
  • Upstream-owned files: each one is recorded in FORK.md (case text and file-table row) in this PR
  • Upstream product: no change to what upstream's product does
  • Surfaces:
    • Entry points: palette and settings strings are wrapped.
    • Clients: web, desktop and client-runtime are covered here; mobile follows in PR 2.
    • Providers, contracts, reverse states and connection modes: none affected.
  • Docs: no product definition or user doc changes. AGENTS.md's Languages line changes in PR 3.

Built by builder Peer Agents on Claude Opus 5.5, translated by GPT-6.2 Sol, and reviewed by Claude Opus 5.5 and GPT-6.2 Sol, in J5 Code through the Claude Code and Codex harnesses.

🤖 Generated with Claude Code

@vercel

vercel Bot commented Nov 28, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
j5-code Ready Ready Preview Nov 29, 2026 9:43pm UTC

Request Review

@github-actions github-actions Bot added vouch:trusted Author is trusted by repo permissions or the VOUCHED list. size:XXL 1,000+ effective changed lines (test files excluded in mixed PRs). labels Nov 28, 2026
Jacksondr5 added a commit that referenced this pull request Nov 29, 2026
The new label, pending label, failure and hover text go through msg()
in ownerAskAction, which takes a resolver as #1297 has it, and web
passes useMessages(). The catalogs carry the four keys in English until
they are translated.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Jacksondr5 added a commit that referenced this pull request Nov 29, 2026
* feat(j5): Don't allow on a refused persona's ask, and on mobile

An ask about a refused persona offered only Allow this once or a typed
reply, and a typed "no" left the agent without a rule for what to do
next. j5.inbox.declinePersona answers the ask with a fixed reply that
keeps the persona blocked and tells the agent not to ask again or
recreate it. It needs the same scope, access-gate entry and
asking-thread check as allowPersonaOnce, grants nothing, and adds no
escalation state, so a later allow_once is refused. Web and mobile show
Don't allow beside Allow this once, and the refusal text says what a
decline means.

Closes #1292

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(j5): Don't allow answers under its own command ids

An Allow this once that reused a decline's request id replayed the
decline's committed answer and then granted the escalation. The decline
now answers under its own command-id prefix, so that Allow meets the
closed ask instead. The eval case also forbids relaunching the same
persona without allow_once, and the Inbox definition says who sees each
button.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* feat(j5): Don't allow's labels are translatable

The new label, pending label, failure and hover text go through msg()
in ownerAskAction, which takes a resolver as #1297 has it, and web
passes useMessages(). The catalogs carry the four keys in English until
they are translated.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(j5): each kind of answer to an ask replays only itself

Allow this once and a typed reply shared one command-id namespace, so an
Allow that reused a typed answer's request id replayed that answer and
then granted the escalation, though a typed reply never allows it.
Allow now answers under its own prefix, as Don't allow does, so a reused
id meets the closed ask and grants nothing.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* feat(mobile): Don't allow's labels follow the app's language

The mobile Inbox passes useMessages() to ownerAskAction, as web does.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

---------

Co-authored-by: Claude Opus 5.5 <[email protected]>
Jacksondr5 and others added 17 commits November 29, 2026 16:30
J5's shared client helpers built their labels as English strings, so web
and mobile could not show them in the person's language. Each helper now
marks its copy with msg() from gt-i18n and takes a resolve parameter that
defaults to mFallback, as upstream's client-runtime helpers do. Sentences
built from fragments become one ICU string with the same English. The
untranslated-copy exclusion narrows to apps/mobile/src/j5 (FORK.md 129).

Call sites keep English through mFallback until each folder's pass
passes m or useMessages().

Refs #1180

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Helpers that built English from template literals, which the lint rule
does not flag, now return msg() sentences too: the Inbox's source notices
and count line, the waits-for-server line, persona swaps (optionally the
whole sentence with the step's title), spawned-agent group summaries, and
the peering check's reach errors and route lines.

Refs #1180

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…nslation

Every string in apps/web/src/j5/{sharing,skills,agents} is wrapped in
<T>, gt() or msg(), with sentences that were built from fragments
rewritten as one ICU string that renders the same English. Helpers called
in render take a resolver that defaults to m. The client-runtime helpers
get useMessages() in render and m in handlers. The join page's dead
invitationFor helper and its test go, since the page now renders whole
sentences.

Refs #1180

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The find bar's page was a fixed English HTML string, and its count was
formatted in the sandboxed page. The main process now builds the page
from msg() strings through desktop's m(), and sends the count's text.

Refs #1180

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Every string `t3code/no-untranslated-copy` flags in apps/web/src/j5, outside
sharing, skills and agents, is now wrapped with <T>, gt() or msg(), plus the
fragment-built sentences and plurals the rule misses. The English renders
unchanged. The lint exclusion narrows to apps/mobile/src/j5.

The highlights palette entry becomes a hook so its title can translate, and
the channel-switch helpers take the resolver updateEverything already holds.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…(part of #1180)

Wires the client-runtime J5 helpers that now take a resolver: Fleet facts,
the Inbox, worktree cleanup, archive warnings, platform notices and prompts,
Crew notices and proposals, highlights, playbooks and peering. Crew notice
and platform notice pieces become components so they can read the active
language, and the credential note under a failed link checks the step's
kind instead of its English title.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The Inbox's source notices, count line and waits-for-server line,
Fleet's source notices, the Crew proposal card's persona swaps (now one
sentence with the step title), spawned-agent group summaries, and the
peering check's reach errors and route lines now render in the UI
language.

Refs #1180

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Generated with i18n:generate. Every locale holds the English text for
the new keys until the translations are written.

Refs #1180

Co-Authored-By: Claude Opus 5.5 <[email protected]>
German review: stand-ins such as "whole server", "this server", "each
ticked server", "it", "moments" and "Access", and the level and skill
category words, were translated on their own and then placed into other
sentences, where German and Russian need a different case or article.
Each such sentence is now whole per case: an ICU select on where the
level is held, what is shared, which side is every ticked server, the
level itself, or the skill category. A link request names the agent's
server by its own label. The Crew context line has a sentence per kind.

Refs #1180

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The sentence read "as a Owner" since before #1180. The six variants now
say "an Owner", and the catalogs carry the new keys.

Refs #1180

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…1180)

The reviewed translations for J5's web, client-runtime and desktop copy
go into the de, es, fr, ja, ko, pt-BR, ru, sv and zh catalogs. Where web
and mobile share a client-runtime key, mobile's catalogs get the same
words with their own element types.

Refs #1180

Co-Authored-By: Claude Opus 5.5 <[email protected]>
- J5's newer-server and not-shared errors carry marked text, as
  upstream's do; the compatibility error reuses upstream's key.
- A duplicated persona's prefilled name stays English: it is saved
  into the server's library.
- The desktop find bar's page is rebuilt on each UI language switch
  and carries the language as its lang (FORK.md case 126).
- The Share dialog's made-link sentences say "expires in moments" and
  "Access" again, inside each whole sentence.
- "Just now" is decided from the elapsed time, not by comparing
  formatted text; answeredAgeLabel takes the flag.
- FORK.md case 120 names both channel-switch helpers.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The Crew card and the seat editor showed the server's English access
label ("Full access") in every language. The server writes upstream's
runtime-mode label or a persona's "Read only", so the client now shows
the translated label for the seat's runtime mode, and the server's
words for anything else.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…o (part of #1180)

The server's other persona access word now maps to its own key, beside
"Read only". Every locale holds English until the translation lands.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…s (part of #1180)

Main's catalogs, regenerated for this branch's source, with the reviewed
translations applied again. #1300's four new strings hold English until
they are translated.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

This branch was successfully deployed

1 active deployment
Preview — f7598dd1 Deployed Nov 29, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:XXL 1,000+ effective changed lines (test files excluded in mixed PRs). vouch:trusted Author is trusted by repo permissions or the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant