Python
gui: add i18n infrastructure with English and Chinese locales
malin19976ff0f0fac969
diff --git a/surfaces/gui/package-lock.json b/surfaces/gui/package-lock.jsonindex 56baf1e1..8e895216 100644--- a/surfaces/gui/package-lock.json+++ b/surfaces/gui/package-lock.json@@ -8,9 +8,11 @@"name": "openworker-gui","version": "0.0.0","dependencies": {+ "i18next": "^26.3.6","pdfjs-dist": "^4.10.38","react": "^18.3.1","react-dom": "^18.3.1",+ "react-i18next": "^17.0.11","react-markdown": "^10.1.0","remark-gfm": "^4.0.1","simple-icons": "^16.26.0",@@ -305,7 +307,6 @@"version": "7.29.7","resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.29.7.tgz","integrity": "sha512-Nq8OhGWiZIZGV6hLHoyAKLLcJihP/xFeBMGJoUrxTX2psI8dCifzLhZISFb+VWS3wFMRDmCGw5R+dOySCqPLhw==",- "dev": true,"license": "MIT","engines": {"node": ">=6.9.0"@@ -3204,6 +3205,15 @@"node": ">=18"}},+ "node_modules/html-parse-stringify": {+ "version": "4.0.1",+ "resolved": "https://registry.npmjs.org/html-parse-stringify/-/html-parse-stringify-4.0.1.tgz",+ "integrity": "sha512-0zHsZJrK7S3K2aucXWL6ycoYJ/iNtIcFHC/nYQgFklPtrv5LpJctIiSCroWZWeuoXvuyFdzp6KzjJQ+OT5MfFw==",+ "license": "MIT",+ "funding": {+ "url": "https://locize.com"+ }+ },"node_modules/html-url-attributes": {"version": "3.0.1","resolved": "https://registry.npmjs.org/html-url-attributes/-/html-url-attributes-3.0.1.tgz",@@ -3242,6 +3252,34 @@"node": ">= 14"}},+ "node_modules/i18next": {+ "version": "26.3.6",+ "resolved": "https://registry.npmjs.org/i18next/-/i18next-26.3.6.tgz",+ "integrity": "sha512-Bu5Z2nAXgfVyM8xvW3jk9EKRIuX37PudsrBViThNFx7CR7aaYTpP01cxNB/E4c4UUzTDiAZRstEhsRfPOL/8xA==",+ "funding": [+ {+ "type": "individual",+ "url": "https://www.locize.com/i18next"+ },+ {+ "type": "individual",+ "url": "https://www.i18next.com/how-to/faq#i18next-is-awesome.-how-can-i-support-the-project"+ },+ {+ "type": "individual",+ "url": "https://www.locize.com"+ }+ ],+ "license": "MIT",+ "peerDependencies": {+ "typescript": "^5 || ^6 || ^7"+ },+ "peerDependenciesMeta": {+ "typescript": {+ "optional": true+ }+ }+ },"node_modules/iconv-lite": {"version": "0.6.3","resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.6.3.tgz",@@ -4937,6 +4975,33 @@"react": "^18.3.1"}},+ "node_modules/react-i18next": {+ "version": "17.0.11",+ "resolved": "https://registry.npmjs.org/react-i18next/-/react-i18next-17.0.11.tgz",+ "integrity": "sha512-cDtkXgxjuFTWUH6V+aQn1Ve5vDiUztCNPWW5GtSHDccsgRXO1nE6QFWCEmc1KAutrb3OUv87wFShJL5RhUwPXg==",+ "license": "MIT",+ "dependencies": {+ "@babel/runtime": "^7.29.2",+ "html-parse-stringify": "^4.0.1",+ "use-sync-external-store": "^1.6.0"+ },+ "peerDependencies": {+ "i18next": ">= 26.2.0",+ "react": ">= 16.8.0",+ "typescript": "^5 || ^6 || ^7"+ },+ "peerDependenciesMeta": {+ "react-dom": {+ "optional": true+ },+ "react-native": {+ "optional": true+ },+ "typescript": {+ "optional": true+ }+ }+ },"node_modules/react-is": {"version": "17.0.2","resolved": "https://registry.npmjs.org/react-is/-/react-is-17.0.2.tgz",@@ -5608,7 +5673,7 @@"version": "5.9.3","resolved": "https://registry.npmjs.org/typescript/-/typescript-5.9.3.tgz","integrity": "sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw==",- "dev": true,+ "devOptional": true,"license": "Apache-2.0","bin": {"tsc": "bin/tsc",@@ -5736,6 +5801,15 @@"browserslist": ">= 4.21.0"}},+ "node_modules/use-sync-external-store": {+ "version": "1.6.0",+ "resolved": "https://registry.npmjs.org/use-sync-external-store/-/use-sync-external-store-1.6.0.tgz",+ "integrity": "sha512-Pp6GSwGP/NrPIrxVFAIkOQeyw8lFenOHijQWkUTrDvrF4ALqylP2C/KCkeS9dpUM3KvYRQhna5vt7IL95+ZQ9w==",+ "license": "MIT",+ "peerDependencies": {+ "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0"+ }+ },"node_modules/util-deprecate": {"version": "1.0.2","resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz",diff --git a/surfaces/gui/package.json b/surfaces/gui/package.jsonindex c909514d..aeceff89 100644--- a/surfaces/gui/package.json+++ b/surfaces/gui/package.json@@ -14,9 +14,11 @@"tauri": "tauri"},"dependencies": {+ "i18next": "^26.3.6","pdfjs-dist": "^4.10.38","react": "^18.3.1","react-dom": "^18.3.1",+ "react-i18next": "^17.0.11","react-markdown": "^10.1.0","remark-gfm": "^4.0.1","simple-icons": "^16.26.0",diff --git a/surfaces/gui/src/App.tsx b/surfaces/gui/src/App.tsxindex 603d1e8e..f8c2e395 100644--- a/surfaces/gui/src/App.tsx+++ b/surfaces/gui/src/App.tsx@@ -1,4 +1,5 @@import { useCallback, useEffect, useRef, useState, type PointerEvent } from "react";+import { useTranslation } from "react-i18next";import {announceInboxUnlock,finalizeAutomationRun,@@ -60,10 +61,12 @@ import { WorkspaceTrustPrompt } from "./components/WorkspaceTrustPrompt";const newId = () =>(crypto as any).randomUUID ? crypto.randomUUID().slice(0, 12) : Math.random().toString(36).slice(2, 14);-const SUGGESTIONS = [- { ico: "⚙", text: "Run the test suite and summarize any failures." },- { ico: "✦", text: "Read the project and give me a 5-bullet overview." },- { ico: "↻", text: "Find and fix the failing build." },+// Hero task suggestions — translated at call time (module scope can't see React hooks).+// Keys live under `hero.suggest_*`; resolved in the component via useTranslation.+const SUGGESTION_KEYS = [+ { ico: "⚙", key: "hero.suggest_tests" },+ { ico: "✦", key: "hero.suggest_overview" },+ { ico: "↻", key: "hero.suggest_fix_build" },];// Tools whose success means a new/changed file should show up under Artifacts right away.@@ -144,6 +147,7 @@ function fallbackWorkspace(current: string | null, projects: RecentWorkspace[]):}export function App() {+ const { t } = useTranslation();const [workspace, setWorkspace] = useState<string | null>(null);const [branch, setBranch] = useState<string | null>(null);const [showGate, setShowGate] = useState(false);@@ -681,23 +685,23 @@ export function App() {break;case "turn_end":if (d.status === "max_iterations_exceeded")- setItems((p) => [...p, { kind: "notice", tone: "warn", text: "Stopped: max iterations reached." }]);+ setItems((p) => [...p, { kind: "notice", tone: "warn", text: t("app.notice.max_iterations") }]);break;case "model_changed":// Mid-session switch (server-applied): update the header fact and drop the// persisted marker into the live transcript (replay renders it from history).if (d.model) setModel(d.model);- setItems((p) => [...p, { kind: "notice", tone: "info", text: d.text || "Model switched" }]);+ setItems((p) => [...p, { kind: "notice", tone: "info", text: d.text || t("app.notice.model_switched") }]);break;case "interrupted":flushPartialStream();- setItems((p) => [...p, { kind: "notice", tone: "warn", text: "Interrupted." }]);+ setItems((p) => [...p, { kind: "notice", tone: "warn", text: t("app.notice.interrupted") }]);break;case "error":flushPartialStream();setItems((p) => [...p,- { kind: "notice", tone: "warn", text: "Error: " + (d.error || "unknown"), retriable: true },+ { kind: "notice", tone: "warn", text: t("app.notice.error") + (d.error || "unknown"), retriable: true },]);break;case "input_rejected":@@ -1105,7 +1109,7 @@ export function App() {const subtitleParts = [modelDisplay];if (isProjectScoped(personaOf(agent)) && workspace) subtitleParts.push(baseName(workspace));const activeInfo = sessions.find((s) => s.session_id === sessionId);- const activeTitle = activeInfo?.title || "New session";+ const activeTitle = activeInfo?.title || t("sidebar.new_session");const desktop = isTauri();// Dev-only: `?overlay=1` simulates the desktop overlay layout in the browser (adds the@@ -1144,7 +1148,7 @@ export function App() {<Icon name="logo" size={38} /></div><div className="boot-text">- {resumedExisting ? "Restoring your session…" : "Starting OpenWorker…"}+ {resumedExisting ? t("boot.restoring") : t("boot.starting")}<span className="beta-tag">BETA</span></div></div>@@ -1177,10 +1181,10 @@ export function App() {><div className="flex items-center gap-2 text-[12.5px] font-semibold"><span className="w-[7px] h-[7px] rounded-full bg-faint toast-pulse" />- Automation started+ {t("toast.automation_started")}</div><div className="text-[12.5px] text-muted mt-0.5 ml-[15px] truncate">- {runToast.title} · {runToast.time} run+ {runToast.title} · {runToast.time} {t("toast.run_count")}</div><div className="flex items-center justify-between ml-[15px] mt-1.5"><button@@ -1191,12 +1195,12 @@ export function App() {setRunToast(null);}}>- View run ›+ {t("toast.view_run")} ›</button><buttonclassName="text-[12px] text-faint px-0.5"data-testid="toast-dismiss"- title="Dismiss"+ title={t("common.dismiss")}onClick={() => setRunToast(null)}>✕@@ -1223,8 +1227,8 @@ export function App() {className="nav-reveal-btn"onClick={toggleNav}onMouseEnter={() => setNavPeek(true)}- title="Show sidebar (⌘B)"- aria-label="Show sidebar"+ title={t("topbar.show_sidebar")}+ aria-label={t("topbar.show_sidebar_short")}><Icon name="sidebar" size={16} /></button>@@ -1328,24 +1332,24 @@ export function App() {<buttonclassName="topbar-icon-btn"onClick={toggleNav}- aria-label="Show sidebar"- title="Show sidebar (⌘B)"+ aria-label={t("topbar.show_sidebar_short")}+ title={t("topbar.show_sidebar")}><Icon name="sidebar" size={16} /></button><buttonclassName="topbar-icon-btn"onClick={() => startNewSession()}- aria-label="New session"- title="New session"+ aria-label={t("sidebar.new_session")}+ title={t("sidebar.new_session")}><Icon name="plus" size={16} /></button><buttonclassName="topbar-icon-btn"onClick={() => setSearchOpen(true)}- aria-label="Search"- title="Search"+ aria-label={t("topbar.search")}+ title={t("topbar.search")}><Icon name="search" size={16} /></button>@@ -1381,10 +1385,10 @@ export function App() {className="topbar-artifacts-btn"onMouseDown={(e) => e.stopPropagation()}onClick={() => setRailHidden(false)}- title="Show files this conversation produced"+ title={t("topbar.show_artifacts")}><Icon name="file" size={14} />- <span>Artifacts</span>+ <span>{t("topbar.artifacts")}</span><span className="topbar-artifacts-count">{artifactCount}</span></button>)}@@ -1395,8 +1399,8 @@ export function App() {className="topbar-icon-btn"onMouseDown={(e) => e.stopPropagation()}onClick={() => setRailHidden((h) => !h)}- aria-label={railHidden ? "Show side panel" : "Hide side panel"}- title={railHidden ? "Show side panel" : "Hide side panel"}+ aria-label={railHidden ? t("topbar.show_side_panel") : t("topbar.hide_side_panel")}+ title={railHidden ? t("topbar.show_side_panel") : t("topbar.hide_side_panel")}><Icon name="sidebarRight" size={16} /></button>@@ -1416,14 +1420,14 @@ export function App() {><Icon name="clock" size={14} className="text-accent shrink-0" /><span className="truncate text-muted">- Scheduled run+ {t("run_banner.scheduled_run")}{runContext?.title ? (<>{" — "}<span className="text-ink font-medium">{runContext.title}</span></>) : null}{" "}- · started by an automation+ {t("run_banner.started_by_automation")}</span><buttonclassName="ml-auto shrink-0 text-accent font-medium hover:underline"@@ -1432,7 +1436,7 @@ export function App() {setSurface("scheduled");}}>- ← Back to runs+ {t("run_banner.back_to_runs")}</button></div>)}@@ -1448,15 +1452,15 @@ export function App() {<div className="hero"><h1 className="greeting"><span className="mark">✦</span>- {agent === "chat" ? "How can I help?" : "Let's build something."}+ {agent === "chat" ? t("hero.chat_greeting") : t("hero.build_greeting")}</h1>{needsWorkspace(agent) && (<div className="suggestions">- <div className="suggest-head">Try a task</div>- {SUGGESTIONS.map((s, i) => (- <div className="suggest" key={i} onClick={() => workspace && send(s.text)}>+ <div className="suggest-head">{t("hero.try_a_task")}</div>+ {SUGGESTION_KEYS.map((s, i) => (+ <div className="suggest" key={i} onClick={() => workspace && send(t(s.key))}><span className="ico">{s.ico}</span>- {s.text}+ {t(s.key)}</div>))}</div>@@ -1490,7 +1494,7 @@ export function App() {{streaming && streamMode(streaming, items, running) === "answer" && (<div className="transcript"><div className="bubble-assistant">- <div className="who">assistant</div>+ <div className="who">{t("transcript.who_assistant")}</div><Markdown text={streaming} /><span className="stream-cursor">▍</span></div>@@ -1511,7 +1515,7 @@ export function App() {onClick={followLatest}><Icon name="chevronDown" size={13} />- Jump to latest+ {t("app.jump_to_latest")}</button></div>)}@@ -1537,10 +1541,10 @@ export function App() {resetKey={sessionId}placeholder={agent === "code"- ? "Ask the coder to build, fix, or explain… (drop or paste files)"+ ? t("composer.placeholder_code"): agent === "chat"- ? "Ask anything… (drop or paste files)"- : "Ask the coworker… (drop or paste files)"+ ? t("composer.placeholder_chat")+ : t("composer.placeholder_cowork")}approvalSlot={// Live inline cards are for ATTENDED sessions only; when Unattended the prompt is@@ -1648,11 +1652,12 @@ function lastItemIsAssistant(items: Item[]): boolean {}function WaitingForAgent() {+ const { t } = useTranslation();return (<div className="waiting-transcript"><div className="waiting-row" aria-live="polite"><span className="waiting-spinner" />- <span>Waiting for agent...</span>+ <span>{t("app.waiting_for_agent")}</span></div></div>);diff --git a/surfaces/gui/src/components/AccessSection.tsx b/surfaces/gui/src/components/AccessSection.tsxindex 5648852a..229848a0 100644--- a/surfaces/gui/src/components/AccessSection.tsx+++ b/surfaces/gui/src/components/AccessSection.tsx@@ -10,6 +10,7 @@// to expand it and scroll it into view.import { useCallback, useEffect, useRef, useState } from "react";+import { Trans, useTranslation } from "react-i18next";import {CLOUD_CHANGED,getCloudStatus,@@ -75,6 +76,7 @@ export function AccessSection({const { roots, busy: rootsBusy, error: rootsError, addRoot, toggleAccess, removeRoot } =useRoots(sessionId, open ? 1 : 0);const rootEl = useRef<HTMLElement | null>(null);+ const { t } = useTranslation();const reload = useCallback(() => {// personaId hint: a brand-new session has no server-side record yet, so without it the@@ -212,23 +214,23 @@ export function AccessSection({const names = live.map((c) => labelFor(c.connector, byName));const sourcesPart =names.length === 0- ? "no sources"+ ? t("access.summary_no_sources"): names.length <= 2? names.join(", ")- : `${names.slice(0, 2).join(", ")} +${names.length - 2}`;+ : t("access.summary_sources_more", { first: names.slice(0, 2).join(", "), more: names.length - 2 });const folderPart = projectScoped? baseName(workspace || roots.find((r) => r.primary)?.path || "") || null: roots.length > 0- ? `${roots.length} folder${roots.length === 1 ? "" : "s"}`+ ? t("access.summary_folder_count", { count: roots.length }): null;- const summary = folderPart ? `${sourcesPart} · ${folderPart}` : sourcesPart;+ const summary = folderPart ? t("access.summary_join", { sources: sourcesPart, folder: folderPart }) : sourcesPart;return (<section className="rail-section" ref={rootEl} data-testid="access-section"><div className="rail-section-head"><button className="rail-section-toggle" onClick={() => setOpen((v) => !v)} data-testid="access-toggle"><Icon name={open ? "chevronDown" : "chevronRight"} size={14} className="rail-chev" />- <span>Access</span>+ <span>{t("access.section_title")}</span><spanclassName="ml-auto min-w-0 truncate text-[11px] font-normal text-faint"data-testid="access-summary"@@ -239,7 +241,7 @@ export function AccessSection({</button></div>{open && (- <div className="rail-section-body" role="region" aria-label="Session access">+ <div className="rail-section-body" role="region" aria-label={t("access.region_label")}>{connectFor ? (<ConnectInlinec={connectFor}@@ -282,10 +284,10 @@ export function AccessSection({<div className="space-y-4">{/* Sources — each toggle is a per-session override (mute for THIS session only). */}<div>- <div className={`${SEC_H} mb-1.5`}>Sources</div>+ <div className={`${SEC_H} mb-1.5`}>{t("access.sources")}</div>{connected.length === 0 && (<div className="text-[12px] text-faint py-0.5">- No connectors enabled for this session.+ {t("access.no_connectors")}</div>)}<div className="space-y-1">@@ -305,7 +307,7 @@ export function AccessSection({setChannelsFor(c.connector);}}>- Channels · {channelsOf(c.connector).length}+ {t("access.channels_link", { count: channelsOf(c.connector).length })}<Icon name="chevronRight" size={10} /></button>)}@@ -313,14 +315,17 @@ export function AccessSection({<Togglechecked={c.enabled}onChange={(next) => toggleSession(c.connector, next)}- title="Enabled for this session — tap to mute here"+ title={t("access.toggle_title")}/></div>))}</div>{connected.length > 0 && (<p className="text-[10.5px] text-faint mt-1 leading-snug">- Off mutes it for <b>this session only</b> — the connector stays connected.+ <Trans+ i18nKey="access.mute_hint"+ components={{ b: <b /> }}+ /></p>)}{/* §32 addendum (owner ask 2026-07-13; FB-012): the catalog's long tail,@@ -330,7 +335,7 @@ export function AccessSection({<div className="mt-1.5"><inputclassName="w-full px-2.5 py-1.5 rounded-lg border border-line bg-panel text-[12.5px] outline-none focus:border-accent"- placeholder="Search connectors…"+ placeholder={t("access.search_placeholder")}value={query}onChange={(e) => setQuery(e.target.value)}onKeyDown={(e) => {@@ -346,7 +351,7 @@ export function AccessSection({// Also covers a failed/empty catalog fetch: an open picker must never// be silently blank — point at the Connectors page either way.<div className="text-[11.5px] text-faint mt-1.5 px-0.5">- No match — see all on the Connectors page below.+ {t("access.no_match")}</div>)}<div className="mt-1 max-h-64 overflow-y-auto">@@ -380,14 +385,14 @@ export function AccessSection({onClick={() => setAdding(true)}data-testid="access-add-source">- + Add a source…+ {t("access.add_source")}</button>)}</div>{recommended.length > 0 && (<div>- <div className={`${SEC_H} mb-1.5`}>Recommended</div>+ <div className={`${SEC_H} mb-1.5`}>{t("access.recommended")}</div><div className="space-y-1">{recommended.map((r) => (<div className="flex items-center gap-2 py-1" key={r.connector}>@@ -395,7 +400,7 @@ export function AccessSection({<div className="min-w-0 flex-1"><div className="flex items-center gap-1.5 text-[12.5px] font-medium leading-tight"><span className="truncate">{labelFor(r.connector, byName)}</span>- {r.tier === "core" && <span className={TAG_CORE}>core</span>}+ {r.tier === "core" && <span className={TAG_CORE}>{t("access.core_tag")}</span>}</div><div className="text-[11px] text-faint truncate" title={r.reason}>{r.reason}@@ -423,7 +428,7 @@ export function AccessSection({a quiet "+" link, structurally identical to Sources (owner ask 2026-07-13:the old drawer's card wrapper read too heavy in the rail). */}<div data-testid="drawer-directories">- <div className={`${SEC_H} mb-1.5`}>Folders</div>+ <div className={`${SEC_H} mb-1.5`}>{t("access.folders")}</div><div className="-mx-1.5">{roots.map((r) => (<RootRow@@ -451,7 +456,7 @@ export function AccessSection({className="mt-1 text-[12px] text-accent hover:underline text-left"onClick={() => setAddingFolder(true)}>- + Give access to a folder…+ + {t("access.give_folder")}</button>)}{rootsError && <div className="roots-err">{rootsError}</div>}@@ -461,7 +466,7 @@ export function AccessSection({className="text-[12px] text-accent font-medium hover:underline text-left"onClick={() => onOpenIntegrations?.()}>- Manage all connectors (global) →+ {t("access.manage_all")} →</button></div>)}@@ -485,6 +490,7 @@ function ConnectInline({onDone: () => void;onBack: () => void;}) {+ const { t: tt } = useTranslation();useEffect(() => {const t = setInterval(async () => {try {@@ -502,9 +508,9 @@ function ConnectInline({<buttonclassName="inline-flex items-center gap-1 text-[12px] text-faint hover:text-ink mb-2"onClick={onBack}- aria-label="Back to sources"+ aria-label={tt("access.back_to_sources")}>- <Icon name="arrowLeft" size={13} /> Connect {c.title}+ <Icon name="arrowLeft" size={13} /> {tt("access.connect_title", { title: c.title })}</button>{c.blurb && <p className="text-[12px] text-muted mb-1 leading-relaxed">{c.blurb}</p>}<div className="-mx-2">@@ -513,8 +519,7 @@ function ConnectInline({{/* Scope semantics, stated once (owner ask 2026-07-13): connecting is account-level,the toggle above is what scopes it to a session. */}<p className="text-[10.5px] text-faint mt-2 leading-snug">- Connecting makes {c.title} available to all your coworkers — the toggle in this list- controls just this session.+ {tt("access.scope_note", { title: c.title })}</p></div>);@@ -543,19 +548,20 @@ function ChannelsInline({onRemove: (channel: string) => void;onBack: () => void;}) {+ const { t: tt } = useTranslation();return (<div><buttonclassName="inline-flex items-center gap-1 text-[12px] text-faint hover:text-ink mb-2"onClick={onBack}- aria-label="Back to sources"+ aria-label={tt("access.back_to_sources")}>- <Icon name="arrowLeft" size={13} /> {label} channels+ <Icon name="arrowLeft" size={13} /> {tt("access.channels_title", { label })}</button>- <div className={`${SEC_H} mb-1.5`}>Subscribed channels · {channels.length}</div>+ <div className={`${SEC_H} mb-1.5`}>{tt("access.subscribed", { count: channels.length })}</div>{channels.length === 0 ? (<div className="text-[12px] text-faint py-0.5">- Not listening to any {label} channel yet.+ {tt("access.no_channels", { label })}</div>) : (<div className="space-y-1">@@ -568,14 +574,14 @@ function ChannelsInline({{s.collision && (<spanclassName="text-[10.5px] text-warnInk bg-warnSoft/70 border border-warnInk/15 rounded px-1 shrink-0"- title="This channel is also this session's Inbox-routing target — inbound and outbound collide."+ title={tt("access.collision_title")}>⚠</span>)}<buttonclassName="w-5 h-5 grid place-items-center text-faint hover:text-danger shrink-0"- title="Stop listening"+ title={tt("access.stop_listening")}onClick={() => onRemove(s.channel)}>×@@ -584,11 +590,11 @@ function ChannelsInline({))}</div>)}- <div className={`${SEC_H} mt-3 mb-1.5`}>Add a channel</div>+ <div className={`${SEC_H} mt-3 mb-1.5`}>{tt("access.add_channel")}</div><div className="flex items-center gap-1.5"><ChannelPicker value={draft} onChange={onDraft} recent={recent} onSubmit={onAdd} /><button className={BTN_ACCENT} disabled={!draft.trim()} onClick={onAdd}>- Add+ {tt("access.add_btn")}</button></div>{error && (@@ -597,8 +603,7 @@ function ChannelsInline({</p>)}<p className="text-[10.5px] text-faint mt-1.5 leading-snug">- The agent receives messages posted to these channels. Removing one stops this session- from listening — the connector stays connected.+ {tt("access.channels_note")}</p></div>);diff --git a/surfaces/gui/src/components/AddFolderForm.tsx b/surfaces/gui/src/components/AddFolderForm.tsxindex b7159a95..6fd673ba 100644--- a/surfaces/gui/src/components/AddFolderForm.tsx+++ b/surfaces/gui/src/components/AddFolderForm.tsx@@ -1,4 +1,5 @@import { useState } from "react";+import { useTranslation } from "react-i18next";import { chooseFolder } from "../tauri";import { Icon } from "./Icon";@@ -20,6 +21,7 @@ export function AddFolderForm({startOpen?: boolean;onDismiss?: () => void;}) {+ const { t } = useTranslation();const [open, setOpen] = useState(!!startOpen);const [path, setPath] = useState("");const [writable, setWritable] = useState(false);@@ -45,7 +47,7 @@ export function AddFolderForm({if (!open) {return (<button className={"addfolder-trigger" + (compact ? " compact" : "")} onClick={() => setOpen(true)}>- <Icon name="folderPlus" size={15} /> Give access to a folder+ <Icon name="folderPlus" size={15} /> {t("access.give_folder")}</button>);}@@ -56,7 +58,7 @@ export function AddFolderForm({<inputclassName="addfolder-path"autoFocus- placeholder="Choose or paste a folder path…"+ placeholder={t("access.addfolder_path_placeholder")}value={path}spellCheck={false}onChange={(e) => setPath(e.target.value)}@@ -65,21 +67,21 @@ export function AddFolderForm({else if (e.key === "Escape") reset();}}/>- <button className="btn icon-only" onClick={browse} title="Choose location" aria-label="Choose location">+ <button className="btn icon-only" onClick={browse} title={t("access.choose_location")} aria-label={t("access.choose_location")}><Icon name="folder" size={15} /></button></div><div className="addfolder-actions">- <label className="addfolder-write" title="Off = read-only. Tick to let the agent write here.">+ <label className="addfolder-write" title={t("access.allow_writes_help")}><input type="checkbox" checked={writable} onChange={(e) => setWritable(e.target.checked)} />- Allow writes+ {t("access.allow_writes")}</label><span className="spacer" /><button className="btn" onClick={reset}>- Cancel+ {t("access.cancel")}</button><button className="btn primary" disabled={busy || !path.trim()} onClick={submit}>- Add+ {t("access.add_btn")}</button></div></div>diff --git a/surfaces/gui/src/components/ApprovalCard.tsx b/surfaces/gui/src/components/ApprovalCard.tsxindex b3a3ba77..efc349a5 100644--- a/surfaces/gui/src/components/ApprovalCard.tsx+++ b/surfaces/gui/src/components/ApprovalCard.tsx@@ -1,4 +1,5 @@import { useState } from "react";+import { getI18n, useTranslation } from "react-i18next";import type { ApprovalDecision, Item } from "../types";import { humanizeApprovalTitle, type HumanLine } from "../humanize";import { Icon } from "./Icon";@@ -15,14 +16,15 @@ export function shortArgs(args: any): string {}// Human verbs kept for the §25 grant lines (the card title now comes from humanize.ts).+// Values are i18n keys resolved at render time.const TOOL_VERBS: Record<string, string> = {- write_file: "Write a file",- replace_in_file: "Edit a file",- apply_patch: "Apply a patch",- apply_unified_diff: "Apply a patch",- run_shell: "Run a command",- send_message: "Send a message",- send_file: "Send a file",+ write_file: "approval.verbs.write_file",+ replace_in_file: "approval.verbs.edit_file",+ apply_patch: "approval.verbs.apply_patch",+ apply_unified_diff: "approval.verbs.apply_patch",+ run_shell: "approval.verbs.run_command",+ send_message: "approval.verbs.send_message",+ send_file: "approval.verbs.send_file",};// §35: routine workspace writes render as a compact ROW; everything else is a full card.@@ -60,19 +62,25 @@ export function TitleText({ line }: { line: HumanLine }) {// Plain-words scope note (replaces the "local action" badge): where does this act?// Shared with the parked-approval card (InboxItemCard) so both dialects match (§35).+// Uses the fixed-T form because this helper is also called from non-component modules.export function scopeNote(name: string,args: any,category?: string,): { text: string; external: boolean } {- if (category === "connector") return { text: "acts on a connected service", external: true };+ const tt = getI18n().getFixedT(null, "translation");+ if (category === "connector") return { text: tt("approval.scope.connector"), external: true };if (EXTERNAL.has(name)) {const platform = String(args?.target ?? "").split(":")[0];const names: Record<string, string> = { slack: "Slack", telegram: "Telegram" };- return { text: `leaves this Mac → ${names[platform] || platform || "a connected chat"}`, external: true };+ const dest = names[platform] || platform || tt("approval.scope.connected_chat_fallback");+ return { text: tt("approval.scope.leaves_mac", { dest }), external: true };}const overwrite = name === "write_file" && args?.overwrite;- return { text: "stays on this Mac" + (overwrite ? " · overwrites the existing file" : ""), external: false };+ return {+ text: tt("approval.scope.stays_mac") + (overwrite ? tt("approval.scope.overwrite_suffix") : ""),+ external: false,+ };}// The proposed content/command, straight from the tool call's ARGS — the file/action@@ -83,6 +91,7 @@ const PREVIEW_LINES = 5;const PREVIEW_CHARS = 420;export function PreviewBlock({ text, mono = true }: { text: string; mono?: boolean }) {+ const { t } = useTranslation();const [all, setAll] = useState(false);const lines = text.split("\n");const clipped = lines.length > PREVIEW_LINES || text.length > PREVIEW_CHARS;@@ -97,10 +106,10 @@ export function PreviewBlock({ text, mono = true }: { text: string; mono?: boole{clipped && (<button className="approval-prev-more" onClick={() => setAll((v) => !v)}>{all- ? "show less"+ ? t("approval.preview_less"): lines.length > PREVIEW_LINES- ? `show all ${lines.length} lines`- : "show the full message"}+ ? t("approval.preview_all_lines", { n: lines.length })+ : t("approval.preview_full")}</button>)}</div>@@ -131,8 +140,11 @@ function Buttons({runTask?: { id: string; title: string } | null;primaryLabel: string;}) {+ const { t } = useTranslation();const connector = item.category === "connector";const offerStanding = !!(runTask && item.standingTarget);+ const verbKey = TOOL_VERBS[item.name];+ const verbName = verbKey ? t(verbKey).toLowerCase() : item.name;return (<div className="approval-btns"><button className="btn approval-primary" onClick={() => onApprove("once")}>@@ -141,10 +153,10 @@ function Buttons({{offerStanding && (<buttonclassName="btn"- title={`Always allow ${item.name} → ${item.standingTarget} for “${runTask?.title || "this automation"}” — revoke any time on its Automations page`}+ title={t("approval.btn.always_task_title", { name: item.name, target: item.standingTarget, task: runTask?.title || t("approval.btn.this_automation") })}onClick={() => onApprove("always_task")}>- Allow every time+ {t("approval.btn.allow_every_time")}</button>)}{/* In a run context the task-persistent grant replaces the session-scoped one —@@ -155,20 +167,20 @@ function Buttons({{!connector && !offerStanding && item.name !== "run_shell" && (<buttonclassName="btn"- title={`Always allow ${TOOL_VERBS[item.name]?.toLowerCase() || item.name} for this session`}+ title={t("approval.btn.always_tool_title", { name: verbName })}onClick={() => onApprove("always_tool")}>- Always allow+ {t("approval.btn.always_allow")}</button>)}{item.name === "run_shell" && (<button className="btn" onClick={() => onApprove("always_command")}>- Always allow this command+ {t("approval.btn.always_command")}</button>)}<span className="spacer" /><button className="btn quiet-deny" onClick={() => onApprove("deny")}>- Deny+ {t("approval.btn.deny")}</button></div>);@@ -187,6 +199,7 @@ export function ApprovalCard({runTask?: { id: string; title: string } | null;compact?: boolean;}) {+ const { t } = useTranslation();const [peek, setPeek] = useState(false);const title = humanizeApprovalTitle(item.name, item.args);const scope = scopeNote(item.name, item.args, item.category);@@ -206,11 +219,11 @@ export function ApprovalCard({<TitleText line={title} />{content && (<button className="approval-peek" onClick={() => setPeek((v) => !v)}>- preview {peek ? "▴" : "▾"}+ {t("approval.preview_label")} {peek ? "▴" : "▾"}</button>)}<span className="spacer" />- <Buttons item={item} onApprove={onApprove} runTask={runTask} primaryLabel="Allow" />+ <Buttons item={item} onApprove={onApprove} runTask={runTask} primaryLabel={t("approval.allow")} /></div>{peek && content && <PreviewBlock text={content} />}{reason && <div className="approval-reason">{reason}</div>}@@ -222,7 +235,7 @@ export function ApprovalCard({<div className={"approval" + (scope.external ? " approval-external" : "") + dock}><div className="approval-top"><div className="approval-heading">- <span className="approval-ico" title={`Tool: ${item.name}`}>+ <span className="approval-ico" title={t("approval.tool_title", { name: item.name })}><Icon name="shield" size={15} /></span><TitleText line={title} />@@ -241,11 +254,11 @@ export function ApprovalCard({<span className="ico"><Icon name="file" size={13} /></span>- {String(item.args?.path ?? "").split("/").pop() || "file"}- {item.args?.as_screenshot ? " · as a PNG screenshot" : ""}+ {String(item.args?.path ?? "").split("/").pop() || t("approval.file_fallback")}+ {item.args?.as_screenshot ? t("approval.as_png_screenshot") : ""}</span>{item.args?.comment && (- <MessagePreview text={String(item.args.comment)} label="With the message" />+ <MessagePreview text={String(item.args.comment)} label={t("approval.with_message")} />)}</>)}@@ -255,19 +268,22 @@ export function ApprovalCard({{grants.length > 0 && (<div className="approval-grants" data-testid="approval-grants">- {grants.map((g, i) => (- <div className="approval-grant" key={i} data-access={g.access}>- <span className={"grant-mark" + (g.access === "write" ? " write" : "")}>- {g.access === "write" ? "✓" : "·"}- </span>- <span className="grant-line">- {TOOL_VERBS[g.tool] || g.tool} <code className="approval-tool">{g.target}</code>- <span className="grant-note">- {g.access === "write" ? " — always allowed once you approve" : " — read-only"}+ {grants.map((g, i) => {+ const verbKey = TOOL_VERBS[g.tool];+ return (+ <div className="approval-grant" key={i} data-access={g.access}>+ <span className={"grant-mark" + (g.access === "write" ? " write" : "")}>+ {g.access === "write" ? "✓" : "·"}</span>- </span>- </div>- ))}+ <span className="grant-line">+ {verbKey ? t(verbKey) : g.tool} <code className="approval-tool">{g.target}</code>+ <span className="grant-note">+ {g.access === "write" ? t("approval.grant.always_after_approve") : t("approval.grant.read_only")}+ </span>+ </span>+ </div>+ );+ })}</div>)}{/* Long-tail tools: no bespoke preview — fall back to the compact args line. */}@@ -278,9 +294,9 @@ export function ApprovalCard({{reason && <div className="approval-reason">{reason}</div>}{item.resolved ? (- <div className="resolved">Approved: {item.resolved.replace("_", " ")}</div>+ <div className="resolved">{t("approval.resolved_prefix", { state: item.resolved.replace(/_/g, " ") })}</div>) : (- <Buttons item={item} onApprove={onApprove} runTask={runTask} primaryLabel="Allow once" />+ <Buttons item={item} onApprove={onApprove} runTask={runTask} primaryLabel={t("approval.allow_once")} />)}</div>);diff --git a/surfaces/gui/src/components/AuditView.tsx b/surfaces/gui/src/components/AuditView.tsxindex 02f4dcd0..4737ada9 100644--- a/surfaces/gui/src/components/AuditView.tsx+++ b/surfaces/gui/src/components/AuditView.tsx@@ -1,4 +1,5 @@import { useEffect, useState } from "react";+import { useTranslation } from "react-i18next";import { getAudit, type AuditEvent } from "../api";import { PanelHead } from "./IntegrationsView";@@ -14,6 +15,7 @@ export function AuditView() {const [sessionFilter, setSessionFilter] = useState("");const [connectorFilter, setConnectorFilter] = useState("");const [toolFilter, setToolFilter] = useState("");+ const { t } = useTranslation();const refresh = () =>getAudit({@@ -34,21 +36,21 @@ export function AuditView() {<div className="flex-1 min-w-0 overflow-y-auto hairline-scroll"><div className="max-w-4xl mx-auto px-7 py-6"><PanelHead- title="Activity"- sub="Recent connector and browser tool activity. Arguments are sanitized before storage."+ title={t("audit.title")}+ sub={t("audit.sub")}/><div className="flex items-center gap-2 flex-wrap mb-4">- <input className={INPUT} placeholder="session id" value={sessionFilter} onChange={(e) => setSessionFilter(e.target.value)} />- <input className={INPUT} placeholder="connector" value={connectorFilter} onChange={(e) => setConnectorFilter(e.target.value)} />- <input className={INPUT} placeholder="tool" value={toolFilter} onChange={(e) => setToolFilter(e.target.value)} />+ <input className={INPUT} placeholder={t("audit.placeholder_session")} value={sessionFilter} onChange={(e) => setSessionFilter(e.target.value)} />+ <input className={INPUT} placeholder={t("audit.placeholder_connector")} value={connectorFilter} onChange={(e) => setConnectorFilter(e.target.value)} />+ <input className={INPUT} placeholder={t("audit.placeholder_tool")} value={toolFilter} onChange={(e) => setToolFilter(e.target.value)} /><button className={BTN_ACCENT} onClick={refresh}>- Filter+ {t("audit.filter")}</button></div>{events.length === 0 ? (- <div className={CARD + " p-4 text-[13px] text-muted"}>No audit events yet.</div>+ <div className={CARD + " p-4 text-[13px] text-muted"}>{t("audit.no_events")}</div>) : (<div className="space-y-2">{events.map((ev) => (@@ -63,18 +65,19 @@ export function AuditView() {}function AuditRow({ ev }: { ev: AuditEvent }) {+ const { t } = useTranslation();return (<div className={CARD + " p-3.5"}><div className="flex items-center gap-2 flex-wrap"><span className="font-mono text-[12.5px] font-medium text-ink">{ev.tool}</span><span className="text-[11.5px] text-faint">- {ev.connector || "tool"} · {ev.stage || ev.status || "event"} · {ev.timestamp}+ {ev.connector || t("audit.fallback_tool")} · {ev.stage || ev.status || t("audit.fallback_event")} · {ev.timestamp}</span></div><div className="text-[11.5px] text-muted mt-0.5">- session {ev.session_id || "-"} {ev.approval ? `· ${ev.approval}` : ""} {ev.status ? `· ${ev.status}` : ""}+ {t("audit.session")} {ev.session_id || "-"} {ev.approval ? `· ${ev.approval}` : ""} {ev.status ? `· ${ev.status}` : ""}</div>- {ev.resource && <div className="text-[11.5px] text-faint mt-0.5">resource: {ev.resource}</div>}+ {ev.resource && <div className="text-[11.5px] text-faint mt-0.5">{t("audit.resource", { value: ev.resource })}</div>}{ev.args && Object.keys(ev.args).length > 0 && (<div className="font-mono text-[11.5px] text-muted mt-1.5 break-words">{formatAuditArgs(ev.args)}</div>)}diff --git a/surfaces/gui/src/components/AutomationQuickstart.tsx b/surfaces/gui/src/components/AutomationQuickstart.tsxindex e7ac533e..e43552a4 100644--- a/surfaces/gui/src/components/AutomationQuickstart.tsx+++ b/surfaces/gui/src/components/AutomationQuickstart.tsx@@ -1,4 +1,5 @@import { useEffect, useRef, useState } from "react";+import { useTranslation, getI18n } from "react-i18next";import {cloudLogin,connectManaged,@@ -22,16 +23,17 @@ import { SelectMenu } from "./SelectMenu";// The `ob-*` testids moved here with the machinery.// "When" = day choice × free time (owner call 2026-07-11); the cron assembles from the two.-const DAYS: Record<string, { label: string; dow: string }> = {- mon: { label: "Mondays", dow: "1" },- tue: { label: "Tuesdays", dow: "2" },- wed: { label: "Wednesdays", dow: "3" },- thu: { label: "Thursdays", dow: "4" },- fri: { label: "Fridays", dow: "5" },- sat: { label: "Saturdays", dow: "6" },- sun: { label: "Sundays", dow: "0" },- weekdays: { label: "Weekdays", dow: "1-5" },- daily: { label: "Every day", dow: "*" },+// Labels are i18n keys (resolved in the component via t()).+const DAYS: Record<string, { labelKey: string; dow: string }> = {+ mon: { labelKey: "automations.day_mon", dow: "1" },+ tue: { labelKey: "automations.day_tue", dow: "2" },+ wed: { labelKey: "automations.day_wed", dow: "3" },+ thu: { labelKey: "automations.day_thu", dow: "4" },+ fri: { labelKey: "automations.day_fri", dow: "5" },+ sat: { labelKey: "automations.day_sat", dow: "6" },+ sun: { labelKey: "automations.day_sun", dow: "0" },+ weekdays: { labelKey: "automations.freq_weekdays", dow: "1-5" },+ daily: { labelKey: "automations.freq_daily", dow: "*" },};// §30 connect-state spinner (the app has no other spinner — waits elsewhere are label swaps).// Exported for Onboarding page 2's sign-in button (same states, same look).@@ -46,10 +48,10 @@ const cronFor = (dayKey: string, hhmm: string) => {interface QuickTemplate {key: string;- title: string;- blurb: string;- cadence: string; // the card's footer label- conns: { name: string; why: string }[]; // [] = no connections needed+ titleKey: string;+ blurbKey: string;+ cadenceKey: string; // the card's footer label+ conns: { name: string; whyKey: string }[]; // [] = no connections neededneedsRepo?: boolean;needsChannel?: boolean;consent?: boolean; // write recipes carry the §25 consent line; reads carry disclosure@@ -62,89 +64,88 @@ interface QuickTemplate {const TEMPLATES: QuickTemplate[] = [{key: "github",- title: "GitHub digest",- blurb: "Merged PRs and commits, posted to your team's Slack.",- cadence: "Weekly",+ titleKey: "automations.tmpl_github_title",+ blurbKey: "automations.tmpl_github_blurb",+ cadenceKey: "automations.cadence_weekly",conns: [- { name: "slack", why: "Where the digest posts" },- { name: "github", why: "What the digest summarizes" },+ { name: "slack", whyKey: "automations.why_digest_posts" },+ { name: "github", whyKey: "automations.why_digest_summarizes" },],needsRepo: true,needsChannel: true,consent: true,day: "mon",time: "09:00",- instructions: ({ repo, channel }) =>- `Summarize activity since the last digest in the GitHub repository ${repo || "(the connected repository)"}: ` +- `merged pull requests, notable commits, and anything needing attention. ` +- `Post the digest to the Slack channel ${channel} using send_message.`,+ instructions: ({ repo, channel }) => {+ const gt = getI18n().t;+ return gt("automations.tmpl_github_instructions", { repo: repo || gt("automations.tmpl_github_repo_default"), channel });+ },},{key: "pipeline",- title: "Pipeline digest",- blurb: "Deals that moved — and deals going quiet — posted to Slack.",- cadence: "Weekly",+ titleKey: "automations.tmpl_pipeline_title",+ blurbKey: "automations.tmpl_pipeline_blurb",+ cadenceKey: "automations.cadence_weekly",conns: [- { name: "slack", why: "Where the digest posts" },- { name: "hubspot", why: "Pipeline and deal activity" },+ { name: "slack", whyKey: "automations.why_digest_posts" },+ { name: "hubspot", whyKey: "automations.why_pipeline_activity" },],needsChannel: true,consent: true,day: "mon",time: "09:00",- instructions: ({ channel }) =>- `Review HubSpot activity since the last digest: deals that changed stage, deals going ` +- `quiet, and deals past their close date. Post a short pipeline digest to the Slack ` +- `channel ${channel} using send_message.`,+ instructions: ({ channel }) => {+ const gt = getI18n().t;+ return gt("automations.tmpl_pipeline_instructions", { channel });+ },},{key: "brief",- title: "Morning brief",- blurb: "Calendar and unread email, summarized before your day starts.",- cadence: "Daily",+ titleKey: "automations.tmpl_brief_title",+ blurbKey: "automations.tmpl_brief_blurb",+ cadenceKey: "automations.cadence_daily",conns: [- { name: "google_calendar", why: "Today's meetings and gaps" },- { name: "gmail", why: "What arrived overnight" },+ { name: "google_calendar", whyKey: "automations.why_meetings_gaps" },+ { name: "gmail", whyKey: "automations.why_overnight_email" },],deliver: true,day: "daily",time: "08:00",- instructions: ({ deliver }) =>- `Prepare a short morning brief: today's calendar events and gaps, plus email that ` +- `arrived since yesterday evening. ` +- (deliver === "app" ? "Save it as the session deliverable." : "Send it to me as a Slack DM."),+ instructions: ({ deliver }) => {+ const gt = getI18n().t;+ return gt("automations.tmpl_brief_instructions_prefix") ++ (deliver === "app" ? gt("automations.tmpl_brief_save") : gt("automations.tmpl_brief_slack"));+ },},{key: "news",- title: "Morning news briefing",- blurb: "A 5-bullet tech & world news digest, saved as markdown.",- cadence: "Daily",+ titleKey: "automations.tmpl_news_title",+ blurbKey: "automations.tmpl_news_blurb",+ cadenceKey: "automations.cadence_daily",conns: [],day: "daily",time: "08:00",- instructions: () =>- "Search the web for the most important technology and world news from the last 24 hours " +- "and write a concise 5-bullet briefing, saved as a markdown file.",+ instructions: () => getI18n().t("automations.tmpl_news_instructions"),},{key: "inboxdigest",- title: "Inbox digest",- blurb: "One short digest of your unread email.",- cadence: "Weekdays",- conns: [{ name: "gmail", why: "Your unread email" }],+ titleKey: "automations.tmpl_inbox_title",+ blurbKey: "automations.tmpl_inbox_blurb",+ cadenceKey: "automations.cadence_weekdays",+ conns: [{ name: "gmail", whyKey: "automations.why_unread_email" }],day: "weekdays",time: "09:00",- instructions: () => "Summarize my unread email into one short digest note.",+ instructions: () => getI18n().t("automations.tmpl_inbox_instructions"),},{key: "cleanup",- title: "Folder cleanup",- blurb: "Sort recent Downloads into tidy folders by type.",- cadence: "Weekly",+ titleKey: "automations.tmpl_cleanup_title",+ blurbKey: "automations.tmpl_cleanup_blurb",+ cadenceKey: "automations.cadence_weekly",conns: [],day: "fri",time: "17:30",- instructions: () => "Sort my recent Downloads into tidy folders by file type.",+ instructions: () => getI18n().t("automations.tmpl_cleanup_instructions"),},];@@ -160,8 +161,9 @@ export function AutomationQuickstart({permissions?: { tool: string; target: string; access: "read" | "write" }[];}) => void;}) {+ const { t } = useTranslation();const [pickedKey, setPickedKey] = useState<string | null>(null);- const picked = TEMPLATES.find((t) => t.key === pickedKey) || null;+ const picked = TEMPLATES.find((tpl) => tpl.key === pickedKey) || null;const [connectors, setConnectors] = useState<Connector[]>([]);const [cloud, setCloud] = useState<CloudStatus | null>(null);@@ -225,10 +227,10 @@ export function AutomationQuickstart({if (pickedKey) cfgRef.current?.scrollIntoView({ behavior: "smooth", block: "nearest" });}, [pickedKey]);- const pick = (t: QuickTemplate) => {- setPickedKey(t.key);- setDay(t.day);- setTime(t.time);+ const pick = (tpl: QuickTemplate) => {+ setPickedKey(tpl.key);+ setDay(tpl.day);+ setTime(tpl.time);setConsent(true);setConnFlow(null);};@@ -280,7 +282,7 @@ export function AutomationQuickstart({const create = () => {if (!picked) return;onCreate({- title: picked.title,+ title: t(picked.titleKey),instructions: picked.instructions({ repo, channel, deliver }),cron: cronFor(day, time),permissions:@@ -291,12 +293,14 @@ export function AutomationQuickstart({};const gateHint = !allConnected- ? `Connect ${picked?.conns- .filter((c) => !connState(c.name)?.connected)- .map((c) => connState(c.name)?.title || c.name)- .join(" and ")} to continue`+ ? t("automations.gate_connect", {+ names: picked?.conns+ .filter((c) => !connState(c.name)?.connected)+ .map((c) => connState(c.name)?.title || c.name)+ .join(t("automations.gate_join")),+ }): picked?.needsChannel && !channel- ? "Pick a channel to post to first"+ ? t("automations.gate_pick_channel"): "";const label = "block text-[12px] text-muted mt-3 mb-1";@@ -306,33 +310,33 @@ export function AutomationQuickstart({return (<div className="mb-4"><div className="text-[11px] uppercase tracking-[0.05em] text-faint mb-2.5">- Start from a template+ {t("automations.start_from_template")}</div>{/* Equal-height cards (owner ask 2026-07-12): 1fr rows + h-full — <button> grid itemsdon't stretch like divs. */}<div className="grid grid-cols-3 auto-rows-fr gap-3">- {TEMPLATES.map((t) => (+ {TEMPLATES.map((tpl) => (<button- key={t.key}- data-testid={`qs-template-${t.key}`}+ key={tpl.key}+ data-testid={`qs-template-${tpl.key}`}className={"h-full text-left rounded-xl2 border bg-panel p-4 flex flex-col gap-1.5 " +- (pickedKey === t.key+ (pickedKey === tpl.key? "border-accent ring-2 ring-accentSoft": "border-line hover:border-lineStrong")}- onClick={() => pick(t)}+ onClick={() => pick(tpl)}>- <span className="text-[13.5px] font-semibold">{t.title}</span>- <span className="text-[12px] text-muted leading-relaxed flex-1">{t.blurb}</span>+ <span className="text-[13.5px] font-semibold">{t(tpl.titleKey)}</span>+ <span className="text-[12px] text-muted leading-relaxed flex-1">{t(tpl.blurbKey)}</span><span className="flex items-center gap-1.5 mt-1">- {t.conns.map((c) => {+ {tpl.conns.map((c) => {const cs = connState(c.name);const on = !!cs?.connected;return (<spankey={c.name}- title={`${cs?.title || c.name} — ${on ? "connected" : "not connected yet"}`}+ title={`${cs?.title || c.name} — ${on ? t("automations.conn_connected") : t("automations.conn_not_connected")}`}style={on ? undefined : { filter: "grayscale(1)", opacity: 0.55 }}>{cs ? (@@ -344,7 +348,7 @@ export function AutomationQuickstart({);})}<span className="text-[11px] text-faint ml-0.5">- {t.conns.length === 0 ? `No connections needed · ${t.cadence}` : t.cadence}+ {tpl.conns.length === 0 ? t("automations.no_conns_with_cadence", { cadence: t(tpl.cadenceKey) }) : t(tpl.cadenceKey)}</span></span></button>@@ -360,15 +364,15 @@ export function AutomationQuickstart({{/* §30: the card names its template — without this it starts abruptly after the grid. */}<div className="flex items-baseline gap-2 pb-2.5 mb-1 border-b border-line"><span className="text-[11px] uppercase tracking-[0.05em] text-accent font-semibold">- Set up+ {t("automations.set_up")}</span>- <span className="text-[14px] font-semibold">{picked.title}</span>+ <span className="text-[14px] font-semibold">{t(picked.titleKey)}</span><span className="ml-auto text-[12px] text-faint max-sm:hidden">- {picked.conns.length ? "Connections, delivery & schedule" : "Delivery & schedule"} ·{" "}- {picked.cadence}+ {picked.conns.length ? t("automations.conns_delivery_sched") : t("automations.delivery_sched")} ·{" "}+ {t(picked.cadenceKey)}</span></div>- {picked.conns.map(({ name, why }) => {+ {picked.conns.map(({ name, whyKey }) => {const c = connState(name);const flow = connFlow?.name === name ? connFlow : null;return (@@ -377,16 +381,16 @@ export function AutomationQuickstart({{c && <ConnectorBadge connector={c} size={26} title={c.title} />}<span className="min-w-0 flex-1"><span className="block text-[13.5px] font-medium">{c?.title || name}</span>- <span className="block text-[11.5px] text-faint">{why}</span>+ <span className="block text-[11.5px] text-faint">{t(whyKey)}</span></span>{c?.connected ? (- <span className="text-[12.5px] text-ok">✓ Connected</span>+ <span className="text-[12.5px] text-ok">{t("automations.connected_ok")}</span>) : flow ? (<span className="inline-flex items-center gap-2 text-[12px] text-muted"><Spinner />{flow.phase === "opening"- ? "Opening browser…"- : `Waiting for ${c?.title || name}…`}+ ? t("automations.opening_browser")+ : t("automations.waiting_for", { name: c?.title || name })}</span>) : (<button@@ -394,7 +398,7 @@ export function AutomationQuickstart({onClick={() => startConnect(name)}data-testid={`ob-connect-${name}`}>- Connect+ {t("automations.connect")}</button>)}</div>@@ -408,16 +412,16 @@ export function AutomationQuickstart({<span>↗</span><span className="flex-1 min-w-0"><b className="text-ink font-medium">- Finish connecting {c?.title || name} in your browser.+ {t("automations.finish_connecting", { name: c?.title || name })}</b>{" "}- Approve it there, then come back — this page updates by itself.+ {t("automations.finish_connecting_desc")}</span><buttonclassName="text-faint underline hover:text-muted shrink-0"onClick={() => setConnFlow(null)}data-testid="ob-connect-cancel">- Cancel+ {t("automations.cancel")}</button></div>)}@@ -431,25 +435,25 @@ export function AutomationQuickstart({data-testid="ob-cloudpane"><span className="block text-[13px] text-ink font-medium">- One sign-in unlocks every one-click connection+ {t("automations.one_signin_unlocks")}</span>- Connections are brokered by OpenWorker Cloud — your tokens stay on this Mac.+ {t("automations.cloud_brokered")}<div className="flex items-center gap-3 mt-2">{signinPhase ? (<><span className="inline-flex items-center gap-2 text-[12px]"><Spinner />- {signinPhase === "opening" ? "Opening browser…" : "Waiting for sign-in…"}+ {signinPhase === "opening" ? t("automations.opening_browser") : t("automations.waiting_signin")}</span>{signinPhase === "waiting" && (<span className="text-[11.5px] text-faint">- Finish signing in in your browser — this page updates by itself.{" "}+ {t("automations.finish_signin_desc")}{" "}<buttonclassName="underline hover:text-muted"onClick={cancelSignin}data-testid="ob-signin-cancel">- Cancel+ {t("automations.cancel")}</button></span>)}@@ -460,7 +464,7 @@ export function AutomationQuickstart({onClick={signInThenConnect}data-testid="ob-cloud-signin">- Sign in to OpenWorker Cloud+ {t("automations.sign_in_to_cloud")}</button>)}</div>@@ -471,10 +475,10 @@ export function AutomationQuickstart({<div className={picked.conns.length ? "bg-paper rounded-xl px-4 py-3.5 mt-3" : ""} data-testid="ob-recipe">{picked.needsRepo && (<>- <label className={label}>Repository</label>+ <label className={label}>{t("automations.repository")}</label><inputclassName={input}- placeholder="owner/repo"+ placeholder={t("automations.repo_placeholder")}value={repo}onChange={(e) => setRepo(e.target.value)}data-testid="ob-repo"@@ -483,7 +487,7 @@ export function AutomationQuickstart({)}{picked.needsChannel && (<>- <label className={label}>Post to channel</label>+ <label className={label}>{t("automations.post_to_channel")}</label><div data-testid="ob-channel"><ChannelPickervalue={channel}@@ -495,37 +499,37 @@ export function AutomationQuickstart({/></div><p className="text-[11px] text-warnInk mt-1">- The bot must be a member of the channel — invite @OpenWorker in Slack if it isn't.+ {t("automations.bot_member_hint")}</p></>)}- <label className={label}>When</label>+ <label className={label}>{t("automations.when")}</label><div className="flex gap-2"><div className="flex-1 min-w-0"><SelectMenu- ariaLabel="Day"+ ariaLabel={t("automations.day_aria")}value={day}- options={Object.entries(DAYS).map(([k, v]) => ({ value: k, label: v.label }))}+ options={Object.entries(DAYS).map(([k, v]) => ({ value: k, label: t(v.labelKey) }))}onChange={setDay}/></div><inputclassName="w-28 px-3 py-2 rounded-lg border border-line bg-panel text-[13.5px] outline-none focus:border-accent"type="time"- aria-label="Time"+ aria-label={t("automations.time_aria")}value={time}onChange={(e) => setTime(e.target.value)}/></div>{picked.deliver && (<>- <label className={label}>Deliver to</label>+ <label className={label}>{t("automations.deliver_to")}</label><SelectMenu- ariaLabel="Deliver to"+ ariaLabel={t("automations.deliver_to")}value={deliver}options={[- { value: "app", label: "In the app" },- { value: "slack", label: "Slack DM (connect Slack later)" },+ { value: "app", label: t("automations.deliver_app") },+ { value: "slack", label: t("automations.deliver_slack") },]}onChange={(v) => setDeliver(v as "app" | "slack")}/>@@ -541,18 +545,17 @@ export function AutomationQuickstart({data-testid="ob-consent"/><span>- Allow this automation to post its digest to{" "}+ {t("automations.consent_prefix")}{" "}<b className="text-ink" title={channel || undefined}>- {channelLabel || "the channel"}+ {channelLabel || t("automations.the_channel")}{channelWorkspace ? ` (${channelWorkspace})` : ""}</b>{" "}- without asking each time. Anything else still asks first.+ {t("automations.consent_suffix")}</span></label>) : picked.conns.length > 0 ? (<p className="text-[12.5px] text-muted mt-3">- This automation only <b className="text-ink">reads</b> on schedule — reading- never needs approval.+ {t("automations.read_only_pref")}<b className="text-ink">{t("automations.reads")}</b>{t("automations.read_only_suff")}</p>) : null}</div>@@ -563,7 +566,7 @@ export function AutomationQuickstart({className="text-[12.5px] text-faint hover:text-muted"onClick={() => setPickedKey(null)}>- Cancel+ {t("automations.cancel")}</button>{/* A silently-disabled primary reads as a bug — always name the missing piece. */}{gateHint && (@@ -580,7 +583,7 @@ export function AutomationQuickstart({onClick={create}data-testid="ob-create">- {busy ? "Creating…" : "Create automation"}+ {busy ? t("automations.creating") : t("automations.create_btn")}</button></div></div>diff --git a/surfaces/gui/src/components/Composer.tsx b/surfaces/gui/src/components/Composer.tsxindex 852e4d6f..61ea9283 100644--- a/surfaces/gui/src/components/Composer.tsx+++ b/surfaces/gui/src/components/Composer.tsx@@ -1,4 +1,5 @@import { useEffect, useLayoutEffect, useRef, useState, type ReactNode } from "react";+import { useTranslation } from "react-i18next";import type { Attachment } from "../types";import { isPdfFile, readFile } from "../attach";import { getSettings, inspectPdf } from "../api";@@ -19,10 +20,12 @@ import {// polished enough to ship, and Custom (config.toml auto-allow rules) is a power-user mode// with no in-app explanation. The server still honors both — a session already in one of// those modes keeps working; the picker just doesn't offer them.+// Labels/descriptions are i18n keys (resolved at render via t()); kept as keys here so the+// module-level constant stays outside the component without losing translation.const PERMISSION_OPTIONS: Option[] = [- { value: "discuss", label: "Discuss", description: "Chat and explore — no edits or commands" },- { value: "interactive", label: "Ask for approval", description: "Ask before edits and commands" },- { value: "auto", label: "Full access", description: "Run everything without asking" },+ { value: "discuss", label: "composer.mode.discuss", description: "composer.mode.discuss_desc" },+ { value: "interactive", label: "composer.mode.interactive", description: "composer.mode.interactive_desc" },+ { value: "auto", label: "composer.mode.auto", description: "composer.mode.auto_desc" },];// No hardcoded model fallback: until the server supplies the list (a few seconds after a@@ -80,6 +83,7 @@ interface Props {}export function Composer(props: Props) {+ const { t } = useTranslation();const [text, setText] = useState("");const [attachments, setAttachments] = useState<Attachment[]>([]);const [dragging, setDragging] = useState(false);@@ -216,7 +220,7 @@ export function Composer(props: Props) {for (const file of list) {if (isPdfFile(file) && file.size > maxMb * 1024 * 1024) {showAttachNotice(- `${file.name} skipped — ${(file.size / 1024 / 1024).toFixed(1)} MB is over your ${maxMb} MB limit (Settings → Token savings)`,+ t("composer.pdf_too_big", { name: file.name, mb: (file.size / 1024 / 1024).toFixed(1), limit: maxMb }),);continue;}@@ -229,12 +233,12 @@ export function Composer(props: Props) {const info = await inspectPdf(a.data_url).catch(() => null);if (info?.ok && (info.pages ?? 0) > maxPages) {showAttachNotice(- `${a.name} skipped — ${info.pages} pages is over your ${maxPages}-page limit (Settings → Token savings)`,+ t("composer.pdf_too_many_pages", { name: a.name, pages: info.pages, limit: maxPages }),);continue;}if (info && !info.ok) {- showAttachNotice(`${a.name} skipped — ${info.error || "could not read PDF"}`);+ showAttachNotice(t("composer.pdf_unreadable", { name: a.name, error: info.error || t("composer.pdf_could_not_read") }));continue;}}@@ -255,14 +259,14 @@ export function Composer(props: Props) {const needsModel = props.modelReady === false;const submit = () => {- const t = text.trim();- if ((!t && attachments.length === 0) || props.running || dictation?.recording || dictationBusy) return;+ const body = text.trim();+ if ((!body && attachments.length === 0) || props.running || dictation?.recording || dictationBusy) return;// No model connected: keep the draft (don't drop it) and send the user to setup instead.if (needsModel) {props.onConnectModel?.();return;}- props.onSend(t, attachments);+ props.onSend(body, attachments);setText("");setAttachments([]);};@@ -290,9 +294,9 @@ export function Composer(props: Props) {setDictationError(null);try {if (dictation?.recording) {- setDictationBusy("Transcribing…");+ setDictationBusy(t("composer.starting_transcribe"));const transcript = await stopDictation();- if (transcript === null) throw new Error("Could not transcribe your recording.");+ if (transcript === null) throw new Error(t("composer.err_transcribe"));if (transcript.trim()) {setText((draft) => (draft.trim() ? `${draft.trimEnd()} ${transcript.trim()}` : transcript.trim()));}@@ -302,17 +306,17 @@ export function Composer(props: Props) {}const status = dictation || (await getDictationStatus());- if (!status) throw new Error("Voice dictation is unavailable.");+ if (!status) throw new Error(t("composer.err_dictation_unavailable"));if (!status.supported || !status.model_verified || !status.test_passed) {props.onConfigureVoiceInput?.();return;}- setDictationBusy("Starting microphone…");+ setDictationBusy(t("composer.starting_mic"));const recording = await startDictation();- if (!recording?.recording) throw new Error("Could not start the microphone.");+ if (!recording?.recording) throw new Error(t("composer.err_mic_start"));setDictation(recording);} catch (error) {- setDictationError(error instanceof Error ? error.message : "Voice dictation is unavailable.");+ setDictationError(error instanceof Error ? error.message : t("composer.err_dictation_unavailable"));const status = await getDictationStatus();if (status) setDictation(status);} finally {@@ -355,7 +359,7 @@ export function Composer(props: Props) {<buttonclassName="shrink-0 opacity-60 hover:opacity-100"onClick={() => setAttachNotice(null)}- title="Dismiss"+ title={t("common.dismiss")}>✕</button>@@ -390,7 +394,7 @@ export function Composer(props: Props) {<textarearef={textareaRef}className="w-full block px-3.5 pt-3.5 pb-1.5 text-[14.5px]"- placeholder={props.placeholder || "Ask the coworker… (drop or paste files)"}+ placeholder={props.placeholder || t("composer.placeholder")}value={text}onChange={(e) => setText(e.target.value)}onKeyDown={onKey}@@ -404,8 +408,8 @@ export function Composer(props: Props) {<div className="relative"><buttonclassName={iconBtn + (attachMenuOpen ? " bg-paper text-ink" : "")}- title="Attach"- aria-label="Attach"+ title={t("composer.attach")}+ aria-label={t("composer.attach")}onClick={() => setAttachMenuOpen((v) => !v)}><Icon name="plus" size={17} />@@ -414,11 +418,11 @@ export function Composer(props: Props) {<><div className="fixed inset-0 z-30" onClick={() => setAttachMenuOpen(false)} /><div className="absolute z-40 bottom-full mb-1 left-0 min-w-[180px] rounded-xl border border-line bg-panel shadow-2xl py-1.5">- {attachItem("image", "Photo or image", () => pickFiles("image/*"))}+ {attachItem("image", t("composer.attach_image"), () => pickFiles("image/*"))}{attachItem("file", "PDF", () => pickFiles("application/pdf,.pdf"))}{attachItem("fileCode",- "Other files",+ t("composer.attach_other"),() => pickFiles("text/*,.md,.csv,.json,.yaml,.yml,.log,.py,.ts,.tsx,.js,.rs,.go,.toml"),)}</div>@@ -458,7 +462,7 @@ export function Composer(props: Props) {/>) : null}- {dictationBusy === "Transcribing…" && <span className="text-[11.5px] text-accent">Transcribing…</span>}+ {dictationBusy === t("composer.starting_transcribe") && <span className="text-[11.5px] text-accent">{dictationBusy}</span>}<span className="ml-auto" />@@ -469,10 +473,10 @@ export function Composer(props: Props) {<buttonclassName="pill model-warn chip"onClick={() => props.onConnectModel?.()}- title="Connect a model"- aria-label="No model connected — connect a model"+ title={t("composer.model.connect")}+ aria-label={t("composer.model.none_aria")}>- <span className="pill-label">No model</span>+ <span className="pill-label">{t("composer.model.none")}</span><span className="model-warn-ico" aria-hidden>⚠</span></button>) : modelsLoaded ? (@@ -482,9 +486,9 @@ export function Composer(props: Props) {className="pill chip text-faint cursor-default"disableddata-testid="models-loading"- title="Fetching the model list from the server"+ title={t("composer.model.loading_title")}>- <span className="pill-label">Loading models…</span>+ <span className="pill-label">{t("composer.model.loading")}</span></button>))}@@ -502,12 +506,12 @@ export function Composer(props: Props) {title={dictationBusy ||(dictation?.recording- ? "Stop recording and transcribe"+ ? t("composer.voice.stop_transcribe"): voiceReady- ? "Start local voice dictation"- : "Configure Voice Input in Settings")+ ? t("composer.voice.start_dictation")+ : t("composer.voice.configure"))}- aria-label={dictation?.recording ? "Stop dictation" : voiceReady ? "Start dictation" : "Configure Voice Input in Settings"}+ aria-label={dictation?.recording ? t("composer.voice.stop_dictation") : voiceReady ? t("composer.voice.start_dictation_btn") : t("composer.voice.configure")}aria-disabled={!voiceReady && !dictation?.recording}><Icon name={dictation?.recording ? "stop" : "mic"} size={16} />@@ -517,7 +521,7 @@ export function Composer(props: Props) {{/* send / stop */}{props.running ? (<button className="btn danger" onClick={props.onInterrupt}>- ⏹ Stop+ {t("composer.stop")}</button>) : (<button@@ -529,8 +533,8 @@ export function Composer(props: Props) {}onClick={submit}disabled={!props.connected || !!dictation?.recording || !!dictationBusy}- title={needsModel ? "Connect a model to send" : undefined}- aria-label="Send"+ title={needsModel ? t("composer.connect_to_send") : undefined}+ aria-label={t("common.send")}><svg width="15" height="15" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth={2} strokeLinecap="round" strokeLinejoin="round" aria-hidden="true"><path d="M12 19V5M5 12l7-7 7 7" />@@ -540,7 +544,7 @@ export function Composer(props: Props) {</div></div><span className="sr-only" role="status" aria-live="polite">- {dictation?.recording ? `Listening, ${recordingTime}` : dictationBusy || ""}+ {dictation?.recording ? t("composer.listening_sr", { time: recordingTime }) : dictationBusy || ""}</span></div>);@@ -560,6 +564,7 @@ function ModeMenu({unattended?: boolean;onUnattendedChange?: (on: boolean) => void;}) {+ const { t } = useTranslation();const [open, setOpen] = useState(false);const current = PERMISSION_OPTIONS.find((o) => o.value === mode);return (@@ -572,13 +577,13 @@ function ModeMenu({onClick={() => setOpen((v) => !v)}aria-haspopup="menu"aria-expanded={open}- aria-label="Mode"+ aria-label={t("composer.mode_label")}title={- `Mode: ${current?.label || mode}` +- (unattended ? " · approvals go to the Inbox" : "")+ `${t("composer.mode_label")}: ${current ? t(current.label) : mode}` ++ (unattended ? " · " + t("composer.approvals_to_inbox") : "")}>- {current?.label || mode}+ {current ? t(current.label) : mode}<Icon name="chevronDown" size={11} className="text-faint" /></button>{open && (@@ -603,10 +608,10 @@ function ModeMenu({"text-[13px] " + (o.value === mode ? "font-medium text-accent" : "text-ink")}>- {o.label}+ {t(o.label)}{o.value === mode && <span className="ml-1.5">✓</span>}</span>- <span className="text-[11px] text-faint leading-snug">{o.description}</span>+ <span className="text-[11px] text-faint leading-snug">{t(o.description ?? "")}</span></button>))}{onUnattendedChange && (@@ -614,15 +619,15 @@ function ModeMenu({<div className="my-1 border-t border-line" /><div className="flex items-center gap-2 px-2.5 py-1.5"><span className="flex-1 min-w-0">- <span className="block text-[13px] text-ink">Send approvals to Inbox</span>+ <span className="block text-[13px] text-ink">{t("composer.approvals_to_inbox")}</span><span className="block text-[11px] text-faint leading-snug">- Approvals & questions go to the Inbox; the agent keeps working.+ {t("composer.approvals_to_inbox_help")}</span></span><Togglechecked={!!unattended}onChange={onUnattendedChange}- title="Send approvals to the Inbox"+ title={t("composer.send_approvals_to_inbox")}/></div></>@@ -647,6 +652,7 @@ function attachItem(icon: "image" | "file" | "fileCode", label: string, onClick:}function AttachChip({ a, onRemove }: { a: Attachment; onRemove: () => void }) {+ const { t } = useTranslation();return (<div className={"attach-chip" + (a.kind === "image" ? " img" : "")}>{a.kind === "image" ? (@@ -657,7 +663,7 @@ function AttachChip({ a, onRemove }: { a: Attachment; onRemove: () => void }) {<span className="attach-name">{a.name}</span></>)}- <button className="attach-x" onClick={onRemove} title="Remove">+ <button className="attach-x" onClick={onRemove} title={t("common.remove")}>✕</button></div>diff --git a/surfaces/gui/src/components/ConnectorMessageCard.tsx b/surfaces/gui/src/components/ConnectorMessageCard.tsxindex 9f3026b5..c95a97ce 100644--- a/surfaces/gui/src/components/ConnectorMessageCard.tsx+++ b/surfaces/gui/src/components/ConnectorMessageCard.tsx@@ -14,23 +14,24 @@// for keyboard focus too; the ids are also mirrored into the header `title` for quick reference.import { useState, type CSSProperties } from "react";+import { useTranslation } from "react-i18next";import type { MessageSource } from "../api";import { ConnectorBadge, hexToRgba, NEUTRAL } from "../connectors/ConnectorIcon";import { resolveConnector } from "../connectors/registry";/** Coarse relative time from epoch seconds: "just now" / "5m ago" / "2h ago" / "3d ago" / a date. */-function relativeTime(tsSeconds: number): string {+function relativeTime(tsSeconds: number, t: (key: string, opts?: any) => string): string {if (!tsSeconds || !isFinite(tsSeconds)) return "";const then = tsSeconds * 1000;const diff = Date.now() - then;- if (diff < 0) return "just now";- if (diff < 45_000) return "just now";+ if (diff < 0) return t("inbox.rel_just_now");+ if (diff < 45_000) return t("inbox.rel_just_now");const mins = Math.round(diff / 60_000);- if (mins < 60) return `${mins}m ago`;+ if (mins < 60) return t("inbox.rel_minutes_ago", { count: mins });const hrs = Math.round(diff / 3_600_000);- if (hrs < 24) return `${hrs}h ago`;+ if (hrs < 24) return t("inbox.rel_hours_ago", { count: hrs });const days = Math.round(diff / 86_400_000);- if (days < 7) return `${days}d ago`;+ if (days < 7) return t("inbox.rel_days_ago", { count: days });return new Date(then).toLocaleDateString();}@@ -48,6 +49,7 @@ export function ConnectorMessageCard({brandColor?: string;}) {const [showIds, setShowIds] = useState(false);+ const { t } = useTranslation();const { key, entry } = resolveConnector(source.connector);const color = (brandColor || "").trim() || NEUTRAL;const soft = hexToRgba(color, 0.12) || "var(--line)";@@ -85,11 +87,11 @@ export function ConnectorMessageCard({</span><span className="text-faint">·</span><span className="text-[12.5px] font-medium">{source.sender_name}</span>- <span className="text-[11px] text-faint ml-0.5">via {entry.label}</span>+ <span className="text-[11px] text-faint ml-0.5">{t("inbox.connector_via", { label: entry.label })}</span></>)}<time className="ml-auto text-[11px] text-faint whitespace-nowrap" title={clockTime(source.ts)}>- {relativeTime(source.ts)}+ {relativeTime(source.ts, t)}</time></header><div className="px-3.5 py-2.5 text-[14.5px] leading-relaxed whitespace-pre-wrap">{source.text}</div>diff --git a/surfaces/gui/src/components/DirectoryRequestCard.tsx b/surfaces/gui/src/components/DirectoryRequestCard.tsxindex 7003f7a6..ee705c3d 100644--- a/surfaces/gui/src/components/DirectoryRequestCard.tsx+++ b/surfaces/gui/src/components/DirectoryRequestCard.tsx@@ -1,4 +1,5 @@import { useState } from "react";+import { useTranslation } from "react-i18next";import type { Item } from "../types";import { chooseFolder } from "../tauri";import { Icon } from "./Icon";@@ -16,6 +17,7 @@ export function DirectoryRequestCard({}) {const [path, setPath] = useState(item.path || "");const [writable, setWritable] = useState(!!item.writable);+ const { t } = useTranslation();const browse = async () => {const picked = await chooseFolder();@@ -26,31 +28,31 @@ export function DirectoryRequestCard({<div className="dirreq-card"><div className="dirreq-head"><Icon name="folderPlus" size={16} className="ico" />- <span>The agent is requesting access to a folder</span>+ <span>{t("dirreq.requesting_access")}</span></div>{item.reason && <div className="dirreq-reason">“{item.reason}”</div>}<div className="dirreq-pathrow"><inputclassName="dirreq-path"- placeholder="Choose or paste a folder path…"+ placeholder={t("dirreq.path_placeholder")}value={path}onChange={(e) => setPath(e.target.value)}/>- <button className="btn icon-only" onClick={browse} title="Choose location" aria-label="Choose location">+ <button className="btn icon-only" onClick={browse} title={t("dirreq.choose_location")} aria-label={t("dirreq.choose_location")}><Icon name="folder" size={15} /></button></div><div className="dirreq-actions"><label className="dirreq-access"><input type="checkbox" checked={writable} onChange={(e) => setWritable(e.target.checked)} />- Allow writing (read-write)+ {t("dirreq.allow_writing")}</label><span className="spacer" /><button className="btn" onClick={() => onRespond(false)}>- Decline+ {t("dirreq.decline")}</button><button className="btn primary" disabled={!path.trim()} onClick={() => onRespond(true, path.trim(), writable)}>- Grant access+ {t("dirreq.grant_access")}</button></div></div>diff --git a/surfaces/gui/src/components/FolderGate.tsx b/surfaces/gui/src/components/FolderGate.tsxindex 6533c392..5498b33b 100644--- a/surfaces/gui/src/components/FolderGate.tsx+++ b/surfaces/gui/src/components/FolderGate.tsx@@ -1,4 +1,5 @@import { useEffect, useState } from "react";+import { useTranslation } from "react-i18next";import { getRecentWorkspaces, openWorkspace, type RecentWorkspace } from "../api";import { chooseFolder } from "../tauri";@@ -16,6 +17,7 @@ export function FolderGate({ onChoose, onCancel, create }: Props) {const [recents, setRecents] = useState<RecentWorkspace[]>([]);const [path, setPath] = useState("");const [error, setError] = useState("");+ const { t } = useTranslation();useEffect(() => {getRecentWorkspaces().then(setRecents).catch(() => {});@@ -25,7 +27,7 @@ export function FolderGate({ onChoose, onCancel, create }: Props) {setError("");const res = await openWorkspace(p.trim(), doCreate);if (res.ok) onChoose(res.path, res.git_branch);- else setError(res.error || "could not open that folder");+ else setError(res.error || t("folder_gate.open_error"));};const browse = async () => {@@ -40,33 +42,33 @@ export function FolderGate({ onChoose, onCancel, create }: Props) {<div className="gate-overlay"><div className="gate"><div className="gate-mark">✦</div>- <h2>{create ? "New project" : "Choose a project folder"}</h2>+ <h2>{create ? t("sidebar.new_project") : t("folder_gate.choose_folder")}</h2><p className="gate-sub">{create- ? "Pick a folder or enter a path. If the path doesn't exist, it will be created."- : "This coworker needs a workspace to read, edit, and run in."}+ ? t("folder_gate.create_sub")+ : t("folder_gate.choose_sub")}</p><div className="gate-input"><input- placeholder="/path/to/your/project"+ placeholder={t("folder_gate.path_placeholder")}value={path}onChange={(e) => setPath(e.target.value)}onKeyDown={(e) => e.key === "Enter" && open(path, create)}autoFocus/>- <button className="btn" onClick={browse} title="Pick a folder">- Browse…+ <button className="btn" onClick={browse} title={t("folder_gate.pick_folder")}>+ {t("folder_gate.browse")}</button><button className="btn primary" onClick={() => open(path, create)} disabled={!path.trim()}>- {create ? "Create" : "Open"}+ {create ? t("folder_gate.create") : t("folder_gate.open")}</button></div>{error && <div className="gate-error">{error}</div>}{recents.length > 0 && (<>- <div className="gate-label">Recent</div>+ <div className="gate-label">{t("sidebar.recent")}</div><div className="gate-recents">{recents.map((w) => (<div className="gate-recent" key={w.path} onClick={() => open(w.path)} title={w.path}>@@ -81,7 +83,7 @@ export function FolderGate({ onChoose, onCancel, create }: Props) {{onCancel && (<div className="gate-foot"><button className="btn gate-cancel" onClick={onCancel}>- Cancel+ {t("folder_gate.cancel")}</button></div>)}diff --git a/surfaces/gui/src/components/GalleryModal.tsx b/surfaces/gui/src/components/GalleryModal.tsxindex dbb36ed8..7d65e7c1 100644--- a/surfaces/gui/src/components/GalleryModal.tsx+++ b/surfaces/gui/src/components/GalleryModal.tsx@@ -1,4 +1,5 @@import { useEffect, useState } from "react";+import { useTranslation } from "react-i18next";import {cloudLogin,getCloudGallery,@@ -52,6 +53,7 @@ export function GalleryModal({onClose: () => void;onInstalled?: () => void;}) {+ const { t } = useTranslation();const [cloud, setCloud] = useState<CloudStatus | null>(null);const [cards, setCards] = useState<GalleryPersona[]>([]);const [installed, setInstalled] = useState<Set<string>>(new Set());@@ -112,7 +114,7 @@ export function GalleryModal({setMsg(null);setJustInstalled(false);const d = await getCloudGalleryDetail(slug).catch(() => null);- setDetail(d ?? { ok: false, error: "could not load details" });+ setDetail(d ?? { ok: false, error: t("gallery.could_not_load") });};const install = async (slug: string) => {@@ -121,7 +123,7 @@ export function GalleryModal({const r = await installPersona({ gallery_slug: slug });setBusy(false);if (!r.ok) {- setMsg(r.error || "install failed");+ setMsg(r.error || t("gallery.install_failed"));return;}setInstalled((s) => new Set(s).add(slug));@@ -143,9 +145,9 @@ export function GalleryModal({<div className="flex items-center gap-2 mb-4">{([- ["all", "All"],- ["openworker", "From OpenWorker"],- ["team", "From your team"],+ ["all", t("gallery.filter_all")],+ ["openworker", t("gallery.filter_brand")],+ ["team", t("gallery.filter_team")],] as [Source, string][]).map(([key, label]) => (<button@@ -165,14 +167,14 @@ export function GalleryModal({{unavailable && cloud?.signed_in && (<div className="text-[12.5px] text-muted">- The gallery is unreachable right now — try again in a moment.+ {t("gallery.unreachable")}</div>)}{featured.length > 0 && (<><div className="text-[11px] uppercase tracking-[0.05em] text-faint font-semibold mb-2">- Featured+ {t("gallery.featured")}</div><div className="flex gap-3 overflow-x-auto hairline-scroll pb-2 mb-5" data-testid="gallery-featured">{featured.map((p) => (@@ -198,7 +200,7 @@ export function GalleryModal({)}<div className="text-[11px] uppercase tracking-[0.05em] text-faint font-semibold mb-2">- All personas+ {t("gallery.all_personas")}</div><div className="space-y-2">{visible.map((p) => {@@ -215,7 +217,7 @@ export function GalleryModal({<span className="font-semibold text-[13.5px]">{p.name}</span><span className={CHIP}>{p.family}</span><span className="text-[11px] text-faint">- v{p.version} · {p.publisher}+ {t("gallery.version_publisher", { version: p.version, publisher: p.publisher })}</span></div><div className="text-[12.5px] text-muted mb-1.5">{p.tagline}</div>@@ -229,9 +231,9 @@ export function GalleryModal({</div><div className="shrink-0 flex items-center">{isInstalled ? (- <span className="text-[12px] text-muted">Installed</span>+ <span className="text-[12px] text-muted">{t("gallery.installed")}</span>) : (- <span className="text-[12.5px] text-accent">View & install →</span>+ <span className="text-[12.5px] text-accent">{t("gallery.view_install")}</span>)}</div></div>@@ -240,17 +242,17 @@ export function GalleryModal({{visible.length === 0 && !unavailable && (<div className="text-[12.5px] text-muted py-4">{source === "team"- ? "Nothing shared with your team yet."+ ? t("gallery.empty_team"): q- ? "No personas match your search."- : "No personas published yet."}+ ? t("gallery.empty_search")+ : t("gallery.empty_none")}</div>)}</div>{source !== "team" && teamCount === 0 && (<div className="mt-5 pt-3 border-t border-line text-[12px] text-faint" data-testid="gallery-team-teaser">- From your team — nothing shared yet. Publishing a persona to your teammates is coming soon.+ {t("gallery.team_teaser")}</div>)}</div>@@ -264,12 +266,12 @@ export function GalleryModal({className="text-[12.5px] text-muted hover:text-ink mb-3"onClick={() => setDetailSlug(null)}>- ← Gallery+ {t("gallery.back_to_gallery")}</button>{!detail ? (- <div className="text-[12.5px] text-muted">Loading…</div>+ <div className="text-[12.5px] text-muted">{t("gallery.loading")}</div>) : !detail.ok || !card ? (- <div className="text-[12.5px] text-danger">{detail.error || "could not load details"}</div>+ <div className="text-[12.5px] text-danger">{detail.error || t("gallery.could_not_load")}</div>) : (<div className="space-y-4"><div className="flex items-start gap-4">@@ -280,15 +282,15 @@ export function GalleryModal({</div><div className="text-[13px] text-muted">{card.tagline}</div><div className="text-[11.5px] text-faint mt-1">- v{card.version} · {card.publisher} · {card.risk_summary}+ {t("gallery.detail_meta", { version: card.version, publisher: card.publisher, risk: card.risk_summary })}</div></div><div className="shrink-0">{installed.has(detailSlug) ? (- <span className="text-[12.5px] text-muted">Installed</span>+ <span className="text-[12.5px] text-muted">{t("gallery.installed")}</span>) : (<button className={BTN_ACCENT} onClick={() => install(detailSlug)} disabled={busy}>- {busy ? "Installing…" : "Install"}+ {busy ? t("gallery.installing") : t("gallery.install")}</button>)}</div>@@ -298,10 +300,10 @@ export function GalleryModal({{justInstalled && (<div className="rounded-lg border border-okLine bg-okSoft px-3.5 py-2.5 flex items-center gap-3"><span className="flex-1 text-[12.5px] text-ok">- Installed — it’s waiting in Personas, disabled until you approve and enable it.+ {t("gallery.installed_waiting")}</span><button className={BTN_ACCENT} onClick={onClose}>- Done+ {t("gallery.done")}</button></div>)}@@ -317,44 +319,42 @@ export function GalleryModal({{caps && (<div className={CARD + " p-4"} data-testid="gallery-capabilities"><div className="text-[13px] font-semibold mb-2">- What it can do — verified from its manifest+ {t("gallery.capabilities_title")}</div><div className="text-[12px] text-faint mb-3">- Read by this app’s own parser, so it matches exactly what the install- consent will ask you to approve. No executable code is installed.+ {t("gallery.capabilities_desc")}</div><div className="space-y-2 text-[12.5px]"><div>- <span className="text-muted">Tools: </span>- {caps.tools.join(", ") || "none"}+ <span className="text-muted">{t("gallery.tools_label")}</span>+ {caps.tools.join(", ") || t("gallery.none")}{caps.risk.length > 0 && (- <span className="text-faint"> · risk: {caps.risk.join(", ")}</span>+ <span className="text-faint"> {t("gallery.risk_suffix", { risk: caps.risk.join(", ") })}</span>)}</div><div>- <span className="text-muted">Permissions: </span>- {caps.recommended_mode} mode- {caps.messaging ? " · can use messaging" : ""}- {caps.mcp.length > 0 ? ` · MCP: ${caps.mcp.join(", ")}` : ""}+ <span className="text-muted">{t("gallery.permissions_label")}</span>+ {t("gallery.mode_suffix", { mode: caps.recommended_mode })}+ {caps.messaging ? ` · ${t("gallery.can_message")}` : ""}+ {caps.mcp.length > 0 ? ` · ${t("gallery.mcp_suffix", { mcp: caps.mcp.join(", ") })}` : ""}</div>{(detail.recommends?.length ?? 0) > 0 && (<div>- <div className="text-muted mb-1.5">Works with these connections:</div>+ <div className="text-muted mb-1.5">{t("gallery.works_with")}</div><div className="space-y-1.5">{detail.recommends!.map((r) => (<div key={r.kind + r.ref} className="flex items-baseline gap-2"><span className={CHIP + " inline-flex items-center gap-1 shrink-0"}><BrandIcon name={r.ref} size={12} />{r.ref}- {r.tier === "core" ? " · core" : ""}+ {r.tier === "core" ? ` · ${t("gallery.core_tag")}` : ""}</span><span className="text-[12px] text-faint">{r.reason}</span></div>))}</div><div className="text-[11.5px] text-faint mt-2">- You connect these yourself (one click when signed in) — installing the- coworker grants it nothing until you do.+ {t("gallery.connect_yourself_note")}</div></div>)}@@ -372,23 +372,23 @@ export function GalleryModal({<div className="absolute left-1/2 top-[6vh] -translate-x-1/2 w-[720px] max-w-[94vw] max-h-[88vh] rounded-xl2 border border-line bg-panel shadow-2xl overflow-hidden flex flex-col"><div className="px-5 pt-4 pb-3 border-b border-line flex items-center gap-3 shrink-0"><div className="min-w-0 flex-1">- <div className="text-[15px] font-semibold">Persona Gallery</div>+ <div className="text-[15px] font-semibold">{t("gallery.title")}</div><div className="text-[12px] text-muted">- Curated coworkers · installs stay disabled until you approve them+ {t("gallery.subtitle")}</div></div>{cloud?.signed_in && !detailSlug && (<inputvalue={query}onChange={(e) => setQuery(e.target.value)}- placeholder="Search personas"+ placeholder={t("gallery.search_placeholder")}className="w-[180px] px-3 py-1.5 rounded-lg border border-line bg-paper text-[12.5px] text-ink outline-none focus:border-accent"/>)}<buttonclassName="text-faint hover:text-ink shrink-0"onClick={onClose}- aria-label="Close gallery"+ aria-label={t("gallery.close_aria")}data-testid="gallery-close"><Icon name="x" size={16} />@@ -398,7 +398,7 @@ export function GalleryModal({<div className="overflow-y-auto hairline-scroll p-5">{loading ? (<div className="space-y-2" data-testid="gallery-loading" aria-busy="true">- <div className="text-[12.5px] text-muted mb-3">Loading the gallery…</div>+ <div className="text-[12.5px] text-muted mb-3">{t("gallery.loading_gallery")}</div>{[0, 1, 2].map((i) => (<div key={i} className={CARD + " p-3.5 animate-pulse"}><div className="h-3.5 w-44 rounded bg-line mb-2.5" />@@ -409,15 +409,13 @@ export function GalleryModal({) : cloud && !cloud.signed_in ? (<div className={CARD + " p-5 flex items-center gap-4"} data-testid="gallery-signin"><div className="min-w-0 flex-1">- <div className="font-semibold text-[14px] mb-1">Sign in to browse the Gallery</div>+ <div className="font-semibold text-[14px] mb-1">{t("gallery.signin_title")}</div><div className="text-[12.5px] text-muted leading-relaxed">- The Gallery is a curated set of coworkers from OpenWorker Cloud and needs a- (free) cloud sign-in. Installing personas from a folder or Git URL — on the- Personas page — always works without an account.+ {t("gallery.signin_desc")}</div></div><button className={BTN_ACCENT} onClick={signIn} disabled={signingIn}>- {signingIn ? "Check your browser…" : "Sign in"}+ {signingIn ? t("gallery.check_browser") : t("gallery.sign_in")}</button></div>) : detailSlug ? (diff --git a/surfaces/gui/src/components/InboxConfigure.tsx b/surfaces/gui/src/components/InboxConfigure.tsxindex 86f23e4b..f7414587 100644--- a/surfaces/gui/src/components/InboxConfigure.tsx+++ b/surfaces/gui/src/components/InboxConfigure.tsx@@ -1,4 +1,5 @@import { useEffect, useState } from "react";+import { useTranslation } from "react-i18next";import {getConnectors,getDmRoute,@@ -30,6 +31,7 @@ const SELECT = "px-2.5 py-1.5 rounded-lg border border-line bg-paper text-[13px]const BTN_ACCENT_SM = "text-[12px] px-2.5 py-1 rounded-md bg-accent text-white disabled:opacity-50";export function InboxConfigure() {+ const { t } = useTranslation();return (<div data-testid="inbox-configure"><div className="grid grid-cols-2 gap-4 mb-4">@@ -40,10 +42,9 @@ export function InboxConfigure() {{/* Unrouted = delivery FAILURES ("messages that never reached you"), so it lives withthe Inbox now (§28; previously with routing under Connectors, §26). */}<div className="mt-6" data-testid="unrouted-section">- <h3 className="text-[14px] font-semibold mb-1">Unrouted</h3>+ <h3 className="text-[14px] font-semibold mb-1">{t("inbox.unrouted_title")}</h3><p className="text-[12.5px] text-muted mb-3">- Inbound messages and background-turn failures nothing claimed — nothing vanishes- silently.+ {t("inbox.unrouted_sub")}</p><UnroutedTable /></div>@@ -59,6 +60,7 @@ function InboxRoutingCard() {const [target, setTarget] = useState(""); // current default-binding address, e.g. "slack:C0123"const [draft, setDraft] = useState("");const [error, setError] = useState<string | null>(null);+ const { t: tt } = useTranslation();const load = () => {getRecentChannels().then(setRecent).catch(() => setRecent([]));@@ -83,7 +85,7 @@ function InboxRoutingCard() {const [platform, id] = addr.includes(":") ? addr.split(":", 2) : ["slack", addr];const result = await setInboxBinding("default", platform, id);if (!result.ok) {- setError(result.error || "Could not update Inbox routing.");+ setError(result.error || tt("inbox.routing_update_failed"));return;}setError(null);@@ -93,7 +95,7 @@ function InboxRoutingCard() {const clear = async () => {const result = await setInboxBinding("default", null, "");if (!result.ok) {- setError(result.error || "Could not clear Inbox routing.");+ setError(result.error || tt("inbox.routing_clear_failed"));return;}setError(null);@@ -123,13 +125,13 @@ function InboxRoutingCard() {return (<div className={CARD + " p-4"} data-testid="inbox-mirror-card">- <div className="font-semibold text-[13.5px] mb-1">Unattended approvals</div>+ <div className="font-semibold text-[13.5px] mb-1">{tt("inbox.unattended_approvals")}</div><p className="text-[12px] text-muted mb-3">- Channel where an Unattended session posts Approve/Deny buttons. Currently mirroring to{" "}+ {tt("inbox.mirror_desc_prefix")}{" "}<strong className="text-ink font-medium" title={target || undefined}>- {known ? `#${known}` : target || "in-app Inbox only"}+ {known ? `#${known}` : target || tt("inbox.in_app_inbox_only")}</strong>- .+ {tt("inbox.mirror_desc_suffix")}</p><div className="flex items-center gap-2 flex-wrap"><span className="text-muted shrink-0">@@ -141,17 +143,17 @@ function InboxRoutingCard() {disabled={!draft.trim() || missingSlackOwner}onClick={save}>- Set+ {tt("inbox.set")}</button>{target && (<button className="text-[12px] text-danger/80 hover:text-danger" onClick={clear}>- clear+ {tt("inbox.clear")}</button>)}</div>{missingSlackOwner && (<p className="text-[11.5px] text-warnInk mt-2">- Choose an approval owner under Integrations → Slack before routing approvals here.+ {tt("inbox.missing_slack_owner")}</p>)}{error && <p className="text-[11.5px] text-warnInk mt-2">{error}</p>}@@ -163,6 +165,7 @@ function InboxRoutingCard() {function DmRouteCard() {const [sessions, setSessions] = useState<SessionInfo[]>([]);const [dm, setDm] = useState<string>("");+ const { t: tt } = useTranslation();const load = () => {getSessions().then(setSessions).catch(() => setSessions([]));@@ -183,16 +186,16 @@ function DmRouteCard() {return (<div className={CARD + " p-4"}>- <div className="font-semibold text-[13.5px] mb-1">Direct messages</div>+ <div className="font-semibold text-[13.5px] mb-1">{tt("inbox.direct_messages")}</div><p className="text-[12px] text-muted mb-3">- Session that handles DMs to the bot. With none, DMs park under Unrouted below.+ {tt("inbox.dm_desc")}</p><div className="flex items-center gap-2"><span className="text-muted shrink-0"><Icon name="chat" size={16} /></span><select className={"flex-1 " + SELECT} value={dm} onChange={(e) => choose(e.target.value)}>- <option value="">No session — park DMs</option>+ <option value="">{tt("inbox.dm_no_session")}</option>{real.map((s) => (<option key={s.session_id} value={s.session_id}>{s.title || s.session_id}@@ -212,6 +215,7 @@ function SubscriptionsCard() {const [recent, setRecent] = useState<RecentChannel[]>([]);const [addSession, setAddSession] = useState("");const [addChannel, setAddChannel] = useState("");+ const { t: tt } = useTranslation();const load = () => {getSubscriptions().then(setSubs).catch(() => setSubs([]));@@ -242,17 +246,17 @@ function SubscriptionsCard() {<span className="text-muted shrink-0"><Icon name="plug" size={15} /></span>- <span className="font-semibold text-[13.5px]">Channel subscriptions</span>- <span className="text-[12px] text-muted">— sessions that listen to a channel (inbound)</span>+ <span className="font-semibold text-[13.5px]">{tt("inbox.channel_subscriptions")}</span>+ <span className="text-[12px] text-muted">{tt("inbox.subscriptions_sub")}</span></div>{subs && subs.length > 0 ? (<table className="w-full text-[13px]"><thead className="text-[11px] uppercase tracking-[0.04em] text-faint"><tr className="text-left">- <th className="font-medium px-4 py-2">Session</th>- <th className="font-medium px-4 py-2">Listens to</th>- <th className="font-medium px-4 py-2">Inbox routes to</th>+ <th className="font-medium px-4 py-2">{tt("inbox.col_session")}</th>+ <th className="font-medium px-4 py-2">{tt("inbox.col_listens_to")}</th>+ <th className="font-medium px-4 py-2">{tt("inbox.col_inbox_routes_to")}</th><th className="px-4 py-2" /></tr></thead>@@ -275,9 +279,9 @@ function SubscriptionsCard() {{s.collision && (<spanclassName="ml-1.5 text-[11px] text-warnInk bg-warnSoft/70 border border-warnInk/15 rounded px-1.5 py-0.5"- title="This channel is also your Inbox-routing target — inbound and outbound on one channel conflate broadcast with request/reply."+ title={tt("inbox.collision_title")}>- ⚠ collides+ {tt("inbox.collides")}</span>)}</td>@@ -285,7 +289,7 @@ function SubscriptionsCard() {<td className="px-4 py-2.5 text-right"><buttonclassName="text-faint hover:text-danger"- title="Unsubscribe"+ title={tt("inbox.unsubscribe")}onClick={() => remove(s.session_id, s.channel)}>×@@ -297,7 +301,7 @@ function SubscriptionsCard() {</table>) : (<div className="px-4 py-3 text-[12.5px] text-muted">- No channel subscriptions yet — add one below or ask a coworker to watch a channel.+ {tt("inbox.no_subscriptions")}</div>)}@@ -307,7 +311,7 @@ function SubscriptionsCard() {value={addSession}onChange={(e) => setAddSession(e.target.value)}>- <option value="">Choose a session…</option>+ <option value="">{tt("inbox.choose_session")}</option>{real.map((s) => (<option key={s.session_id} value={s.session_id}>{s.title || s.session_id}@@ -316,7 +320,7 @@ function SubscriptionsCard() {</select><ChannelPicker value={addChannel} onChange={setAddChannel} recent={recent} onSubmit={add} /><button className={BTN_ACCENT_SM} disabled={!addSession || !addChannel.trim()} onClick={add}>- + Subscribe+ {tt("inbox.subscribe")}</button></div></div>@@ -327,6 +331,7 @@ function SubscriptionsCard() {// and background turns that failed (e.g. a dead model). Read-only — for visibility/debugging.function UnroutedTable() {const [items, setItems] = useState<UnroutedItem[] | null>(null);+ const { t: tt } = useTranslation();useEffect(() => {const load = () => getUnrouted().then(setItems).catch(() => setItems([]));@@ -338,7 +343,7 @@ function UnroutedTable() {if (items && items.length === 0)return (<div className={CARD + " p-4 text-[13px] text-muted"}>- Nothing here — no dropped messages or failed turns.+ {tt("inbox.unrouted_empty")}</div>);@@ -347,10 +352,10 @@ function UnroutedTable() {<table className="w-full text-[13px]"><thead className="text-[11px] uppercase tracking-[0.04em] text-faint"><tr className="text-left">- <th className="font-medium px-4 py-2">When</th>- <th className="font-medium px-4 py-2">Source</th>- <th className="font-medium px-4 py-2">Reason</th>- <th className="font-medium px-4 py-2">Message</th>+ <th className="font-medium px-4 py-2">{tt("inbox.col_when")}</th>+ <th className="font-medium px-4 py-2">{tt("inbox.col_source")}</th>+ <th className="font-medium px-4 py-2">{tt("inbox.col_reason")}</th>+ <th className="font-medium px-4 py-2">{tt("inbox.col_message")}</th></tr></thead><tbody>diff --git a/surfaces/gui/src/components/InboxItemCard.tsx b/surfaces/gui/src/components/InboxItemCard.tsxindex 26402528..fcdd9587 100644--- a/surfaces/gui/src/components/InboxItemCard.tsx+++ b/surfaces/gui/src/components/InboxItemCard.tsx@@ -1,4 +1,5 @@import { useState, type ReactNode } from "react";+import { useTranslation } from "react-i18next";import type { InboxItem } from "../api";import { humanizeApprovalTitle } from "../humanize";import { PreviewBlock, scopeNote, TitleText } from "./ApprovalCard";@@ -41,6 +42,7 @@ export function InboxItemCard({const options = item.options || [];const multi = !!item.multi;const allowText = item.allow_text !== false;+ const { t } = useTranslation();const textRow = (placeholder: string) => (<div className="flex items-center gap-2 mt-2.5">@@ -54,7 +56,7 @@ export function InboxItemCard({}}/><button className={BTN_PRIMARY} disabled={!answer.trim()} onClick={() => onResolve(item.id, answer)}>- Send+ {t("common.send")}</button></div>);@@ -102,7 +104,7 @@ export function InboxItemCard({className={item.data?.tool ? BTN_ACCENT : BTN_PRIMARY}onClick={() => onResolve(item.id, "allow")}>- {item.data?.tool ? "Allow once" : "Approve"}+ {item.data?.tool ? t("approval.allow_once") : t("inbox.approve")}</button>{/* Task-persistent standing grant (§25) — present only when the approval wasraised inside an automation run AND the call can carry a tool+target rule.@@ -110,17 +112,20 @@ export function InboxItemCard({{item.data?.task_id && item.data?.standing_target && (<buttonclassName={BTN_BORDERED}- title={`Always allow against ${item.data.standing_target} for “${item.data.task_title || "this automation"}” — revoke any time on its Automations page`}+ title={t("inbox.always_task_title", {+ target: item.data.standing_target,+ task: item.data.task_title || t("approval.btn.this_automation"),+ })}onClick={() => onResolve(item.id, "always_task")}>- Allow every time+ {t("approval.btn.allow_every_time")}</button>)}<buttonclassName={item.data?.tool ? BTN_QUIET : BTN_BORDERED}onClick={() => onResolve(item.id, "deny")}>- Deny+ {t("approval.deny")}</button></div>) : item.kind === "question" ? (@@ -153,19 +158,19 @@ export function InboxItemCard({disabled={!selected.length}onClick={() => onResolve(item.id, selected.join(", "))}>- Send{selected.length ? ` (${selected.length})` : ""}+ {selected.length ? t("inbox.send_count", { count: selected.length }) : t("common.send")}</button></div>)}{(allowText || options.length === 0) &&- textRow(options.length ? "Or type your own answer…" : "Your answer…")}+ textRow(options.length ? t("inbox.or_type_answer") : t("inbox.your_answer"))}</>) : item.kind === "directory" ? (<div className="flex items-center gap-2 mt-2.5"><buttonclassName={BTN_PRIMARY}disabled={!item.data?.path}- title={item.data?.path || "No folder was suggested"}+ title={item.data?.path || t("inbox.no_folder_suggested")}onClick={() =>onResolve(item.id,@@ -173,10 +178,10 @@ export function InboxItemCard({)}>- {item.data?.path ? "Grant" : "Grant (no folder)"}+ {item.data?.path ? t("inbox.grant") : t("inbox.grant_no_folder")}</button><button className={BTN_BORDERED} onClick={() => onResolve(item.id, JSON.stringify({ granted: false }))}>- Deny+ {t("approval.deny")}</button></div>) : item.kind === "plan" ? (@@ -185,19 +190,19 @@ export function InboxItemCard({className={BTN_PRIMARY}onClick={() => onResolve(item.id, JSON.stringify({ approved: true, mode: "interactive" }))}>- Approve+ {t("inbox.approve")}</button><buttonclassName={BTN_BORDERED}onClick={() => onResolve(item.id, JSON.stringify({ approved: false, feedback: "" }))}>- Reject+ {t("inbox.reject")}</button></div>) : (<div className="flex items-center gap-2 mt-2.5"><button className={BTN_BORDERED} onClick={() => onResolve(item.id, "seen")}>- Dismiss+ {t("inbox.dismiss")}</button></div>)}diff --git a/surfaces/gui/src/components/InboxView.tsx b/surfaces/gui/src/components/InboxView.tsxindex 896f0cb7..ac1757cd 100644--- a/surfaces/gui/src/components/InboxView.tsx+++ b/surfaces/gui/src/components/InboxView.tsx@@ -1,4 +1,5 @@import { useEffect, useMemo, useState } from "react";+import { useTranslation } from "react-i18next";import {getConnectors,getInbox,@@ -23,10 +24,10 @@ const ICON_FOR: Record<string, "diamond" | "chat" | "code"> = {code: "code",};-const KIND_TABS: { key: string; label: string }[] = [- { key: "all", label: "All" },- { key: "approval", label: "Approvals" },- { key: "question", label: "Questions" },+const KIND_TABS: { key: string; labelKey: string }[] = [+ { key: "all", labelKey: "inbox.kind_all" },+ { key: "approval", labelKey: "inbox.kind_approvals" },+ { key: "question", labelKey: "inbox.kind_questions" },];const CHIP = (active: boolean) =>@@ -65,6 +66,7 @@ export function InboxView({const [unroutedCount, setUnroutedCount] = useState(0);const [kind, setKind] = useState<string>("all");const [personaFilter, setPersonaFilter] = useState<string>("all");+ const { t: tt } = useTranslation();const load = () => {getInbox(undefined, "pending").then(setItems).catch(() => {});@@ -122,7 +124,7 @@ export function InboxView({return (<buttonclassName="inbox-session-chip"- title={exists ? `Open “${label}”` : "Session unavailable"}+ title={exists ? tt("inbox.open_session", { label }) : tt("inbox.session_unavailable")}disabled={!exists}onClick={() =>exists && onOpenSession(it.session_id, it.session_workspace || "", it.session_agent || "cowork")@@ -145,8 +147,8 @@ export function InboxView({<div className="flex-1 min-w-0 overflow-y-auto hairline-scroll"><div className="max-w-4xl mx-auto px-7 py-6"><PanelHead- title="Inbox"- sub="Approvals, questions, and notifications from your coworkers — including sessions running unattended."+ title={tt("inbox.title")}+ sub={tt("inbox.sub")}/><div className="flex gap-5 border-b border-line mb-4">@@ -161,7 +163,7 @@ export function InboxView({load();}}>- Pending+ {tt("inbox.tab_pending")}{items.length > 0 && (<span className="text-[11px] px-1.5 rounded-full bg-accentSoft text-accent leading-4">{items.length}@@ -173,7 +175,7 @@ export function InboxView({data-testid="inbox-tab-configure"onClick={() => setTab("configure")}>- Configure+ {tt("inbox.tab_configure")}{unroutedCount > 0 && (<span className="text-[11px] px-1.5 rounded-full bg-warnSoft text-warnInk leading-4">⚠ {unroutedCount}@@ -189,18 +191,17 @@ export function InboxView({<div className="text-[12px] text-faint -mt-1 mb-4" data-testid="inbox-routing">{routing ? (<span>- Also delivered to{" "}+ {tt("inbox.also_delivered_to")}{" "}<span className="text-muted" title={routing}>{routingLabel}</span>{" "}- — replies there resolve items here.{" "}+ {tt("inbox.replies_resolve")}{" "}</span>) : slackConnected ? (- <span>Delivered here only. </span>+ <span>{tt("inbox.delivered_here_only")} </span>) : (<span>- Delivered here only. Connect Slack (Connectors page) to also get these in a- channel — more platforms later.{" "}+ {tt("inbox.delivered_here_only_connect_slack")}{" "}</span>)}<button@@ -208,14 +209,14 @@ export function InboxView({data-testid="inbox-route-configure"onClick={() => setTab("configure")}>- Configure ›+ {tt("inbox.configure_arrow")}</button></div><div className="flex items-center gap-2 flex-wrap mb-4" data-testid="inbox-filters">{KIND_TABS.map((t) => (<button key={t.key} className={CHIP(kind === t.key)} onClick={() => setKind(t.key)}>- {t.label}+ {tt(t.labelKey)}</button>))}{personasWithItems.length > 1 && (@@ -225,7 +226,7 @@ export function InboxView({className={CHIP(personaFilter === "all")}onClick={() => setPersonaFilter("all")}>- All coworkers+ {tt("inbox.all_coworkers")}</button>{personasWithItems.map((p) => (<button@@ -242,7 +243,7 @@ export function InboxView({{visible.length === 0 ? (<div className="manage-empty">- {items.length === 0 ? "Nothing pending." : "Nothing pending for this filter."}+ {items.length === 0 ? tt("inbox.nothing_pending") : tt("inbox.nothing_pending_filter")}</div>) : null}diff --git a/surfaces/gui/src/components/IntegrationsView.tsx b/surfaces/gui/src/components/IntegrationsView.tsxindex d1674b3f..cbdb4086 100644--- a/surfaces/gui/src/components/IntegrationsView.tsx+++ b/surfaces/gui/src/components/IntegrationsView.tsx@@ -1,4 +1,5 @@import { useEffect, useState } from "react";+import { useTranslation } from "react-i18next";import { getConnectors } from "../api";import { McpTab } from "./ManageTabs";import { ConnectorsSection } from "./connectors/ConnectorsSection";@@ -13,12 +14,13 @@ type IntTab = "connectors" | "mcp";// Fixed sub-nav (UX-DECISIONS §21): connector detail lives as a SUBPAGE under// Connectors, never as a nav item — the nav must not grow per connector.-const INT_TABS: { key: IntTab; label: string; icon: "plug" | "code" }[] = [- { key: "connectors", label: "Connectors", icon: "plug" },- { key: "mcp", label: "MCP servers", icon: "code" },+const INT_TABS: { key: IntTab; labelKey: string; icon: "plug" | "code" }[] = [+ { key: "connectors", labelKey: "integrations.tab_connectors", icon: "plug" },+ { key: "mcp", labelKey: "integrations.tab_mcp", icon: "code" },];export function IntegrationsView() {+ const { t: tt } = useTranslation();const [tab, setTab] = useState<IntTab>("connectors");// Sub-nav count: how many connectors exist. Polled so the badge stays live.const [connCount, setConnCount] = useState<number | null>(null);@@ -36,7 +38,7 @@ export function IntegrationsView() {<main className="flex-1 min-w-0 flex bg-paper"><nav className="page-subnav w-[208px] shrink-0 border-r border-line bg-panel/40 px-3 py-4"><div className="px-2 text-[13.5px] font-semibold mb-3 flex items-center gap-2">- <Icon name="plug" size={16} /> Connectors+ <Icon name="plug" size={16} /> {tt("integrations.nav_title")}</div>{INT_TABS.map((t) => {const active = tab === t.key;@@ -52,7 +54,7 @@ export function IntegrationsView() {onClick={() => setTab(t.key)}><span className="flex items-center gap-2 min-w-0">- <Icon name={t.icon} size={15} /> {t.label}+ <Icon name={t.icon} size={15} /> {tt(t.labelKey)}</span>{t.key === "connectors" && connCount != null && (<span className={"text-[11px] shrink-0 " + (active ? "text-accent" : "text-faint")}>@@ -69,16 +71,16 @@ export function IntegrationsView() {{tab === "connectors" ? (<section><PanelHead- title="Connectors"- sub="Apps and tools your coworkers can use. Connected ones come first."+ title={tt("integrations.connectors_title")}+ sub={tt("integrations.connectors_sub")}/><ConnectorsSection /></section>) : (<section><PanelHead- title="MCP servers"- sub="External tool servers (stdio or HTTP), shared across all agents."+ title={tt("integrations.mcp_title")}+ sub={tt("integrations.mcp_sub")}/><McpTab /></section>diff --git a/surfaces/gui/src/components/ManageTabs.tsx b/surfaces/gui/src/components/ManageTabs.tsxindex f9ab2992..49ebb19d 100644--- a/surfaces/gui/src/components/ManageTabs.tsx+++ b/surfaces/gui/src/components/ManageTabs.tsx@@ -1,4 +1,5 @@import { useEffect, useState } from "react";+import { getI18n, useTranslation } from "react-i18next";import {addMcpServer,allowUser,@@ -35,13 +36,14 @@ import { Toggle } from "./Toggle";// "2h ago"-style label for the providers' Last-used line (null when never used).const relTime = (epoch?: number | null): string | null => {if (!epoch) return null;+ const t = getI18n().getFixedT(null, "translation");const secs = Math.max(0, Math.floor(Date.now() / 1000 - epoch));- if (secs < 90) return "just now";+ if (secs < 90) return t("manage.reltime_just_now");const mins = Math.floor(secs / 60);- if (mins < 60) return `${mins}m ago`;+ if (mins < 60) return t("manage.reltime_min", { n: mins });const hrs = Math.floor(mins / 60);- if (hrs < 48) return `${hrs}h ago`;- return `${Math.floor(hrs / 24)}d ago`;+ if (hrs < 48) return t("manage.reltime_hour", { n: hrs });+ return t("manage.reltime_day", { n: Math.floor(hrs / 24) });};// Shared tab bodies for the Settings and Integrations pages (the old top-tab ManageModal was retired@@ -76,6 +78,7 @@ const EXAMPLE = `{// key…" affordance, the global composer-picker card (gallery view), and the// per-provider ModelChecklist / read-only model preview (form view).export function ModelsTab() {+ const { t } = useTranslation();const [settings, setSettings] = useState<ModelSettings | null>(null);const refreshSettings = () => getSettings().then(setSettings).catch(() => setSettings(null));const ps = useProviderSetup({ onSaved: refreshSettings });@@ -83,7 +86,7 @@ export function ModelsTab() {refreshSettings();}, []);- if (!settings) return <div className="text-[13px] text-muted">Loading…</div>;+ if (!settings) return <div className="text-[13px] text-muted">{t("manage.loading")}</div>;const info = ps.info;const knownNames = ps.providers.map((p) => p.name);@@ -108,10 +111,10 @@ export function ModelsTab() {className="text-[12.5px] text-danger/80 hover:text-danger hover:underline underline-offset-2"data-testid="set-remove-key"onClick={() => {- if (window.confirm(`Remove the ${info?.title} key from this computer?`)) ps.removeKey();+ if (window.confirm(t("manage.remove_key_confirm", { title: info?.title || "" }))) ps.removeKey();}}>- Remove key…+ {t("manage.remove_key")}</button>) : null}@@ -119,17 +122,15 @@ export function ModelsTab() {{ps.sel === "openai" && settings.source === "env" && (<p className="text-[12px] text-muted mt-3 leading-relaxed">- A key is set via <code>OPENAI_API_KEY</code> in this server's environment. You can override- it above; the stored key is used only when the environment variable is absent.+ {t("manage.openai_env_help")}</p>)}{info?.configured ? (<div className="mt-6">- <div className={SEC_H + " mb-1.5"}>Models</div>+ <div className={SEC_H + " mb-1.5"}>{t("manage.models")}</div><p className="text-[12px] text-muted mb-2.5 leading-relaxed">- Ticked models show in the composer's picker; the black badge marks the default for new- sessions.+ {t("manage.models_help")}</p><ModelChecklistprovider={ps.sel}@@ -146,9 +147,9 @@ export function ModelsTab() {// key unlocks is part of deciding to get one at all (owner ask, 2026-07-04).(info?.suggested_models?.length || 0) > 0 && (<div className="mt-6" data-testid="model-preview">- <div className={SEC_H + " mb-1.5"}>Included models</div>+ <div className={SEC_H + " mb-1.5"}>{t("manage.included_models")}</div><p className="text-[12px] text-muted mb-2.5 leading-relaxed">- Curated, agent-capable models this provider serves — add your key above to enable them.+ {t("manage.included_models_help")}</p><div className="space-y-1">{(info?.suggested_models || []).map((m) => {@@ -183,6 +184,7 @@ function ComposerPickerCard({providers: ProviderInfo[];onChanged: () => void;}) {+ const { t } = useTranslation();const names = providers.map((p) => p.name);const provOf = (id: string) => {const i = id.indexOf(":");@@ -194,10 +196,9 @@ function ComposerPickerCard({};return (<div className="mt-6" data-testid="composer-picker">- <div className={SEC_H + " mb-1.5"}>In the composer's picker</div>+ <div className={SEC_H + " mb-1.5"}>{t("manage.composer_picker_title")}</div><p className="text-[12px] text-muted mb-2.5 leading-relaxed">- The models offered when starting a session; the black badge marks the default. Add more- from a provider's card above.+ {t("manage.composer_picker_help")}</p><div className="mlist">{settings.models.map((id) => {@@ -209,7 +210,7 @@ function ComposerPickerCard({type="checkbox"checkeddisabled={isDefault}- title={isDefault ? "The default model is always shown — make another model default first" : "Remove from the picker"}+ title={isDefault ? t("models.default_locked") : t("manage.remove_from_picker")}onChange={() => removeModel(id).then((r) => r.ok && onChanged())}/><span className="mlist-name" title={id}>@@ -218,10 +219,10 @@ function ComposerPickerCard({</label><span className="text-[11px] text-faint mr-2 shrink-0">{tag(id)}</span>{isDefault ? (- <span className="mlist-default">default</span>+ <span className="mlist-default">{t("models.default_badge")}</span>) : (<button className="mlist-make" onClick={() => setDefaultModel(id).then(() => onChanged())}>- Make default+ {t("models.make_default")}</button>)}</div>@@ -244,6 +245,7 @@ const MCP_PRESETS: { name: string; label: string; blurb: string; config: Record<];export function McpTab() {+ const { t } = useTranslation();const [servers, setServers] = useState<McpServer[]>([]);const [adding, setAdding] = useState(false);const [error, setError] = useState<string | null>(null);@@ -274,22 +276,21 @@ export function McpTab() {return (<div className="space-y-3"><p className="text-[12.5px] text-muted leading-relaxed">- External tool servers (stdio or HTTP), shared across all agents. Enabled servers' tools are- permission-gated. Changes apply to new sessions —{" "}+ {t("manage.mcp_help")}{" "}<buttonclassName="text-accent font-medium hover:underline"onClick={() => reloadMcp().then(refresh)}>- reload now+ {t("manage.reload_now")}</button>.</p>{servers.length === 0 && !adding ? (<div className={CARD + " p-4 text-[13px] text-muted"}>- No MCP servers configured.{" "}+ {t("manage.mcp_none")}{" "}<button className="text-accent font-medium" onClick={() => setAdding(true)}>- Add a server+ {t("manage.mcp_add_server")}</button></div>) : (@@ -321,7 +322,7 @@ export function McpTab() {refresh();}}>- Connect+ {t("manage.connect")}</button></div>))}@@ -341,7 +342,7 @@ export function McpTab() {/>) : servers.length > 0 ? (<button className={BTN_ACCENT} onClick={() => setAdding(true)}>- + Add server+ {t("manage.mcp_add_btn")}</button>) : null}{error && <div className="text-[12.5px] text-danger">{error}</div>}@@ -360,6 +361,7 @@ function McpRow({onRemove: () => void;onRefresh: () => void;}) {+ const { t } = useTranslation();const [tools, setTools] = useState<{ name: string; description: string }[] | null>(null);const [busy, setBusy] = useState(false);const [toolErr, setToolErr] = useState<string | null>(null);@@ -385,36 +387,36 @@ function McpRow({const res = await getMcpTools(server.name);setBusy(false);if (res.ok) setTools(res.tools);- else setToolErr(res.error || "failed to connect");+ else setToolErr(res.error || t("manage.mcp_connect_failed"));};return (<div className={CARD + " p-3.5"}><div className="flex items-center gap-3">- <Toggle checked={server.enabled} onChange={onToggle} title="Enable this server" />+ <Toggle checked={server.enabled} onChange={onToggle} title={t("manage.mcp_enable")} /><div className="flex-1 min-w-0"><div className="text-[14px] font-medium">{server.name}</div><div className="text-[11.5px] text-faint">- {server.transport} · {authorizing ? "signing in…" : server.status.replace("_", " ")}- {server.tool_count != null ? ` · ${server.tool_count} tools` : ""}- {server.requires_approval ? " · asks" : ""}- {isOauth ? " · oauth" : ""}+ {server.transport} · {authorizing ? t("manage.mcp_signing_in") : server.status.replace("_", " ")}+ {server.tool_count != null ? ` · ${t("manage.mcp_tool_count", { n: server.tool_count })}` : ""}+ {server.requires_approval ? ` · ${t("manage.mcp_asks")}` : ""}+ {isOauth ? ` · ${t("manage.mcp_oauth")}` : ""}</div></div>{isOauth &&(server.status === "needs_auth" ? (<button className={BTN_ACCENT} onClick={signIn} data-testid={`mcp-signin-${server.name}`}>- Sign in+ {t("manage.mcp_sign_in")}</button>) : authorizing ? (- <span className="text-[12px] text-muted shrink-0">waiting for browser…</span>+ <span className="text-[12px] text-muted shrink-0">{t("manage.mcp_waiting_browser")}</span>) : server.status === "connected" ? (<buttonclassName="text-[12px] text-muted hover:text-ink shrink-0"onClick={signOut}data-testid={`mcp-signout-${server.name}`}>- sign out+ {t("manage.mcp_sign_out")}</button>) : null)}<button@@ -422,10 +424,10 @@ function McpRow({onClick={loadTools}disabled={busy}>- {busy ? "…" : tools ? "hide tools" : "tools"}+ {busy ? "…" : tools ? t("manage.mcp_hide_tools") : t("manage.mcp_tools")}</button><button className={BTN_DANGER} onClick={onRemove}>- remove+ {t("common.remove")}</button></div>{server.last_error && server.status !== "connected" && (@@ -434,14 +436,14 @@ function McpRow({{toolErr && <div className="text-[12.5px] text-danger mt-1.5">{toolErr}</div>}{tools && (<div className="mt-2.5 pt-2.5 border-t border-line flex flex-wrap gap-1.5">- {tools.length === 0 && <div className="text-[12px] text-faint">No tools.</div>}- {tools.map((t) => (+ {tools.length === 0 && <div className="text-[12px] text-faint">{t("manage.mcp_no_tools")}</div>}+ {tools.map((tl) => (<span- key={t.name}- title={t.description}+ key={tl.name}+ title={tl.description}className="font-mono text-[11.5px] px-1.5 py-0.5 rounded-md bg-paper border border-line">- {t.name}+ {tl.name}</span>))}</div>@@ -459,6 +461,7 @@ function AddForm({onAdded: () => void;onError: (e: string | null) => void;}) {+ const { t } = useTranslation();const [text, setText] = useState(EXAMPLE);const save = async () => {@@ -467,7 +470,7 @@ function AddForm({try {parsed = JSON.parse(text);} catch (e: any) {- onError("Invalid JSON: " + e.message);+ onError(t("manage.mcp_invalid_json", { msg: e.message }));return;}// Accept either {mcpServers:{...}}, {name:{...}}, or a single bare config.@@ -477,7 +480,7 @@ function AddForm({? Object.entries(map): null;if (!entries || entries.length === 0) {- onError('Paste a `{ "<name>": { … } }` object (or a full mcpServers block).');+ onError(t("manage.mcp_paste_help"));return;}for (const [name, config] of entries) {@@ -488,7 +491,7 @@ function AddForm({return (<div className="space-y-2">- <div className="text-[12.5px] text-muted">Paste server JSON (name → config):</div>+ <div className="text-[12.5px] text-muted">{t("manage.mcp_paste_label")}</div><textareavalue={text}onChange={(e) => setText(e.target.value)}@@ -498,10 +501,10 @@ function AddForm({/><div className="flex items-center gap-3"><button className={BTN_ACCENT} onClick={save}>- Add+ {t("manage.add_btn")}</button><button className="text-[12.5px] text-muted hover:text-ink" onClick={onCancel}>- cancel+ {t("manage.cancel")}</button></div></div>@@ -528,6 +531,7 @@ export function UnauthorizedBlock({onChanged: () => void;teamId?: string;}) {+ const { t } = useTranslation();const items = (c.unauthorized ?? []).filter((m) => teamId === undefined || m.team_id === teamId,);@@ -542,14 +546,14 @@ export function UnauthorizedBlock({data-testid={teamId ? `unauthorized-${c.name}-${teamId}` : `unauthorized-${c.name}`}><div className={SEC_H + " mb-2"}>- Messages from senders you haven't allowed · {items.length}+ {t("manage.parked_title", { n: items.length })}</div><div className="space-y-2">{items.map((m) => (<div key={m.id} className="rounded-xl border border-line bg-paper p-2.5"><div className="flex items-center gap-2 text-[12px] text-muted"><span className="font-medium text-ink">{m.user_name || m.user_id}</span>- <span>in {m.chat_name || m.chat_id}</span>+ <span>{t("manage.parked_in", { chat: m.chat_name || m.chat_id })}</span><span className="ml-auto shrink-0">{relTime(m.ts) || ""}</span></div><div className="text-[12.5px] mt-1 break-words">{m.text}</div>@@ -557,26 +561,26 @@ export function UnauthorizedBlock({<buttonclassName="text-[11.5px] px-2 py-1 rounded-md bg-accent text-white"data-testid={`parked-allow-deliver-${m.id}`}- title="Add the sender to the allow-list and deliver this message now"+ title={t("manage.parked_allow_deliver_tip")}onClick={() => act(m.id, "allow_deliver")}>- Allow & deliver+ {t("manage.parked_allow_deliver")}</button><buttonclassName={BTN_BORDERED}data-testid={`parked-allow-${m.id}`}- title="Add the sender to the allow-list; this message is discarded"+ title={t("manage.parked_allow_tip")}onClick={() => act(m.id, "allow")}>- Allow only+ {t("manage.parked_allow_only")}</button><buttonclassName="text-[11.5px] px-2 py-1 rounded-md text-faint hover:text-danger"data-testid={`parked-dismiss-${m.id}`}- title="Throw this message away"+ title={t("manage.parked_dismiss_tip")}onClick={() => act(m.id, "dismiss")}>- Dismiss+ {t("manage.parked_dismiss")}</button></div></div>@@ -590,6 +594,7 @@ export function UnauthorizedBlock({// Channel-subscriptions table (Integrations ▸ Messaging routing). Subscribing happens from a// session's Sources ▸ Channels panel; here the owner can see and revoke.export function ListeningSessionsBlock({ c }: { c: Connector }) {+ const { t } = useTranslation();const [subs, setSubs] = useState<Subscription[] | null>(null);const load = () => getSubscriptions().then(setSubs).catch(() => setSubs([]));useEffect(() => {@@ -600,10 +605,10 @@ export function ListeningSessionsBlock({ c }: { c: Connector }) {const mine = (subs ?? []).filter((s) => platformOf(s.channel) === c.name);return (<div className="border-t border-line px-3.5 py-3" data-testid={`listening-${c.name}`}>- <div className={SEC_H + " mb-2"}>Sessions listening to {c.title} channels · {mine.length}</div>+ <div className={SEC_H + " mb-2"}>{t("manage.listening_title", { title: c.title, n: mine.length })}</div>{mine.length === 0 ? (<div className="text-[12px] text-faint">- None yet — open a session's Sources ▸ Channels to subscribe it to a channel.+ {t("manage.listening_empty")}</div>) : (<div className="space-y-1.5">@@ -618,7 +623,7 @@ export function ListeningSessionsBlock({ c }: { c: Connector }) {</span><buttonclassName="ml-auto text-faint hover:text-danger shrink-0"- title="Unsubscribe this session"+ title={t("manage.listening_unsub_tip")}onClick={async () => {await unsubscribeChannel(s.session_id, s.channel);load();@@ -651,6 +656,7 @@ export function AllowlistBlock({allowed?: string[];allowedNames?: Record<string, string | null>;}) {+ const { t } = useTranslation();const allowedUsers = allowed ?? c.allowed_users;const names = allowedNames ?? c.allowed_user_names;const recent = (c.recent ?? []).filter(@@ -661,16 +667,16 @@ export function AllowlistBlock({return (<div className="border-t border-line px-3.5 py-3 grid grid-cols-2 gap-5"><div>- <div className={SEC_H + " mb-2"}>Allowed to message</div>+ <div className={SEC_H + " mb-2"}>{t("manage.allowed_to_message")}</div><div className="flex flex-wrap gap-1.5">{allowedUsers.length === 0 && (- <span className="text-[12px] text-faint">nobody yet — Allow a recent sender →</span>+ <span className="text-[12px] text-faint">{t("manage.allowed_empty")}</span>)}{allowedUsers.map((u) => (<spankey={u}className="inline-flex items-center gap-1.5 pl-2 pr-1 py-1 rounded-full bg-paper border border-line text-[12px]"- title={`id ${u}`}+ title={t("manage.id_title", { id: u })}><span className="w-4 h-4 rounded-full bg-accentSoft text-accent grid place-items-center text-[9px] font-bold">{initials(names?.[u] || u)}@@ -678,7 +684,7 @@ export function AllowlistBlock({{names?.[u] || u}<buttonclassName="w-4 h-4 grid place-items-center text-faint hover:text-danger"- title="remove"+ title={t("common.remove")}onClick={async () => {await disallowUser(c.name, u, teamId);onChanged();@@ -691,9 +697,9 @@ export function AllowlistBlock({</div></div><div>- <div className={SEC_H + " mb-2"}>Recent senders</div>+ <div className={SEC_H + " mb-2"}>{t("manage.recent_senders")}</div>{unknownRecent.length === 0 ? (- <div className="text-[12px] text-faint">None yet. Message the bot once and it'll show here.</div>+ <div className="text-[12px] text-faint">{t("manage.recent_empty")}</div>) : (<div className="space-y-1.5">{unknownRecent.map((r) => (@@ -701,8 +707,8 @@ export function AllowlistBlock({<span className="w-5 h-5 rounded-full bg-paper border border-line grid place-items-center text-[9px] font-bold text-muted shrink-0">{initials(r.user_name || "?")}</span>- <span className="min-w-0 truncate" title={`id ${r.user_id}`}>- {r.user_name || "unknown"} <span className="text-faint">· {r.chat_type}</span>+ <span className="min-w-0 truncate" title={t("manage.id_title", { id: r.user_id })}>+ {r.user_name || t("manage.unknown")} <span className="text-faint">· {r.chat_type}</span></span><buttonclassName="ml-auto text-[11.5px] px-2 py-0.5 rounded-md bg-accent text-white shrink-0"@@ -711,7 +717,7 @@ export function AllowlistBlock({onChanged();}}>- Allow+ {t("approval.allow")}</button></div>))}@@ -723,6 +729,7 @@ export function AllowlistBlock({}export function ConnectorTools({ c, onChanged }: { c: Connector; onChanged: () => void }) {+ const { t } = useTranslation();const toggle = async (toolName: string, enabled: boolean) => {await updateConnectorTools(c.name, { [toolName]: enabled });onChanged();@@ -730,12 +737,12 @@ export function ConnectorTools({ c, onChanged }: { c: Connector; onChanged: () =if (!c.tools?.length)return (<div className="border-t border-line px-3.5 py-3 text-[12.5px] text-muted">- No tools for this connector yet.+ {t("manage.connector_no_tools")}</div>);return (<div className="border-t border-line px-3.5 py-3">- <div className={SEC_H + " mb-2"}>Tools exposed to OpenWorker</div>+ <div className={SEC_H + " mb-2"}>{t("manage.tools_exposed")}</div><div className="space-y-1.5">{c.tools.map((tool) => (<label@@ -751,7 +758,7 @@ export function ConnectorTools({ c, onChanged }: { c: Connector; onChanged: () =<span className="min-w-0"><span className="block text-[13px]">{tool.label}</span><span className="block text-[11.5px] text-faint">- {tool.name} · {tool.kind} · asks approval+ {tool.name} · {tool.kind} · {t("manage.tool_asks_approval")}</span><span className="block text-[11.5px] text-faint">{tool.description}</span></span>@@ -777,6 +784,7 @@ export function ConnectSetup({// pill, so don't render the managed block again here.manualOnly?: boolean;}) {+ const { t } = useTranslation();const [values, setValues] = useState<Record<string, string>>({});const [busy, setBusy] = useState(false);const [waiting, setWaiting] = useState(false); // managed flow: browser is open@@ -788,7 +796,7 @@ export function ConnectSetup({const res = await connectConnector(c.name, values);setBusy(false);if (res.ok) onConnected();- else setError(res.error || "could not connect");+ else setError(res.error || t("manage.could_not_connect"));};const oneClick = async () => {@@ -797,7 +805,7 @@ export function ConnectSetup({// Completion arrives via the tab's poll: the broker form-POSTs the profile// to the sidecar, the connector flips to connected, this card closes itself.if (res.ok) setWaiting(true);- else setError(res.error || "could not start managed connect");+ else setError(res.error || t("manage.could_not_start_managed"));};const mcpOneClick = async () => {@@ -806,7 +814,7 @@ export function ConnectSetup({// Completion likewise arrives via the poll — the sidecar flips the connector// to connected once the local OAuth flow lands.if (res.ok) setWaiting(true);- else setError(res.error || "could not start the connect");+ else setError(res.error || t("manage.could_not_start_connect"));};return (@@ -815,10 +823,10 @@ export function ConnectSetup({/* MCP-backed one-click needs no cloud sign-in — the OAuth flow is local. */<div className="space-y-2" data-testid="mcp-connect"><button className={BTN_ACCENT} onClick={mcpOneClick} disabled={waiting}>- {waiting ? "Check your browser…" : `Connect ${c.title} with one click`}+ {waiting ? t("manage.check_browser") : t("manage.connect_one_click", { title: c.title })}</button>{c.fields.length > 0 && (- <div className="text-[11.5px] text-faint">or connect manually:</div>+ <div className="text-[11.5px] text-faint">{t("manage.or_connect_manually")}</div>)}</div>)}@@ -829,22 +837,22 @@ export function ConnectSetup({// a visibly-parked button, and the manual path below stays fully live.<><button className={BTN_ACCENT + " opacity-50"} disabled data-testid="managed-coming-soon">- {`Connect ${c.title} with one click`}+ {t("manage.connect_one_click", { title: c.title })}<span className="ml-2 text-[11px] font-medium px-1.5 py-0.5 rounded-full bg-white/25">- Coming soon+ {t("manage.coming_soon")}</span></button><div className="text-[11.5px] text-faint">- One-click sign-in is coming soon — connect manually below for now:+ {t("manage.one_click_coming")}</div></>) : cloud?.signed_in ? (<button className={BTN_ACCENT} onClick={oneClick} disabled={waiting}>- {waiting ? "Check your browser…" : `Connect ${c.title} with one click`}+ {waiting ? t("manage.check_browser") : t("manage.connect_one_click", { title: c.title })}</button>) : cloud ? (<CloudSignInInline- blurb={`Sign-in unlocks the one-click ${c.title} connect — or connect manually below.`}+ blurb={t("manage.signin_unlocks", { title: c.title })}/>) : (// Status unknown (fetch pending/failed): never show the sign-in ask to a@@ -852,7 +860,7 @@ export function ConnectSetup({<CloudStatusPending />)}{!c.managed_paused && cloud?.signed_in && (- <div className="text-[11.5px] text-faint">or connect manually:</div>+ <div className="text-[11.5px] text-faint">{t("manage.or_connect_manually")}</div>)}</div>)}@@ -867,7 +875,7 @@ export function ConnectSetup({<label className="conn-field" key={f.key}><span className="conn-field-label">{f.label}- {!f.required && <em> (optional)</em>}+ {!f.required && <em> ({t("manage.optional")})</em>}</span><inputtype={f.secret ? "password" : "text"}@@ -881,7 +889,7 @@ export function ConnectSetup({))}<div><button className={BTN_ACCENT} onClick={submit} disabled={busy}>- {busy ? "Validating…" : "Connect"}+ {busy ? t("manage.validating") : t("manage.connect")}</button></div>{error && <div className="text-[12.5px] text-danger">{error}</div>}diff --git a/surfaces/gui/src/components/Markdown.tsx b/surfaces/gui/src/components/Markdown.tsxindex 33670427..b4bbc5c9 100644--- a/surfaces/gui/src/components/Markdown.tsx+++ b/surfaces/gui/src/components/Markdown.tsx@@ -1,4 +1,5 @@import ReactMarkdown, { defaultUrlTransform } from "react-markdown";+import { useTranslation } from "react-i18next";import remarkGfm from "remark-gfm";import { Icon } from "./Icon";@@ -10,6 +11,7 @@ import { Icon } from "./Icon";export const OPEN_ARTIFACT_EVENT = "ocw-open-artifact";function ArtifactChip({ path, title }: { path: string; title: string }) {+ const { t } = useTranslation();const file = path.split("/").pop() || path;return (<button@@ -27,7 +29,7 @@ function ArtifactChip({ path, title }: { path: string; title: string }) {<b>{title || file}</b>{title && title !== file && <span>{file}</span>}</span>- <span className="art-chip-open">Open ›</span>+ <span className="art-chip-open">{t("rail.open")} ›</span></button>);}diff --git a/surfaces/gui/src/components/ModelChecklist.tsx b/surfaces/gui/src/components/ModelChecklist.tsxindex 47f856f2..380fa068 100644--- a/surfaces/gui/src/components/ModelChecklist.tsx+++ b/surfaces/gui/src/components/ModelChecklist.tsx@@ -1,4 +1,5 @@import { useState } from "react";+import { useTranslation } from "react-i18next";import { addModel, getSettings, removeModel, setDefaultModel } from "../api";// One provider's models as a checklist: tick = shown in the composer's model picker (the@@ -22,6 +23,7 @@ export function ModelChecklist({labels?: Record<string, string>; // curated display names (full id → label); raw id when absentonChanged: (next: { models: string[]; model: string }) => void;}) {+ const { t } = useTranslation();const [draft, setDraft] = useState("");const provOf = (id: string) => {@@ -72,7 +74,7 @@ export function ModelChecklist({type="checkbox"checked={checked(id)}disabled={isDefault}- title={isDefault ? "The default model is always shown — make another model default first" : undefined}+ title={isDefault ? t("models.default_locked") : undefined}onChange={(e) => tick(id, e.target.checked)}/><span className="mlist-name" title={id}>@@ -80,10 +82,10 @@ export function ModelChecklist({</span></label>{isDefault ? (- <span className="mlist-default">default</span>+ <span className="mlist-default">{t("models.default_badge")}</span>) : (<button className="mlist-make" onClick={() => makeDefault(id)}>- Make default+ {t("models.make_default")}</button>)}</div>@@ -91,7 +93,7 @@ export function ModelChecklist({})}<div className="mlist-add"><input- placeholder="Add another model…"+ placeholder={t("models.add_placeholder")}value={draft}spellCheck={false}autoComplete="off"@@ -99,7 +101,7 @@ export function ModelChecklist({onKeyDown={(e) => e.key === "Enter" && add()}/><button className="btn-primary sm" onClick={add} disabled={!draft.trim()}>- Add+ {t("models.add_btn")}</button></div></div>diff --git a/surfaces/gui/src/components/Onboarding.tsx b/surfaces/gui/src/components/Onboarding.tsxindex 5cfe88a2..40aaaed0 100644--- a/surfaces/gui/src/components/Onboarding.tsx+++ b/surfaces/gui/src/components/Onboarding.tsx@@ -1,4 +1,5 @@import { useEffect, useState } from "react";+import { useTranslation } from "react-i18next";import {cloudLogin,connectManaged,@@ -28,16 +29,17 @@ import { Spinner } from "./AutomationQuickstart";// combined grayed "Coming soon" row — both ride the same Google app, gated on// Google verification/CASA; give them rows when it lands.const TOOL_ROWS = [- { name: "outlook", benefit: "Stay on top of email", detail: "Outlook — triage mail, draft replies, run your calendar." },- { name: "slack", benefit: "Keep up with Slack", detail: "Slack — catch up, answer mentions, post updates." },- { name: "github", benefit: "Ship code", detail: "GitHub — review PRs, watch issues, reply to @mentions." },- { name: "notion", benefit: "Keep your notes in reach", detail: "Notion — search pages, query databases, draft docs." },- { name: "hubspot", benefit: "Keep the CRM current", detail: "HubSpot — update deals, log notes, prep calls." },- { name: "attio", benefit: "Track every relationship", detail: "Attio — search records, read timelines, log notes." },+ { name: "outlook", benefitKey: "onboarding.tool_outlook_benefit", detailKey: "onboarding.tool_outlook_detail" },+ { name: "slack", benefitKey: "onboarding.tool_slack_benefit", detailKey: "onboarding.tool_slack_detail" },+ { name: "github", benefitKey: "onboarding.tool_github_benefit", detailKey: "onboarding.tool_github_detail" },+ { name: "notion", benefitKey: "onboarding.tool_notion_benefit", detailKey: "onboarding.tool_notion_detail" },+ { name: "hubspot", benefitKey: "onboarding.tool_hubspot_benefit", detailKey: "onboarding.tool_hubspot_detail" },+ { name: "attio", benefitKey: "onboarding.tool_attio_benefit", detailKey: "onboarding.tool_attio_detail" },];const TOOLS_SOON = ["gmail", "google_calendar"];export function Onboarding({ onDone }: { onDone: (next?: "work" | "gallery" | "automations") => void }) {+ const { t } = useTranslation();const [step, setStep] = useState(0);// -- step 1: model (provider gallery ⇄ key form, shared machinery) ---------------@@ -119,10 +121,9 @@ export function Onboarding({ onDone }: { onDone: (next?: "work" | "gallery" | "a{step === 0 && (<section data-testid="ob-step-model" className="flex-1 min-h-0 flex flex-col">{/* Persistent header — stays put while the region below swaps (§39). */}- <h1 className="text-[19px] font-semibold">Welcome to OpenWorker<span className="beta-tag">BETA</span></h1>+ <h1 className="text-[19px] font-semibold">{t("onboarding.welcome")}<span className="beta-tag">BETA</span></h1><p className="text-[13px] text-muted mt-0.5 mb-4">- Pick a model provider to get started — OpenWorker runs on your own key, and your- key and your data stay on this Mac.+ {t("onboarding.model_intro")}</p>{!ps.sel ? (@@ -141,13 +142,13 @@ export function Onboarding({ onDone }: { onDone: (next?: "work" | "gallery" | "a<div className="flex items-center gap-3 pt-5">{!skipConfirm ? (<button className="text-[12.5px] text-faint hover:text-muted" onClick={() => setSkipConfirm(true)}>- Skip setup+ {t("onboarding.skip_setup")}</button>) : (<span className="text-[12.5px] text-muted">- Nothing works without a model —{" "}+ {t("onboarding.skip_warn_pref")}{" "}<button className="text-accent" onClick={() => finish()}>- skip anyway+ {t("onboarding.skip_anyway")}</button></span>)}@@ -157,11 +158,11 @@ export function Onboarding({ onDone }: { onDone: (next?: "work" | "gallery" | "aonClick={advance}data-testid="ob-continue">- {ps.verify.state === "testing" ? "Checking…" : "Next"}+ {ps.verify.state === "testing" ? t("onboarding.checking") : t("onboarding.next")}</button></div><p className="text-[11px] text-faint mt-3">- Models can be enabled or hidden anytime in Settings ▸ Models.+ {t("onboarding.models_settings_hint")}</p></section>)}@@ -173,13 +174,13 @@ export function Onboarding({ onDone }: { onDone: (next?: "work" | "gallery" | "aslot keeps its place but flips to a green congrats, and every row grows a quietConnect pill. The gated Google pair is ONE combined grayed row. */<section data-testid="ob-step-tools" className="flex-1 min-h-0 flex flex-col">- <h1 className="text-[19px] font-semibold">Connect your everyday tools</h1>+ <h1 className="text-[19px] font-semibold">{t("onboarding.connect_tools_title")}</h1><p className="text-[13px] text-muted mt-0.5 mb-3">- Chat can only advise. Connected, your coworker does the actual work:+ {t("onboarding.connect_tools_intro")}</p><div className="flex-1 min-h-0 overflow-y-auto pr-1" data-testid="ob-tool-gallery">- {TOOL_ROWS.map(({ name, benefit, detail }) => {+ {TOOL_ROWS.map(({ name, benefitKey, detailKey }) => {const c = connectors.find((x) => x.name === name);if (!c) return null;return (@@ -190,20 +191,20 @@ export function Onboarding({ onDone }: { onDone: (next?: "work" | "gallery" | "a><ConnectorBadge connector={c} size={34} title={c.title} /><span className="min-w-0 flex-1">- <span className="block text-[13.5px] font-semibold leading-tight">{benefit}</span>- <span className="block text-[12px] text-muted truncate">{detail}</span>+ <span className="block text-[13.5px] font-semibold leading-tight">{t(benefitKey)}</span>+ <span className="block text-[12px] text-muted truncate">{t(detailKey)}</span></span>{cloud?.signed_in &&(c.connected ? (- <span className="text-[12px] text-ok font-medium shrink-0">✓ Connected</span>+ <span className="text-[12px] text-ok font-medium shrink-0">{t("onboarding.connected_ok")}</span>) : pendingTool === name ? (- <span className="text-[12px] text-muted shrink-0">Check your browser…</span>+ <span className="text-[12px] text-muted shrink-0">{t("onboarding.check_browser")}</span>) : (<buttonclassName="shrink-0 rounded-full border border-line px-4 py-1.5 text-[12.5px] font-medium hover:border-lineStrong"onClick={() => startTool(name)}>- Connect+ {t("onboarding.connect")}</button>))}</div>@@ -219,13 +220,13 @@ export function Onboarding({ onDone }: { onDone: (next?: "work" | "gallery" | "a</span><span className="min-w-0 flex-1"><span className="block text-[13.5px] font-semibold leading-tight text-faint">- Gmail & Google Calendar+ {t("onboarding.google_pair_title")}</span><span className="block text-[12px] text-faint truncate">- Coming soon — pending Google’s app verification.+ {t("onboarding.google_pair_detail")}</span></span>- {cloud?.signed_in && <span className="text-[11.5px] text-faint shrink-0">Coming soon</span>}+ {cloud?.signed_in && <span className="text-[11.5px] text-faint shrink-0">{t("onboarding.coming_soon")}</span>}</div></div>@@ -236,25 +237,24 @@ export function Onboarding({ onDone }: { onDone: (next?: "work" | "gallery" | "a<div className="mt-3.5 rounded-xl border border-line bg-paper px-4 py-3 flex items-center gap-3.5 shrink-0"><span className="flex-1 text-[12.5px] text-muted leading-snug"><span className="block text-[13px] font-semibold text-ink mb-0.5">- Sign in for one-click connections+ {t("onboarding.signin_for_oneclick")}</span>- OpenWorker handles the OAuth for 20+ tools — no dev consoles, no pasted keys.- Tokens stay on this Mac.+ {t("onboarding.signin_band_desc")}</span>{signinPhase ? (<span className="inline-flex items-center gap-2 text-[12.5px] text-muted shrink-0"><Spinner />{signinPhase === "opening" ? (- "Opening browser…"+ t("onboarding.opening_browser")) : (<>- Waiting…{" "}+ {t("onboarding.waiting")}{" "}<buttonclassName="underline hover:text-ink"onClick={() => setSigninPhase(null)}data-testid="ob-signin-cancel">- Cancel+ {t("onboarding.cancel")}</button></>)}@@ -269,7 +269,7 @@ export function Onboarding({ onDone }: { onDone: (next?: "work" | "gallery" | "a}}data-testid="ob-cloud-signin">- Sign in+ {t("onboarding.sign_in")}</button>)}</div>@@ -279,11 +279,10 @@ export function Onboarding({ onDone }: { onDone: (next?: "work" | "gallery" | "adata-testid="ob-tools-signedin"><span className="block text-[13px] font-semibold text-ok mb-0.5">- 🎉 You’re signed in{cloud.account ? ` as ${cloud.account}` : ""}+ {t("onboarding.signed_in_as", { account: cloud.account ? ` ${cloud.account}` : "" })}</span><span className="block text-[12.5px] text-muted">- Connect a tool above with one click — or add them anytime later from the- Connectors page.+ {t("onboarding.signed_in_desc")}</span></div>)}@@ -296,7 +295,7 @@ export function Onboarding({ onDone }: { onDone: (next?: "work" | "gallery" | "aonClick={() => setStep(2)}data-testid="ob-continue-tools">- Next+ {t("onboarding.next")}</button>) : (<button@@ -304,13 +303,12 @@ export function Onboarding({ onDone }: { onDone: (next?: "work" | "gallery" | "aonClick={() => setStep(2)}data-testid="ob-tools-skip">- Continue without sign-in+ {t("onboarding.continue_without_signin")}</button>)}</div><p className="text-[11px] text-faint mt-3">- 30+ more tools on the Connectors page — add or remove anytime. Tokens stay on- this Mac.+ {t("onboarding.more_tools_hint")}</p></section>)}@@ -321,8 +319,8 @@ export function Onboarding({ onDone }: { onDone: (next?: "work" | "gallery" | "a<div className="w-12 h-12 rounded-full bg-okSoft text-ok grid place-items-center mx-auto mb-3 text-[22px]">✓</div>- <h1 className="text-[19px] font-semibold mb-1">You're set up</h1>- <p className="text-[13px] text-muted mb-5">Two good ways to start:</p>+ <h1 className="text-[19px] font-semibold mb-1">{t("onboarding.youre_set_up")}</h1>+ <p className="text-[13px] text-muted mb-5">{t("onboarding.two_ways")}</p></div><button@@ -334,9 +332,9 @@ export function Onboarding({ onDone }: { onDone: (next?: "work" | "gallery" | "a◷</span><span className="flex-1 min-w-0 text-left">- <b className="block text-[13.5px]">Create your first automation</b>+ <b className="block text-[13.5px]">{t("onboarding.cta_automation_title")}</b><span className="text-[12px] text-muted">- A weekly digest, a morning brief — pick a template, running in two minutes.+ {t("onboarding.cta_automation_desc")}</span></span><span className="text-faint self-center">›</span>@@ -350,9 +348,9 @@ export function Onboarding({ onDone }: { onDone: (next?: "work" | "gallery" | "a✦</span><span className="flex-1 min-w-0 text-left">- <b className="block text-[13.5px]">Start working with Coworker</b>+ <b className="block text-[13.5px]">{t("onboarding.cta_work_title")}</b><span className="text-[12px] text-muted">- Open a session and just ask — analyze files, draft, research, build.+ {t("onboarding.cta_work_desc")}</span></span><span className="text-faint self-center">›</span>@@ -362,7 +360,7 @@ export function Onboarding({ onDone }: { onDone: (next?: "work" | "gallery" | "a(owner call 2026-07-12); the finish("gallery") plumbing remains for their return. */}<p className="text-[11px] text-faint text-center mt-auto pt-5">- Replay this setup anytime: Settings ▸ Appearance ▸ Run setup again.+ {t("onboarding.replay_hint")}</p></section>)}diff --git a/surfaces/gui/src/components/PersonaHero.tsx b/surfaces/gui/src/components/PersonaHero.tsxindex 483bca9e..0ea335b6 100644--- a/surfaces/gui/src/components/PersonaHero.tsx+++ b/surfaces/gui/src/components/PersonaHero.tsx@@ -4,6 +4,8 @@// same everywhere but no two look alike. Rendered as an image, so it deliberately// keeps its own colors in dark mode (like a photo would).+import { useTranslation } from "react-i18next";+function hueOf(slug: string): number {let h = 0;for (let i = 0; i < slug.length; i++) h = (h * 31 + slug.charCodeAt(i)) % 3600;@@ -19,6 +21,7 @@ export function PersonaHero({height?: number;className?: string;}) {+ const { t } = useTranslation();const h = hueOf(slug);const bg = `hsl(${h} 42% 91%)`;const deep = `hsl(${h} 45% 42%)`;@@ -31,7 +34,7 @@ export function PersonaHero({viewBox="0 0 400 120"preserveAspectRatio="xMidYMid slice"role="img"- aria-label={`${slug} artwork`}+ aria-label={t("persona.hero_art", { slug })}><rect width="400" height="120" rx="12" fill={bg} />{/* orbit rings around a central agent spark, with satellite nodes */}diff --git a/surfaces/gui/src/components/PersonaView.tsx b/surfaces/gui/src/components/PersonaView.tsxindex 74e7b577..0211f035 100644--- a/surfaces/gui/src/components/PersonaView.tsx+++ b/surfaces/gui/src/components/PersonaView.tsx@@ -9,6 +9,7 @@// Enabling/disabling POSTs /v1/personas/{id}/enable.import { useEffect, useState } from "react";+import { useTranslation } from "react-i18next";import {getConnectors,getPersonaDetail,@@ -41,6 +42,7 @@ export function PersonaView({onBack?: () => void;onOpenIntegrations?: () => void;}) {+ const { t } = useTranslation();const [detail, setDetail] = useState<PersonaDetail | null>(null);const [byName, setByName] = useState<ConnectorMap>({});const [error, setError] = useState<string | null>(null);@@ -51,7 +53,7 @@ export function PersonaView({setError(null);getPersonaDetail(personaId).then((d) => live && setDetail(d))- .catch(() => live && setError("Could not load this persona."));+ .catch(() => live && setError(t("persona.load_error")));getConnectors().then((list) => live && setByName(indexConnectors(list))).catch(() => {});@@ -83,12 +85,12 @@ export function PersonaView({className="inline-flex items-center gap-1 text-[12.5px] text-muted hover:text-ink"onClick={onBack}>- <Icon name="arrowLeft" size={15} /> Back+ <Icon name="arrowLeft" size={15} /> {t("persona.back")}</button><span className="text-faint">·</span></>)}- <span className="text-[13px] font-semibold">Persona</span>+ <span className="text-[13px] font-semibold">{t("persona.persona")}</span></div>);@@ -96,7 +98,7 @@ export function PersonaView({return (<main className="flex-1 min-w-0 flex flex-col bg-paper">{header}- <div className="p-12 text-center text-faint text-[13px]">{error || "Loading…"}</div>+ <div className="p-12 text-center text-faint text-[13px]">{error || t("persona.loading")}</div></main>);}@@ -118,15 +120,15 @@ export function PersonaView({<p className="text-[13px] text-muted mt-0.5">{detail.tagline}</p></div><div className="ml-auto flex items-center gap-2">- <span className="text-[12px] text-muted">{detail.enabled ? "Enabled" : "Disabled"}</span>- <Toggle checked={detail.enabled} onChange={toggleEnabled} title="Enable this persona" />+ <span className="text-[12px] text-muted">{detail.enabled ? t("persona.enabled") : t("persona.disabled")}</span>+ <Toggle checked={detail.enabled} onChange={toggleEnabled} title={t("persona.enable_title")} /></div></header>{/* about */}{detail.description && (<section>- <div className={`${SEC_H} mb-1.5`}>About</div>+ <div className={`${SEC_H} mb-1.5`}>{t("persona.about")}</div><p className="text-[14px] leading-relaxed text-ink/90">{detail.description}</p></section>)}@@ -134,7 +136,7 @@ export function PersonaView({{/* tools */}{detail.tools.length > 0 && (<section>- <div className={`${SEC_H} mb-2`}>Built-in capabilities</div>+ <div className={`${SEC_H} mb-2`}>{t("persona.builtin_capabilities")}</div><div className="flex flex-wrap gap-1.5">{detail.tools.map((t) => (<span@@ -151,10 +153,9 @@ export function PersonaView({{/* connections for full benefit (manifest recommends) */}{detail.recommends.length > 0 && (<section>- <div className={`${SEC_H} mb-1`}>Connections for full benefit</div>+ <div className={`${SEC_H} mb-1`}>{t("persona.connections_full_benefit")}</div><p className="text-[12.5px] text-muted mb-2.5">- Declared by the persona — wire {shortPersonaName(detail.name, personaId)} into these- to unlock its full workflow.+ {t("persona.connections_desc", { name: shortPersonaName(detail.name, personaId) })}</p><div className="rounded-xl2 border border-line overflow-hidden">{detail.recommends.map((r, i) => {@@ -173,7 +174,7 @@ export function PersonaView({{isMcp ? (<span className={TAG_MCP}>MCP</span>) : r.tier === "core" ? (- <span className={TAG_CORE}>core</span>+ <span className={TAG_CORE}>{t("persona.core_tag")}</span>) : null}</div><div className="text-[12px] text-muted">{r.reason}</div>@@ -181,14 +182,14 @@ export function PersonaView({{r.connected ? (<span className="inline-flex items-center gap-1 text-[11.5px] text-ok shrink-0"><span className="w-1.5 h-1.5 rounded-full bg-ok" />- connected+ {t("persona.connected")}</span>) : (<buttonclassName={r.tier === "core" && !isMcp ? BTN_ACCENT : BTN_BORDERED}onClick={onOpenIntegrations}>- {isMcp ? "Add" : "Connect"}+ {isMcp ? t("persona.add") : t("persona.connect")}</button>)}</div>@@ -201,10 +202,9 @@ export function PersonaView({{/* persona-default connections (persona → session default) */}{detail.default_connections.length > 0 && (<section>- <div className={`${SEC_H} mb-1`}>New sessions get by default</div>+ <div className={`${SEC_H} mb-1`}>{t("persona.new_sessions_default")}</div><p className="text-[12.5px] text-muted mb-2.5">- When you start a {shortPersonaName(detail.name, personaId)} session these are enabled- automatically. You can still mute any of them per session.+ {t("persona.new_sessions_desc", { name: shortPersonaName(detail.name, personaId) })}</p><div className="space-y-1.5">{detail.default_connections.map((c) => (@@ -219,14 +219,14 @@ export function PersonaView({<div className="flex-1 text-[13px] font-medium">{labelFor(c.connector, byName)}{!c.connected && (- <span className="text-[11px] text-faint font-normal"> · connect to enable</span>+ <span className="text-[11px] text-faint font-normal"> · {t("persona.connect_to_enable")}</span>)}</div><Togglechecked={c.enabled}disabled={!c.connected}onChange={(next) => toggleDefault(c.connector, next)}- title={c.connected ? "On by default for new sessions" : "Connect this first"}+ title={c.connected ? t("persona.on_by_default") : t("persona.connect_this_first")}/></div>))}@@ -238,7 +238,7 @@ export function PersonaView({<section className="flex flex-wrap gap-x-8 gap-y-2 text-[12.5px]">{detail.recommended_models.length > 0 && (<div>- <span className="text-faint">Models</span> ·{" "}+ <span className="text-faint">{t("persona.models_label")}</span> ·{" "}{detail.recommended_models.map((m, i) => (<span key={m}><span className="font-mono">{m}</span>@@ -249,12 +249,12 @@ export function PersonaView({)}{detail.default_permission_mode && (<div>- <span className="text-faint">Default mode</span> · {detail.default_permission_mode}+ <span className="text-faint">{t("persona.default_mode_label")}</span> · {detail.default_permission_mode}</div>)}{detail.workspace && (<div>- <span className="text-faint">Workspace</span> · {detail.workspace}+ <span className="text-faint">{t("persona.workspace_label")}</span> · {detail.workspace}</div>)}</section>diff --git a/surfaces/gui/src/components/PersonasTab.tsx b/surfaces/gui/src/components/PersonasTab.tsxindex a16df8c9..3f28e450 100644--- a/surfaces/gui/src/components/PersonasTab.tsx+++ b/surfaces/gui/src/components/PersonasTab.tsx@@ -1,4 +1,5 @@import { useEffect, useState } from "react";+import { useTranslation } from "react-i18next";import {deletePersona,getPersonas,@@ -26,6 +27,7 @@ const BTN_BORDERED ="text-[12.5px] px-2.5 py-1.5 rounded-lg border border-line bg-paper hover:border-lineStrong shrink-0 disabled:opacity-40 disabled:hover:border-line";export function PersonasTab({ onOpenPersona }: { onOpenPersona?: (id: string) => void }) {+ const { t } = useTranslation();const [personas, setPersonas] = useState<Persona[]>([]);const [mode, setMode] = useState<"git" | "dir">("git");const [src, setSrc] = useState("");@@ -68,7 +70,7 @@ export function PersonasTab({ onOpenPersona }: { onOpenPersona?: (id: string) =>setConfirmDel(null);const r = await deletePersona(id);if (!r.ok) {- setMsg(r.error || "delete failed");+ setMsg(r.error || t("personas.delete_failed"));return;}if (r.personas) setPersonas(r.personas);@@ -85,20 +87,19 @@ export function PersonasTab({ onOpenPersona }: { onOpenPersona?: (id: string) =>);setBusy(false);if (!r.ok) {- setMsg(r.error || "install failed");+ setMsg(r.error || t("personas.install_failed"));return;}setConsent(r.consent || []);if (r.personas) setPersonas(r.personas);- setMsg(`Installed ${(r.consent || []).length} persona(s) — review and enable below.`);+ setMsg(t("personas.installed", { count: (r.consent || []).length }));setSrc("");};return (<div><p className="text-[12.5px] text-muted mb-3 leading-relaxed">- Enable a coworker, then choose whether it appears in the new-session picker. The starred persona- is the default for new sessions.+ {t("personas.enable_intro")}</p><div className={CARD + " divide-y divide-line mb-6"}>@@ -108,8 +109,8 @@ export function PersonasTab({ onOpenPersona }: { onOpenPersona?: (id: string) =><div className="min-w-0 flex-1"><div className="text-[13.5px] font-medium flex items-center gap-1.5"><span className="truncate">{p.name}</span>- {p.default && <span className="text-accent" title="Default for new sessions">★</span>}- {p.builtin && <span className="text-[11px] text-faint font-normal">· built-in</span>}+ {p.default && <span className="text-accent" title={t("personas.default_for_new")}>★</span>}+ {p.builtin && <span className="text-[11px] text-faint font-normal">· {t("personas.builtin")}</span>}</div><div className="text-[12px] text-muted truncate">{p.tagline}</div></div>@@ -121,7 +122,7 @@ export function PersonasTab({ onOpenPersona }: { onOpenPersona?: (id: string) =>e.target.checked ? toggle(p.id, { enabled: true }) : requestDisable(p)}/>- Enabled+ {t("personas.enabled")}</label><label className={CHECK + (p.enabled ? "" : " opacity-40")}><input@@ -130,20 +131,20 @@ export function PersonasTab({ onOpenPersona }: { onOpenPersona?: (id: string) =>disabled={!p.enabled}onChange={(e) => toggle(p.id, { surfaced: e.target.checked })}/>- In picker+ {t("personas.in_picker")}</label><buttonclassName={BTN_BORDERED}disabled={p.default || !p.enabled}onClick={() => toggle(p.id, { default: true })}>- Set default+ {t("personas.set_default")}</button>{onOpenPersona && (<buttonclassName="text-faint hover:text-ink shrink-0 p-1"- title={`Configure ${p.name}`}- aria-label={`Configure ${p.name}`}+ title={t("personas.configure_title", { name: p.name })}+ aria-label={t("personas.configure_title", { name: p.name })}data-testid={`persona-configure-${p.id}`}onClick={() => onOpenPersona(p.id)}>@@ -158,17 +159,17 @@ export function PersonasTab({ onOpenPersona }: { onOpenPersona?: (id: string) =>data-testid={`persona-delete-confirm-${p.id}`}onClick={() => remove(p.id)}>- Delete+ {t("personas.delete")}</button><button className={BTN_BORDERED} onClick={() => setConfirmDel(null)}>- Keep+ {t("personas.keep")}</button></span>) : (<buttonclassName="text-faint hover:text-danger shrink-0 p-1"- title="Delete this persona"- aria-label={`Delete ${p.name}`}+ title={t("personas.delete_tooltip")}+ aria-label={t("personas.delete_title", { name: p.name })}data-testid={`persona-delete-${p.id}`}onClick={() => setConfirmDel(p.id)}>@@ -182,9 +183,7 @@ export function PersonasTab({ onOpenPersona }: { onOpenPersona?: (id: string) =>data-testid={`persona-disable-warning-${p.id}`}><span className="min-w-0">- Disabling archives its {liveCount(p.id)} conversation- {liveCount(p.id) === 1 ? "" : "s"} — they stay available under “Show- archived”.+ {t("personas.disable_warning", { count: liveCount(p.id) })}</span><buttonclassName="text-[12px] px-2.5 py-1.5 rounded-lg bg-accent text-white shrink-0"@@ -194,10 +193,10 @@ export function PersonasTab({ onOpenPersona }: { onOpenPersona?: (id: string) =>toggle(p.id, { enabled: false });}}>- Disable+ {t("personas.disable")}</button><button className={BTN_BORDERED} onClick={() => setConfirmOff(null)}>- Keep enabled+ {t("personas.keep_enabled")}</button></div>)}@@ -205,26 +204,24 @@ export function PersonasTab({ onOpenPersona }: { onOpenPersona?: (id: string) =>))}</div>- <div className={SEC_H + " mb-1.5"}>Add personas</div>+ <div className={SEC_H + " mb-1.5"}>{t("personas.add_section")}</div><p className="text-[12px] text-muted mb-3 leading-relaxed">- Load from a local directory or a public GitHub repo. Files are copied into a managed area (a- snapshot), so the persona stays stable even if the source changes. No code runs — a persona only- composes vetted tools.+ {t("personas.add_help")}</p><div className="flex items-center gap-2"><select className={SELECT} value={mode} onChange={(e) => setMode(e.target.value as "git" | "dir")}>- <option value="git">GitHub URL</option>- <option value="dir">Local directory</option>+ <option value="git">{t("personas.mode_github")}</option>+ <option value="dir">{t("personas.mode_local")}</option></select><inputclassName={INPUT}- placeholder={mode === "git" ? "https://github.com/acme/ops-persona" : "/path/to/personas"}+ placeholder={mode === "git" ? t("personas.placeholder_github") : t("personas.placeholder_local")}value={src}onChange={(e) => setSrc(e.target.value)}onKeyDown={(e) => e.key === "Enter" && install()}/><button className={BTN_ACCENT} disabled={busy || !src.trim()} onClick={install}>- {busy ? "Installing…" : "Install"}+ {busy ? t("personas.installing") : t("personas.install")}</button></div>{msg && <div className="text-[12.5px] text-muted mt-2.5">{msg}</div>}@@ -235,15 +232,15 @@ export function PersonasTab({ onOpenPersona }: { onOpenPersona?: (id: string) =><div key={c.id} className={CARD + " p-3.5"}><div className="text-[13.5px] font-medium">{c.name}</div><div className="text-[12px] text-muted mt-0.5 mb-2">{c.description}</div>- <div className="text-[12px] text-ink">Tools: {c.tools.join(", ") || "—"}</div>+ <div className="text-[12px] text-ink">{t("personas.tools_label")} {c.tools.join(", ") || "—"}</div><div className="text-[12px] text-ink">- Risk: {c.risk.join(", ") || "read"}- {c.connectors ? " · connectors" : ""}- {c.messaging ? " · messaging" : ""}- {c.mcp.length ? ` · mcp: ${c.mcp.join(", ")}` : ""}+ {t("personas.risk_label")} {c.risk.join(", ") || "read"}+ {c.connectors ? ` · ${t("personas.connectors_tag")}` : ""}+ {c.messaging ? ` · ${t("personas.messaging_tag")}` : ""}+ {c.mcp.length ? ` · ${t("personas.mcp_tag")}: ${c.mcp.join(", ")}` : ""}</div><div className="text-[12px] text-faint mt-1">- Recommended mode: {c.recommended_mode}. Enable it above to use it.+ {t("personas.recommended_mode", { mode: c.recommended_mode })}</div></div>))}diff --git a/surfaces/gui/src/components/PlanCard.tsx b/surfaces/gui/src/components/PlanCard.tsxindex cb32120a..0a4094ac 100644--- a/surfaces/gui/src/components/PlanCard.tsx+++ b/surfaces/gui/src/components/PlanCard.tsx@@ -1,4 +1,5 @@import { useState } from "react";+import { useTranslation } from "react-i18next";import type { Item } from "../types";import { Icon } from "./Icon";import { Markdown } from "./Markdown";@@ -17,12 +18,13 @@ export function PlanCard({}) {const [rejecting, setRejecting] = useState(false);const [feedback, setFeedback] = useState("");+ const { t } = useTranslation();return (<div className="dirreq-card plan-card"><div className="dirreq-head"><Icon name="sparkle" size={16} className="ico" />- <span>The agent proposed a plan</span>+ <span>{t("plan.proposed")}</span></div><div className="plan-body"><Markdown text={item.plan} />@@ -31,7 +33,7 @@ export function PlanCard({<div className="dirreq-actions"><inputclassName="dirreq-path"- placeholder="What should change about the plan?"+ placeholder={t("plan.feedback_placeholder")}value={feedback}autoFocusonChange={(e) => setFeedback(e.target.value)}@@ -40,27 +42,27 @@ export function PlanCard({}}/><button className="btn" onClick={() => setRejecting(false)}>- Back+ {t("plan.back")}</button><buttonclassName="btn primary"disabled={!feedback.trim()}onClick={() => onRespond(false, undefined, feedback.trim())}>- Send feedback+ {t("plan.send_feedback")}</button></div>) : (<div className="dirreq-actions"><button className="btn" onClick={() => setRejecting(true)}>- Request changes+ {t("plan.request_changes")}</button><span className="spacer" /><button className="btn" onClick={() => onRespond(true, "interactive")}>- Approve — ask per step+ {t("plan.approve_ask")}</button><button className="btn primary" onClick={() => onRespond(true, "auto")}>- Approve & run+ {t("plan.approve_and_run")}</button></div>)}diff --git a/surfaces/gui/src/components/RightRail.tsx b/surfaces/gui/src/components/RightRail.tsxindex 055c5dc5..eda482f0 100644--- a/surfaces/gui/src/components/RightRail.tsx+++ b/surfaces/gui/src/components/RightRail.tsx@@ -1,4 +1,5 @@import { useEffect, useRef, useState, type ReactNode } from "react";+import { useTranslation } from "react-i18next";// Emits the asset URL only; the worker itself loads lazily with the pdfjs chunk.import pdfWorkerUrl from "pdfjs-dist/build/pdf.worker.min.mjs?url";import {@@ -76,6 +77,7 @@ export function RightRail({openAccessKey = 0,onOpenIntegrations,}: Props) {+ const { t } = useTranslation();const [open, setOpen] = useState<Record<Panel, boolean>>({progress: true,artifacts: true,@@ -162,13 +164,13 @@ export function RightRail({/>) : (<>- <RailSection title="Progress" open={open.progress} onToggle={() => setOpen({ ...open, progress: !open.progress })}>+ <RailSection title={t("rail.progress_title")} open={open.progress} onToggle={() => setOpen({ ...open, progress: !open.progress })}><ProgressSummary running={running} toolNames={toolNames} todo={todo} /></RailSection>{showArtifacts && (<RailSection- title={`Artifacts${artifacts.length ? ` (${artifacts.length})` : ""}`}+ title={`${t("rail.artifacts_title")}${artifacts.length ? ` (${artifacts.length})` : ""}`}open={open.artifacts}onToggle={() => setOpen({ ...open, artifacts: !open.artifacts })}action={@@ -177,17 +179,17 @@ export function RightRail({<buttonclassName="rail-mini-btn"onClick={(e) => { e.stopPropagation(); revealArtifact(sessionId, artifacts[0].path, "reveal"); }}- title="Show the folder where these files are saved"+ title={t("rail.show_folder")}><Icon name="folder" size={13} /></button>)}- <button className="rail-mini-btn" onClick={(e) => { e.stopPropagation(); refreshArtifacts(); }} title="Refresh artifacts"><Icon name="refresh" size={13} /></button>+ <button className="rail-mini-btn" onClick={(e) => { e.stopPropagation(); refreshArtifacts(); }} title={t("rail.refresh")}><Icon name="refresh" size={13} /></button></>}>{artifacts.length === 0 ? (- <div className="rail-muted">No previewable files yet.</div>+ <div className="rail-muted">{t("rail.artifacts_empty")}</div>) : (<div className="artifact-list">{artifacts.slice(0, 16).map((a) => (@@ -227,6 +229,7 @@ export function RightRail({}function ProgressSummary({ running, toolNames, todo }: { running: boolean; toolNames: string[]; todo: TodoItem[] }) {+ const { t } = useTranslation();if (todo.length) {return (<div className="rail-todo-list">@@ -238,7 +241,7 @@ function ProgressSummary({ running, toolNames, todo }: { running: boolean; toolN))}{running && (<div className="rail-muted">- {toolNames.length ? `${toolNames.length} tool call${toolNames.length === 1 ? "" : "s"} so far.` : "Working..."}+ {toolNames.length ? t("rail.tool_calls", { count: toolNames.length }) : t("rail.working")}</div>)}</div>@@ -247,13 +250,13 @@ function ProgressSummary({ running, toolNames, todo }: { running: boolean; toolNif (running) {return (<div className="rail-muted">- Working on this task{toolNames.length ? ` with ${toolNames.length} tool call${toolNames.length === 1 ? "" : "s"} so far.` : "."}+ {toolNames.length ? t("rail.working_task_with_tools", { count: toolNames.length }) : t("rail.working_task")}</div>);}return (<div className="rail-muted">- For longer multi-step tasks, progress will appear here while OpenWorker plans, uses tools, waits for approval, and produces artifacts.+ {t("rail.empty_state")}</div>);}@@ -298,6 +301,7 @@ function ArtifactViewer({onReload: () => Promise<void>;onBack: () => void;}) {+ const { t } = useTranslation();const [reloadKey, setReloadKey] = useState(0);const isHtml = content?.kind === "html" && !content.error;// Best viewed in a real app: spreadsheets, PDFs, and Office docs (pptx/docx can't preview inline)@@ -306,11 +310,11 @@ function ArtifactViewer({return (<div className="artifact-viewer"><div className="artifact-head">- <button className="artifact-icon-btn" onClick={onBack} aria-label="Back to artifacts" title="Back">+ <button className="artifact-icon-btn" onClick={onBack} aria-label={t("rail.back_to_artifacts")} title={t("rail.back")}><Icon name="arrowLeft" size={16} /></button><div className="artifact-heading">- <div className="artifact-title"><span>Artifacts</span><span className="artifact-sep">/</span><span>{artifact.name}</span></div>+ <div className="artifact-title"><span>{t("rail.artifacts_title")}</span><span className="artifact-sep">/</span><span>{artifact.name}</span></div><div className="artifact-path">{artifact.path}</div></div><div className="rail-actions">@@ -321,8 +325,8 @@ function ArtifactViewer({await onReload();setReloadKey((k) => k + 1);}}- aria-label="Reload preview"- title="Reload"+ aria-label={t("rail.reload_preview")}+ title={t("rail.reload")}><Icon name="refresh" size={16} /></button>@@ -331,8 +335,8 @@ function ArtifactViewer({<buttonclassName="artifact-icon-btn"onClick={() => revealArtifact(sessionId, artifact.path, "open")}- aria-label="Open in default app"- title="Open in default app"+ aria-label={t("rail.open_in_default")}+ title={t("rail.open_in_default")}><Icon name="panelOpen" size={16} /></button>@@ -342,16 +346,16 @@ function ArtifactViewer({<buttonclassName="artifact-icon-btn"onClick={() => navigator.clipboard?.writeText(artifact.abs_path || artifact.path)}- aria-label="Copy path"- title="Copy full path"+ aria-label={t("rail.copy_path")}+ title={t("rail.copy_full_path")}><Icon name="copy" size={16} /></button><buttonclassName="artifact-icon-btn"onClick={() => revealArtifact(sessionId, artifact.path, "reveal")}- aria-label="Show in folder"- title="Show in folder"+ aria-label={t("rail.show_in_folder")}+ title={t("rail.show_in_folder")}><Icon name="folder" size={16} /></button>@@ -359,7 +363,7 @@ function ArtifactViewer({</div><div className="artifact-preview">{!content ? (- <div className="rail-muted">Loading...</div>+ <div className="rail-muted">{t("rail.loading")}</div>) : content.error ? (<div className="rail-error">{content.error}</div>) : content.kind === "html" ? (@@ -384,9 +388,9 @@ function ArtifactViewer({) : content.kind === "office" ? (<div className="artifact-open-prompt"><Icon name="panelOpen" size={28} />- <p>This {/\.pptx?$/i.test(artifact.name) ? "PowerPoint" : "Word"} file can’t be previewed here.</p>+ <p>{t("rail.office_no_preview", { type: /\.pptx?$/i.test(artifact.name) ? "PowerPoint" : "Word" })}</p><button className="btn sm" onClick={() => revealArtifact(sessionId, artifact.path, "open")}>- Open in default app+ {t("rail.open_in_default")}</button></div>) : (@@ -461,8 +465,9 @@ function parseCsv(text: string): string[][] {}function CsvTable({ text }: { text: string }) {+ const { t } = useTranslation();const rows = parseCsv(text);- if (!rows.length) return <div className="rail-muted artifact-table-note">Empty file.</div>;+ if (!rows.length) return <div className="rail-muted artifact-table-note">{t("rail.empty_file")}</div>;return <GridTable rows={rows} />;}@@ -471,6 +476,7 @@ function CsvTable({ text }: { text: string }) {// WKWebView has no inline PDF plugin (<embed> shows a gray pane in the Tauri shell), so we// rasterize pages with pdf.js onto stacked canvases — same lazy-chunk pattern as SheetViewer.function PdfViewer({ dataUrl }: { dataUrl: string }) {+ const { t } = useTranslation();const [error, setError] = useState("");const [loading, setLoading] = useState(true);const holder = useRef<HTMLDivElement | null>(null);@@ -510,16 +516,17 @@ function PdfViewer({ dataUrl }: { dataUrl: string }) {};}, [dataUrl]);- if (error) return <div className="rail-error artifact-table-note">Could not render PDF: {error}</div>;+ if (error) return <div className="rail-error artifact-table-note">{t("rail.pdf_error", { error })}</div>;return (<div className="artifact-pdfjs">- {loading && <div className="rail-muted artifact-table-note">Rendering PDF…</div>}+ {loading && <div className="rail-muted artifact-table-note">{t("rail.pdf_rendering")}</div>}<div ref={holder} /></div>);}function SheetViewer({ dataUrl }: { dataUrl: string }) {+ const { t } = useTranslation();const [sheets, setSheets] = useState<{ name: string; rows: unknown[][] }[] | null>(null);const [error, setError] = useState("");const [active, setActive] = useState(0);@@ -547,8 +554,8 @@ function SheetViewer({ dataUrl }: { dataUrl: string }) {};}, [dataUrl]);- if (error) return <div className="rail-error artifact-table-note">Could not parse spreadsheet: {error}</div>;- if (!sheets) return <div className="rail-muted artifact-table-note">Parsing spreadsheet…</div>;+ if (error) return <div className="rail-error artifact-table-note">{t("rail.sheet_error", { error })}</div>;+ if (!sheets) return <div className="rail-muted artifact-table-note">{t("rail.sheet_parsing")}</div>;const sheet = sheets[active];return (<div className="sheet-viewer">@@ -561,7 +568,7 @@ function SheetViewer({ dataUrl }: { dataUrl: string }) {))}</div>)}- {sheet.rows.length ? <GridTable rows={sheet.rows} /> : <div className="rail-muted artifact-table-note">Empty sheet.</div>}+ {sheet.rows.length ? <GridTable rows={sheet.rows} /> : <div className="rail-muted artifact-table-note">{t("rail.sheet_empty")}</div>}</div>);}diff --git a/surfaces/gui/src/components/RootRow.tsx b/surfaces/gui/src/components/RootRow.tsxindex 69d5d083..c532bcb9 100644--- a/surfaces/gui/src/components/RootRow.tsx+++ b/surfaces/gui/src/components/RootRow.tsx@@ -1,3 +1,4 @@+import { useTranslation } from "react-i18next";import type { RootInfo } from "../api";import { Icon } from "./Icon";import { baseName } from "../paths";@@ -21,9 +22,10 @@ export function RootRow({onToggle: (r: RootInfo) => void;onRemove: (path: string) => void;}) {+ const { t } = useTranslation();const label = root.primary? scratchPrimary- ? "Temporary space"+ ? t("root.temporary_space"): baseName(root.path): root.label;return (@@ -32,7 +34,7 @@ export function RootRow({<span className="root-text" title={root.path}><span className="root-label">{label}- {root.primary && !scratchPrimary && <span className="root-tag"> main</span>}+ {root.primary && !scratchPrimary && <span className="root-tag"> {t("root.main")}</span>}{branch && (<span className="root-tag root-branch">{" "}@@ -42,17 +44,17 @@ export function RootRow({</span><span className="root-path">{root.path}</span></span>- {!root.exists && <span className="root-tag warn">missing</span>}+ {!root.exists && <span className="root-tag warn">{t("root.missing")}</span>}<buttonclassName={"root-access" + (root.writable ? " rw" : " ro")}onClick={() => onToggle(root)}disabled={busy || root.primary}- title={root.primary ? "The main workspace is always read-write" : "Toggle read-only / read-write"}+ title={root.primary ? t("root.primary_always_rw") : t("root.toggle_rw")}>- {root.writable ? "Read-write" : "Read-only"}+ {root.writable ? t("root.read_write") : t("root.read_only")}</button>{!root.primary && (- <button className="root-x" onClick={() => onRemove(root.path)} disabled={busy} title="Remove">+ <button className="root-x" onClick={() => onRemove(root.path)} disabled={busy} title={t("common.remove")}>×</button>)}diff --git a/surfaces/gui/src/components/ScheduledView.tsx b/surfaces/gui/src/components/ScheduledView.tsxindex 6c557349..a96abc65 100644--- a/surfaces/gui/src/components/ScheduledView.tsx+++ b/surfaces/gui/src/components/ScheduledView.tsx@@ -1,4 +1,5 @@import { useEffect, useState } from "react";+import { useTranslation } from "react-i18next";import {createAutomation,deleteAutomation,@@ -64,6 +65,7 @@ interface Props {}export function ScheduledView({ onOpenRun, onRunNow, initialOpenId }: Props) {+ const { t } = useTranslation();const [tasks, setTasks] = useState<Automation[]>([]);const [openId, setOpenId] = useState<string | null>(initialOpenId ?? null);const [showForm, setShowForm] = useState(false);@@ -123,22 +125,19 @@ export function ScheduledView({ onOpenRun, onRunNow, initialOpenId }: Props) {<Shell><div className="flex items-start gap-3"><div className="flex-1 min-w-0">- <PanelHead title="Automations" sub="Recurring tasks OpenWorker runs on a schedule." />+ <PanelHead title={t("automations.title")} sub={t("automations.sub")} /></div><buttonclassName="text-[12.5px] px-3 py-1.5 rounded-lg border border-lineStrong bg-panel hover:border-accent hover:text-accent shrink-0"onClick={() => setShowForm((v) => !v)}>- + New automation+ {t("automations.new_btn")}</button></div><div className="text-[12px] text-faint flex gap-1.5 mb-4"><span aria-hidden>ⓘ</span>- <span>- Runs only while openworker-server is up — a missed schedule catches up once when it next- starts.- </span>+ <span>{t("automations.server_hint")}</span></div>{showForm && (@@ -156,27 +155,26 @@ export function ScheduledView({ onOpenRun, onRunNow, initialOpenId }: Props) {{empty ? (!showForm && (<div className={CARD + " p-4 text-[12.5px] text-muted"}>- No scheduled tasks yet — use a template above, click <strong>+ New automation</strong>,- or just ask OpenWorker in a session.+ {t("automations.empty_state")}</div>)) : (<div className="flex flex-col gap-2.5">- {tasks.map((t) => (+ {tasks.map((task) => (<divclassName={CARD + " sched-card px-4 py-3 cursor-pointer hover:border-lineStrong transition-colors"}- key={t.id}- onClick={() => setOpenId(t.id)}+ key={task.id}+ onClick={() => setOpenId(task.id)}><div className="flex items-center justify-between gap-2.5 mb-1">- <span className="text-[13.5px] font-semibold truncate">{t.title}</span>+ <span className="text-[13.5px] font-semibold truncate">{task.title}</span><buttonclassName="sched-card-del"- title="Delete automation"- aria-label={`Delete ${t.title}`}+ title={t("automations.delete_title")}+ aria-label={t("automations.delete_aria", { title: task.title })}onClick={async (e) => {e.stopPropagation();- await deleteAutomation(t.id);+ await deleteAutomation(task.id);refresh();}}>@@ -185,8 +183,8 @@ export function ScheduledView({ onOpenRun, onRunNow, initialOpenId }: Props) {</div><div className="flex items-center gap-1.5 text-[12px] text-muted"><Icon name="clock" size={13} className="text-faint shrink-0" />- {t.enabled ? t.schedule : "Paused"} · next {fmt(t.next_run)} · {t.run_count} run{t.run_count === 1 ? "" : "s"}- {t.last_status ? ` · last ${t.last_status}` : ""}+ {task.enabled ? task.schedule : t("automations.paused")} · {t("automations.next", { time: fmt(task.next_run) })} · {t("automations.run_count", { count: task.run_count })}+ {task.last_status ? ` · ${t("automations.last", { status: task.last_status })}` : ""}</div></div>))}@@ -205,6 +203,7 @@ function NewAutomationForm({onCancel: () => void;onCreate: (p: { title: string; instructions: string; cron?: string }) => void;}) {+ const { t } = useTranslation();const [title, setTitle] = useState("");const [instructions, setInstructions] = useState("");const [time, setTime] = useState("09:00");@@ -215,23 +214,23 @@ function NewAutomationForm({return (<div className={CARD + " tmpl-form p-4 mb-4"}><div className="text-[11px] uppercase tracking-[0.05em] text-faint mb-2.5">- New automation+ {t("automations.new_automation")}</div><inputclassName="tmpl-input"- placeholder="Title (e.g. Daily standup notes)"+ placeholder={t("automations.title_placeholder")}value={title}onChange={(e) => setTitle(e.target.value)}/><textareaclassName="tmpl-input tmpl-textarea"- placeholder="What should it do each run? (e.g. Summarize today's calendar and open tasks.)"+ placeholder={t("automations.instructions_placeholder")}value={instructions}onChange={(e) => setInstructions(e.target.value)}/><div className="tmpl-sched"><label className="tmpl-field">- <span>At</span>+ <span>{t("automations.at")}</span><inputtype="time"className="tmpl-input tmpl-time"@@ -240,15 +239,15 @@ function NewAutomationForm({/></label><label className="tmpl-field">- <span>Repeat</span>+ <span>{t("automations.repeat")}</span><selectclassName="tmpl-input tmpl-select"value={freq}onChange={(e) => setFreq(e.target.value)}>- <option value="daily">Every day</option>- <option value="weekdays">Weekdays</option>- <option value="weekends">Weekends</option>+ <option value="daily">{t("automations.freq_daily")}</option>+ <option value="weekdays">{t("automations.freq_weekdays")}</option>+ <option value="weekends">{t("automations.freq_weekends")}</option></select></label></div>@@ -264,9 +263,9 @@ function NewAutomationForm({})}>- {busy ? "Creating…" : "Create automation"}+ {busy ? t("automations.creating") : t("automations.create_btn")}</button>- <button className="link" onClick={onCancel}>cancel</button>+ <button className="link" onClick={onCancel}>{t("automations.cancel")}</button></div></div>);@@ -288,6 +287,7 @@ function TaskDetail({) => void;onRunNow: (taskId: string, title?: string) => void;}) {+ const { t: tt } = useTranslation();const [task, setTask] = useState<Automation | null>(null);const [runs, setRuns] = useState<AutomationRun[]>([]);const [editing, setEditing] = useState(false);@@ -328,7 +328,7 @@ function TaskDetail({if (!task)return (<Shell>- <div className="text-[13px] text-muted">Loading…</div>+ <div className="text-[13px] text-muted">{tt("automations.loading")}</div></Shell>);@@ -367,7 +367,7 @@ function TaskDetail({return (<Shell><button className="text-[13px] text-muted hover:text-ink mb-3" onClick={onBack}>- ← Automations+ {tt("automations.back_to_automations")}</button><div className="sched-detail"><div className="sched-detail-head">@@ -376,7 +376,7 @@ function TaskDetail({className="tmpl-input sched-edit-title"value={title}onChange={(e) => setTitle(e.target.value)}- placeholder="Title"+ placeholder={tt("automations.title_label")}/>) : (<h2 className="text-[18px] font-semibold tracking-tight">{task.title}</h2>@@ -385,18 +385,18 @@ function TaskDetail({{editing ? (<><button className="btn-primary sm" disabled={saving || !title.trim() || !instructions.trim()} onClick={saveEdit}>- {saving ? "Saving…" : "Save"}+ {saving ? tt("automations.saving") : tt("automations.save")}</button>- <button className="link" onClick={() => setEditing(false)}>cancel</button>+ <button className="link" onClick={() => setEditing(false)}>{tt("automations.cancel")}</button></>) : (<><button className="btn-primary sm" onClick={() => onRunNow(id, task.title)}>- ▶ Run now+ {tt("automations.run_now")}</button>- <button className="btn sm" onClick={startEdit}>Edit</button>+ <button className="btn sm" onClick={startEdit}>{tt("automations.edit")}</button><button className="btn sm danger-btn" onClick={remove}>- <Icon name="trash" size={14} /> Delete+ <Icon name="trash" size={14} /> {tt("automations.delete")}</button></>)}@@ -406,15 +406,15 @@ function TaskDetail({{editing ? (<div className="tmpl-sched sched-edit-sched"><label className="tmpl-field">- <span>At</span>+ <span>{tt("automations.at")}</span><input type="time" className="tmpl-input tmpl-time" value={time} onChange={(e) => setTime(e.target.value)} /></label><label className="tmpl-field">- <span>Repeat</span>+ <span>{tt("automations.repeat")}</span><select className="tmpl-input tmpl-select" value={freq} onChange={(e) => setFreq(e.target.value)}>- <option value="daily">Every day</option>- <option value="weekdays">Weekdays</option>- <option value="weekends">Weekends</option>+ <option value="daily">{tt("automations.freq_daily")}</option>+ <option value="weekdays">{tt("automations.freq_weekdays")}</option>+ <option value="weekends">{tt("automations.freq_weekends")}</option></select></label></div>@@ -424,11 +424,11 @@ function TaskDetail({<input type="checkbox" checked={task.enabled} onChange={toggle} /><span className="slider" /></label>{" "}- {task.enabled ? `Active · next ${fmt(task.next_run)}` : "Paused"} · {task.schedule}+ {task.enabled ? tt("automations.active_next", { time: fmt(task.next_run) }) : tt("automations.paused")} · {task.schedule}</div>)}- <div className="sa-sub">Instructions</div>+ <div className="sa-sub">{tt("automations.instructions_label")}</div>{editing ? (<textareaclassName="tmpl-input tmpl-textarea sched-edit-instr"@@ -441,9 +441,9 @@ function TaskDetail({{(task.always_allowed || []).length > 0 && (<>- <div className="sa-sub">Allowed without asking</div>+ <div className="sa-sub">{tt("automations.allowed_without_asking")}</div><div className="dim" style={{ marginBottom: 8, fontSize: 12.5 }}>- Standing approvals this automation may use — everything else still asks first.+ {tt("automations.allowed_desc")}</div><div className="sched-grants" data-testid="task-grants">{(task.always_allowed || []).map((rule) => (@@ -454,13 +454,13 @@ function TaskDetail({</span><buttonclassName="link"- title="This automation will ask for approval again"+ title={tt("automations.revoke_title")}onClick={async () => {await updateAutomation(id, { revoke: rule.entry });refresh();}}>- Revoke+ {tt("automations.revoke")}</button></div>))}@@ -468,11 +468,11 @@ function TaskDetail({</>)}- <div className="sa-sub">Runs</div>+ <div className="sa-sub">{tt("automations.runs_label")}</div><div className="dim" style={{ marginBottom: 8, fontSize: 12.5 }}>- Each run is a live conversation — open one to see what the agent did and ask a follow-up.+ {tt("automations.runs_desc")}</div>- {runs.length === 0 && <div className="dim">No runs yet.</div>}+ {runs.length === 0 && <div className="dim">{tt("automations.no_runs")}</div>}{runs.map((r) => (<divclassName="sched-run open"@@ -484,18 +484,18 @@ function TaskDetail({title: task.title,})}- title="Open this run's conversation"+ title={tt("automations.open_run")}><div className="sched-run-row"><span>{seenMark !== null && r.started_at > seenMark && (- <span className="run-new-pill" data-testid="run-new">new</span>+ <span className="run-new-pill" data-testid="run-new">{tt("automations.new_pill")}</span>)}{fmt(r.started_at)} · <span className={"run-" + r.status}>{r.status}</span> · {r.trigger}- {r.artifacts.length > 0 && <span className="dim"> · {r.artifacts.length} file(s)</span>}+ {r.artifacts.length > 0 && <span className="dim"> · {tt("automations.file_count", { count: r.artifacts.length })}</span>}</span><span className="sched-run-go" aria-hidden>- Open ›+ {tt("automations.open_go")}</span></div>{r.result_text && <div className="sched-run-peek">{r.result_text}</div>}diff --git a/surfaces/gui/src/components/SearchModal.tsx b/surfaces/gui/src/components/SearchModal.tsxindex ebb59d95..60da56d8 100644--- a/surfaces/gui/src/components/SearchModal.tsx+++ b/surfaces/gui/src/components/SearchModal.tsx@@ -1,4 +1,5 @@import { useEffect, useRef, useState } from "react";+import { useTranslation } from "react-i18next";import type { Persona } from "../api";import type { SessionInfo } from "../types";import { isProjectScoped, shortPersonaName } from "../personaScope";@@ -23,6 +24,7 @@ export function SearchModal({onSelect: (id: string, workspace: string, agent: string) => void;onClose: () => void;}) {+ const { t } = useTranslation();const [query, setQuery] = useState("");const [active, setActive] = useState(0);const inputRef = useRef<HTMLInputElement>(null);@@ -119,7 +121,7 @@ export function SearchModal({ref={inputRef}value={query}onChange={(e) => setQuery(e.target.value)}- placeholder="Search chats"+ placeholder={t("search.placeholder")}className="flex-1 bg-transparent outline-none text-[15px] text-ink placeholder:text-faint"/><kbd className="text-[10.5px] text-faint bg-paper border border-line rounded px-1.5 py-0.5 font-sans">@@ -128,13 +130,13 @@ export function SearchModal({</div><div className="max-h-[52vh] overflow-y-auto hairline-scroll py-2">{ordered.length === 0 ? (- <div className="px-4 py-8 text-center text-[13px] text-faint">No chats found.</div>+ <div className="px-4 py-8 text-center text-[13px] text-faint">{t("search.no_results")}</div>) : (<>{pinned.length > 0 && (<div className="px-2"><div className="px-2 py-1 text-[11px] uppercase tracking-[0.05em] text-faint font-semibold">- Pinned chats+ {t("search.pinned")}</div>{pinned.map((s, i) => row(s, i))}</div>@@ -142,7 +144,7 @@ export function SearchModal({{recent.length > 0 && (<div className="px-2 mt-1"><div className="px-2 py-1 text-[11px] uppercase tracking-[0.05em] text-faint font-semibold">- Recent chats+ {t("search.recent")}</div>{recent.map((s, i) => row(s, pinned.length + i))}</div>diff --git a/surfaces/gui/src/components/SelectMenu.tsx b/surfaces/gui/src/components/SelectMenu.tsxindex e6abf5b2..dc4808b5 100644--- a/surfaces/gui/src/components/SelectMenu.tsx+++ b/surfaces/gui/src/components/SelectMenu.tsx@@ -1,4 +1,5 @@import { useEffect, useState } from "react";+import { useTranslation } from "react-i18next";import { Icon } from "./Icon";// A form-styled custom select (the native <select> can't carry status dots or sub-lines and@@ -23,6 +24,7 @@ export function SelectMenu({onChange: (value: string) => void;ariaLabel: string;}) {+ const { t } = useTranslation();const [open, setOpen] = useState(false);useEffect(() => {if (!open) return;@@ -99,7 +101,7 @@ export function SelectMenu({className={"w-1.5 h-1.5 rounded-full shrink-0 " + (o.dot ? "bg-ok" : "bg-transparent")}- title={o.dot ? "Key set" : undefined}+ title={o.dot ? t("models.key_set") : undefined}/></button></div>diff --git a/surfaces/gui/src/components/SessionIntro.tsx b/surfaces/gui/src/components/SessionIntro.tsxindex 144b9d6f..cd7aa5aa 100644--- a/surfaces/gui/src/components/SessionIntro.tsx+++ b/surfaces/gui/src/components/SessionIntro.tsx@@ -1,4 +1,5 @@import { useEffect, useState } from "react";+import { useTranslation } from "react-i18next";import { getConnectors, getSessionConnections } from "../api";import type { Attachment } from "../types";import { ConnectorIcon } from "../connectors/ConnectorIcon";@@ -14,11 +15,10 @@ import { AddFolderForm } from "./AddFolderForm";// composer. Not ready → "Configure ›" always visible (for a gated row the setup action IS the// row's meaning), opening the §23 Session settings drawer — no second setup surface here.-const FOLDER_PROMPT = "Analyze the files in this folder and summarize what matters.";-const HUBSPOT_PROMPT =- "Create a report on my recent HubSpot leads: sources, stages, and who needs follow-up.";-const GH_SLACK_PROMPT =- "Set up a weekly progress report: summarize activity in my GitHub repos and post it to Slack every Friday morning.";+// These prompts prefill the user's composer — visible to the user, so localized.+const FOLDER_PROMPT_KEY = "intro.folder_prompt";+const HUBSPOT_PROMPT_KEY = "intro.hubspot_prompt";+const GH_SLACK_PROMPT_KEY = "intro.ghslack_prompt";export function SessionIntro({sessionId,@@ -30,6 +30,7 @@ export function SessionIntro({onOpenSessionSettings: () => void;onPrefill: (text: string, attachments?: Attachment[]) => void;}) {+ const { t } = useTranslation();const { roots, busy, error, addRoot } = useRoots(sessionId);const [live, setLive] = useState<Set<string>>(new Set());const [byName, setByName] = useState<ConnectorMap>({});@@ -58,27 +59,24 @@ export function SessionIntro({const pickFolder = () => {// A shared folder already exists → straight to the prompt; otherwise share one first.- if (shared.length > 0) onPrefill(FOLDER_PROMPT);+ if (shared.length > 0) onPrefill(t(FOLDER_PROMPT_KEY));else setAddingFolder((v) => !v);};return (<div className="intro"><h1 className="greeting">- <span className="mark">✦</span> What should we produce?+ <span className="mark">✦</span> {t("intro.greeting")}</h1>- <p className="intro-lede">- Pick a task to start — I'll do the work and save the result. Or just type what you need- below.- </p>+ <p className="intro-lede">{t("intro.lede")}</p><div className="intro-tasks"><button className="task-card" data-testid="intro-task-folder" onClick={pickFolder}><span className="task-card-body">- <span className="task-card-title">Analyze the files in a directory</span>- <span className="task-card-sub">I'll read them and summarize what matters</span>+ <span className="task-card-title">{t("intro.task_folder_title")}</span>+ <span className="task-card-sub">{t("intro.task_folder_sub")}</span></span>- <span className="task-card-act">Pick a folder →</span>+ <span className="task-card-act">{t("intro.task_folder_cta")}</span></button>{addingFolder && (<div className="intro-addfolder">@@ -87,7 +85,7 @@ export function SessionIntro({busy={busy}onAdd={async (path, writable) => {const ok = await addRoot(path, writable);- if (ok !== false) onPrefill(FOLDER_PROMPT);+ if (ok !== false) onPrefill(t(FOLDER_PROMPT_KEY));return ok;}}onDismiss={() => setAddingFolder(false)}@@ -99,32 +97,36 @@ export function SessionIntro({<buttonclassName={"task-card" + (hubspotReady ? "" : " gated")}data-testid="intro-task-hubspot"- onClick={() => (hubspotReady ? onPrefill(HUBSPOT_PROMPT) : onOpenSessionSettings())}+ onClick={() => (hubspotReady ? onPrefill(t(HUBSPOT_PROMPT_KEY)) : onOpenSessionSettings())}><span className="task-card-body">- <span className="task-card-title">Create a report from my HubSpot leads</span>+ <span className="task-card-title">{t("intro.task_hubspot_title")}</span><span className="task-card-sub">{dot("hubspot", hubspotReady)}- Sources, stages, and who needs follow-up+ {t("intro.task_hubspot_sub")}</span></span>- <span className="task-card-act">{hubspotReady ? "Start →" : "Configure ›"}</span>+ <span className="task-card-act">+ {hubspotReady ? t("intro.cta_start") : t("intro.cta_configure")}+ </span></button><buttonclassName={"task-card" + (ghSlackReady ? "" : " gated")}data-testid="intro-task-github-slack"- onClick={() => (ghSlackReady ? onPrefill(GH_SLACK_PROMPT) : onOpenSessionSettings())}+ onClick={() => (ghSlackReady ? onPrefill(t(GH_SLACK_PROMPT_KEY)) : onOpenSessionSettings())}><span className="task-card-body">- <span className="task-card-title">Automate a weekly GitHub progress report to Slack</span>+ <span className="task-card-title">{t("intro.task_ghslack_title")}</span><span className="task-card-sub">{dot("github", live.has("github"))}{dot("slack", live.has("slack"))}- Repo activity, summarized and posted every Friday+ {t("intro.task_ghslack_sub")}</span></span>- <span className="task-card-act">{ghSlackReady ? "Start →" : "Configure ›"}</span>+ <span className="task-card-act">+ {ghSlackReady ? t("intro.cta_start") : t("intro.cta_configure")}+ </span></button></div></div>diff --git a/surfaces/gui/src/components/SettingsView.tsx b/surfaces/gui/src/components/SettingsView.tsxindex 5b88cc84..eb68f894 100644--- a/surfaces/gui/src/components/SettingsView.tsx+++ b/surfaces/gui/src/components/SettingsView.tsx@@ -1,4 +1,6 @@import { useEffect, useState } from "react";+import { getI18n, useTranslation } from "react-i18next";+import { getStoredLanguage, setLanguage as setI18nLanguage, type Lang } from "../i18n";import {getSettings,getTrustedWorkspaces,@@ -58,11 +60,11 @@ const BTN_ACCENT = "text-[12.5px] px-3 py-2 rounded-lg bg-accent text-white shriconst BTN_BORDERED ="text-[12.5px] px-3 py-2 rounded-lg border border-line bg-paper hover:border-lineStrong shrink-0";-const SET_TABS: { key: SetTab; label: string; icon: "sliders" | "code" | "mic" | "sparkle" }[] = [- { key: "appearance", label: "General", icon: "sliders" },- { key: "models", label: "Models", icon: "code" },- { key: "voice", label: "Voice input", icon: "mic" },- { key: "personas", label: "Personas", icon: "sparkle" },+const SET_TABS: { key: SetTab; labelKey: string; icon: "sliders" | "code" | "mic" | "sparkle" }[] = [+ { key: "appearance", labelKey: "settings.tab.general", icon: "sliders" },+ { key: "models", labelKey: "settings.tab.models", icon: "code" },+ { key: "voice", labelKey: "settings.tab.voice", icon: "mic" },+ { key: "personas", labelKey: "settings.tab.personas", icon: "sparkle" },];export function SettingsView({@@ -72,11 +74,12 @@ export function SettingsView({initialTab?: SetTab;onOpenPersona?: (id: string) => void;}) {+ const { t } = useTranslation();// Personas is flag-gated (hidden for launch) — filter the tab AND coerce a stale// deep-link to it (openSettings("personas") callers) so the page never opens on a// section with no nav entry.const personas = showPersonas();- const tabs = personas ? SET_TABS : SET_TABS.filter((t) => t.key !== "personas");+ const tabs = personas ? SET_TABS : SET_TABS.filter((tab) => tab.key !== "personas");const wanted = initialTab && (personas || initialTab !== "personas") ? initialTab : "appearance";const [tab, setTab] = useState<SetTab>(wanted);@@ -84,20 +87,20 @@ export function SettingsView({<main className="flex-1 min-w-0 flex bg-paper"><nav className="page-subnav w-[208px] shrink-0 border-r border-line bg-panel/40 px-3 py-4"><div className="px-2 text-[13.5px] font-semibold mb-3 flex items-center gap-2">- <Icon name="gear" size={16} /> Settings+ <Icon name="gear" size={16} /> {t("nav.settings")}</div>- {tabs.map((t) => {- const active = tab === t.key;+ {tabs.map((tb) => {+ const active = tab === tb.key;return (<button- key={t.key}+ key={tb.key}className={"w-full text-left px-2.5 py-2 rounded-lg text-[13px] flex items-center gap-2 " +(active ? "bg-paper text-accent font-medium" : "text-muted hover:bg-paper hover:text-ink")}- onClick={() => setTab(t.key)}+ onClick={() => setTab(tb.key)}>- <Icon name={t.icon} size={15} /> {t.label}+ <Icon name={tb.icon} size={15} /> {t(tb.labelKey)}</button>);})}@@ -110,8 +113,8 @@ export function SettingsView({) : tab === "models" ? (<section><PanelHead- title="Models"- sub="Providers and the models offered in the composer's picker. Keys are stored only on this computer."+ title={t("settings.tab.models")}+ sub={t("settings.models_sub")}/><ModelsTab />{/* Token savings is model-spend behavior, so it lives here (UX-021),@@ -133,7 +136,11 @@ export function SettingsView({// -- Voice input: deliberate model provisioning + compatibility + microphone test (§37) --------const voiceError = (error: unknown) =>- error instanceof Error ? error.message : typeof error === "string" ? error : "Voice Input could not complete that action.";+ error instanceof Error+ ? error.message+ : typeof error === "string"+ ? error+ : getI18n().getFixedT(null, "translation")("settings.voice_action_failed");const formatBytes = (bytes: number) => {if (!bytes) return "0 MiB";@@ -141,6 +148,7 @@ const formatBytes = (bytes: number) => {};function VoiceInputSection() {+ const { t } = useTranslation();const [status, setStatus] = useState<DictationStatus | null>(null);const [progress, setProgress] = useState<DictationDownloadProgress | null>(null);const [phase, setPhase] = useState<"idle" | "downloading" | "verifying" | "testing" | "transcribing">("idle");@@ -215,7 +223,7 @@ function VoiceInputSection() {};const remove = async () => {- if (!window.confirm("Delete the local Whisper model and disable Voice Input?")) return;+ if (!window.confirm(t("settings.voice_delete_confirm"))) return;setError(null);try {publish(await deleteDictationModel());@@ -234,7 +242,7 @@ function VoiceInputSection() {setPhase("transcribing");const transcript = (await stopDictation()).trim();setTestTranscript(transcript);- if (!transcript) throw new Error("No speech was detected. Try again and speak for a little longer.");+ if (!transcript) throw new Error(t("settings.voice_no_speech"));publish(await markDictationTestPassed());} else {setTestTranscript("");@@ -258,37 +266,38 @@ function VoiceInputSection() {return (<section><PanelHead- title="Voice input"- sub="Speak naturally in the composer. Recordings and transcripts stay on this device."+ title={t("settings.tab.voice")}+ sub={t("settings.voice_intro")}/>{!desktop ? (- <div className={CARD + " p-4 text-[13px] text-muted"}>Voice Input setup is available in the OpenWorker desktop app.</div>+ <div className={CARD + " p-4 text-[13px] text-muted"}>{t("settings.voice_desktop_only")}</div>) : (<div className="space-y-4"><div className="rounded-xl border border-green-200 bg-green-50/70 px-4 py-3 text-[12.5px] text-green-800">- <span className="font-medium">Private by design.</span> Audio is held in memory only while you record and is transcribed locally.+ <span className="font-medium">{t("settings.voice_private_title")}</span>{" "}+ {t("settings.voice_private_body")}</div><div className={CARD}><div className="p-4 flex items-start gap-3"><Icon name="code" size={18} className="text-accent mt-0.5" /><div className="min-w-0 flex-1">- <div className="text-[13.5px] font-medium">This device</div>- <div className="text-[12px] text-muted mt-1">{status?.device_summary || "Checking compatibility…"}</div>+ <div className="text-[13.5px] font-medium">{t("settings.voice_device_title")}</div>+ <div className="text-[12px] text-muted mt-1">{status?.device_summary || t("settings.voice_checking")}</div>{status?.compatibility_reason && <div className="text-[12px] text-red-600 mt-1.5">{status.compatibility_reason}</div>}</div>{status && (<span className={"text-[11.5px] px-2 py-1 rounded-full " + (status.supported ? "bg-green-50 text-green-700" : "bg-red-50 text-red-600")}>- {status.supported ? "● Compatible" : "Unsupported"}+ {status.supported ? `● ${t("settings.voice_compatible")}` : t("settings.voice_unsupported")}</span>)}</div><div className="border-t border-line bg-paper/50 px-4 py-3 grid grid-cols-2 gap-3 text-[12px] text-muted">- <div><span className="block text-ink font-medium">Mac</span>macOS 12+ · Apple Silicon M1+</div>- <div><span className="block text-ink font-medium">Windows</span>Windows 10 22H2/11 · x64</div>- <div><span className="block text-ink font-medium">Memory</span>8 GB recommended</div>- <div><span className="block text-ink font-medium">Processor</span>4 CPU cores recommended</div>+ <div><span className="block text-ink font-medium">{t("settings.voice_mac")}</span>{t("settings.voice_mac_detail")}</div>+ <div><span className="block text-ink font-medium">{t("settings.voice_windows")}</span>{t("settings.voice_windows_detail")}</div>+ <div><span className="block text-ink font-medium">{t("settings.voice_memory")}</span>{t("settings.voice_memory_detail")}</div>+ <div><span className="block text-ink font-medium">{t("settings.voice_processor")}</span>{t("settings.voice_processor_detail")}</div></div></div>@@ -296,29 +305,34 @@ function VoiceInputSection() {<div className="p-4 flex items-center gap-3"><div className="w-9 h-9 rounded-lg bg-accentSoft text-accent grid place-items-center font-semibold">W</div><div className="min-w-0 flex-1">- <div className="text-[13.5px] font-medium">Whisper Base · English</div>+ <div className="text-[13.5px] font-medium">{t("settings.voice_whisper_title")}</div><div className="text-[12px] text-muted mt-0.5">- {status?.model_verified ? `Installed and verified · ${formatBytes(status.model_bytes)}` : `Local voice model · ${formatBytes(status?.model_bytes || 147_964_211)}`}+ {status?.model_verified+ ? t("settings.voice_installed", { size: formatBytes(status.model_bytes) })+ : t("settings.voice_not_installed", { size: formatBytes(status?.model_bytes || 147_964_211) })}</div></div>{status?.model_verified ? (<>- <span className="text-[11.5px] px-2 py-1 rounded-full bg-green-50 text-green-700">Verified</span>- <button className={BTN_BORDERED} onClick={() => void repair()}>Repair</button>- <button className="text-[12px] text-red-600 px-2 py-2" onClick={() => void remove()}>Delete</button>+ <span className="text-[11.5px] px-2 py-1 rounded-full bg-green-50 text-green-700">{t("settings.voice_verified")}</span>+ <button className={BTN_BORDERED} onClick={() => void repair()}>{t("settings.voice_repair")}</button>+ <button className="text-[12px] text-red-600 px-2 py-2" onClick={() => void remove()}>{t("settings.voice_delete")}</button></>) : downloading ? (- <button className={BTN_BORDERED} onClick={() => void cancelDownload()}>Cancel</button>+ <button className={BTN_BORDERED} onClick={() => void cancelDownload()}>{t("common.stop")}</button>) : phase === "verifying" ? (- <span className="text-[12px] text-muted">Verifying…</span>+ <span className="text-[12px] text-muted">{t("settings.voice_verifying")}</span>) : (- <button className={BTN_ACCENT} disabled={!status?.supported} onClick={() => void download()}>Download model</button>+ <button className={BTN_ACCENT} disabled={!status?.supported} onClick={() => void download()}>{t("settings.voice_download")}</button>)}</div>{downloading && (<div className="border-t border-line px-4 py-3"><div className="h-1.5 rounded-full bg-line overflow-hidden"><div className="h-full bg-accent transition-all" style={{ width: `${progressPercent}%` }} /></div>- <div className="mt-1.5 text-[11.5px] text-muted flex"><span>{formatBytes(progress?.downloaded_bytes || 0)} of {formatBytes(progressTotal)}</span><span className="ml-auto">{progressPercent}%</span></div>+ <div className="mt-1.5 text-[11.5px] text-muted flex">+ <span>{t("settings.voice_dl_progress", { done: formatBytes(progress?.downloaded_bytes || 0), total: formatBytes(progressTotal) })}</span>+ <span className="ml-auto">{progressPercent}%</span>+ </div></div>)}</div>@@ -327,17 +341,23 @@ function VoiceInputSection() {<div className="p-4 flex items-center gap-3"><Icon name="mic" size={18} className={ready ? "text-green-600" : "text-muted"} /><div className="min-w-0 flex-1">- <div className="text-[13.5px] font-medium">Microphone test</div>+ <div className="text-[13.5px] font-medium">{t("settings.voice_mic_test_title")}</div><div className="text-[12px] text-muted mt-0.5">- {ready ? "Your microphone and local transcription engine are working." : "Record a short phrase to enable the composer microphone."}+ {ready ? t("settings.voice_mic_test_ready") : t("settings.voice_mic_test_pending")}</div></div>- {ready && <span className="text-[11.5px] px-2 py-1 rounded-full bg-green-50 text-green-700">● Ready</span>}+ {ready && <span className="text-[11.5px] px-2 py-1 rounded-full bg-green-50 text-green-700">● {t("settings.voice_ready_badge")}</span>}<button className={BTN_BORDERED} disabled={!status?.supported || !status?.model_verified || phase === "transcribing"} onClick={() => void toggleTest()}>- {status?.recording ? "Stop and check" : phase === "transcribing" ? "Transcribing…" : ready ? "Test again" : "Test microphone"}+ {status?.recording+ ? t("settings.voice_stop_check")+ : phase === "transcribing"+ ? t("settings.voice_transcribing")+ : ready+ ? t("settings.voice_test_again")+ : t("settings.voice_test_mic")}</button></div>- {status?.recording && <div className="border-t border-line px-4 py-3 text-[12px] text-accent" role="status">● Listening… speak a short phrase, then stop.</div>}+ {status?.recording && <div className="border-t border-line px-4 py-3 text-[12px] text-accent" role="status">{t("settings.voice_listening")}</div>}{testTranscript && <div className="border-t border-line bg-paper/50 px-4 py-3 text-[13px]">“{testTranscript}”</div>}</div>@@ -352,14 +372,15 @@ function VoiceInputSection() {// entry point to the Persona Gallery (a screen-sized modal — installs finish back// here, disabled pending consent; a gallery install re-mounts the list in place).function PersonasSection({ onOpenPersona }: { onOpenPersona?: (id: string) => void }) {+ const { t } = useTranslation();const [galleryBump, setGalleryBump] = useState(0);const [galleryOpen, setGalleryOpen] = useState(false);return (<section><PanelHead- title="Personas"- sub="Which coworkers are enabled and shown in the picker, plus installing new persona bundles."+ title={t("settings.tab.personas")}+ sub={t("settings.personas_intro")}/><PersonasTab key={galleryBump} onOpenPersona={onOpenPersona} /><button@@ -369,12 +390,12 @@ function PersonasSection({ onOpenPersona }: { onOpenPersona?: (id: string) => vo><Icon name="sparkle" size={16} className="text-accent shrink-0" /><span className="min-w-0 flex-1">- <span className="block text-[13.5px] font-medium">Browse the Persona Gallery</span>+ <span className="block text-[13.5px] font-medium">{t("settings.gallery_title")}</span><span className="block text-[12px] text-muted">- Curated coworkers from the OpenWorker team — see what each can do before installing.+ {t("settings.gallery_sub")}</span></span>- <span className="text-[12.5px] text-accent shrink-0">Open →</span>+ <span className="text-[12.5px] text-accent shrink-0">{t("settings.gallery_open")} →</span></button>{galleryOpen && (<GalleryModal@@ -388,10 +409,13 @@ function PersonasSection({ onOpenPersona }: { onOpenPersona?: (id: string) => vo// -- Appearance + app behaviour ------------------------------------------------function AppearanceSection() {+ const { t } = useTranslation();const [theme, setTheme] = useThemePref();const [autostart, setAuto] = useState(false);const [keepAwake, setKeep] = useState(false);const desktop = isTauri();+ // "system" = no explicit choice persisted; the app follows the OS locale.+ const [currentLang, setCurrentLang] = useState<Lang | "system">(() => getStoredLanguage() ?? "system");useEffect(() => {if (isTauri()) {@@ -406,21 +430,41 @@ function AppearanceSection() {await setOnboarded(false);window.dispatchEvent(new CustomEvent("coworker:open-onboarding"));};+ const changeLang = (lang: Lang | "system") => {+ setCurrentLang(lang);+ void setI18nLanguage(lang === "system" ? null : lang);+ };return (<section>- <PanelHead title="General" sub="How OpenWorker looks and behaves on this machine." />+ <PanelHead title={t("settings.general_title")} sub={t("settings.general_sub")} /><div className={CARD + " p-4 mb-4"}>- <div className={FIELD_LABEL}>Theme</div>- <div className="seg mt-2.5" role="radiogroup" aria-label="Appearance">+ <div className={FIELD_LABEL}>{t("settings.theme")}</div>+ <div className="seg mt-2.5" role="radiogroup" aria-label={t("settings.appearance_aria")}>{(["light", "dark", "auto"] as const).map((p) => (<button key={p} className={p === theme ? "active" : ""} onClick={() => setTheme(p)}>- {p === "light" ? "Light" : p === "dark" ? "Dark" : "Auto"}+ {p === "light" ? t("settings.theme_light") : p === "dark" ? t("settings.theme_dark") : t("settings.theme_auto")}+ </button>+ ))}+ </div>+ <div className={FIELD_HELP}>{t("settings.theme_auto_help")}</div>+ </div>++ <div className={CARD + " p-4 mb-4"}>+ <div className={FIELD_LABEL}>{t("settings.language")}</div>+ <div className="seg mt-2.5" role="radiogroup" aria-label={t("settings.language_aria")}>+ {(["system", "en", "zh"] as const).map((lng) => (+ <button+ key={lng}+ className={lng === currentLang ? "active" : ""}+ onClick={() => changeLang(lng)}+ >+ {lng === "zh" ? t("settings.language_zh") : lng === "en" ? t("settings.language_en") : t("settings.language_system")}</button>))}</div>- <div className={FIELD_HELP}>Auto follows your Mac’s appearance.</div>+ <div className={FIELD_HELP}>{t("settings.language_help")}</div></div><SidebarCard />@@ -431,19 +475,19 @@ function AppearanceSection() {{desktop && (<div className={CARD + " p-4"}>- <div className={FIELD_LABEL + " mb-2.5"}>Always-on</div>+ <div className={FIELD_LABEL + " mb-2.5"}>{t("settings.always_on")}</div><label className="flex items-start gap-3 py-2"><input type="checkbox" className="mt-0.5" checked={autostart} onChange={(e) => toggleAuto(e.target.checked)} /><span>- <span className="block text-[13px] text-ink">Open at login</span>- <span className="block text-[12px] text-muted">Launch OpenWorker automatically when you sign in.</span>+ <span className="block text-[13px] text-ink">{t("settings.open_at_login")}</span>+ <span className="block text-[12px] text-muted">{t("settings.open_at_login_help")}</span></span></label><label className="flex items-start gap-3 py-2"><input type="checkbox" className="mt-0.5" checked={keepAwake} onChange={(e) => toggleKeep(e.target.checked)} /><span>- <span className="block text-[13px] text-ink">Keep this system awake</span>- <span className="block text-[12px] text-muted">Prevent idle sleep so scheduled tasks fire on time.</span>+ <span className="block text-[13px] text-ink">{t("settings.keep_awake")}</span>+ <span className="block text-[12px] text-muted">{t("settings.keep_awake_help")}</span></span></label></div>@@ -453,20 +497,21 @@ function AppearanceSection() {every build, the browser dev shell runs the same first-run flow) and, ondesktop, the manual update check (launch also checks automatically). */}<div className={CARD + " p-4 mt-4"}>- <div className={FIELD_LABEL + " mb-2"}>Setup & updates</div>+ <div className={FIELD_LABEL + " mb-2"}>{t("settings.setup_updates")}</div><div className="flex items-center gap-2"><button className={BTN_BORDERED} onClick={runSetupAgain}>- Run setup again+ {t("settings.run_setup_again")}</button>{desktop && <UpdateInline />}</div>- <div className={FIELD_HELP}>Replays the first-run setup: model, first automation, tips.</div>+ <div className={FIELD_HELP}>{t("settings.run_setup_help")}</div></div></section>);}function TrustedWorkspacesCard() {+ const { t } = useTranslation();const [workspaces, setWorkspaces] = useState<WorkspaceCommandTrust[] | null>(null);const refresh = () =>@@ -479,21 +524,21 @@ function TrustedWorkspacesCard() {}, []);const revoke = async (path: string) => {- if (!window.confirm(`Revoke command trust for ${path}?`)) return;+ if (!window.confirm(t("settings.trust_revoke_confirm", { path }))) return;await setWorkspaceTrusted(path, false);refresh();};return (<div className={CARD + " p-4 mb-4"} data-testid="trusted-workspaces-card">- <div className={FIELD_LABEL}>Trusted workspaces</div>+ <div className={FIELD_LABEL}>{t("settings.trusted_workspaces")}</div><div className={FIELD_HELP}>- Trusted projects may manage their command allowances in .coworker/config.toml.+ {t("settings.trusted_workspaces_help")}</div>{workspaces === null ? (- <div className="text-[12px] text-muted mt-3">Loading…</div>+ <div className="text-[12px] text-muted mt-3">{t("settings.trust_loading")}</div>) : workspaces.length === 0 ? (- <div className="text-[12px] text-muted mt-3">No workspaces are trusted.</div>+ <div className="text-[12px] text-muted mt-3">{t("settings.trust_empty")}</div>) : (<div className="mt-3 divide-y divide-line">{workspaces.map((workspace) => (@@ -502,16 +547,16 @@ function TrustedWorkspacesCard() {<div className="text-[12.5px] text-ink break-all">{workspace.workspace}</div><div className="text-[11.5px] text-muted mt-0.5">{workspace.requested_commands.length- ? `${workspace.requested_commands.length} project command allowance${workspace.requested_commands.length === 1 ? "" : "s"}`- : "No project command allowances currently declared"}- {!workspace.exists ? " · Folder unavailable" : ""}+ ? t("settings.trust_allowances", { count: workspace.requested_commands.length })+ : t("settings.trust_no_allowances")}+ {!workspace.exists ? t("settings.trust_folder_unavailable") : ""}</div></div><buttonclassName="text-[12px] text-red-600 px-2 py-1"onClick={() => void revoke(workspace.workspace)}>- Revoke+ {t("settings.trust_revoke")}</button></div>))}@@ -522,6 +567,7 @@ function TrustedWorkspacesCard() {}function UpdateInline() {+ const { t } = useTranslation();const [state, setState] = useState<"idle" | "checking" | "none" | "found" | "installing" | "error">("idle");const [version, setVersion] = useState("");@@ -553,7 +599,7 @@ function UpdateInline() {<span className="inline-flex items-center gap-2.5">{state === "found" ? (<button className={BTN_BORDERED} onClick={install} data-testid="settings-update-install">- Update to v{version} and restart+ {t("settings.update_install", { version })}</button>) : (<button@@ -562,16 +608,16 @@ function UpdateInline() {disabled={state === "checking" || state === "installing"}data-testid="settings-update-check">- {state === "checking" ? "Checking…" : "Check for updates"}+ {state === "checking" ? t("settings.checking") : t("settings.check_for_updates")}</button>)}{(state === "none" || state === "error" || state === "installing") && (<span className="text-[12px] text-muted">{state === "none"- ? "You're on the latest version."+ ? t("settings.update_latest"): state === "error"- ? "Couldn't check right now — try again later."- : "Downloading — OpenWorker restarts by itself when it's ready."}+ ? t("settings.update_error")+ : t("settings.update_downloading")}</span>)}</span>@@ -588,6 +634,7 @@ function UpdateInline() {// then this card is the user's dial: attach thresholds + the fallback for models// without native PDF support.function TokenSavingsCard() {+ const { t } = useTranslation();const [pdf, setPdf] = useState<PdfSettings | null>(null);useEffect(() => {@@ -610,36 +657,33 @@ function TokenSavingsCard() {if (!pdf) return null;return (<div className={CARD + " p-4 mb-4"} data-testid="token-savings-card">- <div className={FIELD_LABEL}>Token savings</div>+ <div className={FIELD_LABEL}>{t("settings.token_savings")}</div><div className={FIELD_HELP}>- PDF attachments travel with every turn of a conversation, so large documents multiply- what you spend on tokens.+ {t("settings.token_savings_help")}</div>- <div className="mt-3 text-[13px] text-ink">PDFs on models without native PDF support</div>- <div className="seg mt-2" role="radiogroup" aria-label="PDF fallback" data-testid="pdf-fallback">+ <div className="mt-3 text-[13px] text-ink">{t("settings.pdf_fallback_label")}</div>+ <div className="seg mt-2" role="radiogroup" aria-label={t("settings.pdf_fallback_aria")} data-testid="pdf-fallback"><buttonclassName={pdf.pdf_fallback === "text" ? "active" : ""}onClick={() => save({ pdf_fallback: "text" })}>- Extract text+ {t("settings.pdf_extract_text")}</button><buttonclassName={pdf.pdf_fallback === "images" ? "active" : ""}onClick={() => save({ pdf_fallback: "images" })}>- Send page images+ {t("settings.pdf_send_images")}</button></div><div className={FIELD_HELP}>- Claude, GPT and Gemini read PDFs natively — this only applies to models that- don’t (GLM, Kimi, DeepSeek, local models…). Text extraction is cheapest; page- images cost more tokens and need a vision-capable model.+ {t("settings.pdf_fallback_help")}</div><div className="mt-3 flex items-center gap-5"><label className="flex items-center gap-2.5">- <span className="text-[13px] text-ink">Max pages</span>+ <span className="text-[13px] text-ink">{t("settings.pdf_max_pages")}</span><inputtype="number"min={1}@@ -651,7 +695,7 @@ function TokenSavingsCard() {/></label><label className="flex items-center gap-2.5">- <span className="text-[13px] text-ink">Max size</span>+ <span className="text-[13px] text-ink">{t("settings.pdf_max_size")}</span><inputtype="number"min={1}@@ -665,14 +709,14 @@ function TokenSavingsCard() {</label></div><div className={FIELD_HELP}>- PDFs over these limits are not attached — you’ll see a notice in the composer- instead.+ {t("settings.pdf_limits_help")}</div></div>);}function SidebarCard() {+ const { t } = useTranslation();const [peek, setPeek] = useState<number | null>(null);useEffect(() => {@@ -690,9 +734,9 @@ function SidebarCard() {if (peek === null) return null;return (<div className={CARD + " p-4 mb-4"}>- <div className={FIELD_LABEL}>Sidebar</div>+ <div className={FIELD_LABEL}>{t("settings.sidebar_card_title")}</div><label className="flex items-center gap-3 mt-2.5">- <span className="text-[13px] text-ink">Conversations shown per coworker</span>+ <span className="text-[13px] text-ink">{t("settings.sidebar_per_coworker")}</span><inputtype="number"min={1}@@ -703,7 +747,7 @@ function SidebarCard() {/></label><div className={FIELD_HELP}>- Longer lists collapse behind “Show more”. Applies per coworker and per project.+ {t("settings.sidebar_card_help")}</div></div>);@@ -712,6 +756,7 @@ function SidebarCard() {// -- Files (scratch location) — one card inside General (UX-021: a single option// doesn't earn its own tab) -----------------------------------------------------function FilesCard() {+ const { t } = useTranslation();const [settings, setSettings] = useState<ModelSettings | null>(null);const [scratchDraft, setScratchDraft] = useState("");const [scratchMsg, setScratchMsg] = useState<string | null>(null);@@ -732,10 +777,10 @@ function FilesCard() {setScratchMsg(null);const res = await setScratchBase(scratchDraft.trim());if (res.ok) {- setScratchMsg("Saved. New conversations will use this location.");+ setScratchMsg(t("settings.files_saved"));refresh();} else {- setScratchMsg(res.error || "Could not use that location.");+ setScratchMsg(res.error || t("settings.files_save_error"));}};const browseScratch = async () => {@@ -747,12 +792,12 @@ function FilesCard() {return (<div className={CARD + " p-4 mb-4"}>- <div className={FIELD_LABEL}>Files</div>+ <div className={FIELD_LABEL}>{t("settings.files_title")}</div><div className="flex items-center gap-2 mt-2.5"><inputclassName={INPUT}type="text"- placeholder="~/OpenWorker"+ placeholder={t("settings.scratch_placeholder")}value={scratchDraft}spellCheck={false}autoComplete="off"@@ -760,17 +805,16 @@ function FilesCard() {onKeyDown={(e) => e.key === "Enter" && saveScratch()}/>{desktop && (- <button className={BTN_BORDERED} onClick={browseScratch} title="Pick a folder">- Browse+ <button className={BTN_BORDERED} onClick={browseScratch} title={t("settings.files_pick_folder")}>+ {t("settings.files_browse")}</button>)}<button className={BTN_ACCENT} onClick={saveScratch} disabled={!scratchDraft.trim()}>- Save+ {t("settings.files_save")}</button></div><div className={FIELD_HELP}>- Each conversation gets its own folder under this location. Existing conversations keep their current- folder; you can grant access to more folders inside any conversation.+ {t("settings.files_help")}</div>{scratchMsg && <div className="text-[12.5px] text-muted mt-2.5">{scratchMsg}</div>}</div>diff --git a/surfaces/gui/src/components/Sidebar.tsx b/surfaces/gui/src/components/Sidebar.tsxindex 9f0215dd..f7a36b0d 100644--- a/surfaces/gui/src/components/Sidebar.tsx+++ b/surfaces/gui/src/components/Sidebar.tsx@@ -1,4 +1,5 @@import { useEffect, useMemo, useState, type ReactNode } from "react";+import { getI18n, useTranslation } from "react-i18next";import {announceCloudChanged,AUTOMATIONS_CHANGED,@@ -46,11 +47,12 @@ const surfaceFromPersona = (p: Persona) => ({// Attention = Inbox items awaiting a session (an accent count that bubbles session → persona →// footer Inbox — all views of the one Inbox queue, never a second list).function AttnBadge({ n }: { n: number }) {+ const { t } = useTranslation();if (!n) return null;return (<spanclassName="text-[10px] font-semibold text-ink bg-faint/30 rounded-full px-1.5 leading-[15px] shrink-0"- title={`${n} awaiting your attention`}+ title={t("sidebar.awaiting_attention", { n })}>{n > 99 ? "99+" : n}</span>@@ -61,11 +63,12 @@ function AttnBadge({ n }: { n: number }) {// treatment as the attention badge; failure only colors the tooltip's words, not the// sidebar (owner call 2026-07-20: no color, and the entry alone carries the count).function UnseenBadge({ n, failed }: { n: number; failed?: boolean }) {+ const { t } = useTranslation();if (!n) return null;return (<spanclassName="text-[10px] font-semibold text-ink bg-faint/30 rounded-full px-1.5 leading-[15px] shrink-0"- title={failed ? `${n} new run${n > 1 ? "s" : ""} — the latest failed` : `${n} new run${n > 1 ? "s" : ""}`}+ title={failed ? t("sidebar.unseen_failed", { n }) : t("sidebar.unseen_new", { n })}>{n > 99 ? "99+" : n}</span>@@ -75,13 +78,14 @@ function UnseenBadge({ n, failed }: { n: number; failed?: boolean }) {// Liveness = working (in-flight turn) / sleeping (a self-wake is pending). A count-less dot that// never bubbles — it says "this is alive", not "this needs you".function LiveDot({ state }: { state?: "working" | "sleeping" | "idle" }) {+ const { t } = useTranslation();if (state !== "working" && state !== "sleeping") return null;return state === "working" ? (- <span className="w-1.5 h-1.5 rounded-full bg-accent animate-pulse shrink-0" title="Working now" />+ <span className="w-1.5 h-1.5 rounded-full bg-accent animate-pulse shrink-0" title={t("sidebar.status_working")} />) : (<spanclassName="w-1.5 h-1.5 rounded-full bg-faint/60 shrink-0"- title="Sleeping (will wake itself)"+ title={t("sidebar.status_sleeping")}/>);}@@ -89,12 +93,13 @@ function LiveDot({ state }: { state?: "working" | "sleeping" | "idle" }) {// §31: a session spawned by a platform mention wears its platform's logo, right-aligned beside// the title cluster (owner call 2026-07-13). Slack today; the origin key is the platform id.function OriginIcon({ s }: { s: SessionInfo }) {+ const { t } = useTranslation();if (s.origin !== "slack") return null;return (<ConnectorIconconnector={{ logo: "slack", brand_color: "#611f69" }}size={12}- title={s.origin_label || "From Slack"}+ title={s.origin_label || t("sidebar.from_slack")}/>);}@@ -153,24 +158,26 @@ const compactAge = (iso?: string | null): string => {if (!iso) return "";const then = Date.parse(iso);if (Number.isNaN(then)) return "";+ const tt = getI18n().getFixedT(null, "translation");const secs = Math.max(0, Math.floor((Date.now() - then) / 1000));- if (secs < 60) return "now";+ if (secs < 60) return tt("sidebar.age_now");const mins = Math.floor(secs / 60);- if (mins < 60) return `${mins}m`;+ if (mins < 60) return tt("sidebar.age_m", { n: mins });const hrs = Math.floor(mins / 60);- if (hrs < 24) return `${hrs}h`;+ if (hrs < 24) return tt("sidebar.age_h", { n: hrs });const days = Math.floor(hrs / 24);- if (days < 7) return `${days}d`;+ if (days < 7) return tt("sidebar.age_d", { n: days });const weeks = Math.floor(days / 7);- if (days < 30) return `${weeks}w`;+ if (days < 30) return tt("sidebar.age_w", { n: weeks });const months = Math.floor(days / 30);- if (days < 365) return `${months}mo`;- return `${Math.floor(days / 365)}y`;+ if (days < 365) return tt("sidebar.age_mo", { n: months });+ return tt("sidebar.age_y", { n: Math.floor(days / 365) });};// Sessions shown per group before "Show more" comes from Settings (sessions_peek, default 5).export function Sidebar(props: Props) {+ const { t } = useTranslation();const [searchModalOpen, setSearchModalOpen] = useState(false);const [appMenuOpen, setAppMenuOpen] = useState(false);// The account row (§26): cloud sign-in status drives the avatar/name/dot; refreshed on@@ -453,8 +460,8 @@ export function Sidebar(props: Props) {onClick={(e) => e.stopPropagation()}><button- title="Session actions"- aria-label="Session actions"+ title={t("sidebar.session_actions")}+ aria-label={t("sidebar.session_actions")}aria-haspopup="menu"aria-expanded={menuOpen}data-testid="row-menu"@@ -475,20 +482,20 @@ export function Sidebar(props: Props) {style={{ top: rowMenu!.top, left: rowMenu!.left }}role="menu">- {item("row-menu-rename", "pencil", "Rename", () => {+ {item("row-menu-rename", "pencil", t("sidebar.rename"), () => {setEditingId(s.session_id);setEditValue(title);})}- {item("row-menu-pin", "pin", s.pinned ? "Unpin" : "Pin", () =>+ {item("row-menu-pin", "pin", s.pinned ? t("sidebar.unpin") : t("sidebar.pin"), () =>props.onTogglePin(s.session_id, !s.pinned),)}- {item("row-menu-archive", "archive", s.archived ? "Unarchive" : "Archive", () =>+ {item("row-menu-archive", "archive", s.archived ? t("sidebar.unarchive") : t("sidebar.archive"), () =>props.onArchiveSession(s.session_id, !s.archived),)}<div className="h-px bg-line my-1 mx-2" />{confirmDelId === s.session_id ? (<button- title="Click again to permanently delete"+ title={t("sidebar.confirm_delete")}className="w-full flex items-center gap-2 px-2.5 py-1.5 text-[12.5px] text-left font-medium text-danger hover:bg-paper"data-testid="row-menu-delete"role="menuitem"@@ -498,7 +505,7 @@ export function Sidebar(props: Props) {}}><Icon name="trash" size={13} className="shrink-0" />- <span className="flex-1">Delete?</span>+ <span className="flex-1">{t("sidebar.delete_confirm")}</span></button>) : (<button@@ -508,7 +515,7 @@ export function Sidebar(props: Props) {onClick={() => setConfirmDelId(s.session_id)}><Icon name="trash" size={13} className="shrink-0" />- <span className="flex-1">Delete</span>+ <span className="flex-1">{t("sidebar.delete")}</span></button>)}</div>@@ -660,7 +667,7 @@ export function Sidebar(props: Props) {pinnedSessions.length > 0 ? (<div><div className="px-1.5 text-[10.5px] uppercase tracking-[0.07em] text-faint font-semibold mb-1">- Pinned+ {t("sidebar.pinned")}</div><div className="space-y-0.5">{pinnedSessions.map((s) => cardRow(s))}@@ -675,7 +682,7 @@ export function Sidebar(props: Props) {automations.length > 0 ? (<div data-testid="scheduled-band"><div className="px-1.5 text-[10.5px] uppercase tracking-[0.07em] text-faint font-semibold mb-1">- Scheduled+ {t("sidebar.scheduled")}</div><div className="space-y-0.5">{automations.map((a) => (@@ -707,12 +714,12 @@ export function Sidebar(props: Props) {return (<div className="relative flex items-center justify-between px-1.5 mb-1" data-testid="recent-header"><span className="text-[10.5px] uppercase tracking-[0.07em] text-faint font-semibold">- Recent+ {t("sidebar.recent")}</span><buttonclassName="w-6 h-6 grid place-items-center rounded-md text-faint hover:text-ink hover:bg-paper -mr-1"- title="Group & filter conversations"- aria-label="Group and filter conversations"+ title={t("sidebar.group_and_filter")}+ aria-label={t("sidebar.group_and_filter")}onClick={() => setGroupMenuOpen((v) => !v)}><Icon name="sliders" size={14} />@@ -726,9 +733,9 @@ export function Sidebar(props: Props) {data-testid="group-filter-menu"><div className="px-2 pt-1 pb-1 text-[10.5px] uppercase tracking-[0.06em] text-faint font-semibold">- Group by+ {t("sidebar.group_by")}</div>- {([["grouped", "Persona"], ["flat", "Chronological"]] as ["flat" | "grouped", string][]).map(+ {([["grouped", t("sidebar.group_persona")], ["flat", t("sidebar.group_chrono")]] as ["flat" | "grouped", string][]).map(([key, label]) => (<buttonkey={key}@@ -745,11 +752,11 @@ export function Sidebar(props: Props) {<div className="my-1 border-t border-line" /><div className="px-2 pt-1 pb-1 flex items-center justify-between"><span className="text-[10.5px] uppercase tracking-[0.06em] text-faint font-semibold">- Filter by coworker+ {t("sidebar.filter_coworker")}</span>{filterPersonas.size > 0 && (<button className="text-[11px] text-accent" onClick={() => setFilterPersonas(new Set())}>- Clear+ {t("sidebar.clear")}</button>)}</div>@@ -776,7 +783,7 @@ export function Sidebar(props: Props) {})}</div><div className="px-2 pt-1 pb-0.5 text-[11px] text-faint leading-snug">- None checked shows all.+ {t("sidebar.filter_all_hint")}</div></>)}@@ -860,12 +867,12 @@ export function Sidebar(props: Props) {rows carry a right-aligned compact age and truncate to PROJECT_PEEK + "Show more". */}<div className="flex items-center justify-between px-1.5 pt-1"><span className="text-[10.5px] uppercase tracking-[0.07em] text-faint font-semibold">- Projects+ {t("sidebar.projects")}</span><buttonclassName="w-5 h-5 grid place-items-center rounded text-faint hover:text-ink hover:bg-panel"- title="New project"- aria-label="New project"+ title={t("sidebar.new_project")}+ aria-label={t("sidebar.new_project")}onClick={() => props.onNewProject(browseKey)}><Icon name="folderPlus" size={14} />@@ -874,7 +881,7 @@ export function Sidebar(props: Props) {<div className="space-y-0.5">{projectOrder.length === 0 && (<div className="px-2 py-1.5 text-[12px] text-faint leading-snug">- No projects yet — start one with the + above.+ {t("sidebar.no_projects_yet")}</div>)}{projectOrder.map((proj) => {@@ -924,13 +931,13 @@ export function Sidebar(props: Props) {className="px-2 py-1 text-[12px] text-faint hover:text-muted"onClick={() => setProjShowAll((s) => toggleSet(s, proj))}>- Show more ({list.length - peek})+ {t("sidebar.show_more_n", { n: list.length - peek })}</button>)}</div>) : (<div className="px-2 py-1.5 pl-[19px] text-[12px] text-faint leading-snug">- No conversations in this project yet.+ {t("sidebar.no_project_convos")}</div>))}</div>@@ -942,7 +949,7 @@ export function Sidebar(props: Props) {<div className="space-y-0.5">{mine.filter(matches).length === 0 ? (<div className="px-2 py-1.5 text-[12px] text-faint leading-snug">- {normalizedQuery ? "No matching conversations." : "No conversations yet."}+ {normalizedQuery ? t("sidebar.no_matching") : t("sidebar.no_conversations")}</div>) : (<>@@ -955,7 +962,7 @@ export function Sidebar(props: Props) {className="px-2 py-1 text-[12px] text-faint hover:text-muted"onClick={() => setPersonaShowAll((s) => toggleSet(s, browseKey))}>- Show more ({mine.filter(matches).length - peek})+ {t("sidebar.show_more_n", { n: mine.filter(matches).length - peek })}</button>)}</>@@ -970,7 +977,7 @@ export function Sidebar(props: Props) {onClick={() => setShowArchived((v) => !v)}><Icon name={showArchived ? "chevronDown" : "chevronRight"} size={13} className="shrink-0" />- Archived ({archived.length})+ {t("sidebar.archived_n", { n: archived.length })}</button>{showArchived && (<div className="space-y-0.5 mt-0.5">{archived.filter(matches).map((s) => sessionRow(s))}</div>@@ -995,8 +1002,8 @@ export function Sidebar(props: Props) {{props.onCollapse && (<buttonclassName="nav-pin-btn w-7 h-7 grid place-items-center rounded-md text-faint hover:text-ink hover:bg-paper shrink-0"- title={props.collapsed ? "Dock sidebar (⌘B)" : "Collapse sidebar (⌘B)"}- aria-label={props.collapsed ? "Dock sidebar" : "Collapse sidebar"}+ title={props.collapsed ? t("sidebar.dock") + " (⌘B)" : t("sidebar.collapse") + " (⌘B)"}+ aria-label={props.collapsed ? t("sidebar.dock") : t("sidebar.collapse")}onClick={props.onCollapse}><Icon name="sidebar" size={16} />@@ -1020,7 +1027,7 @@ export function Sidebar(props: Props) {className="w-full flex items-center gap-2.5 px-2.5 py-2 rounded-lg text-[13px] text-left text-muted hover:bg-paper hover:text-ink"onClick={() => setSearchModalOpen(true)}>- <Icon name="search" size={15} className="shrink-0" /> Search+ <Icon name="search" size={15} className="shrink-0" /> {t("sidebar.search")}</button></div>@@ -1036,7 +1043,7 @@ export function Sidebar(props: Props) {onClick={props.onOpenScheduled}><Icon name="clock" size={15} className="shrink-0" />- <span className="flex-1">Automations</span>+ <span className="flex-1">{t("sidebar.automations")}</span></button></div>@@ -1097,7 +1104,7 @@ export function Sidebar(props: Props) {<div className="space-y-0.5">{recentSessions.length === 0 ? (<div className="px-2 py-1.5 text-[12px] text-faint leading-snug">- {normalizedQuery ? "No matching conversations." : "No conversations yet."}+ {normalizedQuery ? t("sidebar.no_matching") : t("sidebar.no_conversations")}</div>) : (<>@@ -1111,8 +1118,8 @@ export function Sidebar(props: Props) {onClick={() => setRecentExpanded((v) => !v)}>{recentExpanded- ? "Show less"- : `Show ${recentSessions.length - RECENT_PEEK} more`}+ ? t("sidebar.show_less")+ : t("sidebar.show_n_more", { n: recentSessions.length - RECENT_PEEK })}</button>)}</>@@ -1139,14 +1146,14 @@ export function Sidebar(props: Props) {{cloud?.signed_in ? (<divclassName="px-3 py-1.5 mb-1 text-[11px] text-faint truncate border-b border-line"- title={`${accountEmail} · OpenWorker Cloud`}+ title={`${accountEmail} · ${t("sidebar.cloud_suffix")}`}>- {accountEmail} · OpenWorker Cloud+ {accountEmail} · {t("sidebar.cloud_suffix")}</div>) : (<><div className="px-3 py-1.5 text-[11px] text-faint border-b border-line">- Not signed in — one-click connections need OpenWorker Cloud+ {t("sidebar.not_signed_in")}</div><buttonclassName="w-full flex items-center gap-2.5 px-3 py-1.5 mb-1 text-[13px] text-left text-accent hover:bg-paper"@@ -1164,33 +1171,32 @@ export function Sidebar(props: Props) {});}}>- <Icon name="plug" size={15} className="shrink-0" /> Sign in to OpenWorker- Cloud+ <Icon name="plug" size={15} className="shrink-0" /> {t("sidebar.sign_in")}</button></>)}{appMenuItem("inbox",- "Inbox",+ t("nav.inbox"),props.onOpenInbox,props.inboxActive,<AttnBadge n={totalAttention} />,)}- {appMenuItem("plug", "Connectors", props.onOpenIntegrations, props.integrationsActive)}+ {appMenuItem("plug", t("nav.connectors"), props.onOpenIntegrations, props.integrationsActive)}<div className="h-px bg-line my-1 mx-2" />{appMenuItem("gear",- "Settings",+ t("nav.settings"),props.onManage,false,<span className="text-[11px] text-faint">⌘ ,</span>,)}- {appMenuItem("clock", "Automations", props.onOpenScheduled, props.scheduledActive)}- {appMenuItem("audit", "Activity", props.onOpenAudit, props.auditActive)}+ {appMenuItem("clock", t("nav.automations"), props.onOpenScheduled, props.scheduledActive)}+ {appMenuItem("audit", t("nav.activity"), props.onOpenAudit, props.auditActive)}{cloud?.signed_in && (<><div className="h-px bg-line my-1 mx-2" />- {appMenuItem("signOut", "Sign out", async () => {+ {appMenuItem("signOut", t("sidebar.sign_out"), async () => {await cloudLogout().catch(() => {});announceCloudChanged();})}@@ -1212,7 +1218,7 @@ export function Sidebar(props: Props) {}}aria-haspopup="menu"aria-expanded={appMenuOpen}- aria-label={cloud?.signed_in ? `Account: ${accountEmail}` : "Account: not signed in"}+ aria-label={cloud?.signed_in ? t("sidebar.account_aria", { email: accountEmail }) : t("sidebar.account_not_signed_in_aria")}><spanclassName={@@ -1226,12 +1232,12 @@ export function Sidebar(props: Props) {{cloud?.signed_in ? accountName.slice(0, 1).toUpperCase() : "?"}</span><span className={"truncate " + (cloud?.signed_in ? "" : "text-muted")}>- {cloud?.signed_in ? accountName : "Not signed in"}+ {cloud?.signed_in ? accountName : t("sidebar.not_signed_in_row")}</span>{cloud?.signed_in && (<spanclassName="w-[7px] h-[7px] rounded-full bg-ok shrink-0"- title="Signed in to OpenWorker Cloud"+ title={t("sidebar.signed_in_tooltip")}aria-hidden/>)}@@ -1247,9 +1253,9 @@ export function Sidebar(props: Props) {data-testid="inbox-chip"role="button"aria-label={- totalAttention > 0 ? `Inbox — ${totalAttention} items need you` : "Inbox"+ totalAttention > 0 ? t("sidebar.inbox_chip_pending", { n: totalAttention }) : t("nav.inbox")}- title={totalAttention > 0 ? `Inbox — ${totalAttention} items need you` : "Inbox"}+ title={totalAttention > 0 ? t("sidebar.inbox_chip_pending", { n: totalAttention }) : t("nav.inbox")}onClick={(e) => {// The chip goes STRAIGHT to Inbox — the menu is the row's target, not the chip's.e.stopPropagation();@@ -1299,6 +1305,7 @@ function NewSessionSplit({onNew: (agent: string) => void;onManage: () => void;}) {+ const { t } = useTranslation();const [open, setOpen] = useState(false);const enabled = (personas || []).filter((p) => p.enabled);// With a single enabled persona there is nothing to pick — the split collapses to a plain@@ -1315,13 +1322,13 @@ function NewSessionSplit({}onClick={() => onNew(solo && enabled.length === 1 ? enabled[0].id : current)}>- <Icon name="plus" size={15} className="shrink-0" /> New session+ <Icon name="plus" size={15} className="shrink-0" /> {t("sidebar.new_session")}</button>{!solo && (<buttonclassName="px-2.5 rounded-r-lg bg-accent text-white border-l border-white/25 hover:opacity-95 flex items-center"- title="Start with a specific persona"- aria-label="Choose a persona"+ title={t("sidebar.start_with_persona")}+ aria-label={t("sidebar.choose_persona")}onClick={() => setOpen((v) => !v)}><Icon name="chevronDown" size={13} />@@ -1333,7 +1340,7 @@ function NewSessionSplit({<div className="fixed inset-0 z-20" onClick={() => setOpen(false)} /><div className="newsplit-menu absolute left-3 right-3 mt-1 z-30 bg-panel border border-line rounded-xl2 shadow-xl p-1"><div className="px-2 py-1 text-[10.5px] uppercase tracking-[0.06em] text-faint font-semibold">- Start a session as+ {t("sidebar.start_session_as")}</div>{enabled.map((p) => (<button@@ -1366,7 +1373,7 @@ function NewSessionSplit({onManage();}}>- Manage personas…+ {t("sidebar.manage_personas")}</button></div>)}diff --git a/surfaces/gui/src/components/SubscriptionsChip.tsx b/surfaces/gui/src/components/SubscriptionsChip.tsxindex 8548917c..c2bac7dd 100644--- a/surfaces/gui/src/components/SubscriptionsChip.tsx+++ b/surfaces/gui/src/components/SubscriptionsChip.tsx@@ -1,4 +1,5 @@import { useEffect, useRef, useState } from "react";+import { useTranslation } from "react-i18next";import {getConnectors,getRecentChannels,@@ -40,6 +41,7 @@ export function ChannelPicker({}) {const [open, setOpen] = useState(false);const wrap = useRef<HTMLDivElement | null>(null);+ const { t: tt } = useTranslation();useEffect(() => {if (!open) return;const onDoc = (e: MouseEvent) => {@@ -143,7 +145,7 @@ export function ChannelPicker({<inputref={inputRef}className="chan-input w-full"- placeholder="slack:C0123 or channel link"+ placeholder={tt("inbox.channel_picker_placeholder")}value={display}title={value || undefined}onChange={(e) => {@@ -205,7 +207,7 @@ export function ChannelPicker({className="px-3 py-1.5 text-[12px] text-faint"data-testid="roster-searching">- searching your workspace’s channels…+ {tt("inbox.searching_channels")}</div>)}{/* Live workspace-roster hits: type the NAME, we resolved the id. */}@@ -235,7 +237,7 @@ export function ChannelPicker({)}{!r.is_member && (<span className="block text-[11px] text-warnInk">- invite @ocw to this channel in Slack so it can listen+ {tt("inbox.invite_to_listen")}</span>)}</button>@@ -261,6 +263,7 @@ export function SubscriptionsChip({const [recent, setRecent] = useState<RecentChannel[]>([]);const [draft, setDraft] = useState("");const ref = useRef<HTMLDivElement | null>(null);+ const { t } = useTranslation();useEffect(() => {if (!open) return;@@ -288,23 +291,23 @@ export function SubscriptionsChip({<div className="sub-chip-wrap" ref={ref}><buttonclassName={"wschip sub-chip" + (open ? " active" : "")}- title="Channels this session listens to"+ title={t("inbox.channels_this_session")}onClick={() => setOpen((v) => !v)}><Icon name="plug" size={12} /> {channels.length || "+"}</button>{open && (<div className="sub-pop" onMouseDown={(e) => e.stopPropagation()}>- <div className="sub-pop-head">Channels this session listens to</div>+ <div className="sub-pop-head">{t("inbox.channels_this_session")}</div>{channels.length === 0 ? (- <div className="dim sub-pop-empty">Not subscribed to any channel.</div>+ <div className="dim sub-pop-empty">{t("inbox.not_subscribed")}</div>) : (channels.map((c) => {const nm = recent.find((r) => r.channel === c)?.name;return (<div className="sub-pop-row" key={c}><span className="sub-pop-chan" title={c}>{nm ? `#${nm}` : c}</span>- <button className="sub-pop-x" title="Unsubscribe" onClick={() => remove(c)}>+ <button className="sub-pop-x" title={t("inbox.unsubscribe")} onClick={() => remove(c)}>×</button></div>@@ -314,7 +317,7 @@ export function SubscriptionsChip({<div className="sub-pop-add"><ChannelPicker value={draft} onChange={setDraft} recent={recent} onSubmit={add} /><button className="btn-primary sm" disabled={!draft.trim()} onClick={add}>- Add+ {t("inbox.add")}</button></div></div>diff --git a/surfaces/gui/src/components/TodoPanel.tsx b/surfaces/gui/src/components/TodoPanel.tsxindex 3ba974f3..ac8559a9 100644--- a/surfaces/gui/src/components/TodoPanel.tsx+++ b/surfaces/gui/src/components/TodoPanel.tsx@@ -1,11 +1,13 @@+import { useTranslation } from "react-i18next";import type { TodoItem } from "../types";export function TodoPanel({ items }: { items: TodoItem[] }) {+ const { t } = useTranslation();if (!items || items.length === 0) return null;const box = (s: string) => (s === "done" ? "☑" : s === "in_progress" ? "◉" : "☐");return (<div className="todo">- <h4>Tasks</h4>+ <h4>{t("todo.title")}</h4>{items.map((it, i) => (<div className="item" key={i}><span className="box">{box(it.status)}</span>diff --git a/surfaces/gui/src/components/Transcript.tsx b/surfaces/gui/src/components/Transcript.tsxindex c6c95be1..4c6fbd27 100644--- a/surfaces/gui/src/components/Transcript.tsx+++ b/surfaces/gui/src/components/Transcript.tsx@@ -1,4 +1,5 @@import { useState } from "react";+import { getI18n, useTranslation } from "react-i18next";import type { ApprovalDecision, Item } from "../types";import { shortArgs } from "./ApprovalCard";import { humanizeAsk, humanizeTool, type HumanLine } from "../humanize";@@ -11,6 +12,7 @@ import { Icon } from "./Icon";// so revealing it on group-hover never shifts the layout. `ts` is unix seconds — canonical// messages carry it, pre-stamp history doesn't, so the time simply omits itself when absent.function BubbleMeta({ text, ts, align }: { text: string; ts?: number; align: "left" | "right" }) {+ const { t } = useTranslation();const [copied, setCopied] = useState(false);const when = typeof ts === "number" ? new Date(ts * 1000) : null;const copy = () => {@@ -35,10 +37,10 @@ function BubbleMeta({ text, ts, align }: { text: string; ts?: number; align: "le<buttonclassName="flex items-center cursor-pointer hover:text-muted"data-testid="bubble-copy"- title="Copy message"+ title={t("transcript.copy_message")}onClick={copy}>- {copied ? "Copied" : <Icon name="copy" size={11} />}+ {copied ? t("transcript.copied") : <Icon name="copy" size={11} />}</button>{when && (<span data-testid="bubble-ts" title={when.toLocaleString()}>@@ -54,6 +56,7 @@ function BubbleMeta({ text, ts, align }: { text: string; ts?: number; align: "le// collapsed by default, the trace one click away. `live` = still streaming (pulsing label);// App renders that variant above the transcript, this one rides a finalized assistant item.export function ThinkingBlock({ text, live }: { text: string; live?: boolean }) {+ const { t } = useTranslation();const [open, setOpen] = useState(false);return (<div className="thinking">@@ -64,7 +67,7 @@ export function ThinkingBlock({ text, live }: { text: string; live?: boolean })><Icon name="chevronDown" size={12} className={"thinking-caret" + (open ? " open" : "")} /><span className={live ? "thinking-live" : undefined}>- {live ? "Thinking…" : "Thought process"}+ {live ? t("transcript.thinking_live") : t("transcript.thinking_process")}</span></button>{open && (@@ -133,14 +136,15 @@ function buildRows(items: TurnItem[]): TurnRow[] {}function approvalChip(resolved: ApprovalDecision | undefined) {+ const t = getI18n().getFixedT(null, "translation");if (resolved === "deny")- return <span className="text-[10.5px] px-1.5 rounded-full bg-dangerSoft text-danger shrink-0">✕ declined</span>;+ return <span className="text-[10.5px] px-1.5 rounded-full bg-dangerSoft text-danger shrink-0">{t("transcript.approval.declined")}</span>;return (<spanclassName="text-[10.5px] px-1.5 rounded-full bg-okSoft text-ok shrink-0"- title={resolved ? `approved · ${resolved.replace(/_/g, " ")}` : "approved"}+ title={resolved ? t("transcript.approval.approved_scope", { scope: resolved.replace(/_/g, " ") }) : t("transcript.approval.approved")}>- ✓ approved+ {t("transcript.approval.approved")}</span>);}@@ -156,6 +160,7 @@ function LineText({ line }: { line: HumanLine }) {}function StepRow({ tool, approval }: { tool: ToolItem; approval?: ApprovalItem }) {+ const { t } = useTranslation();const [raw, setRaw] = useState(false);const running = tool.status === "…";const failed = tool.status !== "ok" && !running;@@ -171,18 +176,18 @@ function StepRow({ tool, approval }: { tool: ToolItem; approval?: ApprovalItem }<spanclassName="text-[10.5px] px-1.5 rounded-full bg-tealSoft text-tealInk shrink-0"data-testid="tool-standing-rule"- title={`Auto-allowed by this automation's standing approval: ${tool.standingRule}. Revoke on its Automations page.`}+ title={t("transcript.step.auto_allowed_tip", { rule: tool.standingRule })}>- auto-allowed+ {t("transcript.step.auto_allowed")}</span>)}{!!tool.hidden && (<spanclassName="text-[11px] text-warnInk shrink-0"data-testid="tool-hidden-count"- title="Removed by your privacy filters before the agent saw the results — agents get no trace of these."+ title={t("transcript.step.hidden_tip")}>- {tool.hidden} hidden+ {t("transcript.step.hidden_count_label", { n: tool.hidden })}</span>)}{failed && <span className="text-[11px] text-danger shrink-0">{tool.status}</span>}@@ -191,7 +196,7 @@ function StepRow({ tool, approval }: { tool: ToolItem; approval?: ApprovalItem }className="ml-auto shrink-0 text-[11px] text-faint opacity-0 group-hover:opacity-100 cursor-pointer"onClick={() => setRaw((v) => !v)}>- raw+ {t("transcript.step.raw")}</button>)}</div>@@ -216,6 +221,7 @@ function TurnGroup({// the header as the live line; expanded → the small quiet line under the steps.streamingText?: string;}) {+ const { t } = useTranslation();// Turns start COLLAPSED, running or not (owner call 2026-07-14) — the header's live// line is the pulse; expanding is opt-in.const rows = buildRows(items);@@ -229,7 +235,7 @@ function TurnGroup({const nSteps = rows.filter((r) => r.type !== "narr").length;const declined = items.filter((it) => it.kind === "approval" && it.resolved === "deny").length;const hiddenTotal = tools.reduce((n, t) => n + (t.hidden || 0), 0);- const stepsLabel = `${nSteps} step${nSteps === 1 ? "" : "s"}`;+ const stepsLabel = t("transcript.turn.steps_label", { count: nSteps });return (<details className="stepgroup" open={open}>@@ -242,12 +248,12 @@ function TurnGroup({><span className={"chev inline-block transition-transform" + (open ? " rotate-90" : "")}>›</span><span>- <span>{running ? `Running ${stepsLabel}…` : stepsLabel}</span>+ <span>{running ? t("transcript.turn.running", { label: stepsLabel }) : stepsLabel}</span>{declined > 0 && (<>{" · "}<span className="text-danger" data-testid="stepgroup-declined">- {declined} declined+ {t("transcript.turn.declined", { count: declined })}</span></>)}@@ -255,7 +261,7 @@ function TurnGroup({<>{" · "}<span className="text-warnInk" data-testid="stepgroup-hidden">- {hiddenTotal} hidden by your filters+ {t("transcript.turn.hidden", { count: hiddenTotal })}</span></>)}@@ -327,6 +333,7 @@ export function retryAnchor(items: Item[]): number {}export function Transcript({ items, running, streamingText, onRetry }: Props) {+ const { t } = useTranslation();// §33 grouping: a turn = the maximal run of assistant/tool/resolved-approval items between// breakers (user, connector, notices, plan/dir requests…). Trailing assistant texts are the// ANSWER and render as bubbles after the group; interior assistant texts are narration and@@ -413,7 +420,7 @@ export function Transcript({ items, running, streamingText, onRetry }: Props) {);return (<div className="group bubble-assistant" key={bi}>- <div className="who">assistant</div>+ <div className="who">{t("transcript.who_assistant")}</div>{item.reasoning && <ThinkingBlock text={item.reasoning} />}<Markdown text={item.text} /><BubbleMeta text={item.text} ts={item.ts} align="left" />@@ -426,7 +433,7 @@ export function Transcript({ items, running, streamingText, onRetry }: Props) {<span className={"status " + (item.resolved === "granted" ? "ok" : "denied")}>{item.resolved === "granted" ? "✓" : "✕"}</span>- <span>{item.resolved === "granted" ? "Granted folder access" : "Declined folder access"}</span>+ <span>{item.resolved === "granted" ? t("transcript.dir_granted") : t("transcript.dir_declined")}</span>{item.path && <span className="dim">{item.path}</span>}</div>);@@ -434,13 +441,13 @@ export function Transcript({ items, running, streamingText, onRetry }: Props) {if (!item.resolved) return null; // pending plan renders in the composer headreturn (<div className="bubble-assistant" key={bi}>- <div className="who">proposed plan</div>+ <div className="who">{t("transcript.plan_proposed")}</div><Markdown text={item.plan} /><div className="approval-inline"><span className={"status " + (item.resolved === "approved" ? "ok" : "denied")}>{item.resolved === "approved" ? "✓" : "✕"}</span>- <span>{item.resolved === "approved" ? "Plan approved" : "Sent back with feedback"}</span>+ <span>{item.resolved === "approved" ? t("transcript.plan_approved") : t("transcript.plan_rejected")}</span></div></div>);@@ -450,7 +457,7 @@ export function Transcript({ items, running, streamingText, onRetry }: Props) {{item.text}{item.retriable && !running && onRetry && block.i === retryAnchor(items) && (<button className="btn ml-2" data-testid="notice-retry" onClick={onRetry}>- Retry+ {t("transcript.retry")}</button>)}</div>diff --git a/surfaces/gui/src/components/UpdateBanner.tsx b/surfaces/gui/src/components/UpdateBanner.tsxindex 4aa6b705..2e405fd6 100644--- a/surfaces/gui/src/components/UpdateBanner.tsx+++ b/surfaces/gui/src/components/UpdateBanner.tsx@@ -1,4 +1,5 @@import { useEffect, useRef, useState } from "react";+import { useTranslation } from "react-i18next";import {checkForUpdate,clearPendingUpdate,@@ -31,6 +32,7 @@ const RECHECK_MS = 30 * 60_000;type Phase = "downloading" | "ready" | "fallback" | "installing" | "error";export function UpdateBanner() {+ const { t } = useTranslation();const [update, setUpdate] = useState<UpdateInfo | null>(null);const [phase, setPhase] = useState<Phase>("downloading");// Per-run, per-version dismissal — no localStorage, so a restart re-offers, and a@@ -88,13 +90,13 @@ export function UpdateBanner() {role="status"data-testid="update-banner">- <div className="text-[13px] font-semibold">Update available</div>+ <div className="text-[13px] font-semibold">{t("update.banner_title")}</div><div className="text-[12px] text-muted mt-0.5">- OpenWorker v{update.version} is ready to install.+ {t("update.ready", { version: update.version })}</div>{phase === "error" && (<div className="text-[11.5px] text-warnInk mt-1.5">- The update couldn't be installed — it will be offered again next launch.+ {t("update.install_failed")}</div>)}<div className="flex items-center gap-2 mt-2.5">@@ -104,7 +106,7 @@ export function UpdateBanner() {disabled={busy}data-testid="update-install">- {busy ? "Downloading…" : "Restart to update"}+ {busy ? t("update.downloading") : t("update.restart_to_update")}</button><buttonclassName="px-2 py-1.5 text-[12.5px] text-faint hover:text-muted"@@ -119,7 +121,7 @@ export function UpdateBanner() {disabled={phase === "installing"}data-testid="update-later">- Later+ {t("update.later")}</button></div></div>diff --git a/surfaces/gui/src/components/WorkspaceTrustPrompt.tsx b/surfaces/gui/src/components/WorkspaceTrustPrompt.tsxindex f2ac6edb..12582870 100644--- a/surfaces/gui/src/components/WorkspaceTrustPrompt.tsx+++ b/surfaces/gui/src/components/WorkspaceTrustPrompt.tsx@@ -1,4 +1,5 @@import { useState } from "react";+import { useTranslation } from "react-i18next";import { setWorkspaceTrusted, type WorkspaceCommandTrust } from "../api";export function WorkspaceTrustPrompt({@@ -8,6 +9,7 @@ export function WorkspaceTrustPrompt({request: WorkspaceCommandTrust;onClose: () => void;}) {+ const { t } = useTranslation();const [saving, setSaving] = useState(false);const [error, setError] = useState("");@@ -17,7 +19,7 @@ export function WorkspaceTrustPrompt({const result = await setWorkspaceTrusted(request.workspace, true).catch(() => null);setSaving(false);if (!result?.ok) {- setError(result?.error || "Could not save workspace trust.");+ setError(result?.error || t("workspace_trust.save_failed"));return;}onClose();@@ -27,11 +29,9 @@ export function WorkspaceTrustPrompt({<div className="gate-overlay" role="dialog" aria-modal="true" aria-labelledby="workspace-trust-title"><div className="gate max-w-[560px]"><div className="gate-mark">✦</div>- <h2 id="workspace-trust-title">Trust this workspace’s commands?</h2>+ <h2 id="workspace-trust-title">{t("workspace_trust.title")}</h2><p className="gate-sub">- This project asks OpenWorker to run the commands below without individual approval.- Trust applies to future configuration changes at this exact folder until you revoke it- in Settings.+ {t("workspace_trust.sub")}</p><div className="rounded-lg border border-line bg-paper px-3 py-2.5 max-h-48 overflow-y-auto">{request.requested_commands.map((command) => (@@ -44,10 +44,10 @@ export function WorkspaceTrustPrompt({{error && <div className="gate-error">{error}</div>}<div className="gate-foot justify-end gap-2"><button className="btn" onClick={onClose} disabled={saving}>- Keep asking+ {t("workspace_trust.keep_asking")}</button><button className="btn primary" onClick={() => void trust()} disabled={saving}>- {saving ? "Saving…" : "Trust workspace"}+ {saving ? t("workspace_trust.saving") : t("workspace_trust.trust")}</button></div></div>diff --git a/surfaces/gui/src/components/connectors/AccountsDetail.tsx b/surfaces/gui/src/components/connectors/AccountsDetail.tsxindex 6228876e..c0526dba 100644--- a/surfaces/gui/src/components/connectors/AccountsDetail.tsx+++ b/surfaces/gui/src/components/connectors/AccountsDetail.tsx@@ -1,4 +1,5 @@import { useState } from "react";+import { useTranslation } from "react-i18next";import {connectManaged,disconnectAccount,@@ -19,6 +20,7 @@ import { FOOT, GRP, GRP_H, PILL_ACCENT, ROW, TAG_ACCENT, XBTN } from "./ui";// always available underneath — signed out or in, local-only stays first-class.export function AccountsDetail({ c, cloud, slack: _slack, onChanged }: DetailProps) {+ const { t } = useTranslation();const [busy, setBusy] = useState(false);const [showManual, setShowManual] = useState(false);const accounts = (c.accounts ?? []) as AccountRow[];@@ -43,11 +45,11 @@ export function AccountsDetail({ c, cloud, slack: _slack, onChanged }: DetailPro<><span className="w-2 h-2 rounded-full bg-ok" /><span data-testid="accounts-status">- {accounts.length} account{accounts.length === 1 ? "" : "s"}+ {t("connector.account_count", { count: accounts.length })}</span></>) : (- <span>Not connected</span>+ <span>{t("connector.not_connected")}</span>)}</div></div>@@ -58,17 +60,17 @@ export function AccountsDetail({ c, cloud, slack: _slack, onChanged }: DetailProdisabled={busy}title={c.managed && !cloud?.signed_in- ? "Sign in to OpenWorker Cloud for one-click — or add a token below"+ ? t("cloud.sign_in_oneclick"): ""}>- {busy ? "Check your browser…" : "+ Add account"}+ {busy ? t("cloud.check_browser") : t("accounts.add_account")}</button></div>{accounts.length > 0 && (<>- <div className={GRP_H + " !mt-0"}>Accounts</div>+ <div className={GRP_H + " !mt-0"}>{t("accounts.accounts")}</div><div className={GRP} data-testid="accounts-group">{accounts.map((a) => (<Row key={a.account_id} connector={c.name} a={a} onChanged={onChanged} />@@ -80,7 +82,7 @@ export function AccountsDetail({ c, cloud, slack: _slack, onChanged }: DetailPro{(showManual || !c.connected) && (<><div className={GRP_H + (accounts.length ? "" : " !mt-0")}>- {c.managed ? "Add manually" : "Add an account"}+ {c.managed ? t("accounts.add_manually") : t("accounts.add_an_account")}</div><div className={GRP} data-testid="accounts-manual-add"><div className="px-1.5 py-1">@@ -99,8 +101,7 @@ export function AccountsDetail({ c, cloud, slack: _slack, onChanged }: DetailPro<ToolsDisclosure c={c} onChanged={onChanged} /><div className={FOOT + " mt-2"}>- Each account stays separate — tool results and approvals name the account- they used.+ {t("accounts.foot")}</div></div>);@@ -115,6 +116,7 @@ function Row({a: AccountRow;onChanged: () => void;}) {+ const { t } = useTranslation();const [busy, setBusy] = useState(false);return (<div className={ROW} data-testid={`account-${a.account_id}`}>@@ -125,7 +127,7 @@ function Row({{a.account_id}</span>)}- {a.default && <span className={TAG_ACCENT}>Default</span>}+ {a.default && <span className={TAG_ACCENT}>{t("connector.default")}</span>}</span>{!a.default && (<button@@ -136,12 +138,12 @@ function Row({onChanged();}}>- Make default+ {t("connector.make_default")}</button>)}<buttonclassName={XBTN}- title="Disconnect this account"+ title={t("accounts.disconnect_account_title")}data-testid={`account-disconnect-${a.account_id}`}disabled={busy}onClick={async () => {diff --git a/surfaces/gui/src/components/connectors/AddConnectionModal.tsx b/surfaces/gui/src/components/connectors/AddConnectionModal.tsxindex 94d8372a..183b957e 100644--- a/surfaces/gui/src/components/connectors/AddConnectionModal.tsx+++ b/surfaces/gui/src/components/connectors/AddConnectionModal.tsx@@ -1,4 +1,5 @@import { useEffect, useState } from "react";+import { useTranslation } from "react-i18next";import {connectConnector,connectManaged,@@ -33,6 +34,7 @@ export function AddConnectionModal({onClose: () => void;onChanged: () => void;}) {+ const { t } = useTranslation();// MCP-backed one-click (§42): local OAuth against the vendor's hosted MCP server —// with manual fields alongside (jira, asana) it's a second mode; alone (monday)// it IS the connect flow.@@ -52,20 +54,22 @@ export function AddConnectionModal({return () => window.removeEventListener("keydown", onKey);}, [onClose]);+ const defaultTitle = t("modal.connect_title", { title: c.title });+return (<div className="fixed inset-0 z-40" data-testid="add-connection-modal"><div className="absolute inset-0 bg-black/30" onClick={onClose} /><divclassName="absolute left-1/2 top-[14%] -translate-x-1/2 w-[480px] max-w-[calc(100vw-2rem)] bg-panel rounded-2xl border border-line shadow-2xl"role="dialog"- aria-label={title || `Connect ${c.title}`}+ aria-label={title || defaultTitle}><div className="flex items-center gap-3 px-5 pt-5"><ConnectorBadge connector={c} size={34} title={c.title} /><div className="flex-1 font-semibold text-[16px] tracking-tight">- {title || `Connect ${c.title}`}+ {title || defaultTitle}</div>- <button className="text-faint hover:text-ink text-[18px] leading-none" onClick={onClose} title="Close">+ <button className="text-faint hover:text-ink text-[18px] leading-none" onClick={onClose} title={t("modal.close")}>×</button></div>@@ -84,7 +88,7 @@ export function AddConnectionModal({}onClick={() => setPane(p)}>- {p === "one" ? "One click" : "Manual"}+ {p === "one" ? t("modal.one_click") : t("modal.manual")}</button>))}</div>@@ -128,6 +132,7 @@ export function AddConnectionModal({// client secret, no broker, no OpenWorker sign-in required). Poll until the card// flips to connected, then close.function McpOneClick({ c, onConnected }: { c: Connector; onConnected: () => void }) {+ const { t: tt } = useTranslation();const [waiting, setWaiting] = useState(false);const [error, setError] = useState<string | null>(null);useEffect(() => {@@ -146,14 +151,12 @@ function McpOneClick({ c, onConnected }: { c: Connector; onConnected: () => voidsetError(null);const res = await connectMcpBacked(c.name);if (res.ok) setWaiting(true);- else setError(res.error || "could not start the connect");+ else setError(res.error || tt("modal.could_not_start_connect"));};return (<div className="px-5 py-4 space-y-3"><p className="text-[13px] text-muted">- Opens {c.title} in your browser — sign in and approve access there. No tokens- typed, and no OpenWorker account needed: the sign-in runs entirely on this- computer.+ {tt("modal.mcp_blurb", { title: c.title })}</p><buttonclassName={PILL_ACCENT + " w-full !py-2"}@@ -161,12 +164,11 @@ function McpOneClick({ c, onConnected }: { c: Connector; onConnected: () => voidonClick={go}disabled={waiting}>- {waiting ? "Check your browser…" : `Connect ${c.title}`}+ {waiting ? tt("cloud.check_browser") : tt("modal.connect_title", { title: c.title })}</button>{error && <div className="text-[12.5px] text-danger">{error}</div>}<p className="text-[12px] text-faint text-center flex items-center justify-center gap-1.5">- <span className={TAG_ACCENT}>Recommended</span> agents get a curated set of{" "}- {c.title} tools · tokens stay on this computer+ <span className={TAG_ACCENT}>{tt("modal.recommended")}</span> {tt("modal.mcp_recommended_foot", { title: c.title })}</p></div>);@@ -175,19 +177,19 @@ function McpOneClick({ c, onConnected }: { c: Connector; onConnected: () => void// One-click pane for generic managed connectors (Notion, Attio, …): sign in// with the service in the browser; each consent lands as its own account.function GenericOneClick({ c, cloud }: { c: Connector; cloud: CloudStatus | null }) {+ const { t: tt } = useTranslation();const [waiting, setWaiting] = useState(false);const [error, setError] = useState<string | null>(null);const go = async () => {setError(null);const res = await connectManaged(c.name);if (res.ok) setWaiting(true);- else setError(res.error || "could not start the connect");+ else setError(res.error || tt("modal.could_not_start_connect"));};return (<div className="px-5 py-4 space-y-3"><p className="text-[13px] text-muted">- Opens {c.title} in your browser — approve access there. No tokens typed; connect- again with another account to add it alongside.+ {tt("modal.generic_blurb", { title: c.title })}</p>{cloud?.signed_in ? (<button@@ -196,7 +198,7 @@ function GenericOneClick({ c, cloud }: { c: Connector; cloud: CloudStatus | nullonClick={go}disabled={waiting}>- {waiting ? "Check your browser…" : `Connect ${c.title}`}+ {waiting ? tt("cloud.check_browser") : tt("modal.connect_title", { title: c.title })}</button>) : cloud ? (<CloudSignInInline />@@ -205,30 +207,30 @@ function GenericOneClick({ c, cloud }: { c: Connector; cloud: CloudStatus | null)}{error && <div className="text-[12.5px] text-danger">{error}</div>}<p className="text-[12px] text-faint text-center flex items-center justify-center gap-1.5">- <span className={TAG_ACCENT}>Recommended</span> tokens stay on this computer+ <span className={TAG_ACCENT}>{tt("modal.recommended")}</span> {tt("modal.tokens_stay_local")}</p></div>);}function SlackOneClick({ c, cloud }: { c: Connector; cloud: CloudStatus | null }) {+ const { t: tt } = useTranslation();const [waiting, setWaiting] = useState(false);const [error, setError] = useState<string | null>(null);const go = async () => {setError(null);const res = await connectManaged(c.name);if (res.ok) setWaiting(true);- else setError(res.error || "could not start the install");+ else setError(res.error || tt("modal.could_not_start_install"));};return (<div className="px-5 py-4 space-y-3"><p className="text-[13px] text-muted">- Opens Slack in your browser — approve @ocw for the workspace. No tokens; works for any- number of workspaces.+ {tt("modal.slack_blurb")}</p>{cloud?.signed_in ? (<button className={PILL_ACCENT + " w-full !py-2"} data-testid="modal-add-to-slack" onClick={go} disabled={waiting}>- {waiting ? "Check your browser…" : "Add to Slack"}+ {waiting ? tt("cloud.check_browser") : tt("modal.add_to_slack")}</button>) : cloud ? (<CloudSignInInline />@@ -237,34 +239,33 @@ function SlackOneClick({ c, cloud }: { c: Connector; cloud: CloudStatus | null })}{error && <div className="text-[12.5px] text-danger">{error}</div>}<p className="text-[12px] text-faint text-center flex items-center justify-center gap-1.5">- <span className={TAG_ACCENT}>Recommended</span> relay · tokens stay on this computer+ <span className={TAG_ACCENT}>{tt("modal.recommended")}</span> {tt("modal.slack_recommended_foot")}</p></div>);}function GithubOneClick({ c, cloud }: { c: Connector; cloud: CloudStatus | null }) {+ const { t: tt } = useTranslation();const [waiting, setWaiting] = useState(false);const [error, setError] = useState<string | null>(null);const go = async () => {setError(null);const res = await connectManaged(c.name);if (res.ok) setWaiting(true);- else setError(res.error || "could not start the install");+ else setError(res.error || tt("modal.could_not_start_install"));};return (<div className="px-5 py-4 space-y-3"><p className="text-[13px] text-muted">- Opens GitHub in your browser — approve OpenWorker there. An existing @ocw-agent App- installation links right up; otherwise you'll pick an account and repos. No tokens- typed; the agent acts as ocw-agent[bot].+ {tt("modal.github_blurb")}</p>{cloud?.signed_in ? (/* One button: the broker is authorize-first — it links an existing installation orredirects the same tab on to the install page (the old "Already installed? Linkit" question and the Configure dead-end are gone). */<button className={PILL_ACCENT + " w-full !py-2"} data-testid="modal-install-github-app" onClick={() => go()} disabled={waiting}>- {waiting ? "Check your browser…" : "Connect GitHub"}+ {waiting ? tt("cloud.check_browser") : tt("modal.connect_github")}</button>) : cloud ? (<CloudSignInInline />@@ -273,13 +274,14 @@ function GithubOneClick({ c, cloud }: { c: Connector; cloud: CloudStatus | null)}{error && <div className="text-[12.5px] text-danger">{error}</div>}<p className="text-[12px] text-faint text-center flex items-center justify-center gap-1.5">- <span className={TAG_ACCENT}>Recommended</span> relay · short-lived tokens, never stored+ <span className={TAG_ACCENT}>{tt("modal.recommended")}</span> {tt("modal.github_recommended_foot")}</p></div>);}function HubSpotOneClick({ c, cloud }: { c: Connector; cloud: CloudStatus | null }) {+ const { t: tt } = useTranslation();const [access, setAccess] = useState<"read" | "write">("read");const [waiting, setWaiting] = useState(false);const [error, setError] = useState<string | null>(null);@@ -287,19 +289,18 @@ function HubSpotOneClick({ c, cloud }: { c: Connector; cloud: CloudStatus | nullsetError(null);const res = await connectManaged(c.name, { access });if (res.ok) setWaiting(true);- else setError(res.error || "could not start the connect");+ else setError(res.error || tt("modal.could_not_start_connect"));};return (<div className="px-5 py-4 space-y-3"><p className="text-[13px] text-muted">- Opens HubSpot in your browser — pick the portal there. What agents may do is chosen- NOW, at consent:+ {tt("modal.hubspot_blurb")}</p><div className="space-y-1.5" data-testid="hubspot-access">{([- ["read", "Read-only", "search and read contacts, companies, deals, tickets"],- ["write", "Read & write", "adds: log notes and tasks, update records, create contacts — never delete"],+ ["read", tt("modal.hubspot_readonly"), tt("modal.hubspot_readonly_blurb")],+ ["write", tt("modal.hubspot_readwrite"), tt("modal.hubspot_readwrite_blurb")],] as const).map(([value, label, blurb]) => (<label key={value} className="flex items-start gap-2 text-[13px] cursor-pointer">@@ -320,7 +321,7 @@ function HubSpotOneClick({ c, cloud }: { c: Connector; cloud: CloudStatus | null</div>{cloud?.signed_in ? (<button className={PILL_ACCENT + " w-full !py-2"} data-testid="modal-connect-hubspot" onClick={go} disabled={waiting}>- {waiting ? "Check your browser…" : "Connect HubSpot"}+ {waiting ? tt("cloud.check_browser") : tt("modal.connect_hubspot")}</button>) : cloud ? (<CloudSignInInline />@@ -329,13 +330,14 @@ function HubSpotOneClick({ c, cloud }: { c: Connector; cloud: CloudStatus | null)}{error && <div className="text-[12.5px] text-danger">{error}</div>}<p className="text-[12px] text-faint text-center">- Works for any number of portals · tokens stay on this computer+ {tt("modal.hubspot_foot")}</p></div>);}function SlackManual({ onConnected }: { onConnected: () => void }) {+ const { t: tt } = useTranslation();const [bot, setBot] = useState("");const [app, setApp] = useState("");const [busy, setBusy] = useState(false);@@ -346,23 +348,23 @@ function SlackManual({ onConnected }: { onConnected: () => void }) {const res = await connectConnector("slack", { bot_token: bot.trim(), app_token: app.trim() });setBusy(false);if (res.ok) onConnected();- else setError(res.error || "could not connect");+ else setError(res.error || tt("modal.could_not_connect"));};return (<div className="px-5 py-4 space-y-3"><ol className="list-decimal pl-4 text-[13px] text-muted space-y-1">- <li>Create an app at api.slack.com/apps</li>- <li>Enable Socket Mode, add bot scopes, install it to your workspace</li>- <li>Paste both tokens</li>+ <li>{tt("modal.slack_manual_step1")}</li>+ <li>{tt("modal.slack_manual_step2")}</li>+ <li>{tt("modal.slack_manual_step3")}</li></ol>- <input className={INPUT} type="password" placeholder="Bot token · xoxb-…" value={bot} spellCheck={false} onChange={(e) => setBot(e.target.value)} />- <input className={INPUT} type="password" placeholder="App token · xapp-…" value={app} spellCheck={false} onChange={(e) => setApp(e.target.value)} />+ <input className={INPUT} type="password" placeholder={tt("modal.bot_token_placeholder")} value={bot} spellCheck={false} onChange={(e) => setBot(e.target.value)} />+ <input className={INPUT} type="password" placeholder={tt("modal.app_token_placeholder")} value={app} spellCheck={false} onChange={(e) => setApp(e.target.value)} /><button className={PILL_LINE + " w-full !py-2"} onClick={submit} disabled={busy || !bot.trim() || !app.trim()}>- {busy ? "Validating…" : "Connect"}+ {busy ? tt("modal.validating") : tt("modal.connect")}</button>{error && <div className="text-[12.5px] text-danger">{error}</div>}<p className="text-[12px] text-warnInk text-center">- One mode at a time — this pauses any relay workspaces.+ {tt("modal.slack_manual_pause_note")}</p></div>);diff --git a/surfaces/gui/src/components/connectors/AvailableDetail.tsx b/surfaces/gui/src/components/connectors/AvailableDetail.tsxindex ed487306..62085845 100644--- a/surfaces/gui/src/components/connectors/AvailableDetail.tsx+++ b/surfaces/gui/src/components/connectors/AvailableDetail.tsx@@ -1,4 +1,5 @@import { useState } from "react";+import { useTranslation } from "react-i18next";import { type CloudStatus, type Connector } from "../../api";import { ConnectorBadge } from "../../connectors/ConnectorIcon";import { AddConnectionModal } from "./AddConnectionModal";@@ -19,6 +20,7 @@ export function AvailableDetail({cloud: CloudStatus | null;onChanged: () => void;}) {+ const { t: tt } = useTranslation();const [connecting, setConnecting] = useState(false);const [showTools, setShowTools] = useState(false);const tools = c.tools || [];@@ -36,7 +38,7 @@ export function AvailableDetail({data-testid="available-connect"onClick={() => setConnecting(true)}>- Connect+ {tt("available.connect")}</button></div>@@ -44,7 +46,7 @@ export function AvailableDetail({{(c.access?.length ?? 0) > 0 && (<>- <div className={GRP_H}>Access</div>+ <div className={GRP_H}>{tt("available.access")}</div><div className={GRP} data-testid="available-access">{c.access!.map((line) => (<div key={line} className={ROW + " !min-h-[36px] !py-2 text-[13px]"}>@@ -53,14 +55,14 @@ export function AvailableDetail({))}</div><div className={FOOT}>- Keys and tokens are stored only on this computer. Disconnect anytime.+ {tt("available.access_foot")}</div></>)}{tools.length > 0 && (<>- <div className={GRP_H}>Tools</div>+ <div className={GRP_H}>{tt("available.tools")}</div><div className={GRP}><buttonclassName={ROW + " w-full text-left hover:bg-paper/60 text-[13px]"}@@ -68,18 +70,18 @@ export function AvailableDetail({onClick={() => setShowTools((v) => !v)}><span className="min-w-0 flex-1 text-muted">- {tools.length} tool{tools.length === 1 ? "" : "s"} this connector adds+ {tt("available.tools_added", { count: tools.length })}</span>- <span className="text-faint text-[13px] shrink-0">{showTools ? "Hide" : "View"}</span>+ <span className="text-faint text-[13px] shrink-0">{showTools ? tt("available.hide") : tt("available.view")}</span></button>{showTools &&- tools.map((t) => (- <div key={t.name} className={ROW + " !min-h-[38px]"}>+ tools.map((tool) => (+ <div key={tool.name} className={ROW + " !min-h-[38px]"}><span className="min-w-0 flex-1">- <span className="text-[13px]">{t.label}</span>- <span className="block text-[12px] text-muted">{t.description}</span>+ <span className="text-[13px]">{tool.label}</span>+ <span className="block text-[12px] text-muted">{tool.description}</span></span>- {t.kind !== "read" && <span className={TAG_QUIET}>asks first</span>}+ {tool.kind !== "read" && <span className={TAG_QUIET}>{tt("available.asks_first")}</span>}</div>))}</div>diff --git a/surfaces/gui/src/components/connectors/CalendarDetail.tsx b/surfaces/gui/src/components/connectors/CalendarDetail.tsxindex 5109a0c4..2a233340 100644--- a/surfaces/gui/src/components/connectors/CalendarDetail.tsx+++ b/surfaces/gui/src/components/connectors/CalendarDetail.tsx@@ -1,4 +1,5 @@import { useState } from "react";+import { useTranslation } from "react-i18next";import {connectManaged,disconnectGcalAccount,@@ -15,6 +16,7 @@ import { FOOT, GRP, GRP_H, PILL_ACCENT, ROW, TAG_ACCENT, TAG_WARN, XBTN } from "// Adding an account launches managed OAuth DIRECTLY (one connect mode, no modal).export function CalendarDetail({ c, cloud, slack: _slack, onChanged }: DetailProps) {+ const { t } = useTranslation();const [busy, setBusy] = useState(false);const accounts = (c.accounts ?? []) as GmailAccount[]; // email-keyed (pre-generic-layer shape)@@ -27,7 +29,7 @@ export function CalendarDetail({ c, cloud, slack: _slack, onChanged }: DetailProreturn (<div data-testid="gcal-detail"><div className="flex items-center gap-3.5 mb-5">- <ConnectorBadge connector={c} size={44} title="Google Calendar" />+ <ConnectorBadge connector={c} size={44} title={t("calendar.google_calendar")} /><div className="min-w-0 flex-1"><h2 className="text-[20px] font-semibold tracking-tight leading-tight">Google Calendar@@ -37,11 +39,11 @@ export function CalendarDetail({ c, cloud, slack: _slack, onChanged }: DetailPro<><span className="w-2 h-2 rounded-full bg-ok" /><span data-testid="gcal-status">- {accounts.length} account{accounts.length === 1 ? "" : "s"}+ {t("connector.account_count", { count: accounts.length })}</span></>) : (- <span>Not connected</span>+ <span>{t("connector.not_connected")}</span>)}</div></div>@@ -52,28 +54,28 @@ export function CalendarDetail({ c, cloud, slack: _slack, onChanged }: DetailProdisabled={busy || !cloud?.signed_in || c.managed_paused}title={c.managed_paused- ? "One-click Google sign-in is coming soon"+ ? t("calendar.coming_soon_title"): cloud?.signed_in? ""- : "Sign in to OpenWorker Cloud first"+ : t("cloud.sign_in_first")}>- {c.managed_paused ? "+ Add account · Coming soon" : busy ? "Check your browser…" : "+ Add account"}+ {c.managed_paused ? t("calendar.add_account_coming_soon") : busy ? t("cloud.check_browser") : t("calendar.add_account")}</button></div>{!c.connected && (<div className={GRP}><div className={ROW + " text-[12.5px] text-muted"}>- Sign in with Google — each account stays separate, agents say which one they use.- {cloud?.signed_in ? "" : " Requires cloud sign-in."}+ {t("calendar.setup_blurb")}+ {cloud?.signed_in ? "" : " " + t("calendar.requires_cloud")}</div></div>)}{accounts.length > 0 && (<>- <div className={GRP_H + " !mt-0"}>Accounts</div>+ <div className={GRP_H + " !mt-0"}>{t("calendar.accounts")}</div><div className={GRP} data-testid="gcal-accounts">{accounts.map((a) => (<AccountRow key={a.email} a={a} onChanged={onChanged} />@@ -84,21 +86,21 @@ export function CalendarDetail({ c, cloud, slack: _slack, onChanged }: DetailPro<ToolsDisclosure c={c} onChanged={onChanged} /><div className={FOOT + " mt-2"}>- Creating, changing, or deleting events always asks for your approval first, and the- approval names the account.+ {t("calendar.events_approval_foot")}</div></div>);}function AccountRow({ a, onChanged }: { a: GmailAccount; onChanged: () => void }) {+ const { t } = useTranslation();const [busy, setBusy] = useState(false);return (<div className={ROW} data-testid={`gcal-account-${a.email}`}><span className="min-w-0 flex-1 flex items-center gap-2"><span className="text-[13px] font-medium truncate">{a.email}</span>- {a.default && <span className={TAG_ACCENT}>Default</span>}- {a.needs_reauth && <span className={TAG_WARN}>⚠ Sign in again</span>}+ {a.default && <span className={TAG_ACCENT}>{t("connector.default")}</span>}+ {a.needs_reauth && <span className={TAG_WARN}>{t("calendar.sign_in_again")}</span>}</span>{!a.default && (<button@@ -109,12 +111,12 @@ function AccountRow({ a, onChanged }: { a: GmailAccount; onChanged: () => void }onChanged();}}>- Make default+ {t("connector.make_default")}</button>)}<buttonclassName={XBTN}- title="Disconnect this account"+ title={t("calendar.disconnect_account_title")}data-testid={`gcal-disconnect-${a.email}`}disabled={busy}onClick={async () => {diff --git a/surfaces/gui/src/components/connectors/CloudSignIn.tsx b/surfaces/gui/src/components/connectors/CloudSignIn.tsxindex f8349a91..c1edcc37 100644--- a/surfaces/gui/src/components/connectors/CloudSignIn.tsx+++ b/surfaces/gui/src/components/connectors/CloudSignIn.tsx@@ -1,4 +1,5 @@import { useEffect, useRef, useState } from "react";+import { useTranslation } from "react-i18next";import { announceCloudChanged, cloudLogin, waitForCloudSignIn } from "../../api";// The signed-out state of every one-click pane: a REAL sign-in button, not a@@ -8,6 +9,7 @@ import { announceCloudChanged, cloudLogin, waitForCloudSignIn } from "../../api"// relying on "some other section's 5s poll" left the rail stuck on the prompt// (FB-013).export function CloudSignInInline({ blurb }: { blurb?: string }) {+ const { t } = useTranslation();const [waiting, setWaiting] = useState(false);const cancelRef = useRef<(() => void) | null>(null);useEffect(() => () => cancelRef.current?.(), []);@@ -26,7 +28,7 @@ export function CloudSignInInline({ blurb }: { blurb?: string }) {});}}>- {waiting ? "Check your browser…" : "Sign in to OpenWorker Cloud"}+ {waiting ? t("cloud.check_browser") : t("cloud.sign_in")}</button><div className="text-[11.5px] text-faint">{blurb || "Sign-in unlocks one-click connects — or switch to Manual, which works without it."}@@ -39,12 +41,13 @@ export function CloudSignInInline({ blurb }: { blurb?: string }) {// Rendering the sign-in prompt here told signed-in users they weren't (FB-013) —// pending must look like pending.export function CloudStatusPending() {+ const { t } = useTranslation();return (<divclassName="text-[12px] text-faint py-2 text-center"data-testid="cloud-status-pending">- Checking OpenWorker Cloud sign-in…+ {t("cloud.checking")}</div>);}diff --git a/surfaces/gui/src/components/connectors/ConnectorsList.tsx b/surfaces/gui/src/components/connectors/ConnectorsList.tsxindex 3d2b5d31..5f9db723 100644--- a/surfaces/gui/src/components/connectors/ConnectorsList.tsx+++ b/surfaces/gui/src/components/connectors/ConnectorsList.tsx@@ -1,4 +1,5 @@import { useState } from "react";+import { useTranslation } from "react-i18next";import { type CloudStatus, type Connector, type SlackStatus } from "../../api";import { ConnectorBadge } from "../../connectors/ConnectorIcon";import { AddConnectionModal } from "./AddConnectionModal";@@ -23,6 +24,7 @@ export function ConnectorsList({onOpen: (name: string) => void;onChanged: () => void;}) {+ const { t } = useTranslation();const [filter, setFilter] = useState("");const [showAll, setShowAll] = useState(false);const [connecting, setConnecting] = useState<string | null>(null);@@ -38,7 +40,7 @@ export function ConnectorsList({<div><div className="flex items-center justify-end mb-4"><input- placeholder="Search"+ placeholder={t("connector.search")}value={filter}onChange={(e) => setFilter(e.target.value)}className="w-44 px-3.5 py-1.5 rounded-full border border-line bg-panel text-[13px] outline-none focus:border-accent"@@ -49,7 +51,7 @@ export function ConnectorsList({sign-in home, and the connect modals keep their inline sign-in panes. */}{connected.length > 0 && (<>- <div className={GRP_H + " !mt-0"}>Connected · {connected.length}</div>+ <div className={GRP_H + " !mt-0"}>{t("connector.connected_count", { count: connected.length })}</div><div className={GRP}>{connected.map((c) => (<button@@ -61,9 +63,9 @@ export function ConnectorsList({<ConnectorBadge connector={c} size={34} title={c.title} /><span className="min-w-0 flex-1"><span className="font-medium text-[13.5px]">{c.title}</span>- <span className="block text-[12px] text-muted">{statusLine(c)}</span>+ <span className="block text-[12px] text-muted">{statusLine(c, t)}</span></span>- {healthChip(c, slack)}+ {healthChip(c, slack, t)}<span className="text-faint text-[15px] shrink-0">›</span></button>))}@@ -71,7 +73,7 @@ export function ConnectorsList({</>)}- <div className={GRP_H}>Available</div>+ <div className={GRP_H}>{t("connector.available")}</div><div className={GRP}>{shown.map((c) => (/* The row navigates to the pre-connect detail page (§38); the pill@@ -95,19 +97,19 @@ export function ConnectorsList({setConnecting(c.name);}}>- Connect+ {t("connector.connect")}</span></button>))}{shown.length === 0 && (- <div className={ROW + " text-[12.5px] text-muted"}>Nothing matches.</div>+ <div className={ROW + " text-[12.5px] text-muted"}>{t("connector.nothing_matches")}</div>)}</div>{!showAll && !q && available.length > AVAILABLE_FOLD && (<div className={FOOT}>- {available.length - AVAILABLE_FOLD} more ·{" "}+ {t("connector.more_count", { count: available.length - AVAILABLE_FOLD })}{" "}<button className="text-muted hover:text-ink" onClick={() => setShowAll(true)}>- show all+ {t("connector.show_all")}</button></div>)}@@ -124,31 +126,31 @@ export function ConnectorsList({);}-function statusLine(c: Connector): string {+function statusLine(c: Connector, t: (k: string, opts?: Record<string, unknown>) => string): string {if (c.name === "slack" && c.mode === "relay") {const n = c.workspaces?.length ?? 0;- return `${n} workspace${n === 1 ? "" : "s"} · relay`;+ return t("connector.slack_status", { count: n });}- if ((c.accounts?.length ?? 0) > 1) return `${c.accounts!.length} accounts`;- if ((c.portals?.length ?? 0) > 1) return `${c.portals!.length} portals`;- if (c.auth === "none") return "Built in";- return c.account || "Connected";+ if ((c.accounts?.length ?? 0) > 1) return t("connector.account_count", { count: c.accounts!.length });+ if ((c.portals?.length ?? 0) > 1) return t("connector.portal_count", { count: c.portals!.length });+ if (c.auth === "none") return t("connector.built_in");+ return c.account || t("connector.connected");}-function healthChip(c: Connector, slack: SlackStatus | null) {+function healthChip(c: Connector, slack: SlackStatus | null, t: (k: string, opts?: Record<string, unknown>) => string) {// Slack relay gets a LIVE chip from /v1/connectors/slack/status — problems// surface in the list, never one click deep. Named honestly per layer; we// never claim "Slack↔cloud down" (the desktop can't see that leg).if (c.name === "slack" && c.mode === "relay" && slack) {- if (!slack.signed_in) return <span className={CHIP_WARN}>● Sign-in needed</span>;- if (slack.relay.state === "offline") return <span className={CHIP_OFF}>● Offline</span>;+ if (!slack.signed_in) return <span className={CHIP_WARN}>{"● " + t("connector.sign_in_needed")}</span>;+ if (slack.relay.state === "offline") return <span className={CHIP_OFF}>{"● " + t("connector.offline")}</span>;if (slack.relay.state === "reconnecting")- return <span className={CHIP_WARN}>● Reconnecting</span>;- if (Object.values(slack.teams).some((t) => !t.token_ok))- return <span className={CHIP_WARN}>⚠ Token</span>;- return <span className={CHIP_OK}>● Live</span>;+ return <span className={CHIP_WARN}>{"● " + t("connector.reconnecting")}</span>;+ if (Object.values(slack.teams).some((tm) => !tm.token_ok))+ return <span className={CHIP_WARN}>{"⚠ " + t("connector.token")}</span>;+ return <span className={CHIP_OK}>{"● " + t("connector.live")}</span>;}- if (c.two_way && c.connected) return <span className={CHIP_OK}>● Live</span>;- return <span className={CHIP_OK}>● Ready</span>;+ if (c.two_way && c.connected) return <span className={CHIP_OK}>{"● " + t("connector.live")}</span>;+ return <span className={CHIP_OK}>{"● " + t("connector.ready")}</span>;}diff --git a/surfaces/gui/src/components/connectors/ConnectorsSection.tsx b/surfaces/gui/src/components/connectors/ConnectorsSection.tsxindex 4900b64c..49db012d 100644--- a/surfaces/gui/src/components/connectors/ConnectorsSection.tsx+++ b/surfaces/gui/src/components/connectors/ConnectorsSection.tsx@@ -1,4 +1,5 @@import { useEffect, useState } from "react";+import { useTranslation } from "react-i18next";import {disconnectConnector,getCloudStatus,@@ -50,6 +51,7 @@ const DETAIL_PAGES: Record<string, (p: DetailProps) => JSX.Element> = {};export function ConnectorsSection() {+ const { t: tt } = useTranslation();const [detail, setDetail] = useState<string | null>(null);const [connectors, setConnectors] = useState<Connector[]>([]);const [cloud, setCloud] = useState<CloudStatus | null>(null);@@ -78,10 +80,10 @@ export function ConnectorsSection() {data-testid="connectors-breadcrumb"onClick={() => setDetail(null)}>- ‹ Connectors+ {tt("connector.back_to_connectors")}</button>{!c ? (- <div className="text-[13px] text-muted">Loading…</div>+ <div className="text-[13px] text-muted">{tt("connector.loading")}</div>) : !c.connected ? (/* Pre-connect page (§38). When a connect completes, the poll flipsc.connected and this same route re-renders as the connected page. */@@ -122,6 +124,7 @@ function GenericDetail({onChanged,onGone,}: DetailProps & { onGone: () => void }) {+ const { t } = useTranslation();return (<div><div className="flex items-center gap-3.5 mb-5">@@ -130,7 +133,7 @@ function GenericDetail({<h2 className="text-[20px] font-semibold tracking-tight leading-tight">{c.title}</h2><div className="text-[12.5px] text-muted flex items-center gap-1.5"><span className="w-2 h-2 rounded-full bg-ok" />- {c.account || (c.auth === "none" ? "Built in" : "Connected")}+ {c.account || (c.auth === "none" ? t("connector.built_in") : t("connector.connected"))}</div></div>{c.auth !== "none" && (@@ -142,7 +145,7 @@ function GenericDetail({onGone();}}>- Disconnect+ {t("connector.disconnect")}</button>)}</div>diff --git a/surfaces/gui/src/components/connectors/GithubDetail.tsx b/surfaces/gui/src/components/connectors/GithubDetail.tsxindex bfeb6ed8..aa908ec9 100644--- a/surfaces/gui/src/components/connectors/GithubDetail.tsx+++ b/surfaces/gui/src/components/connectors/GithubDetail.tsx@@ -1,4 +1,5 @@import { useEffect, useState } from "react";+import { useTranslation } from "react-i18next";import {disallowUser,disconnectGithubInstallation,@@ -28,18 +29,19 @@ import { FOOT, GRP, GRP_H, PILL_ACCENT, PILL_LINE, ROW, TAG_WARN, XBTN } from ".const LABEL = "text-[12.5px] text-muted w-24 shrink-0";/** The relay status line, one honest layer at a time (the Slack rule). */-function relayHealth(gh: GithubStatus | null): { dot: string; text: string } {- if (!gh) return { dot: "bg-ok", text: "Live · managed relay" };+function relayHealth(gh: GithubStatus | null, t: (k: string) => string): { dot: string; text: string } {+ if (!gh) return { dot: "bg-ok", text: t("github.relay_live") };if (!gh.signed_in)- return { dot: "bg-warnInk", text: "Sign-in needed — relaying is paused" };+ return { dot: "bg-warnInk", text: t("github.relay_signin_needed") };if (gh.relay.state === "offline")- return { dot: "bg-faint/60", text: "Offline — can't reach the relay" };+ return { dot: "bg-faint/60", text: t("github.relay_offline") };if (gh.relay.state === "reconnecting")- return { dot: "bg-warnInk", text: "Reconnecting to the relay…" };- return { dot: "bg-ok", text: "Live · managed relay" };+ return { dot: "bg-warnInk", text: t("github.relay_reconnecting") };+ return { dot: "bg-ok", text: t("github.relay_live") };}export function GithubDetail({ c, cloud, onChanged }: DetailProps) {+ const { t } = useTranslation();const [adding, setAdding] = useState(false);const [subs, setSubs] = useState<Subscription[]>([]);const [status, setStatus] = useState<GithubStatus | null>(null);@@ -70,17 +72,17 @@ export function GithubDetail({ c, cloud, onChanged }: DetailProps) {<><spanclassName={- "w-2 h-2 rounded-full " + (relay ? relayHealth(status).dot : "bg-ok")+ "w-2 h-2 rounded-full " + (relay ? relayHealth(status, t).dot : "bg-ok")}/><span data-testid="github-mode-badge">{relay- ? relayHealth(status).text- : "Connected · personal access token"}+ ? relayHealth(status, t).text+ : t("github.connected_pat")}</span></>) : (- <span>Not connected</span>+ <span>{t("connector.not_connected")}</span>)}</div></div>@@ -90,7 +92,7 @@ export function GithubDetail({ c, cloud, onChanged }: DetailProps) {data-testid="add-installation-btn"onClick={() => setAdding(true)}>- + Add installation+ {t("github.add_installation")}</button>)}</div>@@ -98,9 +100,8 @@ export function GithubDetail({ c, cloud, onChanged }: DetailProps) {{!c.connected && (<div className={GRP}><div className={ROW + " text-[12.5px] text-muted"}>- One @ocw-agent App, installed per account or org — you pick the repos on- GitHub; each installation keeps its own allow-list.- {cloud?.signed_in ? "" : " One-click needs cloud sign-in; a PAT works without it."}+ {t("github.setup_blurb")}+ {cloud?.signed_in ? "" : " " + t("github.setup_cloud_note")}</div></div>)}@@ -120,15 +121,14 @@ export function GithubDetail({ c, cloud, onChanged }: DetailProps) {{c.connected && !relay && (<div className={GRP} data-testid="github-manual-card"><div className={ROW + " text-[12.5px] text-muted"}>- Personal access token · tools only. Install the GitHub App to let- @-mentions and the agent label reach this computer.+ {t("github.manual_card_note")}</div></div>)}{relay && listening.length > 0 && (<>- <div className={GRP_H}>Listening</div>+ <div className={GRP_H}>{t("connector.listening")}</div><div className={GRP}><ListeningRows subs={listening} onChanged={changed} /></div>@@ -138,8 +138,7 @@ export function GithubDetail({ c, cloud, onChanged }: DetailProps) {<ToolsDisclosure c={c} onChanged={onChanged} />{c.connected && relay && (<div className={FOOT + " mt-2"}>- Triggers: @ocw-agent mentions and the “ocw-agent” label. The agent replies as- ocw-agent[bot].+ {t("github.triggers_foot")}</div>)}@@ -147,7 +146,7 @@ export function GithubDetail({ c, cloud, onChanged }: DetailProps) {<AddConnectionModalc={c}cloud={cloud}- title="Add an installation"+ title={t("github.add_installation_title")}onClose={() => setAdding(false)}onChanged={changed}/>@@ -167,6 +166,7 @@ function InstallationGroup({tokenOk: boolean;onChanged: () => void;}) {+ const { t } = useTranslation();const [busy, setBusy] = useState(false);const parked = (c.unauthorized ?? []).filter((m) => m.team_id === inst.installation_id);const empty = inst.allowed_users.length === 0 && parked.length === 0;@@ -184,12 +184,12 @@ function InstallationGroup({<span>{inst.account_login}{" "}<span className="font-normal text-faint" title={`installation ${inst.installation_id}`}>- · {inst.repo_selection === "all" ? "all repos" : "selected repos"}+ · {inst.repo_selection === "all" ? t("github.all_repos") : t("github.selected_repos")}</span></span>{!tokenOk && (<span className={TAG_WARN} data-testid={`token-warn-${inst.installation_id}`}>- ⚠ Installation revoked — reinstall+ {t("github.install_revoked")}</span>)}</div>@@ -197,7 +197,7 @@ function InstallationGroup({{empty ? (<div className={ROW}><span className="min-w-0 flex-1 text-[12.5px] text-muted">- No one allowed yet — @ocw-agent mentions show up here for your OK.+ {t("github.empty_parked_note")}</span><DisconnectBtn id={inst.installation_id} busy={busy} onClick={disconnect} /></div>@@ -223,15 +223,16 @@ function InstallationGroup({}function DisconnectBtn({ id, busy, onClick }: { id: string; busy: boolean; onClick: () => void }) {+ const { t } = useTranslation();return (<buttonclassName="text-[12.5px] text-danger/80 hover:text-danger shrink-0"data-testid={`disconnect-install-${id}`}- title="Stops relaying this installation to this computer. The App stays installed on GitHub."+ title={t("github.disconnect_install_title")}onClick={onClick}disabled={busy}>- {busy ? "Disconnecting…" : "Disconnect installation"}+ {busy ? t("connector.disconnecting") : t("github.disconnect_install")}</button>);}@@ -245,12 +246,13 @@ function PeopleRow({installationId: string;onChanged: () => void;}) {+ const { t } = useTranslation();return (<div className={ROW}>- <span className={LABEL}>People</span>+ <span className={LABEL}>{t("connector.people")}</span><span className="min-w-0 flex-1 flex flex-wrap items-center gap-1.5">{allowed.length === 0 && (- <span className="text-[12px] text-faint">nobody yet — approve a waiting sender below</span>+ <span className="text-[12px] text-faint">{t("github.nobody_yet")}</span>)}{allowed.map((login) => (<span@@ -261,7 +263,7 @@ function PeopleRow({@{login}<buttonclassName={XBTN}- title="remove"+ title={t("common.remove")}onClick={() => disallowUser("github", login, installationId).then(onChanged)}>×@@ -274,35 +276,36 @@ function PeopleRow({}function WaitingRow({ m, onChanged }: { m: ParkedMessage; onChanged: () => void }) {+ const { t } = useTranslation();const act = async (action: "dismiss" | "allow" | "allow_deliver") => {await resolveUnauthorized("github", m.id, action);onChanged();};return (<div className={ROW + " bg-warnSoft/25"} data-testid={`waiting-${m.id}`}>- <span className={LABEL}>Waiting</span>+ <span className={LABEL}>{t("connector.waiting")}</span><span className="min-w-0 flex-1"><span className="font-medium text-[13px]">@{m.user_name || m.user_id}</span>{" "}- <span className="text-[12.5px] text-muted">in {m.chat_name || m.chat_id}</span>+ <span className="text-[12.5px] text-muted">{t("connector.in_channel", { name: m.chat_name || m.chat_id })}</span><span className="block text-[12.5px] text-muted truncate">“{m.text}”</span></span><buttonclassName={PILL_ACCENT + " !py-1"}data-testid={`parked-allow-deliver-${m.id}`}- title="Allow the sender and deliver this mention now"+ title={t("github.allow_deliver_title")}onClick={() => act("allow_deliver")}>- Allow & deliver+ {t("connector.allow_deliver")}</button><buttonclassName={PILL_LINE + " !py-1"}data-testid={`parked-allow-${m.id}`}- title="Allow the sender; this mention is discarded"+ title={t("github.allow_discard_title")}onClick={() => act("allow")}>- Allow+ {t("connector.allow")}</button>- <button className={XBTN + " px-1"} data-testid={`parked-dismiss-${m.id}`} title="Dismiss" onClick={() => act("dismiss")}>+ <button className={XBTN + " px-1"} data-testid={`parked-dismiss-${m.id}`} title={t("connector.dismiss")} onClick={() => act("dismiss")}>×</button></div>@@ -310,9 +313,10 @@ function WaitingRow({ m, onChanged }: { m: ParkedMessage; onChanged: () => void}function ListeningRows({ subs, onChanged }: { subs: Subscription[]; onChanged: () => void }) {+ const { t } = useTranslation();return (<div className={ROW} data-testid="listening-github">- <span className={LABEL}>Listening</span>+ <span className={LABEL}>{t("connector.listening")}</span><span className="min-w-0 flex-1 space-y-1">{subs.map((s) => (<span key={s.session_id + s.channel} className="flex items-center gap-2 text-[12.5px]">@@ -325,7 +329,7 @@ function ListeningRows({ subs, onChanged }: { subs: Subscription[]; onChanged: (</span><buttonclassName={XBTN + " ml-auto"}- title="Unsubscribe this session"+ title={t("connector.unsubscribe_title")}onClick={async () => {await unsubscribeChannel(s.session_id, s.channel);onChanged();diff --git a/surfaces/gui/src/components/connectors/GmailDetail.tsx b/surfaces/gui/src/components/connectors/GmailDetail.tsxindex 3fd95752..da57a168 100644--- a/surfaces/gui/src/components/connectors/GmailDetail.tsx+++ b/surfaces/gui/src/components/connectors/GmailDetail.tsx@@ -1,4 +1,5 @@import { useState } from "react";+import { useTranslation } from "react-i18next";import {connectManaged,disconnectGmailAccount,@@ -19,6 +20,7 @@ import { FOOT, GRP, GRP_H, PILL_ACCENT, ROW, TAG_ACCENT, TAG_WARN, XBTN } from "const LABEL = "text-[12.5px] text-muted w-24 shrink-0";export function GmailDetail({ c, cloud, slack: _slack, onChanged }: DetailProps) {+ const { t } = useTranslation();const [busy, setBusy] = useState(false);const accounts = (c.accounts ?? []) as GmailAccount[]; // email-keyed (pre-generic-layer shape)@@ -39,11 +41,11 @@ export function GmailDetail({ c, cloud, slack: _slack, onChanged }: DetailProps)<><span className="w-2 h-2 rounded-full bg-ok" /><span data-testid="gmail-status">- {accounts.length} account{accounts.length === 1 ? "" : "s"}+ {t("connector.account_count", { count: accounts.length })}</span></>) : (- <span>Not connected</span>+ <span>{t("connector.not_connected")}</span>)}</div></div>@@ -54,28 +56,28 @@ export function GmailDetail({ c, cloud, slack: _slack, onChanged }: DetailProps)disabled={busy || !cloud?.signed_in || c.managed_paused}title={c.managed_paused- ? "One-click Google sign-in is coming soon"+ ? t("gmail.coming_soon_title"): cloud?.signed_in? ""- : "Sign in to OpenWorker Cloud first"+ : t("cloud.sign_in_first")}>- {c.managed_paused ? "+ Add account · Coming soon" : busy ? "Check your browser…" : "+ Add account"}+ {c.managed_paused ? t("gmail.add_account_coming_soon") : busy ? t("cloud.check_browser") : t("gmail.add_account")}</button></div>{!c.connected && (<div className={GRP}><div className={ROW + " text-[12.5px] text-muted"}>- Sign in with Google — each mailbox stays separate, agents say which one they use.- {cloud?.signed_in ? "" : " Requires cloud sign-in."}+ {t("gmail.setup_blurb")}+ {cloud?.signed_in ? "" : " " + t("gmail.requires_cloud")}</div></div>)}{accounts.length > 0 && (<>- <div className={GRP_H + " !mt-0"}>Accounts</div>+ <div className={GRP_H + " !mt-0"}>{t("gmail.accounts")}</div><div className={GRP} data-testid="gmail-accounts">{accounts.map((a) => (<AccountRow key={a.email} a={a} onChanged={onChanged} />@@ -88,21 +90,21 @@ export function GmailDetail({ c, cloud, slack: _slack, onChanged }: DetailProps)<ToolsDisclosure c={c} onChanged={onChanged} /><div className={FOOT + " mt-2"}>- Filters are enforced on this computer, before an agent sees results. Hidden counts show- on the tool card and in Activity — never the content.+ {t("gmail.filters_foot")}</div></div>);}function AccountRow({ a, onChanged }: { a: GmailAccount; onChanged: () => void }) {+ const { t } = useTranslation();const [busy, setBusy] = useState(false);return (<div className={ROW} data-testid={`gmail-account-${a.email}`}><span className="min-w-0 flex-1 flex items-center gap-2"><span className="text-[13px] font-medium truncate">{a.email}</span>- {a.default && <span className={TAG_ACCENT}>Default</span>}- {a.needs_reauth && <span className={TAG_WARN}>⚠ Sign in again</span>}+ {a.default && <span className={TAG_ACCENT}>{t("connector.default")}</span>}+ {a.needs_reauth && <span className={TAG_WARN}>{t("gmail.sign_in_again")}</span>}</span>{!a.default && (<button@@ -113,12 +115,12 @@ function AccountRow({ a, onChanged }: { a: GmailAccount; onChanged: () => void }onChanged();}}>- Make default+ {t("connector.make_default")}</button>)}<buttonclassName={XBTN}- title="Disconnect this mailbox"+ title={t("gmail.disconnect_mailbox_title")}data-testid={`gmail-disconnect-${a.email}`}disabled={busy}onClick={async () => {@@ -135,15 +137,16 @@ function AccountRow({ a, onChanged }: { a: GmailAccount; onChanged: () => void }}function FiltersGroup({ c, onChanged }: Pick<DetailProps, "c" | "onChanged">) {+ const { t } = useTranslation();const filters = c.filters ?? { senders: [], labels: [] };return (<>- <div className={GRP_H}>Never show agents</div>+ <div className={GRP_H}>{t("gmail.never_show_agents")}</div><div className={GRP} data-testid="gmail-filters"><ChipListRow- label="Senders"+ label={t("gmail.senders")}testid="gmail-filter-senders"- placeholder="[email protected] or @domain.com"+ placeholder={t("gmail.senders_placeholder")}values={filters.senders}onSave={async (senders) => {await setGmailFilters({ senders });@@ -151,9 +154,9 @@ function FiltersGroup({ c, onChanged }: Pick<DetailProps, "c" | "onChanged">) {}}/><ChipListRow- label="Labels"+ label={t("gmail.labels")}testid="gmail-filter-labels"- placeholder="Label name, e.g. Personal"+ placeholder={t("gmail.labels_placeholder")}values={filters.labels}onSave={async (labels) => {await setGmailFilters({ labels });@@ -162,7 +165,7 @@ function FiltersGroup({ c, onChanged }: Pick<DetailProps, "c" | "onChanged">) {/></div><div className={FOOT}>- Matching email is silently left out of what agents read — no trace they could probe.+ {t("gmail.filters_foot_inner")}</div></>);@@ -181,6 +184,7 @@ function ChipListRow({values: string[];onSave: (next: string[]) => Promise<void>;}) {+ const { t } = useTranslation();const [draft, setDraft] = useState("");const add = async () => {const v = draft.trim();@@ -200,7 +204,7 @@ function ChipListRow({{v}<buttonclassName={XBTN}- title="remove"+ title={t("common.remove")}onClick={() => onSave(values.filter((x) => x !== v))}>×diff --git a/surfaces/gui/src/components/connectors/HubSpotDetail.tsx b/surfaces/gui/src/components/connectors/HubSpotDetail.tsxindex 600d6b22..554e2783 100644--- a/surfaces/gui/src/components/connectors/HubSpotDetail.tsx+++ b/surfaces/gui/src/components/connectors/HubSpotDetail.tsx@@ -1,4 +1,5 @@import { useState } from "react";+import { useTranslation } from "react-i18next";import {disconnectHubSpotPortal,setHubSpotDefaultPortal,@@ -20,6 +21,7 @@ import { FOOT, GRP, GRP_H, PILL_ACCENT, ROW, TAG_ACCENT, TAG_QUIET, TAG_WARN, XBconst LABEL = "text-[12.5px] text-muted w-24 shrink-0";export function HubSpotDetail({ c, cloud, slack: _slack, onChanged }: DetailProps) {+ const { t } = useTranslation();const [adding, setAdding] = useState(false);const portals = c.portals ?? [];@@ -34,31 +36,30 @@ export function HubSpotDetail({ c, cloud, slack: _slack, onChanged }: DetailProp<><span className="w-2 h-2 rounded-full bg-ok" /><span data-testid="hubspot-status">- {portals.length} portal{portals.length === 1 ? "" : "s"}+ {t("hubspot.portal_count", { count: portals.length })}</span></>) : (- <span>Not connected</span>+ <span>{t("connector.not_connected")}</span>)}</div></div><button className={PILL_ACCENT} data-testid="add-portal-btn" onClick={() => setAdding(true)}>- + Add portal+ {t("hubspot.add_portal")}</button></div>{!c.connected && (<div className={GRP}><div className={ROW + " text-[12.5px] text-muted"}>- Connect a portal — read-only or read & write is chosen at consent; there are no- delete tools either way.+ {t("hubspot.setup_blurb")}</div></div>)}{portals.length > 0 && (<>- <div className={GRP_H + " !mt-0"}>Portals</div>+ <div className={GRP_H + " !mt-0"}>{t("hubspot.portals")}</div><div className={GRP} data-testid="hubspot-portals">{portals.map((p) => (<PortalRow key={p.hub_id} p={p} onChanged={onChanged} />@@ -71,15 +72,14 @@ export function HubSpotDetail({ c, cloud, slack: _slack, onChanged }: DetailProp<ToolsDisclosure c={c} onChanged={onChanged} /><div className={FOOT + " mt-2"}>- Hidden fields never reach an agent; stripped counts land in Activity. To limit what a- HUMAN teammate could ask for, use HubSpot permission sets on the connected user.+ {t("hubspot.hidden_fields_foot")}</div>{adding && (<AddConnectionModalc={c}cloud={cloud}- title="Add a portal"+ title={t("hubspot.add_portal_title")}onClose={() => setAdding(false)}onChanged={onChanged}/>@@ -89,6 +89,7 @@ export function HubSpotDetail({ c, cloud, slack: _slack, onChanged }: DetailProp}function PortalRow({ p, onChanged }: { p: HubSpotPortal; onChanged: () => void }) {+ const { t } = useTranslation();const [busy, setBusy] = useState(false);return (<div className={ROW} data-testid={`hubspot-portal-${p.hub_id}`}>@@ -96,14 +97,14 @@ function PortalRow({ p, onChanged }: { p: HubSpotPortal; onChanged: () => void }<span className="text-[13px] font-medium truncate" title={`hub ${p.hub_id}`}>{p.name}</span>- {p.default && <span className={TAG_ACCENT}>Default</span>}- {p.sandbox && <span className={TAG_WARN}>Sandbox</span>}+ {p.default && <span className={TAG_ACCENT}>{t("connector.default")}</span>}+ {p.sandbox && <span className={TAG_WARN}>{t("hubspot.sandbox")}</span>}{p.access && (<span className={TAG_QUIET} data-testid={`hubspot-access-tag-${p.hub_id}`}>- {p.access === "write" ? "read & write" : "read-only"}+ {p.access === "write" ? t("hubspot.read_write") : t("hubspot.read_only")}</span>)}- {!p.managed && <span className={TAG_QUIET}>private app</span>}+ {!p.managed && <span className={TAG_QUIET}>{t("hubspot.private_app")}</span>}</span>{!p.default && (<button@@ -114,12 +115,12 @@ function PortalRow({ p, onChanged }: { p: HubSpotPortal; onChanged: () => void }onChanged();}}>- Make default+ {t("connector.make_default")}</button>)}<buttonclassName={XBTN}- title="Disconnect this portal"+ title={t("hubspot.disconnect_portal_title")}data-testid={`hubspot-disconnect-${p.hub_id}`}disabled={busy}onClick={async () => {@@ -136,6 +137,7 @@ function PortalRow({ p, onChanged }: { p: HubSpotPortal; onChanged: () => void }}function PrivacyGroup({ c, onChanged }: Pick<DetailProps, "c" | "onChanged">) {+ const { t } = useTranslation();const fields = c.hidden_fields ?? [];const [draft, setDraft] = useState("");const save = async (next: string[]) => {@@ -150,10 +152,10 @@ function PrivacyGroup({ c, onChanged }: Pick<DetailProps, "c" | "onChanged">) {};return (<>- <div className={GRP_H}>Access & privacy</div>+ <div className={GRP_H}>{t("hubspot.access_privacy")}</div><div className={GRP}><div className={ROW} data-testid="hubspot-hidden-fields">- <span className={LABEL}>Hidden fields</span>+ <span className={LABEL}>{t("hubspot.hidden_fields")}</span><span className="min-w-0 flex-1 flex flex-wrap items-center gap-1.5">{fields.map((f) => (<span@@ -161,14 +163,14 @@ function PrivacyGroup({ c, onChanged }: Pick<DetailProps, "c" | "onChanged">) {className="inline-flex items-center gap-1.5 px-2 py-0.5 rounded-full bg-paper border border-line text-[12.5px] font-mono">{f}- <button className={XBTN} title="remove" onClick={() => save(fields.filter((x) => x !== f))}>+ <button className={XBTN} title={t("common.remove")} onClick={() => save(fields.filter((x) => x !== f))}>×</button></span>))}<inputclassName="flex-1 min-w-[140px] bg-transparent text-[12.5px] outline-none placeholder:text-faint"- placeholder="Property name, e.g. salary"+ placeholder={t("hubspot.hidden_fields_placeholder")}value={draft}onChange={(e) => setDraft(e.target.value)}onKeyDown={(e) => {@@ -179,7 +181,7 @@ function PrivacyGroup({ c, onChanged }: Pick<DetailProps, "c" | "onChanged">) {</span></div></div>- <div className={FOOT}>Stripped from every record agents read, across all portals.</div>+ <div className={FOOT}>{t("hubspot.hidden_fields_foot_inner")}</div></>);}diff --git a/surfaces/gui/src/components/connectors/SlackDetail.tsx b/surfaces/gui/src/components/connectors/SlackDetail.tsxindex e5871feb..4aee4421 100644--- a/surfaces/gui/src/components/connectors/SlackDetail.tsx+++ b/surfaces/gui/src/components/connectors/SlackDetail.tsx@@ -1,4 +1,5 @@import { useEffect, useRef, useState } from "react";+import { useTranslation } from "react-i18next";import {addSlackApprovalOwner,allowUser,@@ -41,18 +42,19 @@ const LABEL = "text-[12.5px] text-muted w-24 shrink-0";/** The relay status line, one honest layer at a time: sign-in → socket → live.* Dot color + text; never a synthetic "Slack is down" claim. */-function relayHealth(slack: SlackStatus | null): { dot: string; text: string } {- if (!slack) return { dot: "bg-ok", text: "Live · managed relay" };+function relayHealth(slack: SlackStatus | null, t: (k: string) => string): { dot: string; text: string } {+ if (!slack) return { dot: "bg-ok", text: t("slack.relay_live") };if (!slack.signed_in)- return { dot: "bg-warnInk", text: "Sign-in needed — relaying is paused" };+ return { dot: "bg-warnInk", text: t("slack.relay_signin_needed") };if (slack.relay.state === "offline")- return { dot: "bg-faint/60", text: "Offline — can't reach the relay" };+ return { dot: "bg-faint/60", text: t("slack.relay_offline") };if (slack.relay.state === "reconnecting")- return { dot: "bg-warnInk", text: "Reconnecting to the relay…" };- return { dot: "bg-ok", text: "Live · managed relay" };+ return { dot: "bg-warnInk", text: t("slack.relay_reconnecting") };+ return { dot: "bg-ok", text: t("slack.relay_live") };}export function SlackDetail({ c, cloud, slack, onChanged }: DetailProps) {+ const { t } = useTranslation();const [adding, setAdding] = useState(false);const [subs, setSubs] = useState<Subscription[]>([]);const loadSubs = () => getSubscriptions().then(setSubs).catch(() => setSubs([]));@@ -78,23 +80,23 @@ export function SlackDetail({ c, cloud, slack, onChanged }: DetailProps) {<><spanclassName={- "w-2 h-2 rounded-full " + (relay ? relayHealth(slack).dot : "bg-ok")+ "w-2 h-2 rounded-full " + (relay ? relayHealth(slack, t).dot : "bg-ok")}/><span data-testid="slack-mode-badge">{relay- ? relayHealth(slack).text- : "Connected · Socket Mode (manual tokens)"}+ ? relayHealth(slack, t).text+ : t("slack.connected_socket_mode")}</span></>) : (- <span>Not connected</span>+ <span>{t("connector.not_connected")}</span>)}</div></div>{relay || !c.connected ? (<button className={PILL_ACCENT} data-testid="add-workspace-btn" onClick={() => setAdding(true)}>- + Add workspace+ {t("slack.add_workspace")}</button>) : null}</div>@@ -102,8 +104,8 @@ export function SlackDetail({ c, cloud, slack, onChanged }: DetailProps) {{!c.connected && (<div className={GRP}><div className={ROW + " text-[12.5px] text-muted"}>- One @ocw app, installed per workspace — each keeps its own allow-list.- {cloud?.signed_in ? "" : " One-click needs cloud sign-in; Manual works without it."}+ {t("slack.setup_blurb")}+ {cloud?.signed_in ? "" : " " + t("slack.setup_cloud_note")}</div></div>)}@@ -127,7 +129,7 @@ export function SlackDetail({ c, cloud, slack, onChanged }: DetailProps) {{/* Manual Socket Mode: one workspace, the flat allow-list (unchanged semantics). */}{c.connected && !relay && (<div data-testid="slack-manual-card">- <div className={GRP_H}>{c.account || "workspace"} <span className="font-normal text-faint">· manual tokens</span></div>+ <div className={GRP_H}>{c.account || t("slack.workspace_default")} <span className="font-normal text-faint">{t("slack.manual_tokens")}</span></div><div className={GRP}><PeopleRowallowed={c.allowed_users}@@ -158,14 +160,14 @@ export function SlackDetail({ c, cloud, slack, onChanged }: DetailProps) {<ToolsDisclosure c={c} onChanged={onChanged} />{c.connected && (- <div className={FOOT + " mt-2"}>Names come from Slack automatically. IDs show on hover.</div>+ <div className={FOOT + " mt-2"}>{t("slack.names_foot")}</div>)}{adding && (<AddConnectionModalc={c}cloud={cloud}- title="Add a workspace"+ title={t("slack.add_workspace_title")}onClose={() => setAdding(false)}onChanged={changed}/>@@ -187,6 +189,7 @@ function WorkspaceGroup({tokenOk: boolean;onChanged: () => void;}) {+ const { t } = useTranslation();const [busy, setBusy] = useState(false);const parked = (c.unauthorized ?? []).filter((m) => m.team_id === w.team_id);const listening = subs.filter((s) => s.channel.startsWith(`slack:${w.team_id}/`));@@ -212,7 +215,7 @@ function WorkspaceGroup({</span>{!tokenOk && (<span className={TAG_WARN} data-testid={`token-warn-${w.team_id}`}>- ⚠ Token revoked — reinstall+ {t("slack.token_revoked")}</span>)}</div>@@ -221,7 +224,7 @@ function WorkspaceGroup({<><div className={ROW}><span className="min-w-0 flex-1 text-[12.5px] text-muted flex items-center gap-2 flex-wrap">- <span>No one allowed yet — mentions of the bot show up here for your OK.</span>+ <span>{t("slack.empty_parked_note")}</span><PersonPicker teamId={w.team_id} allowed={[]} onChanged={onChanged} /></span><DisconnectBtn teamId={w.team_id} busy={busy} onClick={disconnect} />@@ -271,15 +274,16 @@ function WorkspaceGroup({}function DisconnectBtn({ teamId, busy, onClick }: { teamId: string; busy: boolean; onClick: () => void }) {+ const { t } = useTranslation();return (<buttonclassName="text-[12.5px] text-danger/80 hover:text-danger shrink-0"data-testid={`disconnect-workspace-${teamId}`}- title="Stops relaying this workspace to this computer. The app stays installed in Slack."+ title={t("slack.disconnect_workspace_title")}onClick={onClick}disabled={busy}>- {busy ? "Disconnecting…" : "Disconnect workspace"}+ {busy ? t("connector.disconnecting") : t("slack.disconnect_workspace")}</button>);}@@ -303,16 +307,17 @@ function PeopleRow({onRemove: (userId: string) => void;onChanged: () => void;}) {+ const { t } = useTranslation();// The installer's chip reads "you" — their name may still be unresolved (it's// fetched lazily for outbound attribution), so fall back to a literal "You".const label = (u: string) =>- names?.[u] || (u === installerId ? installerName || "You" : u);+ names?.[u] || (u === installerId ? installerName || t("slack.you") : u);return (<div className={ROW}>- <span className={LABEL}>People</span>+ <span className={LABEL}>{t("connector.people")}</span><span className="min-w-0 flex-1 flex flex-wrap items-center gap-1.5">{allowed.length === 0 && (- <span className="text-[12px] text-faint">nobody yet — pick a name, or approve a waiting sender below</span>+ <span className="text-[12px] text-faint">{t("slack.nobody_yet")}</span>)}{allowed.map((u) => (<span@@ -325,16 +330,16 @@ function PeopleRow({{initials(label(u))}</span>{label(u)}- {u === installerId && <span className="text-[10.5px] text-faint">· you</span>}+ {u === installerId && <span className="text-[10.5px] text-faint">{t("slack.you_suffix")}</span>}{protectedIds?.includes(u) ? (<spanclassName="text-[10.5px] text-faint"- title="Remove approval-owner access before removing this person."+ title={t("slack.owner_protected_title")}>- · owner+ {t("slack.owner_suffix")}</span>) : (- <button className={XBTN} title="remove" onClick={() => onRemove(u)}>+ <button className={XBTN} title={t("common.remove")} onClick={() => onRemove(u)}>×</button>)}@@ -354,7 +359,7 @@ function PersonPicker({allowed,onChanged,onPick,- buttonLabel = "+ Add person",+ buttonLabel,testId,}: {teamId: string | null;@@ -364,6 +369,7 @@ function PersonPicker({buttonLabel?: string;testId?: string;}) {+ const { t: tt } = useTranslation();const [open, setOpen] = useState(false);const [q, setQ] = useState("");const [rows, setRows] = useState<SlackMember[]>([]);@@ -388,12 +394,12 @@ function PersonPicker({if (r.ok) {setRows(r.members || []);setErr(null);- } else setErr(r.error || "directory unavailable");+ } else setErr(r.error || tt("slack.directory_unavailable"));})- .catch(() => setErr("directory unavailable"));+ .catch(() => setErr(tt("slack.directory_unavailable")));}, 200);return () => clearTimeout(t);- }, [open, q, teamId]);+ }, [open, q, teamId, tt]);useEffect(() => {if (!open) return;@@ -424,10 +430,10 @@ function PersonPicker({ref={btn}className="inline-flex items-center px-2 py-0.5 rounded-full border border-dashed border-line text-[12.5px] text-muted hover:text-ink hover:border-faint"data-testid={testId || `add-person-${teamId || "default"}`}- title="Pick from the workspace directory"+ title={tt("slack.pick_from_directory")}onClick={toggle}>- {buttonLabel}+ {buttonLabel ?? tt("slack.add_person")}</button>{open && (<div@@ -438,7 +444,7 @@ function PersonPicker({<inputautoFocusclassName="w-full bg-paper border border-line rounded-lg px-2 py-1 text-[12.5px] outline-none placeholder:text-faint"- placeholder="Type a name…"+ placeholder={tt("slack.type_a_name")}value={q}onChange={(e) => setQ(e.target.value)}onKeyDown={(e) => {@@ -449,7 +455,7 @@ function PersonPicker({{err ? (<div className="px-2 py-1.5 text-[12px] text-warnInk">{err}</div>) : candidates.length === 0 ? (- <div className="px-2 py-1.5 text-[12px] text-faint">no matches</div>+ <div className="px-2 py-1.5 text-[12px] text-faint">{tt("slack.no_matches")}</div>) : (candidates.map((m) => (<button@@ -467,7 +473,7 @@ function PersonPicker({<span className="text-[11.5px] text-faint">@{m.handle}</span>{m.guest && (<span className="ml-1.5 text-[10.5px] text-warnInk bg-warnSoft/70 border border-warnInk/15 rounded px-1 py-0.5">- guest+ {tt("slack.guest")}</span>)}</button>@@ -475,7 +481,7 @@ function PersonPicker({)}</div><div className="px-2 pb-1 text-[10.5px] text-faint">- From your workspace directory — stays on this computer.+ {tt("slack.directory_foot")}</div></div>)}@@ -498,13 +504,14 @@ function ApprovalOwnersRow({editable: boolean;onChanged: () => void;}) {+ const { t } = useTranslation();const [err, setErr] = useState<string | null>(null);const label = (u: string) =>- names?.[u] || (u === installerId ? installerName || "You" : u);+ names?.[u] || (u === installerId ? installerName || t("slack.you_fallback") : u);const remove = async (userId: string) => {const result = await removeSlackApprovalOwner(userId);if (!result.ok) {- setErr(result.error || "could not remove approval owner");+ setErr(result.error || t("slack.remove_owner_failed"));return;}setErr(null);@@ -512,11 +519,11 @@ function ApprovalOwnersRow({};return (<div className={ROW} data-testid="slack-approval-owners">- <span className={LABEL}>Approvals</span>+ <span className={LABEL}>{t("slack.approvals_label")}</span><span className="min-w-0 flex-1 flex flex-wrap items-center gap-1.5">{owners.length === 0 && (<span className="text-[12px] text-warnInk">- Choose at least one owner before routing Inbox approvals to Slack.+ {t("slack.choose_owner_warning")}</span>)}{owners.map((u) => (@@ -530,9 +537,9 @@ function ApprovalOwnersRow({{initials(label(u))}</span>{label(u)}- {u === installerId && <span className="text-[10.5px] text-faint">· installer</span>}+ {u === installerId && <span className="text-[10.5px] text-faint">{t("slack.installer_suffix")}</span>}{editable && (- <button className={XBTN} title="remove approval owner" onClick={() => remove(u)}>+ <button className={XBTN} title={t("slack.remove_owner_title")} onClick={() => remove(u)}>×</button>)}@@ -544,12 +551,12 @@ function ApprovalOwnersRow({allowed={owners}onChanged={onChanged}onPick={(m) => addSlackApprovalOwner(m.id, m.name)}- buttonLabel="+ Add owner"+ buttonLabel={t("slack.add_owner")}testId="add-approval-owner"/>)}{!editable && owners.length > 0 && (- <span className="text-[11.5px] text-faint">Set by the workspace installer.</span>+ <span className="text-[11.5px] text-faint">{t("slack.owner_set_by_installer")}</span>)}{err && <span className="basis-full text-[11.5px] text-warnInk">{err}</span>}</span>@@ -558,35 +565,36 @@ function ApprovalOwnersRow({}function WaitingRow({ m, onChanged }: { m: ParkedMessage; onChanged: () => void }) {+ const { t } = useTranslation();const act = async (action: "dismiss" | "allow" | "allow_deliver") => {await resolveUnauthorized("slack", m.id, action);onChanged();};return (<div className={ROW + " bg-warnSoft/25"} data-testid={`waiting-${m.id}`}>- <span className={LABEL}>Waiting</span>+ <span className={LABEL}>{t("connector.waiting")}</span><span className="min-w-0 flex-1"><span className="font-medium text-[13px]">{m.user_name || m.user_id}</span>{" "}- <span className="text-[12.5px] text-muted">in {m.chat_name || m.chat_id}</span>+ <span className="text-[12.5px] text-muted">{t("connector.in_channel", { name: m.chat_name || m.chat_id })}</span><span className="block text-[12.5px] text-muted truncate">“{m.text}”</span></span><buttonclassName={PILL_ACCENT + " !py-1"}data-testid={`parked-allow-deliver-${m.id}`}- title="Allow the sender and deliver this message now"+ title={t("slack.allow_deliver_title")}onClick={() => act("allow_deliver")}>- Allow & deliver+ {t("connector.allow_deliver")}</button><buttonclassName={PILL_LINE + " !py-1"}data-testid={`parked-allow-${m.id}`}- title="Allow the sender; this message is discarded"+ title={t("slack.allow_discard_title")}onClick={() => act("allow")}>- Allow+ {t("connector.allow")}</button>- <button className={XBTN + " px-1"} data-testid={`parked-dismiss-${m.id}`} title="Dismiss" onClick={() => act("dismiss")}>+ <button className={XBTN + " px-1"} data-testid={`parked-dismiss-${m.id}`} title={t("connector.dismiss")} onClick={() => act("dismiss")}>×</button></div>@@ -594,10 +602,11 @@ function WaitingRow({ m, onChanged }: { m: ParkedMessage; onChanged: () => void}function ListeningRows({ subs, onChanged }: { subs: Subscription[]; onChanged: () => void }) {+ const { t } = useTranslation();if (subs.length === 0) return null;return (<div className={ROW} data-testid="listening-slack">- <span className={LABEL}>Listening</span>+ <span className={LABEL}>{t("connector.listening")}</span><span className="min-w-0 flex-1 space-y-1">{subs.map((s) => (<span key={s.session_id + s.channel} className="flex items-center gap-2 text-[12.5px]">@@ -610,7 +619,7 @@ function ListeningRows({ subs, onChanged }: { subs: Subscription[]; onChanged: (</span><buttonclassName={XBTN + " ml-auto"}- title="Unsubscribe this session"+ title={t("connector.unsubscribe_title")}onClick={async () => {await unsubscribeChannel(s.session_id, s.channel);onChanged();diff --git a/surfaces/gui/src/components/connectors/SlackHowItWorks.tsx b/surfaces/gui/src/components/connectors/SlackHowItWorks.tsxindex eaf1d7da..a13d1ff8 100644--- a/surfaces/gui/src/components/connectors/SlackHowItWorks.tsx+++ b/surfaces/gui/src/components/connectors/SlackHowItWorks.tsx@@ -1,6 +1,11 @@import { useEffect, useRef, useState } from "react";+import { useTranslation, getI18n } from "react-i18next";import type { SlackWorkspace } from "../../api";+// Module-level t for the mock-screenshot copy below — the scene helpers are+// plain functions, so they can't call the useTranslation hook themselves.+const tr = (k: string, opts?: Record<string, unknown>) => getI18n().getFixedT(null, "translation")(k, opts);+// UX-027: the post-connect "how mentions reach you" card. A tabbed carousel of// animated split-scenes — Slack on the left (pinned to light-Slack colors, so it// reads as a screenshot of Slack), OpenWorker on the right (app tokens). Tabs@@ -12,11 +17,11 @@ import type { SlackWorkspace } from "../../api";const KEY = "ocw.slack.howitworks.collapsed";const DUR = 8000; // per-scene loop, ms-const TABS = ["Mention → session", "Threads stay connected", "Allow teammates"];+const TABS = ["slack.hiw_tab_mention", "slack.hiw_tab_threads", "slack.hiw_tab_teammates"];const CAPTIONS = [- "Mention @OpenWorker in any channel it's invited to — a session opens here, and the answer lands back in Slack as a thread.",- "Mention it again inside the thread — the conversation continues in the same session, context intact. The thread is the session.",- "Teammates aren't auto-trusted: their first mention waits for your OK, then they're on the People list.",+ "slack.hiw_cap_mention",+ "slack.hiw_cap_threads",+ "slack.hiw_cap_teammates",];function readCollapsed(): boolean {@@ -24,6 +29,7 @@ function readCollapsed(): boolean {}export function SlackHowItWorks({ workspaces }: { workspaces: SlackWorkspace[] }) {+ const { t } = useTranslation();const [collapsed, setCollapsed] = useState(readCollapsed);const [tab, setTab] = useState(0);const [cycle, setCycle] = useState(0); // bump = remount the scene = restart its animations@@ -64,7 +70,7 @@ export function SlackHowItWorks({ workspaces }: { workspaces: SlackWorkspace[] }(mine &&(mine.installer_name ||mine.allowed_user_names?.[mine.installer_user_id ?? ""])) ||- "You";+ t("slack.hiw_you");const meFirst = meName.split(/\s+/)[0];const meInitial = (meName[0] || "Y").toUpperCase();@@ -74,15 +80,15 @@ export function SlackHowItWorks({ workspaces }: { workspaces: SlackWorkspace[] }<div className="mb-5" data-testid="slack-howitworks"><div className="flex items-baseline gap-2.5"><h3 className="text-[13.5px] font-semibold tracking-tight">- Getting started with Slack & OpenWorker+ {t("slack.hiw_title")}</h3><buttonclassName="ml-auto shrink-0 inline-flex items-center gap-1.5 text-[12px] text-muted hover:text-ink"data-testid="hiw-collapse"- title={collapsed ? "Show how mentions work" : "Collapse — reopen anytime"}+ title={collapsed ? t("slack.hiw_show") : t("slack.hiw_collapse")}onClick={toggle}>- {collapsed ? "How it works" : "Hide"}+ {collapsed ? t("slack.hiw_how_it_works") : t("slack.hiw_hide")}<spanclassName="text-[9px] transition-transform"style={collapsed ? { transform: "rotate(-90deg)" } : undefined}@@ -93,24 +99,24 @@ export function SlackHowItWorks({ workspaces }: { workspaces: SlackWorkspace[] }</div><div className="text-[12px] text-muted mt-0.5"><span className="text-ok font-bold">✓ </span>- {ws?.account || "Workspace"} connected+ {(ws?.account || t("slack.hiw_workspace")) + " " + t("slack.hiw_connected")}{mine- ? " — you're on the People list, so your mentions get through."- : " — here's how mentions reach you."}+ ? " " + t("slack.hiw_on_people_list")+ : " " + t("slack.hiw_how_mentions")}</div>{!collapsed && (<div className="mt-3"><div className="flex gap-1 border-b border-line mb-3">- {TABS.map((t, i) => (+ {TABS.map((tb, i) => (<button- key={t}+ key={tb}className={"hiw-tab" + (i === tab ? " on" : "")}data-testid={`hiw-tab-${i}`}style={{ "--hiw-dur": `${DUR}ms` } as React.CSSProperties}onClick={() => jump(i)}>- {t}+ {t(tb)}<span className="hiw-prog"><i /></span></button>))}@@ -122,7 +128,7 @@ export function SlackHowItWorks({ workspaces }: { workspaces: SlackWorkspace[] }{tab === 2 && <SceneTeammates />}</div><div className="mt-2.5 text-[12px] text-muted" data-testid="hiw-caption">- {CAPTIONS[tab]}+ {t(CAPTIONS[tab])}</div></div>)}@@ -173,15 +179,15 @@ function SlackRail({ active }: { active: string }) {return (<div className="hiw-slrail"><div className="hiw-ws">{WS_NAME} ▾</div>- <div className="hiw-slnav"><ThreadsIcon /> Threads</div>- <div className="hiw-slnav"><SendIcon /> Drafts & sent</div>- <div className="hiw-sect">Channels</div>+ <div className="hiw-slnav"><ThreadsIcon /> {tr("slack.hiw_threads")}</div>+ <div className="hiw-slnav"><SendIcon /> {tr("slack.hiw_drafts")}</div>+ <div className="hiw-sect">{tr("slack.hiw_channels")}</div><div className={"hiw-ch" + (active === "general" ? " on" : "")}># general</div><div className={"hiw-ch" + (active === "launch-room" ? " on" : "")}># launch-room</div>- <div className="hiw-sect">Direct messages</div>+ <div className="hiw-sect">{tr("slack.hiw_direct_messages")}</div><div className="hiw-slnav"><span className="hiw-pres" />Priya N</div><div className="hiw-slnav"><span className="hiw-pres" />Emma W</div>- <div className="hiw-sect">Agents & apps</div>+ <div className="hiw-sect">{tr("slack.hiw_agents_apps")}</div><div className="hiw-slnav"><span className="hiw-appav">OW</span>OpenWorker</div></div>);@@ -192,7 +198,7 @@ function SlackWin({ children }: { children: React.ReactNode }) {<div className="hiw-win hiw-sl"><div className="hiw-sltop"><span className="hiw-dots"><i /><i /><i /></span>- <span className="hiw-slsearch">⌕ Describe what you are looking for</span>+ <span className="hiw-slsearch">⌕ {tr("slack.hiw_search_desc")}</span></div><div className="hiw-slbody">{children}</div></div>@@ -237,10 +243,10 @@ function OwRail({ hot, hotSub, glow }: { hot?: string; hotSub?: string; glow?: breturn (<div className="hiw-owrail"><div className="hiw-brand">OpenWorker</div>- <div className="hiw-newbtn">+ New session</div>- <div className="hiw-ownav">⌕ Search</div>- <div className="hiw-ownav">◷ Automations</div>- <div className="hiw-sect">RECENT</div>+ <div className="hiw-newbtn">+ {tr("slack.hiw_new_session")}</div>+ <div className="hiw-ownav">⌕ {tr("slack.hiw_search")}</div>+ <div className="hiw-ownav">◷ {tr("slack.hiw_automations")}</div>+ <div className="hiw-sect">{tr("slack.hiw_recent")}</div>{hot && (<divclassName={"hiw-sess hot" + (glow ? " hiw-glow hiw-k" : " hiw-stay")}@@ -250,7 +256,7 @@ function OwRail({ hot, hotSub, glow }: { hot?: string; hotSub?: string; glow?: b{hotSub}</div>)}- <div className="hiw-sess"><b>Jira vs Linear</b>Coworker</div>+ <div className="hiw-sess"><b>{tr("slack.hiw_jira_linear")}</b>{tr("slack.hiw_coworker")}</div></div>);}@@ -283,58 +289,58 @@ function SceneMention({ meFirst, meInitial }: { meFirst: string; meInitial: strireturn (<><span className="hiw-spark" style={d("1.9s")} />- <Sticky d="3.1s" pos={{ left: "51%", top: "8%" }}>a @mention starts a NEW session →</Sticky>- <Sticky d="5.8s" r pos={{ left: "27%", bottom: "5%" }}>the answer comes back as a thread ↑</Sticky>+ <Sticky d="3.1s" pos={{ left: "51%", top: "8%" }}>{tr("slack.hiw_mention_new")} →</Sticky>+ <Sticky d="5.8s" r pos={{ left: "27%", bottom: "5%" }}>{tr("slack.hiw_answer_thread")} ↑</Sticky><SlackWin><SlackRail active="launch-room" /><div className="hiw-slmain">- <div className="hiw-slhead"># launch-room <span className="hiw-sub">· 24 members</span></div>+ <div className="hiw-slhead"># launch-room <span className="hiw-sub">· 24 {tr("slack.hiw_members")}</span></div><div className="hiw-slmsgs">- <SlackDate label="Today" />+ <SlackDate label={tr("slack.hiw_today")} /><Msg av="P" avBg="#7c6cd0" name="Priya N" ts="6:31 PM">- signups are spiking since the post 📈+ {tr("slack.hiw_msg_signups")}</Msg><Msgav={meInitial} avBg="#3b82c4" name={meFirst} ts="6:33 PM" delay=".8s"extra={<span className="hiw-replybar hiw-k" style={d("4.6s")}>- <span className="hiw-sav2">OW</span> 1 reply- <span className="hiw-later">Today at 6:34 PM</span>+ <span className="hiw-sav2">OW</span> {tr("slack.hiw_1reply")}+ <span className="hiw-later">{tr("slack.hiw_today_at")} 6:34 PM</span></span>}>- <span className="hiw-men">@OpenWorker</span> summarize this thread+ <span className="hiw-men">@OpenWorker</span> {tr("slack.hiw_summarize")}</Msg></div>- <SlackComposer placeholder="Message #launch-room" />+ <SlackComposer placeholder={tr("slack.hiw_msg_launch")} /><div className="hiw-slthread hiw-k" style={d("5.1s")}>- <div className="hiw-th">Thread <span className="hiw-sub"># launch-room</span><span className="hiw-x">✕</span></div>+ <div className="hiw-th">{tr("slack.hiw_thread")} <span className="hiw-sub"># launch-room</span><span className="hiw-x">✕</span></div><div className="hiw-tmsgs"><Msg av={meInitial} avBg="#3b82c4" name={meFirst} ts="6:33 PM">- <span className="hiw-men">@OpenWorker</span> summarize this thread+ <span className="hiw-men">@OpenWorker</span> {tr("slack.hiw_summarize")}</Msg>- <div className="hiw-cnt">1 reply</div>+ <div className="hiw-cnt">{tr("slack.hiw_1reply")}</div><Msg av="OW" avBg="#4a154b" name="OpenWorker" app ts="6:34 PM">- Launch traction: signups up 3.4× since the post…+ {tr("slack.hiw_msg_traction")}</Msg></div>- <div className="hiw-treply">Reply…</div>+ <div className="hiw-treply">{tr("slack.hiw_reply")}</div></div></div></SlackWin><OwWin>- <OwRail hot="Summarize #launch-room" hotSub="via Slack · now" glow />+ <OwRail hot={tr("slack.hiw_summarize_room")} hotSub={tr("slack.hiw_via_slack_now")} glow /><div className="hiw-owmain"><div className="hiw-owtitle hiw-k" style={d("2.6s")}>Summarize #launch-room <span className="hiw-via">via Slack</span></div><div className="hiw-owchat">- <div className="hiw-bub user hiw-k" style={d("2.8s")}>@OpenWorker summarize this thread</div>+ <div className="hiw-bub user hiw-k" style={d("2.8s")}>@OpenWorker {tr("slack.hiw_summarize")}</div><div className="hiw-bub agent hiw-k" style={d("3.6s")}>- Reading the thread… signups up 3.4×, top referrer is the press page. <i>(replying in the Slack thread)</i>+ {tr("slack.hiw_reading_thread")} <i>({tr("slack.hiw_replying_slack")})</i></div></div>- <div className="hiw-owcomposer">Message OpenWorker…</div>+ <div className="hiw-owcomposer">{tr("slack.hiw_msg_kp")}</div></div></OwWin></>@@ -346,75 +352,75 @@ function SceneThread({ meFirst, meInitial }: { meFirst: string; meInitial: strinreturn (<><span className="hiw-spark" style={d("1.9s")} />- <Sticky d="3.2s" r pos={{ left: "52%", top: "10%" }}>chatting in the thread continues the SAME conversation →</Sticky>+ <Sticky d="3.2s" r pos={{ left: "52%", top: "10%" }}>{tr("slack.hiw_thread_same")} →</Sticky><SlackWin><SlackRail active="launch-room" /><div className="hiw-slmain">- <div className="hiw-slhead"># launch-room <span className="hiw-sub">· 24 members</span></div>+ <div className="hiw-slhead"># launch-room <span className="hiw-sub">· 24 {tr("slack.hiw_members")}</span></div><div className="hiw-slmsgs">- <SlackDate label="Today" />+ <SlackDate label={tr("slack.hiw_today")} /><Msg av="P" avBg="#7c6cd0" name="Priya N" ts="6:31 PM">- signups are spiking since the post 📈+ {tr("slack.hiw_msg_signups")}</Msg><Msgav={meInitial} avBg="#3b82c4" name={meFirst} ts="6:33 PM"extra={<span className="hiw-replybar">- <span className="hiw-sav2">OW</span> 2 replies- <span className="hiw-later">Today at 6:36 PM</span>+ <span className="hiw-sav2">OW</span> {tr("slack.hiw_2replies")}+ <span className="hiw-later">{tr("slack.hiw_today_at")} 6:36 PM</span></span>}>- <span className="hiw-men">@OpenWorker</span> summarize this thread+ <span className="hiw-men">@OpenWorker</span> {tr("slack.hiw_summarize")}</Msg></div>- <SlackComposer placeholder="Message #launch-room" />+ <SlackComposer placeholder={tr("slack.hiw_msg_launch")} />{/* thread panel open from the start — the new mentions play INSIDE it */}<div className="hiw-slthread">- <div className="hiw-th">Thread <span className="hiw-sub"># launch-room</span><span className="hiw-x">✕</span></div>+ <div className="hiw-th">{tr("slack.hiw_thread")} <span className="hiw-sub"># launch-room</span><span className="hiw-x">✕</span></div><div className="hiw-tmsgs"><Msg av={meInitial} avBg="#3b82c4" name={meFirst} ts="6:33 PM">- <span className="hiw-men">@OpenWorker</span> summarize this thread+ <span className="hiw-men">@OpenWorker</span> {tr("slack.hiw_summarize")}</Msg>- <div className="hiw-cnt">2 replies</div>+ <div className="hiw-cnt">{tr("slack.hiw_2replies")}</div><Msg av="OW" avBg="#4a154b" name="OpenWorker" app ts="6:34 PM">- Launch traction: signups up 3.4×…+ {tr("slack.hiw_msg_traction")}</Msg><Msg av="P" avBg="#7c6cd0" name="Priya N" ts="6:36 PM" delay=".8s">- <span className="hiw-men">@OpenWorker</span> break it down by country?+ <span className="hiw-men">@OpenWorker</span> {tr("slack.hiw_break_country")}</Msg><Msg av="OW" avBg="#4a154b" name="OpenWorker" app ts="6:36 PM" delay="4.8s">- Top: US 41% · India 22% · Germany 9%…+ {tr("slack.hiw_top_countries")}</Msg></div>- <div className="hiw-treply">Reply…</div>+ <div className="hiw-treply">{tr("slack.hiw_reply")}</div></div></div></SlackWin><OwWin><div className="hiw-owrail"><div className="hiw-brand">OpenWorker</div>- <div className="hiw-newbtn">+ New session</div>- <div className="hiw-ownav">⌕ Search</div>- <div className="hiw-ownav">◷ Automations</div>- <div className="hiw-sect">RECENT</div>+ <div className="hiw-newbtn">+ {tr("slack.hiw_new_session")}</div>+ <div className="hiw-ownav">⌕ {tr("slack.hiw_search")}</div>+ <div className="hiw-ownav">◷ {tr("slack.hiw_automations")}</div>+ <div className="hiw-sect">{tr("slack.hiw_recent")}</div><div className="hiw-sess hot hiw-stay hiw-glow" style={{ "--g": "2.4s" } as React.CSSProperties}>- <b>Summarize #launch-room</b>via Slack+ <b>{tr("slack.hiw_summarize_room")}</b>{tr("slack.hiw_via_slack")}</div>- <div className="hiw-sess"><b>Jira vs Linear</b>Coworker</div>+ <div className="hiw-sess"><b>{tr("slack.hiw_jira_linear")}</b>{tr("slack.hiw_coworker")}</div></div><div className="hiw-owmain"><div className="hiw-owtitle">- Summarize #launch-room <span className="hiw-via">via Slack — same session</span>+ {tr("slack.hiw_summarize_room")} <span className="hiw-via">{tr("slack.hiw_via_slack_same")}</span></div><div className="hiw-owchat">- <div className="hiw-bub agent hiw-stay">…signups up 3.4×, top referrer is the press page.</div>- <div className="hiw-bub user hiw-k" style={d("2.6s")}>break it down by country?</div>+ <div className="hiw-bub agent hiw-stay">{tr("slack.hiw_signups_referrer")}</div>+ <div className="hiw-bub user hiw-k" style={d("2.6s")}>{tr("slack.hiw_break_country")}</div><div className="hiw-bub agent hiw-k" style={d("3.8s")}>- Top countries: US 41%, India 22%, Germany 9% — context kept from the whole thread.+ {tr("slack.hiw_top_countries_full")}</div></div>- <div className="hiw-owcomposer">Message OpenWorker…</div>+ <div className="hiw-owcomposer">{tr("slack.hiw_msg_kp")}</div></div></OwWin></>@@ -426,38 +432,38 @@ function SceneTeammates() {return (<><span className="hiw-spark" style={d("1.9s")} />- <Sticky d="3.4s" pos={{ left: "53%", bottom: "10%" }}>first-time senders wait for your OK</Sticky>+ <Sticky d="3.4s" pos={{ left: "53%", bottom: "10%" }}>{tr("slack.hiw_first_senders")}</Sticky><SlackWin><SlackRail active="launch-room" /><div className="hiw-slmain">- <div className="hiw-slhead"># launch-room <span className="hiw-sub">· 24 members</span></div>+ <div className="hiw-slhead"># launch-room <span className="hiw-sub">· 24 {tr("slack.hiw_members")}</span></div><div className="hiw-slmsgs">- <SlackDate label="Today" />+ <SlackDate label={tr("slack.hiw_today")} /><Msgav="P" avBg="#7c6cd0" name="Priya N" ts="6:41 PM" delay=".7s"extra={<span className="hiw-replybar hiw-k" style={d("5.6s")}>- <span className="hiw-sav2">OW</span> 1 reply- <span className="hiw-later">after you allow</span>+ <span className="hiw-sav2">OW</span> {tr("slack.hiw_1reply")}+ <span className="hiw-later">{tr("slack.hiw_after_allow")}</span></span>}>- <span className="hiw-men">@OpenWorker</span> pull the signup numbers?+ <span className="hiw-men">@OpenWorker</span> {tr("slack.hiw_pull_numbers")}</Msg></div>- <SlackComposer placeholder="Message #launch-room" />+ <SlackComposer placeholder={tr("slack.hiw_msg_launch")} /></div></SlackWin><OwWin>- <OwRail hot="Summarize #launch-room" hotSub="via Slack" />+ <OwRail hot={tr("slack.hiw_summarize_room")} hotSub={tr("slack.hiw_via_slack")} /><div className="hiw-owmain"><div className="hiw-owtitle">Slack — {WS_NAME}</div><div className="hiw-waitrow hiw-k hiw-glow" style={d("2s", { "--g": "2.5s" })}>- <span className="min-w-0"><b>Priya N</b> is waiting</span>- <span className="hiw-allowbtn ml-auto">Allow & deliver</span>+ <span className="min-w-0"><b>Priya N</b> {tr("slack.hiw_is_waiting")}</span>+ <span className="hiw-allowbtn ml-auto">{tr("slack.hiw_allow_deliver")}</span></div><div className="hiw-waitcap hiw-k" style={d("3.4s")}>- Each teammate's <b>first</b> mention waits for your OK — then they're on the People list and it flows.+ {tr("slack.hiw_each_teammate_prefix")} <b>{tr("slack.hiw_first")}</b> {tr("slack.hiw_each_teammate_suffix")}</div></div></OwWin>diff --git a/surfaces/gui/src/components/connectors/ToolsDisclosure.tsx b/surfaces/gui/src/components/connectors/ToolsDisclosure.tsxindex 071b24a8..c0664cd5 100644--- a/surfaces/gui/src/components/connectors/ToolsDisclosure.tsx+++ b/surfaces/gui/src/components/connectors/ToolsDisclosure.tsx@@ -1,3 +1,4 @@+import { useTranslation } from "react-i18next";import { updateConnectorTools, type Connector } from "../../api";import { GRP, ROW, TAG_QUIET, TAG_WARN } from "./ui";@@ -5,15 +6,16 @@ import { GRP, ROW, TAG_QUIET, TAG_WARN } from "./ui";// (UX-DECISIONS §21): the lever exists everywhere but stays quiet — expanding// shows one row per tool with its read/write tag; writes always ask first.export function ToolsDisclosure({ c, onChanged }: { c: Connector; onChanged: () => void }) {+ const { t } = useTranslation();if (!c.tools?.length) return null;- const enabled = c.tools.filter((t) => t.enabled).length;+ const enabled = c.tools.filter((tool) => tool.enabled).length;return (<div className={GRP + " mt-6"}><details><summary className={ROW + " cursor-pointer hover:bg-paper/60 list-none [&::-webkit-details-marker]:hidden"}>- <span className="text-[12.5px] text-muted w-24 shrink-0">› Tools</span>+ <span className="text-[12.5px] text-muted w-24 shrink-0">{t("connector.tools_label")}</span><span className="min-w-0 flex-1 text-[12.5px] text-muted">- {enabled} of {c.tools.length} enabled+ {t("connector.tools_enabled", { enabled, total: c.tools.length })}</span></summary>{c.tools.map((tool) => (@@ -28,7 +30,7 @@ export function ToolsDisclosure({ c, onChanged }: { c: Connector; onChanged: ()/><span className="min-w-0 flex-1 text-[13px] font-medium">{tool.label}</span><span className={tool.kind === "write" ? TAG_WARN : TAG_QUIET}>- {tool.kind === "write" ? "asks first" : "read"}+ {tool.kind === "write" ? t("connector.asks_first") : t("connector.read")}</span></label>))}diff --git a/surfaces/gui/src/i18n.ts b/surfaces/gui/src/i18n.tsnew file mode 100644index 00000000..243fd3c3--- /dev/null+++ b/surfaces/gui/src/i18n.ts@@ -0,0 +1,74 @@+/**+ * i18n initialization (react-i18next).+ *+ * Locale resources live in src/locales/*.json. English is the default and+ * fallback; the language follows the system locale unless the user picks one+ * explicitly in Settings (persisted in localStorage).+ */+import i18n from "i18next";+import { initReactI18next } from "react-i18next";++import en from "./locales/en.json";+import zh from "./locales/zh.json";++const STORAGE_KEY = "openworker.lang";++export const SUPPORTED_LANGS = ["en", "zh"] as const;+export type Lang = (typeof SUPPORTED_LANGS)[number];++/** The user's explicit choice wins; otherwise follow the system locale. */+function resolveLang(): Lang {+ try {+ const stored = localStorage.getItem(STORAGE_KEY);+ if (stored && (SUPPORTED_LANGS as readonly string[]).includes(stored)) {+ return stored as Lang;+ }+ } catch {+ /* localStorage unavailable — fall through to system locale */+ }+ const nav = (typeof navigator !== "undefined" && navigator.language) || "";+ return nav.toLowerCase().startsWith("zh") ? "zh" : "en";+}++export async function initI18n() {+ await i18n.use(initReactI18next).init({+ resources: {+ en: { translation: en },+ zh: { translation: zh },+ },+ lng: resolveLang(),+ fallbackLng: "en",+ interpolation: { escapeValue: false }, // React already escapes+ returnNull: false,+ });+ return i18n;+}++/** Switch language at runtime and persist the choice. Pass null to follow the system locale again. */+export function setLanguage(lang: Lang | null) {+ try {+ if (lang === null) localStorage.removeItem(STORAGE_KEY);+ else localStorage.setItem(STORAGE_KEY, lang);+ } catch {+ /* persistence failure shouldn't block the switch */+ }+ return i18n.changeLanguage(lang ?? resolveLang());+}++/** The user's persisted choice, or null when following the system locale. */+export function getStoredLanguage(): Lang | null {+ try {+ const stored = localStorage.getItem(STORAGE_KEY);+ if (stored && (SUPPORTED_LANGS as readonly string[]).includes(stored)) {+ return stored as Lang;+ }+ } catch {+ /* ignore */+ }+ return null;+}++export function getCurrentLanguage(): Lang {+ const l = i18n.language;+ return (l && l.startsWith("zh") ? "zh" : "en") as Lang;+}diff --git a/surfaces/gui/src/locales/en.json b/surfaces/gui/src/locales/en.jsonnew file mode 100644index 00000000..4880693c--- /dev/null+++ b/surfaces/gui/src/locales/en.json@@ -0,0 +1,1227 @@+{+ "boot": {+ "starting": "Starting OpenWorker…",+ "restoring": "Restoring your session…"+ },+ "common": {+ "dismiss": "Dismiss",+ "remove": "Remove",+ "send": "Send",+ "stop": "Stop"+ },+ "sidebar": {+ "new_session": "New session",+ "new_project": "New project",+ "collapse": "Collapse sidebar",+ "dock": "Dock sidebar",+ "choose_persona": "Choose a persona",+ "start_with_persona": "Start with a specific persona",+ "filter_coworker": "Filter by coworker",+ "group_by": "Group by",+ "group_and_filter": "Group and filter conversations",+ "session_actions": "Session actions",+ "confirm_delete": "Click again to permanently delete",+ "status_working": "Working now",+ "status_sleeping": "Sleeping (will wake itself)",+ "not_signed_in": "Not signed in — one-click connections need OpenWorker Cloud",+ "sign_in": "Sign in to OpenWorker",+ "signed_in_tooltip": "Signed in to OpenWorker Cloud",+ "cloud_suffix": "OpenWorker Cloud",+ "automations": "Automations",+ "search": "Search",+ "recent": "Recent",+ "no_conversations": "No conversations yet.",+ "no_matching": "No matching conversations.",+ "awaiting_attention": "{{n}} awaiting your attention",+ "unseen_new": "{{n}} new run(s)",+ "unseen_failed": "{{n}} new run(s) — the latest failed",+ "from_slack": "From Slack",+ "age_now": "now",+ "age_m": "{{n}}m",+ "age_h": "{{n}}h",+ "age_d": "{{n}}d",+ "age_w": "{{n}}w",+ "age_mo": "{{n}}mo",+ "age_y": "{{n}}y",+ "rename": "Rename",+ "pin": "Pin",+ "unpin": "Unpin",+ "archive": "Archive",+ "unarchive": "Unarchive",+ "delete": "Delete",+ "delete_confirm": "Delete?",+ "pinned": "Pinned",+ "scheduled": "Scheduled",+ "group_persona": "Persona",+ "group_chrono": "Chronological",+ "clear": "Clear",+ "filter_all_hint": "None checked shows all.",+ "projects": "Projects",+ "no_projects_yet": "No projects yet — start one with the + above.",+ "show_more_n": "Show more ({{n}})",+ "no_project_convos": "No conversations in this project yet.",+ "archived_n": "Archived ({{n}})",+ "show_less": "Show less",+ "show_n_more": "Show {{n}} more",+ "sign_out": "Sign out",+ "account_aria": "Account: {{email}}",+ "account_not_signed_in_aria": "Account: not signed in",+ "not_signed_in_row": "Not signed in",+ "inbox_chip_pending": "Inbox — {{n}} items need you",+ "start_session_as": "Start a session as",+ "manage_personas": "Manage personas…"+ },+ "topbar": {+ "show_sidebar": "Show sidebar (⌘B)",+ "show_sidebar_short": "Show sidebar",+ "search": "Search",+ "show_artifacts": "Show files this conversation produced",+ "artifacts": "Artifacts",+ "show_side_panel": "Show side panel",+ "hide_side_panel": "Hide side panel"+ },+ "nav": {+ "activity": "Activity",+ "inbox": "Inbox",+ "automations": "Automations",+ "connectors": "Connectors",+ "settings": "Settings"+ },+ "hero": {+ "chat_greeting": "How can I help?",+ "build_greeting": "Let's build something.",+ "try_a_task": "Try a task",+ "suggest_tests": "Run the test suite and summarize any failures.",+ "suggest_overview": "Read the project and give me a 5-bullet overview.",+ "suggest_fix_build": "Find and fix the failing build."+ },+ "composer": {+ "placeholder": "Ask the coworker… (drop or paste files)",+ "placeholder_code": "Ask the coder to build, fix, or explain… (drop or paste files)",+ "placeholder_chat": "Ask anything… (drop or paste files)",+ "placeholder_cowork": "Ask the coworker… (drop or paste files)",+ "attach": "Attach",+ "attach_image": "Photo or image",+ "attach_other": "Other files",+ "connect_to_send": "Connect a model to send",+ "stop": "⏹ Stop",+ "mode_label": "Mode",+ "approvals_to_inbox": "Send approvals to the Inbox",+ "mode": {+ "discuss": "Discuss",+ "discuss_desc": "Chat and explore — no edits or commands",+ "interactive": "Ask for approval",+ "interactive_desc": "Ask before edits and commands",+ "auto": "Full access",+ "auto_desc": "Run everything without asking"+ },+ "voice": {+ "stop_transcribe": "Stop recording and transcribe",+ "start_dictation": "Start local voice dictation",+ "stop_dictation": "Stop dictation",+ "start_dictation_btn": "Start dictation",+ "configure": "Configure Voice Input in Settings"+ },+ "err_transcribe": "Could not transcribe your recording.",+ "err_dictation_unavailable": "Voice dictation is unavailable.",+ "err_mic_start": "Could not start the microphone.",+ "starting_mic": "Starting microphone…",+ "approvals_to_inbox_help": "When a run is unattended, approval asks go to the Inbox.",+ "listening_sr": "Listening…",+ "pdf_could_not_read": "Couldn't read that PDF.",+ "pdf_too_big": "That PDF is over the size limit and wasn't attached.",+ "pdf_too_many_pages": "That PDF is over the page limit and wasn't attached.",+ "pdf_unreadable": "Couldn't read that PDF.",+ "send_approvals_to_inbox": "Send approvals to the Inbox",+ "starting_transcribe": "Transcribing…",+ "model": {+ "connect": "Connect a model",+ "none": "No model",+ "none_aria": "No model connected — connect a model",+ "loading": "Loading models…",+ "loading_title": "Fetching the model list from the server"+ }+ },+ "transcript": {+ "copy_message": "Copy message",+ "copied": "Copied",+ "thinking_live": "Thinking…",+ "thinking_process": "Thought process",+ "who_assistant": "assistant",+ "retry": "Retry",+ "approval": {+ "approved": "✓ approved",+ "declined": "✕ declined",+ "approved_scope": "approved · {{scope}}"+ },+ "step": {+ "raw": "raw",+ "auto_allowed": "auto-allowed",+ "auto_allowed_tip": "Auto-allowed by this automation's standing approvals: {{name}}",+ "hidden_count_label": "{{n}} hidden",+ "hidden_tip": "Removed by your privacy filters before the agent saw the results — agents get no trace of these."+ },+ "turn": {+ "running": "Running {{label}}…",+ "declined": "{{count}} declined",+ "hidden": "{{count}} hidden by your filters",+ "steps_label": "{{count}} steps",+ "steps_label_one": "{{count}} step"+ },+ "dir_declined": "Declined folder access",+ "dir_granted": "Granted folder access",+ "plan_approved": "Plan approved",+ "plan_proposed": "proposed plan",+ "plan_rejected": "Sent back with feedback"+ },+ "rail": {+ "progress_title": "Progress",+ "artifacts_title": "Artifacts",+ "artifacts_empty": "No previewable files yet.",+ "open": "Open",+ "loading": "Loading…",+ "working": "Working...",+ "empty_state": "For longer multi-step tasks, progress will appear here while OpenWorker plans, uses tools, waits for approval, and produces artifacts.",+ "refresh": "Refresh artifacts",+ "back": "Back",+ "back_to_artifacts": "Back to artifacts",+ "copy_path": "Copy path",+ "copy_full_path": "Copy full path",+ "reload": "Reload",+ "reload_preview": "Reload preview",+ "tool_calls": "{{count}} tool calls so far.",+ "working_task": "Working on this task.",+ "working_task_with_tools": "Working on this task with {{count}} tool calls so far.",+ "empty_file": "Empty file.",+ "office_no_preview": "This {{type}} file can't be previewed here.",+ "pdf_error": "Could not render PDF: {{error}}",+ "pdf_rendering": "Rendering PDF…",+ "sheet_error": "Could not parse spreadsheet: {{error}}",+ "sheet_parsing": "Parsing spreadsheet…",+ "sheet_empty": "Empty sheet.",+ "open_in_default": "Open in default app",+ "show_in_folder": "Show in folder",+ "show_folder": "Show the folder where these files are saved"+ },+ "settings": {+ "tab": {+ "general": "General",+ "models": "Models",+ "voice": "Voice input",+ "personas": "Personas"+ },+ "general_title": "General",+ "general_sub": "How OpenWorker looks and behaves on this machine.",+ "theme": "Theme",+ "appearance_aria": "Appearance",+ "theme_light": "Light",+ "theme_dark": "Dark",+ "theme_auto": "Auto",+ "theme_auto_help": "Auto follows your Mac's appearance.",+ "language": "Language",+ "language_aria": "Language",+ "language_zh": "中文",+ "language_en": "English",+ "language_system": "System",+ "language_help": "Switch the interface language — takes effect immediately.",+ "always_on": "Always-on",+ "open_at_login": "Open at login",+ "open_at_login_help": "Launch OpenWorker automatically when you sign in.",+ "keep_awake": "Keep this system awake",+ "keep_awake_help": "Prevent idle sleep so scheduled tasks fire on time.",+ "setup_updates": "Setup & updates",+ "run_setup_again": "Run setup again",+ "run_setup_help": "Replays the first-run setup: model, first automation, tips.",+ "checking": "Checking…",+ "check_for_updates": "Check for updates",+ "update_install": "Update to v{{version}} and restart",+ "update_latest": "You're on the latest version.",+ "update_error": "Couldn't check right now.",+ "update_downloading": "Downloading — OpenWorker restarts by itself when it's ready.",+ "voice_desktop_only": "Voice Input setup is available in the OpenWorker desktop app.",+ "personas_intro": "Curated coworkers from the OpenWorker team — see what each can do…",+ "scratch_placeholder": "~/OpenWorker",+ "files_browse": "Browse…",+ "files_help": "The scratch space where coworkers save produced files. Override per session.",+ "files_pick_folder": "Pick a folder",+ "files_save": "Save",+ "files_save_error": "Couldn't save.",+ "files_saved": "Saved.",+ "files_title": "Files",+ "gallery_open": "Browse the Persona Gallery",+ "gallery_sub": "Curated coworkers from the OpenWorker team — see what each can do before installing.",+ "gallery_title": "Persona Gallery",+ "sidebar_card_help": "How many sessions the sidebar peeks before showing.",+ "sidebar_card_title": "Sidebar density",+ "sidebar_per_coworker": "Sessions per coworker",+ "voice_checking": "Checking…",+ "voice_compatible": "Compatible",+ "voice_delete": "Delete",+ "voice_delete_confirm": "Delete this model?",+ "voice_device_title": "Device",+ "voice_dl_progress": "Downloading… {{pct}}%",+ "voice_download": "Download",+ "voice_installed": "Installed",+ "voice_intro": "Speak naturally in the composer. Recordings and transcripts stay on this device.",+ "voice_listening": "Listening…",+ "voice_mac": "macOS",+ "voice_mac_detail": "Apple Silicon (M1+): built in, no download needed.",+ "voice_memory": "Memory",+ "voice_memory_detail": "Larger models are more accurate but use more memory.",+ "voice_mic_test_pending": "Testing…",+ "voice_mic_test_ready": "Test the microphone",+ "voice_mic_test_title": "Microphone test",+ "voice_no_speech": "No speech detected — try again.",+ "voice_not_installed": "Not installed",+ "voice_private_body": "The voice model runs entirely on this machine — recordings never leave this device.",+ "voice_private_title": "Fully private",+ "voice_processor": "Processor",+ "voice_processor_detail": "Requires Apple Silicon (M1 or later).",+ "voice_ready_badge": "Ready",+ "voice_repair": "Repair",+ "voice_stop_check": "Stop checking",+ "voice_test_again": "Test again",+ "voice_test_mic": "Test the microphone",+ "voice_transcribing": "Transcribing…",+ "voice_unsupported": "Voice Input isn't supported on this device.",+ "voice_verified": "✓ Verified",+ "voice_verifying": "Verifying…",+ "voice_whisper_title": "Whisper model",+ "voice_windows": "Windows",+ "voice_windows_detail": "Download a whisper.cpp model to enable Voice Input.",+ "trusted_workspaces": "Trusted workspaces",+ "trusted_workspaces_help": "Trusted projects may manage their command allowances in .coworker/config.toml.",+ "trust_loading": "Loading…",+ "trust_empty": "No workspaces are trusted.",+ "trust_allowances_one": "{{count}} project command allowance",+ "trust_allowances_other": "{{count}} project command allowances",+ "trust_no_allowances": "No project command allowances currently declared",+ "trust_folder_unavailable": " · Folder unavailable",+ "trust_revoke": "Revoke",+ "trust_revoke_confirm": "Revoke command trust for {{path}}?",+ "models_sub": "Providers and the models offered in the composer's picker. Keys are stored only on this computer.",+ "token_savings": "Token savings",+ "token_savings_help": "PDF attachments travel with every turn of a conversation, so large documents multiply what you spend on tokens.",+ "pdf_fallback_label": "PDFs on models without native PDF support",+ "pdf_fallback_aria": "PDF fallback",+ "pdf_extract_text": "Extract text",+ "pdf_send_images": "Send page images",+ "pdf_fallback_help": "Claude, GPT and Gemini read PDFs natively — this only applies to models that don’t (GLM, Kimi, DeepSeek, local models…). Text extraction is cheapest; page images cost more tokens and need a vision-capable model.",+ "pdf_max_pages": "Max pages",+ "pdf_max_size": "Max size",+ "pdf_limits_help": "PDFs over these limits are not attached — you’ll see a notice in the composer instead.",+ "voice_action_failed": "Voice Input could not complete that action."+ },+ "cloud": {+ "check_browser": "Check your browser…",+ "sign_in": "Sign in to OpenWorker Cloud",+ "checking": "Checking OpenWorker Cloud sign-in…",+ "sign_in_first": "Sign in to OpenWorker Cloud first",+ "sign_in_oneclick": "Sign in to OpenWorker Cloud for one-click — or add a token below"+ },+ "update": {+ "ready": "OpenWorker v{{version}} is ready to install.",+ "banner_title": "Update available",+ "downloading": "Downloading…",+ "install_failed": "Couldn't install the update.",+ "later": "Later",+ "restart_to_update": "Restart to update"+ },+ "toast": {+ "automation_started": "Automation started",+ "run_count": "run",+ "view_run": "View run"+ },+ "app": {+ "notice": {+ "max_iterations": "Stopped: max iterations reached.",+ "model_switched": "Model switched",+ "interrupted": "Interrupted.",+ "error": "Error: "+ },+ "jump_to_latest": "Jump to latest",+ "waiting_for_agent": "Waiting for agent..."+ },+ "run_banner": {+ "scheduled_run": "Scheduled run",+ "started_by_automation": "· started by an automation",+ "back_to_runs": "← Back to runs"+ },+ "automations": {+ "title": "Automations",+ "sub": "Recurring tasks OpenWorker runs on a schedule.",+ "active_next": "Active · next {{time}}",+ "allowed_desc": "Standing approvals this automation may use — everything else still asks first.",+ "allowed_without_asking": "Allowed without asking",+ "at": "At",+ "back_to_automations": "← Automations",+ "bot_member_hint": "The bot must be a member of the channel — invite @OpenWorker in Slack if it isn't.",+ "cancel": "cancel",+ "cloud_brokered": "Connections are brokered by OpenWorker Cloud — your tokens stay on this Mac.",+ "conn_connected": "connected",+ "conn_not_connected": "not connected yet",+ "connect": "Connect",+ "connected_ok": "✓ Connected",+ "conns_delivery_sched": "Connections, delivery & schedule",+ "consent_prefix": "Allow this automation to post its digest to",+ "consent_suffix": "without asking each time. Anything else still asks first.",+ "create_btn": "Create automation",+ "creating": "Creating…",+ "day_aria": "Day",+ "delete": "Delete",+ "delete_aria": "Delete {{title}}",+ "delete_title": "Delete automation",+ "deliver_app": "In the app",+ "deliver_slack": "Slack DM (connect Slack later)",+ "deliver_to": "Deliver to",+ "delivery_sched": "Delivery & schedule",+ "edit": "Edit",+ "empty_state": "No scheduled tasks yet — use a template above, click <strong>+ New automation</strong>, or just ask OpenWorker in a session.",+ "file_count": "{{count}} file(s)",+ "finish_connecting": "Finish connecting {{name}} in your browser.",+ "finish_connecting_desc": "Approve it there, then come back — this page updates by itself.",+ "finish_signin_desc": "Finish signing in in your browser — this page updates by itself.",+ "freq_daily": "Every day",+ "freq_weekdays": "Weekdays",+ "freq_weekends": "Weekends",+ "gate_connect": "Connect {{names}} to continue",+ "gate_join": "and",+ "gate_pick_channel": "Pick a channel to post to first",+ "instructions_label": "Instructions",+ "instructions_placeholder": "What should it do each run? (e.g. Summarize today's calendar and open tasks.)",+ "last": "last {{status}}",+ "loading": "Loading…",+ "new_automation": "New automation",+ "new_btn": "+ New automation",+ "new_pill": "new",+ "next": "next {{time}}",+ "no_conns_with_cadence": "No connections needed · {{cadence}}",+ "no_runs": "No runs yet.",+ "one_signin_unlocks": "One sign-in unlocks every one-click connection",+ "open_go": "Open ›",+ "open_run": "Open this run's conversation",+ "opening_browser": "Opening browser…",+ "paused": "Paused",+ "post_to_channel": "Post to channel",+ "read_only_pref": "This automation only",+ "read_only_suff": "on schedule — reading never needs approval.",+ "reads": "reads",+ "repeat": "Repeat",+ "repo_placeholder": "owner/repo",+ "repository": "Repository",+ "revoke": "Revoke",+ "revoke_title": "This automation will ask for approval again",+ "run_count": "{{count}} run(s)",+ "run_now": "▶ Run now",+ "runs_desc": "Each run is a live conversation — open one to see what the agent did and ask a follow-up.",+ "runs_label": "Runs",+ "save": "Save",+ "saving": "Saving…",+ "server_hint": "Runs only while openworker-server is up — a missed schedule catches up once when it next starts.",+ "set_up": "Set up",+ "sign_in_to_cloud": "Sign in to OpenWorker Cloud",+ "start_from_template": "Start from a template",+ "the_channel": "the channel",+ "time_aria": "Time",+ "title_label": "Title",+ "title_placeholder": "Title (e.g. Daily standup notes)",+ "waiting_for": "Waiting for {{name}}…",+ "waiting_signin": "Waiting for sign-in…",+ "when": "When",+ "tmpl_brief_instructions_prefix": "Prepare a short morning brief: today's calendar events and gaps, plus email that arrived since yesterday evening. ",+ "tmpl_brief_save": "Save it as the session deliverable.",+ "tmpl_brief_slack": "Send it to me as a Slack DM.",+ "tmpl_github_repo_default": "(the connected repository)",+ "tmpl_github_instructions": "Summarize activity since the last digest in the GitHub repository {{repo}}: merged pull requests, notable commits, and anything needing attention. Post the digest to the Slack channel {{channel}} using send_message.",+ "tmpl_pipeline_instructions": "Review HubSpot activity since the last digest: deals that changed stage, deals going quiet, and deals past their close date. Post a short pipeline digest to the Slack channel {{channel}} using send_message.",+ "tmpl_news_instructions": "Search the web for the most important technology and world news from the last 24 hours and write a concise 5-bullet briefing, saved as a markdown file.",+ "tmpl_inbox_instructions": "Summarize my unread email into one short digest note.",+ "tmpl_cleanup_instructions": "Sort my recent Downloads into tidy folders by file type.",+ "day_mon": "Mondays",+ "day_tue": "Tuesdays",+ "day_wed": "Wednesdays",+ "day_thu": "Thursdays",+ "day_fri": "Fridays",+ "day_sat": "Saturdays",+ "day_sun": "Sundays",+ "cadence_weekly": "Weekly",+ "cadence_daily": "Daily",+ "cadence_weekdays": "Weekdays",+ "tmpl_github_title": "GitHub digest",+ "tmpl_github_blurb": "Merged PRs and commits, posted to your team's Slack.",+ "why_digest_posts": "Where the digest posts",+ "why_digest_summarizes": "What the digest summarizes",+ "tmpl_pipeline_title": "Pipeline digest",+ "tmpl_pipeline_blurb": "Deals that moved — and deals going quiet — posted to Slack.",+ "why_pipeline_activity": "Pipeline and deal activity",+ "tmpl_brief_title": "Morning brief",+ "tmpl_brief_blurb": "Calendar and unread email, summarized before your day starts.",+ "why_meetings_gaps": "Today's meetings and gaps",+ "why_overnight_email": "What arrived overnight",+ "tmpl_news_title": "Morning news briefing",+ "tmpl_news_blurb": "A 5-bullet tech & world news digest, saved as markdown.",+ "tmpl_inbox_title": "Inbox digest",+ "tmpl_inbox_blurb": "One short digest of your unread email.",+ "why_unread_email": "Your unread email",+ "tmpl_cleanup_title": "Folder cleanup",+ "tmpl_cleanup_blurb": "Sort recent Downloads into tidy folders by type."+ },+ "approval": {+ "allow": "Allow",+ "allow_once": "Allow once",+ "deny": "Deny",+ "verbs": {+ "write_file": "Write a file",+ "edit_file": "Edit a file",+ "apply_patch": "Apply a patch",+ "run_command": "Run a command",+ "send_message": "Send a message",+ "send_file": "Send a file"+ },+ "scope": {+ "connector": "acts on a connected service",+ "stays_mac": "stays on this Mac",+ "leaves_mac": "leaves this Mac → {{dest}}",+ "connected_chat_fallback": "a connected chat",+ "overwrite_suffix": "· overwrites the existing file"+ },+ "btn": {+ "allow_every_time": "Allow every time",+ "always_allow": "Always allow",+ "always_command": "Always allow this command",+ "deny": "Deny",+ "this_automation": "this automation",+ "always_task_title": "Always allow {{name}} → {{target}} for “{{task}}” — revoke any time on its Automations page",+ "always_tool_title": "Always allow {{name}} for this session"+ },+ "preview_less": "show less",+ "preview_all_lines": "show all {{n}} lines",+ "preview_full": "show the full message",+ "preview_label": "preview",+ "tool_title": "Tool: {{name}}",+ "file_fallback": "file",+ "as_png_screenshot": "· as a PNG screenshot",+ "with_message": "With the message",+ "resolved_prefix": "Approved: {{state}}",+ "grant": {+ "always_after_approve": "— always allowed once you approve",+ "read_only": "— read-only"+ }+ },+ "search": {+ "placeholder": "Search chats",+ "no_results": "No chats found.",+ "pinned": "Pinned chats",+ "recent": "Recent chats"+ },+ "integrations": {+ "nav_title": "Connectors",+ "tab_connectors": "Connectors",+ "tab_mcp": "MCP servers",+ "connectors_title": "Connectors",+ "connectors_sub": "Apps and tools your coworkers can use. Connected ones come first.",+ "mcp_title": "MCP servers",+ "mcp_sub": "External tool servers (stdio or HTTP), shared across all agents."+ },+ "intro": {+ "greeting": "What should we produce?",+ "lede": "Pick a task to start — I'll do the work and save the result. Or just type what you need below.",+ "task_folder_title": "Analyze the files in a directory",+ "task_folder_sub": "I'll read them and summarize what matters",+ "task_folder_cta": "Pick a folder →",+ "task_hubspot_title": "Create a report from my HubSpot leads",+ "task_hubspot_sub": "Sources, stages, and who needs follow-up",+ "task_ghslack_title": "Automate a weekly GitHub progress report to Slack",+ "task_ghslack_sub": "Repo activity, summarized and posted every Friday",+ "cta_start": "Start →",+ "cta_configure": "Configure ›",+ "folder_prompt": "Analyze the files in this folder and summarize what matters.",+ "hubspot_prompt": "Create a report on my recent HubSpot leads: sources, stages, and who needs follow-up.",+ "ghslack_prompt": "Set up a weekly progress report: summarize activity in my GitHub repos and post it to Slack every Friday morning."+ },+ "access": {+ "section_title": "Access",+ "region_label": "Session access",+ "sources": "Sources",+ "folders": "Folders",+ "no_connectors": "No connectors enabled for this session.",+ "channels_link": "Channels · {{count}}",+ "toggle_title": "Enabled for this session — tap to mute here",+ "mute_hint": "Off mutes it for <b>this session only</b> — the connector stays connected.",+ "search_placeholder": "Search connectors…",+ "no_match": "No match — see all on the Connectors page below.",+ "add_source": "+ Add a source…",+ "recommended": "Recommended",+ "core_tag": "core",+ "give_folder": "Give access to a folder…",+ "manage_all": "Manage all connectors (global)",+ "back_to_sources": "Back to sources",+ "connect_title": "Connect {{title}}",+ "scope_note": "Connecting makes {{title}} available to all your coworkers — the toggle in this list controls just this session.",+ "channels_title": "{{label}} channels",+ "subscribed": "Subscribed channels · {{count}}",+ "no_channels": "Not listening to any {{label}} channel yet.",+ "collision_title": "This channel is also this session's Inbox-routing target — inbound and outbound collide.",+ "stop_listening": "Stop listening",+ "add_channel": "Add a channel",+ "add_btn": "Add",+ "channels_note": "The agent receives messages posted to these channels. Removing one stops this session from listening — the connector stays connected.",+ "summary_no_sources": "no sources",+ "summary_sources_more": "{{first}} +{{more}}",+ "summary_folder_count": "{{count}} folders",+ "summary_join": "{{sources}} · {{folder}}",+ "addfolder_path_placeholder": "Choose or paste a folder path…",+ "allow_writes": "Allow writing (read-write)",+ "allow_writes_help": "When granted, the agent can read and write files in this folder.",+ "cancel": "Cancel",+ "choose_location": "Choose location"+ },+ "root": {+ "temporary_space": "Temporary space",+ "main": "main",+ "missing": "missing",+ "read_write": "Read-write",+ "read_only": "Read-only",+ "primary_always_rw": "The main workspace is always read-write",+ "toggle_rw": "Toggle read-only / read-write"+ },+ "inbox": {+ "title": "Inbox",+ "sub": "Approvals, questions, and notifications from your coworkers — including sessions running unattended.",+ "tab_pending": "Pending",+ "tab_configure": "Configure",+ "kind_all": "All",+ "kind_approvals": "Approvals",+ "kind_questions": "Questions",+ "open_session": "Open \"{{label}}\"",+ "session_unavailable": "Session unavailable",+ "all_coworkers": "All coworkers",+ "nothing_pending": "Nothing pending.",+ "nothing_pending_filter": "Nothing pending for this filter.",+ "also_delivered_to": "Also delivered to",+ "replies_resolve": "— replies there resolve items here.",+ "delivered_here_only": "Delivered here only.",+ "delivered_here_only_connect_slack": "Delivered here only. Connect Slack (Connectors page) to also get these in a channel — more platforms later.",+ "configure_arrow": "Configure ›",+ "unrouted_title": "Unrouted",+ "unrouted_sub": "Inbound messages and background-turn failures nothing claimed — nothing vanishes silently.",+ "unattended_approvals": "Unattended approvals",+ "mirror_desc_prefix": "Channel where an Unattended session posts Approve/Deny buttons. Currently mirroring to",+ "mirror_desc_suffix": ".",+ "in_app_inbox_only": "in-app Inbox only",+ "set": "Set",+ "clear": "clear",+ "direct_messages": "Direct messages",+ "dm_desc": "Session that handles DMs to the bot. With none, DMs park under Unrouted below.",+ "dm_no_session": "No session — park DMs",+ "channel_subscriptions": "Channel subscriptions",+ "subscriptions_sub": "— sessions that listen to a channel (inbound)",+ "col_session": "Session",+ "col_listens_to": "Listens to",+ "col_inbox_routes_to": "Inbox routes to",+ "col_when": "When",+ "col_source": "Source",+ "col_reason": "Reason",+ "col_message": "Message",+ "collides": "⚠ collides",+ "collision_title": "This channel is also your Inbox-routing target — inbound and outbound on one channel conflate broadcast with request/reply.",+ "unsubscribe": "Unsubscribe",+ "no_subscriptions": "No channel subscriptions yet — add one below or ask a coworker to watch a channel.",+ "choose_session": "Choose a session…",+ "subscribe": "+ Subscribe",+ "unrouted_empty": "Nothing here — no dropped messages or failed turns.",+ "approve": "Approve",+ "reject": "Reject",+ "dismiss": "Dismiss",+ "always_task_title": "Always allow against {{target}} for \"{{task}}\" — revoke any time on its Automations page",+ "send_count": "Send ({{count}})",+ "or_type_answer": "Or type your own answer…",+ "your_answer": "Your answer…",+ "grant": "Grant",+ "grant_no_folder": "Grant (no folder)",+ "no_folder_suggested": "No folder was suggested",+ "channel_picker_placeholder": "slack:C0123 or channel link",+ "searching_channels": "searching your workspace's channels…",+ "invite_to_listen": "invite @ocw to this channel in Slack so it can listen",+ "channels_this_session": "Channels this session listens to",+ "not_subscribed": "Not subscribed to any channel.",+ "add": "Add",+ "connector_via": "via {{label}}",+ "rel_just_now": "just now",+ "rel_minutes_ago": "{{count}}m ago",+ "rel_hours_ago": "{{count}}h ago",+ "rel_days_ago": "{{count}}d ago",+ "routing_update_failed": "Could not update Inbox routing.",+ "routing_clear_failed": "Could not clear Inbox routing.",+ "missing_slack_owner": "Choose an approval owner under Integrations → Slack before routing approvals here."+ },+ "audit": {+ "title": "Activity",+ "sub": "Recent connector and browser tool activity. Arguments are sanitized before storage.",+ "placeholder_session": "session id",+ "placeholder_connector": "connector",+ "placeholder_tool": "tool",+ "filter": "Filter",+ "no_events": "No audit events yet.",+ "fallback_tool": "tool",+ "fallback_event": "event",+ "session": "session",+ "resource": "resource: {{value}}"+ },+ "plan": {+ "proposed": "The agent proposed a plan",+ "feedback_placeholder": "What should change about the plan?",+ "back": "Back",+ "send_feedback": "Send feedback",+ "request_changes": "Request changes",+ "approve_ask": "Approve — ask per step",+ "approve_and_run": "Approve & run"+ },+ "dirreq": {+ "requesting_access": "The agent is requesting access to a folder",+ "path_placeholder": "Choose or paste a folder path…",+ "choose_location": "Choose location",+ "allow_writing": "Allow writing (read-write)",+ "decline": "Decline",+ "grant_access": "Grant access"+ },+ "todo": {+ "title": "Tasks"+ },+ "folder_gate": {+ "open_error": "could not open that folder",+ "choose_folder": "Choose a project folder",+ "create_sub": "Pick a folder or enter a path. If the path doesn't exist, it will be created.",+ "choose_sub": "This coworker needs a workspace to read, edit, and run in.",+ "path_placeholder": "/path/to/your/project",+ "pick_folder": "Pick a folder",+ "browse": "Browse…",+ "create": "Create",+ "open": "Open",+ "cancel": "Cancel"+ },+ "connector": {+ "not_connected": "Not connected",+ "connect": "Connect",+ "disconnect": "Disconnect",+ "disconnecting": "Disconnecting…",+ "connected": "Connected",+ "connected_count": "Connected · {{count}}",+ "built_in": "Built in",+ "loading": "Loading…",+ "back_to_connectors": "‹ Connectors",+ "search": "Search",+ "available": "Available",+ "nothing_matches": "Nothing matches.",+ "more_count": "{{count}} more ·",+ "show_all": "show all",+ "account_count": "{{count}} account(s)",+ "portal_count": "{{count}} portal(s)",+ "slack_status": "{{count}} workspace(s) · relay",+ "default": "Default",+ "make_default": "Make default",+ "people": "People",+ "waiting": "Waiting",+ "listening": "Listening",+ "in_channel": "in {{name}}",+ "allow": "Allow",+ "allow_deliver": "Allow & deliver",+ "dismiss": "Dismiss",+ "unsubscribe_title": "Unsubscribe this session",+ "live": "Live",+ "ready": "Ready",+ "offline": "Offline",+ "reconnecting": "Reconnecting",+ "sign_in_needed": "Sign-in needed",+ "token": "Token",+ "tools_label": "› Tools",+ "tools_enabled": "{{enabled}} of {{total}} enabled",+ "asks_first": "asks first",+ "read": "read"+ },+ "github": {+ "relay_live": "Live · managed relay",+ "relay_signin_needed": "Sign-in needed — relaying is paused",+ "relay_offline": "Offline — can't reach the relay",+ "relay_reconnecting": "Reconnecting to the relay…",+ "connected_pat": "Connected · personal access token",+ "add_installation": "+ Add installation",+ "add_installation_title": "Add an installation",+ "setup_blurb": "One @ocw-agent App, installed per account or org — you pick the repos on GitHub; each installation keeps its own allow-list.",+ "setup_cloud_note": "One-click needs cloud sign-in; a PAT works without it.",+ "manual_card_note": "Personal access token · tools only. Install the GitHub App to let @-mentions and the agent label reach this computer.",+ "triggers_foot": "Triggers: @ocw-agent mentions and the \"ocw-agent\" label. The agent replies as ocw-agent[bot].",+ "all_repos": "all repos",+ "selected_repos": "selected repos",+ "install_revoked": "⚠ Installation revoked — reinstall",+ "empty_parked_note": "No one allowed yet — @ocw-agent mentions show up here for your OK.",+ "nobody_yet": "nobody yet — approve a waiting sender below",+ "disconnect_install": "Disconnect installation",+ "disconnect_install_title": "Stops relaying this installation to this computer. The App stays installed on GitHub.",+ "allow_deliver_title": "Allow the sender and deliver this mention now",+ "allow_discard_title": "Allow the sender; this mention is discarded"+ },+ "slack": {+ "relay_live": "Live · managed relay",+ "relay_signin_needed": "Sign-in needed — relaying is paused",+ "relay_offline": "Offline — can't reach the relay",+ "relay_reconnecting": "Reconnecting to the relay…",+ "connected_socket_mode": "Connected · Socket Mode (manual tokens)",+ "add_workspace": "+ Add workspace",+ "add_workspace_title": "Add a workspace",+ "setup_blurb": "One @ocw app, installed per workspace — each keeps its own allow-list.",+ "setup_cloud_note": "One-click needs cloud sign-in; Manual works without it.",+ "workspace_default": "workspace",+ "manual_tokens": "· manual tokens",+ "names_foot": "Names come from Slack automatically. IDs show on hover.",+ "token_revoked": "⚠ Token revoked — reinstall",+ "empty_parked_note": "No one allowed yet — mentions of the bot show up here for your OK.",+ "disconnect_workspace": "Disconnect workspace",+ "disconnect_workspace_title": "Stops relaying this workspace to this computer. The app stays installed in Slack.",+ "you": "You",+ "you_suffix": "· you",+ "nobody_yet": "nobody yet — pick a name, or approve a waiting sender below",+ "add_person": "+ Add person",+ "pick_from_directory": "Pick from the workspace directory",+ "type_a_name": "Type a name…",+ "no_matches": "no matches",+ "guest": "guest",+ "directory_unavailable": "directory unavailable",+ "directory_foot": "From your workspace directory — stays on this computer.",+ "allow_deliver_title": "Allow the sender and deliver this message now",+ "allow_discard_title": "Allow the sender; this message is discarded",+ "hiw_show": "Show how mentions work",+ "hiw_collapse": "Collapse — reopen anytime",+ "hiw_how_it_works": "How it works",+ "hiw_hide": "Hide",+ "hiw_title": "Getting started with Slack & OpenWorker",+ "hiw_workspace": "Workspace",+ "hiw_connected": "connected",+ "hiw_on_people_list": "— you're on the People list, so your mentions get through.",+ "hiw_how_mentions": "— here's how mentions reach you.",+ "hiw_you": "You",+ "approvals_label": "Approvals",+ "choose_owner_warning": "Choose at least one owner before routing Inbox approvals to Slack.",+ "installer_suffix": "· installer",+ "owner_suffix": "· owner",+ "owner_protected_title": "Remove approval-owner access before removing this person.",+ "remove_owner_title": "remove approval owner",+ "remove_owner_failed": "could not remove approval owner",+ "add_owner": "+ Add owner",+ "owner_set_by_installer": "Set by the workspace installer.",+ "you_fallback": "You",+ "hiw_mention_new": "a @mention starts a NEW session",+ "hiw_answer_thread": "the answer comes back as a thread",+ "hiw_thread_same": "chatting in the thread continues the SAME conversation",+ "hiw_first_senders": "first-time senders wait for your OK",+ "hiw_members": "members",+ "hiw_today": "Today",+ "hiw_today_at": "Today at",+ "hiw_msg_signups": "signups are spiking since the post 📈",+ "hiw_1reply": "1 reply",+ "hiw_2replies": "2 replies",+ "hiw_summarize": "summarize this thread",+ "hiw_msg_launch": "Message #launch-room",+ "hiw_thread": "Thread",+ "hiw_msg_traction": "Launch traction: signups up 3.4× since the post…",+ "hiw_reply": "Reply…",+ "hiw_break_country": "break it down by country?",+ "hiw_top_countries": "Top: US 41% · India 22% · Germany 9%…",+ "hiw_reading_thread": "Reading the thread… signups up 3.4×, top referrer is the press page.",+ "hiw_replying_slack": "replying in the Slack thread",+ "hiw_msg_kp": "Message OpenWorker…",+ "hiw_new_session": "New session",+ "hiw_search": "Search",+ "hiw_automations": "Automations",+ "hiw_recent": "RECENT",+ "hiw_summarize_room": "Summarize #launch-room",+ "hiw_via_slack": "via Slack",+ "hiw_jira_linear": "Jira vs Linear",+ "hiw_coworker": "Coworker",+ "hiw_via_slack_same": "via Slack — same session",+ "hiw_signups_referrer": "…signups up 3.4×, top referrer is the press page.",+ "hiw_top_countries_full": "Top countries: US 41%, India 22%, Germany 9% — context kept from the whole thread.",+ "hiw_after_allow": "after you allow",+ "hiw_pull_numbers": "pull the signup numbers?",+ "hiw_is_waiting": "is waiting",+ "hiw_allow_deliver": "Allow & deliver",+ "hiw_each_teammate_prefix": "Each teammate's",+ "hiw_first": "first",+ "hiw_each_teammate_suffix": "mention waits for your OK — then they're on the People list and it flows.",+ "hiw_tab_mention": "Mention → session",+ "hiw_tab_threads": "Threads stay connected",+ "hiw_tab_teammates": "Allow teammates",+ "hiw_cap_mention": "Mention @OpenWorker in any channel it's invited to — a session opens here, and the answer lands back in Slack as a thread.",+ "hiw_cap_threads": "Mention it again inside the thread — the conversation continues in the same session, context intact. The thread is the session.",+ "hiw_cap_teammates": "Teammates aren't auto-trusted: their first mention waits for your OK, then they're on the People list.",+ "hiw_threads": "Threads",+ "hiw_drafts": "Drafts & sent",+ "hiw_channels": "Channels",+ "hiw_direct_messages": "Direct messages",+ "hiw_agents_apps": "Agents & apps",+ "hiw_search_desc": "Describe what you are looking for",+ "hiw_via_slack_now": "via Slack · now"+ },+ "gmail": {+ "add_account": "+ Add account",+ "add_account_coming_soon": "+ Add account · Coming soon",+ "coming_soon_title": "One-click Google sign-in is coming soon",+ "setup_blurb": "Sign in with Google — each mailbox stays separate, agents say which one they use.",+ "requires_cloud": "Requires cloud sign-in.",+ "accounts": "Accounts",+ "sign_in_again": "⚠ Sign in again",+ "disconnect_mailbox_title": "Disconnect this mailbox",+ "never_show_agents": "Never show agents",+ "senders": "Senders",+ "senders_placeholder": "[email protected] or @domain.com",+ "labels": "Labels",+ "labels_placeholder": "Label name, e.g. Personal",+ "filters_foot": "Filters are enforced on this computer, before an agent sees results. Hidden counts show on the tool card and in Activity — never the content.",+ "filters_foot_inner": "Matching email is silently left out of what agents read — no trace they could probe."+ },+ "hubspot": {+ "add_portal": "+ Add portal",+ "add_portal_title": "Add a portal",+ "setup_blurb": "Connect a portal — read-only or read & write is chosen at consent; there are no delete tools either way.",+ "portals": "Portals",+ "portal_count": "{{count}} portal(s)",+ "sandbox": "Sandbox",+ "read_write": "read & write",+ "read_only": "read-only",+ "private_app": "private app",+ "disconnect_portal_title": "Disconnect this portal",+ "access_privacy": "Access & privacy",+ "hidden_fields": "Hidden fields",+ "hidden_fields_placeholder": "Property name, e.g. salary",+ "hidden_fields_foot": "Hidden fields never reach an agent; stripped counts land in Activity. To limit what a HUMAN teammate could ask for, use HubSpot permission sets on the connected user.",+ "hidden_fields_foot_inner": "Stripped from every record agents read, across all portals."+ },+ "calendar": {+ "add_account": "+ Add account",+ "add_account_coming_soon": "+ Add account · Coming soon",+ "coming_soon_title": "One-click Google sign-in is coming soon",+ "setup_blurb": "Sign in with Google — each account stays separate, agents say which one they use.",+ "requires_cloud": "Requires cloud sign-in.",+ "accounts": "Accounts",+ "sign_in_again": "⚠ Sign in again",+ "disconnect_account_title": "Disconnect this account",+ "events_approval_foot": "Creating, changing, or deleting events always asks for your approval first, and the approval names the account.",+ "google_calendar": "Google Calendar"+ },+ "accounts": {+ "add_account": "+ Add account",+ "add_manually": "Add manually",+ "add_an_account": "Add an account",+ "accounts": "Accounts",+ "disconnect_account_title": "Disconnect this account",+ "foot": "Each account stays separate — tool results and approvals name the account they used."+ },+ "available": {+ "connect": "Connect",+ "access": "Access",+ "access_foot": "Keys and tokens are stored only on this computer. Disconnect anytime.",+ "tools": "Tools",+ "tools_added": "{{count}} tool(s) this connector adds",+ "hide": "Hide",+ "view": "View",+ "asks_first": "asks first"+ },+ "modal": {+ "connect_title": "Connect {{title}}",+ "close": "Close",+ "one_click": "One click",+ "manual": "Manual",+ "recommended": "Recommended",+ "tokens_stay_local": "tokens stay on this computer",+ "could_not_start_connect": "could not start the connect",+ "could_not_start_install": "could not start the install",+ "could_not_connect": "could not connect",+ "validating": "Validating…",+ "connect": "Connect",+ "mcp_blurb": "Opens {{title}} in your browser — sign in and approve access there. No tokens typed, and no OpenWorker account needed: the sign-in runs entirely on this computer.",+ "mcp_recommended_foot": "agents get a curated set of {{title}} tools · tokens stay on this computer",+ "generic_blurb": "Opens {{title}} in your browser — approve access there. No tokens typed; connect again with another account to add it alongside.",+ "slack_blurb": "Opens Slack in your browser — approve @ocw for the workspace. No tokens; works for any number of workspaces.",+ "add_to_slack": "Add to Slack",+ "slack_recommended_foot": "relay · tokens stay on this computer",+ "github_blurb": "Opens GitHub in your browser — approve OpenWorker there. An existing @ocw-agent App installation links right up; otherwise you'll pick an account and repos. No tokens typed; the agent acts as ocw-agent[bot].",+ "connect_github": "Connect GitHub",+ "github_recommended_foot": "relay · short-lived tokens, never stored",+ "hubspot_blurb": "Opens HubSpot in your browser — pick the portal there. What agents may do is chosen NOW, at consent:",+ "hubspot_readonly": "Read-only",+ "hubspot_readonly_blurb": "search and read contacts, companies, deals, tickets",+ "hubspot_readwrite": "Read & write",+ "hubspot_readwrite_blurb": "adds: log notes and tasks, update records, create contacts — never delete",+ "connect_hubspot": "Connect HubSpot",+ "hubspot_foot": "Works for any number of portals · tokens stay on this computer",+ "slack_manual_step1": "Create an app at api.slack.com/apps",+ "slack_manual_step2": "Enable Socket Mode, add bot scopes, install it to your workspace",+ "slack_manual_step3": "Paste both tokens",+ "bot_token_placeholder": "Bot token · xoxb-…",+ "app_token_placeholder": "App token · xapp-…",+ "slack_manual_pause_note": "One mode at a time — this pauses any relay workspaces."+ },+ "gallery": {+ "all_personas": "All personas",+ "back_to_gallery": "← Gallery",+ "can_message": "can use messaging",+ "capabilities_desc": "Read by this app's own parser, so it matches exactly what the install consent will ask you to approve. No executable code is installed.",+ "capabilities_title": "What it can do — verified from its manifest",+ "check_browser": "Check your browser…",+ "close_aria": "Close gallery",+ "connect_yourself_note": "You connect these yourself (one click when signed in) — installing the coworker grants it nothing until you do.",+ "core_tag": "core",+ "could_not_load": "could not load details",+ "detail_meta": "v{{version}} · {{publisher}} · {{risk}}",+ "done": "Done",+ "empty_none": "No personas published yet.",+ "empty_search": "No personas match your search.",+ "empty_team": "Nothing shared with your team yet.",+ "featured": "Featured",+ "filter_all": "All",+ "filter_brand": "From OpenWorker",+ "filter_team": "From your team",+ "install": "Install",+ "install_failed": "install failed",+ "installed": "Installed",+ "installed_waiting": "Installed — it's waiting in Personas, disabled until you approve and enable it.",+ "installing": "Installing…",+ "loading": "Loading…",+ "loading_gallery": "Loading the gallery…",+ "mcp_suffix": "MCP: {{mcp}}",+ "mode_suffix": "{{mode}} mode",+ "none": "none",+ "permissions_label": "Permissions: ",+ "risk_suffix": " · risk: {{risk}}",+ "search_placeholder": "Search personas",+ "sign_in": "Sign in",+ "signin_desc": "The Gallery is a curated set of coworkers from OpenWorker Cloud and needs a (free) cloud sign-in. Installing personas from a folder or Git URL — on the Personas page — always works without an account.",+ "signin_title": "Sign in to browse the Gallery",+ "subtitle": "Curated coworkers · installs stay disabled until you approve them",+ "team_teaser": "From your team — nothing shared yet. Publishing a persona to your teammates is coming soon.",+ "title": "Persona Gallery",+ "tools_label": "Tools: ",+ "unreachable": "The gallery is unreachable right now — try again in a moment.",+ "version_publisher": "v{{version}} · {{publisher}}",+ "view_install": "View & install →",+ "works_with": "Works with these connections:"+ },+ "manage": {+ "add_btn": "Add",+ "allowed_empty": "nobody yet — Allow a recent sender →",+ "allowed_to_message": "Allowed to message",+ "cancel": "cancel",+ "check_browser": "Check your browser…",+ "coming_soon": "Coming soon",+ "composer_picker_help": "The models offered when starting a session; the black badge marks the default. Add more from a provider's card above.",+ "composer_picker_title": "In the composer's picker",+ "connect": "Connect",+ "connect_one_click": "Connect {{title}} with one click",+ "connector_no_tools": "No tools for this connector yet.",+ "could_not_connect": "could not connect",+ "could_not_start_connect": "could not start the connect",+ "could_not_start_managed": "could not start the connect",+ "id_title": "ID",+ "included_models": "Included models",+ "included_models_help": "Curated, agent-capable models this provider serves — add your key above to enable them.",+ "listening_empty": "None yet — open a session's Sources ▸ Channels to subscribe it to a channel.",+ "listening_title": "Sessions listening to {{title}} channels · {{n}}",+ "listening_unsub_tip": "Unsubscribe",+ "loading": "Loading…",+ "mcp_add_btn": "+ Add server",+ "mcp_add_server": "Add a server",+ "mcp_asks": "asks",+ "mcp_connect_failed": "failed to connect",+ "mcp_enable": "Enable this server",+ "mcp_help": "External tool servers (stdio or HTTP), shared across all agents. Reload the app after editing mcp.json — or reload now.",+ "mcp_hide_tools": "hide tools",+ "mcp_invalid_json": "Invalid JSON: {{msg}}",+ "mcp_no_tools": "No tools.",+ "mcp_none": "No MCP servers configured.",+ "mcp_oauth": "oauth",+ "mcp_paste_help": "Paste a '{ \"<name>\": { … } }' object (or a full mcpServers block).",+ "mcp_paste_label": "Paste server JSON (name → config):",+ "mcp_sign_in": "Sign in",+ "mcp_sign_out": "sign out",+ "mcp_signing_in": "signing in…",+ "mcp_tool_count": "{{n}} tools",+ "mcp_tools": "tools",+ "mcp_waiting_browser": "waiting for browser…",+ "models": "Models",+ "models_help": "Ticked models show in the composer's picker; the black badge marks the default for new sessions.",+ "one_click_coming": "One-click sign-in is coming soon — connect manually below for now:",+ "openai_env_help": "A key is set via OPENAI_API_KEY in this server's environment. Add a different key here to override it for this computer.",+ "optional": "(optional)",+ "or_connect_manually": "or connect manually:",+ "parked_allow_deliver": "Allow & deliver",+ "parked_allow_deliver_tip": "Allow the sender and deliver this message now",+ "parked_allow_only": "Allow only",+ "parked_allow_tip": "Allow the sender; this message is discarded",+ "parked_dismiss": "Dismiss",+ "parked_dismiss_tip": "Discard this message without allowing the sender",+ "parked_in": "in {{chat}}",+ "parked_title": "Messages from senders you haven't allowed · {{n}}",+ "recent_empty": "None yet. Message the bot once and it'll show here.",+ "recent_senders": "Recent senders",+ "reload_now": "reload now",+ "reltime_day": "{{n}}d ago",+ "reltime_hour": "{{n}}h ago",+ "reltime_just_now": "just now",+ "reltime_min": "{{n}}m ago",+ "remove_from_picker": "Remove from the picker",+ "remove_key": "Remove key…",+ "remove_key_confirm": "Remove the {{title}} key from this computer?",+ "signin_unlocks": "Sign-in unlocks the one-click {{title}} connect — or connect manually below.",+ "tool_asks_approval": "{{name}} · {{kind}} · asks approval",+ "tools_exposed": "Tools exposed to OpenWorker",+ "unknown": "unknown",+ "validating": "Validating…"+ },+ "models": {+ "add_btn": "Add",+ "add_placeholder": "Add another model…",+ "default_badge": "default",+ "default_locked": "The default model is always shown — make another model default first",+ "key_set": "Key set",+ "make_default": "Make default"+ },+ "onboarding": {+ "cancel": "Cancel",+ "check_browser": "Check your browser…",+ "checking": "Checking…",+ "coming_soon": "Coming soon",+ "connect": "Connect",+ "connect_tools_intro": "Chat can only advise. Connected, your coworker does the actual work:",+ "connect_tools_title": "Connect your everyday tools",+ "connected_ok": "✓ Connected",+ "continue_without_signin": "Continue without sign-in",+ "cta_automation_desc": "A weekly digest, a morning brief — pick a template, running in two minutes.",+ "cta_automation_title": "Create your first automation",+ "cta_work_desc": "Open a session and just ask — analyze files, draft, research, build.",+ "cta_work_title": "Start working with Coworker",+ "google_pair_detail": "Coming soon — pending Google's app verification.",+ "google_pair_title": "Gmail & Google Calendar",+ "model_intro": "Pick a model provider to get started — OpenWorker runs on your own key, and your key and your data stay on this Mac.",+ "models_settings_hint": "Models can be enabled or hidden anytime in Settings ▸ Models.",+ "more_tools_hint": "30+ more tools on the Connectors page — add or remove anytime. Tokens stay on this Mac.",+ "next": "Next",+ "opening_browser": "Opening browser…",+ "replay_hint": "Replay this setup anytime: Settings ▸ Appearance ▸ Run setup again.",+ "sign_in": "Sign in",+ "signed_in_as": "🎉 You're signed in{{account}}",+ "signed_in_desc": "Connect a tool above with one click — or add them anytime later from the Connectors page.",+ "signin_band_desc": "OpenWorker handles the OAuth for 20+ tools — no dev consoles, no pasted keys. Tokens stay on this Mac.",+ "signin_for_oneclick": "Sign in for one-click connections",+ "skip_anyway": "skip anyway",+ "skip_setup": "Skip setup",+ "skip_warn_pref": "Nothing works without a model—",+ "two_ways": "Two good ways to start:",+ "waiting": "Waiting…",+ "youre_set_up": "You're set up",+ "welcome": "Welcome to OpenWorker",+ "tool_outlook_benefit": "Stay on top of email",+ "tool_outlook_detail": "Outlook — triage mail, draft replies, run your calendar.",+ "tool_slack_benefit": "Keep up with Slack",+ "tool_slack_detail": "Slack — catch up, answer mentions, post updates.",+ "tool_github_benefit": "Ship code",+ "tool_github_detail": "GitHub — review PRs, watch issues, reply to @mentions.",+ "tool_notion_benefit": "Keep your notes in reach",+ "tool_notion_detail": "Notion — search pages, query databases, draft docs.",+ "tool_hubspot_benefit": "Keep the CRM current",+ "tool_hubspot_detail": "HubSpot — update deals, log notes, prep calls.",+ "tool_attio_benefit": "Track every relationship",+ "tool_attio_detail": "Attio — search records, read timelines, log notes."+ },+ "persona": {+ "about": "About",+ "add": "Add",+ "back": "Back",+ "builtin_capabilities": "Built-in capabilities",+ "connect": "Connect",+ "connect_this_first": "Connect this first",+ "connect_to_enable": "connect to enable",+ "connected": "connected",+ "connections_desc": "Declared by the persona — wire {{name}} into these to unlock its full workflow.",+ "connections_full_benefit": "Connections for full benefit",+ "core_tag": "core",+ "default_mode_label": "Default mode",+ "disabled": "Disabled",+ "enable_title": "Enable this persona",+ "enabled": "Enabled",+ "hero_art": "{{slug}} artwork",+ "load_error": "Could not load this persona.",+ "loading": "Loading…",+ "models_label": "Models",+ "new_sessions_default": "New sessions get by default",+ "new_sessions_desc": "When you start a {{name}} session these are enabled automatically. You can still mute any of them per session.",+ "on_by_default": "On by default for new sessions",+ "persona": "Persona",+ "workspace_label": "Workspace"+ },+ "personas": {+ "add_help": "Load from a local directory or a public GitHub repo. Files are copied into a managed area (a snapshot), so the source can change without affecting the install.",+ "add_section": "Add personas",+ "builtin": "· built-in",+ "configure_title": "Configure {{name}}",+ "connectors_tag": "connectors",+ "default_for_new": "Default for new sessions",+ "delete": "Delete",+ "delete_failed": "Couldn't delete — it may be in a session.",+ "delete_title": "Delete {{name}}",+ "delete_tooltip": "Delete this persona",+ "disable": "Disable",+ "disable_warning": "Disabling archives its {{n}} conversation(s) — they stay available under \"Show archived\".",+ "enable_intro": "Enable a coworker, then choose whether it appears in the new-session picker. The starred persona is the default for new sessions.",+ "enabled": "Enabled",+ "in_picker": "In picker",+ "install": "Install",+ "install_failed": "Install failed",+ "installed": "Installed {{n}} persona(s) — review and enable below.",+ "installing": "Installing…",+ "keep": "Keep",+ "keep_enabled": "Keep enabled",+ "mcp_tag": "mcp",+ "messaging_tag": "messaging",+ "mode_github": "GitHub URL",+ "mode_local": "Local directory",+ "placeholder_github": "https://github.com/org/repo",+ "placeholder_local": "/path/to/persona/dir",+ "recommended_mode": "Recommended mode: {{mode}}. Enable it above to use it.",+ "risk_label": "Risk: {{risk}}",+ "set_default": "Set default",+ "tools_label": "Tools: {{tools}}"+ },+ "provider": {+ "all_providers": "‹ All providers",+ "connected_ok": "✓ Connected",+ "create_key_at": "Create one at {{label}}",+ "custom_endpoint": "Custom endpoint",+ "days_ago": "{{count}}d ago",+ "detect_btn": "Detect",+ "detected_pill": "✓ Detected",+ "err_couldnt_verify": "couldn't verify",+ "err_unreachable": "unreachable",+ "hours_ago": "{{count}}h ago",+ "install_ollama": "Install Ollama",+ "just_now": "just now",+ "minutes_ago": "{{count}}m ago",+ "no_key_needed": "No key needed",+ "no_key_needed_desc": "No API key needed — Ollama runs models on this Mac.",+ "no_key_yet": "No key yet?",+ "not_set_up": "Not set up",+ "running": "✓ Running",+ "saved_pill": "✓ Saved",+ "takes_a_minute": "— takes about a minute.",+ "test_btn": "Test",+ "tested_saved_pill": "✓ Tested & saved",+ "used_suffix": " · used {{time}}"+ },+ "workspace_trust": {+ "title": "Trust this workspace’s commands?",+ "sub": "This project asks OpenWorker to run the commands below without individual approval. Trust applies to future configuration changes at this exact folder until you revoke it in Settings.",+ "save_failed": "Could not save workspace trust.",+ "keep_asking": "Keep asking",+ "saving": "Saving…",+ "trust": "Trust workspace"+ }+}diff --git a/surfaces/gui/src/locales/zh.json b/surfaces/gui/src/locales/zh.jsonnew file mode 100644index 00000000..9a7218c0--- /dev/null+++ b/surfaces/gui/src/locales/zh.json@@ -0,0 +1,1225 @@+{+ "boot": {+ "starting": "正在启动 OpenWorker…",+ "restoring": "正在恢复你的会话…"+ },+ "common": {+ "dismiss": "关闭",+ "remove": "移除",+ "send": "发送",+ "stop": "停止"+ },+ "sidebar": {+ "new_session": "新建会话",+ "new_project": "新建项目",+ "collapse": "收起侧栏",+ "dock": "停靠侧栏",+ "choose_persona": "选择角色",+ "start_with_persona": "从特定角色开始",+ "filter_coworker": "按同事筛选",+ "group_by": "分组方式",+ "group_and_filter": "分组与筛选会话",+ "session_actions": "会话操作",+ "confirm_delete": "再次点击以永久删除",+ "status_working": "进行中",+ "status_sleeping": "休眠(会自动唤醒)",+ "not_signed_in": "未登录 —— 一键连接需要 OpenWorker Cloud",+ "sign_in": "登录 OpenWorker",+ "signed_in_tooltip": "已登录 OpenWorker Cloud",+ "cloud_suffix": "OpenWorker Cloud",+ "automations": "自动化",+ "search": "搜索",+ "recent": "最近",+ "no_conversations": "还没有会话。",+ "no_matching": "无匹配的会话。",+ "awaiting_attention": "{{n}} 项待你处理",+ "unseen_new": "{{n}} 次新运行",+ "unseen_failed": "{{n}} 次新运行 —— 最新一次失败",+ "from_slack": "来自 Slack",+ "age_now": "刚刚",+ "age_m": "{{n}}分钟前",+ "age_h": "{{n}}小时前",+ "age_d": "{{n}}天前",+ "age_w": "{{n}}周前",+ "age_mo": "{{n}}个月前",+ "age_y": "{{n}}年前",+ "rename": "重命名",+ "pin": "置顶",+ "unpin": "取消置顶",+ "archive": "归档",+ "unarchive": "取消归档",+ "delete": "删除",+ "delete_confirm": "删除?",+ "pinned": "已置顶",+ "scheduled": "定时任务",+ "group_persona": "角色",+ "group_chrono": "时间顺序",+ "clear": "清除",+ "filter_all_hint": "不勾选则显示全部。",+ "projects": "项目",+ "no_projects_yet": "还没有项目 —— 用上方的 + 新建一个。",+ "show_more_n": "显示更多({{n}})",+ "no_project_convos": "此项目中还没有会话。",+ "archived_n": "已归档({{n}})",+ "show_less": "收起",+ "show_n_more": "再显示 {{n}} 条",+ "sign_out": "退出登录",+ "account_aria": "账户:{{email}}",+ "account_not_signed_in_aria": "账户:未登录",+ "not_signed_in_row": "未登录",+ "inbox_chip_pending": "收件箱 —— {{n}} 项待你处理",+ "start_session_as": "以此身份开始会话",+ "manage_personas": "管理角色…"+ },+ "topbar": {+ "show_sidebar": "显示侧栏 (⌘B)",+ "show_sidebar_short": "显示侧栏",+ "search": "搜索",+ "show_artifacts": "显示本次对话产出的文件",+ "artifacts": "产出文件",+ "show_side_panel": "显示侧边面板",+ "hide_side_panel": "隐藏侧边面板"+ },+ "nav": {+ "activity": "活动",+ "inbox": "收件箱",+ "automations": "自动化",+ "connectors": "连接器",+ "settings": "设置"+ },+ "hero": {+ "chat_greeting": "我能帮你什么?",+ "build_greeting": "来做点什么吧。",+ "try_a_task": "试试一个任务",+ "suggest_tests": "运行测试套件并总结失败项。",+ "suggest_overview": "读项目并用 5 条要点给我一个概览。",+ "suggest_fix_build": "找到并修复失败的构建。"+ },+ "composer": {+ "placeholder": "问问同事…(拖入或粘贴文件)",+ "placeholder_code": "让程序员构建、修复或解释…(拖入或粘贴文件)",+ "placeholder_chat": "随便问…(拖入或粘贴文件)",+ "placeholder_cowork": "问问同事…(拖入或粘贴文件)",+ "attach": "附件",+ "attach_image": "照片或图片",+ "attach_other": "其他文件",+ "connect_to_send": "连接模型后才能发送",+ "stop": "⏹ 停止",+ "mode_label": "模式",+ "approvals_to_inbox": "将审批请求发送到收件箱",+ "mode": {+ "discuss": "讨论",+ "discuss_desc": "聊天探索 —— 不做编辑、不执行命令",+ "interactive": "需审批",+ "interactive_desc": "编辑和执行命令前先询问",+ "auto": "完全访问",+ "auto_desc": "无需询问,全部执行"+ },+ "voice": {+ "stop_transcribe": "停止录音并转写",+ "start_dictation": "开始本地语音听写",+ "stop_dictation": "停止听写",+ "start_dictation_btn": "开始听写",+ "configure": "在设置中配置语音输入"+ },+ "err_transcribe": "无法转写你的录音。",+ "err_dictation_unavailable": "语音听写不可用。",+ "err_mic_start": "无法启动麦克风。",+ "starting_mic": "正在启动麦克风…",+ "approvals_to_inbox_help": "无人值守运行时,审批请求会进入收件箱。",+ "listening_sr": "正在聆听…",+ "pdf_could_not_read": "无法读取该 PDF。",+ "pdf_too_big": "PDF 超过大小限制,未附加。",+ "pdf_too_many_pages": "PDF 超过页数限制,未附加。",+ "pdf_unreadable": "无法读取该 PDF。",+ "send_approvals_to_inbox": "将审批请求发送到收件箱",+ "starting_transcribe": "正在转写…",+ "model": {+ "connect": "连接模型",+ "none": "无模型",+ "none_aria": "未连接模型 —— 请先连接一个模型",+ "loading": "正在加载模型…",+ "loading_title": "正在从服务器获取模型列表"+ }+ },+ "transcript": {+ "copy_message": "复制消息",+ "copied": "已复制",+ "thinking_live": "思考中…",+ "thinking_process": "思考过程",+ "who_assistant": "助手",+ "retry": "重试",+ "approval": {+ "approved": "✓ 已批准",+ "declined": "✕ 已拒绝",+ "approved_scope": "approved · {{scope}}"+ },+ "step": {+ "raw": "原始",+ "auto_allowed": "auto-allowed",+ "auto_allowed_tip": "Auto-allowed by this automation's standing approvals: {{name}}",+ "hidden_count_label": "{{n}} hidden",+ "hidden_tip": "Removed by your privacy filters before the agent saw the results — agents get no trace of these."+ },+ "turn": {+ "running": "运行 {{label}}…",+ "declined": "{{count}} 已拒绝",+ "hidden": "{{count}} 已被你的过滤器隐藏",+ "steps_label": "{{count}} 步"+ },+ "dir_declined": "Declined folder access",+ "dir_granted": "Granted folder access",+ "plan_approved": "Plan approved",+ "plan_proposed": "proposed plan",+ "plan_rejected": "Sent back with feedback"+ },+ "rail": {+ "progress_title": "进度",+ "artifacts_title": "产出文件",+ "artifacts_empty": "还没有可预览的文件。",+ "open": "打开",+ "loading": "加载中…",+ "working": "处理中…",+ "empty_state": "对于较长的多步任务,进度会显示在这里:OpenWorker 规划、调用工具、等待批准并产出文件。",+ "refresh": "刷新产出文件",+ "back": "返回",+ "back_to_artifacts": "返回产出文件",+ "copy_path": "复制路径",+ "copy_full_path": "复制完整路径",+ "reload": "重新加载",+ "reload_preview": "重新加载预览",+ "tool_calls": "目前已调用 {{count}} 次工具。",+ "working_task": "正在处理此任务。",+ "working_task_with_tools": "正在处理此任务,目前已调用 {{count}} 次工具。",+ "empty_file": "空文件。",+ "office_no_preview": "此 {{type}} 文件无法在此预览。",+ "pdf_error": "无法渲染 PDF:{{error}}",+ "pdf_rendering": "正在渲染 PDF…",+ "sheet_error": "无法解析表格:{{error}}",+ "sheet_parsing": "正在解析表格…",+ "sheet_empty": "空表格。",+ "open_in_default": "用默认应用打开",+ "show_in_folder": "在文件夹中显示",+ "show_folder": "显示这些文件的保存位置"+ },+ "settings": {+ "tab": {+ "general": "通用",+ "models": "模型",+ "voice": "语音输入",+ "personas": "角色"+ },+ "general_title": "通用",+ "general_sub": "OpenWorker 在本机的外观与行为。",+ "theme": "主题",+ "appearance_aria": "外观",+ "theme_light": "浅色",+ "theme_dark": "深色",+ "theme_auto": "自动",+ "theme_auto_help": "自动跟随你 Mac 的外观。",+ "language": "语言",+ "language_aria": "语言",+ "language_zh": "中文",+ "language_en": "English",+ "language_system": "跟随系统",+ "language_help": "切换界面语言,立即生效。",+ "always_on": "常驻",+ "open_at_login": "开机自启",+ "open_at_login_help": "登录时自动启动 OpenWorker。",+ "keep_awake": "保持系统唤醒",+ "keep_awake_help": "防止空闲休眠,确保定时任务按时执行。",+ "setup_updates": "安装与更新",+ "run_setup_again": "重新运行引导",+ "run_setup_help": "重新播放首次引导:模型、首个自动化、提示。",+ "checking": "检查中…",+ "check_for_updates": "检查更新",+ "update_install": "更新到 v{{version}} 并重启",+ "update_latest": "已是最新版本。",+ "update_error": "暂时无法检查更新。",+ "update_downloading": "下载中 —— OpenWorker 准备好后会自动重启。",+ "voice_desktop_only": "语音输入设置仅在 OpenWorker 桌面版中可用。",+ "personas_intro": "OpenWorker 团队精选的角色 —— 了解各自能做什么……",+ "scratch_placeholder": "~/OpenWorker",+ "files_browse": "浏览…",+ "files_help": "同事保存产出文件的临时目录。可在每会话中覆盖。",+ "files_pick_folder": "选择文件夹",+ "files_save": "保存",+ "files_save_error": "无法保存。",+ "files_saved": "已保存。",+ "files_title": "文件",+ "gallery_open": "浏览角色画廊",+ "gallery_sub": "来自 OpenWorker 团队的精选角色 —— 安装前了解各自能做什么。",+ "gallery_title": "角色画廊",+ "sidebar_card_help": "侧栏在显示前预览的会话数。",+ "sidebar_card_title": "侧栏密度",+ "sidebar_per_coworker": "每个角色的会话数",+ "voice_checking": "检查中…",+ "voice_compatible": "兼容",+ "voice_delete": "删除",+ "voice_delete_confirm": "删除此模型?",+ "voice_device_title": "设备",+ "voice_dl_progress": "下载中… {{pct}}%",+ "voice_download": "下载",+ "voice_installed": "已安装",+ "voice_intro": "在输入框自然说话。录音和转写都保留在本设备。",+ "voice_listening": "聆听中…",+ "voice_mac": "macOS",+ "voice_mac_detail": "Apple Silicon(M1+):系统内置,无需下载。",+ "voice_memory": "内存",+ "voice_memory_detail": "较大的模型更准确,但占用更多内存。",+ "voice_mic_test_pending": "正在测试…",+ "voice_mic_test_ready": "测试麦克风",+ "voice_mic_test_title": "麦克风测试",+ "voice_no_speech": "未检测到语音 —— 请再试一次。",+ "voice_not_installed": "未安装",+ "voice_private_body": "语音模型完全在本机运行 —— 录音永不离开此设备。",+ "voice_private_title": "完全私密",+ "voice_processor": "处理器",+ "voice_processor_detail": "需要 Apple Silicon(M1 或更高)。",+ "voice_ready_badge": "就绪",+ "voice_repair": "修复",+ "voice_stop_check": "停止检查",+ "voice_test_again": "再测一次",+ "voice_test_mic": "测试麦克风",+ "voice_transcribing": "转写中…",+ "voice_unsupported": "此设备不支持语音输入。",+ "voice_verified": "✓ 已验证",+ "voice_verifying": "验证中…",+ "voice_whisper_title": "Whisper 模型",+ "voice_windows": "Windows",+ "voice_windows_detail": "下载一个 whisper.cpp 模型以启用语音输入。",+ "trusted_workspaces": "受信任的工作区",+ "trusted_workspaces_help": "受信任的项目可在 .coworker/config.toml 中管理其命令许可。",+ "trust_loading": "加载中…",+ "trust_empty": "暂无受信任的工作区。",+ "trust_allowances_other": "{{count}} 项项目命令许可",+ "trust_no_allowances": "当前未声明任何项目命令许可",+ "trust_folder_unavailable": " · 文件夹不可用",+ "trust_revoke": "撤销",+ "trust_revoke_confirm": "撤销对 {{path}} 的命令信任?",+ "models_sub": "模型提供方以及输入框选择器中可用的模型。密钥仅保存在本机。",+ "token_savings": "Token 节省",+ "token_savings_help": "PDF 附件会随对话的每一轮重复发送,大文档会成倍增加 token 消耗。",+ "pdf_fallback_label": "在不原生支持 PDF 的模型上处理 PDF",+ "pdf_fallback_aria": "PDF 回退方式",+ "pdf_extract_text": "提取文本",+ "pdf_send_images": "发送页面图片",+ "pdf_fallback_help": "Claude、GPT 和 Gemini 可原生读取 PDF —— 此设置仅适用于不支持的模型(GLM、Kimi、DeepSeek、本地模型等)。提取文本最省 token;页面图片消耗更多 token,且需要具备视觉能力的模型。",+ "pdf_max_pages": "最大页数",+ "pdf_max_size": "最大大小",+ "pdf_limits_help": "超过上述限制的 PDF 不会被附加 —— 输入框中会显示一条提示。",+ "voice_action_failed": "语音输入无法完成该操作。"+ },+ "cloud": {+ "check_browser": "请查看你的浏览器…",+ "sign_in": "登录 OpenWorker Cloud",+ "checking": "正在检查 OpenWorker Cloud 登录状态…",+ "sign_in_first": "请先登录 OpenWorker Cloud",+ "sign_in_oneclick": "登录 OpenWorker Cloud 启用一键连接 —— 或在下方添加令牌"+ },+ "update": {+ "ready": "OpenWorker v{{version}} 已准备好安装。",+ "banner_title": "有可用更新",+ "downloading": "下载中…",+ "install_failed": "无法安装更新。",+ "later": "以后",+ "restart_to_update": "重启以更新"+ },+ "toast": {+ "automation_started": "自动化已启动",+ "run_count": "次运行",+ "view_run": "查看运行"+ },+ "app": {+ "notice": {+ "max_iterations": "已停止:达到最大迭代次数。",+ "model_switched": "模型已切换",+ "interrupted": "已中断。",+ "error": "错误:"+ },+ "jump_to_latest": "跳到最新",+ "waiting_for_agent": "正在等待 agent…"+ },+ "run_banner": {+ "scheduled_run": "定时任务",+ "started_by_automation": "· 由自动化启动",+ "back_to_runs": "← 返回任务列表"+ },+ "automations": {+ "title": "自动化",+ "sub": "OpenWorker 按计划运行的重复任务。",+ "active_next": "启用中 · 下次 {{time}}",+ "allowed_desc": "此自动化可使用的常驻授权 —— 其他操作仍需先询问。",+ "allowed_without_asking": "免询问授权",+ "at": "时间",+ "back_to_automations": "← 自动化",+ "bot_member_hint": "机器人必须是该频道成员 —— 若未加入,请在 Slack 邀请 @OpenWorker。",+ "cancel": "取消",+ "cloud_brokered": "连接由 OpenWorker Cloud 代理 —— 你的令牌保留在本机。",+ "conn_connected": "已连接",+ "conn_not_connected": "尚未连接",+ "connect": "连接",+ "connected_ok": "✓ 已连接",+ "conns_delivery_sched": "连接、投递与时间表",+ "consent_prefix": "允许此自动化将摘要发布到",+ "consent_suffix": "而无需每次询问。其他操作仍会先询问。",+ "create_btn": "创建自动化",+ "creating": "创建中…",+ "day_aria": "星期",+ "delete": "删除",+ "delete_aria": "删除 {{title}}",+ "delete_title": "删除自动化",+ "deliver_app": "应用内",+ "deliver_slack": "Slack 私信(稍后连接 Slack)",+ "deliver_to": "投递到",+ "delivery_sched": "投递与时间表",+ "edit": "编辑",+ "empty_state": "还没有定时任务 —— 使用上方模板,点击 <strong>+ 新建自动化</strong>,或在会话里直接让 OpenWorker 做。",+ "file_count": "{{count}} 个文件",+ "finish_connecting": "在浏览器中完成 {{name}} 的连接。",+ "finish_connecting_desc": "在那里批准,然后回来 —— 本页会自动更新。",+ "finish_signin_desc": "在浏览器中完成登录 —— 本页会自动更新。",+ "freq_daily": "每天",+ "freq_weekdays": "工作日",+ "freq_weekends": "周末",+ "gate_connect": "连接 {{names}} 以继续",+ "gate_join": " 和",+ "gate_pick_channel": "请先选择要发布的频道",+ "instructions_label": "指令",+ "instructions_placeholder": "每次运行做什么?(例如:总结今天的日历和待办。)",+ "last": "上次 {{status}}",+ "loading": "加载中…",+ "new_automation": "新建自动化",+ "new_btn": "+ 新建自动化",+ "new_pill": "新",+ "next": "下次 {{time}}",+ "no_conns_with_cadence": "无需连接 · {{cadence}}",+ "no_runs": "还没有运行。",+ "one_signin_unlocks": "一次登录即可解锁所有一键连接",+ "open_go": "打开 ›",+ "open_run": "打开此运行的对话",+ "opening_browser": "正在打开浏览器…",+ "paused": "已暂停",+ "post_to_channel": "发布到频道",+ "read_only_pref": "此自动化仅按计划",+ "read_only_suff": "—— 读取永远不需要批准。",+ "reads": "读取",+ "repeat": "重复",+ "repo_placeholder": "owner/repo",+ "repository": "仓库",+ "revoke": "撤销",+ "revoke_title": "此自动化将再次请求批准",+ "run_count": "{{count}} 次运行",+ "run_now": "▶ 立即运行",+ "runs_desc": "每次运行都是一次实时对话 —— 打开可看到 agent 做了什么并追问。",+ "runs_label": "运行记录",+ "save": "保存",+ "saving": "保存中…",+ "server_hint": "仅在 openworker-server 运行时执行 —— 错过的计划会在下次启动时补跑一次。",+ "set_up": "设置",+ "sign_in_to_cloud": "登录 OpenWorker Cloud",+ "start_from_template": "从模板开始",+ "the_channel": "该频道",+ "time_aria": "时间",+ "title_label": "标题",+ "title_placeholder": "标题(例如:每日站会纪要)",+ "waiting_for": "等待 {{name}}…",+ "waiting_signin": "等待登录…",+ "when": "时间",+ "tmpl_brief_instructions_prefix": "准备一份简短晨间简报:今天的日历事件和空闲,加上昨晚以来到达的邮件。",+ "tmpl_brief_save": "把它保存为会话交付物。",+ "tmpl_brief_slack": "通过 Slack 私信发给我。",+ "tmpl_github_repo_default": "(已连接的仓库)",+ "tmpl_github_instructions": "总结 GitHub 仓库 {{repo}} 自上次摘要以来的活动:已合并的 pull request、值得关注的 commit,以及任何需要注意的事项。使用 send_message 把摘要发布到 Slack 频道 {{channel}}。",+ "tmpl_pipeline_instructions": "回顾自上次摘要以来的 HubSpot 活动:变更了阶段的交易、趋于沉寂的交易,以及超过关闭日期的交易。使用 send_message 把简短的管线摘要发布到 Slack 频道 {{channel}}。",+ "tmpl_news_instructions": "搜索过去 24 小时最重要的科技与世界新闻,撰写一份简洁的 5 条要点简报,保存为 markdown 文件。",+ "tmpl_inbox_instructions": "把我的未读邮件总结成一份简短的摘要笔记。",+ "tmpl_cleanup_instructions": "按文件类型把我最近的下载整理进整洁的文件夹。",+ "day_mon": "每周一",+ "day_tue": "每周二",+ "day_wed": "每周三",+ "day_thu": "每周四",+ "day_fri": "每周五",+ "day_sat": "每周六",+ "day_sun": "每周日",+ "cadence_weekly": "每周",+ "cadence_daily": "每天",+ "cadence_weekdays": "工作日",+ "tmpl_github_title": "GitHub 摘要",+ "tmpl_github_blurb": "已合并的 PR 与 commit,发布到您团队的 Slack。",+ "why_digest_posts": "摘要发布的位置",+ "why_digest_summarizes": "摘要总结的内容",+ "tmpl_pipeline_title": "销售管道摘要",+ "tmpl_pipeline_blurb": "有进展的交易与趋于沉寂的交易,发布到 Slack。",+ "why_pipeline_activity": "销售管道与交易动态",+ "tmpl_brief_title": "晨间简报",+ "tmpl_brief_blurb": "在一天开始前,汇总您的日历与未读邮件。",+ "why_meetings_gaps": "今天的会议与空档",+ "why_overnight_email": "夜间新到的邮件",+ "tmpl_news_title": "晨间新闻简报",+ "tmpl_news_blurb": "5 条科技与全球新闻摘要,保存为 Markdown。",+ "tmpl_inbox_title": "收件箱摘要",+ "tmpl_inbox_blurb": "一份简短的未读邮件摘要。",+ "why_unread_email": "您的未读邮件",+ "tmpl_cleanup_title": "文件夹整理",+ "tmpl_cleanup_blurb": "按文件类型将最近的下载内容整理到规整的文件夹中。"+ },+ "approval": {+ "allow": "允许",+ "allow_once": "允许一次",+ "deny": "拒绝",+ "verbs": {+ "write_file": "写入文件",+ "edit_file": "编辑文件",+ "apply_patch": "应用补丁",+ "run_command": "运行命令",+ "send_message": "发送消息",+ "send_file": "发送文件"+ },+ "scope": {+ "connector": "作用于已连接的服务",+ "stays_mac": "保留在本机",+ "leaves_mac": "离开本机 → {{dest}}",+ "connected_chat_fallback": "已连接的聊天",+ "overwrite_suffix": "· 覆盖现有文件"+ },+ "btn": {+ "allow_every_time": "每次都允许",+ "always_allow": "总是允许",+ "always_command": "总是允许此命令",+ "deny": "拒绝",+ "this_automation": "此自动化",+ "always_task_title": "为「{{task}}」总是允许 {{name}} → {{target}} —— 可在其自动化页面随时撤销",+ "always_tool_title": "本次会话总是允许 {{name}}"+ },+ "preview_less": "收起",+ "preview_all_lines": "展开全部 {{n}} 行",+ "preview_full": "展开完整消息",+ "preview_label": "预览",+ "tool_title": "工具:{{name}}",+ "file_fallback": "文件",+ "as_png_screenshot": "· 作为 PNG 截图",+ "with_message": "附带消息",+ "resolved_prefix": "已批准:{{state}}",+ "grant": {+ "always_after_approve": "—— 你批准后将总是允许",+ "read_only": "—— 只读"+ }+ },+ "search": {+ "placeholder": "搜索会话",+ "no_results": "未找到会话。",+ "pinned": "已置顶的会话",+ "recent": "最近的会话"+ },+ "integrations": {+ "nav_title": "连接器",+ "tab_connectors": "连接器",+ "tab_mcp": "MCP 服务器",+ "connectors_title": "连接器",+ "connectors_sub": "同事可以使用的应用和工具,已连接的排在前面。",+ "mcp_title": "MCP 服务器",+ "mcp_sub": "外部工具服务器(stdio 或 HTTP),所有 agent 共享。"+ },+ "intro": {+ "greeting": "需要我产出什么?",+ "lede": "选一个任务开始 —— 我来做并把结果保存。或在下面直接输入你的需求。",+ "task_folder_title": "分析目录中的文件",+ "task_folder_sub": "我会读取并总结要点",+ "task_folder_cta": "选择文件夹 →",+ "task_hubspot_title": "从我的 HubSpot 线索生成报告",+ "task_hubspot_sub": "来源、阶段,以及需要跟进的对象",+ "task_ghslack_title": "自动生成每周 GitHub 进展报告并发到 Slack",+ "task_ghslack_sub": "仓库动态,每周五总结后发布",+ "cta_start": "开始 →",+ "cta_configure": "配置 ›",+ "folder_prompt": "分析此文件夹中的文件并总结要点。",+ "hubspot_prompt": "针对我最近的 HubSpot 线索生成一份报告:来源、阶段,以及需要跟进的对象。",+ "ghslack_prompt": "设置一份每周进展报告:总结我 GitHub 仓库的动态,并在每周五早上发布到 Slack。"+ },+ "access": {+ "section_title": "访问",+ "region_label": "会话访问",+ "sources": "来源",+ "folders": "文件夹",+ "no_connectors": "本会话未启用任何连接器。",+ "channels_link": "频道 · {{count}}",+ "toggle_title": "已为本会话启用 —— 点击在此静音",+ "mute_hint": "在本会话内关闭只会静音 <b>本次会话</b> —— 连接器保持连接。",+ "search_placeholder": "搜索连接器…",+ "no_match": "无匹配 —— 见下方连接器页面的全部列表。",+ "add_source": "+ 添加来源…",+ "recommended": "推荐",+ "core_tag": "核心",+ "give_folder": "授权访问一个文件夹…",+ "manage_all": "管理所有连接器(全局)",+ "back_to_sources": "返回来源",+ "connect_title": "连接 {{title}}",+ "scope_note": "连接后 {{title}} 对所有同事可用 —— 此列表中的开关仅控制本次会话。",+ "channels_title": "{{label}} 频道",+ "subscribed": "已订阅频道 · {{count}}",+ "no_channels": "还没有订阅任何 {{label}} 频道。",+ "collision_title": "此频道也是本会话的收件箱路由目标 —— 收发会冲突。",+ "stop_listening": "停止监听",+ "add_channel": "添加频道",+ "add_btn": "添加",+ "channels_note": "agent 会接收发布到这些频道的消息。移除一个会停止本会话的监听 —— 连接器保持连接。",+ "summary_no_sources": "无来源",+ "summary_sources_more": "{{first}} +{{more}}",+ "summary_folder_count": "{{count}} 个文件夹",+ "summary_join": "{{sources}} · {{folder}}",+ "addfolder_path_placeholder": "选择或粘贴文件夹路径…",+ "allow_writes": "允许写入(读写)",+ "allow_writes_help": "授予后,agent 可在该文件夹中读写文件。",+ "cancel": "取消",+ "choose_location": "选择位置"+ },+ "root": {+ "temporary_space": "临时空间",+ "main": "主工作区",+ "missing": "缺失",+ "read_write": "可读写",+ "read_only": "只读",+ "primary_always_rw": "主工作区始终可读写",+ "toggle_rw": "切换只读 / 可读写"+ },+ "inbox": {+ "title": "收件箱",+ "sub": "来自同事的审批、提问和通知 —— 包括无人值守会话。",+ "tab_pending": "待处理",+ "tab_configure": "配置",+ "kind_all": "全部",+ "kind_approvals": "审批",+ "kind_questions": "提问",+ "open_session": "打开「{{label}}」",+ "session_unavailable": "会话不可用",+ "all_coworkers": "全部同事",+ "nothing_pending": "暂无待处理。",+ "nothing_pending_filter": "该筛选条件下暂无待处理。",+ "also_delivered_to": "同时投送到",+ "replies_resolve": "—— 在那里回复会处理这里的条目。",+ "delivered_here_only": "仅投送至此。",+ "delivered_here_only_connect_slack": "仅投送至此。连接 Slack(连接器页面)也可在频道中接收 —— 后续支持更多平台。",+ "configure_arrow": "配置 ›",+ "unrouted_title": "未路由",+ "unrouted_sub": "未被认领的入站消息和后台轮次失败 —— 一切都有记录,不会静默消失。",+ "unattended_approvals": "无人值守审批",+ "mirror_desc_prefix": "无人值守会话发布「批准/拒绝」按钮的频道。当前镜像到",+ "mirror_desc_suffix": "。",+ "in_app_inbox_only": "仅应用内收件箱",+ "set": "设置",+ "clear": "清除",+ "direct_messages": "私信",+ "dm_desc": "处理发往机器人的私信的会话。若不设置,私信将停靠在下方「未路由」。",+ "dm_no_session": "无会话 —— 停靠私信",+ "channel_subscriptions": "频道订阅",+ "subscriptions_sub": "—— 监听某频道的会话(入站)",+ "col_session": "会话",+ "col_listens_to": "监听",+ "col_inbox_routes_to": "收件箱路由至",+ "col_when": "时间",+ "col_source": "来源",+ "col_reason": "原因",+ "col_message": "消息",+ "collides": "⚠ 冲突",+ "collision_title": "此频道也是你的收件箱路由目标 —— 同一频道上收发会把广播与请求/应答混在一起。",+ "unsubscribe": "取消订阅",+ "no_subscriptions": "还没有频道订阅 —— 在下方添加一个,或让一位同事监听某频道。",+ "choose_session": "选择会话…",+ "subscribe": "+ 订阅",+ "unrouted_empty": "这里空空如也 —— 没有丢失的消息或失败的轮次。",+ "approve": "批准",+ "reject": "拒绝",+ "dismiss": "忽略",+ "always_task_title": "为「{{task}}」总是允许针对 {{target}} —— 可在其自动化页面随时撤销",+ "send_count": "发送 ({{count}})",+ "or_type_answer": "或输入你自己的回答…",+ "your_answer": "你的回答…",+ "grant": "授权",+ "grant_no_folder": "授权(无文件夹)",+ "no_folder_suggested": "未建议文件夹",+ "channel_picker_placeholder": "slack:C0123 或频道链接",+ "searching_channels": "正在搜索你工作区的频道…",+ "invite_to_listen": "在 Slack 中把 @ocw 邀请到此频道以便监听",+ "channels_this_session": "本会话监听的频道",+ "not_subscribed": "未订阅任何频道。",+ "add": "添加",+ "connector_via": "通过 {{label}}",+ "rel_just_now": "刚刚",+ "rel_minutes_ago": "{{count}} 分钟前",+ "rel_hours_ago": "{{count}} 小时前",+ "rel_days_ago": "{{count}} 天前",+ "routing_update_failed": "无法更新收件箱路由。",+ "routing_clear_failed": "无法清除收件箱路由。",+ "missing_slack_owner": "在将审批路由到此处前,请先在「集成 → Slack」中选择审批负责人。"+ },+ "audit": {+ "title": "活动",+ "sub": "最近的连接器和浏览器工具活动。参数在存储前已脱敏。",+ "placeholder_session": "会话 id",+ "placeholder_connector": "连接器",+ "placeholder_tool": "工具",+ "filter": "筛选",+ "no_events": "暂无审计事件。",+ "fallback_tool": "工具",+ "fallback_event": "事件",+ "session": "会话",+ "resource": "资源:{{value}}"+ },+ "plan": {+ "proposed": "agent 提出了一个计划",+ "feedback_placeholder": "计划需要怎么改?",+ "back": "返回",+ "send_feedback": "发送反馈",+ "request_changes": "请求修改",+ "approve_ask": "批准 —— 每步询问",+ "approve_and_run": "批准并运行"+ },+ "dirreq": {+ "requesting_access": "agent 正在请求访问一个文件夹",+ "path_placeholder": "选择或粘贴文件夹路径…",+ "choose_location": "选择位置",+ "allow_writing": "允许写入(读写)",+ "decline": "拒绝",+ "grant_access": "授权访问"+ },+ "todo": {+ "title": "任务"+ },+ "folder_gate": {+ "open_error": "无法打开该文件夹",+ "choose_folder": "选择一个项目文件夹",+ "create_sub": "选择一个文件夹或输入路径。若路径不存在,将会创建。",+ "choose_sub": "这位同事需要一个工作区来读取、编辑和运行。",+ "path_placeholder": "/path/to/your/project",+ "pick_folder": "选择文件夹",+ "browse": "浏览…",+ "create": "创建",+ "open": "打开",+ "cancel": "取消"+ },+ "connector": {+ "not_connected": "未连接",+ "connect": "连接",+ "disconnect": "断开连接",+ "disconnecting": "正在断开…",+ "connected": "已连接",+ "connected_count": "已连接 · {{count}}",+ "built_in": "内置",+ "loading": "加载中…",+ "back_to_connectors": "‹ 连接器",+ "search": "搜索",+ "available": "可用",+ "nothing_matches": "没有匹配项。",+ "more_count": "还有 {{count}} 个 ·",+ "show_all": "显示全部",+ "account_count": "{{count}} 个账户",+ "portal_count": "{{count}} 个门户",+ "slack_status": "{{count}} 个工作区 · 中转",+ "default": "默认",+ "make_default": "设为默认",+ "people": "人员",+ "waiting": "待处理",+ "listening": "监听中",+ "in_channel": "在 {{name}} 中",+ "allow": "允许",+ "allow_deliver": "允许并送达",+ "dismiss": "忽略",+ "unsubscribe_title": "取消订阅此会话",+ "live": "在线",+ "ready": "就绪",+ "offline": "离线",+ "reconnecting": "重新连接中",+ "sign_in_needed": "需要登录",+ "token": "令牌",+ "tools_label": "› 工具",+ "tools_enabled": "{{enabled}} / {{total}} 已启用",+ "asks_first": "先询问",+ "read": "读取"+ },+ "github": {+ "relay_live": "在线 · 托管中转",+ "relay_signin_needed": "需要登录 —— 中转已暂停",+ "relay_offline": "离线 —— 无法连接中转",+ "relay_reconnecting": "正在重新连接中转…",+ "connected_pat": "已连接 · 个人访问令牌",+ "add_installation": "+ 添加安装",+ "add_installation_title": "添加安装",+ "setup_blurb": "一个 @ocw-agent App,按账户或组织安装 —— 你在 GitHub 上选择仓库;每个安装保留自己的允许列表。",+ "setup_cloud_note": "一键连接需要登录云服务;PAT 无需登录即可使用。",+ "manual_card_note": "个人访问令牌 · 仅工具。安装 GitHub App 后 @-提及和 agent 标签才能到达本机。",+ "triggers_foot": "触发器:@ocw-agent 提及和 \"ocw-agent\" 标签。agent 以 ocw-agent[bot] 身份回复。",+ "all_repos": "所有仓库",+ "selected_repos": "选定仓库",+ "install_revoked": "⚠ 安装已撤销 —— 请重新安装",+ "empty_parked_note": "暂无允许的人 —— @ocw-agent 的提及会出现在这里等你确认。",+ "nobody_yet": "暂无 —— 在下方批准一位等待中的发送者",+ "disconnect_install": "断开此安装",+ "disconnect_install_title": "停止将此安装中转到本机。App 仍保留在 GitHub 上。",+ "allow_deliver_title": "允许该发送者并立即送达此提及",+ "allow_discard_title": "允许该发送者;此提及将被丢弃"+ },+ "slack": {+ "relay_live": "在线 · 托管中转",+ "relay_signin_needed": "需要登录 —— 中转已暂停",+ "relay_offline": "离线 —— 无法连接中转",+ "relay_reconnecting": "正在重新连接中转…",+ "connected_socket_mode": "已连接 · Socket 模式(手动令牌)",+ "add_workspace": "+ 添加工作区",+ "add_workspace_title": "添加工作区",+ "setup_blurb": "一个 @ocw app,按工作区安装 —— 每个工作区保留自己的允许列表。",+ "setup_cloud_note": "一键连接需要登录云服务;手动模式无需登录即可使用。",+ "workspace_default": "工作区",+ "manual_tokens": "· 手动令牌",+ "names_foot": "姓名自动来自 Slack。ID 在悬停时显示。",+ "token_revoked": "⚠ 令牌已撤销 —— 请重新安装",+ "empty_parked_note": "暂无允许的人 —— 对 bot 的提及会出现在这里等你确认。",+ "disconnect_workspace": "断开此工作区",+ "disconnect_workspace_title": "停止将此工作区中转到本机。app 仍保留在 Slack 中。",+ "you": "你",+ "you_suffix": "· 你",+ "nobody_yet": "暂无 —— 选择一个姓名,或在下方批准一位等待中的发送者",+ "add_person": "+ 添加人员",+ "pick_from_directory": "从工作区目录中选择",+ "type_a_name": "输入姓名…",+ "no_matches": "无匹配",+ "guest": "访客",+ "directory_unavailable": "目录不可用",+ "directory_foot": "来自你的工作区目录 —— 仅保留在本机。",+ "allow_deliver_title": "允许该发送者并立即送达此消息",+ "allow_discard_title": "允许该发送者;此消息将被丢弃",+ "hiw_show": "查看 @提及如何工作",+ "hiw_collapse": "收起 —— 随时可重新打开",+ "hiw_how_it_works": "工作原理",+ "hiw_hide": "隐藏",+ "hiw_title": "Slack 与 OpenWorker 入门",+ "hiw_workspace": "工作区",+ "hiw_connected": "已连接",+ "hiw_on_people_list": "—— 你在「人员」列表中,所以你的提及会送达。",+ "hiw_how_mentions": "—— 提及如何送达你。",+ "hiw_you": "你",+ "approvals_label": "审批",+ "choose_owner_warning": "在将收件箱审批路由到 Slack 前,请至少选择一位审批负责人。",+ "installer_suffix": "· 安装者",+ "owner_suffix": "· 审批负责人",+ "owner_protected_title": "移除此人前,请先取消其审批负责人身份。",+ "remove_owner_title": "移除审批负责人",+ "remove_owner_failed": "无法移除审批负责人",+ "add_owner": "+ 添加负责人",+ "owner_set_by_installer": "由工作区安装者设置。",+ "you_fallback": "你",+ "hiw_mention_new": "@提及会开启一个新会话",+ "hiw_answer_thread": "回答会作为话题回复返回",+ "hiw_thread_same": "在话题里继续聊天,仍是同一个会话",+ "hiw_first_senders": "首次发送者需要等你确认",+ "hiw_members": "位成员",+ "hiw_today": "今天",+ "hiw_today_at": "今天",+ "hiw_msg_signups": "帖子发布后注册量激增 📈",+ "hiw_1reply": "1 条回复",+ "hiw_2replies": "2 条回复",+ "hiw_summarize": "总结这个话题",+ "hiw_msg_launch": "在 #launch-room 发消息",+ "hiw_thread": "话题",+ "hiw_msg_traction": "发布后 traction:注册量提升 3.4×…",+ "hiw_reply": "回复…",+ "hiw_break_country": "按国家拆分一下?",+ "hiw_top_countries": "Top:US 41% · India 22% · Germany 9%…",+ "hiw_reading_thread": "正在阅读话题…注册量提升 3.4×,首要来源是 press 页面。",+ "hiw_replying_slack": "正在 Slack 话题里回复",+ "hiw_msg_kp": "给 OpenWorker 发消息…",+ "hiw_new_session": "新建会话",+ "hiw_search": "搜索",+ "hiw_automations": "自动化",+ "hiw_recent": "最近",+ "hiw_summarize_room": "总结 #launch-room",+ "hiw_via_slack": "通过 Slack",+ "hiw_jira_linear": "Jira vs Linear",+ "hiw_coworker": "同事",+ "hiw_via_slack_same": "通过 Slack —— 同一会话",+ "hiw_signups_referrer": "…注册量提升 3.4×,首要来源是 press 页面。",+ "hiw_top_countries_full": "Top 国家:US 41%、India 22%、Germany 9% —— 上下文从整个话题保留。",+ "hiw_after_allow": "等你允许后",+ "hiw_pull_numbers": "拉一下注册数字?",+ "hiw_is_waiting": "正在等待",+ "hiw_allow_deliver": "允许并送达",+ "hiw_each_teammate_prefix": "每位队友的",+ "hiw_first": "第一次",+ "hiw_each_teammate_suffix": "提及都需等你确认 —— 之后他们进入「人员」列表,就顺畅了。",+ "hiw_tab_mention": "提及 → 会话",+ "hiw_tab_threads": "话题保持连接",+ "hiw_tab_teammates": "允许队友",+ "hiw_cap_mention": "在任意它被邀请的频道里 @提及 OpenWorker —— 这里会开启一个会话,回答会作为话题回到 Slack。",+ "hiw_cap_threads": "在话题里再次提及 —— 对话在同一会话中继续,上下文完整。话题即是会话。",+ "hiw_cap_teammates": "队友不会被自动信任:他们的首次提及需等你确认,之后进入「人员」列表。",+ "hiw_threads": "话题",+ "hiw_drafts": "草稿和已发送",+ "hiw_channels": "频道",+ "hiw_direct_messages": "私信",+ "hiw_agents_apps": "Agent 和应用",+ "hiw_search_desc": "描述你要找的内容",+ "hiw_via_slack_now": "通过 Slack · 现在"+ },+ "gmail": {+ "add_account": "+ 添加账户",+ "add_account_coming_soon": "+ 添加账户 · 即将推出",+ "coming_soon_title": "一键 Google 登录即将推出",+ "setup_blurb": "使用 Google 登录 —— 每个邮箱独立保留,agent 会说明使用哪一个。",+ "requires_cloud": "需要登录云服务。",+ "accounts": "账户",+ "sign_in_again": "⚠ 重新登录",+ "disconnect_mailbox_title": "断开此邮箱",+ "never_show_agents": "永不向 agent 显示",+ "senders": "发件人",+ "senders_placeholder": "[email protected] 或 @domain.com",+ "labels": "标签",+ "labels_placeholder": "标签名,例如 Personal",+ "filters_foot": "过滤器在本机执行,先于 agent 查看结果。隐藏计数显示在工具卡和活动中 —— 永不显示内容。",+ "filters_foot_inner": "匹配的邮件会被静默排除在 agent 读取之外 —— 无任何痕迹可供探测。"+ },+ "hubspot": {+ "add_portal": "+ 添加门户",+ "add_portal_title": "添加门户",+ "setup_blurb": "连接一个门户 —— 只读或读写于授权时选择;两种模式都没有删除工具。",+ "portals": "门户",+ "portal_count": "{{count}} 个门户",+ "sandbox": "沙盒",+ "read_write": "读写",+ "read_only": "只读",+ "private_app": "私有应用",+ "disconnect_portal_title": "断开此门户",+ "access_privacy": "访问与隐私",+ "hidden_fields": "隐藏字段",+ "hidden_fields_placeholder": "属性名,例如 salary",+ "hidden_fields_foot": "隐藏字段永远不会到达 agent;剥离计数显示在活动中。要限制人类同事能请求的内容,请在已连接用户上使用 HubSpot 权限集。",+ "hidden_fields_foot_inner": "从 agent 读取的每条记录中剥离,跨所有门户。"+ },+ "calendar": {+ "add_account": "+ 添加账户",+ "add_account_coming_soon": "+ 添加账户 · 即将推出",+ "coming_soon_title": "一键 Google 登录即将推出",+ "setup_blurb": "使用 Google 登录 —— 每个账户独立保留,agent 会说明使用哪一个。",+ "requires_cloud": "需要登录云服务。",+ "accounts": "账户",+ "sign_in_again": "⚠ 重新登录",+ "disconnect_account_title": "断开此账户",+ "events_approval_foot": "创建、修改或删除事件始终先请求你的批准,并且批准会指明账户。",+ "google_calendar": "Google 日历"+ },+ "accounts": {+ "add_account": "+ 添加账户",+ "add_manually": "手动添加",+ "add_an_account": "添加账户",+ "accounts": "账户",+ "disconnect_account_title": "断开此账户",+ "foot": "每个账户独立保留 —— 工具结果和批准会指明所使用的账户。"+ },+ "available": {+ "connect": "连接",+ "access": "访问",+ "access_foot": "密钥和令牌仅存储在本机。可随时断开。",+ "tools": "工具",+ "tools_added": "此连接器新增 {{count}} 个工具",+ "hide": "隐藏",+ "view": "查看",+ "asks_first": "先询问"+ },+ "modal": {+ "connect_title": "连接 {{title}}",+ "close": "关闭",+ "one_click": "一键",+ "manual": "手动",+ "recommended": "推荐",+ "tokens_stay_local": "令牌仅保留在本机",+ "could_not_start_connect": "无法启动连接",+ "could_not_start_install": "无法启动安装",+ "could_not_connect": "无法连接",+ "validating": "验证中…",+ "connect": "连接",+ "mcp_blurb": "在浏览器中打开 {{title}} —— 在那里登录并授权。无需输入令牌,也无需 OpenWorker 账户:登录完全在本机运行。",+ "mcp_recommended_foot": "agent 获得精选的 {{title}} 工具集 · 令牌仅保留在本机",+ "generic_blurb": "在浏览器中打开 {{title}} —— 在那里授权。无需输入令牌;再次用其他账户连接即可并排添加。",+ "slack_blurb": "在浏览器中打开 Slack —— 为工作区授权 @ocw。无需令牌;适用于任意数量的工作区。",+ "add_to_slack": "添加到 Slack",+ "slack_recommended_foot": "中转 · 令牌仅保留在本机",+ "github_blurb": "在浏览器中打开 GitHub —— 在那里授权 OpenWorker。已有的 @ocw-agent App 安装会直接关联;否则你将选择账户和仓库。无需输入令牌;agent 以 ocw-agent[bot] 身份操作。",+ "connect_github": "连接 GitHub",+ "github_recommended_foot": "中转 · 短期令牌,从不存储",+ "hubspot_blurb": "在浏览器中打开 HubSpot —— 在那里选择门户。agent 可执行的操作现在(授权时)选择:",+ "hubspot_readonly": "只读",+ "hubspot_readonly_blurb": "搜索并读取联系人、公司、交易、工单",+ "hubspot_readwrite": "读写",+ "hubspot_readwrite_blurb": "新增:记录备注和任务、更新记录、创建联系人 —— 永不删除",+ "connect_hubspot": "连接 HubSpot",+ "hubspot_foot": "适用于任意数量的门户 · 令牌仅保留在本机",+ "slack_manual_step1": "在 api.slack.com/apps 创建一个 app",+ "slack_manual_step2": "启用 Socket 模式,添加 bot 权限,安装到你的工作区",+ "slack_manual_step3": "粘贴两个令牌",+ "bot_token_placeholder": "Bot 令牌 · xoxb-…",+ "app_token_placeholder": "App 令牌 · xapp-…",+ "slack_manual_pause_note": "一次只能用一种模式 —— 这会暂停所有中转工作区。"+ },+ "gallery": {+ "all_personas": "全部角色",+ "back_to_gallery": "← 画廊",+ "can_message": "可使用消息",+ "capabilities_desc": "由本应用自己的解析器读取,与安装审批将询问你的内容完全一致。不安装任何可执行代码。",+ "capabilities_title": "它能做什么 —— 从清单核验",+ "check_browser": "请查看你的浏览器…",+ "close_aria": "关闭画廊",+ "connect_yourself_note": "这些由你自己连接(登录后一键)—— 在你连接之前,安装该同事不会授予任何权限。",+ "core_tag": "核心",+ "could_not_load": "无法加载详情",+ "detail_meta": "v{{version}} · {{publisher}} · {{risk}}",+ "done": "完成",+ "empty_none": "还没有发布的角色。",+ "empty_search": "没有匹配的角色。",+ "empty_team": "你的团队还没有分享任何内容。",+ "featured": "精选",+ "filter_all": "全部",+ "filter_brand": "来自 OpenWorker",+ "filter_team": "来自你的团队",+ "install": "安装",+ "install_failed": "安装失败",+ "installed": "已安装",+ "installed_waiting": "已安装 —— 已放入角色页,启用前需你审批。",+ "installing": "安装中…",+ "loading": "加载中…",+ "loading_gallery": "正在加载画廊…",+ "mcp_suffix": "MCP:{{mcp}}",+ "mode_suffix": "{{mode}} 模式",+ "none": "无",+ "permissions_label": "权限:",+ "risk_suffix": " · 风险:{{risk}}",+ "search_placeholder": "搜索角色",+ "sign_in": "登录",+ "signin_desc": "画廊是来自 OpenWorker Cloud 的精选同事集合,需要(免费的)云登录。从文件夹或 Git URL 安装角色 —— 在角色页 —— 始终无需账户即可使用。",+ "signin_title": "登录以浏览画廊",+ "subtitle": "精选同事 · 安装后默认禁用,待你审批启用",+ "team_teaser": "来自你的团队 —— 暂无分享。向队友发布角色即将推出。",+ "title": "角色画廊",+ "tools_label": "工具:",+ "unreachable": "画廊暂时无法访问 —— 稍后再试。",+ "version_publisher": "v{{version}} · {{publisher}}",+ "view_install": "查看并安装 →",+ "works_with": "配合这些连接使用:"+ },+ "manage": {+ "add_btn": "添加",+ "allowed_empty": "nobody yet — Allow a recent sender →",+ "allowed_to_message": "Allowed to message",+ "cancel": "cancel",+ "check_browser": "Check your browser…",+ "coming_soon": "Coming soon",+ "composer_picker_help": "The models offered when starting a session; the black badge marks the default. Add more from a provider's card above.",+ "composer_picker_title": "In the composer's picker",+ "connect": "Connect",+ "connect_one_click": "Connect {{title}} with one click",+ "connector_no_tools": "No tools for this connector yet.",+ "could_not_connect": "could not connect",+ "could_not_start_connect": "could not start the connect",+ "could_not_start_managed": "could not start the connect",+ "id_title": "ID",+ "included_models": "Included models",+ "included_models_help": "Curated, agent-capable models this provider serves — add your key above to enable them.",+ "listening_empty": "None yet — open a session's Sources ▸ Channels to subscribe it to a channel.",+ "listening_title": "Sessions listening to {{title}} channels · {{n}}",+ "listening_unsub_tip": "Unsubscribe",+ "loading": "Loading…",+ "mcp_add_btn": "+ Add server",+ "mcp_add_server": "Add a server",+ "mcp_asks": "asks",+ "mcp_connect_failed": "failed to connect",+ "mcp_enable": "Enable this server",+ "mcp_help": "External tool servers (stdio or HTTP), shared across all agents. Reload the app after editing mcp.json — or reload now.",+ "mcp_hide_tools": "hide tools",+ "mcp_invalid_json": "Invalid JSON: {{msg}}",+ "mcp_no_tools": "No tools.",+ "mcp_none": "No MCP servers configured.",+ "mcp_oauth": "oauth",+ "mcp_paste_help": "Paste a '{ \"<name>\": { … } }' object (or a full mcpServers block).",+ "mcp_paste_label": "Paste server JSON (name → config):",+ "mcp_sign_in": "Sign in",+ "mcp_sign_out": "sign out",+ "mcp_signing_in": "signing in…",+ "mcp_tool_count": "{{n}} tools",+ "mcp_tools": "tools",+ "mcp_waiting_browser": "waiting for browser…",+ "models": "Models",+ "models_help": "Ticked models show in the composer's picker; the black badge marks the default for new sessions.",+ "one_click_coming": "One-click sign-in is coming soon — connect manually below for now:",+ "openai_env_help": "A key is set via OPENAI_API_KEY in this server's environment. Add a different key here to override it for this computer.",+ "optional": "(optional)",+ "or_connect_manually": "or connect manually:",+ "parked_allow_deliver": "Allow & deliver",+ "parked_allow_deliver_tip": "Allow the sender and deliver this message now",+ "parked_allow_only": "Allow only",+ "parked_allow_tip": "Allow the sender; this message is discarded",+ "parked_dismiss": "Dismiss",+ "parked_dismiss_tip": "Discard this message without allowing the sender",+ "parked_in": "in {{chat}}",+ "parked_title": "Messages from senders you haven't allowed · {{n}}",+ "recent_empty": "None yet. Message the bot once and it'll show here.",+ "recent_senders": "Recent senders",+ "reload_now": "reload now",+ "reltime_day": "{{n}}d ago",+ "reltime_hour": "{{n}}h ago",+ "reltime_just_now": "just now",+ "reltime_min": "{{n}}m ago",+ "remove_from_picker": "Remove from the picker",+ "remove_key": "Remove key…",+ "remove_key_confirm": "Remove the {{title}} key from this computer?",+ "signin_unlocks": "Sign-in unlocks the one-click {{title}} connect — or connect manually below.",+ "tool_asks_approval": "{{name}} · {{kind}} · asks approval",+ "tools_exposed": "Tools exposed to OpenWorker",+ "unknown": "unknown",+ "validating": "Validating…"+ },+ "models": {+ "add_btn": "Add",+ "add_placeholder": "Add another model…",+ "default_badge": "default",+ "default_locked": "The default model is always shown — make another model default first",+ "key_set": "Key set",+ "make_default": "Make default"+ },+ "onboarding": {+ "cancel": "取消",+ "check_browser": "请查看你的浏览器…",+ "checking": "检查中…",+ "coming_soon": "即将推出",+ "connect": "连接",+ "connect_tools_intro": "仅聊天只能建议。连接后,你的同事才能真正干活:",+ "connect_tools_title": "连接你的日常工具",+ "connected_ok": "✓ 已连接",+ "continue_without_signin": "不登录继续",+ "cta_automation_desc": "周报、晨间简报 —— 选个模板,两分钟跑起来。",+ "cta_automation_title": "创建你的第一个自动化",+ "cta_work_desc": "打开会话直接提问 —— 分析文件、起草、研究、构建。",+ "cta_work_title": "开始与同事协作",+ "google_pair_detail": "即将推出 —— 待 Google 应用审核通过。",+ "google_pair_title": "Gmail 与 Google 日历",+ "model_intro": "选择一个模型 provider 开始 —— OpenWorker 使用你自己的密钥运行,密钥和数据都保留在本机。",+ "models_settings_hint": "模型可随时在 设置 ▸ 模型 中启用或隐藏。",+ "more_tools_hint": "连接器页面还有 30+ 工具 —— 随时增删。令牌保留在本机。",+ "next": "下一步",+ "opening_browser": "正在打开浏览器…",+ "replay_hint": "随时重放此设置:设置 ▸ 外观 ▸ 重新运行引导。",+ "sign_in": "登录",+ "signed_in_as": "🎉 你已登录{{account}}",+ "signed_in_desc": "上方任意工具一键连接 —— 或稍后随时在连接器页面添加。",+ "signin_band_desc": "OpenWorker 代为处理 20+ 工具的 OAuth —— 无需开发者控制台、无需粘贴密钥。令牌保留在本机。",+ "signin_for_oneclick": "登录即可一键连接",+ "skip_anyway": "仍要跳过",+ "skip_setup": "跳过设置",+ "skip_warn_pref": "没有模型什么都做不了 —— ",+ "two_ways": "两种好的开始方式:",+ "waiting": "等待中…",+ "youre_set_up": "设置完成",+ "welcome": "欢迎使用 OpenWorker",+ "tool_outlook_benefit": "随时掌握邮件动态",+ "tool_outlook_detail": "Outlook —— 分诊邮件、起草回复、管理日程。",+ "tool_slack_benefit": "跟上 Slack 的节奏",+ "tool_slack_detail": "Slack —— 补看消息、回复提及、发布更新。",+ "tool_github_benefit": "高效交付代码",+ "tool_github_detail": "GitHub —— 评审 PR、跟踪 issue、回复 @提及。",+ "tool_notion_benefit": "笔记触手可及",+ "tool_notion_detail": "Notion —— 搜索页面、查询数据库、起草文档。",+ "tool_hubspot_benefit": "保持 CRM 数据最新",+ "tool_hubspot_detail": "HubSpot —— 更新商机、记录笔记、准备通话。",+ "tool_attio_benefit": "跟进每一段客户关系",+ "tool_attio_detail": "Attio —— 搜索记录、查看时间线、记录笔记。"+ },+ "persona": {+ "about": "关于",+ "add": "添加",+ "back": "返回",+ "builtin_capabilities": "内置能力",+ "connect": "连接",+ "connect_this_first": "请先连接",+ "connect_to_enable": "连接以启用",+ "connected": "已连接",+ "connections_desc": "由角色声明 —— 把 {{name}} 接入这些连接以解锁它的完整工作流。",+ "connections_full_benefit": "充分发挥的连接",+ "core_tag": "核心",+ "default_mode_label": "默认模式",+ "disabled": "已禁用",+ "enable_title": "启用此角色",+ "enabled": "已启用",+ "hero_art": "{{slug}} 配图",+ "load_error": "无法加载此角色。",+ "loading": "加载中…",+ "models_label": "模型",+ "new_sessions_default": "新会话默认启用",+ "new_sessions_desc": "当你开始一个 {{name}} 会话时,这些会自动启用。你仍可在每个会话中静音任意一个。",+ "on_by_default": "新会话默认开启",+ "persona": "角色",+ "workspace_label": "工作区"+ },+ "personas": {+ "add_help": "Load from a local directory or a public GitHub repo. Files are copied into a managed area (a snapshot), so the source can change without affecting the install.",+ "add_section": "Add personas",+ "builtin": "· built-in",+ "configure_title": "Configure {{name}}",+ "connectors_tag": "connectors",+ "default_for_new": "Default for new sessions",+ "delete": "Delete",+ "delete_failed": "Couldn't delete — it may be in a session.",+ "delete_title": "Delete {{name}}",+ "delete_tooltip": "Delete this persona",+ "disable": "Disable",+ "disable_warning": "Disabling archives its {{n}} conversation(s) — they stay available under \"Show archived\".",+ "enable_intro": "Enable a coworker, then choose whether it appears in the new-session picker. The starred persona is the default for new sessions.",+ "enabled": "Enabled",+ "in_picker": "In picker",+ "install": "Install",+ "install_failed": "Install failed",+ "installed": "Installed {{n}} persona(s) — review and enable below.",+ "installing": "Installing…",+ "keep": "Keep",+ "keep_enabled": "Keep enabled",+ "mcp_tag": "mcp",+ "messaging_tag": "messaging",+ "mode_github": "GitHub URL",+ "mode_local": "Local directory",+ "placeholder_github": "https://github.com/org/repo",+ "placeholder_local": "/path/to/persona/dir",+ "recommended_mode": "Recommended mode: {{mode}}. Enable it above to use it.",+ "risk_label": "Risk: {{risk}}",+ "set_default": "Set default",+ "tools_label": "Tools: {{tools}}"+ },+ "provider": {+ "all_providers": "‹ 全部 provider",+ "connected_ok": "✓ 已连接",+ "create_key_at": "在 {{label}} 创建一个",+ "custom_endpoint": "自定义端点",+ "days_ago": "{{count}} 天前",+ "detect_btn": "检测",+ "detected_pill": "✓ 已检测",+ "err_couldnt_verify": "无法验证",+ "err_unreachable": "无法访问",+ "hours_ago": "{{count}} 小时前",+ "install_ollama": "安装 Ollama",+ "just_now": "刚刚",+ "minutes_ago": "{{count}} 分钟前",+ "no_key_needed": "无需密钥",+ "no_key_needed_desc": "无需 API 密钥 —— Ollama 在本机运行模型。",+ "no_key_yet": "还没有密钥?",+ "not_set_up": "未设置",+ "running": "✓ 运行中",+ "saved_pill": "✓ 已保存",+ "takes_a_minute": "—— 大约一分钟。",+ "test_btn": "测试",+ "tested_saved_pill": "✓ 已验证并保存",+ "used_suffix": " · 使用于 {{time}}"+ },+ "workspace_trust": {+ "title": "信任此工作区的命令?",+ "sub": "此项目请求 OpenWorker 无需逐条批准即可运行以下命令。信任仅对该文件夹(含其后续配置变更)生效,可随时在设置中撤销。",+ "save_failed": "无法保存工作区信任设置。",+ "keep_asking": "继续询问",+ "saving": "保存中…",+ "trust": "信任工作区"+ }+}diff --git a/surfaces/gui/src/main.tsx b/surfaces/gui/src/main.tsxindex 6cecf54d..1b703864 100644--- a/surfaces/gui/src/main.tsx+++ b/surfaces/gui/src/main.tsx@@ -3,6 +3,7 @@ import ReactDOM from "react-dom/client";import { App } from "./App";import { initTheme } from "./theme";import { platformOS } from "./tauri";+import { initI18n } from "./i18n";import "./tailwind.css";import "./styles.css";@@ -17,8 +18,11 @@ document.documentElement.dataset.platform = platformOS();window.addEventListener("dragover", (e) => e.preventDefault());window.addEventListener("drop", (e) => e.preventDefault());-ReactDOM.createRoot(document.getElementById("root")!).render(- <React.StrictMode>- <App />- </React.StrictMode>,-);+// Initialize i18n before the first render so t() resolves everywhere.+initI18n().finally(() => {+ ReactDOM.createRoot(document.getElementById("root")!).render(+ <React.StrictMode>+ <App />+ </React.StrictMode>,+ );+});diff --git a/surfaces/gui/src/providers/ProviderSetup.tsx b/surfaces/gui/src/providers/ProviderSetup.tsxindex eef8c8b7..b559883d 100644--- a/surfaces/gui/src/providers/ProviderSetup.tsx+++ b/surfaces/gui/src/providers/ProviderSetup.tsx@@ -1,4 +1,6 @@import { useEffect, useRef, useState, type ReactNode } from "react";+import { useTranslation } from "react-i18next";+import type { TFunction } from "i18next";import {getProviders,removeProvider,@@ -50,16 +52,17 @@ export function ProviderMark({ name, title, size = 32 }: { name: string; title:);}-/** "2h ago"-style label for a provider's last completion (null when never used). */-export function relTime(epoch?: number | null): string | null {+/** "2h ago"-style label for a provider's last completion (null when never used).+ * Pass a translation function to localize; omit for the legacy English fallback. */+export function relTime(epoch?: number | null, t?: TFunction): string | null {if (!epoch) return null;const secs = Math.max(0, Math.floor(Date.now() / 1000 - epoch));- if (secs < 90) return "just now";+ if (secs < 90) return t ? t("provider.just_now") : "just now";const mins = Math.floor(secs / 60);- if (mins < 60) return `${mins}m ago`;+ if (mins < 60) return t ? t("provider.minutes_ago", { count: mins }) : `${mins}m ago`;const hrs = Math.floor(mins / 60);- if (hrs < 48) return `${hrs}h ago`;- return `${Math.floor(hrs / 24)}d ago`;+ if (hrs < 48) return t ? t("provider.hours_ago", { count: hrs }) : `${hrs}h ago`;+ return t ? t("provider.days_ago", { count: Math.floor(hrs / 24) }) : `${Math.floor(hrs / 24)}d ago`;}export interface ProviderSetupState {@@ -92,6 +95,7 @@ export interface ProviderSetupState {}export function useProviderSetup(opts?: { onSaved?: () => void }): ProviderSetupState {+ const { t } = useTranslation();const [providers, setProviders] = useState<ProviderInfo[]>([]);// null = the gallery; a provider name = that provider's key form.const [sel, setSel] = useState<string | null>(null);@@ -151,9 +155,9 @@ export function useProviderSetup(opts?: { onSaved?: () => void }): ProviderSetupconst runTestAndSave = async (): Promise<boolean> => {if (!sel) return false;setVerify({ state: "testing" });- const res = await verifyProvider(sel, fields).catch(() => ({ ok: false, error: "unreachable" }));+ const res = await verifyProvider(sel, fields).catch(() => ({ ok: false, error: t("provider.err_unreachable") }));if (!res.ok) {- setVerify({ state: "error", msg: res.error || "couldn't verify" });+ setVerify({ state: "error", msg: res.error || t("provider.err_couldnt_verify") });return false;}if (dirty || !info?.configured) await setProvider(sel, fields).catch(() => {});@@ -213,20 +217,20 @@ export function useProviderSetup(opts?: { onSaved?: () => void }): ProviderSetupconst statusFor = (p: ProviderInfo, o?: { lastUsed?: boolean }) => {if (p.configured && p.needs_key) {- const used = o?.lastUsed ? relTime(p.last_used_at) : null;+ const used = o?.lastUsed ? relTime(p.last_used_at, t) : null;return (<span className="block text-[11.5px] text-ok font-medium truncate">- ✓ Connected{used ? <span className="text-muted font-normal"> · used {used}</span> : ""}+ {t("provider.connected_ok")}{used ? <span className="text-muted font-normal"> {t("provider.used_suffix", { time: used })}</span> : ""}</span>);}if (!p.needs_key)return (<span className="block text-[11.5px] text-faint truncate">- {keylessOk.has(p.name) ? <span className="text-ok font-medium">✓ Running</span> : "No key needed"}+ {keylessOk.has(p.name) ? <span className="text-ok font-medium">{t("provider.running")}</span> : t("provider.no_key_needed")}</span>);- return <span className="block text-[11.5px] text-faint truncate">Not set up</span>;+ return <span className="block text-[11.5px] text-faint truncate">{t("provider.not_set_up")}</span>;};return {@@ -311,6 +315,7 @@ export function ProviderForm({tp: string;footer?: ReactNode;}) {+ const { t } = useTranslation();const { info, sel } = ps;const label = "block text-[12px] text-muted mt-3 mb-1";const input =@@ -319,7 +324,7 @@ export function ProviderForm({return (<div><button className="text-[12.5px] text-muted hover:text-ink" onClick={ps.backToGallery} data-testid={`${tp}-back`}>- ‹ All providers+ {t("provider.all_providers")}</button><div className="flex items-center gap-3 mt-3 mb-1"><ProviderMark name={info?.name || ""} title={info?.title || ""} size={36} />@@ -357,7 +362,7 @@ export function ProviderForm({className="absolute right-2 top-1/2 -translate-y-1/2 text-[11px] font-medium text-ok bg-okSoft rounded-full px-2 py-0.5 pointer-events-none"data-testid={`${tp}-field-saved-${f.key}`}>- ✓ Saved+ {t("provider.saved_pill")}</span>)}{/* §39: state lives IN the field — no status lines below. */}@@ -366,7 +371,7 @@ export function ProviderForm({className="absolute right-2 top-1/2 -translate-y-1/2 text-[11px] font-medium text-ok bg-okSoft rounded-full px-2 py-0.5 pointer-events-none"data-testid={`${tp}-saved-pill`}>- ✓ Tested & saved+ {t("provider.tested_saved_pill")}</span>)}{ps.savedState && !f.secret && testable && (@@ -374,7 +379,7 @@ export function ProviderForm({className="absolute right-2 top-1/2 -translate-y-1/2 text-[11px] font-medium text-ok bg-okSoft rounded-full px-2 py-0.5 pointer-events-none"data-testid={`${tp}-saved-pill`}>- ✓ Detected+ {t("provider.detected_pill")}</span>)}</div>@@ -385,7 +390,7 @@ export function ProviderForm({disabled={ps.verify.state === "testing" || (f.secret && !ps.secretFilled && !ps.credentialed)}data-testid={`${tp}-test`}>- {ps.verify.state === "testing" ? "…" : info?.needs_key ? "Test" : "Detect"}+ {ps.verify.state === "testing" ? "…" : info?.needs_key ? t("provider.test_btn") : t("provider.detect_btn")}</button>)}</div>@@ -396,24 +401,24 @@ export function ProviderForm({{info?.needs_key && KEY_HELP[sel] && (<p className="text-[11.5px] text-faint mt-2">- No key yet?{" "}+ {t("provider.no_key_yet")}{" "}<buttonclassName="text-muted underline decoration-line underline-offset-2 hover:text-ink"onClick={() => openExternal(KEY_HELP[sel].url)}>- Create one at {KEY_HELP[sel].label} ↗+ {t("provider.create_key_at", { label: KEY_HELP[sel].label })} ↗</button>{" "}- — takes about a minute.+ {t("provider.takes_a_minute")}</p>)}{info && !info.needs_key && (<p className="text-[11.5px] text-faint mt-2">- No API key needed — Ollama runs models on this Mac.{" "}+ {t("provider.no_key_needed_desc")}{" "}<buttonclassName="text-muted underline decoration-line underline-offset-2 hover:text-ink"onClick={() => openExternal("https://ollama.com/download")}>- Install Ollama ↗+ {t("provider.install_ollama")} ↗</button></p>)}@@ -432,7 +437,7 @@ export function ProviderForm({onClick={() => ps.setShowEndpoint(true)}data-testid={`${tp}-endpoint-link`}>- Custom endpoint ⌄+ {t("provider.custom_endpoint")} ⌄</button>);return (@@ -453,7 +458,7 @@ export function ProviderForm({className="absolute right-2 top-1/2 -translate-y-1/2 text-[11px] font-medium text-ok bg-okSoft rounded-full px-2 py-0.5 pointer-events-none"data-testid={`${tp}-field-saved-${ep.key}`}>- ✓ Saved+ {t("provider.saved_pill")}</span>)}</div>diff --git a/surfaces/gui/src/test-setup.ts b/surfaces/gui/src/test-setup.tsnew file mode 100644index 00000000..b6b20ed1--- /dev/null+++ b/surfaces/gui/src/test-setup.ts@@ -0,0 +1,14 @@+// Vitest global setup: initialize i18n synchronously so t() resolves inside+// components under test. Uses the English resources so existing English+// assertions keep working; without this, t("key") renders the key literal.+import i18n from "i18next";+import { initReactI18next } from "react-i18next";+import en from "./locales/en.json";++i18n.use(initReactI18next).init({+ resources: { en: { translation: en } },+ lng: "en",+ fallbackLng: "en",+ interpolation: { escapeValue: false },+ returnNull: false,+});diff --git a/surfaces/gui/vitest.config.ts b/surfaces/gui/vitest.config.tsindex 6d6f8977..145e35e2 100644--- a/surfaces/gui/vitest.config.ts+++ b/surfaces/gui/vitest.config.ts@@ -8,5 +8,6 @@ export default defineConfig({test: {environment: "jsdom",include: ["src/**/*.test.{ts,tsx}"],+ setupFiles: ["./src/test-setup.ts"],},});