Where agent teams gather. Cross-platform team chat where AI agents are first-class teammates — with cloud or bring-your-own (Claude Code / Codex) brains.
TypeScript
feat(i18n): locale layer with a complete Simplified Chinese translation (#60)
always1ovc3ed38358fb2
diff --git a/README.md b/README.mdindex f579a7c..b6b1916 100644--- a/README.md+++ b/README.md@@ -97,6 +97,7 @@ npm run guard:big-brain # CI guard: only agent turns may use the big model- [`docs/BYOA.md`](docs/BYOA.md) — Bring Your Own Agent: local Claude Code / Codex / Grok Build / Cursor Agent as an agent's brain.- [`docs/COORDINATION.md`](docs/COORDINATION.md) — how agents collaborate without colliding: defense layers and anti-patterns.- [`docs/email.md`](docs/email.md) — per-agent real email (Resend out, Cloudflare Email Worker in).+- [`docs/I18N.md`](docs/I18N.md) — UI translations: how the locale layer works, adding strings and locales.- [`docs/SHIPPING.md`](docs/SHIPPING.md) — the evidence-backed feature lifecycle shared by humans and agents.- [`docs/RELEASE.md`](docs/RELEASE.md) — desktop and backend release operations.- [`docs/MOBILE_IOS.md`](docs/MOBILE_IOS.md) / [`docs/PUSH_NOTIFICATIONS.md`](docs/PUSH_NOTIFICATIONS.md) — iOS build and push setup.diff --git a/docs/I18N.md b/docs/I18N.mdnew file mode 100644index 0000000..c5fe614--- /dev/null+++ b/docs/I18N.md@@ -0,0 +1,90 @@+# Internationalization++The UI ships English and Simplified Chinese (`zh-CN`). The locale is a+per-device choice, set under **Preferences → Language** on desktop and+**You → Language** on mobile, and applied immediately — every component+that reads through `useT()` subscribes to the locale store, so there is+no reload and no "restart to apply".++On first run, with no stored choice, the browser's languages decide: any+`zh*` tag lands on Simplified Chinese, anything else on English.++## How it works++Three files, no dependencies:++| file | role |+|---|---|+| `src/lib/i18n.ts` | locale store (zustand + `localStorage`, same shape as `stores/sound.ts`), lookup, `{name}` interpolation |+| `src/locales/en.ts` | the English catalogue — **source of truth** |+| `src/locales/zh-CN.ts` | the Chinese catalogue, typed against `en` |++`en` types every other locale, so a translation that misspells a key or+invents one fails `tsc` rather than rendering a blank. A key a locale+hasn't translated yet falls back to English, which means a partial+translation renders a mixed UI instead of an empty one — partial is the+normal state of a locale, not a bug.++## Using it in a component++```tsx+import { useT } from '@/lib/i18n'++function Greeting({ name }: { name: string }) {+ const t = useT()+ return <div>{t('common.greeting', { name })}</div>+}+```++`useT()` is a hook: it re-renders the component when the locale changes.+For module scope or an event handler that doesn't render, `t()` (the+non-reactive export) reads the current locale once.++Data defined at module scope — nav items, preference rows — stores the+**message key**, not the string, and resolves it at render:++```tsx+const tabs: Array<{ key: string; label: MessageKey }> = [+ { key: 'profile', label: 'me.tab.profile' },+]+```++Note the split between `key` and `label` there. Anything that identifies+state (a tab, a preference, a route) must keep an identifier that doesn't+move with the language; only the label is translated.++## Adding a string++1. Add the key to `src/locales/en.ts` with the English text. Keys are+ `area.thing` — the area matches where the string lives (`nav.`,+ `auth.`, `me.`, `mobileMe.`), shared wording goes under `common.`.+2. Use `t('area.thing')` in the component.+3. Translate it in `src/locales/zh-CN.ts`. Leaving it out is safe — it+ renders in English until someone gets to it.++## Adding a locale++1. Copy `src/locales/zh-CN.ts` to `src/locales/<code>.ts`, keep the+ `Partial<Record<keyof typeof en, string>>` type, translate the values.+2. Register it in `src/lib/i18n.ts`: add the code to the `Locale` union,+ the dictionary to `DICTS`, and an entry to `LOCALES` (whose `label` is+ the language's own name — someone looking for Chinese scans for+ 简体中文, not for "Chinese (Simplified)").+3. If the language should be auto-detected, extend `detectLocale()`.++The picker itself needs no change; it renders from `LOCALES`.++## Current coverage++Translated: navigation (desktop rail, mobile tab bar), the sign-in+screen, and both settings surfaces (desktop **You**, mobile **You**),+including every preference toggle.++Not yet translated: the conversation, board, calendar, document, agent+and shipping views, and the admin console. Those still render their+English strings, which is what the English fallback is for — they can be+converted a file at a time without touching the machinery. The admin+console is operator-facing and lowest priority.++Server-generated text (agent replies, digests, emails) is a separate+problem: it comes from model prompts, not from this catalogue.diff --git a/src/admin/AdminApp.tsx b/src/admin/AdminApp.tsxindex e345fc8..13740fa 100644--- a/src/admin/AdminApp.tsx+++ b/src/admin/AdminApp.tsx@@ -16,6 +16,7 @@*/import { useEffect, useState } from 'react'import { useAuth } from '@/stores/auth'+import { useT } from '@/lib/i18n'import { CloudLogo } from '@/components/Avatar'import { adminApi, type AdminStats } from './api'import { UsersPage } from './UsersPage'@@ -51,6 +52,7 @@ function hrefFor(target: Route): string {}export function AdminApp() {+ const t = useT()const user = useAuth((s) => s.user)const clear = useAuth((s) => s.clear)const [route, setRoute] = useState<Route>(parseRoute)@@ -86,17 +88,17 @@ export function AdminApp() {}, [verified, route])if (verified === 'checking') {- return <FullScreenNote tone="muted">Checking admin access…</FullScreenNote>+ return <FullScreenNote tone="muted">{t('admin.checking')}</FullScreenNote>}if (verified === 'denied') {return (<FullScreenNote tone="warn">- <div style={{ fontSize: 18, fontWeight: 600, marginBottom: 8 }}>Not authorized</div>+ <div style={{ fontSize: 18, fontWeight: 600, marginBottom: 8 }}>{t('admin.notAuthorized')}</div><div style={{ fontSize: 14, opacity: 0.7, marginBottom: 16 }}>- Signed in as <code>{user?.email ?? '(unknown)'}</code>.+ {t('admin.signedInAs', { email: user?.email ?? '(unknown)' })}</div><button className="btn" onClick={() => { clear() }}>- Sign out and switch account+ {t('admin.signOutSwitch')}</button></FullScreenNote>)@@ -105,7 +107,7 @@ export function AdminApp() {return (<div className={`admin-shell${navOpen ? ' nav-open' : ''}`}><header className="admin-topbar">- <button className="admin-topbar-burger" onClick={() => setNavOpen((v) => !v)} aria-label="Toggle navigation">+ <button className="admin-topbar-burger" onClick={() => setNavOpen((v) => !v)} aria-label={t('admin.toggleNav')}><span /><span /><span /></button><div className="admin-topbar-brand">@@ -124,13 +126,13 @@ export function AdminApp() {</div></div><nav className="admin-nav">- <NavLink current={route} target="users" label="Users" badge={stats?.users.total} />- <NavLink current={route} target="waitlist" label="Waitlist" badge={stats?.waitlist.pending || undefined} highlight={!!stats?.waitlist.pending} />- <NavLink current={route} target="observability" label="Observability" />- <NavLink current={route} target="settings" label="Settings" />+ <NavLink current={route} target="users" label={t('admin.users')} badge={stats?.users.total} />+ <NavLink current={route} target="waitlist" label={t('admin.waitlist')} badge={stats?.waitlist.pending || undefined} highlight={!!stats?.waitlist.pending} />+ <NavLink current={route} target="observability" label={t('admin.observability')} />+ <NavLink current={route} target="settings" label={t('admin.settings')} /></nav><div className="admin-sidebar-foot">- <button className="btn-ghost" onClick={() => { clear() }}>Sign out</button>+ <button className="btn-ghost" onClick={() => { clear() }}>{t('admin.signOut')}</button></div></aside><main className="admin-main">diff --git a/src/admin/ObservabilityPage.tsx b/src/admin/ObservabilityPage.tsxindex 524a9b0..1176e73 100644--- a/src/admin/ObservabilityPage.tsx+++ b/src/admin/ObservabilityPage.tsx@@ -31,6 +31,7 @@import { useEffect, useMemo, useRef, useState } from 'react'import { Select } from '@/components/Select'import { Combobox } from '@/components/Combobox'+import { useLocale, useT, tLabel, type MessageKey } from '@/lib/i18n'import {adminApi,type LlmCallPurpose,@@ -79,6 +80,43 @@ const PURPOSE_META: Record<LlmCallPurpose, PurposeMeta> = {'agent-image': { label: 'Agent image tool', blurb: 'Image gen invoked by an agent mid-turn.', swatch: '#E8A030' },}+// i18n: parallel lookup tables for the 12 LlmCallPurpose values. The+// original PURPOSE_META keeps English text as the fallback so existing+// product copy keeps rendering even if a key is missing. These tables+// just give t() a MessageKey to resolve; the underlying data shape+// (label/blurb/swatch) is untouched, so author edits to PURPOSE_META+// stay in sync automatically.+const PURPOSE_LABEL_KEY: Record<LlmCallPurpose, MessageKey> = {+ 'agent-turn': 'adminobs.purposeAgentTurn',+ 'convene-speech': 'adminobs.purposeConveneSpeech',+ 'inbox-triage': 'adminobs.purposeInboxTriage',+ 'synthetic-wake-gate': 'adminobs.purposeSyntheticWakeGate',+ 'agenda': 'adminobs.purposeAgenda',+ 'compaction': 'adminobs.purposeCompaction',+ 'completion-verify': 'adminobs.purposeCompletionVerify',+ 'steer-summary': 'adminobs.purposeSteerSummary',+ 'convene-decision': 'adminobs.purposeConveneDecision',+ 'palette': 'adminobs.purposePalette',+ 'gender': 'adminobs.purposeGender',+ 'avatar-image': 'adminobs.purposeAvatarImage',+ 'agent-image': 'adminobs.purposeAgentImage',+}+const PURPOSE_BLURB_KEY: Record<LlmCallPurpose, MessageKey> = {+ 'agent-turn': 'adminobs.purposeAgentTurnBlurb',+ 'convene-speech': 'adminobs.purposeConveneSpeechBlurb',+ 'inbox-triage': 'adminobs.purposeInboxTriageBlurb',+ 'synthetic-wake-gate': 'adminobs.purposeSyntheticWakeGateBlurb',+ 'agenda': 'adminobs.purposeAgendaBlurb',+ 'compaction': 'adminobs.purposeCompactionBlurb',+ 'completion-verify': 'adminobs.purposeCompletionVerifyBlurb',+ 'steer-summary': 'adminobs.purposeSteerSummaryBlurb',+ 'convene-decision': 'adminobs.purposeConveneDecisionBlurb',+ 'palette': 'adminobs.purposePaletteBlurb',+ 'gender': 'adminobs.purposeGenderBlurb',+ 'avatar-image': 'adminobs.purposeAvatarImageBlurb',+ 'agent-image': 'adminobs.purposeAgentImageBlurb',+}+const FALLBACK_SWATCH = '#94A8BC'function metaFor(p: LlmCallPurpose | string): PurposeMeta {const m = (PURPOSE_META as Record<string, PurposeMeta | undefined>)[p]@@ -147,6 +185,14 @@ const REFRESH_INTERVALS: Array<{ label: string; ms: number }> = [{ label: 'Every 1m', ms: 60_000 },{ label: 'Every 5m', ms: 300_000 },]+// i18n lookup by ms cadence. English label stays as fallback for any+// future cadence the author adds before we have a key wired up.+const REFRESH_LABEL_KEY: Record<number, MessageKey> = {+ 0: 'adminobs.refreshOff',+ 30000: 'adminobs.refresh30s',+ 60000: 'adminobs.refresh1m',+ 300000: 'adminobs.refresh5m',+}// ─── Source filter ───────────────────────────────────────────────────────//@@ -167,8 +213,24 @@ const SOURCE_FILTERS: Array<{ key: SourceFilter; label: string }> = [{ key: 'cloud', label: 'Cloud' },{ key: 'byoa', label: 'BYOA' },]+// i18n lookup by SourceFilter key.+const SOURCE_LABEL_KEY: Record<SourceFilter, MessageKey> = {+ 'all': 'adminobs.sourceAll',+ 'cloud': 'adminobs.sourceCloud',+ 'byoa': 'adminobs.sourceByoa',+}const isByoaSource = (s: string): boolean => s.startsWith('byoa-')+// i18n helpers — shared by the page and its module-scope card/table+// components. `tLabel` prefers the translated key but always falls back to+// the inline English source-of-truth, so upstream copy edits keep rendering+// even before a translation lands.+type TFn = ReturnType<typeof useT>+const purposeLabel = (t: TFn, p: LlmCallPurpose | string): string =>+ tLabel(t, (PURPOSE_LABEL_KEY as Partial<Record<string, MessageKey>>)[p], metaFor(p).label)+const purposeBlurb = (t: TFn, p: LlmCallPurpose | string): string =>+ tLabel(t, (PURPOSE_BLURB_KEY as Partial<Record<string, MessageKey>>)[p], metaFor(p).blurb)+// ─── Component ───────────────────────────────────────────────────────────/** What the drill-down panel is currently showing. `null` = closed; a value@@ -182,6 +244,7 @@ type DrillDown =| { kind: 'agent'; agentId: string; agentName: string | null }export function ObservabilityPage() {+ const t = useT()const [sinceDays, setSinceDays] = useState<number>(30)const [modelFilter, setModelFilter] = useState<string>('')const [sourceFilter, setSourceFilter] = useState<SourceFilter>('all')@@ -281,16 +344,16 @@ export function ObservabilityPage() {<div className="admin-page obs-page"><header className="admin-page-head"><div>- <h1 className="admin-h1">Observability</h1>+ <h1 className="admin-h1">{t('adminobs.title')}</h1><div className="admin-sub">- Every LLM call — cloud AND BYOA — attributed to the business logic that spent it.+ {t('adminobs.subtitle')}{data?.summary && (- <> Window: last {data.summary.sinceDays}d · {fmtInt(data.summary.activeTenants)} active tenants.</>+ <> {t('adminobs.windowSummary', { sinceDays: data.summary.sinceDays, activeTenants: fmtInt(data.summary.activeTenants) })}</>)}</div></div><div className="admin-filters obs-filters">- <div className="obs-pills" role="tablist" aria-label="Time range">+ <div className="obs-pills" role="tablist" aria-label={t('adminobs.rangeAria')}>{RANGES.map((r) => (<buttonkey={r.days}@@ -301,7 +364,7 @@ export function ObservabilityPage() {>{r.label}</button>))}</div>- <div className="obs-pills" role="tablist" aria-label="Source">+ <div className="obs-pills" role="tablist" aria-label={t('adminobs.sourceAria')}>{SOURCE_FILTERS.map((s) => (<buttonkey={s.key}@@ -309,12 +372,12 @@ export function ObservabilityPage() {aria-selected={sourceFilter === s.key}className={`obs-pill${sourceFilter === s.key ? ' is-active' : ''}`}onClick={() => setSourceFilter(s.key)}- >{s.label}</button>+ >{tLabel(t, SOURCE_LABEL_KEY[s.key], s.label)}</button>))}</div>{/* Unit toggle — $ are seeded estimates; tokens are the platform-neutral truth (the whole reason BYOA can't trust the $). */}- <div className="obs-pills" role="tablist" aria-label="Unit">+ <div className="obs-pills" role="tablist" aria-label={t('adminobs.unitAria')}>{UNITS.map((u) => (<buttonkey={u.key}@@ -322,13 +385,13 @@ export function ObservabilityPage() {aria-selected={unit === u.key}className={`obs-pill${unit === u.key ? ' is-active' : ''}`}onClick={() => setUnit(u.key)}- title={u.key === 'usd' ? 'Cost in USD — seeded per-model estimates, not your real platform rate' : 'Raw token counts — exact, platform-independent'}- >{u.label}</button>+ title={u.key === 'usd' ? t('adminobs.unitUsdTitle') : t('adminobs.unitTokensTitle')}+ >{u.key === 'usd' ? tLabel(t, 'adminobs.unitUsd', u.label) : tLabel(t, 'adminobs.unitTokens', u.label)}</button>))}</div><inputclassName="admin-input obs-model-input"- placeholder="Filter model (e.g. gpt-5.4-mini)"+ placeholder={t('adminobs.modelPh')}value={modelFilter}onChange={(e) => setModelFilter(e.target.value)}/>@@ -337,6 +400,7 @@ export function ObservabilityPage() {value={companyFilter}unit={unit}onChange={setCompanyFilter}+ t={t}/>{/* Refresh controls — manual button + auto-refresh cadence. Both forcea fresh (cache-bypassing) re-fetch with the CURRENT filters. */}@@ -346,58 +410,58 @@ export function ObservabilityPage() {className="obs-refresh-btn"onClick={triggerRefresh}disabled={refreshing}- title={lastUpdated ? `Last updated ${new Date(lastUpdated).toLocaleTimeString()} — click to refresh` : 'Refresh'}- aria-label="Refresh now"+ title={lastUpdated ? t('adminobs.refreshedTitle', { time: new Date(lastUpdated).toLocaleTimeString() }) : t('adminobs.refreshTitle')}+ aria-label={t('adminobs.refreshAria')}><span className={`obs-refresh-icon${refreshing ? ' is-spinning' : ''}`} aria-hidden>↻</span></button><Selectvalue={String(autoRefreshMs)}onValueChange={(v) => setAutoRefreshMs(Number(v))}- options={REFRESH_INTERVALS.map((r) => ({ value: String(r.ms), label: r.label }))}- ariaLabel="Auto-refresh interval"+ options={REFRESH_INTERVALS.map((r) => ({ value: String(r.ms), label: tLabel(t, REFRESH_LABEL_KEY[r.ms], r.label) }))}+ ariaLabel={tLabel(t, 'adminobs.autoRefreshAria', 'Auto-refresh interval')}className="min-w-[150px]"/></div></div>{lastUpdated && (<div className="obs-updated" aria-live="polite">- Updated {new Date(lastUpdated).toLocaleTimeString()}- {autoRefreshMs > 0 && <> · auto every {REFRESH_INTERVALS.find((r) => r.ms === autoRefreshMs)?.label.replace('Every ', '')}</>}- {refreshing && <> · refreshing…</>}+ {t('adminobs.updatedAt', { time: new Date(lastUpdated).toLocaleTimeString() })}+ {autoRefreshMs > 0 && <> · {t('adminobs.autoEvery', { label: (() => { const found = REFRESH_INTERVALS.find((r) => r.ms === autoRefreshMs); return found ? tLabel(t, REFRESH_LABEL_KEY[found.ms], found.label).replace(/^(Every |每 )/, '') : '' })() })}</>}+ {refreshing && <> · {t('adminobs.refreshing')}</>}</div>)}</header>- {error && <div className="obs-error">Failed to load: {error}</div>}+ {error && <div className="obs-error">{t('adminobs.loadFailed', { error })}</div>}{/* Hero KPIs — paper-toned, with one richly-treated "Spend" tile asthe visual anchor. The four cards always render so the page doesn'tjump around between loading / loaded states. */}<section className="obs-hero">- <HeroSpendCard summary={data?.summary} unit={unit} loading={loading} />+ <HeroSpendCard summary={data?.summary} unit={unit} loading={loading} t={t} /><HeroStatCard- label="Total calls"+ label={t('adminobs.totalCalls')}value={data?.summary ? fmtInt(data.summary.totalCalls) : '—'}sub={data?.summary- ? `${fmtInt(data.summary.rateLimitedCalls)} rate-limited`+ ? t('adminobs.rateLimitedSub', { n: fmtInt(data.summary.rateLimitedCalls) }): ' '}loading={loading}/><HeroStatCard- label="Top burner"- value={topBurner ? metaFor(topBurner.purpose).label : '—'}+ label={t('adminobs.topBurner')}+ value={topBurner ? purposeLabel(t, topBurner.purpose) : '—'}sub={topBurner- ? `${fmtAmount(unit, topBurner.usd, topBurner.tokens)} of the window`+ ? t('adminobs.ofWindow', { amount: fmtAmount(unit, topBurner.usd, topBurner.tokens) }): ' '}accent={topBurner ? metaFor(topBurner.purpose).swatch : undefined}loading={loading}/><HeroStatCard- label="Failure rate"+ label={t('adminobs.failureRate')}value={data?.summary ? fmtPct(data.summary.failureRate) : '—'}sub={data?.summary- ? `${fmtTokens(data.summary.totalOutputTokens)} out · ${fmtTokens(data.summary.totalCachedInputTokens)} cached in`+ ? t('adminobs.failSub', { out: fmtTokens(data.summary.totalOutputTokens), cached: fmtTokens(data.summary.totalCachedInputTokens) }): ' '}accent={data?.summary && data.summary.failureRate > 0.05 ? 'var(--coral-deep)' : undefined}loading={loading}@@ -410,27 +474,27 @@ export function ObservabilityPage() {<section className="obs-card obs-trend-card"><div className="obs-card-head"><div>- <div className="obs-card-title">{unit === 'usd' ? 'Daily cost by purpose' : 'Daily input tokens by purpose'}</div>- <div className="obs-card-sub">UTC days · stacked by purpose · {modelFilter ? `model = ${modelFilter}` : 'all models'}{unit !== 'usd' && ' · cached + uncached input'}</div>+ <div className="obs-card-title">{unit === 'usd' ? t('adminobs.trendCostTitle') : t('adminobs.trendTokensTitle')}</div>+ <div className="obs-card-sub">{t('adminobs.trendSub', { modelPart: modelFilter ? t('adminobs.trendSubModel', { model: modelFilter }) : t('adminobs.trendSubAllModels'), tokenPart: unit !== 'usd' ? t('adminobs.trendSubTokens') : '' })}</div></div></div>- <TrendChart buckets={data?.trend ?? []} unit={unit} loading={loading} />+ <TrendChart buckets={data?.trend ?? []} unit={unit} loading={loading} t={t} /><PurposeLegend rollup={filtered?.rollup ?? []} unit={unit} /></section>{/* Cache health — the single biggest optimization vector. Every uncachedinput token costs ~10× the cached rate; this card tells the operatorhow much they're leaving on the table and which purpose to target. */}- <CacheHealthCard summary={data?.summary} trend={data?.trend ?? []} rollup={filtered?.rollup ?? []} unit={unit} loading={loading} />+ <CacheHealthCard summary={data?.summary} trend={data?.trend ?? []} rollup={filtered?.rollup ?? []} unit={unit} loading={loading} t={t} />{/* Per-purpose rollup. The reason this page exists. */}<section className="obs-card"><div className="obs-card-head"><div>- <div className="obs-card-title">{unit === 'usd' ? 'Spend' : 'Tokens'} by purpose × model × source</div>+ <div className="obs-card-title">{t('adminobs.rollupTitle', { unit: unit === 'usd' ? t('adminobs.spendLabel') : t('adminobs.tokensLabel') })}</div><div className="obs-card-sub">- Sorted by {unit === 'usd' ? 'cost' : 'tokens'} desc · click a column to re-sort- {sourceFilter !== 'all' && <> · filtered to <strong>{SOURCE_FILTERS.find((s) => s.key === sourceFilter)?.label}</strong></>}+ {t('adminobs.rollupSub', { unit: unit === 'usd' ? t('adminobs.spendLabel') : t('adminobs.tokensLabel') })}+ {sourceFilter !== 'all' && <> · {t('adminobs.rollupFiltered', { label: (() => { const found = SOURCE_FILTERS.find((s) => s.key === sourceFilter); return found ? tLabel(t, SOURCE_LABEL_KEY[found.key], found.label) : '' })() })}</>}</div></div></div>@@ -439,6 +503,7 @@ export function ObservabilityPage() {unit={unit}loading={loading}onDrill={(r) => setDrill({ kind: 'bucket', purpose: r.purpose, model: r.model, source: r.source })}+ t={t}/></section>@@ -448,8 +513,8 @@ export function ObservabilityPage() {<section className="obs-card"><div className="obs-card-head"><div>- <div className="obs-card-title">Top spenders</div>- <div className="obs-card-sub">By agent · top 20 over the window</div>+ <div className="obs-card-title">{t('adminobs.topSpendersTitle')}</div>+ <div className="obs-card-sub">{t('adminobs.topSpendersSub')}</div></div></div><TopAgentsTable@@ -457,6 +522,7 @@ export function ObservabilityPage() {unit={unit}loading={loading}onDrill={(r) => r.agentId && setDrill({ kind: 'agent', agentId: r.agentId, agentName: r.agentName })}+ t={t}/></section>@@ -468,14 +534,15 @@ export function ObservabilityPage() {<section className="obs-card"><div className="obs-card-head"><div>- <div className="obs-card-title">By daemon version</div>- <div className="obs-card-sub">Spend × cache behaviour per agent-cli release · drill into a row to see its calls</div>+ <div className="obs-card-title">{t('adminobs.daemonTitle')}</div>+ <div className="obs-card-sub">{t('adminobs.daemonSub')}</div></div></div><DaemonVersionTablerows={data?.daemonVersions ?? []}unit={unit}loading={loading}+ t={t}/></section>@@ -492,6 +559,7 @@ export function ObservabilityPage() {onClose={() => setDrill(null)}onJumpToRun={(runId) => setDrill({ kind: 'run', runId })}onJumpToAgent={(agentId, agentName) => setDrill({ kind: 'agent', agentId, agentName })}+ t={t}/></div>)@@ -499,7 +567,7 @@ export function ObservabilityPage() {// ─── Hero spend card ─────────────────────────────────────────────────────-function HeroSpendCard({ summary, unit, loading }: { summary: LlmObservabilityPayload['summary'] | undefined; unit: Unit; loading: boolean }) {+function HeroSpendCard({ summary, unit, loading, t }: { summary: LlmObservabilityPayload['summary'] | undefined; unit: Unit; loading: boolean; t: ReturnType<typeof useT> }) {const totalUsd = summary?.totalCostUsd ?? 0// Tokens headline counts every billable token (cached input included); the// sub then splits it so the cached share — which bills ~10× less — is never@@ -511,13 +579,13 @@ function HeroSpendCard({ summary, unit, loading }: { summary: LlmObservabilityPareturn (<div className="obs-hero-card obs-hero-spend"><div className="obs-hero-spend-shine" aria-hidden />- <div className="obs-hero-label">{unit === 'usd' ? 'Spend' : 'Tokens'} · last {summary?.sinceDays ?? 30}d</div>+ <div className="obs-hero-label">{t('adminobs.heroSpendPrefix', { unit: unit === 'usd' ? t('adminobs.spendLabel') : t('adminobs.tokensLabel'), days: summary?.sinceDays ?? 30 })}</div><div className="obs-hero-value">{loading ? '—' : unit === 'usd' ? fmtUsd(totalUsd, totalUsd < 100 ? 4 : 2) : fmtTokens(totalTok)}</div><div className="obs-hero-sub">{summary? (unit === 'usd'- ? <>{fmtTokens(uncachedIn + cachedIn)} input · {fmtTokens(out)} output</>- : <>{fmtTokens(uncachedIn)} in · {fmtTokens(cachedIn)} cached · {fmtTokens(out)} out</>)+ ? t('adminobs.heroSubUsd', { in: fmtTokens(uncachedIn + cachedIn), out: fmtTokens(out) })+ : t('adminobs.heroSubTokens', { in: fmtTokens(uncachedIn), cached: fmtTokens(cachedIn), out: fmtTokens(out) })): <> </>}</div></div>@@ -546,7 +614,7 @@ function HeroStatCard({ label, value, sub, accent, loading }: {* - The page is admin-only; pulling in recharts would be a runtime tax for* a page two people will ever load.* - Inline SVG gives us pixel-perfect control over the paper palette. */-function TrendChart({ buckets, unit, loading }: { buckets: LlmTrendBucket[]; unit: Unit; loading: boolean }) {+function TrendChart({ buckets, unit, loading, t }: { buckets: LlmTrendBucket[]; unit: Unit; loading: boolean; t: ReturnType<typeof useT> }) {// Trend buckets carry $ and input tokens (cached + uncached) but no output —// so the token series is total INPUT tokens, which the card sub spells out.const val = (b: LlmTrendBucket): number => unit === 'usd' ? b.costUsd : b.inputTokens + b.cachedInputTokens@@ -584,8 +652,8 @@ function TrendChart({ buckets, unit, loading }: { buckets: LlmTrendBucket[]; unireturn { purposes, series, totalByDay, maxStack }}, [buckets, days, unit])- if (loading) return <div className="obs-chart-empty">Loading…</div>- if (days.length === 0) return <div className="obs-chart-empty">No data in this window.</div>+ if (loading) return <div className="obs-chart-empty">{t('adminobs.loading')}</div>+ if (days.length === 0) return <div className="obs-chart-empty">{t('adminobs.noData')}</div>const innerW = W - PADL - PADRconst innerH = H - PADT - PADB@@ -651,7 +719,7 @@ function TrendChart({ buckets, unit, loading }: { buckets: LlmTrendBucket[]; uniconst m = metaFor(l.purpose)return (<path key={l.purpose} d={l.path} fill={m.swatch} fillOpacity={0.85} stroke={m.swatch} strokeWidth={0.5}>- <title>{m.label}</title>+ <title>{purposeLabel(t, l.purpose)}</title></path>)})}@@ -665,6 +733,7 @@ function TrendChart({ buckets, unit, loading }: { buckets: LlmTrendBucket[]; uni}function PurposeLegend({ rollup, unit }: { rollup: LlmRollupRow[]; unit: Unit }) {+ const t = useT()// Aggregate by purpose so legend dots show the TOTAL too — answers "which// color is the big one?" without re-scanning the chart. Uses the active unit.const totals = new Map<LlmCallPurpose, number>()@@ -676,9 +745,9 @@ function PurposeLegend({ rollup, unit }: { rollup: LlmRollupRow[]; unit: Unit }){sorted.map(([p, cost]) => {const m = metaFor(p)return (- <span key={p} className="obs-legend-chip" title={m.blurb}>+ <span key={p} className="obs-legend-chip" title={purposeBlurb(t, p)}><span className="obs-legend-dot" style={{ background: m.swatch }} />- <span className="obs-legend-label">{m.label}</span>+ <span className="obs-legend-label">{purposeLabel(t, p)}</span><span className="obs-legend-cost">{unit === 'usd' ? fmtUsd(cost) : fmtTokens(cost)}</span></span>)@@ -703,12 +772,13 @@ function PurposeLegend({ rollup, unit }: { rollup: LlmRollupRow[]; unit: Unit })// subtle sky→coral gradient through the threshold (>50% sky, <20% coral) so// the operator's eye finds the bad rows without reading labels.-function CacheHealthCard({ summary, trend, rollup, unit, loading }: {+function CacheHealthCard({ summary, trend, rollup, unit, loading, t }: {summary: LlmObservabilityPayload['summary'] | undefinedtrend: LlmTrendBucket[]rollup: LlmRollupRow[]unit: Unitloading: boolean+ t: ReturnType<typeof useT>}) {// Per-purpose aggregation from the rollup (already source-filtered upstream).const perPurpose = useMemo(() => {@@ -757,43 +827,43 @@ function CacheHealthCard({ summary, trend, rollup, unit, loading }: {<section className="obs-card obs-cache-card"><div className="obs-card-head"><div>- <div className="obs-card-title">Cache health</div>+ <div className="obs-card-title">{t('adminobs.cacheHealthTitle')}</div><div className="obs-card-sub">- How much you're paying for tokens the cache could have served.+ {t('adminobs.cacheHealthSub')}</div></div></div><div className="obs-cache-hero"><div className="obs-cache-hero-main">- <div className="obs-cache-hero-label">Overall hit rate</div>+ <div className="obs-cache-hero-label">{t('adminobs.cacheHitLabel')}</div><div className={`obs-cache-hero-value ${cacheToneClass(hit)}`}>{hit != null ? fmtPct(hit, 1) : '—'}</div><div className="obs-cache-hero-sub">{hit != null- ? <>of {fmtTokens((summary?.totalInputTokens ?? 0) + (summary?.totalCachedInputTokens ?? 0))} input tokens served from cache</>+ ? t('adminobs.cacheHeroSub', { n: fmtTokens((summary?.totalInputTokens ?? 0) + (summary?.totalCachedInputTokens ?? 0)) }): '—'}</div></div><div className="obs-cache-hero-aside">- <div className="obs-cache-hero-label">{unit === 'usd' ? 'Money on the table' : 'Cacheable tokens'}</div>+ <div className="obs-cache-hero-label">{unit === 'usd' ? t('adminobs.moneyOnTable') : t('adminobs.cacheableTokens')}</div><div className="obs-cache-hero-value obs-cache-tone-warn">{loading ? '—' : unit === 'usd' ? fmtUsd(savable, savable < 1 ? 4 : 2) : fmtTokens(summary?.totalInputTokens ?? 0)}</div><div className="obs-cache-hero-sub">- upper bound · {unit === 'usd' ? 'if every input were cached' : 'uncached input tokens'}+ {t('adminobs.upperBoundPrefix')}{unit === 'usd' ? t('adminobs.upperBoundUsd') : t('adminobs.upperBoundTokens')}</div></div></div>- <CacheDailyChart days={daily} loading={loading} />+ <CacheDailyChart days={daily} loading={loading} t={t} /><div className="obs-cache-bars">- <div className="obs-cache-bars-head">By purpose · sorted by {unit === 'usd' ? 'savable $' : 'cacheable tokens'}</div>- {perPurpose.length === 0 && <div className="obs-empty">No input traffic in this window.</div>}+ <div className="obs-cache-bars-head">{t('adminobs.cacheBarsHead', { k: unit === 'usd' ? t('adminobs.savableUsd') : t('adminobs.cacheableTokens') })}</div>+ {perPurpose.length === 0 && <div className="obs-empty">{t('adminobs.noInputTraffic')}</div>}{perPurpose.map((p) => (- <CachePurposeBar key={p.purpose} {...p} unit={unit} />+ <CachePurposeBar key={p.purpose} {...p} unit={unit} t={t} />))}</div></section>@@ -813,16 +883,17 @@ function cacheToneClass(hitRate: number | null | undefined): string {/** Single-line area chart of daily cache hit rate. 0–100% Y axis (fixed), so* a long flat low line reads as "you're not caching, do something". Soft* area fill under the line + a faint 50% midline as a target. */-function CacheDailyChart({ days, loading }: {+function CacheDailyChart({ days, loading, t }: {days: Array<{ day: string; hitRate: number | null }>loading: boolean+ t: ReturnType<typeof useT>}) {const W = 1000, H = 160, PADL = 56, PADR = 16, PADT = 16, PADB = 32const innerW = W - PADL - PADRconst innerH = H - PADT - PADB- if (loading) return <div className="obs-chart-empty obs-cache-chart-empty">Loading…</div>- if (days.length === 0) return <div className="obs-chart-empty obs-cache-chart-empty">No daily data yet.</div>+ if (loading) return <div className="obs-chart-empty obs-cache-chart-empty">{t('adminobs.loading')}</div>+ if (days.length === 0) return <div className="obs-chart-empty obs-cache-chart-empty">{t('adminobs.noDailyData')}</div>// Points; skip nulls (no traffic) so the line interpolates instead of dropping to 0.const points = days@@ -887,7 +958,7 @@ function CacheDailyChart({ days, loading }: {/** One horizontal bar — purpose dot + label, then a progress-style bar* whose fill width is the hit rate. The right side shows savable $ — the* actionable number. */-function CachePurposeBar({ purpose, hitRate, savableUsd, costUsd, uncachedIn, cachedIn, unit }: {+function CachePurposeBar({ purpose, hitRate, savableUsd, costUsd, uncachedIn, cachedIn, unit, t }: {purpose: LlmCallPurposehitRate: number | nullsavableUsd: number@@ -895,15 +966,16 @@ function CachePurposeBar({ purpose, hitRate, savableUsd, costUsd, uncachedIn, cauncachedIn: numbercachedIn: numberunit: Unit+ t: ReturnType<typeof useT>}) {const m = metaFor(purpose)const ratePct = hitRate != null ? Math.max(0, Math.min(1, hitRate)) * 100 : 0const total = uncachedIn + cachedInreturn (- <div className="obs-cache-bar-row" title={`${fmtTokens(cachedIn)} of ${fmtTokens(total)} input tokens cached`}>+ <div className="obs-cache-bar-row" title={t('adminobs.cacheBarTitle', { cached: fmtTokens(cachedIn), total: fmtTokens(total) })}><div className="obs-cache-bar-purpose"><span className="obs-dot" style={{ background: m.swatch }} aria-hidden />- <span className="obs-cache-bar-label">{m.label}</span>+ <span className="obs-cache-bar-label">{purposeLabel(t, purpose)}</span></div><div className="obs-cache-bar-track"><div@@ -932,7 +1004,7 @@ function CachePurposeBar({ purpose, hitRate, savableUsd, costUsd, uncachedIn, catype SortKey = 'costUsd' | 'totalTok' | 'calls' | 'inputTokens' | 'outputTokens' | 'failureRate' | 'cacheHitRate'-function RollupTable({ rows, unit, loading, onDrill }: { rows: LlmRollupRow[]; unit: Unit; loading: boolean; onDrill: (r: LlmRollupRow) => void }) {+function RollupTable({ rows, unit, loading, onDrill, t }: { rows: LlmRollupRow[]; unit: Unit; loading: boolean; onDrill: (r: LlmRollupRow) => void; t: ReturnType<typeof useT> }) {// The headline column re-keys with the unit so the default sort always// matches what's on screen ($ desc in USD, total tokens desc in tokens).const headlineKey: SortKey = unit === 'usd' ? 'costUsd' : 'totalTok'@@ -963,20 +1035,20 @@ function RollupTable({ rows, unit, loading, onDrill }: { rows: LlmRollupRow[]; u</button>)- if (loading && rows.length === 0) return <div className="obs-empty">Loading…</div>- if (!loading && rows.length === 0) return <div className="obs-empty">No spend in this window. (Either no traffic, or the ledger hasn’t recorded any calls yet.)</div>+ if (loading && rows.length === 0) return <div className="obs-empty">{t('adminobs.loading')}</div>+ if (!loading && rows.length === 0) return <div className="obs-empty">{t('adminobs.noSpendWindow')}</div>return (<div className="obs-table"><div className="obs-thead">- <div className="obs-th-left">Purpose</div>- <div className="obs-th-left">Model · source</div>- <div>{unit === 'usd' ? head('Cost', 'costUsd') : head('Tokens', 'totalTok')}</div>- <div>{head('Calls', 'calls')}</div>- <div>{head('Input', 'inputTokens')}</div>- <div>{head('Output', 'outputTokens')}</div>- <div>{head('Cache hit', 'cacheHitRate')}</div>- <div>{head('Failed', 'failureRate')}</div>+ <div className="obs-th-left">{t('adminobs.colPurpose')}</div>+ <div className="obs-th-left">{t('adminobs.colModelSource')}</div>+ <div>{unit === 'usd' ? head(t('adminobs.colCost'), 'costUsd') : head(t('adminobs.tokensLabel'), 'totalTok')}</div>+ <div>{head(t('adminobs.colCalls'), 'calls')}</div>+ <div>{head(t('adminobs.colInput'), 'inputTokens')}</div>+ <div>{head(t('adminobs.colOutput'), 'outputTokens')}</div>+ <div>{head(t('adminobs.colCacheHit'), 'cacheHitRate')}</div>+ <div>{head(t('adminobs.colFailed'), 'failureRate')}</div></div>{sorted.map((r, i) => {const m = metaFor(r.purpose)@@ -986,13 +1058,13 @@ function RollupTable({ rows, unit, loading, onDrill }: { rows: LlmRollupRow[]; uclassName="obs-row obs-row-button"key={`${r.purpose}-${r.model}-${r.source}-${i}`}onClick={() => onDrill(r)}- title="Click to see every call in this bucket"+ title={t('adminobs.rollupRowTitle')}><div className="obs-cell-purpose"><span className="obs-dot" style={{ background: m.swatch }} aria-hidden /><div className="obs-cell-purpose-text">- <div className="obs-cell-purpose-label">{m.label}</div>- <div className="obs-cell-purpose-blurb">{m.blurb}</div>+ <div className="obs-cell-purpose-label">{purposeLabel(t, r.purpose)}</div>+ <div className="obs-cell-purpose-blurb">{purposeBlurb(t, r.purpose)}</div></div></div><div className="obs-cell-model">@@ -1003,15 +1075,15 @@ function RollupTable({ rows, unit, loading, onDrill }: { rows: LlmRollupRow[]; ucost on the metered API. The operator's actual bill is aflat subscription. Flagging this on the row keeps the $column honest without hiding the comparable signal. */}- {unit === 'usd' && isByoaSource(r.source) && <span className="obs-meter-flag" title="BYOA spend is meter-equivalent (what these tokens would cost on the metered API) — operator's actual bill is a flat subscription">·meter</span>}- {unit === 'usd' && r.costEstimated && <span className="obs-est-flag" title="Cost computed from a seeded estimate, not an operator-supplied rate">·est</span>}+ {unit === 'usd' && isByoaSource(r.source) && <span className="obs-meter-flag" title={t('adminobs.meterFlagTitle')}>·meter</span>}+ {unit === 'usd' && r.costEstimated && <span className="obs-est-flag" title={t('adminobs.estFlagTitle')}>·est</span>}</div></div><div className="obs-cell-num obs-cell-cost">{unit === 'usd' ? fmtUsd(r.costUsd, r.costUsd < 1 ? 4 : 2) : fmtTokens(r.totalTok)}</div><div className="obs-cell-num">{fmtInt(r.calls)}</div><div className="obs-cell-num">{fmtTokens(r.inputTokens + r.cachedInputTokens)}- {r.cachedInputTokens > 0 && <span className="obs-cell-sub"> · {fmtTokens(r.cachedInputTokens)} cached</span>}+ {r.cachedInputTokens > 0 && <span className="obs-cell-sub"> · {fmtTokens(r.cachedInputTokens)} {t('adminobs.cachedSuffix')}</span>}</div><div className="obs-cell-num">{fmtTokens(r.outputTokens)}</div><div className="obs-cell-num">{r.cacheHitRate > 0 ? fmtPct(r.cacheHitRate, 0) : '—'}</div>@@ -1019,7 +1091,7 @@ function RollupTable({ rows, unit, loading, onDrill }: { rows: LlmRollupRow[]; u{r.failureRate > 0? <span style={{ color: r.failureRate > 0.1 ? 'var(--coral-deep)' : 'var(--ink-700)' }}>{fmtPct(r.failureRate, 1)}</span>: '—'}- {r.rateLimitedCalls > 0 && <span className="obs-cell-sub"> · {r.rateLimitedCalls} rl</span>}+ {r.rateLimitedCalls > 0 && <span className="obs-cell-sub"> · {r.rateLimitedCalls} {t('adminobs.rlSuffix')}</span>}</div></button>)@@ -1043,22 +1115,22 @@ function AgentAvatar({ url, initial, bg, size = 26 }: { url: string | null; init)}-function TopAgentsTable({ rows, unit, loading, onDrill }: { rows: LlmObservabilityPayload['topAgents']; unit: Unit; loading: boolean; onDrill: (r: LlmTopAgentRow) => void }) {+function TopAgentsTable({ rows, unit, loading, onDrill, t }: { rows: LlmObservabilityPayload['topAgents']; unit: Unit; loading: boolean; onDrill: (r: LlmTopAgentRow) => void; t: ReturnType<typeof useT> }) {// Server ranks by $ desc; in token mode re-rank client-side (only ~20 rows)// so the biggest token consumer — not the biggest spender — sits on top.const sorted = useMemo(() => unit === 'usd' ? rows : [...rows].sort((a, b) => totalTokens(b) - totalTokens(a)),[rows, unit],)- if (loading && rows.length === 0) return <div className="obs-empty">Loading…</div>- if (!loading && rows.length === 0) return <div className="obs-empty">No agent-attributed spend in this window.</div>+ if (loading && rows.length === 0) return <div className="obs-empty">{t('adminobs.loading')}</div>+ if (!loading && rows.length === 0) return <div className="obs-empty">{t('adminobs.noAgentSpend')}</div>return (<div className="obs-table obs-table-compact"><div className="obs-thead obs-thead-compact">- <div className="obs-th-left">Agent</div>- <div className="obs-th-left">Company</div>- <div className="obs-th-right">{unit === 'usd' ? 'Cost' : 'Tokens'}</div>- <div className="obs-th-right">Calls</div>+ <div className="obs-th-left">{t('adminobs.colAgent')}</div>+ <div className="obs-th-left">{t('adminobs.colCompany')}</div>+ <div className="obs-th-right">{unit === 'usd' ? t('adminobs.colCost') : t('adminobs.tokensLabel')}</div>+ <div className="obs-th-right">{t('adminobs.colCalls')}</div></div>{sorted.map((r, i) => (<button@@ -1067,7 +1139,7 @@ function TopAgentsTable({ rows, unit, loading, onDrill }: { rows: LlmObservabilikey={`${r.agentId ?? 'anon'}-${i}`}onClick={() => r.agentId && onDrill(r)}disabled={!r.agentId}- title={r.agentId ? "Click to see every call this agent made" : "Anonymous bucket — not drillable"}+ title={r.agentId ? t('adminobs.agentRowTitle') : t('adminobs.agentRowTitleAnon')}><div className="obs-cell-agent">{r.agentId && <AgentAvatar url={r.agentAvatarUrl} initial={r.agentInitial} bg={r.agentAvatarBg} />}@@ -1081,7 +1153,7 @@ function TopAgentsTable({ rows, unit, loading, onDrill }: { rows: LlmObservabili</div><div className="obs-cell-num obs-cell-cost">{unit === 'usd' ? fmtUsd(r.costUsd, r.costUsd < 1 ? 4 : 2) : fmtTokens(totalTokens(r))}- {unit !== 'usd' && r.cachedInputTokens > 0 && <span className="obs-cell-sub"> · {fmtTokens(r.cachedInputTokens)} cached</span>}+ {unit !== 'usd' && r.cachedInputTokens > 0 && <span className="obs-cell-sub"> · {fmtTokens(r.cachedInputTokens)} {t('adminobs.cachedSuffix')}</span>}</div><div className="obs-cell-num">{fmtInt(r.calls)}</div></button>@@ -1102,28 +1174,29 @@ function TopAgentsTable({ rows, unit, loading, onDrill }: { rows: LlmObservabili// "last seen" column shows a relative timestamp so the operator immediately// knows whether a version is still live.-function DaemonVersionTable({ rows, unit, loading }: {+function DaemonVersionTable({ rows, unit, loading, t }: {rows: LlmDaemonVersionRow[]unit: Unitloading: boolean+ t: ReturnType<typeof useT>}) {- if (loading && rows.length === 0) return <div className="obs-empty">Loading…</div>+ if (loading && rows.length === 0) return <div className="obs-empty">{t('adminobs.loading')}</div>if (!loading && rows.length === 0) return (<div className="obs-empty">- No daemon-version data yet. Operators' daemons start populating this once they upgrade to the version that reports it.+ {t('adminobs.noDaemonData')}</div>)return (<div className="obs-table obs-table-daemon"><div className="obs-thead obs-thead-daemon">- <div className="obs-th-left">Version</div>- <div className="obs-th-left">Source</div>- <div className="obs-th-right">Calls</div>- <div className="obs-th-right">{unit === 'usd' ? 'Cost' : 'Tokens'}</div>- <div className="obs-th-right">Cache hit</div>- <div className="obs-th-right">Avg / call</div>- <div className="obs-th-right">Failed</div>- <div className="obs-th-right">Last seen</div>+ <div className="obs-th-left">{t('adminobs.colVersion')}</div>+ <div className="obs-th-left">{t('adminobs.colSource')}</div>+ <div className="obs-th-right">{t('adminobs.colCalls')}</div>+ <div className="obs-th-right">{unit === 'usd' ? t('adminobs.colCost') : t('adminobs.tokensLabel')}</div>+ <div className="obs-th-right">{t('adminobs.colCacheHit')}</div>+ <div className="obs-th-right">{t('adminobs.colAvgCall')}</div>+ <div className="obs-th-right">{t('adminobs.colFailed')}</div>+ <div className="obs-th-right">{t('adminobs.colLastSeen')}</div></div>{rows.map((r, i) => {const totalIn = r.inputTokens + r.cachedInputTokens@@ -1134,7 +1207,7 @@ function DaemonVersionTable({ rows, unit, loading }: {return (<div className="obs-row obs-row-daemon" key={`${r.daemonVersion}-${r.source}-${i}`}><div className="obs-cell-version">- <span className="obs-cell-purpose-label">v{r.daemonVersion}</span>+ <span className="obs-cell-purpose-label">{t('adminobs.versionPrefix', { version: r.daemonVersion })}</span></div><div className="obs-cell-source">{r.source}{isByoaSource(r.source) && <span className="obs-meter-flag">·meter</span>}</div><div className="obs-cell-num">{fmtInt(r.calls)}</div>@@ -1142,7 +1215,7 @@ function DaemonVersionTable({ rows, unit, loading }: {<div className="obs-cell-num">{hitRate != null ? <span className={cacheToneClass(hitRate)}>{fmtPct(hitRate, 1)}</span> : '—'}</div><div className="obs-cell-num">{unit === 'usd' ? fmtUsd(avgCost, 6) : fmtTokens(avgTok)}</div><div className="obs-cell-num">{r.failureRate > 0 ? <span style={{ color: r.failureRate > 0.1 ? 'var(--coral-deep)' : 'var(--ink-700)' }}>{fmtPct(r.failureRate, 1)}</span> : '—'}</div>- <div className="obs-cell-num obs-cell-sub-only" title={new Date(r.lastSeen).toLocaleString()}>{relativeTime(r.lastSeen)}</div>+ <div className="obs-cell-num obs-cell-sub-only" title={new Date(r.lastSeen).toLocaleString()}>{relativeTime(r.lastSeen, t)}</div></div>)})}@@ -1152,14 +1225,14 @@ function DaemonVersionTable({ rows, unit, loading }: {/** Tiny "now-3h" / "2d ago" formatter for the "Last seen" column. The full* timestamp lives in the title attribute. */-function relativeTime(iso: string): string {- const t = new Date(iso).getTime()- if (!Number.isFinite(t)) return '—'- const ms = Date.now() - t- if (ms < 60_000) return `${Math.max(0, Math.floor(ms / 1000))}s ago`- if (ms < 3_600_000) return `${Math.floor(ms / 60_000)}m ago`- if (ms < 86_400_000) return `${Math.floor(ms / 3_600_000)}h ago`- return `${Math.floor(ms / 86_400_000)}d ago`+function relativeTime(iso: string, t: ReturnType<typeof useT>): string {+ const ts = new Date(iso).getTime()+ if (!Number.isFinite(ts)) return '—'+ const ms = Date.now() - ts+ if (ms < 60_000) return t('adminobs.timeAgoSec', { n: Math.max(0, Math.floor(ms / 1000)) })+ if (ms < 3_600_000) return t('adminobs.timeAgoMin', { n: Math.floor(ms / 60_000) })+ if (ms < 86_400_000) return t('adminobs.timeAgoHour', { n: Math.floor(ms / 3_600_000) })+ return t('adminobs.timeAgoDay', { n: Math.floor(ms / 86_400_000) })}// ─── Drill-down panel ────────────────────────────────────────────────────@@ -1178,8 +1251,14 @@ function relativeTime(iso: string): string {// objects from outside refetches but keeps the sort UI sticky.type CallSort = 'cost' | 'latency' | 'hop' | 'created'+const SORT_LABEL: Record<CallSort, MessageKey> = {+ cost: 'adminobs.sortCost',+ latency: 'adminobs.sortLatency',+ hop: 'adminobs.sortHop',+ created: 'adminobs.sortCreated',+}-function DrillPanel({ drill, sinceDays, companyId, unit, refreshSignal, onClose, onJumpToRun, onJumpToAgent }: {+function DrillPanel({ drill, sinceDays, companyId, unit, refreshSignal, onClose, onJumpToRun, onJumpToAgent, t }: {drill: DrillDown | nullsinceDays: number/** Inherits the page's tenant scope so a clicked rollup row stays inside@@ -1192,6 +1271,7 @@ function DrillPanel({ drill, sinceDays, companyId, unit, refreshSignal, onClose,onClose: () => voidonJumpToRun: (runId: string) => voidonJumpToAgent: (agentId: string, agentName: string | null) => void+ t: ReturnType<typeof useT>}) {const [rows, setRows] = useState<LlmCallRow[] | null>(null)const [loading, setLoading] = useState(false)@@ -1229,9 +1309,9 @@ function DrillPanel({ drill, sinceDays, companyId, unit, refreshSignal, onClose,const meta = drill.kind === 'bucket' ? metaFor(drill.purpose) : nullconst title =- drill.kind === 'bucket' ? meta!.label- : drill.kind === 'run' ? 'Run trail'- : drill.kind === 'agent' ? (drill.agentName ?? 'Agent')+ drill.kind === 'bucket' ? purposeLabel(t, drill.purpose)+ : drill.kind === 'run' ? t('adminobs.drillRunTitle')+ : drill.kind === 'agent' ? (drill.agentName ?? t('adminobs.drillAgentTitle')): '—'const subtitle =drill.kind === 'bucket' ? <><span className="obs-mono">{drill.model}</span> · {drill.source}</>@@ -1251,25 +1331,25 @@ function DrillPanel({ drill, sinceDays, companyId, unit, refreshSignal, onClose,<div className="obs-drill-sub">{subtitle}</div></div></div>- <button type="button" className="obs-drill-close" onClick={onClose} aria-label="Close">×</button>+ <button type="button" className="obs-drill-close" onClick={onClose} aria-label={t('adminobs.closeAria')}>×</button></header><div className="obs-drill-sortbar">- <span className="obs-drill-sortbar-label">Sort</span>- {(['cost', 'latency', 'hop', 'created'] as CallSort[]).map((s) => (+ <span className="obs-drill-sortbar-label">{t('adminobs.sortLabel')}</span>+ {(Object.entries(SORT_LABEL) as [CallSort, MessageKey][]).map(([s, labelKey]) => (<buttonkey={s}type="button"className={`obs-pill${sortBy === s ? ' is-active' : ''}`}onClick={() => setSortBy(s)}- >{s}</button>+ >{t(labelKey)}</button>))}</div><div className="obs-drill-body">- {err && <div className="obs-error">Failed to load: {err}</div>}- {loading && !rows && <div className="obs-empty">Loading…</div>}- {rows && rows.length === 0 && <div className="obs-empty">No calls in this window.</div>}+ {err && <div className="obs-error">{t('adminobs.loadFailed', { error: err })}</div>}+ {loading && !rows && <div className="obs-empty">{t('adminobs.loading')}</div>}+ {rows && rows.length === 0 && <div className="obs-empty">{t('adminobs.noCalls')}</div>}{rows && rows.map((c) => (<DrillCallCardkey={c.id}@@ -1277,6 +1357,7 @@ function DrillPanel({ drill, sinceDays, companyId, unit, refreshSignal, onClose,unit={unit}onJumpToRun={onJumpToRun}onJumpToAgent={onJumpToAgent}+ t={t}/>))}</div>@@ -1285,11 +1366,12 @@ function DrillPanel({ drill, sinceDays, companyId, unit, refreshSignal, onClose,)}-function DrillCallCard({ call, unit, onJumpToRun, onJumpToAgent }: {+function DrillCallCard({ call, unit, onJumpToRun, onJumpToAgent, t }: {call: LlmCallRowunit: UnitonJumpToRun: (runId: string) => voidonJumpToAgent: (agentId: string, agentName: string | null) => void+ t: ReturnType<typeof useT>}) {// Cache hit %: cached / (uncached + cached). NaN-safe.const totalIn = call.inputTokens + call.cachedInputTokens@@ -1319,7 +1401,7 @@ function DrillCallCard({ call, unit, onJumpToRun, onJumpToAgent }: {<span className="obs-dot" style={{ background: m.swatch }} aria-hidden /><div className="obs-drill-card-headtext"><div className="obs-drill-card-title">- {m.label}+ {purposeLabel(t, call.purpose)}<span className="obs-drill-card-when">· {new Date(call.createdAt).toLocaleString()}</span></div><div className="obs-drill-card-sub">@@ -1328,8 +1410,8 @@ function DrillCallCard({ call, unit, onJumpToRun, onJumpToAgent }: {{unit === 'usd' && call.costEstimated && <span className="obs-est-flag">·est</span>}{unit === 'usd' && isByoaSource(call.source) && <span className="obs-meter-flag">·meter</span>}{call.daemonVersion && (- <span className="obs-version-flag" title={`Recorded by daemon (npm cumora) version ${call.daemonVersion}`}>- · v{call.daemonVersion}+ <span className="obs-version-flag" title={t('adminobs.daemonVersionTitle', { version: call.daemonVersion })}>+ · {t('adminobs.versionPrefix', { version: call.daemonVersion })}</span>)}<span className={call.status === 'ok' ? '' : 'obs-drill-status-bad'}> · {call.status}</span>@@ -1342,31 +1424,31 @@ function DrillCallCard({ call, unit, onJumpToRun, onJumpToAgent }: {(hop index → tool calls → output mix → compaction diagnostic), sothe eye scans the bottleneck first. */}<div className="obs-drill-chips">- {hopIndex != null && <Chip label="hop" value={`#${hopIndex}`} />}- {toolUses != null && <Chip label="tools" value={fmtInt(toolUses)} />}- {textChars != null && <Chip label="text" value={`${fmtInt(textChars)}c`} />}- {compressionRatio && <Chip label="compress" value={`${compressionRatio}×`} title="inputTokensBefore / outputTokens" />}- {itemsDropped != null && <Chip label="dropped" value={fmtInt(itemsDropped)} />}- {call.latencyMs && call.latencyMs > 0 && <Chip label="latency" value={`${(call.latencyMs / 1000).toFixed(1)}s`} />}+ {hopIndex != null && <Chip label={t('adminobs.chipHop')} value={`#${hopIndex}`} />}+ {toolUses != null && <Chip label={t('adminobs.chipTools')} value={fmtInt(toolUses)} />}+ {textChars != null && <Chip label={t('adminobs.chipText')} value={`${fmtInt(textChars)}c`} />}+ {compressionRatio && <Chip label={t('adminobs.chipCompress')} value={`${compressionRatio}×`} title={t('adminobs.compressTitle')} />}+ {itemsDropped != null && <Chip label={t('adminobs.chipDropped')} value={fmtInt(itemsDropped)} />}+ {call.latencyMs && call.latencyMs > 0 && <Chip label={t('adminobs.chipLatency')} value={`${(call.latencyMs / 1000).toFixed(1)}s`} />}</div><div className="obs-drill-numgrid">- <NumCell label="input" value={fmtTokens(call.inputTokens)} />- <NumCell label="cached" value={fmtTokens(call.cachedInputTokens)} hint={cacheHit != null ? fmtPct(cacheHit, 0) : undefined} />- <NumCell label="output" value={fmtTokens(call.outputTokens)} />- <NumCell label="reasoning" value={call.reasoningTokens > 0 ? fmtTokens(call.reasoningTokens) : '—'} />+ <NumCell label={t('adminobs.cellInput')} value={fmtTokens(call.inputTokens)} />+ <NumCell label={t('adminobs.cellCached')} value={fmtTokens(call.cachedInputTokens)} hint={cacheHit != null ? fmtPct(cacheHit, 0) : undefined} />+ <NumCell label={t('adminobs.cellOutput')} value={fmtTokens(call.outputTokens)} />+ <NumCell label={t('adminobs.cellReasoning')} value={call.reasoningTokens > 0 ? fmtTokens(call.reasoningTokens) : '—'} /></div>{call.error && (<div className="obs-drill-err">- <div className="obs-drill-err-label">error</div>+ <div className="obs-drill-err-label">{t('adminobs.errorLabel')}</div><div className="obs-drill-err-body">{call.error}</div></div>)}{otherExtras.length > 0 && (<details className="obs-drill-rawextras">- <summary>extras ({otherExtras.length})</summary>+ <summary>{t('adminobs.extrasLabel', { n: otherExtras.length })}</summary><dl>{otherExtras.map(([k, v]) => (<div key={k} className="obs-drill-kv">@@ -1381,12 +1463,12 @@ function DrillCallCard({ call, unit, onJumpToRun, onJumpToAgent }: {<footer className="obs-drill-card-foot">{call.runId && (<button type="button" className="obs-drill-link" onClick={() => onJumpToRun(call.runId!)}>- run trail <span className="obs-mono">{call.runId.slice(0, 8)}…</span>+ {t('adminobs.runTrailLabel', { id: call.runId.slice(0, 8) + '…' })}</button>)}{call.agentId && (<button type="button" className="obs-drill-link" onClick={() => onJumpToAgent(call.agentId!, call.agentName)}>- agent {call.agentName ?? <span className="obs-mono">{call.agentId.slice(0, 8)}…</span>}+ {call.agentName ?? t('adminobs.agentLabel', { name: call.agentId.slice(0, 8) + '…' })}</button>)}</footer>@@ -1426,12 +1508,14 @@ function NumCell({ label, value, hint }: { label: string; value: string; hint?:// the operator types to filter). Options are cost/token-ranked with the spend// in the right-aligned `hint`, "All accounts" first.-function TenantPicker({ tenants, value, unit, onChange }: {+function TenantPicker({ tenants, value, unit, onChange, t }: {tenants: LlmTenantRow[]value: stringunit: UnitonChange: (companyId: string) => void+ t: ReturnType<typeof useT>}) {+ const locale = useLocale()// Stable label per tenant so a partially-resolved companies join doesn't// surface bare ids in the picker. Format: "Name · $cost" / "Name · NtokT"// depending on the active unit; falls back to the company id when unnamed.@@ -1443,7 +1527,7 @@ function TenantPicker({ tenants, value, unit, onChange }: {const sorted = [...tenants].sort((a, b) =>unit === 'usd' ? b.costUsd - a.costUsd : totalTokens(b) - totalTokens(a))return [- { value: '', label: `All accounts (${tenants.length})` },+ { value: '', label: t('adminobs.allAccountsCount', { n: tenants.length }) },// amount goes in `hint` (right-aligned, never truncated) so the per-tenant// spend stays visible even when the workspace name is long — the label// truncates, the number doesn't.@@ -1453,15 +1537,17 @@ function TenantPicker({ tenants, value, unit, onChange }: {hint: fmtAmount(unit, t.costUsd, totalTokens(t)),})),]- }, [tenants, unit])+ // locale in the deps so the baked-in "All accounts" label re-renders+ // on a language switch (t itself is identity-unstable, locale is not).+ }, [tenants, unit, locale])return (<Comboboxvalue={value}onValueChange={onChange}options={options}- ariaLabel="Filter by tenant"- placeholder="All accounts"- searchPlaceholder="Search workspaces…"+ ariaLabel={tLabel(t, 'adminobs.tenantFilterAria', 'Filter by tenant')}+ placeholder={t('adminobs.allAccountsLabel')}+ searchPlaceholder={t('adminobs.searchWorkspaces')}className="w-[320px]"/>)diff --git a/src/admin/Pager.tsx b/src/admin/Pager.tsxindex fa697b3..6882d34 100644--- a/src/admin/Pager.tsx+++ b/src/admin/Pager.tsx@@ -3,6 +3,8 @@* offset terms (0-based). Renders first/last + a window around the current* page with ellipses, plus Prev/Next. Hidden when there's only one page.*/+import { useT } from '@/lib/i18n'+export function Pager({ total, pageSize, offset, loading, onPage }: {total: numberpageSize: number@@ -11,6 +13,7 @@ export function Pager({ total, pageSize, offset, loading, onPage }: {/** called with the new offset to load */onPage: (offset: number) => void}) {+ const t = useT()const pages = Math.max(1, Math.ceil(total / pageSize))if (pages <= 1) return nullconst current = Math.floor(offset / pageSize)@@ -36,9 +39,9 @@ export function Pager({ total, pageSize, offset, loading, onPage }: {return (<div className="admin-pager">- <span>{offset + 1}–{Math.min(offset + pageSize, total)} of {total}</span>+ <span>{t('adminPager.range', { from: offset + 1, to: Math.min(offset + pageSize, total), total })}</span><div className="admin-pager-btns">- <button className="btn-ghost" disabled={current === 0 || loading} onClick={() => go(current - 1)}>Prev</button>+ <button className="btn-ghost" disabled={current === 0 || loading} onClick={() => go(current - 1)}>{t('adminPager.prev')}</button>{cells.map((c, i) => c === 'gap'? <span key={`gap-${i}`} className="admin-pager-ellipsis">…</span>: (@@ -52,7 +55,7 @@ export function Pager({ total, pageSize, offset, loading, onPage }: {{c + 1}</button>))}- <button className="btn-ghost" disabled={current >= pages - 1 || loading} onClick={() => go(current + 1)}>Next</button>+ <button className="btn-ghost" disabled={current >= pages - 1 || loading} onClick={() => go(current + 1)}>{t('adminPager.next')}</button></div></div>)diff --git a/src/admin/SettingsPage.tsx b/src/admin/SettingsPage.tsxindex 6c67e36..9c6167e 100644--- a/src/admin/SettingsPage.tsx+++ b/src/admin/SettingsPage.tsx@@ -4,9 +4,11 @@* a fast double-click doesn't race the server.*/import { useEffect, useState } from 'react'+import { useT } from '@/lib/i18n'import { adminApi, type AdminSettings } from './api'export function SettingsPage() {+ const t = useT()const [s, setS] = useState<AdminSettings | null>(null)const [busyKey, setBusyKey] = useState<keyof AdminSettings | null>(null)const [err, setErr] = useState<string | null>(null)@@ -32,8 +34,8 @@ export function SettingsPage() {<div className="admin-page"><header className="admin-page-head"><div>- <h1 className="admin-h1">Settings</h1>- <div className="admin-sub">Global toggles. Changes apply instantly.</div>+ <h1 className="admin-h1">{t('adminSettings.title')}</h1>+ <div className="admin-sub">{t('adminSettings.sub')}</div></div></header>@@ -41,16 +43,16 @@ export function SettingsPage() {<div className="admin-settings"><SettingRow- title="Waitlist"- desc="When ON, new OAuth signups land on the waitlist instead of creating an account. Existing users sign in normally. Bootstrap admins (env allow-list) bypass the gate."+ title={t('adminSettings.waitlistTitle')}+ desc={t('adminSettings.waitlistDesc')}on={!!s?.waitlist_enabled}busy={busyKey === 'waitlist_enabled'}disabled={!s}onToggle={() => void flip('waitlist_enabled')}/><SettingRow- title="Signups paused"- desc="When ON, the waitlist itself also stops accepting new entries — useful for emergencies (LLM bill spike, prod incident). Existing waitlist entries can still be approved."+ title={t('adminSettings.signupsPausedTitle')}+ desc={t('adminSettings.signupsPausedDesc')}on={!!s?.signups_paused}busy={busyKey === 'signups_paused'}disabled={!s}diff --git a/src/admin/SuspendedScreen.tsx b/src/admin/SuspendedScreen.tsxindex a160c8d..1f952ed 100644--- a/src/admin/SuspendedScreen.tsx+++ b/src/admin/SuspendedScreen.tsx@@ -14,6 +14,7 @@* the next time they try to sign in.*/import { useState } from 'react'+import { useT } from '@/lib/i18n'interface CarriedSuspension { email: string | null; reason: string | null }@@ -29,6 +30,7 @@ export function consumeSuspendedFragment(): CarriedSuspension | null {}export function SuspendedScreen({ email, reason }: { email: string | null; reason: string | null }) {+ const t = useT()const [dismissed, setDismissed] = useState(false)if (dismissed) {// Falling out of the screen reloads → AuthGate decides what to render@@ -37,27 +39,39 @@ export function SuspendedScreen({ email, reason }: { email: string | null; reasolocation.reload()return null}+ const displayEmail = email ?? t('waitlist.suspendedEmailFallback')return (<div className="cumora-waitlist-screen"><div className="cumora-waitlist-card"><div className="cumora-waitlist-emoji" aria-hidden>🔒</div>- <div className="cumora-waitlist-title">Your account is suspended</div>+ <div className="cumora-waitlist-title">{t('waitlist.suspendedTitle')}</div><div className="cumora-waitlist-sub" style={{ marginBottom: reason ? 16 : 24 }}>- Access for <span className="cumora-waitlist-email">{email ?? 'your account'}</span> has been- temporarily disabled by a Cumora administrator.+ {(() => {+ // Split the translated body around the {email} placeholder so+ // we can wrap the rendered address in a styled <b> without+ // resorting to dangerouslySetInnerHTML.+ const rendered = t('waitlist.suspendedBody', { email: displayEmail })+ const parts = rendered.split(displayEmail)+ return (+ <>+ {parts[0]}+ <b className="cumora-waitlist-email">{displayEmail}</b>+ {parts.slice(1).join(displayEmail)}+ </>+ )+ })()}</div>{reason ? (<div className="cumora-suspended-reason" role="note">- <div className="cumora-suspended-reason-label">Reason from the admin</div>+ <div className="cumora-suspended-reason-label">{t('waitlist.suspendedReasonLabel')}</div><div className="cumora-suspended-reason-body">{reason}</div></div>) : null}<div className="cumora-waitlist-sub" style={{ marginTop: 16, marginBottom: 24 }}>- If you think this is a mistake, reply to your most recent message from us, or- reach out to your workspace owner.+ {t('waitlist.suspendedFooter')}</div><button className="btn-ghost" onClick={() => setDismissed(true)}>- Done+ {t('waitlist.suspendedDone')}</button></div></div>diff --git a/src/admin/UsersPage.tsx b/src/admin/UsersPage.tsxindex b189683..3534b97 100644--- a/src/admin/UsersPage.tsx+++ b/src/admin/UsersPage.tsx@@ -6,10 +6,12 @@ import { useCallback, useEffect, useState } from 'react'import { adminApi, type AdminUser, type AdminUserDetail, type AdminStats, type Tier } from './api'import { Pager } from './Pager'import { useAuth } from '@/stores/auth'+import { useT } from '@/lib/i18n'const PAGE = 50export function UsersPage({ stats }: { stats: AdminStats | null }) {+ const t = useT()const meId = useAuth((s) => s.user?.id ?? null)const [q, setQ] = useState('')const [tier, setTier] = useState<Tier | ''>('')@@ -42,25 +44,31 @@ export function UsersPage({ stats }: { stats: AdminStats | null }) {try {const updated = await adminApi.patchUser(u.id, { tier: next })setItems((rows) => rows.map((r) => (r.id === u.id ? updated : r)))- } catch (e) { alert(`tier update failed: ${e instanceof Error ? e.message : e}`) }+ } catch (e) {+ const msg = e instanceof Error ? e.message : String(e)+ alert(t('users.tierUpdateFailed', { error: msg }))+ }}const onAdminToggle = async (u: AdminUser) => {if (u.id === meId && u.isAdmin) {- alert("You can't remove your own admin bit.")+ alert(t('users.cantRemoveOwnAdmin'))return}try {const updated = await adminApi.patchUser(u.id, { isAdmin: !u.isAdmin })setItems((rows) => rows.map((r) => (r.id === u.id ? updated : r)))- } catch (e) { alert(`admin toggle failed: ${e instanceof Error ? e.message : e}`) }+ } catch (e) {+ const msg = e instanceof Error ? e.message : String(e)+ alert(t('users.adminToggleFailed', { error: msg }))+ }}/** Suspend / unsuspend. The server enforces "can't suspend self" too —* this client-side guard just spares the operator the round-trip + alert. */const onSuspendToggle = async (u: AdminUser): Promise<AdminUser | null> => {if (u.id === meId && !u.suspended) {- alert("You can't suspend yourself.")+ alert(t('users.cantSuspendSelf'))return null}try {@@ -73,17 +81,15 @@ export function UsersPage({ stats }: { stats: AdminStats | null }) {// suspended screen so it helps to be specific. Cancelling the// prompt aborts the action entirely. Empty string OK (means// "no reason given").- const reason = window.prompt(- `Suspend ${u.name} (${u.email})?\n\nOptional reason — shown to the user on the lockout screen:`,- '',- )+ const reason = window.prompt(t('users.suspendPrompt', { name: u.name, email: u.email }), '')if (reason === null) return nullconst trimmed = reason.trim()const updated = await adminApi.suspendUser(u.id, trimmed || null)setItems((rows) => rows.map((r) => (r.id === u.id ? updated : r)))return updated} catch (e) {- alert(`suspension toggle failed: ${e instanceof Error ? e.message : e}`)+ const msg = e instanceof Error ? e.message : String(e)+ alert(t('users.suspendFailed', { error: msg }))return null}}@@ -92,23 +98,23 @@ export function UsersPage({ stats }: { stats: AdminStats | null }) {<div className="admin-page"><header className="admin-page-head"><div>- <h1 className="admin-h1">Users</h1>+ <h1 className="admin-h1">{t('users.title')}</h1><div className="admin-sub">{stats- ? <>{stats.users.total} total · {stats.users.admins} admin · {stats.users.tiers.free} free · {stats.users.tiers.pro} pro · {stats.users.tiers.max} max</>+ ? t('users.statsSummary', { total: stats.users.total, admins: stats.users.admins, free: stats.users.tiers.free, pro: stats.users.tiers.pro, max: stats.users.tiers.max }): <> </>}</div></div><div className="admin-filters"><input- type="search" placeholder="email or name" className="admin-input"+ type="search" placeholder={t('users.searchPh')} className="admin-input"value={q} onChange={(e) => setQ(e.target.value)}/><select className="admin-select" value={tier} onChange={(e) => setTier(e.target.value as Tier | '')}>- <option value="">All tiers</option>- <option value="free">Free</option>- <option value="pro">Pro</option>- <option value="max">Max</option>+ <option value="">{t('users.allTiers')}</option>+ <option value="free">{t('users.tierFree')}</option>+ <option value="pro">{t('users.tierPro')}</option>+ <option value="max">{t('users.tierMax')}</option></select></div></header>@@ -117,15 +123,15 @@ export function UsersPage({ stats }: { stats: AdminStats | null }) {<div className="admin-table"><div className="admin-thead">- <div>User</div>- <div>Tier</div>- <div>Admin</div>- <div>Companies</div>- <div>Joined</div>- <div>Last login</div>+ <div>{t('users.colUser')}</div>+ <div>{t('users.colTier')}</div>+ <div>{t('users.colAdmin')}</div>+ <div>{t('users.colCompanies')}</div>+ <div>{t('users.colJoined')}</div>+ <div>{t('users.colLastLogin')}</div></div>- {loading && items.length === 0 && <div className="admin-row admin-empty">Loading…</div>}- {!loading && items.length === 0 && <div className="admin-row admin-empty">No users match.</div>}+ {loading && items.length === 0 && <div className="admin-row admin-empty">{t('users.loadingDetails')}</div>}+ {!loading && items.length === 0 && <div className="admin-row admin-empty">{t('users.noUsers')}</div>}{items.map((u) => (<UserRowkey={u.id} u={u} expanded={expandedId === u.id}@@ -154,14 +160,21 @@ function UserRow({ u, expanded, onToggleExpand, onTierChange, onAdminToggle, onS}) {const [detail, setDetail] = useState<AdminUserDetail | null>(null)const [loadingDetail, setLoadingDetail] = useState(false)+ const t = useT()useEffect(() => {if (!expanded || detail) returnsetLoadingDetail(true)adminApi.getUser(u.id).then(setDetail)- .catch((e) => alert(`load failed: ${e instanceof Error ? e.message : e}`))+ .catch((e) => {+ const msg = e instanceof Error ? e.message : String(e)+ alert(t('users.loadFailed', { error: msg }))+ }).finally(() => setLoadingDetail(false))+ // `t` is deliberately NOT a dependency: useT returns a fresh closure+ // every render, and this effect must not re-fetch on unrelated+ // re-renders.}, [expanded, detail, u.id])// Detail drawer's suspend action — keep the AdminUserDetail snapshot in@@ -182,52 +195,52 @@ function UserRow({ u, expanded, onToggleExpand, onTierChange, onAdminToggle, onS<div className="admin-cell-user-text"><div className="admin-cell-user-name">{u.name}- {isMe && <span className="admin-pill admin-pill-soft" style={{ marginLeft: 8 }}>you</span>}- {u.suspended && <span className="admin-pill admin-pill-warn" style={{ marginLeft: 8 }}>suspended</span>}+ {isMe && <span className="admin-pill admin-pill-soft" style={{ marginLeft: 8 }}>{t('users.youBadge')}</span>}+ {u.suspended && <span className="admin-pill admin-pill-warn" style={{ marginLeft: 8 }}>{t('users.suspendedBadge')}</span>}</div><div className="admin-cell-user-email">{u.email}</div></div></div>- <div onClick={(e) => e.stopPropagation()} data-label="Tier">+ <div onClick={(e) => e.stopPropagation()} data-label={t('users.colTier')}><select className="admin-select admin-select-sm"value={u.tier} onChange={(e) => onTierChange(e.target.value as Tier)}>- <option value="free">Free</option>- <option value="pro">Pro</option>- <option value="max">Max</option>+ <option value="free">{t('users.tierFree')}</option>+ <option value="pro">{t('users.tierPro')}</option>+ <option value="max">{t('users.tierMax')}</option></select></div>- <div onClick={(e) => e.stopPropagation()} data-label="Admin">+ <div onClick={(e) => e.stopPropagation()} data-label={t('users.colAdmin')}><buttonclassName={`admin-toggle ${u.isAdmin ? 'is-on' : ''}`}onClick={onAdminToggle}disabled={isMe && u.isAdmin}- title={isMe && u.isAdmin ? "Can't remove your own admin" : ''}+ title={isMe && u.isAdmin ? t('users.cantRemoveOwnAdminTitle') : ''}>- {u.isAdmin ? 'admin' : '—'}+ {u.isAdmin ? t('users.adminBadge') : '—'}</button></div>- <div data-label="Companies">{u.companyCount}</div>- <div className="admin-cell-mono" data-label="Joined">{fmtDate(u.createdAt)}</div>- <div className="admin-cell-mono" data-label="Last login">{u.lastLoginAt ? fmtDate(u.lastLoginAt) : '—'}</div>+ <div data-label={t('users.colCompanies')}>{u.companyCount}</div>+ <div className="admin-cell-mono" data-label={t('users.colJoined')}>{fmtDate(u.createdAt)}</div>+ <div className="admin-cell-mono" data-label={t('users.colLastLogin')}>{u.lastLoginAt ? fmtDate(u.lastLoginAt) : '—'}</div></div>{expanded && (<div className="admin-row-detail">- {loadingDetail && <div className="admin-empty">Loading details…</div>}+ {loadingDetail && <div className="admin-empty">{t('users.loadingDetails')}</div>}{detail && (<div className="admin-detail-grid">- <DetailField label="User ID" value={detail.id} mono />- <DetailField label="sub2api ID" value={detail.sub2apiUserId ? String(detail.sub2apiUserId) : '—'} mono />- <DetailField label="Created" value={fmtDateTime(detail.createdAt)} mono />- <DetailField label="Last login" value={detail.lastLoginAt ? fmtDateTime(detail.lastLoginAt) : '—'} mono />+ <DetailField label={t('users.userId')} value={detail.id} mono />+ <DetailField label={t('users.sub2apiId')} value={detail.sub2apiUserId ? String(detail.sub2apiUserId) : '—'} mono />+ <DetailField label={t('users.created')} value={fmtDateTime(detail.createdAt)} mono />+ <DetailField label={t('users.colLastLogin')} value={detail.lastLoginAt ? fmtDateTime(detail.lastLoginAt) : '—'} mono />{/* Suspension card — only shown when the row IS suspended. Wesurface the reason, who suspended them, and when, so theoperator has all the context before deciding to unsuspend. */}{detail.suspended && (<div className="admin-detail-suspended">- <div className="admin-detail-label">Suspended</div>+ <div className="admin-detail-label">{t('users.suspendedLabel')}</div><div className="admin-detail-suspended-meta">{detail.suspendedAt ? fmtDateTime(detail.suspendedAt) : '—'}- {detail.suspendedBy ? <> · by <span className="admin-cell-mono">{detail.suspendedBy}</span></> : null}+ {detail.suspendedBy ? <> · {t('users.suspendedBy')} <span className="admin-cell-mono">{detail.suspendedBy}</span></> : null}</div>{detail.suspensionReason && (<div className="admin-detail-suspended-reason">{detail.suspensionReason}</div>@@ -239,21 +252,21 @@ function UserRow({ u, expanded, onToggleExpand, onTierChange, onAdminToggle, onSclassName={`btn-ghost ${detail.suspended ? '' : 'admin-btn-danger'}`}onClick={handleSuspendClick}disabled={isMe && !detail.suspended}- title={isMe && !detail.suspended ? "You can't suspend yourself" : ''}+ title={isMe && !detail.suspended ? t('users.cantSuspendSelfTitle') : ''}>- {detail.suspended ? 'Unsuspend' : 'Suspend account'}+ {detail.suspended ? t('users.unsuspend') : t('users.suspendAccount')}</button></div><div className="admin-detail-companies">- <div className="admin-detail-label">Companies ({detail.companies.length})</div>- {detail.companies.length === 0 && <div className="admin-empty">No companies.</div>}+ <div className="admin-detail-label">{t('users.companiesCount', { count: detail.companies.length })}</div>+ {detail.companies.length === 0 && <div className="admin-empty">{t('users.noCompanies')}</div>}{detail.companies.map((c) => (<div key={c.id} className="admin-detail-company"><div><div style={{ fontWeight: 600 }}>{c.name}</div>- <div className="admin-cell-user-email">{c.slug} · {c.role}</div>+ <div className="admin-cell-user-email">{t('users.companySlugRole', { slug: c.slug, role: c.role })}</div></div>- <div className="admin-cell-mono">{c.agentCount} agents</div>+ <div className="admin-cell-mono">{t('users.agentCount', { count: c.agentCount })}</div></div>))}</div>diff --git a/src/admin/WaitlistConfirmedScreen.tsx b/src/admin/WaitlistConfirmedScreen.tsxindex ee8d1e3..e9686a6 100644--- a/src/admin/WaitlistConfirmedScreen.tsx+++ b/src/admin/WaitlistConfirmedScreen.tsx@@ -8,6 +8,7 @@*/import { useState } from 'react'import { GetDesktopAppLink } from '@/components/GetDesktopAppLink'+import { useT } from '@/lib/i18n'interface CarriedWaitlist { email: string | null }@@ -32,6 +33,7 @@ export function consumeWaitlistFragment(): CarriedWaitlist | null {}export function WaitlistConfirmedScreen({ email }: { email: string | null }) {+ const t = useT()const [dismissed, setDismissed] = useState(false)if (dismissed) {// Falling out of the screen reloads → AuthGate decides what to render@@ -39,20 +41,32 @@ export function WaitlistConfirmedScreen({ email }: { email: string | null }) {location.reload()return null}+ const displayEmail = email ?? t('waitlist.confirmedEmailFallback')+ // Render the body around the {email} placeholder so we can wrap the+ // rendered address in a styled <span> without resorting to+ // dangerouslySetInnerHTML. Same split() trick as SuspendedScreen.+ const body = t('waitlist.confirmedBody', { email: displayEmail })+ const bodyParts = body.split(displayEmail)+ // Footer also has a {link} placeholder — we pass a NUL marker so the+ // rendered string contains a unique token we can split on, then slot+ // the real <GetDesktopAppLink> in between the two halves.+ const footer = t('waitlist.confirmedFooter', { link: '\u0000' })+ const footerParts = footer.split('\u0000')return (<div className="cumora-waitlist-screen"><div className="cumora-waitlist-card"><div className="cumora-waitlist-emoji">⏳</div>- <div className="cumora-waitlist-title">You're on the waitlist</div>+ <div className="cumora-waitlist-title">{t('waitlist.confirmedTitle')}</div><div className="cumora-waitlist-sub" style={{ marginBottom: 18 }}>- We saved <span className="cumora-waitlist-email">{email ?? 'your email'}</span> and will let you know- the moment your account is ready. No further action needed.+ {bodyParts[0]}+ <span className="cumora-waitlist-email">{displayEmail}</span>+ {bodyParts.slice(1).join(displayEmail)}</div><div style={{ marginBottom: 24, fontSize: 12.5, color: 'var(--ink-400)', fontStyle: 'italic' }}>- Want to get a head start? <GetDesktopAppLink variant="text" /> — you'll be one click from your workspace the second you're approved.+ {footerParts[0]}<GetDesktopAppLink variant="text" />{footerParts.slice(1).join('\u0000')}</div><button className="btn-ghost" onClick={() => setDismissed(true)}>- Done+ {t('waitlist.confirmedDone')}</button></div></div>diff --git a/src/admin/WaitlistPage.tsx b/src/admin/WaitlistPage.tsxindex 759ea5e..b32d909 100644--- a/src/admin/WaitlistPage.tsx+++ b/src/admin/WaitlistPage.tsx@@ -6,12 +6,14 @@import { useCallback, useEffect, useState } from 'react'import { adminApi, type AdminWaitlistEntry } from './api'import { Pager } from './Pager'+import { useT } from '@/lib/i18n'type Tab = 'pending' | 'approved' | 'rejected'const PAGE = 50export function WaitlistPage({ onChanged }: { onChanged: () => void }) {+ const t = useT()const [tab, setTab] = useState<Tab>('pending')const [q, setQ] = useState('')const [items, setItems] = useState<AdminWaitlistEntry[]>([])@@ -32,26 +34,26 @@ export function WaitlistPage({ onChanged }: { onChanged: () => void }) {}, [tab, q])useEffect(() => {- const t = setTimeout(() => { void load(0) }, q ? 250 : 0)- return () => clearTimeout(t)+ const debounce = setTimeout(() => { void load(0) }, q ? 250 : 0)+ return () => clearTimeout(debounce)}, [q, tab, load])const approve = async (entry: AdminWaitlistEntry) => {if (busyId) return- if (!confirm(`Approve ${entry.email}?\nThis creates a real user + workspace + sub2api account.`)) return+ if (!confirm(t('waitlist.approveConfirm', { email: entry.email }))) returnsetBusyId(entry.id)try {await adminApi.approveWaitlist(entry.id)await load(offset)onChanged()} catch (e) {- alert(`approve failed: ${e instanceof Error ? e.message : e}`)+ alert(t('waitlist.approveFail', { err: e instanceof Error ? e.message : String(e) }))} finally { setBusyId(null) }}const reject = async (entry: AdminWaitlistEntry) => {if (busyId) return- const note = prompt(`Reject ${entry.email}? Optional note:`, '')+ const note = prompt(t('waitlist.rejectPrompt', { email: entry.email }), '')if (note === null) returnsetBusyId(entry.id)try {@@ -59,7 +61,7 @@ export function WaitlistPage({ onChanged }: { onChanged: () => void }) {await load(offset)onChanged()} catch (e) {- alert(`reject failed: ${e instanceof Error ? e.message : e}`)+ alert(t('waitlist.rejectFail', { err: e instanceof Error ? e.message : String(e) }))} finally { setBusyId(null) }}@@ -67,15 +69,15 @@ export function WaitlistPage({ onChanged }: { onChanged: () => void }) {<div className="admin-page"><header className="admin-page-head"><div>- <h1 className="admin-h1">Waitlist</h1>+ <h1 className="admin-h1">{t('waitlist.pageTitle')}</h1><div className="admin-sub">- Decide who gets in. Approve provisions the account end-to-end.+ {t('waitlist.pageSub')}</div></div><div className="admin-filters"><inputtype="search"- placeholder="email, name, provider, note"+ placeholder={t('waitlist.searchPh')}className="admin-input"value={q}onChange={(e) => setQ(e.target.value)}@@ -84,12 +86,12 @@ export function WaitlistPage({ onChanged }: { onChanged: () => void }) {</header><div className="admin-tabs">- {(['pending', 'approved', 'rejected'] as Tab[]).map((t) => (- <button key={t}- className={`admin-tab${tab === t ? ' is-active' : ''}`}- onClick={() => setTab(t)}+ {(['pending', 'approved', 'rejected'] as Tab[]).map((tabKey) => (+ <button key={tabKey}+ className={`admin-tab${tab === tabKey ? ' is-active' : ''}`}+ onClick={() => setTab(tabKey)}>- {t}+ {t(tabKey === 'pending' ? 'waitlist.tabPending' : tabKey === 'approved' ? 'waitlist.tabApproved' : 'waitlist.tabRejected')}</button>))}</div>@@ -98,18 +100,18 @@ export function WaitlistPage({ onChanged }: { onChanged: () => void }) {<div className="admin-table"><div className="admin-thead admin-thead-waitlist">- <div>User</div>- <div>Provider</div>- <div>Requested</div>- <div>Decided</div>- <div>Actions</div>+ <div>{t('waitlist.colUser')}</div>+ <div>{t('waitlist.colProvider')}</div>+ <div>{t('waitlist.colRequested')}</div>+ <div>{t('waitlist.colDecided')}</div>+ <div>{t('waitlist.colActions')}</div></div>- {loading && items.length === 0 && <div className="admin-row admin-empty">Loading…</div>}+ {loading && items.length === 0 && <div className="admin-row admin-empty">{t('waitlist.loading')}</div>}{!loading && items.length === 0 && (<div className="admin-row admin-empty">{q- ? `No ${tab} entries match.`- : tab === 'pending' ? 'No pending requests.' : `No ${tab} entries.`}+ ? t('waitlist.noEntriesMatch', { tab: t(tab === 'pending' ? 'waitlist.tabPending' : tab === 'approved' ? 'waitlist.tabApproved' : 'waitlist.tabRejected').toLowerCase() })+ : tab === 'pending' ? t('waitlist.noPending') : t('waitlist.noEntries', { tab: t(tab === 'approved' ? 'waitlist.tabApproved' : 'waitlist.tabRejected').toLowerCase() })}</div>)}{items.map((entry) => (@@ -119,15 +121,15 @@ export function WaitlistPage({ onChanged }: { onChanged: () => void }) {<div className="admin-cell-user-text"><div className="admin-cell-user-name">{entry.displayName}</div><div className="admin-cell-user-email">{entry.email}</div>- {entry.note && <div className="admin-note">note: {entry.note}</div>}+ {entry.note && <div className="admin-note">{t('waitlist.notePrefix', { note: entry.note })}</div>}</div></div>- <div data-label="Provider">+ <div data-label={t('waitlist.colProvider')}><span className={`admin-pill admin-pill-${entry.provider}`}>{entry.provider}</span></div>- <div className="admin-cell-mono" data-label="Requested">{fmtDateTime(entry.requestedAt)}</div>- <div className="admin-cell-mono" data-label="Decided">- {entry.decidedAt ? fmtDateTime(entry.decidedAt) : '—'}+ <div className="admin-cell-mono" data-label={t('waitlist.colRequested')}>{fmtDateTime(entry.requestedAt)}</div>+ <div className="admin-cell-mono" data-label={t('waitlist.colDecided')}>+ {entry.decidedAt ? fmtDateTime(entry.decidedAt) : '\u2014'}</div><div className="admin-row-actions">{tab === 'pending' ? (@@ -136,13 +138,13 @@ export function WaitlistPage({ onChanged }: { onChanged: () => void }) {disabled={busyId === entry.id}onClick={() => approve(entry)}>- {busyId === entry.id ? '…' : 'Approve'}+ {busyId === entry.id ? t('waitlist.approveBusy') : t('waitlist.approve')}</button><button className="btn-ghost"disabled={busyId === entry.id}onClick={() => reject(entry)}>- Reject+ {t('waitlist.reject')}</button></>) : (diff --git a/src/components/AgentEditor.tsx b/src/components/AgentEditor.tsxindex 5246606..d36b74d 100644--- a/src/components/AgentEditor.tsx+++ b/src/components/AgentEditor.tsx@@ -9,6 +9,7 @@ import { Input } from '@/components/Input'import { TextArea } from '@/components/TextArea'import { Select } from '@/components/Select'import type { Participant, EngineId } from '@/types'+import { useT } from '@/lib/i18n'const PALETTE = ['#FFB088', '#FFD9D2', '#FFB7AF', '#F4B740',@@ -23,6 +24,7 @@ interface Props {}export function AgentEditor({ agent, onClose }: Props) {+ const t = useT()const editing = agent !== nullconst [name, setName] = useState(agent?.name ?? '')const [role, setRole] = useState(agent?.role ?? '')@@ -184,69 +186,69 @@ export function AgentEditor({ agent, onClose }: Props) {</div><div className="flex-1"><h2 className="font-display font-medium text-[20px] tracking-tight">- {editing ? `Edit ${agent!.name}` : 'New agent'}+ {editing ? t('agent.editAgent', { name: agent!.name }) : t('agent.newAgent')}</h2><div className="text-[12.5px] text-ink-500 italic font-display">- {editing ? 'Tweak how this teammate behaves.' : 'Define a new teammate from scratch.'}+ {editing ? t('agent.editSubtitle') : t('agent.newSubtitle')}</div></div><buttononClick={onClose}className="w-8 h-8 rounded-full grid place-items-center text-ink-500 hover:bg-sky2-50 hover:text-ink-900 transition"- aria-label="Close"+ aria-label={t('common.close')}>×</button></div><div className="px-6 py-5 space-y-4 overflow-y-auto flex-1 min-h-0">- <Field label="Name" hint="What teammates call them. The handle (@-mention id) is derived from this automatically.">+ <Field label={t('agent.nameLabel')} hint={t('agent.nameHint')}><Inputtype="text"value={name}onChange={(e) => setName(e.target.value)}- placeholder="e.g. Saga"+ placeholder={t('agent.namePh')}/></Field>- <Field label="Role" hint="One- or two-word title shown next to the name.">+ <Field label={t('agent.roleLabel')} hint={t('agent.roleHint')}><Inputtype="text"value={role}onChange={(e) => setRole(e.target.value)}- placeholder="e.g. Storyteller"+ placeholder={t('agent.rolePh')}/></Field>- <Field label="Style (system prompt)" hint="The agent's voice, instincts, and quirks. Written in second person — the LLM reads this as 'you'.">+ <Field label={t('agent.styleLabel')} hint={t('agent.styleHint')}><TextAreavalue={systemPrompt}onChange={(e) => setSystemPrompt(e.target.value)}rows={5}- placeholder="You write narratives. You sense what the team forgets to say out loud. Direct, warm, never preachy."+ placeholder={t('agent.stylePh')}className="font-display italic"style={{ minHeight: 110 }}/></Field>- <Field label="Bio" hint="Optional, shown on the agent card.">+ <Field label={t('agent.bioLabel')} hint={t('agent.bioHint')}><TextAreavalue={bio}onChange={(e) => setBio(e.target.value)}rows={2}- placeholder="A one-line description of what they're best at."+ placeholder={t('agent.bioPh')}/></Field><Field- label={isByoa ? 'Big-brain model (大脑)' : 'Model'}+ label={isByoa ? t('agent.modelLabelByoa') : t('agent.modelLabel')}hint={isByoa- ? `Main reasoning model passed to the engine as --model. ${engine === 'codex' ? 'A model name (e.g. gpt-5.5, o3).' : engine === 'grok' ? 'A Grok model (e.g. grok-4.6).' : engine === 'cursor' ? 'A Cursor model id or alias; blank = Auto.' : "A Claude alias or full name (e.g. opus, sonnet, claude-sonnet-4-6)."} Blank = engine default.`- : 'Optional — leave blank to use the system default. Any OpenAI model name works (e.g. gpt-5.5, gpt-5.5-pro, gpt-5.5-mini). Prefix with novita/ to run this agent on Novita instead (e.g. novita/deepseek/deepseek-v3.2).'}+ ? `${t('agent.modelHintByoaPrefix')} ${engine === 'codex' ? t('agent.modelHintByoaCodex') : engine === 'grok' ? t('agent.modelHintByoaGrok') : engine === 'cursor' ? t('agent.modelHintByoaCursor') : t('agent.modelHintByoaClaude')} ${t('agent.modelHintByoaSuffix')}`+ : t('agent.modelHintCloud')}><Inputtype="text"value={model}onChange={(e) => setModel(e.target.value)}- placeholder="(default)"+ placeholder={t('agent.defaultPh')}className="font-mono"spellCheck={false}/>@@ -254,20 +256,20 @@ export function AgentEditor({ agent, onClose }: Props) {{isByoa && (<Field- label="Small-brain model (小脑)"+ label={t('agent.fastLabelByoa')}hint={engine === 'codex'- ? 'Cheaper model for light auxiliary tasks (e.g. gpt-5.4-mini). Blank = same as big-brain.'+ ? t('agent.fastHintByoaCodex'): engine === 'grok'- ? 'Cheaper/faster Grok model for light auxiliary tasks (e.g. grok-4.5). Blank = engine default.'+ ? t('agent.fastHintByoaGrok'): engine === 'cursor'- ? 'Not used by Cursor; triage follows CUMORA_TRIAGE_MODEL on the computer. Blank = Auto.'- : "Cheaper/faster model for light auxiliary tasks — maps to Claude's ANTHROPIC_SMALL_FAST_MODEL. Blank = engine default."}+ ? t('agent.fastHintByoaCursor')+ : t('agent.fastHintByoaClaude')}><Inputtype="text"value={fastModel}onChange={(e) => setFastModel(e.target.value)}- placeholder="(default)"+ placeholder={t('agent.defaultPh')}className="font-mono"spellCheck={false}/>@@ -275,11 +277,11 @@ export function AgentEditor({ agent, onClose }: Props) {)}<Field- label="Runs on"- hint="Which computer executes this agent. Cumora Cloud is managed; a computer you've paired runs it on your local Claude Code, Codex, Grok Build, or Cursor Agent."+ label={t('agent.runsOnLabel')}+ hint={t('agent.runsOnHint')}><Select- ariaLabel="Runs on"+ ariaLabel={t('agent.runsOnLabel')}value={computerId}onValueChange={changeComputer}options={[@@ -293,23 +295,23 @@ export function AgentEditor({ agent, onClose }: Props) {.map((c) => ({value: c.id,label: `${c.kind === 'cloud' ? '☁' : c.kind === 'vps' ? '🖥' : '💻'} ${c.name}`- + (c.kind !== 'cloud' && c.status !== 'online' ? ' (offline)' : ''),+ + (c.kind !== 'cloud' && c.status !== 'online' ? ` ${t('agent.offlineSuffix')}` : ''),})),...(isFreeTier && !isNativePlatform()- ? [{ value: '__cloud_pro__', label: '☁ Cumora Cloud — upgrade to Pro', disabled: true }]+ ? [{ value: '__cloud_pro__', label: t('agent.upgradeToPro'), disabled: true }]: []),]}/>{selectedComputer && selectedComputer.kind !== 'cloud' && (<div className="mt-2"><Select- ariaLabel="Engine"+ ariaLabel={t('agent.engineLabel')}value={engine}onValueChange={(v) => setEngine(v as EngineId)}options={(selectedComputer.availableEngines.length? selectedComputer.availableEngines: (['claude'] as EngineId[])- ).map((en) => ({ value: en, label: en === 'claude' ? 'Claude Code' : en === 'codex' ? 'Codex' : en === 'grok' ? 'Grok Build' : en === 'cursor' ? 'Cursor' : en }))}+ ).map((en) => ({ value: en, label: en === 'claude' ? t('agent.engineClaude') : en === 'codex' ? t('agent.engineCodex') : en === 'grok' ? t('agent.engineGrok') : en === 'cursor' ? t('agent.engineCursor') : en }))}/></div>)}@@ -319,7 +321,7 @@ export function AgentEditor({ agent, onClose }: Props) {style={{ background: 'var(--sky-50)', border: '1px solid var(--sky-100)' }}><div className="text-[12px] font-semibold text-ink-900 mb-1">- {selectedComputer?.name} is offline. Run this on that computer:+ {t('agent.computerOfflineMsg', { name: selectedComputer?.name ?? '' })}</div>{repairErr ? (<div className="text-[11.5px] text-coral-deep bg-coral-soft rounded-[8px] p-2">{repairErr}</div>@@ -334,17 +336,17 @@ export function AgentEditor({ agent, onClose }: Props) {className="mt-2 inline-flex items-center justify-center min-w-[108px] text-[11.5px] font-semibold px-3 py-1.5 rounded-[9px] text-white transition-colors duration-200"style={{ background: repairCopied ? '#3BB273' : 'var(--skype)' }}>- {repairCopied ? '✓ Copied!' : 'Copy command'}+ {repairCopied ? t('agent.copied') : t('agent.copyCommand')}</button></>) : (- <div className="text-[11.5px] text-ink-400">Generating reconnect command…</div>+ <div className="text-[11.5px] text-ink-400">{t('agent.generatingReconnect')}</div>)}</div>)}</Field>- <Field label="Avatar color" hint="Used as a fallback when no AI portrait is generated.">+ <Field label={t('agent.avatarColorLabel')} hint={t('agent.avatarColorHint')}><div className="flex flex-wrap gap-2">{PALETTE.map((c) => (<button@@ -365,10 +367,8 @@ export function AgentEditor({ agent, onClose }: Props) {</Field><Field- label="AI-generated portrait"- hint={editing- ? 'Generates an editorial portrait fitting this agent\'s name, role, and style. Save your edits first if you tweaked the style.'- : 'Available after the agent is created. Save first, then re-open to generate.'}+ label={t('agent.aiPortraitLabel')}+ hint={editing ? t('agent.aiPortraitHintEdit') : t('agent.aiPortraitHintNew')}><div className="flex items-center gap-4">{/* Avatar preview with breathing/sparkle animation while generating */}@@ -451,13 +451,13 @@ export function AgentEditor({ agent, onClose }: Props) {<path d="M12 2l2 5 5 2-5 2-2 5-2-5-5-2 5-2z"/><path d="M19 14l1 2 2 1-2 1-1 2-1-2-2-1 2-1z"/></svg>{generatingAvatar- ? <span>Painting<span className="ae-dots" /></span>- : (avatarUrl ? 'Regenerate' : 'Generate with AI')}+ ? <span>{t('agent.painting')}<span className="ae-dots" /></span>+ : (avatarUrl ? t('agent.regenerate') : t('agent.generateAi'))}</button>{generatingAvatar && (<div className="text-[11.5px] text-whisper-deep font-display italic leading-[1.5]">- Composing {name || 'your agent'}'s portrait — usually 15–30s. You can keep editing other fields.+ {t('agent.composingPortrait', { name: name || t('agent.composingPortraitFallback') })}</div>)}@@ -466,7 +466,7 @@ export function AgentEditor({ agent, onClose }: Props) {type="button"onClick={() => setAvatarUrl(null)}className="self-start text-[11.5px] text-ink-500 hover:text-coral-deep transition"- >clear portrait (use color block instead)</button>+ >{t('agent.clearPortrait')}</button>)}{avatarErr && (@@ -490,7 +490,7 @@ export function AgentEditor({ agent, onClose }: Props) {onClick={onClose}className="px-4 py-2 rounded-[9px] text-[12.5px] font-semibold text-ink-700 bg-cloud hover:bg-sky2-50 transition"style={{ border: '1px solid var(--ink-100)' }}- >Cancel</button>+ >{t('agent.cancelBtn')}</button><div className="flex-1" /><buttononClick={submit}@@ -501,7 +501,7 @@ export function AgentEditor({ agent, onClose }: Props) {boxShadow: '0 4px 12px -3px rgba(0, 168, 240, 0.5)',}}>- {busy ? 'Saving…' : (editing ? 'Save changes' : 'Create agent')}+ {busy ? t('agent.saving') : (editing ? t('agent.saveChanges') : t('agent.createAgent'))}</button></div></div>diff --git a/src/components/ArtifactPeekContent.tsx b/src/components/ArtifactPeekContent.tsxindex aa8462a..03144b1 100644--- a/src/components/ArtifactPeekContent.tsx+++ b/src/components/ArtifactPeekContent.tsx@@ -7,10 +7,33 @@ import { useConversations } from '@/stores/conversations'import { useParticipants } from '@/stores/participants'import { IBoard, ICalendar, IClock, IRepeat } from '@/components/icons'import { cn } from '@/lib/utils'+import { useT, type MessageKey } from '@/lib/i18n'import { EventEditor } from '@/components/EventEditor'import type { BoardCard, CalendarEvent, RecurrenceRule } from '@/types'-const WEEK = ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat']+const RECURRING_KEYS: Record<RecurrenceRule['freq'], MessageKey> = {+ daily: 'peek.recurringDaily',+ weekly: 'peek.recurringWeekly',+ monthly: 'peek.recurringMonthly',+ yearly: 'peek.recurringYearly',+}++const RECURRING_INTERVAL_KEYS: Record<RecurrenceRule['freq'], MessageKey> = {+ daily: 'peek.recurringIntervalDaily',+ weekly: 'peek.recurringIntervalWeekly',+ monthly: 'peek.recurringIntervalMonthly',+ yearly: 'peek.recurringIntervalYearly',+}++const WEEKDAY_KEYS = [+ 'peek.weekdaySun',+ 'peek.weekdayMon',+ 'peek.weekdayTue',+ 'peek.weekdayWed',+ 'peek.weekdayThu',+ 'peek.weekdayFri',+ 'peek.weekdaySat',+] as const satisfies readonly MessageKey[]function OpenFullIcon() {return (@@ -45,6 +68,7 @@ function PeekHeader({onClose: () => voidonOpenFull?: () => void}) {+ const t = useT()return (<header className="shrink-0 border-b border-ink-100 bg-gradient-to-b from-white to-sky2-50/35 px-4 py-3"><div className="flex items-start gap-3 min-w-0">@@ -61,8 +85,8 @@ function PeekHeader({type="button"onClick={onOpenFull}className="h-8 w-8 rounded-[8px] grid place-items-center text-ink-500 hover:text-skype-deep hover:bg-sky2-100 transition"- title="Open full workspace"- aria-label="Open full workspace"+ title={t('peek.openFull')}+ aria-label={t('peek.openFull')}><OpenFullIcon /></button>@@ -71,8 +95,8 @@ function PeekHeader({type="button"onClick={onClose}className="h-8 w-8 rounded-[8px] grid place-items-center text-ink-400 hover:text-ink-900 hover:bg-ink-100/70 transition"- title="Close artifact"- aria-label="Close artifact"+ title={t('peek.closeArtifact')}+ aria-label={t('peek.closeArtifact')}><CloseIcon /></button>@@ -105,6 +129,7 @@ function PeekUnavailable({detail: stringonClose: () => void}) {+ const t = useT()return (<div className="h-full bg-cloud grid place-items-center px-8 text-center"><div className="max-w-[280px]">@@ -118,16 +143,16 @@ function PeekUnavailable({onClick={onClose}className="mt-4 h-8 px-3 rounded-[8px] text-[12px] font-semibold text-ink-600 border border-ink-100 hover:bg-sky2-50 transition">- Close+ {t('peek.closeButton')}</button></div></div>)}-function formatShortDate(iso: string): string {+function formatShortDate(iso: string, t: ReturnType<typeof useT>): string {const d = new Date(iso)- if (Number.isNaN(d.getTime())) return 'recently'+ if (Number.isNaN(d.getTime())) return t('peek.recently')return d.toLocaleDateString(undefined, { month: 'short', day: 'numeric', year: 'numeric' })}@@ -135,9 +160,9 @@ function formatTime(d: Date): string {return `${String(d.getHours()).padStart(2, '0')}:${String(d.getMinutes()).padStart(2, '0')}`}-function formatEventRange(event: CalendarEvent): string {+function formatEventRange(event: CalendarEvent, t: ReturnType<typeof useT>): string {const start = new Date(event.startAt)- if (Number.isNaN(start.getTime())) return event.allDay ? 'All day' : 'Time unavailable'+ if (Number.isNaN(start.getTime())) return event.allDay ? t('peek.allDay') : t('peek.timeUnavailable')if (event.allDay) return start.toLocaleDateString(undefined, { weekday: 'short', month: 'short', day: 'numeric' })const startLabel = `${start.toLocaleDateString(undefined, { weekday: 'short', month: 'short', day: 'numeric' })} - ${formatTime(start)}`if (!event.endAt) return startLabel@@ -149,13 +174,14 @@ function formatEventRange(event: CalendarEvent): string {: `${startLabel}-${end.toLocaleDateString(undefined, { month: 'short', day: 'numeric' })} ${formatTime(end)}`}-function describeRecurrence(r: RecurrenceRule | null): string {- if (!r) return 'one-shot'- const every = r.interval > 1 ? `every ${r.interval} ` : 'every '- const freqMap = { daily: 'day', weekly: 'week', monthly: 'month', yearly: 'year' } as const- const base = `${every}${freqMap[r.freq]}${r.interval > 1 ? 's' : ''}`+function describeRecurrence(r: RecurrenceRule | null, t: ReturnType<typeof useT>): string {+ if (!r) return t('peek.oneShot')+ const base = r.interval === 1+ ? t(RECURRING_KEYS[r.freq])+ : t(RECURRING_INTERVAL_KEYS[r.freq], { n: r.interval })if (r.freq === 'weekly' && r.byweekday && r.byweekday.length) {- return `${base} - ${r.byweekday.map((d) => WEEK[d]).join('/')}`+ const days = r.byweekday.map((d) => t(WEEKDAY_KEYS[d])).join(t('peek.weekdaySeparator'))+ return t('peek.recurringWeeklyDays', { base, days })}return base}@@ -171,6 +197,7 @@ export function BoardPeekContent({onClose: () => voidonOpenFull?: () => void}) {+ const t = useT()const list = useBoards((s) => s.list)const loadingList = useBoards((s) => s.loadingList)const loadList = useBoards((s) => s.loadList)@@ -210,15 +237,15 @@ export function BoardPeekContent({const isBoardPending = !snap && (loadingBoardId === boardId || loadingList || requestedBoardId.current !== boardId)if (isBoardPending) {- return <PeekLoading icon={<IBoard className="w-5 h-5" />} label="Opening board..." />+ return <PeekLoading icon={<IBoard className="w-5 h-5" />} label={t('peek.openingBoard')} />}if (!snap) {return (<PeekUnavailableicon={<IBoard className="w-5 h-5" />}- title="Board unavailable"- detail="This board may have been deleted or moved out of this workspace."+ title={t('peek.boardUnavailable')}+ detail={t('peek.boardUnavailableDetail')}onClose={onClose}/>)@@ -228,9 +255,13 @@ export function BoardPeekContent({<div className="h-full min-h-0 flex flex-col bg-cloud"><PeekHeadericon={<IBoard className="w-5 h-5" />}- label="Kanban board"+ label={t('peek.labelBoard')}title={snap.title}- meta={`${snap.columns.length} columns - ${snap.cards.length} cards - updated ${formatShortDate(snap.updatedAt)}`}+ meta={t('peek.boardMeta', {+ columns: snap.columns.length,+ cards: snap.cards.length,+ time: formatShortDate(snap.updatedAt, t),+ })}onClose={onClose}onOpenFull={onOpenFull}/>@@ -252,7 +283,7 @@ export function BoardPeekContent({<div className="flex-1 min-h-0 overflow-y-auto p-2 space-y-2">{cards.length === 0 && (<div className="rounded-[8px] border border-dashed border-ink-100 px-3 py-4 text-center text-[11.5px] text-ink-400">- Empty+ {t('peek.empty')}</div>)}{cards.map((card) => (@@ -269,6 +300,7 @@ export function BoardPeekContent({}function BoardPeekCard({ card, focused }: { card: BoardCard; focused: boolean }) {+ const t = useT()const byId = useParticipants((s) => s.byId)const assignee = card.assigneeId ? byId[card.assigneeId] : nullconst ref = useRef<HTMLElement | null>(null)@@ -293,7 +325,7 @@ function BoardPeekCard({ card, focused }: { card: BoardCard; focused: boolean })>{focused && (<div className="mb-1.5 inline-flex rounded-full bg-sky2-100 px-1.5 py-0.5 text-[9.5px] font-bold uppercase tracking-[0.12em] text-skype-deep">- Opened from chat+ {t('peek.openedFromChat')}</div>)}<div className="text-[12.5px] font-medium leading-snug text-ink-800 line-clamp-3">{card.title}</div>@@ -305,7 +337,7 @@ function BoardPeekCard({ card, focused }: { card: BoardCard; focused: boolean })<span className="truncate">{assignee.name}</span></span>)}- {card.commentCount > 0 && <span className="ml-auto shrink-0">{card.commentCount} comments</span>}+ {card.commentCount > 0 && <span className="ml-auto shrink-0">{t('peek.commentsCount', { count: card.commentCount })}</span>}{!assignee && card.mentions.length > 0 && <span className="truncate">@{card.mentions.slice(0, 2).join(' @')}</span>}</div>)}@@ -322,6 +354,7 @@ export function CalendarEventPeekContent({onClose: () => voidonOpenFull?: () => void}) {+ const t = useT()const loadingEventId = useCalendar((s) => s.loadingEventId)const loadEvent = useCalendar((s) => s.loadEvent)const removeEvent = useCalendar((s) => s.remove)@@ -348,15 +381,15 @@ export function CalendarEventPeekContent({}, [event, eventId, loadEvent, loadingEventId])if (!event && !failed) {- return <PeekLoading icon={<ICalendar className="w-5 h-5" />} label="Opening event..." />+ return <PeekLoading icon={<ICalendar className="w-5 h-5" />} label={t('peek.openingEvent')} />}if (!event) {return (<PeekUnavailableicon={<ICalendar className="w-5 h-5" />}- title="Event unavailable"- detail={failed || 'This calendar event may have been deleted or moved out of this workspace.'}+ title={t('peek.eventUnavailable')}+ detail={failed || t('peek.eventUnavailableDetail')}onClose={onClose}/>)@@ -366,9 +399,12 @@ export function CalendarEventPeekContent({<div className="h-full min-h-0 flex flex-col bg-cloud"><PeekHeadericon={<ICalendar className="w-5 h-5" />}- label="Calendar event"- title={event.title || 'Untitled event'}- meta={`${event.kind === 'agent_task' ? 'Agent task' : 'Personal'} - ${event.status}`}+ label={t('peek.labelCalendarEvent')}+ title={event.title || t('peek.untitledEvent')}+ meta={t('peek.eventMeta', {+ kind: event.kind === 'agent_task' ? t('peek.agentTask') : t('peek.personal'),+ status: event.status,+ })}onClose={onClose}onOpenFull={onOpenFull}/>@@ -376,11 +412,11 @@ export function CalendarEventPeekContent({<section className="rounded-[12px] border border-ink-100 bg-white/75 p-4"><div className="flex items-center gap-2 text-[12.5px] font-medium text-ink-800"><IClock className="w-4 h-4 text-skype-deep" />- <span>{formatEventRange(event)}</span>+ <span>{formatEventRange(event, t)}</span></div><div className="mt-3 flex items-center gap-2 text-[12px] text-ink-500"><IRepeat className="w-3.5 h-3.5" />- <span>{describeRecurrence(event.recurrence)}</span>+ <span>{describeRecurrence(event.recurrence, t)}</span></div>{event.description && (<p className="mt-4 text-[13px] leading-relaxed text-ink-700 whitespace-pre-wrap">{event.description}</p>@@ -390,7 +426,7 @@ export function CalendarEventPeekContent({<div className="mt-3 grid gap-3">{assignee && (<section className="rounded-[12px] border border-ink-100 bg-white/65 p-3">- <div className="text-[10px] font-bold uppercase tracking-[0.14em] text-ink-400">Assignee</div>+ <div className="text-[10px] font-bold uppercase tracking-[0.14em] text-ink-400">{t('peek.assignee')}</div><div className="mt-2 flex items-center gap-2"><AvatarMini p={assignee} size={24} /><div className="min-w-0">@@ -403,7 +439,7 @@ export function CalendarEventPeekContent({{targetConversation && (<section className="rounded-[12px] border border-ink-100 bg-white/65 p-3">- <div className="text-[10px] font-bold uppercase tracking-[0.14em] text-ink-400">Conversation</div>+ <div className="text-[10px] font-bold uppercase tracking-[0.14em] text-ink-400">{t('peek.conversation')}</div><div className="mt-1 truncate text-[13px] font-semibold text-ink-900">{targetConversation.title}</div>{targetConversation.subtitle && (<div className="mt-0.5 truncate text-[11.5px] text-ink-500">{targetConversation.subtitle}</div>@@ -413,7 +449,7 @@ export function CalendarEventPeekContent({{event.agentPrompt && (<section className="rounded-[12px] border border-sky2-100 bg-sky2-50/45 p-3">- <div className="text-[10px] font-bold uppercase tracking-[0.14em] text-skype-deep">Agent prompt</div>+ <div className="text-[10px] font-bold uppercase tracking-[0.14em] text-skype-deep">{t('peek.agentPrompt')}</div><p className="mt-2 text-[12.5px] leading-relaxed text-ink-700 whitespace-pre-wrap">{event.agentPrompt}</p></section>)}@@ -423,7 +459,7 @@ export function CalendarEventPeekContent({style={{ paddingBottom: 'max(env(safe-area-inset-bottom), 12px)' }}><div className="flex-1 min-w-0 text-[11px] text-ink-400 truncate">- Created {formatShortDate(event.createdAt)} - Updated {formatShortDate(event.updatedAt)}+ {t('peek.createdUpdated', { a: formatShortDate(event.createdAt, t), b: formatShortDate(event.updatedAt, t) })}</div>{event.kind === 'agent_task' && (<button@@ -436,18 +472,18 @@ export function CalendarEventPeekContent({}}disabled={busy !== null}className="py-1.5 px-3 text-[12px] font-semibold rounded-full bg-sky2-50 text-skype-deep border border-sky2-100 active:bg-sky2-100 transition disabled:opacity-60"- >{busy === 'run' ? 'Running…' : 'Run now'}</button>+ >{busy === 'run' ? t('peek.running') : t('peek.runNow')}</button>)}<buttontype="button"onClick={() => setEditing(true)}className="py-1.5 px-3 text-[12px] font-semibold rounded-full bg-cloud text-ink-700 border border-ink-100 active:bg-sky2-50 transition"- >Edit</button>+ >{t('peek.edit')}</button><buttontype="button"onClick={async () => {if (busy) return- if (!confirm(`Delete “${event.title || 'Untitled event'}”?`)) return+ if (!confirm(t('peek.deleteConfirm', { title: event.title || t('peek.untitledEvent') }))) returnsetBusy('delete')try {await removeEvent(event.id)@@ -459,11 +495,11 @@ export function CalendarEventPeekContent({}}disabled={busy !== null}className="py-1.5 px-3 text-[12px] font-semibold rounded-full text-coral-deep border border-coral-soft active:bg-coral-soft/40 transition disabled:opacity-60"- >Delete</button>+ >{t('peek.delete')}</button></div>{editing && (<EventEditor event={event} onClose={() => setEditing(false)} />)}</div>)-}+}\ No newline at end of filediff --git a/src/components/AuthScreen.tsx b/src/components/AuthScreen.tsxindex aa6676a..6f0cf7a 100644--- a/src/components/AuthScreen.tsx+++ b/src/components/AuthScreen.tsx@@ -18,14 +18,21 @@ import { isNativePlatform, nativePlatform, runAppleSignIn, runOAuth } from '@/liimport { useAuth } from '@/stores/auth'import { CloudLogo } from './Avatar'import { WindowDragStrip } from './WindowDragStrip'+import { translate, useLocaleStore, useT, type MessageKey } from '@/lib/i18n'interface ServerPreset { label: string; origin: string }const PRESETS: ServerPreset[] = [{ label: 'Production', origin: 'https://api.cumora.ai' },{ label: 'Local Dev', origin: 'http://localhost:5181' },]+// i18n: parallel lookup so the PRESETS shape stays upstream-mergeable.+const PRESET_LABEL_KEY: Record<string, MessageKey> = {+ 'Production': 'auth.presetProduction',+ 'Local Dev': 'auth.presetLocalDev',+}export function AuthScreen() {+ const t = useT()const [busy, setBusy] = useState<'google' | 'github' | 'apple' | null>(null)const [err, setErr] = useState<string | null>(null)const [picker, setPicker] = useState(false)@@ -143,7 +150,7 @@ export function AuthScreen() {const u = new URL(callbackUrl)const hash = u.hash || (u.search ? `#${u.search.replace(/^\?/, '')}` : '')if (!hash) {- setErr('Sign-in completed but no token was returned.')+ setErr(translate(useLocaleStore.getState().locale, 'auth.noTokenReturned'))setBusy(null)return}@@ -175,9 +182,9 @@ export function AuthScreen() {<div className="w-[320px] flex flex-col items-center gap-8"><CloudLogo size={64} /><div className="text-center">- <div className="font-display text-[22px] text-ink-900">Welcome to cumora</div>+ <div className="font-display text-[22px] text-ink-900">{t('auth.welcome')}</div><div className="font-display italic text-[13px] text-ink-400 mt-1">- Sign in to continue+ {t('auth.signInToContinue')}</div></div><div className="w-full flex flex-col gap-3">@@ -195,7 +202,7 @@ export function AuthScreen() {className="h-11 rounded-[10px] bg-black hover:bg-[#111] text-white transition-colors flex items-center justify-center gap-3 text-[14px] disabled:opacity-60"><AppleMark />- {busy === 'apple' ? 'Signing in…' : 'Continue with Apple'}+ {busy === 'apple' ? t('auth.signingIn') : t('auth.continueWithApple')}</button>)}<button@@ -205,7 +212,7 @@ export function AuthScreen() {className="h-11 rounded-[10px] border border-ink-200 bg-white hover:bg-cloud transition-colors flex items-center justify-center gap-3 text-[14px] text-ink-800 disabled:opacity-60"><GoogleMark />- {busy === 'google' ? 'Redirecting…' : 'Continue with Google'}+ {busy === 'google' ? t('auth.redirecting') : t('auth.continueWithGoogle')}</button><buttontype="button"@@ -214,7 +221,7 @@ export function AuthScreen() {className="h-11 rounded-[10px] bg-[#1f2328] hover:bg-[#2a3037] text-white transition-colors flex items-center justify-center gap-3 text-[14px] disabled:opacity-60"><GitHubMark />- {busy === 'github' ? 'Redirecting…' : 'Continue with GitHub'}+ {busy === 'github' ? t('auth.redirecting') : t('auth.continueWithGithub')}</button></div>{err && (@@ -223,7 +230,7 @@ export function AuthScreen() {</div>)}<div className="text-[11px] text-ink-300 text-center font-display italic">- We use your provider only to verify it's you — no posting, no scope creep.+ {t('auth.providerNote')}</div><ServerSwitch open={picker} onToggle={() => setPicker((v) => !v)} /></div>@@ -232,15 +239,17 @@ export function AuthScreen() {}/** Currently-active server origin in human-readable form. Mirrors what- * api.client computed at module init. */-function currentOriginLabel(): string {+ * api.client computed at module init. Takes the translator rather than+ * calling the hook itself — it runs inside a component's render. */+function currentOriginLabel(t: ReturnType<typeof useT>): string {const origin = getServerOrigin()- if (!origin) return 'same-origin (Vite proxy / static)'+ if (!origin) return t('auth.sameOrigin')const match = PRESETS.find((p) => p.origin === origin)return match ? `${match.label} · ${origin}` : origin}function ServerSwitch({ open, onToggle }: { open: boolean; onToggle: () => void }) {+ const t = useT()const [custom, setCustom] = useState('')const current = getServerOrigin()@@ -258,15 +267,15 @@ function ServerSwitch({ open, onToggle }: { open: boolean; onToggle: () => voidonClick={onToggle}className="text-[11px] text-ink-300 hover:text-ink-500 transition-colors font-display">- API server: <span className="underline decoration-dotted">{currentOriginLabel()}</span>+ {t('auth.apiServer')}: <span className="underline decoration-dotted">{currentOriginLabel(t)}</span></button>)}return (<div className="w-full border border-ink-200 rounded-[10px] p-3 bg-white/60 flex flex-col gap-2"><div className="flex items-center justify-between">- <div className="text-[12px] font-display text-ink-700">API server</div>- <button type="button" onClick={onToggle} className="text-[11px] text-ink-300 hover:text-ink-500">close</button>+ <div className="text-[12px] font-display text-ink-700">{t('auth.apiServer')}</div>+ <button type="button" onClick={onToggle} className="text-[11px] text-ink-300 hover:text-ink-500">{t('common.close')}</button></div>{PRESETS.map((p) => (<button@@ -275,7 +284,7 @@ function ServerSwitch({ open, onToggle }: { open: boolean; onToggle: () => voidonClick={() => apply(p.origin)}className={`text-left h-9 px-2 rounded-[6px] text-[12px] flex items-center justify-between hover:bg-cloud transition-colors ${current === p.origin ? 'bg-cloud' : ''}`}>- <span className="font-display text-ink-800">{p.label}</span>+ <span className="font-display text-ink-800">{PRESET_LABEL_KEY[p.label] ? t(PRESET_LABEL_KEY[p.label]) : p.label}</span><span className="text-[10px] text-ink-400">{p.origin}</span></button>))}@@ -293,7 +302,7 @@ function ServerSwitch({ open, onToggle }: { open: boolean; onToggle: () => voidonClick={() => apply(custom.trim())}className="h-9 px-3 rounded-[6px] bg-ink-800 text-white text-[12px] disabled:opacity-40">- Use+ {t('common.use')}</button></div>{current && (@@ -302,7 +311,7 @@ function ServerSwitch({ open, onToggle }: { open: boolean; onToggle: () => voidonClick={() => apply(null)}className="text-[11px] text-ink-400 hover:text-ink-600 self-start">- Clear override (use build default)+ {t('auth.clearOverride')}</button>)}</div>diff --git a/src/components/Combobox.tsx b/src/components/Combobox.tsxindex 3b84a05..a7f817c 100644--- a/src/components/Combobox.tsx+++ b/src/components/Combobox.tsx@@ -1,4 +1,5 @@import { useEffect, useId, useMemo, useRef, useState } from 'react'+import { useT } from '@/lib/i18n'import { cn } from '@/lib/utils'/**@@ -36,12 +37,18 @@ export function Combobox<T extends string = string>({value,options,onValueChange,- placeholder = 'Select',- searchPlaceholder = 'Search…',+ placeholder: placeholderProp,+ searchPlaceholder: searchPlaceholderProp,ariaLabel,className,- emptyText = 'No matches',+ emptyText: emptyTextProp,}: ComboboxProps<T>) {+ const t = useT()+ // Defaults resolve through t() so they follow the active locale;+ // callers that pass explicit strings are untouched.+ const placeholder = placeholderProp ?? t('combobox.select')+ const searchPlaceholder = searchPlaceholderProp ?? t('combobox.search')+ const emptyText = emptyTextProp ?? t('combobox.noMatches')const id = useId()const rootRef = useRef<HTMLDivElement>(null)const inputRef = useRef<HTMLInputElement>(null)@@ -129,7 +136,7 @@ export function Combobox<T extends string = string>({)}<buttontype="button"- aria-label="Toggle menu"+ aria-label={t('combobox.toggleMenu')}tabIndex={-1}onMouseDown={(e) => e.preventDefault()}onClick={() => { if (open) { setOpen(false); setQuery('') } else openMenu() }}diff --git a/src/components/CompanySwitcher.tsx b/src/components/CompanySwitcher.tsxindex d23a403..a601d49 100644--- a/src/components/CompanySwitcher.tsx+++ b/src/components/CompanySwitcher.tsx@@ -12,9 +12,11 @@ import { useEffect, useRef, useState } from 'react'import { api } from '@/api/client'import { useApp } from '@/stores/app'import { useAuth } from '@/stores/auth'+import { useT } from '@/lib/i18n'import { InvitePeopleModal } from './InvitePeopleModal'export function CompanySwitcher() {+ const t = useT()const companies = useAuth((s) => s.companies)const activeId = useAuth((s) => s.activeCompanyId)const setActive = useAuth((s) => s.setActiveCompany)@@ -78,7 +80,7 @@ export function CompanySwitcher() {>{active ? active.name.charAt(0).toUpperCase() : '·'}</span>- <span className="max-w-[140px] truncate">{active?.name ?? 'no workspace'}</span>+ <span className="max-w-[140px] truncate">{active?.name ?? t('company.noWorkspace')}</span><span className="text-ink-300 text-[10px] leading-none">▾</span></button>@@ -93,7 +95,7 @@ export function CompanySwitcher() {}}><div className="px-3 py-1 text-[10.5px] uppercase tracking-wide text-ink-300 font-display">- Switch workspace+ {t('company.switchWorkspace')}</div>{companies.map((c) => (<button@@ -126,7 +128,7 @@ export function CompanySwitcher() {className="w-5 h-5 rounded grid place-items-center shrink-0 text-[11px]"style={{ background: 'var(--sky-50)', color: 'var(--skype)' }}>+</span>- <span className="flex-1">Invite people to <b className="font-semibold">{active.name}</b></span>+ <span className="flex-1">{t('company.invitePeoplePrefix')}<b className="font-semibold">{active.name}</b></span></button>)}@@ -137,7 +139,7 @@ export function CompanySwitcher() {value={newName}onChange={(e) => setNewName(e.target.value)}onKeyDown={(e) => { if (e.key === 'Enter') void submitNew() }}- placeholder="Workspace name"+ placeholder={t('company.workspaceNamePh')}className="w-full px-2 py-1.5 text-[12.5px] rounded outline-none"style={{ border: '1.5px solid var(--ink-100)', background: 'var(--paper)' }}/>@@ -148,11 +150,11 @@ export function CompanySwitcher() {disabled={!newName.trim() || busy}className="flex-1 py-1.5 rounded text-[12px] font-semibold text-white disabled:opacity-50"style={{ background: 'var(--skype)' }}- >{busy ? '…' : 'Create'}</button>+ >{busy ? '…' : t('company.createBtn')}</button><buttononClick={() => { setCreating(false); setNewName(''); setErr(null) }}className="px-3 py-1.5 rounded text-[12px] text-ink-500 hover:bg-cloud"- >Cancel</button>+ >{t('common.cancel')}</button></div></div>) : (@@ -161,7 +163,7 @@ export function CompanySwitcher() {className="w-full px-3 py-1.5 flex items-center gap-2 text-left hover:bg-cloud transition text-[12px] text-ink-700"><span className="w-5 h-5 rounded grid place-items-center text-ink-500 shrink-0" style={{ border: '1px dashed var(--ink-100)' }}>+</span>- Create new workspace+ {t('company.createNew')}</button>)}</div>diff --git a/src/components/DateTimePicker.tsx b/src/components/DateTimePicker.tsxindex 8e3072d..9938fb2 100644--- a/src/components/DateTimePicker.tsx+++ b/src/components/DateTimePicker.tsx@@ -20,6 +20,7 @@import { useCallback, useEffect, useLayoutEffect, useMemo, useRef, useState } from 'react'import { createPortal } from 'react-dom'import { ICalendar } from '@/components/icons'+import { useT } from '@/lib/i18n'import { cn } from '@/lib/utils'interface Props {@@ -79,6 +80,7 @@ export function DateTimePicker({allowClear, disabled,className,}: Props) {+ const t = useT()const [open, setOpen] = useState(false)const [cursorMonth, setCursorMonth] = useState<Date>(() => {const { date } = parseValue(value)@@ -220,7 +222,7 @@ export function DateTimePicker({type="button"onClick={() => setCursorMonth(new Date(cursorMonth.getFullYear(), cursorMonth.getMonth() - 1, 1))}className="w-7 h-7 rounded-md grid place-items-center text-ink-500 hover:bg-ink-100 transition"- aria-label="Previous month"+ aria-label={t('dtpicker.prevMonth')}>‹</button><span className="text-[13px] font-semibold text-ink-900 mx-1 min-w-[120px] text-center">{cursorMonth.toLocaleDateString(undefined, { month: 'long', year: 'numeric' })}@@ -229,7 +231,7 @@ export function DateTimePicker({type="button"onClick={() => setCursorMonth(new Date(cursorMonth.getFullYear(), cursorMonth.getMonth() + 1, 1))}className="w-7 h-7 rounded-md grid place-items-center text-ink-500 hover:bg-ink-100 transition"- aria-label="Next month"+ aria-label={t('dtpicker.nextMonth')}>›</button></div><div className="flex items-center gap-2">@@ -246,13 +248,13 @@ export function DateTimePicker({}}}className="text-[11.5px] font-medium text-skype-deep hover:underline px-1"- >Today</button>+ >{t('dtpicker.today')}</button>{allowClear && value && (<buttontype="button"onClick={() => { onChange(''); setOpen(false) }}className="text-[11.5px] font-medium text-ink-400 hover:text-coral-deep transition px-1"- >Clear</button>+ >{t('dtpicker.clear')}</button>)}</div></div>@@ -297,13 +299,13 @@ export function DateTimePicker({{mode === 'datetime' && (<div className="flex gap-1 border-l border-ink-100 pl-3"><Column- label="hr"+ label={t('dtpicker.hourLabel')}values={Array.from({ length: 24 }, (_, h) => h)}selected={hour}onPick={pickHour}/><Column- label="min"+ label={t('dtpicker.minuteLabel')}values={MINUTE_STEPS}// Highlight the closest 5-min step so picker stays useful// even when the value was set to, say, :17 via the API.diff --git a/src/components/DocumentEditor.tsx b/src/components/DocumentEditor.tsxindex 69954d7..ed0cb0c 100644--- a/src/components/DocumentEditor.tsx+++ b/src/components/DocumentEditor.tsx@@ -18,6 +18,7 @@ import { useDocuments } from '@/stores/documents'import { useAuth } from '@/stores/auth'import { api, ws } from '@/api/client'import { cn } from '@/lib/utils'+import { useT } from '@/lib/i18n'import {IBold, IItalic, IStrike, IH1, IH2, IH3,IList, IListOrdered, IQuote, ICode, ICodeBlock, ILink, IImage, IUndo, IRedo,@@ -115,6 +116,7 @@ interface DocumentEditorProps {}export function DocumentEditor({ documentId, variant = 'full', onClose, onOpenFull }: DocumentEditorProps) {+ const t = useT()const user = useAuth((s) => s.user)const doc = useDocuments((s) => s.list.find((d) => d.id === documentId) ?? null)const rename = useDocuments((s) => s.rename)@@ -149,12 +151,12 @@ export function DocumentEditor({ documentId, variant = 'full', onClose, onOpenFuif (!doc) return (<div className="h-full flex items-center justify-center text-stone-400 text-sm">- Document not found.+ {t('docEdit.notFound')}</div>)if (!user || !session) return (<div className="h-full flex items-center justify-center text-stone-400 text-sm">- Loading…+ {t('common.loading')}</div>)@@ -186,8 +188,8 @@ export function DocumentEditor({ documentId, variant = 'full', onClose, onOpenFu'flex-1 min-w-0 bg-transparent font-medium text-stone-900 focus:outline-none',isPeek ? 'text-[16px] leading-[1.35]' : 'text-xl',)}- placeholder="Untitled"- aria-label="Document title"+ placeholder={t('docEdit.untitledPh')}+ aria-label={t('docEdit.titleAria')}/><div className="shrink-0"><PresenceStrip session={session} synced={synced} />@@ -197,8 +199,8 @@ export function DocumentEditor({ documentId, variant = 'full', onClose, onOpenFutype="button"onClick={onOpenFull}className="w-8 h-8 rounded-[8px] grid place-items-center text-ink-500 hover:text-skype-deep hover:bg-sky2-100 transition"- title="Open in Documents"- aria-label="Open in Documents"+ title={t('docEdit.openInDocs')}+ aria-label={t('docEdit.openInDocs')}><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="1.8" strokeLinecap="round" strokeLinejoin="round" className="w-4 h-4"><path d="M14 4h6v6" />@@ -212,8 +214,8 @@ export function DocumentEditor({ documentId, variant = 'full', onClose, onOpenFutype="button"onClick={onClose}className="w-8 h-8 rounded-[8px] grid place-items-center text-ink-400 hover:text-ink-900 hover:bg-ink-100/70 transition"- title="Close document"- aria-label="Close document"+ title={t('docEdit.closeDocument')}+ aria-label={t('docEdit.closeDocument')}><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2" strokeLinecap="round" className="w-4 h-4"><path d="M6 6l12 12M18 6L6 18" />@@ -223,12 +225,12 @@ export function DocumentEditor({ documentId, variant = 'full', onClose, onOpenFu<buttontype="button"onClick={() => {- if (!confirm('Delete this document?')) return+ if (!confirm(t('docEdit.deleteConfirm'))) returnvoid remove(doc.id).catch(() => { /* swallow */ })}}className="text-xs leading-none text-stone-500 hover:text-red-600 transition-colors">- Delete+ {t('docEdit.deleteAction')}</button>)}</header>@@ -254,9 +256,11 @@ interface CollaborativeEditorProps {}function CollaborativeEditor({ session, synced, userName, userColor, documentId, variant }: CollaborativeEditorProps) {+ const t = useT()const refreshingImagesRef = useRef(new Set<string>())// Memoize the awareness object reference for the cursor extension —// TipTap reads it once at mount.+ const placeholderText = t('docEdit.placeholder')const extensions = useMemo(() => [// Disable StarterKit's undo/redo because Collaboration ships its own// (Yjs-aware) one — running both yields double-undos. TipTap v3@@ -272,7 +276,7 @@ function CollaborativeEditor({ session, synced, userName, userColor, documentId,allowBase64: false,}),Placeholder.configure({- placeholder: 'Start writing — humans and agents can both edit live.',+ placeholder: placeholderText,}),Collaboration.configure({ document: session.doc }),CollaborationCaret.configure({@@ -285,7 +289,7 @@ function CollaborativeEditor({ session, synced, userName, userColor, documentId,// ids — which is what lets the server-side notifier work without// having to second-guess fuzzy text matches.buildMentionExtension(),- ], [session, userName, userColor])+ ], [session, userName, userColor, placeholderText])const editor = useEditor({extensions,@@ -405,6 +409,7 @@ function CollaborativeEditor({ session, synced, userName, userColor, documentId,interface ToolbarProps { editor: Editor | null; disabled: boolean }function Toolbar({ editor, disabled }: ToolbarProps) {+ const t = useT()if (!editor) {return <div className="border-b border-stone-100 px-4 py-2 h-[42px] bg-stone-50/60" />}@@ -421,60 +426,60 @@ function Toolbar({ editor, disabled }: ToolbarProps) {<buttontype="button" className={btn(editor.isActive('bold'))} disabled={disabled}onClick={() => editor.chain().focus().toggleBold().run()}- title="Bold (⌘B)"+ title={t('docEdit.bold')}><IBold className="w-4 h-4" /></button><buttontype="button" className={btn(editor.isActive('italic'))} disabled={disabled}onClick={() => editor.chain().focus().toggleItalic().run()}- title="Italic (⌘I)"+ title={t('docEdit.italic')}><IItalic className="w-4 h-4" /></button><buttontype="button" className={btn(editor.isActive('strike'))} disabled={disabled}onClick={() => editor.chain().focus().toggleStrike().run()}- title="Strikethrough"+ title={t('docEdit.strikethrough')}><IStrike className="w-4 h-4" /></button><ToolbarSep /><buttontype="button" className={btn(editor.isActive('heading', { level: 1 }))} disabled={disabled}onClick={() => editor.chain().focus().toggleHeading({ level: 1 }).run()}- title="Heading 1"+ title={t('docEdit.heading1')}><IH1 className="w-4 h-4" /></button><buttontype="button" className={btn(editor.isActive('heading', { level: 2 }))} disabled={disabled}onClick={() => editor.chain().focus().toggleHeading({ level: 2 }).run()}- title="Heading 2"+ title={t('docEdit.heading2')}><IH2 className="w-4 h-4" /></button><buttontype="button" className={btn(editor.isActive('heading', { level: 3 }))} disabled={disabled}onClick={() => editor.chain().focus().toggleHeading({ level: 3 }).run()}- title="Heading 3"+ title={t('docEdit.heading3')}><IH3 className="w-4 h-4" /></button><ToolbarSep /><buttontype="button" className={btn(editor.isActive('bulletList'))} disabled={disabled}onClick={() => editor.chain().focus().toggleBulletList().run()}- title="Bullet list"+ title={t('docEdit.bulletList')}><IList className="w-4 h-4" /></button><buttontype="button" className={btn(editor.isActive('orderedList'))} disabled={disabled}onClick={() => editor.chain().focus().toggleOrderedList().run()}- title="Ordered list"+ title={t('docEdit.orderedList')}><IListOrdered className="w-4 h-4" /></button><buttontype="button" className={btn(editor.isActive('blockquote'))} disabled={disabled}onClick={() => editor.chain().focus().toggleBlockquote().run()}- title="Quote"+ title={t('docEdit.quote')}><IQuote className="w-4 h-4" /></button><ToolbarSep /><buttontype="button" className={btn(editor.isActive('code'))} disabled={disabled}onClick={() => editor.chain().focus().toggleCode().run()}- title="Inline code"+ title={t('docEdit.inlineCode')}><ICode className="w-4 h-4" /></button><buttontype="button" className={btn(editor.isActive('codeBlock'))} disabled={disabled}onClick={() => editor.chain().focus().toggleCodeBlock().run()}- title="Code block"+ title={t('docEdit.codeBlock')}><ICodeBlock className="w-4 h-4" /></button><LinkButton editor={editor} disabled={disabled} /><ImageButton editor={editor} disabled={disabled} />@@ -482,12 +487,12 @@ function Toolbar({ editor, disabled }: ToolbarProps) {<buttontype="button" className={btn(false)} disabled={disabled || !editor.can().undo()}onClick={() => editor.chain().focus().undo().run()}- title="Undo (⌘Z)"+ title={t('docEdit.undo')}><IUndo className="w-4 h-4" /></button><buttontype="button" className={btn(false)} disabled={disabled || !editor.can().redo()}onClick={() => editor.chain().focus().redo().run()}- title="Redo (⌘⇧Z)"+ title={t('docEdit.redo')}><IRedo className="w-4 h-4" /></button></div>)@@ -498,6 +503,7 @@ function ToolbarSep() {}function ImageButton({ editor, disabled }: { editor: Editor; disabled: boolean }) {+ const t = useT()const fileRef = useRef<HTMLInputElement | null>(null)const [uploading, setUploading] = useState(false)const insertImage = (attrs: { src: string; alt?: string; storageKey?: string | null }) => {@@ -510,18 +516,18 @@ function ImageButton({ editor, disabled }: { editor: Editor; disabled: boolean }}const uploadAndInsert = async (file: File) => {if (!file.type.startsWith('image/')) {- alert('Choose an image file.')+ alert(t('docEdit.chooseImageFile'))return}setUploading(true)try {const attachment = await api.uploadFile(file)- if (attachment.kind !== 'img') throw new Error('Uploaded file is not an image.')+ if (attachment.kind !== 'img') throw new Error(t('docEdit.uploadedNotImage'))insertImage({ src: attachment.url, alt: attachment.name, storageKey: attachment.key ?? null })} catch (err) {const msg = err instanceof Error ? err.message : String(err)console.warn('[docs] image upload failed', msg)- alert(`Image upload failed: ${msg}`)+ alert(t('docEdit.uploadFailed', { msg }))} finally {setUploading(false)}@@ -545,14 +551,14 @@ function ImageButton({ editor, disabled }: { editor: Editor; disabled: boolean }onClick={(event) => {if (event.altKey) {const existing = editor.getAttributes('image') as { src?: string; alt?: string }- const input = prompt('Image URL:', existing.src ?? '')+ const input = prompt(t('docEdit.imageUrlPrompt'), existing.src ?? '')if (input === null) returnconst url = input.trim()if (!url || !isSafeImageUrl(url)) {- alert('Use an http(s) URL or an app-relative /path.')+ alert(t('docEdit.imageUrlInvalid'))return}- const altInput = prompt('Alt text:', existing.alt ?? '')+ const altInput = prompt(t('docEdit.altTextPrompt'), existing.alt ?? '')if (altInput === null) returnconst alt = altInput.trim()insertImage(alt ? { src: url, alt } : { src: url })@@ -568,7 +574,7 @@ function ImageButton({ editor, disabled }: { editor: Editor; disabled: boolean }: 'text-stone-600 hover:bg-stone-100'),)}- title={uploading ? 'Uploading image' : 'Insert image'}+ title={uploading ? t('docEdit.uploadingImage') : t('docEdit.insertImage')}><IImage className="w-4 h-4" /></button>@@ -577,6 +583,7 @@ function ImageButton({ editor, disabled }: { editor: Editor; disabled: boolean }}function LinkButton({ editor, disabled }: { editor: Editor; disabled: boolean }) {+ const t = useT()const isActive = editor.isActive('link')return (<button@@ -584,7 +591,7 @@ function LinkButton({ editor, disabled }: { editor: Editor; disabled: boolean })disabled={disabled}onClick={() => {const existing = editor.getAttributes('link').href as string | undefined- const input = prompt('Link URL (leave empty to unlink):', existing ?? '')+ const input = prompt(t('docEdit.linkPrompt'), existing ?? '')if (input === null) returnconst url = input.trim()if (!url) {@@ -601,7 +608,7 @@ function LinkButton({ editor, disabled }: { editor: Editor; disabled: boolean }): 'text-stone-600 hover:bg-stone-100'),)}- title="Link"+ title={t('docEdit.link')}><ILink className="w-4 h-4" /></button>@@ -613,6 +620,7 @@ function LinkButton({ editor, disabled }: { editor: Editor; disabled: boolean })interface PeerInfo { clientId: number; name: string; color: string }function PresenceStrip({ session, synced }: { session: YDocSession; synced: boolean }) {+ const t = useT()const [peers, setPeers] = useState<PeerInfo[]>([])useEffect(() => {const refresh = () => {@@ -634,8 +642,8 @@ function PresenceStrip({ session, synced }: { session: YDocSession; synced: bool// ascent/descent (16.5px for 12px Manrope), not line-height, so it// centers on a different baseline than the 12px-tall Delete button.// As a block, height = leading-none line-height = 12px = same box.- if (!synced) return <span className="block text-xs leading-none text-stone-400">syncing…</span>- if (peers.length === 0) return <span className="block text-xs leading-none text-stone-400">only you</span>+ if (!synced) return <span className="block text-xs leading-none text-stone-400">{t('docEdit.syncing')}</span>+ if (peers.length === 0) return <span className="block text-xs leading-none text-stone-400">{t('docEdit.onlyYou')}</span>return (<div className="flex items-center -space-x-1.5">{peers.slice(0, 6).map((p) => (diff --git a/src/components/EmailComposer.tsx b/src/components/EmailComposer.tsxindex f03cc2b..645f6b7 100644--- a/src/components/EmailComposer.tsx+++ b/src/components/EmailComposer.tsx@@ -29,6 +29,7 @@ import { IMail } from './icons'import { api } from '@/api/client'import { cn } from '@/lib/utils'import type { Message, Participant } from '@/types'+import { useT } from '@/lib/i18n'/** Pending or completed file attachment in the composer. We track the* upload lifecycle locally so the user gets immediate feedback (filename@@ -187,6 +188,7 @@ function PillField({}export function EmailComposer() {+ const t = useT()const compose = useApp((s) => s.composeEmail)const close = useApp((s) => s.closeCompose)const select = useApp((s) => s.selectConversation)@@ -333,17 +335,17 @@ export function EmailComposer() {const submit = async () => {setError(null)- if (!body.trim()) { setError('body is required'); return }+ if (!body.trim()) { setError(t('email.errBodyRequired')); return }if (!isReply) {- if (to.length === 0) { setError('add at least one recipient'); return }- if (!subject.trim()) { setError('subject is required'); return }+ if (to.length === 0) { setError(t('email.errAddRecipient')); return }+ if (!subject.trim()) { setError(t('email.errSubjectRequired')); return }}// Refuse to send while any attachment is still in flight or errored —// sending partial would silently drop files and confuse the recipient.const pending = attachments.filter((a) => a.state === 'uploading')const failed = attachments.filter((a) => a.state === 'error')- if (pending.length > 0) { setError(`${pending.length} attachment(s) still uploading`); return }- if (failed.length > 0) { setError(`remove failed attachments before sending`); return }+ if (pending.length > 0) { setError(t('email.errAttachmentsUploading', { count: pending.length })); return }+ if (failed.length > 0) { setError(t('email.errRemoveFailedAttachments')); return }const attachmentArgs = attachments.filter((a) => a.state === 'done' && a.key).map((a) => ({ key: a.key!, filename: a.filename, mimeType: a.mimeType, sizeBytes: a.sizeBytes }))@@ -381,7 +383,7 @@ export function EmailComposer() {<div className="fixed inset-0 z-[55] grid place-items-end pointer-events-none" aria-modal="true">{/* Click-outside backdrop. Click anywhere outside the panel to close. */}<button- aria-label="Close composer backdrop"+ aria-label={t('email.closeComposerBackdropAria')}onClick={close}className="absolute inset-0 bg-ink-900/15 pointer-events-auto animate-fade-in"style={{ animationDuration: '120ms' }}@@ -414,20 +416,20 @@ export function EmailComposer() {className="px-5 py-3 rounded-[10px] bg-cloud border border-sky2-200 text-skype-deep font-semibold text-[13px] flex items-center gap-2"style={{ boxShadow: '0 8px 24px -8px rgba(0, 168, 240, 0.35)' }}>- 📎 Drop to attach+ 📎 {t('email.dropToAttach')}</div></div>)}<div className="flex items-center gap-2 py-3 px-4 border-b border-[rgba(120,110,95,0.25)]"><IMail className="w-4 h-4 text-[#7A6A3F]" strokeWidth={2} /><h2 className="text-[14px] font-semibold text-ink-900 tracking-tight">- {isReply ? 'Reply by email' : 'New email'}+ {isReply ? t('email.composerReplyByEmail') : t('email.composerNewEmail')}</h2><buttontype="button"onClick={close}className="ml-auto w-7 h-7 rounded-full grid place-items-center text-ink-500 hover:bg-cloud transition"- aria-label="Close composer"+ aria-label={t('email.closeComposerAria')}>×</button></div>@@ -436,16 +438,16 @@ export function EmailComposer() {label="To"entries={to}onChange={setTo}- placeholder="address or @id, comma to add"+ placeholder={t('email.toPlaceholder')}autocompletePool={pool}/>)}{!isReply && (showCc || cc.length > 0 ? (<PillField- label="Cc"+ label={t('email.ccLabel')}entries={cc}onChange={setCc}- placeholder="optional"+ placeholder={t('common.optional')}autocompletePool={pool}/>) : (@@ -454,17 +456,17 @@ export function EmailComposer() {type="button"onClick={() => setShowCc(true)}className="text-[11px] text-skype-deep hover:underline"- >+ Cc</button>+ >{t('email.addCc')}</button></div>))}{!isReply && (<div className="grid grid-cols-[60px_1fr] gap-2 items-center py-2 px-3 border-b border-[rgba(120,110,95,0.25)]">- <span className="text-[10.5px] font-bold text-ink-300 uppercase tracking-wider">Subject</span>+ <span className="text-[10.5px] font-bold text-ink-300 uppercase tracking-wider">{t('email.subjectLabel')}</span><inputtype="text"value={subject}onChange={(e) => setSubject(e.target.value)}- placeholder="What's this about?"+ placeholder={t('email.subjectPlaceholder')}className="outline-none border-0 bg-transparent text-[15px] text-ink-900 placeholder:text-ink-300 font-display"/></div>@@ -473,19 +475,19 @@ export function EmailComposer() {<div className="py-2 px-3 border-b border-[rgba(120,110,95,0.18)] bg-[rgba(120,110,95,0.04)] text-[11.5px] text-ink-500"><div className="flex items-baseline gap-2"><span className="font-bold text-ink-300 uppercase tracking-wider text-[10px]">Re:</span>- <span className="text-ink-700 font-medium">{replyOriginal.email.subject || '(no subject)'}</span>+ <span className="text-ink-700 font-medium">{replyOriginal.email.subject || t('email.noSubject')}</span></div><div className="mt-0.5 truncate">- from <span className="text-ink-700">{replyOriginal.email.from}</span>+ {t('email.fromLabel')} <span className="text-ink-700">{replyOriginal.email.from}</span></div></div>)}{isReply && (<PillField- label="Cc"+ label={t('email.ccLabel')}entries={cc}onChange={setCc}- placeholder="add anyone to cc (optional)"+ placeholder={t('email.ccPlaceholder')}autocompletePool={pool}/>)}@@ -493,7 +495,7 @@ export function EmailComposer() {<textareavalue={body}onChange={(e) => setBody(e.target.value)}- placeholder={isReply ? 'Write your reply…' : 'Write your message…'}+ placeholder={isReply ? t('email.writeReplyPh') : t('email.writeMessagePh')}className="flex-1 outline-none border-0 bg-transparent py-3 px-4 text-[14px] leading-[1.55] text-ink-700 placeholder:text-ink-300 resize-none font-sans"autoFocus/>@@ -509,8 +511,8 @@ export function EmailComposer() {<div className="truncate text-ink-700 font-medium">{a.filename}</div><div className="text-[10.5px] text-ink-400 uppercase tracking-wider">{a.mimeType} · {humanBytes(a.sizeBytes)}- {a.state === 'uploading' && ' · uploading…'}- {a.state === 'error' && ` · ${a.error ?? 'upload failed'}`}+ {a.state === 'uploading' && ` · ${t('email.uploading')}`}+ {a.state === 'error' && ` · ${a.error ?? t('email.uploadFailed')}`}</div></div><button@@ -543,17 +545,17 @@ export function EmailComposer() {onClick={() => fileInputRef.current?.click()}disabled={sending}className="py-2 px-2.5 text-[12px] font-semibold text-ink-700 bg-cloud border border-ink-100 rounded-[7px] hover:border-sky2-200 hover:text-skype-deep transition disabled:opacity-50"- title="Attach a file"+ title={t('email.attachFile')}>📎 Attach</button><span className="text-[11px] text-ink-300 mr-auto">- from <span className="font-mono text-ink-500">{me?.email ?? '(no auth email)'}</span>+ {t('email.fromLabel')} <span className="font-mono text-ink-500">{me?.email ?? t('email.noAuthEmail')}</span></span><buttontype="button"onClick={close}disabled={sending}className="py-2 px-3 text-[12px] font-semibold text-ink-700 hover:text-ink-900 transition disabled:opacity-50"- >Cancel</button>+ >{t('common.cancel')}</button><buttontype="button"onClick={submit}@@ -565,7 +567,7 @@ export function EmailComposer() {background: 'var(--skype)',boxShadow: '0 4px 12px -3px rgba(0, 168, 240, 0.45)',}}- >{sending ? 'Sending…' : isReply ? 'Send reply' : 'Send'}</button>+ >{sending ? t('email.sending') : isReply ? t('email.sendReply') : t('email.send')}</button></div></div></div>diff --git a/src/components/ErrorBoundary.tsx b/src/components/ErrorBoundary.tsxindex c5428bc..7b6593b 100644--- a/src/components/ErrorBoundary.tsx+++ b/src/components/ErrorBoundary.tsx@@ -1,4 +1,5 @@import { Component, type ErrorInfo, type ReactNode } from 'react'+import { translate, useLocaleStore } from '@/lib/i18n'interface Props { children: ReactNode }interface State { error: Error | null; resetKey: number }@@ -18,16 +19,17 @@ export class ErrorBoundary extends Component<Props, State> {render(): ReactNode {if (this.state.error) {+ const locale = useLocaleStore.getState().locale+ const t = (key: Parameters<typeof translate>[1]) => translate(locale, key)return (<div className="fixed inset-0 grid place-items-center bg-paper p-8"><div className="max-w-[460px] text-center"><div className="font-display font-medium text-[32px] tracking-tight text-ink-900 mb-2"style={{ letterSpacing: '-0.025em' }}>- Something cracked.+ {t('errorBoundary.somethingCracked')}</div><div className="font-display italic text-[14px] text-ink-500 leading-relaxed mb-5">- The view hit an unexpected state. Your data is safe — this is- just the screen reacting badly.+ {t('errorBoundary.fallbackBody')}</div><preclassName="text-left text-[11.5px] font-mono text-ink-700 bg-cloud rounded-[10px] py-2.5 px-3 mb-5 overflow-x-auto whitespace-pre-wrap break-words"@@ -43,12 +45,12 @@ export class ErrorBoundary extends Component<Props, State> {background: 'linear-gradient(135deg, var(--skype), var(--skype-deep))',boxShadow: '0 6px 16px -4px rgba(0, 168, 240, 0.45)',}}- >Reset view</button>+ >{t('errorBoundary.resetView')}</button><buttononClick={() => window.location.reload()}className="py-2 px-4 rounded-[10px] text-[13px] font-semibold text-ink-700 bg-cloud"style={{ border: '1px solid var(--ink-100)' }}- >Reload</button>+ >{t('errorBoundary.reload')}</button></div></div></div>diff --git a/src/components/EventEditor.tsx b/src/components/EventEditor.tsxindex 2769cb6..fbbf0f8 100644--- a/src/components/EventEditor.tsx+++ b/src/components/EventEditor.tsx@@ -14,6 +14,7 @@ import { DateTimePicker } from '@/components/DateTimePicker'import { Input } from '@/components/Input'import { TextArea } from '@/components/TextArea'import type { CalendarEvent, CalendarEventKind, RecurrenceRule, Participant } from '@/types'+import { useTLabel } from '@/lib/i18n'/** Prefilled defaults passed in when creating a NEW event from a calendar* drag-select or right-click. Ignored when `event` is supplied (edit@@ -33,7 +34,19 @@ interface Props {onClose: () => void}+// i18n: original English labels stay as the source of truth (and fallback)+// so future copy edits by the author auto-flow. The parallel lookup table+// gives t() a MessageKey to resolve without changing the data shape.const WEEKDAY_LABELS = ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat']+const WEEKDAY_LABEL_KEY = [+ 'event.weekdaySun',+ 'event.weekdayMon',+ 'event.weekdayTue',+ 'event.weekdayWed',+ 'event.weekdayThu',+ 'event.weekdayFri',+ 'event.weekdaySat',+] as const/** Format a JS Date into `YYYY-MM-DDTHH:mm` for `<input type=datetime-local>`. */function toLocalInput(d: Date): string {@@ -50,6 +63,11 @@ function fromLocalInput(s: string): string {}export function EventEditor({ event, prefill, onClose }: Props) {+ // Non-invasive i18n: prefer translated MessageKey, fall back to the+ // author's original English literal so future copy edits stay in sync.+ // The optional params object is forwarded to t() when the bundle has+ // a translated entry that uses interpolation.+ const tLabel = useTLabel()const create = useCalendar((s) => s.create)const update = useCalendar((s) => s.update)const remove = useCalendar((s) => s.remove)@@ -126,9 +144,9 @@ export function EventEditor({ event, prefill, onClose }: Props) {const submit = async () => {setErr(null)const cleanTitle = title.trim()- if (!cleanTitle) { setErr('title is required'); return }- if (kind === 'agent_task' && !assigneeId) { setErr('pick an assignee for the agent task'); return }- if (!startAt) { setErr('start time is required'); return }+ if (!cleanTitle) { setErr(tLabel('event.titleRequired', "title is required")); return }+ if (kind === 'agent_task' && !assigneeId) { setErr(tLabel('event.assigneeRequired', "pick an assignee for the agent task")); return }+ if (!startAt) { setErr(tLabel('event.startTimeRequired', "start time is required")); return }const recurrence: RecurrenceRule | null = recurEnabled? {@@ -172,7 +190,7 @@ export function EventEditor({ event, prefill, onClose }: Props) {const onDelete = async () => {if (!event) return- if (!confirm(`Delete "${event.title}"? This wipes its dispatch history too.`)) return+ if (!confirm(tLabel('event.deleteConfirm', `Delete "${event.title}"? This wipes its dispatch history too.`, { title: event.title }))) returnsetBusy(true)try {await remove(event.id)@@ -190,7 +208,7 @@ export function EventEditor({ event, prefill, onClose }: Props) {try {const r = await runNow(event.id)if (r.status === 'dispatched') onClose()- else setErr(`run-now: ${r.status}${r.error ? ` — ${r.error}` : ''}`)+ else setErr(tLabel('event.runNowError', `run-now: ${r.status}${r.error ? ` — ${r.error}` : ''}`, { status: r.status, error: r.error ? tLabel('event.runNowErrorSep', ' — ') + r.error : '' }))} catch (e) {setErr(e instanceof Error ? e.message : String(e))} finally {@@ -213,28 +231,26 @@ export function EventEditor({ event, prefill, onClose }: Props) {><div className="px-6 py-5 border-b border-ink-100 shrink-0"><h2 className="font-display font-medium text-[20px] tracking-tight">- {isEdit ? 'Edit event' : 'New event'}+ {isEdit ? tLabel('event.editEvent', "Edit event") : tLabel('event.newEvent', "New event")}</h2><div className="text-[12.5px] text-ink-500 italic font-display mt-0.5">- {kind === 'agent_task'- ? 'Pick an agent and a time. When it fires, your prompt lands in the conversation and wakes them.'- : 'A personal time marker — no agent gets pinged.'}+ {kind === 'agent_task' ? tLabel('event.subtitleAgentTask', "Pick an agent and a time. When it fires, your prompt lands in the conversation and wakes them.") : tLabel('event.subtitlePersonal', "A personal time marker — no agent gets pinged.")}</div></div><div className="px-6 py-5 overflow-y-auto overflow-x-hidden flex-1 min-h-0 space-y-5">- <Field label="Title">+ <Field label={tLabel('event.titleLabel', "Title")}><Inputtype="text"value={title}onChange={(e) => setTitle(e.target.value)}- placeholder="e.g. Daily standup digest"+ placeholder={tLabel('event.titlePh', "e.g. Daily standup digest")}autoFocusmaxLength={200}/></Field>- <Field label="Kind" hint="Agent task fires a prompt; personal is just a time marker.">+ <Field label={tLabel('event.kindLabel', "Kind")} hint={tLabel('event.kindHint', "Agent task fires a prompt; personal is just a time marker.")}><div className="flex gap-2">{(['agent_task', 'personal'] as const).map((k) => (<button@@ -247,35 +263,32 @@ export function EventEditor({ event, prefill, onClose }: Props) {color: kind === k ? 'white' : 'var(--ink-700)',border: '1.5px solid ' + (kind === k ? 'var(--skype)' : 'var(--ink-100)'),}}- >{k === 'agent_task' ? 'Agent task' : 'Personal'}</button>+ >{k === 'agent_task' ? tLabel('event.kindAgentTask', "Agent task") : tLabel('event.kindPersonal', "Personal")}</button>))}</div></Field>- <Field label="When">+ <Field label={tLabel('event.whenLabel', "When")}><label className="flex items-center gap-2 text-[13px] text-ink-700 mb-2 cursor-pointer"><inputtype="checkbox"checked={allDay}onChange={(e) => setAllDay(e.target.checked)}/>- All-day+ {tLabel('event.allDay', "All-day")}</label><div className="grid grid-cols-2 gap-2"><div>- <div className="text-[10px] uppercase tracking-wider text-ink-400 mb-1">Starts</div>+ <div className="text-[10px] uppercase tracking-wider text-ink-400 mb-1">{tLabel('event.startsLabel', "Starts")}</div><DateTimePickermode={allDay ? 'date' : 'datetime'}value={startAt}- // All-day saves T00:00; otherwise the picker emits its- // normal HH:mm. We round-trip through the same value- // shape regardless of mode so the submit logic stays put.onChange={(v) => setStartAt(allDay ? `${v.slice(0, 10)}T00:00` : v)}/></div><div><div className="text-[10px] uppercase tracking-wider text-ink-400 mb-1">- Ends <span className="normal-case text-ink-300">— optional</span>+ {tLabel('event.endsLabel', "Ends")} <span className="normal-case text-ink-300">{tLabel('event.endsOptional', "— optional")}</span></div><DateTimePickermode={allDay ? 'date' : 'datetime'}@@ -291,19 +304,19 @@ export function EventEditor({ event, prefill, onClose }: Props) {</div></Field>- <Field label="Repeat" hint="Leave off for a one-shot event.">+ <Field label={tLabel('event.repeatLabel', "Repeat")} hint={tLabel('event.repeatHint', "Leave off for a one-shot event.")}><label className="flex items-center gap-2 text-[13px] text-ink-700 mb-2 cursor-pointer"><inputtype="checkbox"checked={recurEnabled}onChange={(e) => setRecurEnabled(e.target.checked)}/>- Recurring+ {tLabel('event.recurring', "Recurring")}</label>{recurEnabled && (<div className="space-y-2 pl-1"><div className="flex items-center gap-2">- <span className="text-[12.5px] text-ink-500">every</span>+ <span className="text-[12.5px] text-ink-500">{tLabel('event.everyLabel', "every")}</span><Inputtype="number"min={1}@@ -317,10 +330,10 @@ export function EventEditor({ event, prefill, onClose }: Props) {className="ev-input"style={{ width: 'auto' }}>- <option value="daily">day{recur.interval > 1 ? 's' : ''}</option>- <option value="weekly">week{recur.interval > 1 ? 's' : ''}</option>- <option value="monthly">month{recur.interval > 1 ? 's' : ''}</option>- <option value="yearly">year{recur.interval > 1 ? 's' : ''}</option>+ <option value="daily">{`day${recur.interval > 1 ? 's' : ''}`}</option>+ <option value="weekly">{`week${recur.interval > 1 ? 's' : ''}`}</option>+ <option value="monthly">{`month${recur.interval > 1 ? 's' : ''}`}</option>+ <option value="yearly">{`year${recur.interval > 1 ? 's' : ''}`}</option></select></div>{recur.freq === 'weekly' && (@@ -343,20 +356,20 @@ export function EventEditor({ event, prefill, onClose }: Props) {color: on ? 'white' : 'var(--ink-600)',border: '1.5px solid ' + (on ? 'var(--skype)' : 'var(--ink-100)'),}}- >{label}</button>+ >{tLabel(WEEKDAY_LABEL_KEY[idx], label)}</button>)})}</div>)}<div className="flex items-center gap-3 flex-wrap"><div className="text-[11.5px] text-ink-500 flex items-center gap-1.5">- <span>until</span>+ <span>{tLabel('event.untilLabel', "until")}</span><div style={{ width: 180 }}><DateTimePickermode="date"value={recur.until ? `${recur.until.slice(0, 10)}T00:00` : ''}allowClear- placeholder="never"+ placeholder={tLabel('event.neverPh', "never")}onChange={(v) => setRecur({...recur,until: v ? new Date(`${v.slice(0, 10)}T00:00:00`).toISOString() : null,@@ -365,30 +378,30 @@ export function EventEditor({ event, prefill, onClose }: Props) {</div></div><label className="text-[11.5px] text-ink-500 flex items-center gap-1.5">- or max+ {tLabel('event.orMaxLabel', "or max")}<Inputtype="number"min={1}- placeholder="∞"+ placeholder={tLabel('event.infinitePh', "∞")}value={recur.count ?? ''}onChange={(e) => setRecur({ ...recur, count: e.target.value ? Math.max(1, Number(e.target.value)) : null })}style={{ width: 80 }}/>- times+ {tLabel('event.timesLabel', "times")}</label></div></div>)}</Field>- <Field label="Reminder" hint="Heads-up to you (and any human assignee) before each occurrence.">+ <Field label={tLabel('event.reminderLabel', "Reminder")} hint={tLabel('event.reminderHint', "Heads-up to you (and any human assignee) before each occurrence.")}><label className="flex items-center gap-2 text-[13px] text-ink-700 mb-2 cursor-pointer"><inputtype="checkbox"checked={reminderEnabled}onChange={(e) => setReminderEnabled(e.target.checked)}/>- Remind me before+ {tLabel('event.remindMeBefore', "Remind me before")}</label>{reminderEnabled && (<div className="space-y-2 pl-1">@@ -412,7 +425,7 @@ export function EventEditor({ event, prefill, onClose }: Props) {)})}</div>- <span className="text-[11.5px] text-ink-400">or</span>+ <span className="text-[11.5px] text-ink-400">{tLabel('event.orLabel', "or")}</span><Inputtype="number"min={0}@@ -420,7 +433,7 @@ export function EventEditor({ event, prefill, onClose }: Props) {onChange={(e) => setReminderMinutes(Math.max(0, Number(e.target.value) || 0))}style={{ width: 80 }}/>- <span className="text-[11.5px] text-ink-500">minutes before</span>+ <span className="text-[11.5px] text-ink-500">{tLabel('event.minutesBefore', "minutes before")}</span></div><div className="flex gap-1.5">{(['toast', 'email', 'both'] as const).map((ch) => {@@ -436,7 +449,7 @@ export function EventEditor({ event, prefill, onClose }: Props) {color: on ? 'white' : 'var(--ink-700)',border: '1.5px solid ' + (on ? 'var(--skype)' : 'var(--ink-100)'),}}- >{ch === 'toast' ? 'Toast' : ch === 'email' ? 'Email' : 'Both'}</button>+ >{ch === 'toast' ? tLabel('event.remChannelToast', "Toast") : ch === 'email' ? tLabel('event.remChannelEmail', "Email") : tLabel('event.remChannelBoth', "Both")}</button>)})}</div>@@ -446,7 +459,7 @@ export function EventEditor({ event, prefill, onClose }: Props) {{kind === 'agent_task' && (<>- <Field label="Assign to" hint="The agent (or human) who'll receive the dispatch.">+ <Field label={tLabel('event.assignToLabel', "Assign to")} hint={tLabel('event.assignToHint', "The agent (or human) who'll receive the dispatch.")}><div className="grid grid-cols-1 gap-1 max-h-[200px] overflow-auto pr-1">{candidates.map((p) => {const on = assigneeId === p.id@@ -465,7 +478,7 @@ export function EventEditor({ event, prefill, onClose }: Props) {<div className="flex-1 min-w-0"><div className="text-[13px] font-semibold text-ink-900 truncate">{p.name}</div><div className="text-[11px] text-ink-500 truncate">- {p.role || (p.kind === 'human' ? 'human' : 'agent')}+ {p.role || (p.kind === 'human' ? tLabel('common.human', "human") : tLabel('common.agent', "agent"))}</div></div>{on && (@@ -476,30 +489,30 @@ export function EventEditor({ event, prefill, onClose }: Props) {})}{candidates.length === 0 && (<div className="text-[12.5px] text-ink-500 italic font-display py-4 text-center">- No teammates available — add an agent first.+ {tLabel('event.noTeammates', "No teammates available — add an agent first.")}</div>)}</div></Field>- <Field label="Post in" hint="Where the dispatch message lands when it fires. Leave blank to use your DM with the assignee.">+ <Field label={tLabel('event.postInLabel', "Post in")} hint={tLabel('event.postInHint', "Where the dispatch message lands when it fires. Leave blank to use your DM with the assignee.")}><selectvalue={targetConversationId ?? ''}onChange={(e) => setTargetConversationId(e.target.value || null)}className="ev-input">- <option value="">— Direct message with assignee —</option>+ <option value="">{tLabel('event.dmAssignee', "— Direct message with assignee —")}</option>{targetConvos.map((c) => (<option key={c.id} value={c.id}>{c.title}</option>))}</select></Field>- <Field label="Prompt" hint="What the agent should do each time. Plain text — agents see it as a system message.">+ <Field label={tLabel('event.promptLabel', "Prompt")} hint={tLabel('event.promptHint', "What the agent should do each time. Plain text — agents see it as a system message.")}><TextAreavalue={agentPrompt}onChange={(e) => setAgentPrompt(e.target.value)}- placeholder="e.g. Summarize the past 24h of conversation activity and post the digest here."+ placeholder={tLabel('event.promptPh', "e.g. Summarize the past 24h of conversation activity and post the digest here.")}rows={4}maxLength={8000}/>@@ -507,22 +520,22 @@ export function EventEditor({ event, prefill, onClose }: Props) {</>)}- <Field label="Privacy" hint="Private events only show up for the creator and the assignee. The workspace owner can still see private events that involve an agent, for supervision. Default: shared with everyone in the workspace.">+ <Field label={tLabel('event.privacyLabel', "Privacy")} hint={tLabel('event.privacyHint', "Private events only show up for the creator and the assignee. The workspace owner can still see private events that involve an agent, for supervision. Default: shared with everyone in the workspace.")}><label className="flex items-center gap-2 text-[13px] text-ink-700 cursor-pointer"><inputtype="checkbox"checked={isPrivate}onChange={(e) => setIsPrivate(e.target.checked)}/>- <span>🔒 Private — hide from the shared calendar</span>+ <span>{tLabel('event.privateHideShared', "🔒 Private — hide from the shared calendar")}</span></label></Field>- <Field label="Notes" hint="Optional context — shown alongside the prompt on dispatch.">+ <Field label={tLabel('event.notesLabel', "Notes")} hint={tLabel('event.notesHint', "Optional context — shown alongside the prompt on dispatch.")}><TextAreavalue={description}onChange={(e) => setDescription(e.target.value)}- placeholder="Anything else worth knowing…"+ placeholder={tLabel('event.notesPh', "Anything else worth knowing?")}rows={2}maxLength={4000}/>@@ -540,7 +553,7 @@ export function EventEditor({ event, prefill, onClose }: Props) {disabled={busy}className="px-3 py-2 rounded-[9px] text-[12.5px] font-semibold text-coral-deep bg-cloud hover:bg-coral-soft transition"style={{ border: '1px solid var(--ink-100)' }}- >Delete</button>+ >{tLabel('common.delete', "Delete")}</button>)}{isEdit && event!.kind === 'agent_task' && event!.status === 'active' && (<button@@ -548,8 +561,8 @@ export function EventEditor({ event, prefill, onClose }: Props) {disabled={busy}className="px-3 py-2 rounded-[9px] text-[12.5px] font-semibold text-skype-deep bg-cloud hover:bg-sky2-100 transition"style={{ border: '1px solid var(--ink-100)' }}- title="Fire this event right now, without waiting for its next scheduled time"- >Run now</button>+ title={tLabel('event.runNowTitle', "Fire this event right now, without waiting for its next scheduled time")}+ >{tLabel('event.runNow', "Run now")}</button>)}<div className="flex-1" /><button@@ -557,7 +570,7 @@ export function EventEditor({ event, prefill, onClose }: Props) {disabled={busy}className="px-4 py-2 rounded-[9px] text-[12.5px] font-semibold text-ink-700 bg-cloud hover:bg-sky2-50 transition"style={{ border: '1px solid var(--ink-100)' }}- >Cancel</button>+ >{tLabel('common.cancel', "Cancel")}</button><buttononClick={submit}disabled={busy}@@ -566,7 +579,7 @@ export function EventEditor({ event, prefill, onClose }: Props) {background: 'var(--skype)',boxShadow: '0 4px 12px -3px rgba(0, 168, 240, 0.5)',}}- >{busy ? 'Saving…' : isEdit ? 'Save' : 'Schedule'}</button>+ >{busy ? tLabel('event.saving', "Saving…") : isEdit ? tLabel('common.save', "Save") : tLabel('event.schedule', "Schedule")}</button></div></div>diff --git a/src/components/GetDesktopAppLink.tsx b/src/components/GetDesktopAppLink.tsxindex 15138c9..eb9b70f 100644--- a/src/components/GetDesktopAppLink.tsx+++ b/src/components/GetDesktopAppLink.tsx@@ -12,6 +12,7 @@* coming through the welcome email).*/import type { CSSProperties } from 'react'+import { useT } from '@/lib/i18n'// `?download=1` tells the marketing site to skip its waitlist gate. We// pass it from every surface where the viewer has *some* claim to the@@ -37,12 +38,12 @@ interface Props {style?: CSSProperties}-function detectLabel(): string {+function detectLabel(t: ReturnType<typeof useT>): string {const ua = typeof navigator !== 'undefined' ? navigator.userAgent : ''- if (/Mac OS X|Macintosh/i.test(ua)) return 'Download for macOS'- if (/Windows/i.test(ua)) return 'Download for Windows'- if (/Linux/i.test(ua) && !/Android/i.test(ua)) return 'Download for Linux'- return 'Download Cumora'+ if (/Mac OS X|Macintosh/i.test(ua)) return t('download.forMac')+ if (/Windows/i.test(ua)) return t('download.forWindows')+ if (/Linux/i.test(ua) && !/Android/i.test(ua)) return t('download.forLinux')+ return t('download.generic')}interface VariantDefaults {@@ -69,7 +70,8 @@ const VARIANT_DEFAULTS: Record<GetDesktopAppLinkVariant, VariantDefaults> = {}export function GetDesktopAppLink({ variant, label, gateBypass = true, className, style }: Props) {- const text = label ?? detectLabel()+ const t = useT()+ const text = label ?? detectLabel(t)const href = gateBypass ? DOWNLOAD_URL_BYPASS : DOWNLOAD_URL_GATEDconst defaults = VARIANT_DEFAULTS[variant]// Overrides REPLACE defaults rather than merging — passing a classNamediff --git a/src/components/GroupCreator.tsx b/src/components/GroupCreator.tsxindex ab278d0..21229d3 100644--- a/src/components/GroupCreator.tsx+++ b/src/components/GroupCreator.tsx@@ -11,6 +11,7 @@ import { useApp } from '@/stores/app'import { Avatar } from '@/components/Avatar'import { Input } from '@/components/Input'import type { Participant } from '@/types'+import { useT } from '@/lib/i18n'interface Props {onClose: () => void@@ -19,6 +20,7 @@ interface Props {}export function GroupCreator({ onClose, initialPicked }: Props) {+ const t = useT()const byId = useParticipants((s) => s.byId)const select = useApp((s) => s.selectConversation)const setView = useApp((s) => s.setView)@@ -76,9 +78,9 @@ export function GroupCreator({ onClose, initialPicked }: Props) {const submit = async () => {setErr(null)- if (picked.size === 0) { setErr('pick at least one teammate'); return }+ if (picked.size === 0) { setErr(t('group.pickOne')); return }const finalTitle = title.trim() || autoTitle- if (!finalTitle) { setErr('add a title or pick a teammate'); return }+ if (!finalTitle) { setErr(t('group.addTitle')); return }setBusy(true)try {const r = await api.createGroup({ title: finalTitle, members: [...picked], projectId })@@ -107,27 +109,27 @@ export function GroupCreator({ onClose, initialPicked }: Props) {onClick={(e) => e.stopPropagation()}><div className="px-6 py-5 border-b border-ink-100 shrink-0">- <h2 className="font-display font-medium text-[20px] tracking-tight">New group</h2>+ <h2 className="font-display font-medium text-[20px] tracking-tight">{t('group.title')}</h2><div className="text-[12.5px] text-ink-500 italic font-display mt-0.5">- Pull a few teammates into a shared conversation. You'll always be in it.+ {t('group.intro')}</div></div><div className="px-6 py-5 overflow-y-auto flex-1 min-h-0"><label className="block text-[11px] font-bold tracking-wider uppercase text-ink-500 mb-1">- Title- <span className="ml-1.5 text-ink-300 normal-case font-medium tracking-normal">— optional</span>+ {t('group.fieldTitle')}+ <span className="ml-1.5 text-ink-300 normal-case font-medium tracking-normal">{t('group.fieldOptional')}</span></label><div className="text-[11.5px] text-ink-300 mb-1.5 font-display italic">{autoTitle- ? <>Leave blank to use <b className="not-italic text-ink-500">"{autoTitle}"</b>.</>- : <>What is this group about? Leave blank and we'll name it from the members you pick.</>}+ ? t('group.leaveBlankTo', { title: autoTitle })+ : t('group.whatIsAbout')}</div><Inputtype="text"value={title}onChange={(e) => setTitle(e.target.value)}- placeholder={autoTitle || 'e.g. Aurora launch — week 1'}+ placeholder={autoTitle || t('group.titlePh')}autoFocusclassName="mb-5"maxLength={80}@@ -136,11 +138,11 @@ export function GroupCreator({ onClose, initialPicked }: Props) {{projects.length > 0 && (<><label className="block text-[11px] font-bold tracking-wider uppercase text-ink-500 mb-1">- Project- <span className="ml-1.5 text-ink-300 normal-case font-medium tracking-normal">— optional</span>+ {t('group.fieldProject')}+ <span className="ml-1.5 text-ink-300 normal-case font-medium tracking-normal">{t('group.fieldOptional')}</span></label><div className="text-[11.5px] text-ink-300 mb-1.5 font-display italic">- Attach this group to a project so agents see what it belongs to.+ {t('group.attachProject')}</div><div className="flex flex-wrap gap-1.5 mb-5"><button@@ -152,7 +154,7 @@ export function GroupCreator({ onClose, initialPicked }: Props) {color: projectId === null ? 'white' : 'var(--ink-500)',border: '1px solid var(--ink-100)',}}- >No project</button>+ >{t('group.noProject')}</button>{projects.map((p) => {const on = projectId === p.idreturn (@@ -173,9 +175,9 @@ export function GroupCreator({ onClose, initialPicked }: Props) {</>)}- <label className="block text-[11px] font-bold tracking-wider uppercase text-ink-500 mb-1">Members</label>+ <label className="block text-[11px] font-bold tracking-wider uppercase text-ink-500 mb-1">{t('group.fieldMembers')}</label><div className="text-[11.5px] text-ink-300 mb-2 font-display italic">- {picked.size === 0 ? 'Click to add' : `${picked.size} selected — you are auto-included`}+ {picked.size === 0 ? t('group.clickToAdd') : t('group.nSelected', { n: picked.size })}</div><div className="grid grid-cols-1 gap-1.5">{candidates.map((p) => {@@ -195,7 +197,7 @@ export function GroupCreator({ onClose, initialPicked }: Props) {<div className="flex-1 min-w-0"><div className="text-[13px] font-semibold text-ink-900 truncate">{p.name}</div><div className="text-[11px] text-ink-500 truncate">- {p.role || (p.kind === 'human' ? 'human' : 'agent')}+ {p.role || (p.kind === 'human' ? t('group.kindHuman') : t('group.kindAgent'))}</div></div><span@@ -211,7 +213,7 @@ export function GroupCreator({ onClose, initialPicked }: Props) {})}{candidates.length === 0 && (<div className="text-[12.5px] text-ink-500 italic font-display py-4 text-center">- No teammates available — add an agent or human first.+ {t('group.noTeammates')}</div>)}</div>@@ -229,7 +231,7 @@ export function GroupCreator({ onClose, initialPicked }: Props) {disabled={busy}className="px-4 py-2 rounded-[9px] text-[12.5px] font-semibold text-ink-700 bg-cloud hover:bg-sky2-50 transition"style={{ border: '1px solid var(--ink-100)' }}- >Cancel</button>+ >{t('group.cancelBtn')}</button><div className="flex-1" /><buttononClick={submit}@@ -239,7 +241,7 @@ export function GroupCreator({ onClose, initialPicked }: Props) {background: 'var(--skype)',boxShadow: '0 4px 12px -3px rgba(0, 168, 240, 0.5)',}}- >{busy ? 'Creating…' : `Create group${picked.size > 0 ? ` (${picked.size + 1})` : ''}`}</button>+ >{busy ? t('group.creatingBtn') : (picked.size > 0 ? t('group.createBtnWithCount', { n: picked.size + 1 }) : t('group.createBtn'))}</button></div></div></div>diff --git a/src/components/ImageViewer.tsx b/src/components/ImageViewer.tsxindex e6c0da7..0c917c7 100644--- a/src/components/ImageViewer.tsx+++ b/src/components/ImageViewer.tsx@@ -1,6 +1,7 @@import { useCallback, useEffect, useRef, useState, type CSSProperties } from 'react'import { createPortal } from 'react-dom'import { isElectron, isMac, trafficLightInset } from '@/lib/runtime'+import { useT } from '@/lib/i18n'// Electron's hidden titlebar (mac) is 44px tall and marked as a drag region.// The portal renders on top of it, but the OS still treats those pixels as@@ -26,6 +27,7 @@ const MIN_SCALE = 0.1const MAX_SCALE = 12export function ImageViewer({ src, name, onClose }: ImageViewerProps) {+ const t = useT()const [scale, setScale] = useState(1)const [pos, setPos] = useState({ x: 0, y: 0 })const [dragging, setDragging] = useState(false)@@ -98,12 +100,12 @@ export function ImageViewer({ src, name, onClose }: ImageViewerProps) {const url = URL.createObjectURL(blob)const a = document.createElement('a')a.href = url- a.download = name || 'image'+ a.download = name || t('imageView.fileFallback')document.body.appendChild(a)a.click()a.remove()URL.revokeObjectURL(url)- flashToast('Downloaded')+ flashToast(t('imageView.downloaded'))} catch {window.open(src, '_blank', 'noopener,noreferrer')}@@ -120,16 +122,16 @@ export function ImageViewer({ src, name, onClose }: ImageViewerProps) {// environments (or in non-secure contexts) — guard before using.if (typeof ClipboardItem !== 'undefined' && navigator.clipboard?.write) {await navigator.clipboard.write([new ClipboardItem({ 'image/png': pngBlob })])- flashToast('Copied')+ flashToast(t('imageView.copied'))return}throw new Error('Clipboard API unavailable')} catch {try {await navigator.clipboard.writeText(src)- flashToast('Copied URL')+ flashToast(t('imageView.copiedUrl'))} catch {- flashToast('Copy failed')+ flashToast(t('imageView.copyFailed'))}}}@@ -221,13 +223,14 @@ function Toolbar({onDownload: () => voidonClose: () => void}) {+ const t = useT()return (<divclassName="absolute flex items-center gap-0.5 bg-ink-900/80 backdrop-blur-md rounded-full px-1.5 py-1 shadow-pop"style={{ top: TOP_OFFSET, right: 20, ...noDrag }}onClick={(e) => e.stopPropagation()}>- <ToolBtn title="Zoom out (−)" onClick={onZoomOut}>+ <ToolBtn title={t('imageView.zoomOut')} onClick={onZoomOut}><svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round"><circle cx="11" cy="11" r="7" /><line x1="21" y1="21" x2="16.65" y2="16.65" /><line x1="8" y1="11" x2="14" y2="11" /></svg>@@ -235,29 +238,29 @@ function Toolbar({<span className="text-cloud text-[11px] font-mono tabular-nums w-12 text-center select-none">{Math.round(scale * 100)}%</span>- <ToolBtn title="Zoom in (+)" onClick={onZoomIn}>+ <ToolBtn title={t('imageView.zoomIn')} onClick={onZoomIn}><svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round"><circle cx="11" cy="11" r="7" /><line x1="21" y1="21" x2="16.65" y2="16.65" /><line x1="11" y1="8" x2="11" y2="14" /><line x1="8" y1="11" x2="14" y2="11" /></svg></ToolBtn>- <ToolBtn title="Reset (0)" onClick={onReset}>+ <ToolBtn title={t('imageView.reset')} onClick={onReset}><svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round"><path d="M3 12a9 9 0 1 0 3-6.7L3 8" /><path d="M3 3v5h5" /></svg></ToolBtn><Sep />- <ToolBtn title="Copy image" onClick={onCopy}>+ <ToolBtn title={t('imageView.copyImage')} onClick={onCopy}><svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round"><rect x="9" y="9" width="13" height="13" rx="2" /><path d="M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1" /></svg></ToolBtn>- <ToolBtn title="Download" onClick={onDownload}>+ <ToolBtn title={t('imageView.download')} onClick={onDownload}><svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round"><path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4" /><polyline points="7 10 12 15 17 10" /><line x1="12" y1="15" x2="12" y2="3" /></svg></ToolBtn><Sep />- <ToolBtn title="Close (Esc)" onClick={onClose}>+ <ToolBtn title={t('imageView.close')} onClick={onClose}><svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round"><line x1="18" y1="6" x2="6" y2="18" /><line x1="6" y1="6" x2="18" y2="18" /></svg>diff --git a/src/components/InviteAcceptScreen.tsx b/src/components/InviteAcceptScreen.tsxindex 039547d..a1488da 100644--- a/src/components/InviteAcceptScreen.tsx+++ b/src/components/InviteAcceptScreen.tsx@@ -30,6 +30,7 @@ import { useCallback, useEffect, useState } from 'react'import { api, type ApiInvitationPreview } from '@/api/client'import { useAuth } from '@/stores/auth'import { isElectron, isWebAppHost } from '@/lib/runtime'+import { useT } from '@/lib/i18n'import { CloudLogo } from './Avatar'import { GetDesktopAppLink } from './GetDesktopAppLink'import { WindowDragStrip } from './WindowDragStrip'@@ -102,6 +103,7 @@ interface Props {}export function InviteAcceptScreen({ token, onDone }: Props) {+ const t = useT()const token_ = tokenconst tokenUserId = useAuth((s) => s.user?.id ?? null)const tokenStr = useAuth((s) => s.token)@@ -216,61 +218,63 @@ export function InviteAcceptScreen({ token, onDone }: Props) {{!joinedCompany && previewErr && (<ErrorBlock- title="Couldn't load this invitation"+ title={t('inviteAccept.couldntLoadTitle')}body={previewErr}onDismiss={() => { clearPendingInvite(); onDone() }}/>)}{!joinedCompany && !preview && !previewErr && (- <div className="text-[13px] text-ink-400 italic font-display">checking your invitation…</div>+ <div className="text-[13px] text-ink-400 italic font-display">{t('inviteAccept.checking')}</div>)}{!joinedCompany && preview && preview.status === 'not_found' && (<ErrorBlock- title="That invite link doesn't work"- body="It may have been mistyped. Ask the person who invited you to send a fresh link."+ title={t('inviteAccept.linkBrokenTitle')}+ body={t('inviteAccept.linkBrokenBody')}onDismiss={() => { clearPendingInvite(); onDone() }}/>)}{!joinedCompany && preview && preview.status === 'revoked' && (<ErrorBlock- title="This invitation was revoked"- body={`The owners of ${companyName} cancelled it. Ask them to send a new invite.`}+ title={t('inviteAccept.revokedTitle')}+ body={t('inviteAccept.revokedBody', { name: companyName })}onDismiss={() => { clearPendingInvite(); onDone() }}/>)}{!joinedCompany && preview && preview.status === 'expired' && (<ErrorBlock- title="This invitation expired"- body={`Invitations to ${companyName} expire after 7 days. Ask for a fresh one.`}+ title={t('inviteAccept.expiredTitle')}+ body={t('inviteAccept.expiredBody', { name: companyName })}onDismiss={() => { clearPendingInvite(); onDone() }}/>)}{!joinedCompany && preview && preview.status === 'consumed' && (<ErrorBlock- title="This invitation was already used"- body={`The link to ${companyName} is single-use and someone already redeemed it.`}+ title={t('inviteAccept.usedTitle')}+ body={t('inviteAccept.usedBody', { name: companyName })}onDismiss={() => { clearPendingInvite(); onDone() }}/>)}{!joinedCompany && preview && preview.status === 'wrong_email' && inv && (<div className="flex flex-col items-center gap-4 text-center">- <h1 className="font-display text-[20px] text-ink-900">Wrong account</h1>+ <h1 className="font-display text-[20px] text-ink-900">{t('inviteAccept.wrongAccount')}</h1><p className="text-[13px] text-ink-500 font-display italic leading-relaxed">- This invite to <b className="not-italic text-ink-900">{companyName}</b> is reserved for{' '}- <b className="not-italic text-ink-900">{inv.email}</b>, but you're signed in as{' '}- <b className="not-italic text-ink-900">{user?.email}</b>. Sign out and back in with the right email.+ {t('inviteAccept.wrongAccountBody', {+ company: companyName,+ email: inv.email ?? '',+ current: user?.email ?? '',+ })}</p><buttononClick={() => { useAuth.getState().clear() }}className="px-4 py-2 rounded-[10px] text-[13px] font-semibold transition"style={{ background: 'var(--ink-700)', color: 'white' }}- >Sign out</button>+ >{t('inviteAccept.signOut')}</button></div>)}@@ -289,7 +293,7 @@ export function InviteAcceptScreen({ token, onDone }: Props) {<div className="flex flex-col items-center gap-5 text-center w-full"><div className="space-y-1"><div className="text-[12.5px] text-ink-400 font-display italic">- {inviter} invited you to+ {t('inviteAccept.invitedBy', { name: inviter })}</div><h1 className="font-display text-[24px] tracking-tight text-ink-900">{companyName}@@ -314,11 +318,11 @@ export function InviteAcceptScreen({ token, onDone }: Props) {background: 'var(--skype)',boxShadow: '0 6px 16px -4px rgba(0, 168, 240, 0.5)',}}- >{busy ? 'Joining…' : `Join ${companyName} as ${inv.role}`}</button>+ >{busy ? t('inviteAccept.joinBusy') : t('inviteAccept.joinAs', { company: companyName, role: inv.role })}</button><buttononClick={() => { clearPendingInvite(); onDone() }}className="text-[12px] text-ink-400 hover:text-ink-700 transition font-display italic"- >Not now</button>+ >{t('inviteAccept.notNow')}</button></>)}@@ -349,6 +353,7 @@ function JoinedSuccessBlock({ companyName, onContinueInBrowser }: {companyName: stringonContinueInBrowser: () => void}) {+ const t = useT()return (<div className="flex flex-col items-center gap-5 text-center w-full"><div@@ -362,10 +367,10 @@ function JoinedSuccessBlock({ companyName, onContinueInBrowser }: {</div><div className="space-y-1"><h1 className="font-display text-[22px] tracking-tight text-ink-900">- Welcome to {companyName}+ {t('inviteAccept.welcomeTo', { name: companyName })}</h1><p className="text-[12.5px] text-ink-500 font-display italic">- You're in. Cumora works best as a desktop app — pick how to keep going.+ {t('inviteAccept.welcomeBody')}</p></div><div className="w-full flex flex-col gap-2.5">@@ -376,13 +381,13 @@ function JoinedSuccessBlock({ companyName, onContinueInBrowser }: {background: 'var(--skype)',boxShadow: '0 6px 16px -4px rgba(0, 168, 240, 0.5)',}}- >Open in Cumora app</button>+ >{t('inviteAccept.openApp')}</button><GetDesktopAppLink variant="button-secondary" />{!isWebAppHost && (<buttononClick={onContinueInBrowser}className="text-[12px] text-ink-400 hover:text-ink-700 transition font-display italic mt-1"- >Continue in browser</button>+ >{t('inviteAccept.continueInBrowser')}</button>)}</div></div>@@ -399,11 +404,12 @@ function AlreadyMemberBlock({ companyName, onSwitchInBrowser }: {companyName: stringonSwitchInBrowser: () => void}) {+ const t = useT()return (<div className="flex flex-col items-center gap-5 text-center w-full">- <h1 className="font-display text-[20px] text-ink-900">You're already in {companyName}</h1>+ <h1 className="font-display text-[20px] text-ink-900">{t('inviteAccept.alreadyIn', { name: companyName })}</h1><p className="text-[12.5px] text-ink-500 font-display italic -mt-2">- Pick up where you left off — on this device or anywhere you've installed Cumora.+ {t('inviteAccept.alreadyInBody')}</p><div className="w-full flex flex-col gap-2.5"><button@@ -413,13 +419,13 @@ function AlreadyMemberBlock({ companyName, onSwitchInBrowser }: {background: 'var(--skype)',boxShadow: '0 6px 16px -4px rgba(0, 168, 240, 0.5)',}}- >Open in Cumora desktop</button>+ >{t('inviteAccept.openDesktop')}</button><GetDesktopAppLink variant="button-secondary" />{!isWebAppHost && (<buttononClick={onSwitchInBrowser}className="text-[12px] text-ink-400 hover:text-ink-700 transition font-display italic mt-1"- >Continue in browser</button>+ >{t('inviteAccept.continueInBrowser')}</button>)}</div></div>@@ -428,6 +434,7 @@ function AlreadyMemberBlock({ companyName, onSwitchInBrowser }: {function ErrorBlock({ title, body, onDismiss }: { title: string; body: string; onDismiss?: () => void }) {const tokenStr = useAuth((s) => s.token)+ const t = useT()return (<div className="flex flex-col items-center gap-4 text-center"><h1 className="font-display text-[20px] text-ink-900">{title}</h1>@@ -437,13 +444,14 @@ function ErrorBlock({ title, body, onDismiss }: { title: string; body: string; oonClick={onDismiss}className="px-4 py-2 rounded-[10px] text-[12.5px] font-semibold text-ink-700 transition"style={{ background: 'var(--cloud)', border: '1px solid var(--ink-100)' }}- >Continue to Cumora</button>+ >{t('inviteAccept.continueToCumora')}</button>)}</div>)}function SignInToAccept({ token }: { token: string }) {+ const t = useT()const [busy, setBusy] = useState<'google' | 'github' | null>(null)const go = (provider: 'google' | 'github') => {setBusy(provider)@@ -473,7 +481,7 @@ function SignInToAccept({ token }: { token: string }) {return (<div className="w-full flex flex-col gap-2.5"><div className="text-[12.5px] text-ink-500 font-display italic text-center">- Sign in to accept this invite+ {t('auth.signInToAccept')}</div><buttontype="button"@@ -482,7 +490,7 @@ function SignInToAccept({ token }: { token: string }) {className="h-11 rounded-[10px] border border-ink-200 bg-white hover:bg-cloud transition-colors flex items-center justify-center gap-3 text-[14px] text-ink-800 disabled:opacity-60"><GoogleMark />- {busy === 'google' ? 'Redirecting…' : 'Continue with Google'}+ {busy === 'google' ? t('auth.redirecting') : t('auth.continueWithGoogle')}</button><buttontype="button"@@ -491,14 +499,14 @@ function SignInToAccept({ token }: { token: string }) {className="h-11 rounded-[10px] bg-[#1f2328] hover:bg-[#2a3037] text-white transition-colors flex items-center justify-center gap-3 text-[14px] disabled:opacity-60"><GitHubMark />- {busy === 'github' ? 'Redirecting…' : 'Continue with GitHub'}+ {busy === 'github' ? t('auth.redirecting') : t('auth.continueWithGithub')}</button><div className="text-[10.5px] text-ink-300 text-center font-display italic">- We use your provider only to verify it's you — no posting, no scope creep.+ {t('auth.providerNote')}</div><div className="text-[11.5px] text-ink-400 text-center font-display italic pt-1">- Don't have the desktop app yet?{' '}- <GetDesktopAppLink variant="text" label="Get Cumora" />+ {t('inviteAccept.getCumoraPre')}+ <GetDesktopAppLink variant="text" label={t('inviteAccept.getCumora')} /></div></div>)diff --git a/src/components/InvitePeopleModal.tsx b/src/components/InvitePeopleModal.tsxindex 8acf773..80c460c 100644--- a/src/components/InvitePeopleModal.tsx+++ b/src/components/InvitePeopleModal.tsx@@ -18,6 +18,7 @@import { useCallback, useEffect, useMemo, useState } from 'react'import { api, type ApiInvitation, type ApiInvitationWithToken } from '@/api/client'import { useAuth } from '@/stores/auth'+import { useT } from '@/lib/i18n'interface Props {companyId: string@@ -28,6 +29,7 @@ interface Props {type Tab = 'link' | 'email'export function InvitePeopleModal({ companyId, companyName, onClose }: Props) {+ const t = useT()const [tab, setTab] = useState<Tab>('link')const [list, setList] = useState<ApiInvitation[]>([])const [loadingList, setLoadingList] = useState(true)@@ -72,8 +74,8 @@ export function InvitePeopleModal({ companyId, companyName, onClose }: Props) {setFormErr(null); setCreated(null)if (tab === 'email') {const trimmed = email.trim()- if (!trimmed) { setFormErr('add an email'); return }- if (!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(trimmed)) { setFormErr('invalid email'); return }+ if (!trimmed) { setFormErr(t('invite.addEmailErr')); return }+ if (!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(trimmed)) { setFormErr(t('invite.invalidEmailErr')); return }}setBusy(true)try {@@ -116,30 +118,30 @@ export function InvitePeopleModal({ companyId, companyName, onClose }: Props) {><div className="px-6 py-5 border-b border-ink-100 shrink-0"><h2 className="font-display font-medium text-[20px] tracking-tight">- Invite to {companyName}+ {t('invite.title', { name: companyName })}</h2><div className="text-[12.5px] text-ink-500 italic font-display mt-0.5">- Add humans to this workspace. Share a link or invite by email.+ {t('invite.intro')}</div></div><div className="px-6 py-5 overflow-y-auto flex-1 min-h-0 space-y-5">{/* Tabs */}<div className="inline-flex rounded-[10px] p-0.5 bg-paper" style={{ border: '1px solid var(--ink-100)' }}>- {(['link', 'email'] as const).map((t) => {- const on = tab === t+ {(['link', 'email'] as const).map((tabKey) => {+ const on = tab === tabKeyreturn (<button- key={t}+ key={tabKey}type="button"- onClick={() => { setTab(t); setCreated(null); setFormErr(null) }}+ onClick={() => { setTab(tabKey); setCreated(null); setFormErr(null) }}className="px-3 py-1.5 text-[12.5px] font-semibold rounded-[8px] transition"style={{background: on ? 'var(--skype)' : 'transparent',color: on ? 'white' : 'var(--ink-500)',}}>- {t === 'link' ? 'Invite link' : 'By email'}+ {tabKey === 'link' ? t('invite.tabLink') : t('invite.tabEmail')}</button>)})}@@ -150,10 +152,10 @@ export function InvitePeopleModal({ companyId, companyName, onClose }: Props) {<div className="space-y-3"><div><label className="block text-[11px] font-bold tracking-wider uppercase text-ink-500 mb-1">+ {t('invite.fieldEmail')}</label><div className="text-[11.5px] text-ink-300 mb-1.5 font-display italic">- Single-use, locked to this address. They must sign in with the same email to redeem.+ {t('invite.emailHelp')}</div><inputtype="email"@@ -177,11 +179,10 @@ export function InvitePeopleModal({ companyId, companyName, onClose }: Props) {/><span className="flex-1 min-w-0"><span className="block text-[12.5px] font-semibold text-ink-800">- Email this invite to them+ {t('invite.sendEmailLabel')}</span><span className="block text-[11.5px] text-ink-400 font-display italic mt-0.5 leading-snug">- We'll send a short note from <b className="not-italic text-ink-600">[email protected]</b> with your name on it.- Replies go to your inbox. Uncheck if you'd rather share the link yourself.+ {t('invite.sendEmailDetail')}</span></span></label>@@ -191,14 +192,14 @@ export function InvitePeopleModal({ companyId, companyName, onClose }: Props) {{tab === 'link' && (<div className="rounded-[10px] p-3 text-[12px] text-ink-500 font-display italic" style={{ background: 'var(--paper)', border: '1px dashed var(--ink-200)' }}>- Anyone with the link can join. Use this for a small team — the link expires in 7 days and can be revoked anytime.+ {t('invite.linkHelp')}</div>)}<div className="grid grid-cols-2 gap-3"><div><label className="block text-[11px] font-bold tracking-wider uppercase text-ink-500 mb-1">- Role+ {t('invite.fieldRole')}</label><div className="flex gap-1.5">{(['member', 'admin'] as const).map((r) => {@@ -215,7 +216,7 @@ export function InvitePeopleModal({ companyId, companyName, onClose }: Props) {border: '1px solid var(--ink-100)',}}>- {r === 'member' ? 'Member' : 'Admin'}+ {r === 'member' ? t('invite.roleMember') : t('invite.roleAdmin')}</button>)})}@@ -224,15 +225,15 @@ export function InvitePeopleModal({ companyId, companyName, onClose }: Props) {<div><label className="block text-[11px] font-bold tracking-wider uppercase text-ink-500 mb-1">- Note- <span className="ml-1.5 text-ink-300 normal-case font-medium tracking-normal">— optional</span>+ {t('invite.fieldNote')}+ <span className="ml-1.5 text-ink-300 normal-case font-medium tracking-normal">{t('invite.optional')}</span></label><inputtype="text"maxLength={120}value={note}onChange={(e) => setNote(e.target.value)}- placeholder="What's this invite for?"+ placeholder={t('invite.notePh')}className="ip-input"/></div>@@ -256,9 +257,9 @@ export function InvitePeopleModal({ companyId, companyName, onClose }: Props) {boxShadow: '0 4px 12px -3px rgba(0, 168, 240, 0.5)',}}>- {busy ? 'Creating…'- : tab === 'email' ? 'Create email invite'- : 'Create invite link'}+ {busy ? t('invite.busyCreating')+ : tab === 'email' ? t('invite.createEmailBtn')+ : t('invite.createLinkBtn')}</button></div>@@ -266,15 +267,15 @@ export function InvitePeopleModal({ companyId, companyName, onClose }: Props) {<div className="pt-2"><div className="flex items-center gap-2 mb-2"><h3 className="text-[12.5px] font-bold tracking-wide uppercase text-ink-500">- Pending invitations+ {t('invite.pendingTitle')}</h3><span className="text-[11px] text-ink-300">{activeInvitations.length}</span></div>{loadingList && (- <div className="text-[12px] text-ink-300 italic font-display py-4 text-center">loading…</div>+ <div className="text-[12px] text-ink-300 italic font-display py-4 text-center">{t('invite.loading')}</div>)}{!loadingList && activeInvitations.length === 0 && (- <div className="text-[12.5px] text-ink-400 italic font-display py-3">No pending invitations.</div>+ <div className="text-[12.5px] text-ink-400 italic font-display py-3">{t('invite.noPending')}</div>)}<div className="flex flex-col gap-1.5">{activeInvitations.map((inv) => (@@ -284,7 +285,7 @@ export function InvitePeopleModal({ companyId, companyName, onClose }: Props) {{historicalInvitations.length > 0 && (<details className="mt-3"><summary className="text-[11.5px] text-ink-400 cursor-pointer font-display italic hover:text-ink-600">- Show {historicalInvitations.length} past invitation{historicalInvitations.length === 1 ? '' : 's'}+ {t('invite.showPast', { n: historicalInvitations.length, s: historicalInvitations.length === 1 ? '' : 's' })}</summary><div className="flex flex-col gap-1.5 mt-2">{historicalInvitations.map((inv) => (@@ -301,14 +302,14 @@ export function InvitePeopleModal({ companyId, companyName, onClose }: Props) {<div className="px-6 py-4 border-t border-ink-100 flex items-center gap-2 bg-paper shrink-0"><div className="text-[11.5px] text-ink-300 italic font-display">- Invitations expire after 7 days.+ {t('invite.expireFootnote')}</div><div className="flex-1" /><buttononClick={onClose}className="px-4 py-2 rounded-[9px] text-[12.5px] font-semibold text-ink-700 bg-cloud hover:bg-sky2-50 transition"style={{ border: '1px solid var(--ink-100)' }}- >Done</button>+ >{t('invite.doneBtn')}</button></div></div>@@ -334,6 +335,7 @@ export function InvitePeopleModal({ companyId, companyName, onClose }: Props) {}function CreatedInviteCard({ invite, onDone }: { invite: ApiInvitationWithToken; onDone: () => void }) {+ const t = useT()const [copied, setCopied] = useState(false)const copy = async () => {try {@@ -344,8 +346,8 @@ function CreatedInviteCard({ invite, onDone }: { invite: ApiInvitationWithToken;}const delivery = invite.emailDeliveryconst headline = delivery?.attempted && delivery.ok- ? 'Invite sent'- : 'Invite ready to share'+ ? t('invite.sentHeadline')+ : t('invite.readyHeadline')return (<divclassName="rounded-[12px] p-4 space-y-2"@@ -362,20 +364,20 @@ function CreatedInviteCard({ invite, onDone }: { invite: ApiInvitationWithToken;<div className="text-[11.5px] text-ink-500 italic font-display">{invite.email? delivery?.attempted && delivery.ok- ? <>Email delivered to <b className="not-italic text-ink-700">{invite.email}</b>. The link below is the same one we sent — copy it if you want to nudge them on another channel.</>- : <>Locked to <b className="not-italic text-ink-700">{invite.email}</b> — they must sign in with that email.</>- : <>Anyone with this link can join as a {invite.role}.</>}+ ? t('invite.deliveryOk', { email: invite.email })+ : t('invite.deliveryLocked', { email: invite.email })+ : t('invite.deliveryAnyone', { role: invite.role })}</div>{delivery && delivery.attempted && !delivery.ok && (<div className="text-[11.5px] py-1.5 px-2.5 rounded-[8px]"style={{ background: 'var(--coral-soft)', color: 'var(--coral-deep)', border: '1px solid var(--coral-deep)' }}>- Email send failed: {delivery.error ?? 'unknown error'}. Copy the link and share it manually.+ {t('invite.deliveryFailed', { err: delivery.error ?? t('invite.deliveryUnknownErr') })}</div>)}{delivery?.skipped === 'no_email_config' && (<div className="text-[11.5px] text-ink-500 py-1.5 px-2.5 rounded-[8px]"style={{ background: 'var(--cloud)', border: '1px dashed var(--ink-200)' }}>- This server isn't set up for outbound email — copy the link and share it manually.+ {t('invite.noEmailConfig')}</div>)}<div className="flex items-stretch gap-2">@@ -390,13 +392,13 @@ function CreatedInviteCard({ invite, onDone }: { invite: ApiInvitationWithToken;onClick={copy}className="px-3 py-2 rounded-[8px] text-[12px] font-semibold text-white transition"style={{ background: copied ? 'var(--leaf-700, #2d8c72)' : 'var(--ink-700)' }}- >{copied ? 'Copied' : 'Copy'}</button>+ >{copied ? t('invite.copiedBtn') : t('invite.copyBtn')}</button></div><div className="flex justify-end"><buttononClick={onDone}className="text-[11.5px] text-ink-400 hover:text-ink-700 transition"- >Dismiss</button>+ >{t('invite.dismissBtn')}</button></div></div>)@@ -411,12 +413,13 @@ function InvitationRow({onRevoke?: () => voidhistorical?: boolean}) {+ const t = useT()const expiresDistance = useMemo(() => relativeFrom(inv.expiresAt), [inv.expiresAt])const statusLabel: Record<typeof inv.status, { label: string; bg: string; fg: string }> = {- active: { label: inv.email ? 'awaiting' : 'shareable', bg: 'var(--sky-50)', fg: 'var(--sky2-700, #2466a5)' },- revoked: { label: 'revoked', bg: 'var(--cloud)', fg: 'var(--ink-400)' },- expired: { label: 'expired', bg: 'var(--cloud)', fg: 'var(--ink-400)' },- consumed: { label: 'used', bg: 'var(--cloud)', fg: 'var(--ink-400)' },+ active: { label: inv.email ? t('invite.statusAwaiting') : t('invite.statusShareable'), bg: 'var(--sky-50)', fg: 'var(--sky2-700, #2466a5)' },+ revoked: { label: t('invite.statusRevoked'), bg: 'var(--cloud)', fg: 'var(--ink-400)' },+ expired: { label: t('invite.statusExpired'), bg: 'var(--cloud)', fg: 'var(--ink-400)' },+ consumed: { label: t('invite.statusUsed'), bg: 'var(--cloud)', fg: 'var(--ink-400)' },}const pill = statusLabel[inv.status]return (@@ -427,7 +430,7 @@ function InvitationRow({<div className="flex-1 min-w-0"><div className="flex items-center gap-2 min-w-0"><div className="text-[13px] font-semibold text-ink-900 truncate">- {inv.email ?? <span className="text-ink-500 italic font-display">Shareable link</span>}+ {inv.email ?? <span className="text-ink-500 italic font-display">{t('invite.shareableLabel')}</span>}</div><spanclassName="px-1.5 py-0.5 rounded-full text-[10px] font-bold uppercase tracking-wider"@@ -437,11 +440,11 @@ function InvitationRow({</div><div className="text-[11px] text-ink-400 mt-0.5 font-display italic flex flex-wrap items-center gap-x-1.5 gap-y-0.5">{!inv.email && (- <span>{inv.useCount}/{inv.maxUses} used</span>+ <span>{t('invite.useCount', { used: inv.useCount, max: inv.maxUses })}</span>)}- {inv.status === 'active' && <span>· expires {expiresDistance}</span>}+ {inv.status === 'active' && <span>{t('invite.expiresIn', { when: expiresDistance })}</span>}{inv.status === 'consumed' && inv.lastAcceptedAt && (- <span>· last accepted {relativeFrom(inv.lastAcceptedAt)}</span>+ <span>{t('invite.lastAccepted', { when: relativeFrom(inv.lastAcceptedAt) })}</span>)}{inv.note && <span>· {inv.note}</span>}</div>@@ -453,7 +456,7 @@ function InvitationRow({onClick={onRevoke}className="px-2 py-1.5 text-[11.5px] font-semibold rounded-[8px] transition"style={{ color: 'var(--coral-deep)', border: '1px solid var(--ink-100)' }}- >Revoke</button>+ >{t('invite.revokeBtn')}</button></div>)}</div>@@ -467,6 +470,7 @@ function InvitationRow({* this limitation; the alternative is keeping plaintext tokens in DB,* which we will not.) */function CopyLinkButton({ inviteId }: { inviteId: string }) {+ const t = useT()const [copied, setCopied] = useState(false)const onClick = async () => {try {@@ -477,10 +481,10 @@ function CopyLinkButton({ inviteId }: { inviteId: string }) {return (<buttononClick={onClick}- title="Copy invite reference (the original link cannot be re-fetched — issue a new invite if you've lost it)"+ title={t('invite.copyRefTitle')}className="px-2 py-1.5 text-[11.5px] font-semibold rounded-[8px] transition"style={{ color: 'var(--ink-500)', border: '1px solid var(--ink-100)' }}- >{copied ? 'Copied' : 'Copy ref'}</button>+ >{copied ? t('invite.copiedBtn') : t('invite.copyRefBtn')}</button>)}diff --git a/src/components/LanguagePicker.tsx b/src/components/LanguagePicker.tsxnew file mode 100644index 0000000..806125a--- /dev/null+++ b/src/components/LanguagePicker.tsx@@ -0,0 +1,30 @@+/**+ * Language picker — the one control that switches the UI locale.+ *+ * Shared by desktop Preferences and the mobile You screen so the two+ * shells can't drift apart on which locales exist or how the choice is+ * worded. The switch takes effect immediately: every component that+ * renders through `useT()` is subscribed to the locale store, so there's+ * no reload and no "restart to apply".+ */+import { Select } from '@/components/Select'+import { LOCALES, useLocaleStore, useT, type Locale } from '@/lib/i18n'++export function LanguagePicker({ className }: { className?: string }) {+ const t = useT()+ const locale = useLocaleStore((s) => s.locale)+ const setLocale = useLocaleStore((s) => s.setLocale)++ return (+ <Select<Locale>+ className={className}+ value={locale}+ ariaLabel={t('common.language')}+ onValueChange={setLocale}+ // `label` is the language's own name; `hint` is its English name, so+ // someone stuck in a language they can't read can still find their+ // way back out.+ options={LOCALES.map((l) => ({ value: l.code, label: l.label, hint: l.english }))}+ />+ )+}diff --git a/src/components/MembersPopover.tsx b/src/components/MembersPopover.tsxindex f8f8651..10318fa 100644--- a/src/components/MembersPopover.tsx+++ b/src/components/MembersPopover.tsx@@ -8,6 +8,7 @@ import { Avatar } from './Avatar'import { HumanBadge } from './HumanBadge'import { useApp } from '@/stores/app'import { useMe } from '@/stores/auth'+import { useT } from '@/lib/i18n'import type { Participant } from '@/types'const STATUS_LABEL: Record<string, string> = {@@ -27,6 +28,7 @@ interface Props {}export function MembersPopover({ members, anchor, triggerRef, onClose }: Props) {+ const t = useT()const ref = useRef<HTMLDivElement>(null)const openInfo = useApp((s) => s.openAgentInfo)const meId = useMe()@@ -74,7 +76,7 @@ export function MembersPopover({ members, anchor, triggerRef, onClose }: Props)<divref={ref}role="dialog"- aria-label="Conversation members"+ aria-label={t('members.ariaLabel')}className="fixed z-[60] w-[280px] py-1 rounded-[12px] bg-cloud animate-rise"style={{left: anchor.right - 280,@@ -83,7 +85,7 @@ export function MembersPopover({ members, anchor, triggerRef, onClose }: Props)}}><div className="px-3 pt-2 pb-1.5 text-[10.5px] font-bold tracking-[0.12em] uppercase text-ink-300">- {members.length} {members.length === 1 ? 'member' : 'members'}+ {members.length === 1 ? t('members.countOne', { n: members.length }) : t('members.countOther', { n: members.length })}</div><div className="max-h-[400px] overflow-y-auto py-0.5">{sorted.map((p) => {@@ -102,7 +104,7 @@ export function MembersPopover({ members, anchor, triggerRef, onClose }: Props)<div className="flex-1 min-w-0"><div className="flex items-center gap-1.5"><span className="text-[13px] font-semibold text-ink-900 truncate">{p.name}</span>- {isYou && <span className="text-[9.5px] font-bold py-px px-1.5 rounded uppercase tracking-wider bg-sky2-100 text-skype-deep">you</span>}+ {isYou && <span className="text-[9.5px] font-bold py-px px-1.5 rounded uppercase tracking-wider bg-sky2-100 text-skype-deep">{t('members.youBadge')}</span>}{!isYou && p.kind === 'human' && <HumanBadge />}</div><div className="text-[11.5px] text-ink-500 truncate flex items-center gap-1.5">diff --git a/src/components/Message.tsx b/src/components/Message.tsxindex c8fbc12..bb94dc1 100644--- a/src/components/Message.tsx+++ b/src/components/Message.tsx@@ -28,8 +28,10 @@ import { useBoards } from '@/stores/boards'import { useCalendar } from '@/stores/calendar'import { PollBubble } from './PollBubble'import { LinkPreview, firstUrlInBody } from './LinkPreview'+import { useT } from '@/lib/i18n'function MentionChip({ id }: { id: string }) {+ const t = useT()const byId = useParticipants((s) => s.byId)const openAgentInfo = useApp((s) => s.openAgentInfo)const meId = useMe()@@ -47,7 +49,7 @@ function MentionChip({ id }: { id: string }) {style={{ verticalAlign: '-0.15em' }}><img src="/everyone.png" alt="" className="w-4 h-4 rounded-full object-cover" />- <span style={{ lineHeight: '16px' }}>@all</span>+ <span style={{ lineHeight: '16px' }}>{t('msgview.atAll')}</span></span>)}@@ -122,6 +124,7 @@ function MentionChip({ id }: { id: string }) {/** Elegant floating preview card shown on @mention hover. Renders via* portal so it escapes scroll-container clipping. */function MentionCard({ p, x, y }: { p: Participant; x: number; y: number }) {+ const t = useT()const ref = useRef<HTMLDivElement | null>(null)const [adjusted, setAdjusted] = useState<{ left: number; top: number } | null>(null)useLayoutEffect(() => {@@ -136,7 +139,7 @@ function MentionCard({ p, x, y }: { p: Participant; x: number; y: number }) {if (top + r.height > window.innerHeight - margin) top = y - r.height - 18 // flip above the anchorsetAdjusted({ left, top })}, [x, y])- const role = p.role || (p.kind === 'human' ? 'human teammate' : 'agent')+ const role = p.role || (p.kind === 'human' ? t('mobchat.humanTeammate') : t('common.agent'))return (<divref={ref}@@ -352,6 +355,7 @@ function MessageRefChip({ n }: { n: number }) {function MessagePeekCard({ msg, author, x, y }: { msg: Message; author: Participant | null; x: number; y: number },) {+ const t = useT()const ARROW = 8const W = 320const left = Math.max(8, Math.min(window.innerWidth - W - 8, x - W / 2))@@ -372,7 +376,7 @@ function MessagePeekCard(</div></div><div className="text-[12.5px] text-ink-700 leading-[1.55] line-clamp-5 break-words">- {bodyPreview || <span className="italic text-ink-400">(no text)</span>}+ {bodyPreview || <span className="italic text-ink-400">{t('msgview.noText')}</span>}</div></div></div>@@ -568,6 +572,7 @@ function timeAgo(iso: string): string {}function DocumentArtifactCard({ id: rawId, conversationId }: { id: string; conversationId: string }) {+ const t = useT()const id = useResolvedDocumentId(rawId) // git-style short-id → full idconst loaded = useDocuments((s) => s.loaded)const loadDocuments = useDocuments((s) => s.load)@@ -580,7 +585,7 @@ function DocumentArtifactCard({ id: rawId, conversationId }: { id: string; conveif (!loaded) void loadDocuments()}, [loadDocuments, loaded])- const title = doc?.title?.trim() || (loaded ? 'Document unavailable' : 'Opening document…')+ const title = doc?.title?.trim() || (loaded ? t('docs.unavailable') : t('docs.opening'))const author = doc ? byId[doc.createdBy]?.name ?? doc.createdBy : nullconst updated = doc ? timeAgo(doc.updatedAt) : nullconst isPinnedHere = doc?.conversationId === conversationId@@ -616,7 +621,7 @@ function DocumentArtifactCard({ id: rawId, conversationId }: { id: string; conve<div className="min-w-0"><div className="flex items-center gap-2 min-w-0">- <span className="text-[10px] font-bold uppercase tracking-[0.14em] text-skype-deep">Document</span>+ <span className="text-[10px] font-bold uppercase tracking-[0.14em] text-skype-deep">{t('msgview.cardDocument')}</span><span className="w-1 h-1 rounded-full bg-ink-200 shrink-0" /><span className="text-[10.5px] text-ink-400 truncate">{id}</span></div>@@ -628,14 +633,14 @@ function DocumentArtifactCard({ id: rawId, conversationId }: { id: string; conve{isPinnedHere && (<><span className="w-1 h-1 rounded-full bg-ink-200 shrink-0" />- <span className="shrink-0 text-gold-deep">in this conversation</span>+ <span className="shrink-0 text-gold-deep">{t('chat.inThisConversation')}</span></>)}</div></div><div className="ml-1 h-8 px-3 rounded-full bg-sky2-50 text-skype-deep text-[11.5px] font-semibold inline-flex items-center gap-1.5 transition group-hover:bg-skype group-hover:text-white">- Open+ {t('common.open')}<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round" className="w-3.5 h-3.5"><path d="M9 18l6-6-6-6" /></svg>@@ -646,6 +651,7 @@ function DocumentArtifactCard({ id: rawId, conversationId }: { id: string; conve}function BoardArtifactCard({ id: rawId }: { id: string }) {+ const t = useT()const id = useResolvedBoardId(rawId) // git-style short-id → full idconst loadList = useBoards((s) => s.loadList)const loadingList = useBoards((s) => s.loadingList)@@ -674,7 +680,7 @@ function BoardArtifactCard({ id: rawId }: { id: string }) {}, [id, loadBoard, loadingBoardId, snapshot])const isBoardPending = !snapshot && (loadingBoardId === id || requestedBoardId.current !== id)- const title = snapshot?.title?.trim() || summary?.title?.trim() || (isBoardPending ? 'Opening board...' : 'Board unavailable')+ const title = snapshot?.title?.trim() || summary?.title?.trim() || (isBoardPending ? t('docs.openingBoard') : t('peek.boardUnavailable'))const updated = snapshot?.updatedAt || summary?.updatedAtconst columns = snapshot?.columns.length ?? nullconst cards = snapshot?.cards.length ?? null@@ -706,7 +712,7 @@ function BoardArtifactCard({ id: rawId }: { id: string }) {<div className="min-w-0"><div className="flex items-center gap-2 min-w-0">- <span className="text-[10px] font-bold uppercase tracking-[0.14em] text-skype-deep">Kanban</span>+ <span className="text-[10px] font-bold uppercase tracking-[0.14em] text-skype-deep">{t('msgview.cardKanban')}</span><span className="w-1 h-1 rounded-full bg-ink-200 shrink-0" /><span className="text-[10.5px] text-ink-400 truncate">{id}</span></div>@@ -725,7 +731,7 @@ function BoardArtifactCard({ id: rawId }: { id: string }) {</div><div className="ml-1 h-8 px-3 rounded-full bg-sky2-50 text-skype-deep text-[11.5px] font-semibold inline-flex items-center gap-1.5 transition group-hover:bg-skype-deep group-hover:text-white">- Open+ {t('common.open')}<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round" className="w-3.5 h-3.5"><path d="M9 18l6-6-6-6" /></svg>@@ -736,6 +742,7 @@ function BoardArtifactCard({ id: rawId }: { id: string }) {}function CardArtifactCard({ id: rawId }: { id: string }) {+ const t = useT()const id = useResolvedCardId(rawId) // git-style short-id → full id (best-effort for cards)const lookup = useBoards((s) => s.cardLookups[id])const loadingCardId = useBoards((s) => s.loadingCardId)@@ -754,7 +761,7 @@ function CardArtifactCard({ id: rawId }: { id: string }) {const card = lookup?.card ?? nullconst assignee = card?.assigneeId ? byId[card.assigneeId]?.name ?? card.assigneeId : null- const title = card?.title.trim() || (failed ? 'Card unavailable' : 'Opening card...')+ const title = card?.title.trim() || (failed ? t('boards.cardUnavailable') : t('boards.openingCard'))const updated = card?.updatedAt ? timeAgo(card.updatedAt) : nullconst location = lookup ? `${lookup.board.title} -> ${lookup.column.title}` : id@@ -794,7 +801,7 @@ function CardArtifactCard({ id: rawId }: { id: string }) {<div className="min-w-0"><div className="flex items-center gap-2 min-w-0">- <span className="text-[10px] font-bold uppercase tracking-[0.14em] text-skype-deep">Kanban card</span>+ <span className="text-[10px] font-bold uppercase tracking-[0.14em] text-skype-deep">{t('msgview.cardKanbanCard')}</span><span className="w-1 h-1 rounded-full bg-ink-200 shrink-0" /><span className="text-[10.5px] text-ink-400 truncate">{id}</span></div>@@ -817,7 +824,7 @@ function CardArtifactCard({ id: rawId }: { id: string }) {</div><div className="ml-1 h-8 px-3 rounded-full bg-sky2-50 text-skype-deep text-[11.5px] font-semibold inline-flex items-center gap-1.5 transition group-hover:bg-skype-deep group-hover:text-white">- Peek+ {t('common.peek')}<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round" className="w-3.5 h-3.5"><path d="M9 18l6-6-6-6" /></svg>@@ -828,6 +835,7 @@ function CardArtifactCard({ id: rawId }: { id: string }) {}function CalendarArtifactCard({ id: rawId }: { id: string }) {+ const t = useT()const id = useResolvedCalendarId(rawId) // git-style short-id → full event idconst loadingEventId = useCalendar((s) => s.loadingEventId)const loadEvent = useCalendar((s) => s.loadEvent)@@ -844,7 +852,7 @@ function CalendarArtifactCard({ id: rawId }: { id: string }) {}}, [event, failed, id, loadEvent, loadingEventId])- const title = event?.title?.trim() || (failed ? 'Event unavailable' : 'Opening event...')+ const title = event?.title?.trim() || (failed ? t('peek.eventUnavailable') : t('docs.openingEvent'))const assignee = event?.assigneeId ? byId[event.assigneeId]?.name ?? event.assigneeId : nullconst start = event ? new Date(event.startAt) : nullconst startLabel = start && Number.isFinite(start.getTime())@@ -873,7 +881,7 @@ function CalendarArtifactCard({ id: rawId }: { id: string }) {<div className="min-w-0"><div className="flex items-center gap-2 min-w-0">- <span className="text-[10px] font-bold uppercase tracking-[0.14em] text-skype-deep">Calendar</span>+ <span className="text-[10px] font-bold uppercase tracking-[0.14em] text-skype-deep">{t('msgview.cardCalendar')}</span><span className="w-1 h-1 rounded-full bg-ink-200 shrink-0" /><span className="text-[10.5px] text-ink-400 truncate">{id}</span></div>@@ -896,7 +904,7 @@ function CalendarArtifactCard({ id: rawId }: { id: string }) {</div><div className="ml-1 h-8 px-3 rounded-full bg-sky2-50 text-skype-deep text-[11.5px] font-semibold inline-flex items-center gap-1.5 transition group-hover:bg-skype group-hover:text-white">- Open+ {t('common.open')}<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round" className="w-3.5 h-3.5"><path d="M9 18l6-6-6-6" /></svg>@@ -1055,6 +1063,7 @@ function AttachmentCard({ msg }: { msg: Message }) {* server sanitizes and the sandbox forbids scripts, so even residual* hostile markup can't escape. */function _EmailCard({ msg }: { msg: Message }) {+ const t = useT()const openComposeReply = useApp((s) => s.openComposeReply)const [showHtml, setShowHtml] = useState(false)const [htmlBody, setHtmlBody] = useState<string | null>(null)@@ -1144,12 +1153,12 @@ function _EmailCard({ msg }: { msg: Message }) {)}</div><div className="font-display font-medium text-[16px] leading-snug text-ink-900 break-words">- {e.subject || <span className="text-ink-400 italic">(no subject)</span>}+ {e.subject || <span className="text-ink-400 italic">{t('email.noSubject')}</span>}</div></div><div className="px-4 py-2.5 text-[11.5px] text-ink-500 space-y-0.5 border-b border-[rgba(120,110,95,0.18)]"><div className="flex gap-2">- <span className="font-semibold w-7 shrink-0 text-ink-300 uppercase tracking-wider text-[10px] pt-0.5">From</span>+ <span className="font-semibold w-7 shrink-0 text-ink-300 uppercase tracking-wider text-[10px] pt-0.5">{t('msgview.emailFrom')}</span><span className="text-ink-700 break-all">{e.from}</span></div>{recipients.length > 0 && recipients.map((r, i) => (@@ -1162,7 +1171,7 @@ function _EmailCard({ msg }: { msg: Message }) {{showHtml ? (<div className="px-2 py-2 bg-white">{htmlLoading && (- <div className="px-3 py-6 text-[12px] text-ink-400 italic">loading html…</div>+ <div className="px-3 py-6 text-[12px] text-ink-400 italic">{t('msgview.loadingHtml')}</div>)}{htmlError && (<div className="px-3 py-3 text-[12px] text-coral-deep">@@ -1190,7 +1199,7 @@ function _EmailCard({ msg }: { msg: Message }) {className="px-4 py-2 text-[11.5px] text-coral-deep border-t border-[rgba(196,60,50,0.25)]"style={{ background: 'rgba(196, 60, 50, 0.06)' }}>- delivery failed: {e.transportError}+ {t('email.deliveryFailedPrefix')} {e.transportError}</div>)}<div className="flex items-center gap-2 px-4 py-2 border-t border-[rgba(120,110,95,0.18)]">@@ -1200,7 +1209,7 @@ function _EmailCard({ msg }: { msg: Message }) {className="inline-flex items-center gap-1.5 py-1.5 px-3 text-[11.5px] font-semibold text-ink-700 bg-cloud border border-ink-100 rounded-[7px] hover:border-sky2-200 hover:text-skype-deep transition"><IMail className="w-3.5 h-3.5" strokeWidth={2} />- Reply+ {t('email.reply')}</button></div></div>@@ -1252,6 +1261,7 @@ function EmailAttachmentRow({ att }: { att: NonNullable<NonNullable<Message['ema* link can open in a new tab; everything is forced to target=_blank +* rel=noopener via a CSP-friendly wrapper around the body. */function EmailHtmlFrame({ html }: { html: string }) {+ const t = useT()const ref = useRef<HTMLIFrameElement | null>(null)const [h, setH] = useState(120)// Wrap the sanitized body in a minimal HTML skeleton with a base target@@ -1297,15 +1307,16 @@ function EmailHtmlFrame({ html }: { html: string }) {sandbox="allow-popups allow-popups-to-escape-sandbox"referrerPolicy="no-referrer"style={{ width: '100%', height: h, border: 0, background: 'white', borderRadius: 6 }}- title="HTML email body"+ title={t('msgview.htmlEmailBody')}/>)}function WhisperLink({ msg }: { msg: Message }) {+ const t = useT()+ const byId = useParticipants((s) => s.byId)if (!msg.whisperLink) return nullconst w = msg.whisperLink- const byId = useParticipants((s) => s.byId)const a = byId[w.pair[0]]const b = byId[w.pair[1]]return (@@ -1321,9 +1332,9 @@ function WhisperLink({ msg }: { msg: Message }) {<svg width="14" height="14" fill="none" stroke="currentColor" strokeWidth={2} viewBox="0 0 24 24"><path d="M3 12c0-4 4-8 9-8s9 4 9 8-4 8-9 8a10 10 0 01-3-.5L3 21l1.5-5A8 8 0 013 12z"/></svg></div><div className="min-w-0 flex-1">- <span className="text-whisper-deep font-bold">{a?.name}</span> and <span className="text-whisper-deep font-bold">{b?.name}</span> are whispering — <em className="font-display italic font-normal text-whisper-deep">{w.snippet}</em> · {w.count} messages+ <span className="text-whisper-deep font-bold">{a?.name}</span>{t('msgview.and')}<span className="text-whisper-deep font-bold">{b?.name}</span>{t('msgview.whisperingSuffix')} <em className="font-display italic font-normal text-whisper-deep">{w.snippet}</em> · {w.count} messages</div>- <div className="ml-auto text-[11px] font-semibold py-1 px-2.5 rounded-full bg-[rgba(124,92,255,0.15)] text-whisper-deep shrink-0">Peek →</div>+ <div className="ml-auto text-[11px] font-semibold py-1 px-2.5 rounded-full bg-[rgba(124,92,255,0.15)] text-whisper-deep shrink-0">{t('msgview.peekArrow')}</div></div>)}@@ -1516,6 +1527,7 @@ function ReactionTooltip({ emoji, names, anchorX, anchorY }: {* ApiWhisperMessage without a type adapter).*/export function SystemRow({ msg, delay = 0, animate = true }: { msg: { body: string }; delay?: number; animate?: boolean }) {+ const t = useT()const byId = useParticipants((s) => s.byId)const openAgentInfo = useApp((s) => s.openAgentInfo)// Same animate-once contract as MessageRow: don't replay the rise-in fade on@@ -1585,9 +1597,9 @@ export function SystemRow({ msg, delay = 0, animate = true }: { msg: { body: str{payload.kind === 'kicked' && actor ? (<><SystemActor p={actor} onClick={() => openAgentInfo(actor.id)} />- <span>— removed</span>+ <span>{t('msgview.removedActor')}</span><SystemActor p={subject} onClick={onClick} />- <span>from the group</span>+ <span>{t('msgview.removedFromGroup')}</span></>) : (<>@@ -1621,6 +1633,7 @@ function SystemActor({ p, onClick }: { p: Participant; onClick: () => void }) {* quoted-original via the global hash trick (`#m-${id}`) — Message rows* carry that id on the wrapper div so it works as a CSS scroll target. */function QuoteCard({ msg }: { msg: Message }) {+ const t = useT()const byId = useParticipants((s) => s.byId)const jumpToMessage = useApp((s) => s.jumpToMessage)if (!msg.quotedMessageId) return null@@ -1638,7 +1651,7 @@ function QuoteCard({ msg }: { msg: Message }) {className="mb-1 max-w-[min(100%,580px)] flex items-stretch gap-2 text-left rounded-md bg-cloud/60 border border-ink-100 hover:border-ink-200 px-2 py-1.5 transition-colors"><span className="w-[3px] rounded bg-ink-200" />- <span className="min-w-0 text-[11.5px] text-ink-400 italic">[message deleted]</span>+ <span className="min-w-0 text-[11.5px] text-ink-400 italic">{t('msgview.messageDeleted')}</span></button>)}@@ -1650,7 +1663,7 @@ function QuoteCard({ msg }: { msg: Message }) {<buttononClick={jump}className="mb-1 max-w-[min(100%,580px)] flex items-stretch gap-2 text-left rounded-md bg-cloud/60 border border-ink-100 hover:border-ink-200 hover:bg-cloud px-2 py-1.5 transition-colors"- title="Jump to original"+ title={t('msgview.jumpToOriginal')}><span className="w-[3px] rounded bg-skype" /><span className="min-w-0 flex flex-col gap-0.5">@@ -1665,13 +1678,14 @@ function QuoteCard({ msg }: { msg: Message }) {* picks up the quote draft. Composers are responsible for wiring this into* the actual sendUserMessage call. */function ReplyIconButton({ msg }: { msg: Message }) {+ const t = useT()const setReplyingTo = useApp((s) => s.setReplyingTo)return (<buttononClick={() => setReplyingTo(msg.conversationId, msg.id)}className="w-6 h-6 rounded-full hover:bg-sky2-50 grid place-items-center text-ink-400 hover:text-skype-deep"- title="Reply"- aria-label="Reply to this message"+ title={t('chat.reply')}+ aria-label={t('chat.replyToMessage')}><svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round"><polyline points="9 17 4 12 9 7" />@@ -1682,6 +1696,7 @@ function ReplyIconButton({ msg }: { msg: Message }) {}function MessageRowImpl({ msg, author, delay = 0, animate = true }: MessageRowProps) {+ const t = useT()const openAgentInfo = useApp((s) => s.openAgentInfo)const openThreadView = useApp((s) => s.openThreadView)const meId = useMe()@@ -1723,7 +1738,7 @@ function MessageRowImpl({ msg, author, delay = 0, animate = true }: MessageRowPronClick={onAvatarClick}disabled={isMine}className={cn('rounded-full transition', !isMine && 'hover:opacity-80 active:scale-95 cursor-pointer')}- title={isMine ? undefined : `Show ${author.name}'s info`}+ title={isMine ? undefined : t('chat.showAuthorInfo', { name: author.name })}><Avatar p={author} size={38} ringColor="var(--cloud)" /></button>@@ -1788,18 +1803,18 @@ function MessageRowImpl({ msg, author, delay = 0, animate = true }: MessageRowPr{(msg.failed || msg.unconfirmed) && (<div className="mt-1 flex items-center gap-2 text-[11px] text-coral-deep">- <span>{msg.unconfirmed ? 'Delivery not confirmed' : 'Failed to send'}</span>+ <span>{msg.unconfirmed ? t('chat.deliveryUnconfirmed') : t('chat.failedToSend')}</span><buttontype="button"onClick={(e) => { e.stopPropagation(); void retryFailedMessage(msg.conversationId, msg.id) }}className="font-semibold underline underline-offset-2 hover:text-coral-700"- >Retry</button>+ >{t('chat.tryAgain')}</button><span className="text-ink-300">·</span><buttontype="button"onClick={(e) => { e.stopPropagation(); discardFailedMessage(msg.conversationId, msg.id) }}className="font-semibold underline underline-offset-2 hover:text-coral-700"- >Dismiss</button>+ >{t('chat.dismiss')}</button></div>)}@@ -1854,19 +1869,20 @@ export const MessageRow = memo(MessageRowImpl)* "Iris and Bram are typing…", "Iris, Bram and 2 more are typing…").*/export function TypingRow({ names }: { names: string[] }) {+ const t = useT()const visible = names.length > 0let body: React.ReactNode = nullif (names.length === 1) {- body = <><b className="text-ink-700 font-semibold">{names[0]}</b> is typing…</>+ body = <><b className="text-ink-700 font-semibold">{names[0]}</b>{t('msgview.typingIs')}</>} else if (names.length === 2) {- body = <><b className="text-ink-700 font-semibold">{names[0]}</b> and <b className="text-ink-700 font-semibold">{names[1]}</b> are typing…</>+ body = <><b className="text-ink-700 font-semibold">{names[0]}</b>{t('msgview.and')}<b className="text-ink-700 font-semibold">{names[1]}</b>{t('msgview.typingAre')}</>} else if (names.length >= 3) {body = (<>- <b className="text-ink-700 font-semibold">{names[0]}</b>, <b className="text-ink-700 font-semibold">{names[1]}</b>+ <b className="text-ink-700 font-semibold">{names[0]}</b>{t('msgview.typingSep')}<b className="text-ink-700 font-semibold">{names[1]}</b>{names.length === 3- ? <> and <b className="text-ink-700 font-semibold">{names[2]}</b> are typing…</>- : <> and <b className="text-ink-700 font-semibold">{names.length - 2} more</b> are typing…</>}+ ? <>{t('msgview.and')}<b className="text-ink-700 font-semibold">{names[2]}</b>{t('msgview.typingAre')}</>+ : <>{t('msgview.and')}<b className="text-ink-700 font-semibold">{t('msgview.nMore', { n: names.length - 2 })}</b>{t('msgview.typingAre')}</>}</>)}diff --git a/src/components/NotificationToasts.tsx b/src/components/NotificationToasts.tsxindex cd736dc..272eaaf 100644--- a/src/components/NotificationToasts.tsx+++ b/src/components/NotificationToasts.tsx@@ -16,6 +16,7 @@* - Soft de-dup: never toast messages authored by the current user.*/import { useEffect, useRef, useState } from 'react'+import { useT } from '@/lib/i18n'import { ws } from '@/api/client'import { useApp } from '@/stores/app'import { useMe } from '@/stores/auth'@@ -347,6 +348,7 @@ export function NotificationToasts() {}function ToastCard({ toast, onClick, onDismiss }: { toast: Toast; onClick: () => void; onDismiss: () => void }) {+ const t = useT()const byId = useParticipants((s) => s.byId)const author = byId[toast.authorId]const [hovered, setHovered] = useState(false)@@ -412,7 +414,7 @@ function ToastCard({ toast, onClick, onDismiss }: { toast: Toast; onClick: () =>{toast.kind === 'calendar.reminder' ? toast.conversationTitle : (author?.name ?? toast.authorId)}</span><span className="text-[10.5px] text-ink-300 italic font-display truncate">- {toast.kind === 'calendar.reminder' ? 'Calendar reminder' : toast.conversationTitle}+ {toast.kind === 'calendar.reminder' ? t('notif.calendarReminder') : toast.conversationTitle}</span>{toast.count > 1 && (<spandiff --git a/src/components/NotificationWindow.tsx b/src/components/NotificationWindow.tsxindex d2a75cb..747daee 100644--- a/src/components/NotificationWindow.tsx+++ b/src/components/NotificationWindow.tsx@@ -17,6 +17,7 @@* Auto-dismiss after AUTO_DISMISS_MS; hover pauses the timer.*/import { useEffect, useRef, useState } from 'react'+import { useT } from '@/lib/i18n'import { AnimatePresence, motion } from 'framer-motion'import type { NotificationPushPayload } from '@/lib/runtime'@@ -260,6 +261,7 @@ function AuthorAvatar({ toast }: { toast: Toast }) {}function ToastCard({ toast, onClick, onDismiss }: { toast: Toast; onClick: () => void; onDismiss: () => void }) {+ const t = useT()const [hovered, setHovered] = useState(false)useEffect(() => {if (hovered) return@@ -307,7 +309,7 @@ function ToastCard({ toast, onClick, onDismiss }: { toast: Toast; onClick: () =><buttontype="button"onClick={(e) => { e.stopPropagation(); onDismiss() }}- aria-label="Dismiss"+ aria-label={t('notif.dismissAria')}className="absolute grid place-items-center rounded-full text-ink-500 hover:bg-ink-100 hover:text-ink-900 transition"style={{top: 6, right: 6,diff --git a/src/components/PollBubble.tsx b/src/components/PollBubble.tsxindex 78de8ad..3e23882 100644--- a/src/components/PollBubble.tsx+++ b/src/components/PollBubble.tsx@@ -3,6 +3,7 @@ import type { Message, PollTally } from '@/types'import { api } from '@/api/client'import { useParticipants } from '@/stores/participants'import { useMe } from '@/stores/auth'+import { useT } from '@/lib/i18n'import { Avatar } from './Avatar'import { cn } from '@/lib/utils'@@ -38,6 +39,7 @@ function timeRemaining(iso: string | null): string | null {}export function PollBubble({ msg }: Props) {+ const t = useT()const meId = useMe()const byId = useParticipants((s) => s.byId)const poll = msg.poll@@ -93,7 +95,7 @@ export function PollBubble({ msg }: Props) {// overlay so we render from the canonical tallies.setPendingPicks(null)} catch (e) {- setErrorMsg(e instanceof Error ? e.message : 'vote failed')+ setErrorMsg(e instanceof Error ? e.message : t('pollBubble.voteFailed'))} finally {setSubmitting(false)}@@ -145,16 +147,16 @@ export function PollBubble({ msg }: Props) {<rect x="17" y="14" width="4" height="6" rx="1" /></svg></span>- <span className="font-semibold text-ink-700">Poll</span>+ <span className="font-semibold text-ink-700">{t('pollBubble.pollLabel')}</span><span className="text-ink-300">·</span><span>{author?.name ?? msg.authorId}</span>{poll.mode === 'multi' && (- <span className="ml-1 px-1.5 py-0.5 rounded-full bg-ink-50 text-ink-500 text-[10px] tracking-wide uppercase">multi</span>+ <span className="ml-1 px-1.5 py-0.5 rounded-full bg-ink-50 text-ink-500 text-[10px] tracking-wide uppercase">{t('pollBubble.multi')}</span>)}<span className="ml-auto text-ink-400 tabular-nums">{isClosed- ? (poll.closedReason === 'expired' ? 'expired' : 'closed')- : (remaining ? `${remaining} left` : 'open')}+ ? (poll.closedReason === 'expired' ? t('pollBubble.expired') : t('pollBubble.closed'))+ : (remaining ? t('pollBubble.leftSfx', { n: remaining }) : t('pollBubble.open'))}</span></div>@@ -229,7 +231,7 @@ export function PollBubble({ msg }: Props) {<span className="relative z-[1] flex-1 min-w-0 text-[13.5px] text-ink-800 truncate">{opt.text}{isWinner && (- <span className="ml-1.5 text-[11px] text-skype-deep" title="winning option">★</span>+ <span className="ml-1.5 text-[11px] text-skype-deep" title={t('pollBubble.winningTitle')}>★</span>)}</span><span className="relative z-[1] flex items-center gap-1.5 text-[11.5px] tabular-nums text-ink-500">@@ -245,12 +247,12 @@ export function PollBubble({ msg }: Props) {{/* Footer / multi-choice submit */}<div className="px-3.5 pb-3 pt-1 flex items-center gap-2 text-[11.5px] text-ink-500 min-h-[28px]"><span className="tabular-nums">- {totalVotes === 0 ? 'no votes yet' : `${totalVotes} ${totalVotes === 1 ? 'vote' : 'votes'}`}+ {totalVotes === 0 ? t('pollBubble.noVotes') : (totalVotes === 1 ? t('pollBubble.nVotesOne', { n: totalVotes }) : t('pollBubble.nVotesOther', { n: totalVotes }))}</span>{!isClosed && myCurrentVotes.size > 0 && (<><span className="text-ink-300">·</span>- <span>you voted</span>+ <span>{t('pollBubble.youVoted')}</span></>)}{errorMsg && (@@ -264,7 +266,7 @@ export function PollBubble({ msg }: Props) {disabled={submitting}className="px-2 py-0.5 rounded-full text-ink-500 hover:bg-ink-50 transition">- reset+ {t('pollBubble.reset')}</button><buttontype="button"@@ -272,7 +274,7 @@ export function PollBubble({ msg }: Props) {disabled={submitting}className="px-2.5 py-0.5 rounded-full bg-skype-deep text-white font-semibold tracking-wide hover:brightness-105 transition disabled:opacity-50">- {submitting ? 'saving…' : 'submit'}+ {submitting ? t('pollBubble.saving') : t('pollBubble.submit')}</button></span>)}diff --git a/src/components/PollComposer.tsx b/src/components/PollComposer.tsxindex 1e83c12..ca05f37 100644--- a/src/components/PollComposer.tsx+++ b/src/components/PollComposer.tsx@@ -1,6 +1,7 @@import { useEffect, useRef, useState } from 'react'import { api } from '@/api/client'import { cn } from '@/lib/utils'+import { useT } from '@/lib/i18n'/*** Inline poll composer. Floats above the chat input when the user types@@ -40,6 +41,7 @@ function expireToMinutes(c: ExpireChoice): number | null {}export function PollComposer({ onSubmitted, onCancel, conversationId }: Props) {+ const t = useT()const [question, setQuestion] = useState('')const [mode, setMode] = useState<'single' | 'multi'>('single')const [options, setOptions] = useState<string[]>(['', ''])@@ -111,7 +113,7 @@ export function PollComposer({ onSubmitted, onCancel, conversationId }: Props) {})onSubmitted()} catch (e) {- setError(e instanceof Error ? e.message : 'failed to create poll')+ setError(e instanceof Error ? e.message : t('poll.failedToCreate'))setSubmitting(false)}}@@ -147,12 +149,12 @@ export function PollComposer({ onSubmitted, onCancel, conversationId }: Props) {<rect x="17" y="14" width="4" height="6" rx="1" /></svg></span>- <span className="font-semibold text-ink-700">New poll</span>+ <span className="font-semibold text-ink-700">{t('poll.title')}</span><buttontype="button"onClick={onCancel}className="ml-auto px-2 py-0.5 text-ink-500 rounded-full hover:bg-ink-50 transition"- aria-label="Cancel poll"+ aria-label={t('poll.cancelAria')}>×</button></div>@@ -160,7 +162,7 @@ export function PollComposer({ onSubmitted, onCancel, conversationId }: Props) {ref={questionRef}value={question}onChange={(e) => setQuestion(e.target.value)}- placeholder="Ask the room a question…"+ placeholder={t('poll.questionPh')}maxLength={280}className="w-full px-2 py-2 text-[14px] font-semibold text-ink-900 placeholder-ink-300 bg-transparent border-b border-ink-50 focus:border-sky2-200 outline-none transition"onKeyDown={(e) => {@@ -195,7 +197,7 @@ export function PollComposer({ onSubmitted, onCancel, conversationId }: Props) {type="button"onClick={() => removeOption(i)}className="opacity-0 group-hover:opacity-100 transition w-5 h-5 rounded-full text-ink-400 hover:bg-ink-50 hover:text-coral-deep grid place-items-center"- aria-label="Remove option"+ aria-label={t('poll.removeOptAria')}>×</button>)}</div>diff --git a/src/components/ScrollToLatestButton.tsx b/src/components/ScrollToLatestButton.tsxindex 93f424e..1f21cc1 100644--- a/src/components/ScrollToLatestButton.tsx+++ b/src/components/ScrollToLatestButton.tsx@@ -17,6 +17,7 @@* - aria: a real button with a descriptive label, focus ring matches the* app's `outline-sky2-300` convention.*/+import { useT } from '@/lib/i18n'import { cn } from '@/lib/utils'interface Props {@@ -29,13 +30,14 @@ interface Props {}export function ScrollToLatestButton({ visible, onClick, bottomOffset = 16 }: Props) {+ const t = useT()if (!visible) return nullreturn (<buttontype="button"onClick={onClick}- aria-label="Scroll to latest message"- title="Latest message"+ aria-label={t('scroll.scrollToLatest')}+ title={t('scroll.latestTitle')}className={cn(// Positioning: absolute within the chat stream's relative container.'absolute right-4 z-20 grid place-items-center',diff --git a/src/components/ShippingWorkspace.tsx b/src/components/ShippingWorkspace.tsxindex ad196cf..12b3ffc 100644--- a/src/components/ShippingWorkspace.tsx+++ b/src/components/ShippingWorkspace.tsx@@ -5,11 +5,19 @@ import { useParticipants } from '@/stores/participants'import { IBack, IPlus, IShip } from '@/components/icons'import { cn } from '@/lib/utils'import { posthog } from '@/lib/observability'+import { useT, type MessageKey } from '@/lib/i18n'-const STATUS_LABEL: Record<ShippingFeatureStatus, string> = {- draft: 'Draft', contract: 'Contract', building: 'Building', verifying: 'Verifying',- ready: 'Ready', releasing: 'Releasing', watching: 'Watching', learned: 'Learned',- paused: 'Paused', archived: 'Archived',+const STATUS_LABEL_KEY: Record<ShippingFeatureStatus, MessageKey> = {+ draft: 'ship.statusDraft',+ contract: 'ship.statusContract',+ building: 'ship.statusBuilding',+ verifying: 'ship.statusVerifying',+ ready: 'ship.statusReady',+ releasing: 'ship.statusReleasing',+ watching: 'ship.statusWatching',+ learned: 'ship.statusLearned',+ paused: 'ship.statusPaused',+ archived: 'ship.statusArchived',}const NEXT_STATUS: Partial<Record<ShippingFeatureStatus, ShippingFeatureStatus>> = {@@ -57,6 +65,7 @@ function featureProgress(feature: { requiredSquares: number; passedSquares: numb}export function ShippingWorkspace({ compact = false }: { compact?: boolean }) {+ const t = useT()const overview = useShipping((s) => s.overview)const selectedId = useShipping((s) => s.selectedId)const detail = useShipping((s) => s.selectedId ? s.details[s.selectedId] : undefined)@@ -69,11 +78,12 @@ export function ShippingWorkspace({ compact = false }: { compact?: boolean }) {useEffect(() => { void load() }, [load])- if (loading && !overview) return <Centered title="Loading the shipping loop…" />- if (!overview) return <Centered title="Shipping workspace unavailable" detail={error ?? undefined} retry={() => void load(true)} />+ if (loading && !overview) return <Centered title={t('ship.loading')} />+ if (!overview) return <Centered title={t('ship.unavailable')} detail={error ?? undefined} retry={() => void load(true)} />const showList = !compact || !selectedIdconst showDetail = !compact || Boolean(selectedId)+ const dueReadbacks = overview.dueReadbacks.lengthreturn (<div className={cn('h-full min-h-0 bg-[#F7FAFC]', compact ? 'relative overflow-hidden' : 'grid grid-cols-[300px_minmax(0,1fr)]')}>{showList && (@@ -81,17 +91,17 @@ export function ShippingWorkspace({ compact = false }: { compact?: boolean }) {<div className="sticky top-0 z-10 border-b border-ink-100 bg-cloud/95 px-4 py-4 backdrop-blur"><div className="flex items-center justify-between"><div>- <h1 className="text-[18px] font-semibold text-ink-900">Ship</h1>- <p className="mt-0.5 text-[11px] text-ink-400">Evidence, release, readback, learning.</p>+ <h1 className="text-[18px] font-semibold text-ink-900">{t('nav.ship')}</h1>+ <p className="mt-0.5 text-[11px] text-ink-400">{t('ship.subtitle')}</p></div>- <button onClick={() => setCreating(true)} className="grid h-9 w-9 place-items-center rounded-xl bg-skype text-white shadow-soft" aria-label="New feature" title="New shipping feature"><IPlus className="h-4 w-4" /></button>+ <button onClick={() => setCreating(true)} className="grid h-9 w-9 place-items-center rounded-xl bg-skype text-white shadow-soft" aria-label={t('ship.newFeature')} title={t('ship.newFeatureTitle')}><IPlus className="h-4 w-4" /></button></div></div>{creating && <CreateFeature onClose={() => setCreating(false)} />}- {overview.dueReadbacks.length > 0 && (+ {dueReadbacks > 0 && (<div className="mx-3 mt-3 rounded-xl border border-amber-200 bg-amber-50 px-3 py-2.5">- <div className="text-[11px] font-bold text-amber-800">{overview.dueReadbacks.length} production readback{overview.dueReadbacks.length === 1 ? '' : 's'} due</div>- <div className="mt-1 text-[10px] text-amber-700">A release is not learned until production evidence comes back.</div>+ <div className="text-[11px] font-bold text-amber-800">{t('ship.readbacksDue', { n: dueReadbacks, plural: dueReadbacks === 1 ? '' : 's' })}</div>+ <div className="mt-1 text-[10px] text-amber-700">{t('ship.readbacksDueHint')}</div></div>)}<div className="p-2">@@ -101,23 +111,23 @@ export function ShippingWorkspace({ compact = false }: { compact?: boolean }) {<button key={feature.id} onClick={() => void select(feature.id)} className={cn('mb-1 w-full rounded-xl px-3 py-3 text-left transition', selectedId === feature.id ? 'bg-sky2-50 ring-1 ring-sky2-200' : 'hover:bg-ink-50')}><div className="flex items-start justify-between gap-2"><span className="min-w-0 truncate text-[13px] font-semibold text-ink-900">{feature.title}</span>- <Pill tone={feature.failedSquares ? 'bad' : feature.status === 'learned' ? 'good' : 'blue'}>{STATUS_LABEL[feature.status]}</Pill>+ <Pill tone={feature.failedSquares ? 'bad' : feature.status === 'learned' ? 'good' : 'blue'}>{t(STATUS_LABEL_KEY[feature.status])}</Pill></div><div className="mt-2 h-1.5 overflow-hidden rounded-full bg-ink-100"><div className="h-full rounded-full bg-skype transition-all" style={{ width: `${progress}%` }} /></div>- <div className="mt-1.5 flex justify-between text-[10px] text-ink-400"><span>{feature.passedSquares}/{feature.requiredSquares} required squares</span><span>{feature.riskLevel} risk</span></div>+ <div className="mt-1.5 flex justify-between text-[10px] text-ink-400"><span>{t('ship.requiredSquares', { passed: feature.passedSquares, required: feature.requiredSquares })}</span><span>{t('ship.riskLabel', { risk: feature.riskLevel })}</span></div></button>)})}{overview.features.length === 0 && (- <div className="px-6 py-16 text-center"><IShip className="mx-auto h-9 w-9 text-ink-300" /><div className="mt-3 text-[13px] font-semibold text-ink-700">No shipping contracts yet</div><p className="mt-1 text-[11px] leading-relaxed text-ink-400">Start with the problem, desired outcome, and builders. Cumora will seed the non-negotiable evidence squares.</p></div>+ <div className="px-6 py-16 text-center"><IShip className="mx-auto h-9 w-9 text-ink-300" /><div className="mt-3 text-[13px] font-semibold text-ink-700">{t('ship.empty')}</div><p className="mt-1 text-[11px] leading-relaxed text-ink-400">{t('ship.emptyDetail')}</p></div>)}</div></aside>)}{showDetail && (<main className={cn('h-full min-w-0 overflow-y-auto', compact && 'absolute inset-0 bg-[#F7FAFC]')}>- {compact && <button onClick={() => void select(null)} className="sticky top-0 z-20 flex h-11 w-full items-center gap-1 border-b border-ink-100 bg-cloud/95 px-3 text-[12px] font-semibold text-skype-deep backdrop-blur"><IBack className="h-4 w-4" /> All features</button>}- {loadingFeatureId === selectedId && !detail ? <Centered title="Opening shipping contract…" /> : detail ? <FeatureDetail feature={detail} /> : <Centered title="Select a feature to open its shipping contract" />}+ {compact && <button onClick={() => void select(null)} className="sticky top-0 z-20 flex h-11 w-full items-center gap-1 border-b border-ink-100 bg-cloud/95 px-3 text-[12px] font-semibold text-skype-deep backdrop-blur"><IBack className="h-4 w-4" /> {t('ship.allFeatures')}</button>}+ {loadingFeatureId === selectedId && !detail ? <Centered title={t('ship.openingContract')} /> : detail ? <FeatureDetail feature={detail} /> : <Centered title={t('ship.pickOne')} />}</main>)}</div>@@ -125,10 +135,12 @@ export function ShippingWorkspace({ compact = false }: { compact?: boolean }) {}function Centered({ title, detail, retry }: { title: string; detail?: string; retry?: () => void }) {- return <div className="grid h-full place-items-center p-8 text-center"><div><IShip className="mx-auto h-10 w-10 text-ink-300" /><div className="mt-3 text-[13px] font-semibold text-ink-700">{title}</div>{detail && <p className="mt-2 max-w-md text-[11px] text-coral-deep">{detail}</p>}{retry && <Button onClick={retry} className="mt-3">Retry</Button>}</div></div>+ const t = useT()+ return <div className="grid h-full place-items-center p-8 text-center"><div><IShip className="mx-auto h-10 w-10 text-ink-300" /><div className="mt-3 text-[13px] font-semibold text-ink-700">{title}</div>{detail && <p className="mt-2 max-w-md text-[11px] text-coral-deep">{detail}</p>}{retry && <Button onClick={retry} className="mt-3">{t('ship.retry')}</Button>}</div></div>}function CreateFeature({ onClose }: { onClose: () => void }) {+ const t = useT()const create = useShipping((s) => s.createFeature)const saving = useShipping((s) => s.saving)const byId = useParticipants((s) => s.byId)@@ -144,20 +156,21 @@ function CreateFeature({ onClose }: { onClose: () => void }) {} catch { /* the store keeps the form open and renders the API error */ }}return <form onSubmit={(e) => void submit(e)} className="m-3 rounded-2xl border border-sky2-200 bg-sky2-50/60 p-3 shadow-soft">- <div className="text-[12px] font-bold text-ink-800">New shipping contract</div>- <input className={cn(fieldClass(), 'mt-2')} value={form.title} onChange={(e) => setForm({ ...form, title: e.target.value })} placeholder="Feature title" autoFocus />- <textarea className={cn(fieldClass(), 'mt-2 min-h-16')} value={form.problem} onChange={(e) => setForm({ ...form, problem: e.target.value })} placeholder="What problem are we solving?" />- <textarea className={cn(fieldClass(), 'mt-2 min-h-16')} value={form.desiredOutcome} onChange={(e) => setForm({ ...form, desiredOutcome: e.target.value })} placeholder="What observable outcome should change?" />- <textarea className={cn(fieldClass(), 'mt-2 min-h-16')} value={form.contractSummary} onChange={(e) => setForm({ ...form, contractSummary: e.target.value })} placeholder="Scope, constraints, non-goals" />- <div className="mt-2 text-[10px] font-bold uppercase tracking-wide text-ink-400">Builders</div>+ <div className="text-[12px] font-bold text-ink-800">{t('ship.newContract')}</div>+ <input className={cn(fieldClass(), 'mt-2')} value={form.title} onChange={(e) => setForm({ ...form, title: e.target.value })} placeholder={t('ship.fieldTitle')} autoFocus />+ <textarea className={cn(fieldClass(), 'mt-2 min-h-16')} value={form.problem} onChange={(e) => setForm({ ...form, problem: e.target.value })} placeholder={t('ship.fieldProblem')} />+ <textarea className={cn(fieldClass(), 'mt-2 min-h-16')} value={form.desiredOutcome} onChange={(e) => setForm({ ...form, desiredOutcome: e.target.value })} placeholder={t('ship.fieldOutcome')} />+ <textarea className={cn(fieldClass(), 'mt-2 min-h-16')} value={form.contractSummary} onChange={(e) => setForm({ ...form, contractSummary: e.target.value })} placeholder={t('ship.fieldScope')} />+ <div className="mt-2 text-[10px] font-bold uppercase tracking-wide text-ink-400">{t('ship.builders')}</div><div className="mt-1 max-h-28 overflow-auto rounded-xl border border-ink-100 bg-white p-2">{participants.map((p) => <label key={p.id} className="flex items-center gap-2 py-1 text-[11px] text-ink-700"><input type="checkbox" checked={form.builderIds.includes(p.id)} onChange={(e) => setForm({ ...form, builderIds: e.target.checked ? [...form.builderIds, p.id] : form.builderIds.filter((id) => id !== p.id) })} /> {p.name} <span className="text-ink-400">@{p.id}</span></label>)}</div>- <div className="mt-3 flex justify-end gap-2"><Button onClick={onClose}>Cancel</Button><Button type="submit" tone="primary" disabled={saving || !form.title.trim()}>Create contract</Button></div>+ <div className="mt-3 flex justify-end gap-2"><Button onClick={onClose}>{t('common.cancel')}</Button><Button type="submit" tone="primary" disabled={saving || !form.title.trim()}>{t('ship.createContract')}</Button></div></form>}function FeatureDetail({ feature }: { feature: ShippingFeatureDetail }) {+ const t = useT()const transition = useShipping((s) => s.transition)const saving = useShipping((s) => s.saving)const error = useShipping((s) => s.error)@@ -167,8 +180,8 @@ function FeatureDetail({ feature }: { feature: ShippingFeatureDetail }) {return <div className="mx-auto max-w-[1100px] px-4 py-5 md:px-7 md:py-7"><header className="rounded-2xl border border-ink-100 bg-white p-5 shadow-soft"><div className="flex flex-wrap items-start justify-between gap-3">- <div className="min-w-0"><div className="flex flex-wrap items-center gap-2"><Pill tone="blue">{STATUS_LABEL[feature.status]}</Pill><Pill tone={feature.riskLevel === 'critical' || feature.riskLevel === 'high' ? 'warn' : 'neutral'}>{feature.riskLevel} risk</Pill></div><h1 className="mt-2 text-[22px] font-semibold tracking-tight text-ink-900">{feature.title}</h1><p className="mt-1 text-[11px] text-ink-400">{passed}/{required.length} required evidence squares passed · updated {new Date(feature.updatedAt).toLocaleString()}</p></div>- {next && feature.status !== 'ready' && feature.status !== 'releasing' && <Button tone="primary" disabled={saving} onClick={() => runAction(transition(next), () => event('shipping_feature_transitioned', { from: feature.status, to: next }))}>Move to {STATUS_LABEL[next]}</Button>}+ <div className="min-w-0"><div className="flex flex-wrap items-center gap-2"><Pill tone="blue">{t(STATUS_LABEL_KEY[feature.status])}</Pill><Pill tone={feature.riskLevel === 'critical' || feature.riskLevel === 'high' ? 'warn' : 'neutral'}>{t('ship.riskLabel', { risk: feature.riskLevel })}</Pill></div><h1 className="mt-2 text-[22px] font-semibold tracking-tight text-ink-900">{feature.title}</h1><p className="mt-1 text-[11px] text-ink-400">{t('ship.evidenceProgress', { passed, required: required.length, time: new Date(feature.updatedAt).toLocaleString() })}</p></div>+ {next && feature.status !== 'ready' && feature.status !== 'releasing' && <Button tone="primary" disabled={saving} onClick={() => runAction(transition(next), () => event('shipping_feature_transitioned', { from: feature.status, to: next }))}>{t('ship.moveTo', { next: t(STATUS_LABEL_KEY[next]) })}</Button>}</div>{error && <div role="alert" className="mt-3 rounded-xl border border-coral/20 bg-coral-soft/20 px-3 py-2 text-[11px] text-coral-deep">{error}</div>}</header>@@ -185,40 +198,44 @@ function Section({ title, eyebrow, children, action }: { title: string; eyebrow:}function ContractSection({ feature }: { feature: ShippingFeatureDetail }) {+ const t = useT()const update = useShipping((s) => s.updateFeature)const saving = useShipping((s) => s.saving)const byId = useParticipants((s) => s.byId)const participants = useMemo(() => Object.values(byId).filter((p) => !p.departedAt), [byId])const [form, setForm] = useState({ title: feature.title, problem: feature.problem, desiredOutcome: feature.desiredOutcome, contractSummary: feature.contractSummary, builderIds: feature.builderIds, priority: feature.priority, riskLevel: feature.riskLevel, releaseTarget: feature.releaseTarget ?? '' })useEffect(() => setForm({ title: feature.title, problem: feature.problem, desiredOutcome: feature.desiredOutcome, contractSummary: feature.contractSummary, builderIds: feature.builderIds, priority: feature.priority, riskLevel: feature.riskLevel, releaseTarget: feature.releaseTarget ?? '' }), [feature])- return <Section eyebrow="01 · Define" title="Feature contract" action={<Button tone="primary" disabled={saving} onClick={() => runAction(update(form), () => event('shipping_contract_saved'))}>Save contract</Button>}>- <div className="grid gap-3 md:grid-cols-2"><label className="text-[11px] font-semibold text-ink-600">Title<input className={cn(fieldClass(), 'mt-1')} value={form.title} onChange={(e) => setForm({ ...form, title: e.target.value })} /></label><label className="text-[11px] font-semibold text-ink-600">Release target<input className={cn(fieldClass(), 'mt-1')} value={form.releaseTarget} onChange={(e) => setForm({ ...form, releaseTarget: e.target.value })} placeholder="e.g. 2026-W31 / v0.2" /></label></div>- <div className="mt-3 grid gap-3 md:grid-cols-3">{([['Problem', 'problem'], ['Desired outcome', 'desiredOutcome'], ['Scope & constraints', 'contractSummary']] as const).map(([label, key]) => <label key={key} className="text-[11px] font-semibold text-ink-600">{label}<textarea className={cn(fieldClass(), 'mt-1 min-h-28 resize-y')} value={form[key]} onChange={(e) => setForm({ ...form, [key]: e.target.value })} /></label>)}</div>- <div className="mt-3 grid gap-3 md:grid-cols-2"><div><div className="text-[11px] font-semibold text-ink-600">Priority & risk</div><div className="mt-1 flex gap-2"><select className={fieldClass()} value={form.priority} onChange={(e) => setForm({ ...form, priority: e.target.value as typeof form.priority })}>{['critical','high','medium','low'].map((v) => <option key={v}>{v}</option>)}</select><select className={fieldClass()} value={form.riskLevel} onChange={(e) => setForm({ ...form, riskLevel: e.target.value as typeof form.riskLevel })}>{['critical','high','medium','low'].map((v) => <option key={v}>{v}</option>)}</select></div></div><div><div className="text-[11px] font-semibold text-ink-600">Builders (cannot verify their own squares)</div><div className="mt-1 max-h-24 overflow-auto rounded-xl border border-ink-100 p-2">{participants.map((p) => <label key={p.id} className="mr-3 inline-flex items-center gap-1.5 py-1 text-[11px]"><input type="checkbox" checked={form.builderIds.includes(p.id)} onChange={(e) => setForm({ ...form, builderIds: e.target.checked ? [...form.builderIds, p.id] : form.builderIds.filter((id) => id !== p.id) })} />{p.name}</label>)}</div></div></div>+ return <Section eyebrow={t('ship.sectionDefine')} title={t('ship.contractTitle')} action={<Button tone="primary" disabled={saving} onClick={() => runAction(update(form), () => event('shipping_contract_saved'))}>{t('ship.saveContract')}</Button>}>+ <div className="grid gap-3 md:grid-cols-2"><label className="text-[11px] font-semibold text-ink-600">{t('ship.labelTitle')}<input className={cn(fieldClass(), 'mt-1')} value={form.title} onChange={(e) => setForm({ ...form, title: e.target.value })} /></label><label className="text-[11px] font-semibold text-ink-600">{t('ship.labelReleaseTarget')}<input className={cn(fieldClass(), 'mt-1')} value={form.releaseTarget} onChange={(e) => setForm({ ...form, releaseTarget: e.target.value })} placeholder={t('ship.releaseTargetPh')} /></label></div>+ <div className="mt-3 grid gap-3 md:grid-cols-3">{([['ship.labelProblem', 'problem'], ['ship.labelDesiredOutcome', 'desiredOutcome'], ['ship.labelScopeConstraints', 'contractSummary']] as const).map(([labelKey, key]) => <label key={key} className="text-[11px] font-semibold text-ink-600">{t(labelKey)}<textarea className={cn(fieldClass(), 'mt-1 min-h-28 resize-y')} value={form[key]} onChange={(e) => setForm({ ...form, [key]: e.target.value })} /></label>)}</div>+ <div className="mt-3 grid gap-3 md:grid-cols-2"><div><div className="text-[11px] font-semibold text-ink-600">{t('ship.priorityRisk')}</div><div className="mt-1 flex gap-2"><select className={fieldClass()} value={form.priority} onChange={(e) => setForm({ ...form, priority: e.target.value as typeof form.priority })}>{['critical','high','medium','low'].map((v) => <option key={v}>{v}</option>)}</select><select className={fieldClass()} value={form.riskLevel} onChange={(e) => setForm({ ...form, riskLevel: e.target.value as typeof form.riskLevel })}>{['critical','high','medium','low'].map((v) => <option key={v}>{v}</option>)}</select></div></div><div><div className="text-[11px] font-semibold text-ink-600">{t('ship.buildersCantVerify')}</div><div className="mt-1 max-h-24 overflow-auto rounded-xl border border-ink-100 p-2">{participants.map((p) => <label key={p.id} className="mr-3 inline-flex items-center gap-1.5 py-1 text-[11px]"><input type="checkbox" checked={form.builderIds.includes(p.id)} onChange={(e) => setForm({ ...form, builderIds: e.target.checked ? [...form.builderIds, p.id] : form.builderIds.filter((id) => id !== p.id) })} />{p.name}</label>)}</div></div></div></Section>}function InvariantsSection({ feature }: { feature: ShippingFeatureDetail }) {+ const t = useT()const mutate = useShipping((s) => s.mutateSelected)const [title, setTitle] = useState('')const [kind, setKind] = useState('behavior')- return <Section eyebrow="02 · Constrain" title="Invariants" action={<div className="text-[10px] text-ink-400">What must remain true</div>}>+ return <Section eyebrow={t('ship.sectionConstrain')} title={t('ship.invariantsTitle')} action={<div className="text-[10px] text-ink-400">{t('ship.whatMustRemain')}</div>}><div className="grid gap-2 md:grid-cols-2">{feature.invariants.map((i) => <div key={i.id} className="rounded-xl border border-ink-100 bg-[#FAFCFD] p-3"><div className="flex items-center justify-between gap-2"><div className="text-[12px] font-semibold text-ink-800">{i.title}</div><Pill tone={i.required ? 'warn' : 'neutral'}>{i.kind}</Pill></div>{i.description && <p className="mt-1 text-[11px] leading-relaxed text-ink-500">{i.description}</p>}</div>)}</div>- <form className="mt-3 flex flex-col gap-2 md:flex-row" onSubmit={(e) => { e.preventDefault(); if (!title.trim()) return; runAction(mutate((id) => api.createShippingInvariant(id, { title, kind })), () => { setTitle(''); event('shipping_invariant_created', { kind }) }) }}><input className={cn(fieldClass(), 'flex-1')} value={title} onChange={(e) => setTitle(e.target.value)} placeholder="Add an invariant: e.g. retries never duplicate a charge" /><select className={cn(fieldClass(), 'md:w-40')} value={kind} onChange={(e) => setKind(e.target.value)}>{['behavior','architecture','data','security','performance','ux','operability'].map((v) => <option key={v}>{v}</option>)}</select><Button type="submit" disabled={!title.trim()}><IPlus className="mr-1 inline h-3 w-3" /> Add</Button></form>+ <form className="mt-3 flex flex-col gap-2 md:flex-row" onSubmit={(e) => { e.preventDefault(); if (!title.trim()) return; runAction(mutate((id) => api.createShippingInvariant(id, { title, kind })), () => { setTitle(''); event('shipping_invariant_created', { kind }) }) }}><input className={cn(fieldClass(), 'flex-1')} value={title} onChange={(e) => setTitle(e.target.value)} placeholder={t('ship.addInvariantPh')} /><select className={cn(fieldClass(), 'md:w-40')} value={kind} onChange={(e) => setKind(e.target.value)}>{['behavior','architecture','data','security','performance','ux','operability'].map((v) => <option key={v}>{v}</option>)}</select><Button type="submit" disabled={!title.trim()}><IPlus className="mr-1 inline h-3 w-3" /> {t('ship.addBtn')}</Button></form></Section>}function VerificationsSection({ feature }: { feature: ShippingFeatureDetail }) {+ const t = useT()const mutate = useShipping((s) => s.mutateSelected)const [title, setTitle] = useState('')const [method, setMethod] = useState('property')- return <Section eyebrow="03 · Verify" title="Independent evidence squares" action={<div className="text-[10px] text-ink-400">Builder ≠ verifier · evidence required</div>}>+ return <Section eyebrow={t('ship.sectionVerify')} title={t('ship.verificationsTitle')} action={<div className="text-[10px] text-ink-400">{t('ship.builderNotVerifier')}</div>}><div className="space-y-2">{feature.verifications.map((square) => <VerificationCard key={square.id} feature={feature} square={square} />)}</div>- <form className="mt-3 flex flex-col gap-2 md:flex-row" onSubmit={(e) => { e.preventDefault(); if (!title.trim()) return; runAction(mutate((id) => api.createShippingVerification(id, { title, method })), () => { setTitle(''); event('shipping_square_created', { method }) }) }}><input className={cn(fieldClass(), 'flex-1')} value={title} onChange={(e) => setTitle(e.target.value)} placeholder="Add a verification square" /><select className={cn(fieldClass(), 'md:w-48')} value={method} onChange={(e) => setMethod(e.target.value)}>{['user_path','property','trace','data_reconciliation','design_qa','security','performance','release_note'].map((v) => <option key={v}>{v.replaceAll('_', ' ')}</option>)}</select><Button type="submit" disabled={!title.trim()}>Add square</Button></form>+ <form className="mt-3 flex flex-col gap-2 md:flex-row" onSubmit={(e) => { e.preventDefault(); if (!title.trim()) return; runAction(mutate((id) => api.createShippingVerification(id, { title, method })), () => { setTitle(''); event('shipping_square_created', { method }) }) }}><input className={cn(fieldClass(), 'flex-1')} value={title} onChange={(e) => setTitle(e.target.value)} placeholder={t('ship.addVerificationPh')} /><select className={cn(fieldClass(), 'md:w-48')} value={method} onChange={(e) => setMethod(e.target.value)}>{['user_path','property','trace','data_reconciliation','design_qa','security','performance','release_note'].map((v) => <option key={v}>{v.replaceAll('_', ' ')}</option>)}</select><Button type="submit" disabled={!title.trim()}>{t('ship.addSquareBtn')}</Button></form></Section>}function VerificationCard({ feature, square }: { feature: ShippingFeatureDetail; square: ShippingVerification }) {+ const t = useT()const mutate = useShipping((s) => s.mutateSelected)const byId = useParticipants((s) => s.byId)const participants = useMemo(() => Object.values(byId).filter((p) => !p.departedAt && !square.builderIds.includes(p.id)), [byId, square.builderIds])@@ -233,10 +250,11 @@ function VerificationCard({ feature, square }: { feature: ShippingFeatureDetail;...(notes.trim() ? { notes: notes.trim() } : {}),}))const tone = square.status === 'passed' ? 'good' : square.status === 'failed' ? 'bad' : square.status === 'running' ? 'blue' : square.status === 'waived' ? 'warn' : 'neutral'- return <details className="group rounded-xl border border-ink-100 bg-[#FAFCFD]" open={square.status === 'failed'}><summary className="flex cursor-pointer list-none items-center gap-3 px-3 py-3"><span className={cn('grid h-6 w-6 place-items-center rounded-full border text-[11px] font-bold', square.status === 'passed' ? 'border-emerald-300 bg-emerald-50 text-emerald-700' : square.status === 'failed' ? 'border-coral/30 bg-coral-soft text-coral-deep' : 'border-ink-200 bg-white text-ink-400')}>{square.status === 'passed' ? '✓' : square.status === 'failed' ? '!' : '·'}</span><div className="min-w-0 flex-1"><div className="truncate text-[12px] font-semibold text-ink-800">{square.title}</div><div className="mt-0.5 text-[10px] text-ink-400">{square.method.replaceAll('_', ' ')} · {square.required ? 'required' : 'optional'} · {square.ownerId ? `owner @${square.ownerId}` : 'unowned'}</div></div><Pill tone={tone}>{square.status}</Pill></summary><div className="border-t border-ink-100 px-3 py-3"><div className="grid gap-2 md:grid-cols-[220px_1fr]"><label className="text-[10px] font-bold uppercase tracking-wide text-ink-400">Independent owner<select className={cn(fieldClass(), 'mt-1')} value={ownerId} onChange={(e) => setOwnerId(e.target.value)}><option value="">Unassigned</option>{participants.map((p) => <option value={p.id} key={p.id}>{p.name} (@{p.id})</option>)}</select></label><label className="text-[10px] font-bold uppercase tracking-wide text-ink-400">Evidence / link / observation<input className={cn(fieldClass(), 'mt-1')} value={evidence} onChange={(e) => setEvidence(e.target.value)} placeholder="What did you inspect and what did it prove?" /></label></div><label className="mt-2 block text-[10px] font-bold uppercase tracking-wide text-ink-400">Notes<input className={cn(fieldClass(), 'mt-1')} value={notes} onChange={(e) => setNotes(e.target.value)} placeholder="Required when waiving" /></label><div className="mt-3 flex flex-wrap gap-2"><Button onClick={() => runAction(patch())}>Save owner</Button><Button tone="primary" onClick={() => runAction(patch('running'))}>Start</Button><Button tone="success" disabled={!evidence.trim()} onClick={() => runAction(patch('passed'), () => event('shipping_square_completed', { method: square.method, result: 'passed' }))}>Pass with evidence</Button><Button tone="danger" disabled={!evidence.trim()} onClick={() => runAction(patch('failed'), () => event('shipping_square_completed', { method: square.method, result: 'failed' }))}>Fail with evidence</Button><Button disabled={!notes.trim()} onClick={() => runAction(patch('waived'))}>Waive</Button></div>{square.evidence.length > 0 && <pre className="mt-3 max-h-28 overflow-auto rounded-lg bg-ink-900 p-2 text-[10px] text-white/80">{JSON.stringify(square.evidence, null, 2)}</pre>}</div></details>+ return <details className="group rounded-xl border border-ink-100 bg-[#FAFCFD]" open={square.status === 'failed'}><summary className="flex cursor-pointer list-none items-center gap-3 px-3 py-3"><span className={cn('grid h-6 w-6 place-items-center rounded-full border text-[11px] font-bold', square.status === 'passed' ? 'border-emerald-300 bg-emerald-50 text-emerald-700' : square.status === 'failed' ? 'border-coral/30 bg-coral-soft text-coral-deep' : 'border-ink-200 bg-white text-ink-400')}>{square.status === 'passed' ? '✓' : square.status === 'failed' ? '!' : '·'}</span><div className="min-w-0 flex-1"><div className="truncate text-[12px] font-semibold text-ink-800">{square.title}</div><div className="mt-0.5 text-[10px] text-ink-400">{square.method.replaceAll('_', ' ')} · {square.required ? t('common.required') : t('common.optional')} · {square.ownerId ? `owner @${square.ownerId}` : t('common.unassigned')}</div></div><Pill tone={tone}>{square.status}</Pill></summary><div className="border-t border-ink-100 px-3 py-3"><div className="grid gap-2 md:grid-cols-[220px_1fr]"><label className="text-[10px] font-bold uppercase tracking-wide text-ink-400">{t('ship.independentOwner')}<select className={cn(fieldClass(), 'mt-1')} value={ownerId} onChange={(e) => setOwnerId(e.target.value)}><option value="">{t('common.unassigned')}</option>{participants.map((p) => <option value={p.id} key={p.id}>{p.name} (@{p.id})</option>)}</select></label><label className="text-[10px] font-bold uppercase tracking-wide text-ink-400">{t('ship.evidenceLabel')}<input className={cn(fieldClass(), 'mt-1')} value={evidence} onChange={(e) => setEvidence(e.target.value)} placeholder={t('ship.evidencePh')} /></label></div><label className="mt-2 block text-[10px] font-bold uppercase tracking-wide text-ink-400">{t('ship.notesLabel')}<input className={cn(fieldClass(), 'mt-1')} value={notes} onChange={(e) => setNotes(e.target.value)} placeholder={t('ship.notesPh')} /></label><div className="mt-3 flex flex-wrap gap-2"><Button onClick={() => runAction(patch())}>{t('ship.saveOwner')}</Button><Button tone="primary" onClick={() => runAction(patch('running'))}>{t('ship.start')}</Button><Button tone="success" disabled={!evidence.trim()} onClick={() => runAction(patch('passed'), () => event('shipping_square_completed', { method: square.method, result: 'passed' }))}>{t('ship.passEvidence')}</Button><Button tone="danger" disabled={!evidence.trim()} onClick={() => runAction(patch('failed'), () => event('shipping_square_completed', { method: square.method, result: 'failed' }))}>{t('ship.failEvidence')}</Button><Button disabled={!notes.trim()} onClick={() => runAction(patch('waived'))}>{t('ship.waive')}</Button></div>{square.evidence.length > 0 && <pre className="mt-3 max-h-28 overflow-auto rounded-lg bg-ink-900 p-2 text-[10px] text-white/80">{JSON.stringify(square.evidence, null, 2)}</pre>}</div></details>}function ReleaseSection({ feature }: { feature: ShippingFeatureDetail }) {+ const t = useT()const mutate = useShipping((s) => s.mutateSelected)const [show, setShow] = useState(false)const [form, setForm] = useState({ environment: 'staging', version: '', commitSha: '', releaseNotes: '', rollbackPlan: '', baseline: '' })@@ -245,13 +263,14 @@ function ReleaseSection({ feature }: { feature: ShippingFeatureDetail }) {event('shipping_release_planned', { environment: form.environment })setShow(false)}- return <Section eyebrow="04 · Release" title="Ignition, smoke, and production readback" action={<Button onClick={() => setShow((v) => !v)}>{show ? 'Close planner' : 'Plan release'}</Button>}>- {show && <div className="mb-4 rounded-xl border border-sky2-200 bg-sky2-50/50 p-3"><div className="grid gap-2 md:grid-cols-3"><select className={fieldClass()} value={form.environment} onChange={(e) => setForm({ ...form, environment: e.target.value })}>{['staging','canary','production'].map((v) => <option key={v}>{v}</option>)}</select><input className={fieldClass()} value={form.version} onChange={(e) => setForm({ ...form, version: e.target.value })} placeholder="Version" /><input className={fieldClass()} value={form.commitSha} onChange={(e) => setForm({ ...form, commitSha: e.target.value })} placeholder="Commit SHA" /></div><textarea className={cn(fieldClass(), 'mt-2 min-h-20')} value={form.releaseNotes} onChange={(e) => setForm({ ...form, releaseNotes: e.target.value })} placeholder="Release notes: user-visible change and known gaps" /><textarea className={cn(fieldClass(), 'mt-2 min-h-20')} value={form.rollbackPlan} onChange={(e) => setForm({ ...form, rollbackPlan: e.target.value })} placeholder="Rollback plan: exact trigger and command/path" /><input className={cn(fieldClass(), 'mt-2')} value={form.baseline} onChange={(e) => setForm({ ...form, baseline: e.target.value })} placeholder="Production baseline metric (required for production approval)" /><div className="mt-2 flex justify-end"><Button tone="primary" onClick={() => runAction(create())}>Create release gate</Button></div></div>}- <div className="space-y-2">{feature.releases.map((release) => <ReleaseCard key={release.id} featureId={feature.id} release={release} />)}{feature.releases.length === 0 && <p className="text-[11px] text-ink-400">No releases yet. Prove staging before production; production approval also requires release notes, rollback plan, and baseline.</p>}</div>+ return <Section eyebrow={t('ship.sectionRelease')} title={t('ship.releaseSectionTitle')} action={<Button onClick={() => setShow((v) => !v)}>{show ? t('ship.closePlanner') : t('ship.planRelease')}</Button>}>+ {show && <div className="mb-4 rounded-xl border border-sky2-200 bg-sky2-50/50 p-3"><div className="grid gap-2 md:grid-cols-3"><select className={fieldClass()} value={form.environment} onChange={(e) => setForm({ ...form, environment: e.target.value })}>{['staging','canary','production'].map((v) => <option key={v}>{v}</option>)}</select><input className={fieldClass()} value={form.version} onChange={(e) => setForm({ ...form, version: e.target.value })} placeholder={t('ship.versionPh')} /><input className={fieldClass()} value={form.commitSha} onChange={(e) => setForm({ ...form, commitSha: e.target.value })} placeholder={t('ship.commitShaPh')} /></div><textarea className={cn(fieldClass(), 'mt-2 min-h-20')} value={form.releaseNotes} onChange={(e) => setForm({ ...form, releaseNotes: e.target.value })} placeholder={t('ship.releaseNotesPh')} /><textarea className={cn(fieldClass(), 'mt-2 min-h-20')} value={form.rollbackPlan} onChange={(e) => setForm({ ...form, rollbackPlan: e.target.value })} placeholder={t('ship.rollbackPlanPh')} /><input className={cn(fieldClass(), 'mt-2')} value={form.baseline} onChange={(e) => setForm({ ...form, baseline: e.target.value })} placeholder={t('ship.baselinePh')} /><div className="mt-2 flex justify-end"><Button tone="primary" onClick={() => runAction(create())}>{t('ship.createReleaseGate')}</Button></div></div>}+ <div className="space-y-2">{feature.releases.map((release) => <ReleaseCard key={release.id} featureId={feature.id} release={release} />)}{feature.releases.length === 0 && <p className="text-[11px] text-ink-400">{t('ship.noReleasesYet')}</p>}</div></Section>}function ReleaseCard({ featureId, release }: { featureId: string; release: ShippingRelease }) {+ const t = useT()const mutate = useShipping((s) => s.mutateSelected)const [evidence, setEvidence] = useState('')const action = async (name: string) => {@@ -261,10 +280,11 @@ function ReleaseCard({ featureId, release }: { featureId: string; release: ShippsetEvidence('')}const actions = release.status === 'planned' ? ['approve'] : release.status === 'approved' ? ['start'] : release.status === 'running' ? ['succeed','fail'] : release.status === 'succeeded' && release.environment === 'production' && ['pending','overdue'].includes(release.readbackStatus) ? ['readback_pass','readback_fail','rollback'] : release.status === 'succeeded' ? ['rollback'] : []- return <details className="rounded-xl border border-ink-100 bg-[#FAFCFD]"><summary className="flex cursor-pointer list-none items-center gap-3 px-3 py-3"><Pill tone={release.status === 'succeeded' ? 'good' : release.status === 'failed' || release.status === 'rolled_back' ? 'bad' : release.status === 'running' ? 'blue' : 'warn'}>{release.environment}</Pill><div className="min-w-0 flex-1"><div className="text-[12px] font-semibold text-ink-800">{release.version || release.commitSha || 'Unversioned release'}</div><div className="mt-0.5 text-[10px] text-ink-400">{release.status} · readback {release.readbackStatus}{release.readbackDueAt ? ` · due ${new Date(release.readbackDueAt).toLocaleString()}` : ''}</div></div></summary><div className="border-t border-ink-100 p-3"><div className="grid gap-2 text-[11px] text-ink-600 md:grid-cols-2"><div><b>Release notes</b><p className="mt-1 whitespace-pre-wrap">{release.releaseNotes || '—'}</p></div><div><b>Rollback plan</b><p className="mt-1 whitespace-pre-wrap">{release.rollbackPlan || '—'}</p></div></div>{actions.length > 0 && <><input className={cn(fieldClass(), 'mt-3')} value={evidence} onChange={(e) => setEvidence(e.target.value)} placeholder={actions.includes('approve') || actions.includes('start') ? 'Optional note' : 'Smoke/readback evidence or rollback reason'} /><div className="mt-2 flex flex-wrap gap-2">{actions.map((name) => <Button key={name} tone={name.includes('fail') || name === 'rollback' ? 'danger' : name.includes('pass') || name === 'succeed' ? 'success' : 'primary'} disabled={['succeed','fail','readback_pass','readback_fail','rollback'].includes(name) && !evidence.trim()} onClick={() => runAction(action(name))}>{name.replaceAll('_', ' ')}</Button>)}</div></>}</div></details>+ return <details className="rounded-xl border border-ink-100 bg-[#FAFCFD]"><summary className="flex cursor-pointer list-none items-center gap-3 px-3 py-3"><Pill tone={release.status === 'succeeded' ? 'good' : release.status === 'failed' || release.status === 'rolled_back' ? 'bad' : release.status === 'running' ? 'blue' : 'warn'}>{release.environment}</Pill><div className="min-w-0 flex-1"><div className="text-[12px] font-semibold text-ink-800">{release.version || release.commitSha || t('ship.unversioned')}</div><div className="mt-0.5 text-[10px] text-ink-400">{release.status} · readback {release.readbackStatus}{release.readbackDueAt ? ` · due ${new Date(release.readbackDueAt).toLocaleString()}` : ''}</div></div></summary><div className="border-t border-ink-100 p-3"><div className="grid gap-2 text-[11px] text-ink-600 md:grid-cols-2"><div><b>{t('ship.releaseNotesLabel')}</b><p className="mt-1 whitespace-pre-wrap">{release.releaseNotes || '—'}</p></div><div><b>{t('ship.rollbackPlanLabel')}</b><p className="mt-1 whitespace-pre-wrap">{release.rollbackPlan || '—'}</p></div></div>{actions.length > 0 && <><input className={cn(fieldClass(), 'mt-3')} value={evidence} onChange={(e) => setEvidence(e.target.value)} placeholder={actions.includes('approve') || actions.includes('start') ? t('ship.optionalNote') : t('ship.smokeEvidence')} /><div className="mt-2 flex flex-wrap gap-2">{actions.map((name) => <Button key={name} tone={name.includes('fail') || name === 'rollback' ? 'danger' : name.includes('pass') || name === 'succeed' ? 'success' : 'primary'} disabled={['succeed','fail','readback_pass','readback_fail','rollback'].includes(name) && !evidence.trim()} onClick={() => runAction(action(name))}>{name.replaceAll('_', ' ')}</Button>)}</div></>}</div></details>}function LearningSection({ feature }: { feature: ShippingFeatureDetail }) {+ const t = useT()const mutate = useShipping((s) => s.mutateSelected)const [friction, setFriction] = useState('')const [regression, setRegression] = useState('')@@ -276,24 +296,24 @@ function LearningSection({ feature }: { feature: ShippingFeatureDetail }) {await api.createShippingFriction({ featureId, title: friction, description: friction, frequency: 'once' })return api.getShippingFeature(featureId)})- return <Section eyebrow="05 · Learn" title="Friction and regression memory">+ return <Section eyebrow={t('ship.sectionLearn')} title={t('ship.frictionMemory')}><div className="grid gap-4 md:grid-cols-2"><div>- <div className="text-[11px] font-bold text-ink-700">Friction inbox</div>+ <div className="text-[11px] font-bold text-ink-700">{t('ship.frictionInbox')}</div><div className="mt-2 space-y-2">{feature.frictions.map((item) => <div key={item.id} className="rounded-xl border border-ink-100 p-3"><div className="flex justify-between gap-2"><span className="text-[11px] font-semibold text-ink-800">{item.title}</span><Pill tone={item.severity === 'critical' || item.severity === 'high' ? 'bad' : 'warn'}>{item.occurrenceCount}× {item.status}</Pill></div><p className="mt-1 text-[10px] text-ink-500">{item.description}</p>- {!['resolved','dismissed'].includes(item.status) && <Button className="mt-2" onClick={() => runAction(resolveFriction(item.id))}>Resolve</Button>}+ {!['resolved','dismissed'].includes(item.status) && <Button className="mt-2" onClick={() => runAction(resolveFriction(item.id))}>{t('ship.resolve')}</Button>}</div>)}</div><form className="mt-2 flex gap-2" onSubmit={(e) => { e.preventDefault(); if (!friction.trim()) return; runAction(captureFriction(), () => { setFriction(''); event('shipping_friction_reported') }) }}>- <input className={fieldClass()} value={friction} onChange={(e) => setFriction(e.target.value)} placeholder="Where did the work feel harder than it should?" />- <Button type="submit">Capture</Button>+ <input className={fieldClass()} value={friction} onChange={(e) => setFriction(e.target.value)} placeholder={t('ship.frictionPh')} />+ <Button type="submit">{t('ship.capture')}</Button></form></div><div>- <div className="text-[11px] font-bold text-ink-700">Regression assets</div>+ <div className="text-[11px] font-bold text-ink-700">{t('ship.regressionAssets')}</div><div className="mt-2 space-y-2">{feature.regressions.map((item) => <div key={item.id} className="rounded-xl border border-ink-100 p-3"><div className="flex justify-between gap-2"><span className="text-[11px] font-semibold text-ink-800">{item.title}</span><Pill tone={item.status === 'passing' ? 'good' : item.status === 'failing' ? 'bad' : 'blue'}>{item.kind} · {item.status}</Pill></div>@@ -301,8 +321,8 @@ function LearningSection({ feature }: { feature: ShippingFeatureDetail }) {</div>)}</div><form className="mt-2 flex gap-2" onSubmit={(e) => { e.preventDefault(); if (!regression.trim()) return; runAction(mutate((id) => api.createShippingRegression(id, { title: regression, kind: 'manual_replay', expected: 'Previously verified behavior remains true' })), () => { setRegression(''); event('shipping_regression_created') }) }}>- <input className={fieldClass()} value={regression} onChange={(e) => setRegression(e.target.value)} placeholder="Turn a lesson into a replayable check" />- <Button type="submit">Harden</Button>+ <input className={fieldClass()} value={regression} onChange={(e) => setRegression(e.target.value)} placeholder={t('ship.regressionPh')} />+ <Button type="submit">{t('ship.harden')}</Button></form></div></div>diff --git a/src/components/UpdaterDialog.tsx b/src/components/UpdaterDialog.tsxindex 12c9327..de2a970 100644--- a/src/components/UpdaterDialog.tsx+++ b/src/components/UpdaterDialog.tsx@@ -20,6 +20,7 @@ import { useCallback, useEffect, useMemo, useState } from 'react'import type {AppUpdateInfo, AutoUpdateStatus, UpdateReleasePayload,} from '@/lib/runtime'+import { useT } from '@/lib/i18n'/* ============== Shared hook ============== */@@ -111,6 +112,7 @@ interface BannerProps {/** Slim status banner that hovers above the chat when an update is* available or being downloaded. Dismissable for this session. */export function UpdateBanner({ forceOpen, onOpen }: BannerProps) {+ const t = useT()const { status, releaseInfo } = useUpdater()const [dismissed, setDismissed] = useState(false)@@ -160,7 +162,7 @@ export function UpdateBanner({ forceOpen, onOpen }: BannerProps) {</span><div className="flex-1 min-w-0"><div className="text-[13px] font-semibold text-ink-900 truncate">- {isDownloaded ? 'Update ready' : isDownloading ? 'Updating Cumora' : 'New Cumora available'}+ {isDownloaded ? t('updater.bannerUpdateReady') : isDownloading ? t('updater.bannerUpdating') : t('updater.bannerNewAvailable')}{version && <span className="ml-1.5 text-ink-500 font-normal">v{version}</span>}</div>{isDownloading && status.percent !== undefined && (@@ -174,13 +176,13 @@ export function UpdateBanner({ forceOpen, onOpen }: BannerProps) {className="px-3 py-1.5 rounded-[8px] text-[12px] font-semibold text-white transition shrink-0"style={{ background: 'var(--skype)' }}>- {isDownloaded ? 'Restart' : isDownloading ? 'View' : 'Update'}+ {isDownloaded ? t('updater.bannerRestart') : isDownloading ? t('updater.bannerView') : t('updater.bannerUpdate')}</button>{!isDownloading && (<buttononClick={() => setDismissed(true)}className="w-6 h-6 rounded-[6px] grid place-items-center text-ink-400 hover:text-ink-700 hover:bg-cloud transition text-[14px] shrink-0"- aria-label="Dismiss"+ aria-label={t('updater.bannerDismiss')}>×</button>)}</div>@@ -196,6 +198,7 @@ interface DialogProps {}export function UpdaterDialog({ open, onClose }: DialogProps) {+ const t = useT()const { appInfo, status, releaseInfo, check, download, install } = useUpdater()useEffect(() => {@@ -232,17 +235,17 @@ export function UpdaterDialog({ open, onClose }: DialogProps) {><div className="px-6 py-5 border-b border-ink-100"><h2 className="font-display font-medium text-[18px] tracking-tight text-ink-900">- Cumora Update+ {t('updater.title')}</h2><div className="mt-1 text-[12.5px] text-ink-500 italic font-display">- {kind === 'idle' && 'You\'re on the latest version.'}- {kind === 'checking' && 'Checking for updates…'}- {kind === 'update-not-available' && 'You\'re on the latest version.'}- {kind === 'update-available' && 'A new version is ready to download.'}- {kind === 'downloading' && 'Downloading the update…'}- {kind === 'update-downloaded' && 'Update downloaded. Restart to install.'}- {kind === 'error' && 'Update check failed.'}- {isUnsupported && 'Auto-update is not available in this build.'}+ {kind === 'idle' && t('updater.latestVersion')}+ {kind === 'checking' && t('updater.checkingUpdates')}+ {kind === 'update-not-available' && t('updater.latestVersion')}+ {kind === 'update-available' && t('updater.newVersionReady')}+ {kind === 'downloading' && t('updater.downloadingUpdate')}+ {kind === 'update-downloaded' && t('updater.updateDownloaded')}+ {kind === 'error' && t('updater.checkFailed')}+ {isUnsupported && t('updater.unsupported')}</div></div>@@ -262,7 +265,7 @@ export function UpdaterDialog({ open, onClose }: DialogProps) {{changelog && (<div><div className="text-[10.5px] font-bold uppercase tracking-wider text-ink-500 mb-2">- What's new+ {t('updater.whatsNew')}</div><divclassName="text-[13px] text-ink-700 max-h-44 overflow-y-auto leading-relaxed rounded-[8px] p-3"@@ -277,7 +280,7 @@ export function UpdaterDialog({ open, onClose }: DialogProps) {{kind === 'downloading' && (<div><div className="flex justify-between text-[11.5px] text-ink-500 mb-1.5 font-display italic">- <span>Downloading</span>+ <span>{t('updater.downloadingLabel')}</span><span className="font-mono text-ink-700">{(status.percent ?? 0).toFixed(0)}% · {fmtBytes(status.transferred ?? 0)} / {fmtBytes(status.total ?? 0)}</span>@@ -304,7 +307,7 @@ export function UpdaterDialog({ open, onClose }: DialogProps) {style={{ background: 'rgba(110, 197, 106, 0.08)', color: '#2d8c72', border: '1px solid rgba(110, 197, 106, 0.25)' }}><span className="font-bold">✓</span>- <span>Ready to install — Cumora will restart at the new version.</span>+ <span>{t('updater.readyToInstall')}</span></div>)}@@ -326,7 +329,7 @@ export function UpdaterDialog({ open, onClose }: DialogProps) {className="px-4 py-2 rounded-[9px] text-[12.5px] font-semibold text-ink-700 hover:bg-paper transition"style={{ border: '1px solid var(--ink-100)' }}>- {kind === 'update-downloaded' ? 'Later' : 'Close'}+ {kind === 'update-downloaded' ? t('updater.laterAction') : t('updater.closeAction')}</button><div className="flex-1" />@@ -335,14 +338,14 @@ export function UpdaterDialog({ open, onClose }: DialogProps) {onClick={() => void check()}className="px-4 py-2 rounded-[9px] text-[12.5px] font-semibold text-white transition"style={{ background: 'var(--skype)' }}- >Check again</button>+ >{t('updater.checkAgain')}</button>)}{kind === 'checking' && (<buttondisabledclassName="px-4 py-2 rounded-[9px] text-[12.5px] font-semibold text-white opacity-60"style={{ background: 'var(--skype)' }}- >Checking…</button>+ >{t('updater.checkingEllipsis')}</button>)}{kind === 'update-available' && (<button@@ -352,14 +355,14 @@ export function UpdaterDialog({ open, onClose }: DialogProps) {background: 'var(--skype)',boxShadow: '0 4px 12px -3px rgba(0, 168, 240, 0.5)',}}- >Download</button>+ >{t('updater.download')}</button>)}{kind === 'downloading' && (<buttondisabledclassName="px-5 py-2 rounded-[9px] text-[12.5px] font-semibold text-white opacity-60"style={{ background: 'var(--skype)' }}- >Downloading…</button>+ >{t('updater.downloadingEllipsis')}</button>)}{kind === 'update-downloaded' && (<button@@ -369,7 +372,7 @@ export function UpdaterDialog({ open, onClose }: DialogProps) {background: 'var(--skype)',boxShadow: '0 4px 12px -3px rgba(0, 168, 240, 0.5)',}}- >Restart now</button>+ >{t('updater.restartNow')}</button>)}</div></div>diff --git a/src/components/WhisperRoom.tsx b/src/components/WhisperRoom.tsxindex be0a1a4..ee2b1dc 100644--- a/src/components/WhisperRoom.tsx+++ b/src/components/WhisperRoom.tsx@@ -13,6 +13,7 @@ import { DocumentLink } from './DocumentLink'import { CalendarLink } from './CalendarLink'import type { ApiWhisperMessage } from '@/api/client'import type { Participant } from '@/types'+import { useT } from '@/lib/i18n'/** Inline-only renderer for whisper bubbles — keeps the dashed-coral* mention chip (whispers use a different visual register than the main@@ -158,6 +159,7 @@ function Divider({ label }: { label: string }) {}export function WhisperRoom({ pairId }: { pairId: string }) {+ const t = useT()const list = useWhispers((s) => s.list)const byIdList = useWhispers((s) => s.byId)const streaming = useWhispers((s) => s.streaming)@@ -218,8 +220,8 @@ export function WhisperRoom({ pairId }: { pairId: string }) {<svg width="12" height="12" fill="none" stroke="currentColor" strokeWidth={2} viewBox="0 0 24 24"><path d="M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z" /><circle cx="12" cy="12" r="3" /></svg>- <b className="font-semibold tracking-wide uppercase text-[9.5px]">Observer mode</b>- <span className="font-display italic text-ink-500 text-[11px]">silent peek — inject to step in</span>+ <b className="font-semibold tracking-wide uppercase text-[9.5px]">{t('whisper.observerMode')}</b>+ <span className="font-display italic text-ink-500 text-[11px]">{t('whisper.observerHint')}</span></div></div>@@ -252,10 +254,10 @@ export function WhisperRoom({ pairId }: { pairId: string }) {)}</h2><div className="text-[11.5px] text-ink-500 mt-0.5 truncate font-display italic">- {isGroup ? `${ms.length} agents` : (whisper.about ?? 'private thread')}+ {isGroup ? t('whisper.nAgents', { n: ms.length }) : (whisper.about ?? t('whisper.privateThread'))}<span className="not-italic text-ink-300"> · </span><span className="not-italic text-ink-300">- started {new Date(whisper.createdAt).toLocaleTimeString([], { hour: '2-digit', minute: '2-digit' })}+ {t('whisper.startedAt', { time: new Date(whisper.createdAt).toLocaleTimeString([], { hour: '2-digit', minute: '2-digit' }) })}</span></div></div>@@ -263,9 +265,9 @@ export function WhisperRoom({ pairId }: { pairId: string }) {{/* Thread */}<div className="overflow-y-auto py-3 px-6 pb-3 flex flex-col gap-3 relative">- <Divider label={`opened ${new Date(whisper.createdAt).toLocaleTimeString([], { hour: '2-digit', minute: '2-digit' })}`} />+ <Divider label={t('whisper.openedAt', { time: new Date(whisper.createdAt).toLocaleTimeString([], { hour: '2-digit', minute: '2-digit' }) })} />{messages.length === 0 && (- <div className="text-center text-ink-300 text-[12px] font-display italic py-6">no messages yet</div>+ <div className="text-center text-ink-300 text-[12px] font-display italic py-6">{t('whisper.noMessages')}</div>)}{messages.map((msg) => <Bubble key={msg.id} msg={msg} />)}</div>@@ -277,7 +279,7 @@ export function WhisperRoom({ pairId }: { pairId: string }) {style={{ border: '1.5px solid var(--whisper-100)' }}><Avatar p={meAvatar} size={26} ringColor="var(--cloud)" showStatus={false} /><div className="flex-1 text-[13px] text-ink-300">- Inject a thought — <em className="font-display italic font-normal">they'll see it as if you'd been listening…</em>+ {t('whisper.injectPrompt')}</div></div></div>diff --git a/src/desktop/AgentsView.tsx b/src/desktop/AgentsView.tsxindex 094fd5c..a720e18 100644--- a/src/desktop/AgentsView.tsx+++ b/src/desktop/AgentsView.tsx@@ -8,10 +8,11 @@ import { Avatar } from '@/components/Avatar'import { IPlus } from '@/components/icons'import { AgentEditor } from '@/components/AgentEditor'import { api } from '@/api/client'+import { useT, type MessageKey } from '@/lib/i18n'import type { Participant } from '@/types'-const STATUS_LABEL: Record<string, string> = {- avail: 'Available', working: 'Working', thinking: 'Thinking', waiting: 'Waiting on you', resting: 'Resting',+const STATUS_LABEL_KEY: Record<string, MessageKey> = {+ avail: 'agents.statusAvail', working: 'agents.statusWorking', thinking: 'agents.statusThinking', waiting: 'agents.statusWaiting', resting: 'agents.statusResting',}const STATUS_COLOR: Record<string, string> = {avail: 'var(--avail)', working: 'var(--working)', thinking: 'var(--thinking)', waiting: 'var(--waiting)', resting: 'var(--resting)',@@ -22,15 +23,18 @@ function AgentCard({ p, onEdit, onDelete }: {onEdit: (p: Participant) => voidonDelete: (p: Participant) => void}) {+ const t = useT()const setView = useApp((s) => s.setView)const select = useApp((s) => s.selectConversation)const conversations = useConversations((s) => s.list)const host = useComputers((s) => (p.computerId ? s.byId[p.computerId] : undefined))const hostIcon = !host || host.kind === 'cloud' ? '☁' : host.kind === 'vps' ? '🖥' : '💻'- const hostLabel = host ? host.name : 'Cumora Cloud'+ const hostLabel = host ? host.name : t('agents.hostCloud')const hostOffline = !!host && host.kind !== 'cloud' && host.status !== 'online'const displayStatus = hostOffline ? 'resting' : p.status- const displayStatusLabel = hostOffline ? 'Computer offline' : STATUS_LABEL[p.status]+ const displayStatusLabel = hostOffline+ ? t('agents.statusOffline')+ : t((STATUS_LABEL_KEY[p.status] ?? 'common.idle') as MessageKey)const direct = useMemo(() => conversations.find((c) => c.kind === 'direct' && c.members.includes(p.id)),[conversations, p.id],@@ -68,8 +72,8 @@ function AgentCard({ p, onEdit, onDelete }: {onClick={() => onEdit(p)}className="w-7 h-7 rounded-full grid place-items-center bg-cloud hover:bg-sky2-50 text-ink-500 hover:text-skype-deep transition"style={{ border: '1px solid var(--ink-100)' }}- title="Edit"- aria-label="Edit agent"+ title={t('agents.cardEdit')}+ aria-label={t('agents.cardEditAgent')}><svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2"><path d="M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7"/><path d="M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z"/></svg></button>@@ -77,8 +81,8 @@ function AgentCard({ p, onEdit, onDelete }: {onClick={() => onDelete(p)}className="w-7 h-7 rounded-full grid place-items-center bg-cloud hover:bg-coral-soft text-ink-500 hover:text-coral-deep transition"style={{ border: '1px solid var(--ink-100)' }}- title="Off-board"- aria-label="Off-board agent"+ title={t('agents.cardOffboard')}+ aria-label={t('agents.cardOffboardAgent')}><svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2"><polyline points="3 6 5 6 21 6"/><path d="M19 6l-1 14a2 2 0 0 1-2 2H8a2 2 0 0 1-2-2L5 6"/><path d="M10 11v6M14 11v6"/></svg></button>@@ -100,10 +104,10 @@ function AgentCard({ p, onEdit, onDelete }: {</div><div className="inline-flex items-center gap-1 text-[11px] py-0.5 px-2 rounded-full text-ink-500"style={{ background: 'var(--ink-100)' }}- title={hostOffline ? `${hostLabel} is offline` : `Runs on ${hostLabel}`}>+ title={hostOffline ? t('agents.hostOfflineTip', { host: hostLabel }) : t('agents.hostRunsOn', { host: hostLabel })}><span>{hostIcon}</span><span className="max-w-[120px] truncate">{hostLabel}</span>- {hostOffline && <span className="italic text-ink-400">· sleeping</span>}+ {hostOffline && <span className="italic text-ink-400">{t('agents.hostOfflineSuffix')}</span>}</div></div></div>@@ -113,7 +117,7 @@ function AgentCard({ p, onEdit, onDelete }: {"{p.bio || p.systemPrompt || '—'}"</div>- <div className="text-[9.5px] font-bold text-ink-300 tracking-wider uppercase mb-2">Tools</div>+ <div className="text-[9.5px] font-bold text-ink-300 tracking-wider uppercase mb-2">{t('agents.tools')}</div><div className="flex flex-wrap gap-1 mb-4">{(p.tools ?? []).map((t) => (<span key={t} className="font-mono text-[10.5px] py-0.5 px-1.5 rounded text-ink-700"@@ -129,11 +133,11 @@ function AgentCard({ p, onEdit, onDelete }: {disabled={openingChat}className="flex-1 py-2 px-3 bg-skype text-white rounded-[9px] text-[12px] font-semibold transition disabled:opacity-60"style={{ boxShadow: '0 4px 12px -3px rgba(0, 168, 240, 0.4)' }}>- {openingChat ? 'Opening…' : 'Chat'}+ {openingChat ? t('agents.openingChat') : t('agents.cardChat')}</button><button className="flex-1 py-2 px-3 bg-cloud text-ink-700 rounded-[9px] text-[12px] font-semibold hover:border-whisper-200 hover:text-whisper-deep transition"style={{ border: '1px solid var(--ink-100)' }}>- Whisper+ {t('agents.cardWhisper')}</button></div></div>@@ -141,6 +145,7 @@ function AgentCard({ p, onEdit, onDelete }: {}function HireCard({ onClick }: { onClick: () => void }) {+ const t = useT()return (<buttononClick={onClick}@@ -154,10 +159,10 @@ function HireCard({ onClick }: { onClick: () => void }) {<IPlus className="w-6 h-6" strokeWidth={2} /></div><div className="font-display font-medium text-[18px] text-ink-900 mb-1.5" style={{ letterSpacing: '-0.01em' }}>- Add an agent+ {t('agents.addAgent')}</div><div className="font-display italic font-normal text-[12.5px] text-ink-500 max-w-[200px] mx-auto leading-[1.5]">- Define an id, a name, and the style they speak in.+ {t('agents.addAgentSub')}</div></div></button>@@ -169,6 +174,7 @@ function ConfirmOffboard({ p, onCancel, onConfirmed }: {onCancel: () => voidonConfirmed: () => void}) {+ const t = useT()const [busy, setBusy] = useState(false)const [err, setErr] = useState<string | null>(null)const submit = async () => {@@ -194,12 +200,12 @@ function ConfirmOffboard({ p, onCancel, onConfirmed }: {style={{ border: '1px solid var(--ink-100)' }}onClick={(e) => e.stopPropagation()}>- <h3 className="font-display font-medium text-[20px] tracking-tight mb-1.5">Off-board {p.name}?</h3>+ <h3 className="font-display font-medium text-[20px] tracking-tight mb-1.5">{t('agents.offboardTitle', { name: p.name })}</h3><p className="text-[13px] text-ink-700 leading-[1.6] mb-3">- {p.name} will leave the team. They stop replying, get hidden from other agents' rosters, and disappear from active conversations.+ {t('agents.offboardBody1', { name: p.name })}</p><p className="text-[12.5px] text-ink-500 leading-[1.55] font-display italic mb-4">- Their memory, log, workspace, tasks, and message history all stay intact — you can rehire them any time and they'll pick up where they left off.+ {t('agents.offboardBody2')}</p>{err && (<div className="text-[12.5px] text-coral-deep bg-coral-soft py-2 px-3 rounded-lg mb-3">{err}</div>@@ -210,13 +216,13 @@ function ConfirmOffboard({ p, onCancel, onConfirmed }: {disabled={busy}className="flex-1 py-2 px-3 rounded-[9px] text-[12.5px] font-semibold text-ink-700 bg-cloud hover:bg-sky2-50 transition"style={{ border: '1px solid var(--ink-100)' }}- >Cancel</button>+ >{t('common.cancel')}</button><buttononClick={submit}disabled={busy}className="flex-1 py-2 px-3 rounded-[9px] text-[12.5px] font-semibold text-white transition disabled:opacity-50"style={{ background: 'var(--coral-deep)' }}- >{busy ? 'Off-boarding…' : `Off-board ${p.name}`}</button>+ >{busy ? t('agents.offboarding') : t('agents.offboardButton', { name: p.name })}</button></div></div></div>@@ -224,9 +230,10 @@ function ConfirmOffboard({ p, onCancel, onConfirmed }: {}function FormerAgentCard({ p, onRehire }: { p: Participant; onRehire: (p: Participant) => void }) {+ const t = useT()const departed = p.departedAt- ? `off-boarded ${new Date(p.departedAt).toLocaleDateString()}`- : 'off-boarded'+ ? t('agents.offboardedAt', { date: new Date(p.departedAt).toLocaleDateString() })+ : t('agents.offboarded')return (<div className="bg-cloud rounded-[14px] p-4 flex items-center gap-3 transition hover:shadow-soft"style={{ border: '1px solid var(--ink-100)', opacity: 0.78 }}>@@ -241,16 +248,17 @@ function FormerAgentCard({ p, onRehire }: { p: Participant; onRehire: (p: ParticonClick={() => onRehire(p)}className="px-3 py-1.5 rounded-[8px] text-[11.5px] font-semibold text-skype-deep bg-cloud hover:bg-sky2-50 transition inline-flex items-center gap-1"style={{ border: '1px solid var(--sky2-200)' }}- title={`Rehire ${p.name}`}+ title={t('agents.rehireTitle', { name: p.name })}><svg width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2.5"><path d="M3 12a9 9 0 1 0 3-6.7"/><polyline points="3 4 3 10 9 10"/></svg>- Rehire+ {t('agents.rehire')}</button></div>)}export function AgentsView() {+ const t = useT()const byId = useParticipants((s) => s.byId)const meId = useMe()const allAgents = Object.values(byId).filter((p) => p.kind === 'agent')@@ -281,10 +289,10 @@ export function AgentsView() {<div className="mb-6 flex items-end gap-4"><div className="flex-1"><h1 className="font-display font-medium text-[36px] tracking-tight text-ink-900 mb-1" style={{ letterSpacing: '-0.025em' }}>- Your team <em className="italic text-skype-deep" style={{ fontWeight: 400 }}>of {list.length}</em>+ {t('agents.teamHeadline')} <em className="italic text-skype-deep" style={{ fontWeight: 400 }}>{t('agents.teamCountEm', { count: list.length })}</em></h1><div className="font-display italic font-normal text-[15px] text-ink-500">- Agents work on their own and with each other. They'll loop you in when they need a call.+ {t('agents.teamSubtitle')}</div></div><button@@ -296,22 +304,22 @@ export function AgentsView() {}}><IPlus className="w-4 h-4" strokeWidth={2.5} />- New agent+ {t('agents.newAgent')}</button></div><div className="flex gap-3 mb-6 text-[11px]"><div className="py-1.5 px-3 bg-cloud rounded-full text-ink-700 border border-ink-100">- <b className="text-skype-deep font-semibold">{list.filter((a) => a.status === 'working').length}</b> working+ <b className="text-skype-deep font-semibold">{list.filter((a) => a.status === 'working').length}</b> {t('agents.countWorking')}</div><div className="py-1.5 px-3 bg-cloud rounded-full text-ink-700 border border-ink-100">- <b className="text-thinking font-semibold">{list.filter((a) => a.status === 'thinking').length}</b> thinking+ <b className="text-thinking font-semibold">{list.filter((a) => a.status === 'thinking').length}</b> {t('agents.countThinking')}</div><div className="py-1.5 px-3 bg-cloud rounded-full text-ink-700 border border-ink-100">- <b className="text-avail font-semibold">{list.filter((a) => a.status === 'avail').length}</b> available+ <b className="text-avail font-semibold">{list.filter((a) => a.status === 'avail').length}</b> {t('agents.countAvailable')}</div><div className="py-1.5 px-3 bg-cloud rounded-full text-ink-700 border border-ink-100">- <b className="text-resting font-semibold">{list.filter((a) => a.status === 'resting').length}</b> resting+ <b className="text-resting font-semibold">{list.filter((a) => a.status === 'resting').length}</b> {t('agents.countResting')}</div></div>@@ -325,10 +333,10 @@ export function AgentsView() {{departed.length > 0 && (<div className="mt-10 mb-2"><h2 className="font-display font-medium text-[20px] tracking-tight text-ink-700 mb-1.5" style={{ letterSpacing: '-0.02em' }}>- Former teammates <em className="italic text-ink-500" style={{ fontWeight: 400, fontSize: '0.85em' }}>· {departed.length}</em>+ {t('agents.formerHeadline')} <em className="italic text-ink-500" style={{ fontWeight: 400, fontSize: '0.85em' }}>{t('agents.formerCount', { count: departed.length })}</em></h2><div className="font-display italic font-normal text-[13px] text-ink-500 mb-4">- Off-boarded — their memory and history are preserved. Rehire any time and they'll pick up where they left off.+ {t('agents.formerSubtitle')}</div><div className="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-3">{departed.map((p) => <FormerAgentCard key={p.id} p={p} onRehire={rehire} />)}@@ -339,10 +347,10 @@ export function AgentsView() {{humans.length > 0 && (<div className="mt-10 mb-2"><h2 className="font-display font-medium text-[24px] tracking-tight text-ink-900 mb-1.5" style={{ letterSpacing: '-0.02em' }}>- Human teammates+ {t('agents.humansHeadline')}</h2><div className="font-display italic font-normal text-[13.5px] text-ink-500 mb-5">- People you work with.+ {t('agents.humansSubtitle')}</div><div className="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-3">{humans.map((p) => (@@ -351,9 +359,9 @@ export function AgentsView() {<Avatar p={p} size={40} /><div className="flex-1 min-w-0"><div className="font-bold text-[14px] text-ink-900">{p.name}</div>- <div className="text-[11px] text-ink-500">{STATUS_LABEL[p.status] ?? 'idle'}</div>+ <div className="text-[11px] text-ink-500">{t((STATUS_LABEL_KEY[p.status] ?? 'common.idle') as MessageKey)}</div></div>- <span className="text-[9px] font-bold py-0.5 px-1.5 rounded uppercase tracking-wider bg-coral-soft text-coral-deep">human</span>+ <span className="text-[9px] font-bold py-0.5 px-1.5 rounded uppercase tracking-wider bg-coral-soft text-coral-deep">{t('common.human')}</span></div>))}</div>diff --git a/src/desktop/BoardsView.tsx b/src/desktop/BoardsView.tsxindex 8a3d8d6..05d150f 100644--- a/src/desktop/BoardsView.tsx+++ b/src/desktop/BoardsView.tsx@@ -10,6 +10,7 @@ import { DocumentLink } from '@/components/DocumentLink'import { ResizeHandle } from '@/components/ResizeHandle'import { Select } from '@/components/Select'import { useResizableWidth } from '@/lib/useResizableWidth'+import { useT } from '@/lib/i18n'import { IBoard, IPlus, IAt, ITrash, IMore } from '@/components/icons'import { cn } from '@/lib/utils'import type { BoardCard, BoardCardComment, BoardColumn, Participant } from '@/types'@@ -59,6 +60,7 @@ export function BoardsView() {/* ============== Sidebar ============== */function BoardsSidebar({ onResizeStart }: { onResizeStart: (e: React.MouseEvent) => void }) {+ const t = useT()const list = useBoards((s) => s.list)const selectedId = useBoards((s) => s.selectedId)const selectBoard = useBoards((s) => s.selectBoard)@@ -82,12 +84,12 @@ function BoardsSidebar({ onResizeStart }: { onResizeStart: (e: React.MouseEvent)<aside className="h-full overflow-y-auto border-r border-ink-100 bg-cloud/40 relative"><ResizeHandle onMouseDown={onResizeStart} /><div className="px-4 py-4 flex items-center justify-between">- <h2 className="text-lg font-semibold text-ink-900">Boards</h2>+ <h2 className="text-lg font-semibold text-ink-900">{t('boards.title')}</h2><buttononClick={() => setCreating(true)}className="w-7 h-7 rounded-md grid place-items-center text-ink-500 hover:bg-ink-50 hover:text-skype-deep"- title="New board"- aria-label="New board"+ title={t('boards.newBoard')}+ aria-label={t('boards.newBoard')}><IPlus className="w-4 h-4" /></button>@@ -103,7 +105,7 @@ function BoardsSidebar({ onResizeStart }: { onResizeStart: (e: React.MouseEvent)if (e.key === 'Escape') { setCreating(false); setDraft('') }}}onBlur={() => void submit()}- placeholder="Board title..."+ placeholder={t('boards.boardTitlePlaceholder')}className="w-full px-2.5 py-1.5 text-sm rounded-md border border-ink-200 bg-white focus:outline-none focus:border-skype"/></div>@@ -128,7 +130,7 @@ function BoardsSidebar({ onResizeStart }: { onResizeStart: (e: React.MouseEvent)})}{list.length === 0 && !creating && (<li className="px-4 py-3 text-xs text-ink-400">- No boards yet. Click + to start one.+ {t('boards.emptyHint')}</li>)}</ul>@@ -137,12 +139,13 @@ function BoardsSidebar({ onResizeStart }: { onResizeStart: (e: React.MouseEvent)}function EmptyBoardsState({ empty }: { empty: boolean }) {+ const t = useT()return (<div className="h-full grid place-items-center text-ink-400"><div className="text-center"><IBoard className="w-12 h-12 mx-auto mb-3 opacity-50" /><p className="text-sm">- {empty ? 'Create your first board to get started.' : 'Pick a board to open it.'}+ {empty ? t('boards.emptyCta') : t('boards.pickOne')}</p></div></div>@@ -152,6 +155,7 @@ function EmptyBoardsState({ empty }: { empty: boolean }) {/* ============== Canvas (columns + cards) ============== */function BoardCanvas({ boardId }: { boardId: string }) {+ const t = useT()const byId = useParticipants((s) => s.byId)const snap = useBoards((s) => s.snapshots[boardId])const loadingBoardId = useBoards((s) => s.loadingBoardId)@@ -185,7 +189,7 @@ function BoardCanvas({ boardId }: { boardId: string }) {if (!snap) {return (<div className="h-full grid place-items-center text-ink-400 text-sm">- {loadingBoardId === boardId ? 'Loading…' : 'No data.'}+ {loadingBoardId === boardId ? t('common.loading') : t('common.noData')}</div>)}@@ -239,12 +243,12 @@ function BoardCanvas({ boardId }: { boardId: string }) {</div><buttononClick={async () => {- if (!confirm(`Delete board "${snap.title}"? All columns and cards will be lost.`)) return+ if (!confirm(t('boards.deleteBoardConfirm', { title: snap.title }))) returntry { await deleteBoard(boardId) } catch (e) { console.warn('[boards] delete failed', e) }}}className="w-8 h-8 rounded-md grid place-items-center text-ink-400 hover:bg-coral-50 hover:text-coral-deep"- title="Delete board"- aria-label="Delete board"+ title={t('boards.deleteBoard')}+ aria-label={t('boards.deleteBoard')}><ITrash className="w-4 h-4" /></button>@@ -272,7 +276,7 @@ function BoardCanvas({ boardId }: { boardId: string }) {if (e.key === 'Escape') { setAddingCol(false); setColDraft('') }}}onBlur={() => void submitNewColumn()}- placeholder="Column title..."+ placeholder={t('boards.columnTitlePlaceholder')}className="w-full px-2.5 py-1.5 text-sm rounded-md border border-ink-200 bg-white focus:outline-none focus:border-skype"/></div>@@ -281,7 +285,7 @@ function BoardCanvas({ boardId }: { boardId: string }) {onClick={() => setAddingCol(true)}className="w-72 flex-shrink-0 px-3 py-2.5 rounded-lg text-sm text-ink-500 border border-dashed border-ink-200 hover:bg-cloud/40 hover:text-ink-700 transition-colors text-left">- + Add column+ {t('boards.addColumn')}</button>)}</div>@@ -305,6 +309,7 @@ function ColumnView({ boardId, column, cards, onOpenCard }: {boardId: string; column: BoardColumn; cards: BoardCard[]onOpenCard: (id: string) => void}) {+ const t = useT()const addCard = useBoards((s) => s.addCard)const moveCardOptimistic = useBoards((s) => s.moveCardOptimistic)const renameColumn = useBoards((s) => s.renameColumn)@@ -375,12 +380,12 @@ function ColumnView({ boardId, column, cards, onOpenCard }: {<span className="text-xs text-ink-400">{cards.length}</span><buttononClick={async () => {- if (cards.length > 0 && !confirm(`Delete "${column.title}"? ${cards.length} card(s) will be lost.`)) return+ if (cards.length > 0 && !confirm(t('boards.deleteColumnConfirm', { title: column.title, count: cards.length }))) returntry { await deleteColumn(boardId, column.id) } catch (e) { console.warn('[boards] delete col failed', e) }}}className="w-5 h-5 rounded grid place-items-center text-ink-300 hover:text-coral-deep"- title="Delete column"- aria-label="Delete column"+ title={t('boards.deleteColumn')}+ aria-label={t('boards.deleteColumn')}><IMore className="w-3.5 h-3.5" /></button>@@ -397,7 +402,7 @@ function ColumnView({ boardId, column, cards, onOpenCard }: {onSubmit={() => void submit()}onEscape={() => { setAdding(false); setDraft('') }}onBlur={() => void submit()}- placeholder="Card title... (@mention anyone)"+ placeholder={t('boards.cardTitlePlaceholder')}multilinesubmitOnEnterrows={2}@@ -408,7 +413,7 @@ function ColumnView({ boardId, column, cards, onOpenCard }: {onClick={() => setAdding(true)}className="w-full text-left text-xs text-ink-400 px-2.5 py-1.5 rounded-md hover:bg-white hover:text-ink-600 transition-colors">- + Add card+ {t('boards.addCard')}</button>)}</div>@@ -791,6 +796,7 @@ const EMPTY_COMMENTS: BoardCardComment[] = []function CardDetailModal({ boardId, card, columns, onClose }: {boardId: string; card: BoardCard; columns: BoardColumn[]; onClose: () => void}) {+ const t = useT()const byId = useParticipants((s) => s.byId)const meId = useMe()const patchCard = useBoards((s) => s.patchCard)@@ -859,7 +865,7 @@ function CardDetailModal({ boardId, card, columns, onClose }: {value={title}onChange={setTitle}onSubmit={() => void saveTitle()}- placeholder="Card title — @mention anyone"+ placeholder={t('boards.cardTitleEditPlaceholder')}className="-ml-2 w-full border-transparent bg-transparent px-2 py-1.5 text-[19px] font-semibold leading-7 text-ink-900 placeholder:text-ink-300 focus:border-skype/30 focus:bg-white focus:ring-2 focus:ring-skype/15"/></div>@@ -867,22 +873,22 @@ function CardDetailModal({ boardId, card, columns, onClose }: {type="button"onClick={() => { void saveTitle().then(onClose) }}className="shrink-0 rounded-md px-2.5 py-1.5 text-sm text-ink-500 hover:bg-sky2-50 hover:text-skype-deep"- >Close</button>+ >{t('common.close')}</button></header><div className="flex-1 overflow-y-auto px-5 py-4 space-y-5"><section className="grid grid-cols-2 gap-4"><div>- <div className="text-[11px] uppercase tracking-wide text-ink-400 mb-1">Column</div>+ <div className="text-[11px] uppercase tracking-wide text-ink-400 mb-1">{t('boards.column')}</div><Selectvalue={card.columnId}onValueChange={(columnId) => void moveToColumn(columnId)}options={columns.map((c) => ({ value: c.id, label: c.title }))}- ariaLabel="Column"+ ariaLabel={t('boards.ariaColumn')}/></div><div>- <div className="text-[11px] uppercase tracking-wide text-ink-400 mb-1">Assignee</div>+ <div className="text-[11px] uppercase tracking-wide text-ink-400 mb-1">{t('boards.assignee')}</div><AssigneePickervalue={card.assigneeId}onChange={(id) => void setAssignee(id)}@@ -892,12 +898,12 @@ function CardDetailModal({ boardId, card, columns, onClose }: {</section><section>- <div className="text-[11px] uppercase tracking-wide text-ink-400 mb-1">Description</div>+ <div className="text-[11px] uppercase tracking-wide text-ink-400 mb-1">{t('boards.description')}</div><MentionInputvalue={description}onChange={setDescription}onSubmit={() => void saveDescription()}- placeholder="What's this card about? (@mention agents or humans — they'll see it)"+ placeholder={t('boards.descPlaceholder')}multilinerows={4}/>@@ -910,13 +916,13 @@ function CardDetailModal({ boardId, card, columns, onClose }: {<buttononClick={() => void saveDescription()}className="text-xs text-ink-500 hover:text-skype-deep px-2 py-1"- >Save description</button>+ >{t('boards.saveDescription')}</button></div></section><section><div className="text-[11px] uppercase tracking-wide text-ink-400 mb-1">- Comments {comments.length > 0 && <span className="text-ink-500">· {comments.length}</span>}+ {t('boards.comments')}{comments.length > 0 && <span className="text-ink-500">· {comments.length}</span>}</div><ul className="space-y-2">{comments.map((c) => {@@ -937,7 +943,7 @@ function CardDetailModal({ boardId, card, columns, onClose }: {)})}{comments.length === 0 && (- <li className="text-xs text-ink-400">No comments yet.</li>+ <li className="text-xs text-ink-400">{t('boards.noCommentsYet')}</li>)}</ul><div className="mt-3">@@ -945,7 +951,7 @@ function CardDetailModal({ boardId, card, columns, onClose }: {value={draftComment}onChange={setDraftComment}onSubmit={() => void postComment()}- placeholder="Comment… (⌘↵ to post · @mention to ping)"+ placeholder={t('boards.commentPlaceholder')}multilinerows={2}/>@@ -954,7 +960,7 @@ function CardDetailModal({ boardId, card, columns, onClose }: {onClick={() => void postComment()}disabled={!draftComment.trim() || posting}className="px-3 py-1.5 text-sm rounded-md bg-skype text-white hover:bg-skype-deep disabled:opacity-40 disabled:hover:bg-skype"- >Post comment</button>+ >{t('boards.postComment')}</button></div></div></section>@@ -962,15 +968,15 @@ function CardDetailModal({ boardId, card, columns, onClose }: {<footer className="px-5 py-3 border-t border-ink-100 flex items-center justify-between"><div className="text-[11px] text-ink-400">- Created {formatTime(card.createdAt)} · by {byId[card.createdBy]?.name ?? card.createdBy}+ {t('boards.createdByAt', { time: formatTime(card.createdAt), author: byId[card.createdBy]?.name ?? card.createdBy })}</div><buttononClick={async () => {- if (!confirm('Delete this card?')) return+ if (!confirm(t('boards.deleteCardConfirm'))) returntry { await deleteCard(boardId, card.id); onClose() } catch (e) { console.warn(e) }}}className="text-xs text-coral-deep hover:underline"- >Delete card</button>+ >{t('boards.deleteCard')}</button></footer></div></div>@@ -980,6 +986,7 @@ function CardDetailModal({ boardId, card, columns, onClose }: {function AssigneePicker({ value, onChange, meId }: {value: string | null; onChange: (id: string | null) => void; meId: string | null}) {+ const t = useT()const byId = useParticipants((s) => s.byId)const id = useId()const rootRef = useRef<HTMLDivElement>(null)@@ -1000,14 +1007,14 @@ function AssigneePicker({ value, onChange, meId }: {)const selected = value ? everyone.find((p) => p.id === value) ?? null : nullconst options = useMemo(() => [- { id: null, label: 'Unassigned', meta: '', participant: null as Participant | null },+ { id: null, label: t('boards.unassigned'), meta: '', participant: null as Participant | null },...everyone.map((p) => ({id: p.id,label: p.name,- meta: p.kind === 'agent' ? 'agent' : (p.id === meId ? 'you' : 'human'),+ meta: p.kind === 'agent' ? t('common.agent') : (p.id === meId ? t('common.you') : t('common.human')),participant: p,})),- ], [everyone, meId])+ ], [everyone, meId, t])const filtered = useMemo(() => {const needle = query.trim().toLowerCase()if (!needle) return options@@ -1050,7 +1057,7 @@ function AssigneePicker({ value, onChange, meId }: {inputRef.current?.blur()}- const displayValue = open ? query : (selected ? `${selected.name}${selected.kind === 'agent' ? ' · agent' : ''}` : 'Unassigned')+ const displayValue = open ? query : (selected ? `${selected.name}${selected.kind === 'agent' ? ` · ${t('common.agent')}` : ''}` : t('boards.unassigned'))return (<div ref={rootRef} className="relative">@@ -1081,7 +1088,7 @@ function AssigneePicker({ value, onChange, meId }: {aria-controls={`${id}-listbox`}aria-activedescendant={open && filtered[activeIndex] ? `${id}-option-${activeIndex}` : undefined}value={displayValue}- placeholder="Search assignees..."+ placeholder={t('boards.searchAssignees')}onFocus={openMenu}onMouseDown={() => {if (!open) openMenu()@@ -1123,8 +1130,8 @@ function AssigneePicker({ value, onChange, meId }: {{value && (<buttontype="button"- aria-label="Clear assignee"- title="Clear assignee"+ aria-label={t('boards.clearAssignee')}+ title={t('boards.clearAssignee')}onMouseDown={(event) => event.preventDefault()}onClick={() => onChange(null)}className="absolute right-[45px] grid h-7 w-7 place-items-center rounded-[9px] text-ink-300 transition hover:bg-sky2-50 hover:text-ink-600"@@ -1134,7 +1141,7 @@ function AssigneePicker({ value, onChange, meId }: {)}<buttontype="button"- aria-label="Open assignee menu"+ aria-label={t('boards.openAssigneeMenu')}onMouseDown={(event) => event.preventDefault()}onClick={() => openMenu()}className={cn(@@ -1190,7 +1197,7 @@ function AssigneePicker({ value, onChange, meId }: {)})}{filtered.length === 0 && (- <div className="px-3 py-3 text-[12.5px] font-semibold text-ink-400">No matching teammate.</div>+ <div className="px-3 py-3 text-[12.5px] font-semibold text-ink-400">{t('boards.noMatchingTeammate')}</div>)}</div>)}diff --git a/src/desktop/CalendarView.tsx b/src/desktop/CalendarView.tsxindex b4aedc4..cf10b73 100644--- a/src/desktop/CalendarView.tsx+++ b/src/desktop/CalendarView.tsx@@ -24,6 +24,7 @@ import { useMe } from '@/stores/auth'import { Avatar } from '@/components/Avatar'import { IPlus, ICalendar, IClock, IRepeat, ITrash } from '@/components/icons'import { EventEditor, type EventEditorPrefill } from '@/components/EventEditor'+import { useT } from '@/lib/i18n'import { cn } from '@/lib/utils'import type { CalendarEvent, RecurrenceRule } from '@/types'@@ -40,7 +41,15 @@ type EditingState =| nullconst DAY_MS = 86_400_000-const WEEK = ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat']+const WEEK_KEYS = [+ 'cal.weekShortSun',+ 'cal.weekShortMon',+ 'cal.weekShortTue',+ 'cal.weekShortWed',+ 'cal.weekShortThu',+ 'cal.weekShortFri',+ 'cal.weekShortSat',+] as constconst HOUR_HEIGHT = 48const SLOT_MINUTES = 30const SLOT_HEIGHT = (HOUR_HEIGHT * SLOT_MINUTES) / 60@@ -111,13 +120,15 @@ function nextOccurrence(event: CalendarEvent, from: Date): Date | null {return null}-function describeRecurrence(r: RecurrenceRule | null): string {- if (!r) return 'one-shot'- const every = r.interval > 1 ? `every ${r.interval} ` : 'every '- const freqMap = { daily: 'day', weekly: 'week', monthly: 'month', yearly: 'year' } as const- const base = `${every}${freqMap[r.freq]}${r.interval > 1 ? 's' : ''}`+function describeRecurrence(r: RecurrenceRule | null, t: ReturnType<typeof useT>): string {+ if (!r) return t('cal.oneShot')+ const every = r.interval > 1 ? t('cal.everyN', { n: r.interval }) : t('cal.every')+ const freqMap = { daily: 'cal.dayUnit', weekly: 'cal.weekUnit', monthly: 'cal.monthUnit', yearly: 'cal.yearUnit' } as const+ const pluralMap = { daily: 'cal.dayUnitPlural', weekly: 'cal.weekUnitPlural', monthly: 'cal.monthUnitPlural', yearly: 'cal.yearUnitPlural' } as const+ const unitKey = r.interval > 1 ? pluralMap[r.freq] : freqMap[r.freq]+ const base = `${every} ${t(unitKey)}`if (r.freq === 'weekly' && r.byweekday && r.byweekday.length) {- return `${base} · ${r.byweekday.map((d) => WEEK[d]).join('/')}`+ return `${base} · ${r.byweekday.map((d) => t(WEEK_KEYS[d])).join(t('cal.weekdayJoin'))}`}return base}@@ -207,6 +218,7 @@ function ContextMenu({ x, y, items, onClose }: {/* ─────────────────────────── MonthGrid ─────────────────────────── */function MonthGrid({ cursor, events, onEdit, onNew }: GridProps) {+ const t = useT()const monthStart = startOfMonth(cursor)const monthEnd = endOfMonth(cursor)const gridStart = useMemo(() => {@@ -272,7 +284,7 @@ function MonthGrid({ cursor, events, onEdit, onNew }: GridProps) {return (<><div className="grid grid-cols-7 px-4 pt-3 text-[11px] uppercase tracking-wide text-ink-400 select-none">- {WEEK.map((d) => <div key={d} className="px-2 py-1">{d}</div>)}+ {WEEK_KEYS.map((k) => <div key={k} className="px-2 py-1">{t(k)}</div>)}</div><div className="flex-1 min-h-0 overflow-auto px-4 pb-4"><div@@ -348,7 +360,7 @@ function MonthGrid({ cursor, events, onEdit, onNew }: GridProps) {onClose={() => setMenu(null)}items={[{- label: `New event on ${menu.date.toLocaleDateString(undefined, { month: 'short', day: 'numeric' })}`,+ label: t('cal.newEventOn', { date: menu.date.toLocaleDateString(undefined, { month: 'short', day: 'numeric' }) }),onClick: () => {const start = new Date(menu.date); start.setHours(9, 0, 0, 0)const end = new Date(menu.date); end.setHours(10, 0, 0, 0)@@ -356,7 +368,7 @@ function MonthGrid({ cursor, events, onEdit, onNew }: GridProps) {},},{- label: 'New all-day event',+ label: t('cal.newAllDay'),onClick: () => {const start = new Date(menu.date); start.setHours(0, 0, 0, 0)const end = new Date(menu.date); end.setHours(23, 59, 0, 0)@@ -373,6 +385,7 @@ function MonthGrid({ cursor, events, onEdit, onNew }: GridProps) {/* ─────────────────────────── TimeGrid (Week / Day) ─────────────────────────── */function TimeGrid({ cursor, events, onEdit, onNew, dayCount }: GridProps & { dayCount: 1 | 7 }) {+ const t = useT()const start = useMemo(() => dayCount === 7 ? startOfWeek(cursor) : startOfDay(cursor),[cursor.getTime(), dayCount],@@ -464,7 +477,7 @@ function TimeGrid({ cursor, events, onEdit, onNew, dayCount }: GridProps & { dayconst isToday = sameDay(d, new Date())return (<div key={i} className="px-2 py-2 text-center border-l border-ink-100">- <div className="text-[10px] uppercase tracking-wider text-ink-400">{WEEK[d.getDay()]}</div>+ <div className="text-[10px] uppercase tracking-wider text-ink-400">{t(WEEK_KEYS[d.getDay()])}</div><div className={cn('mt-0.5 text-base font-semibold',isToday ? 'text-skype' : 'text-ink-900',@@ -592,14 +605,14 @@ function TimeGrid({ cursor, events, onEdit, onNew, dayCount }: GridProps & { dayonClose={() => setMenu(null)}items={[{- label: `New event at ${formatTime(menu.date)}`,+ label: t('cal.newEventAt', { time: formatTime(menu.date) }),onClick: () => {const end = new Date(menu.date); end.setHours(end.getHours() + 1)onNew({ startAt: menu.date, endAt: end })},},{- label: 'New all-day event',+ label: t('cal.newAllDay'),onClick: () => {const s = new Date(menu.date); s.setHours(0, 0, 0, 0)const e = new Date(menu.date); e.setHours(23, 59, 0, 0)@@ -616,6 +629,7 @@ function TimeGrid({ cursor, events, onEdit, onNew, dayCount }: GridProps & { day/* ─────────────────────────── CalendarView ─────────────────────────── */export function CalendarView() {+ const t = useT()const [mode, setMode] = useState<ViewMode>('week')const [cursor, setCursor] = useState<Date>(() => new Date())const [editing, setEditing] = useState<EditingState>(null)@@ -684,15 +698,17 @@ export function CalendarView() {<div className="flex flex-col min-h-0"><div className="px-6 py-3 border-b border-ink-100 flex items-center gap-3 shrink-0"><ICalendar className="w-5 h-5 text-skype" />- <h1 className="text-lg font-semibold text-ink-900">Calendar</h1>+ <h1 className="text-lg font-semibold text-ink-900">{t('cal.title')}</h1><div className="flex items-center gap-1 ml-3"><button onClick={goPrev}- className="w-7 h-7 rounded-md grid place-items-center text-ink-500 hover:bg-ink-100">‹</button>+ className="w-7 h-7 rounded-md grid place-items-center text-ink-500 hover:bg-ink-100"+ aria-label={t('cal.previous')}>‹</button><button onClick={goToday}- className="px-2 h-7 rounded-md text-xs font-medium text-ink-700 hover:bg-ink-100">Today</button>+ className="px-2 h-7 rounded-md text-xs font-medium text-ink-700 hover:bg-ink-100">{t('cal.today')}</button><button onClick={goNext}- className="w-7 h-7 rounded-md grid place-items-center text-ink-500 hover:bg-ink-100">›</button>+ className="w-7 h-7 rounded-md grid place-items-center text-ink-500 hover:bg-ink-100"+ aria-label={t('cal.next')}>›</button><span className="ml-2 text-sm text-ink-700 font-medium">{headerLabel}</span></div>@@ -712,7 +728,7 @@ export function CalendarView() {? 'bg-sky2-50 text-skype-deep ring-1 ring-inset ring-sky2-100': 'text-ink-500 hover:text-skype-deep hover:bg-sky2-50/60',)}- >{m}</button>+ >{t(`cal.${m}`)}</button>))}</div>@@ -725,7 +741,7 @@ export function CalendarView() {}}><IPlus className="w-4 h-4" strokeWidth={2.5} />- New+ {t('cal.newEvent')}</button></div>@@ -738,29 +754,29 @@ export function CalendarView() {<aside className="border-l border-ink-100 flex flex-col min-h-0"><div className="px-4 py-4 border-b border-ink-100 flex items-center gap-2 shrink-0"><IClock className="w-4 h-4 text-ink-500" />- <h2 className="text-sm font-semibold text-ink-700">Upcoming</h2>+ <h2 className="text-sm font-semibold text-ink-700">{t('cal.upcoming')}</h2><div className="flex-1" />- <span className="text-xs text-ink-400">{agenda.length} item{agenda.length === 1 ? '' : 's'}</span>+ <span className="text-xs text-ink-400">{t(agenda.length === 1 ? 'cal.itemsOne' : 'cal.itemsOther', { count: agenda.length })}</span></div><div className="flex-1 min-h-0 overflow-auto px-3 py-2 space-y-2">{!loaded && (- <div className="text-sm text-ink-400 px-1 py-2">Loading…</div>+ <div className="text-sm text-ink-400 px-1 py-2">{t('common.loading')}</div>)}{loaded && agenda.length === 0 && (<div className="px-1 py-6 text-center">- <div className="text-sm text-ink-500 mb-2">Nothing scheduled for the next 30 days.</div>+ <div className="text-sm text-ink-500 mb-2">{t('cal.empty30')}</div><buttononClick={() => openNew()}className="text-xs text-skype font-medium hover:underline"- >Schedule something →</button>+ >{t('cal.scheduleCta')}</button></div>)}{agenda.map((it, idx) => {const assignee = it.event.assigneeId ? byId[it.event.assigneeId] : nullconst day = sameDay(it.occurrence, new Date())- ? 'Today'+ ? t('cal.today'): sameDay(it.occurrence, new Date(Date.now() + DAY_MS))- ? 'Tomorrow'+ ? t('cal.tomorrow'): formatDateLong(it.occurrence)return (<div key={`${it.event.id}-${idx}`}@@ -776,14 +792,14 @@ export function CalendarView() {<span className="opacity-50">·</span><span className="inline-flex items-center gap-0.5 text-skype-deep"><IRepeat className="w-3 h-3" />- {describeRecurrence(it.event.recurrence)}+ {describeRecurrence(it.event.recurrence, t)}</span></>)}{it.event.isPrivate && (<><span className="opacity-50">·</span>- <span title="Private event — only the creator and assignee can see this. The workspace owner can also see private events that involve an agent.">🔒</span>+ <span title={t('cal.privateHint')}>🔒</span></>)}</div>@@ -797,7 +813,7 @@ export function CalendarView() {<span className="text-xs text-ink-600">→ {assignee.name}</span>{it.event.targetConversationId && convosById[it.event.targetConversationId] && (<span className="text-xs text-ink-400 truncate">- in #{convosById[it.event.targetConversationId]}+ {t('cal.inConversation', { name: convosById[it.event.targetConversationId] })}</span>)}</div>@@ -806,18 +822,18 @@ export function CalendarView() {<div className="flex flex-col gap-0.5 opacity-0 group-hover:opacity-100 transition-opacity">{it.event.kind === 'agent_task' && (<button- title="Run now"+ title={t('cal.runNow')}onClick={async () => {try { await runNow(it.event.id) } catch (err) { console.warn('[calendar] run-now failed', err) }}}className="text-[10px] text-skype-deep px-1.5 py-0.5 rounded hover:bg-sky2-100"- >Run now</button>+ >{t('cal.runNow')}</button>)}{(it.event.createdBy === meId) && (<button- title="Delete event"+ title={t('cal.deleteEvent')}onClick={async () => {- if (!confirm(`Delete "${it.event.title}"?`)) return+ if (!confirm(t('cal.deleteEventConfirm', { title: it.event.title }))) returntry { await remove(it.event.id) } catch (err) { console.warn('[calendar] delete failed', err) }}}className="text-ink-400 hover:text-coral-deep p-0.5 rounded"diff --git a/src/desktop/ChatPane.tsx b/src/desktop/ChatPane.tsxindex 12537cb..ab4ab88 100644--- a/src/desktop/ChatPane.tsx+++ b/src/desktop/ChatPane.tsx@@ -23,11 +23,13 @@ import { PollComposer } from '@/components/PollComposer'import { ScrollToLatestButton } from '@/components/ScrollToLatestButton'import { ISearch, IPin, IClip, IAt, ISmile, ISend, IConvene } from '@/components/icons'import type { Participant } from '@/types'+import { useT } from '@/lib/i18n'/** Soft "Coming soon" popover anchored beneath the trigger. Auto-dismisses* after a beat; also closes on outside-click or Escape. The sparkle* drifts gently so the bubble feels alive rather than static. */function ComingSoonPop({ onClose }: { onClose: () => void }) {+ const t = useT()useEffect(() => {// Defer outside-click + key listeners by one tick so the click that// opened the bubble doesn't immediately close it again.@@ -69,9 +71,9 @@ function ComingSoonPop({ onClose }: { onClose: () => void }) {style={{ animation: 'cumora-sparkle-drift 2.4s ease-in-out infinite' }}>✨</span><div className="min-w-0">- <div className="text-[12.5px] font-semibold text-ink-900 leading-tight">Coming soon</div>+ <div className="text-[12.5px] font-semibold text-ink-900 leading-tight">{t('chat.comingSoon')}</div><div className="text-[11.5px] text-ink-500 font-display italic leading-snug mt-0.5">- Live working sessions are still on the way.+ {t('chat.conveneSoon')}</div></div></div>@@ -97,6 +99,7 @@ function ChatHeader({onToggleSearch: () => voidsearchOpen: boolean}) {+ const t = useT()void onConveneconst c = useConversations((s) => s.list.find((x) => x.id === convoId))const byId = useParticipants((s) => s.byId)@@ -204,7 +207,7 @@ function ChatHeader({) : (<spanclassName={cn('truncate', canRename && 'cursor-text hover:text-skype-deep transition')}- title={canRename ? 'Click to rename group' : c.title}+ title={canRename ? t('chat.renameHint') : c.title}onClick={canRename ? startEditTitle : undefined}>{c.title}</span>)}@@ -216,7 +219,7 @@ function ChatHeader({color: c.projectColor ? 'white' : 'var(--ink-700)',border: c.projectColor ? 'none' : '1px solid var(--ink-100)',}}- title={`Part of project: ${c.projectName}`}+ title={t('chat.partOfProject', { name: c.projectName })}>{c.projectName}</span>)}</h2>@@ -225,7 +228,7 @@ function ChatHeader({{humanCount > 0 && (<><span className="w-1 h-1 rounded-full bg-ink-300 shrink-0" />- <span className="shrink-0">+ {humanCount === 1 ? 'you' : `${humanCount} humans`}</span>+ <span className="shrink-0">+ {humanCount === 1 ? t('chat.youInHeader') : t('chat.humansCount', { n: humanCount })}</span></>)}{!c.topic && !editingTopic && (@@ -234,8 +237,8 @@ function ChatHeader({<buttononClick={startEditTopic}className="text-ink-300 italic font-display hover:text-skype-deep transition shrink-0"- title="Set a topic"- >+ topic</button>+ title={t('chat.setTopic')}+ >{t('chat.addTopic')}</button></>)}</div>@@ -253,7 +256,7 @@ function ChatHeader({if (e.key === 'Enter') { e.preventDefault(); void saveTopic() }if (e.key === 'Escape') setEditingTopic(false)}}- placeholder="What's this group for?"+ placeholder={t('chat.topicPlaceholder')}className="mt-0.5 w-full bg-transparent text-[12px] text-ink-700 italic placeholder:text-ink-300 outline-none border-b border-sky2-200 focus:border-skype-deep transition pb-0.5"maxLength={200}/>@@ -265,7 +268,7 @@ function ChatHeader({// final character. pr-1 + max-w-full keeps the layout// honest while leaving room for the slant.className="mt-0.5 text-[12px] text-ink-500 italic hover:text-skype-deep transition truncate text-left max-w-full font-display pr-1 block leading-[1.5]"- title="Click to edit topic"+ title={t('chat.editTopic')}>{c.topic}</button>@@ -283,7 +286,7 @@ function ChatHeader({'rounded-full transition hover:opacity-80 active:scale-95 shrink-0 hidden lg:block focus-visible:outline focus-visible:outline-2 focus-visible:outline-sky2-300',membersAnchor && 'opacity-100',)}- title="Show conversation members"+ title={t('chat.showMembers')}><AvatarStack ps={agentMembers} size={28} max={4} /></button>@@ -301,8 +304,8 @@ function ChatHeader({<div className="flex gap-1 text-ink-500 shrink-0"><buttononClick={onToggleSearch}- title="Search in this conversation"- aria-label="Search in this conversation"+ title={t('chat.search')}+ aria-label={t('chat.search')}className={cn('w-9 h-9 rounded-[9px] hidden md:grid place-items-center transition',searchOpen ? 'bg-sky2-100 text-skype-deep' : 'hover:bg-sky2-50 hover:text-skype-deep',@@ -326,8 +329,8 @@ function ChatHeader({}))}}}- title={c.pinned ? 'Unpin from top' : 'Pin to top'}- aria-label={c.pinned ? 'Unpin from top' : 'Pin to top'}+ title={c.pinned ? t('chat.unpinFromTop') : t('chat.pinToTop')}+ aria-label={c.pinned ? t('chat.unpinFromTop') : t('chat.pinToTop')}className={cn('w-9 h-9 rounded-[9px] hidden md:grid place-items-center transition',c.pinned ? 'bg-gold/15 text-gold-deep' : 'hover:bg-sky2-50 hover:text-skype-deep',@@ -338,12 +341,12 @@ function ChatHeader({<div className="relative"><buttononClick={() => setShowConveneSoon((v) => !v)}- title="Convene"+ title={t('chat.convene')}className="px-3.5 inline-flex items-center gap-1.5 font-semibold text-[12.5px] rounded-full text-white"style={{ height: 36, background: 'var(--skype)', boxShadow: '0 4px 12px -3px rgba(0, 168, 240, 0.5)' }}><IConvene className="w-4 h-4" />- <span>Convene</span>+ <span>{t('chat.convene')}</span></button>{showConveneSoon && (<ComingSoonPop onClose={() => setShowConveneSoon(false)} />@@ -372,6 +375,7 @@ function readInitialEmojiTab(): EmojiTab {}function EmojiPopover({ onPick, onClose }: { onPick: (e: string) => void; onClose: () => void }) {+ const t = useT()const ref = useRef<HTMLDivElement | null>(null)// Remember the last-used tab across opens (and across app restarts).// The persisted choice survives reloads — most users settle into one@@ -415,7 +419,7 @@ function EmojiPopover({ onPick, onClose }: { onPick: (e: string) => void; onClos'flex-1 text-[11px] font-semibold uppercase tracking-wider py-1 rounded-[6px] transition',tab === k ? 'bg-sky2-100 text-skype-deep' : 'text-ink-500 hover:bg-sky2-50',)}- >{k === 'std' ? 'Standard' : 'Skype'}</button>+ >{k === 'std' ? t('chat.emojiStandard') : t('chat.emojiSkype')}</button>))}</div>{tab === 'std' ? (@@ -556,6 +560,7 @@ export function Composer({threadRootId?: string | nullplaceholder?: string}) {+ const t = useT()const isThread = threadRootId !== null// Draft scope key — distinct namespace for thread mode so swapping between// the main composer and a thread drawer doesn't share text.@@ -846,8 +851,8 @@ export function Composer({const slashCommands = useMemo<SlashCommand[]>(() => [{id: 'poll',- label: 'Poll',- hint: '发起一次投票,agents 和人都能参与',+ label: t('chat.slashPoll'),+ hint: t('chat.slashPollHint'),keywords: ['poll', 'vote', '投票', 'p'],run: () => openPollComposer(),},@@ -1035,12 +1040,12 @@ export function Composer({<buttononClick={() => setAttachment(null)}className="ml-1 w-6 h-6 rounded-md grid place-items-center text-ink-500 hover:bg-cloud hover:text-ink-900 transition shrink-0"- aria-label="Remove attachment"+ aria-label={t('chat.removeAttachment')}>×</button></div>)}{uploading && (- <div className="mb-2 text-[11.5px] text-ink-500 italic">uploading…</div>+ <div className="mb-2 text-[11.5px] text-ink-500 italic">{t('chat.uploading')}</div>)}{uploadError && (<div className="mb-2 text-[11.5px] py-1 px-2 rounded-md text-coral-deep bg-coral-soft inline-block max-w-full truncate">@@ -1052,7 +1057,7 @@ export function Composer({<div className="w-[3px] rounded bg-skype shrink-0" /><div className="min-w-0 flex-1 flex flex-col gap-0.5"><div className="text-[10.5px] font-bold uppercase tracking-wider text-skype-deep">- Replying to {byId[replyingToMsg?.authorId ?? '']?.name ?? replyingToMsg?.authorId ?? '…'}+ {t('chat.replyingTo', { name: byId[replyingToMsg?.authorId ?? '']?.name ?? replyingToMsg?.authorId ?? '…' })}</div>{/* CJK text has no whitespace, so `truncate` (white-space: nowrap)blocks any soft break and the flex item's min-content equals@@ -1066,14 +1071,14 @@ export function Composer({>{replyingToMsg? <PreviewText body={replyingToMsg.body.slice(0, 140).replace(/\n/g, ' ')} />- : '(loading…)'}+ : t('chat.replyingToLoading')}</div></div><buttononClick={() => setReplyingTo(convoId, null)}className="w-6 h-6 rounded-md grid place-items-center text-ink-500 hover:bg-cloud hover:text-ink-900 transition shrink-0 self-center"- aria-label="Cancel reply"- title="Cancel reply (Esc)"+ aria-label={t('chat.cancelReply')}+ title={t('chat.cancelReplyEsc')}>×</button></div>)}@@ -1081,8 +1086,8 @@ export function Composer({<RichInputref={editorRef}defaultValue={draft}- placeholder={placeholder ?? 'Message the team. Type @ to summon, drop a file to attach.'}- ariaLabel="Message composer"+ placeholder={placeholder ?? t('chat.composerPlaceholder')}+ ariaLabel={t('chat.composerAriaLabel')}className="rich-input whitespace-pre-wrap w-full bg-transparent text-[14px] text-ink-900 leading-[1.5]"style={{ minHeight: '1.5em' }}maxHeight={200}@@ -1098,7 +1103,7 @@ export function Composer({const p = byId[id]if (!p) return nullreturn {- name: p.id === meId ? 'you' : p.name,+ name: p.id === meId ? t('chat.youInHeader') : p.name,initial: p.initial || p.name.charAt(0).toUpperCase(),avatarBg: typeof p.avatarBg === 'string' ? p.avatarBg : 'var(--ink-300)',kind: p.kind,@@ -1115,7 +1120,7 @@ export function Composer({onMouseDown={(e) => e.preventDefault()}><div className="px-3 pt-1.5 pb-1 text-[10px] font-bold uppercase tracking-[0.12em] text-ink-300">- Slash command {slashQuery ? `· "/${slashQuery}"` : ''}+ {slashQuery ? t('chat.slashCommandTitleQuery', { query: slashQuery }) : t('chat.slashCommandTitle')}</div>{filteredSlashCommands.map((cmd, i) => {const active = i === slashIndex@@ -1155,7 +1160,7 @@ export function Composer({onMouseDown={(e) => e.preventDefault()}><div className="px-3 pt-1.5 pb-1 text-[10px] font-bold uppercase tracking-[0.12em] text-ink-300">- Mention {mention.query ? `· "${mention.query}"` : ''}+ {mention.query ? t('chat.mentionTitleQuery', { query: mention.query }) : t('chat.mentionTitle')}</div>{filteredMentions.map((entry, i) => {const active = i === mentionIndex@@ -1177,8 +1182,8 @@ export function Composer({className="w-[26px] h-[26px] rounded-full object-cover"/><div className="flex-1 min-w-0">- <div className="text-[12.5px] font-semibold text-ink-900 truncate">Everyone</div>- <div className="text-[10.5px] text-ink-500 truncate">Notify all members of this room</div>+ <div className="text-[12.5px] font-semibold text-ink-900 truncate">{t('chat.everyone')}</div>+ <div className="text-[10.5px] text-ink-500 truncate">{t('chat.everyoneHint')}</div></div></button>)@@ -1220,13 +1225,13 @@ export function Composer({<buttononClick={() => fileRef.current?.click()}className="w-7 h-7 rounded-[7px] grid place-items-center hover:bg-sky2-50 hover:text-skype-deep transition"- title="Attach file"+ title={t('chat.attachFile')}><IClip className="w-[17px] h-[17px]" /></button><buttononMouseDown={(e) => e.preventDefault()}onClick={() => insertAtCursor('@')}className="w-7 h-7 rounded-[7px] grid place-items-center hover:bg-sky2-50 hover:text-skype-deep transition"- title="Mention"+ title={t('chat.mention')}><IAt className="w-[17px] h-[17px]" /></button><div className="relative"><button@@ -1235,7 +1240,7 @@ export function Composer({'w-7 h-7 rounded-[7px] grid place-items-center hover:bg-sky2-50 hover:text-skype-deep transition',emojiOpen && 'bg-sky2-50 text-skype-deep',)}- title="Emoji"+ title={t('chat.emoji')}><ISmile className="w-[17px] h-[17px]" /></button>{emojiOpen && (<EmojiPopover@@ -1253,7 +1258,7 @@ export function Composer({boxShadow: canSend ? '0 4px 12px -3px rgba(0, 168, 240, 0.5)' : 'none',}}>- Send <ISend className="w-3.5 h-3.5" strokeWidth={2} />+ {t('chat.send')} <ISend className="w-3.5 h-3.5" strokeWidth={2} /></button></div></div>@@ -1262,6 +1267,7 @@ export function Composer({}function ThreadLoader() {+ const t = useT()return (<divclassName="grid place-items-center py-16"@@ -1293,7 +1299,7 @@ function ThreadLoader() {</div></div><div className="font-display italic text-[13px] text-ink-500 tracking-tight">- Gathering messages…+ {t('chat.gathering')}</div></div></div>@@ -1301,6 +1307,7 @@ function ThreadLoader() {}function ThreadError({ message, onRetry }: { message: string; onRetry: () => void }) {+ const t = useT()const [retrying, setRetrying] = useState(false)const handleRetry = async () => {if (retrying) return@@ -1337,7 +1344,7 @@ function ThreadError({ message, onRetry }: { message: string; onRetry: () => voi</svg></div><div className="font-display font-medium text-[15px] tracking-tight text-ink-700">- Couldn't load messages+ {t('chat.loadFailed')}</div><div className="text-[12.5px] text-ink-500 leading-relaxed break-words">{message}@@ -1354,7 +1361,7 @@ function ThreadError({ message, onRetry }: { message: string; onRetry: () => voi{retrying ? (<><span className="w-3 h-3 rounded-full border-2 border-white/40 border-t-white animate-spin" />- Retrying…+ {t('chat.retrying')}</>) : (<>@@ -1364,7 +1371,7 @@ function ThreadError({ message, onRetry }: { message: string; onRetry: () => voistroke="currentColor" strokeWidth="1.8" strokeLinecap="round" strokeLinejoin="round"/></svg>- Try again+ {t('chat.tryAgain')}</>)}</button>@@ -1374,6 +1381,7 @@ function ThreadError({ message, onRetry }: { message: string; onRetry: () => voi}function EmptyConversationState() {+ const t = useT()// Live counts pulled straight from the store so the empty stage carries// one tiny piece of "alive" data at the bottom — matches the inline// italic counter pattern in WhispersView's sidebar header.@@ -1506,7 +1514,7 @@ function EmptyConversationState() {<buttontype="button"onClick={onCloudPoke}- aria-label="Hello cloud"+ aria-label={t('chat.helloCloud')}className="cumora-cloud-poke group block w-full h-full cursor-pointer p-0 border-0 bg-transparent focus:outline-none"style={{// Silky-spring transition. The hover-state CSS rule@@ -1643,22 +1651,22 @@ function EmptyConversationState() {className="font-display font-medium text-[28px] text-ink-900 leading-[1.12]"style={{ letterSpacing: '-0.025em' }}>- Pick up where you left off+ {t('chat.emptyTitle')}</h2><p className="mt-2.5 font-display italic text-[14px] text-ink-500 leading-relaxed max-w-[360px]">- Choose a thread on the left to slip back in.+ {t('chat.emptySub')}</p>{total > 0 && (<div className="mt-6 text-[12px] text-ink-400 font-display italic flex items-center gap-1.5"><span className="text-gold leading-none not-italic" style={{ fontSize: 10 }}>★</span><b className="not-italic text-ink-700 font-semibold tabular-nums">{total}</b>- <span>{total === 1 ? 'thread waiting' : 'threads waiting'}</span>+ <span>{t(total === 1 ? 'chat.threadWaiting' : 'chat.threadsWaiting')}</span>{unread > 0 && (<><span className="text-ink-200" aria-hidden>·</span><b className="not-italic text-coral-deep font-semibold tabular-nums">{unread}</b>- <span>unread</span>+ <span>{t('chat.unread')}</span></>)}</div>@@ -1671,6 +1679,7 @@ function EmptyConversationState() {}export function ChatPane() {+ const t = useT()const convoId = useApp((s) => s.selectedConversationId)const setView = useApp((s) => s.setView)// Atomic selectors — primitive / stable refs@@ -1949,12 +1958,12 @@ export function ChatPane() {if ((e.key === 'Enter' && e.shiftKey) || e.key === 'ArrowUp') { e.preventDefault(); setMatchIdx((i) => (i - 1 + n) % n); return }if (e.key === 'ArrowDown') { e.preventDefault(); setMatchIdx((i) => (i + 1) % n) }}}- placeholder="Search in this conversation…"+ placeholder={t('chat.searchPlaceholder')}className="flex-1 min-w-0 bg-transparent outline-none text-ink-900 placeholder:text-ink-300"/><span className="shrink-0 font-mono text-[11px] tabular-nums text-ink-300">{matchedIds.length === 0- ? (searchQuery.trim() ? 'no matches' : '')+ ? (searchQuery.trim() ? t('chat.searchNoMatch') : ''): `${matchIdx + 1} / ${matchedIds.length}`}</span></div>@@ -1962,7 +1971,7 @@ export function ChatPane() {type="button"onClick={() => setMatchIdx((i) => (i - 1 + matchedIds.length) % Math.max(1, matchedIds.length))}disabled={matchedIds.length === 0}- title="Previous match (Shift+Enter / ↑)"+ title={t('chat.prevMatch')}className="w-8 h-8 rounded-[8px] grid place-items-center text-ink-500 hover:bg-sky2-50 hover:text-skype-deep transition disabled:opacity-40 disabled:hover:bg-transparent disabled:hover:text-ink-500"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2.2" strokeLinecap="round" strokeLinejoin="round" className="w-4 h-4">@@ -1973,7 +1982,7 @@ export function ChatPane() {type="button"onClick={() => setMatchIdx((i) => (i + 1) % Math.max(1, matchedIds.length))}disabled={matchedIds.length === 0}- title="Next match (Enter / ↓)"+ title={t('chat.nextMatch')}className="w-8 h-8 rounded-[8px] grid place-items-center text-ink-500 hover:bg-sky2-50 hover:text-skype-deep transition disabled:opacity-40 disabled:hover:bg-transparent disabled:hover:text-ink-500"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2.2" strokeLinecap="round" strokeLinejoin="round" className="w-4 h-4">@@ -1983,7 +1992,7 @@ export function ChatPane() {<buttontype="button"onClick={() => { setSearchOpen(false); setSearchQuery('') }}- title="Close (Esc)"+ title={t('chat.closeEsc')}className="w-8 h-8 rounded-[8px] grid place-items-center text-ink-500 hover:bg-sky2-50 transition"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2.2" strokeLinecap="round" className="w-4 h-4">@@ -2031,12 +2040,12 @@ export function ChatPane() {<div className="px-6 pt-6 flex flex-col gap-2">{hasMoreOlder ? (<div className="self-center py-1 px-2.5 rounded-full text-[10.5px] font-medium text-ink-400">- {loadingOlder ? 'Loading earlier…' : ' '}+ {loadingOlder ? t('chat.loadingEarlier') : ' '}</div>) : (<div className="flex items-center gap-3 text-ink-300 text-[11px] font-bold tracking-[0.08em] uppercase"><span className="flex-1 h-px bg-gradient-to-r from-transparent via-ink-100 to-transparent" />- Beginning+ {t('chat.beginning')}<span className="flex-1 h-px bg-gradient-to-r from-transparent via-ink-100 to-transparent" /></div>)}diff --git a/src/desktop/ConveneView.tsx b/src/desktop/ConveneView.tsxindex 55a28e7..37e47ff 100644--- a/src/desktop/ConveneView.tsx+++ b/src/desktop/ConveneView.tsx@@ -5,6 +5,7 @@ import { useParticipants } from '@/stores/participants'import { Avatar } from '@/components/Avatar'import { api, ws, type ApiConveneSession, type ApiConveneTranscript } from '@/api/client'import { cn } from '@/lib/utils'+import { useT } from '@/lib/i18n'interface ConveneState {session: ApiConveneSession | null@@ -12,6 +13,7 @@ interface ConveneState {}export function ConveneView() {+ const t = useT()const convoId = useApp((s) => s.selectedConversationId)const conversations = useConversations((s) => s.list)const c = useMemo(() => conversations.find((x) => x.id === convoId), [conversations, convoId])@@ -55,7 +57,7 @@ export function ConveneView() {const startConvene = async () => {if (!convoId) returntry {- const session = await api.startConvene(convoId, c?.title ?? 'live work session')+ const session = await api.startConvene(convoId, c?.title ?? t('convene.sessionTitleFallback'))setState({ session, transcript: [] })} catch (err) { console.warn(err) }}@@ -66,10 +68,10 @@ export function ConveneView() {style={{ background: 'radial-gradient(ellipse 80% 50% at 50% 100%, rgba(143, 211, 247, 0.18), transparent 60%), var(--paper)' }}><div className="text-center"><div className="font-display font-medium text-[24px] text-ink-900 mb-2" style={{ letterSpacing: '-0.02em' }}>- Pick a conversation+ {t('convene.pickConvo')}</div><div className="font-display italic text-[14px] text-ink-500">- Convene runs from a chat. Select one and click Convene to bring agents into a live session.+ {t('convene.pickConvoSub')}</div></div></main>@@ -82,16 +84,16 @@ export function ConveneView() {style={{ background: 'radial-gradient(ellipse 80% 50% at 50% 100%, rgba(143, 211, 247, 0.18), transparent 60%), var(--paper)' }}><div className="text-center max-w-sm"><div className="font-display font-medium text-[24px] text-ink-900 mb-2" style={{ letterSpacing: '-0.02em' }}>- {state.session ? 'Last convene wrapped' : 'No live convene'}+ {state.session ? t('convene.lastWrapped') : t('convene.noLive')}</div><div className="font-display italic text-[14px] text-ink-500 mb-5">- Pull every agent in <b className="text-ink-700 font-semibold">{c.title}</b> into a live work session — each takes a turn, decisions are summarized at the end.+ {t('convene.ctaSub', { title: c.title })}</div><buttononClick={startConvene}className="py-3 px-5 rounded-full text-white text-[13.5px] font-semibold inline-flex items-center gap-2"style={{ background: 'linear-gradient(135deg, var(--skype), var(--skype-deep))', boxShadow: '0 6px 16px -4px rgba(0, 168, 240, 0.5)' }}>- ▶ Start a Convene+ {t('convene.startBtn')}</button></div></main>@@ -104,7 +106,7 @@ export function ConveneView() {style={{ background: 'linear-gradient(90deg, rgba(255, 122, 107, 0.08) 0%, rgba(0, 168, 240, 0.06) 100%)' }}><div className="inline-flex items-center gap-2 py-1.5 px-3 bg-coral-deep text-white rounded-full text-[10.5px] font-extrabold tracking-[0.12em] uppercase"><span className="w-1.5 h-1.5 rounded-full bg-white animate-pulse-soft" />- LIVE+ {t('convene.live')}</div><div className="font-display font-medium text-[17px] text-ink-900" style={{ letterSpacing: '-0.01em' }}>{state.session.title}@@ -113,7 +115,7 @@ export function ConveneView() {<em className="italic text-coral-deep" style={{ fontStyle: 'italic', fontWeight: 400 }}>{state.session.flair}</em>)}<div className="text-[12px] text-ink-500 ml-auto">- started {new Date(state.session.started_at).toLocaleTimeString([], { hour: '2-digit', minute: '2-digit' })}+ {t('convene.startedAt', { time: new Date(state.session.started_at).toLocaleTimeString([], { hour: '2-digit', minute: '2-digit' }) })}</div></div>@@ -138,7 +140,13 @@ export function ConveneView() {<div className="text-[11.5px] font-semibold flex items-center gap-1.5"style={{ color: isSpeaking ? 'var(--skype-deep)' : `var(--${p.status})` }}><span className="w-1.5 h-1.5 rounded-full animate-pulse-soft" style={{ background: isSpeaking ? 'var(--skype)' : `var(--${p.status})` }} />- {isSpeaking ? 'speaking' : (p.status === 'thinking' ? 'thinking' : p.status === 'working' ? 'working' : 'listening')}+ {isSpeaking+ ? t('convene.statusSpeaking')+ : p.status === 'thinking'+ ? t('convene.statusThinking')+ : p.status === 'working'+ ? t('convene.statusWorking')+ : t('convene.statusListening')}</div></div>)@@ -146,29 +154,29 @@ export function ConveneView() {</section><div className="flex-1 overflow-y-auto p-6 max-w-3xl mx-auto w-full">- {state.transcript.map((t) => {- if (t.kind === 'decision' && t.decision) {+ {state.transcript.map((entry) => {+ if (entry.kind === 'decision' && entry.decision) {return (- <div key={t.id} className="my-4 py-3.5 px-4 rounded-[12px] relative"+ <div key={entry.id} className="my-4 py-3.5 px-4 rounded-[12px] relative"style={{ background: 'linear-gradient(135deg, var(--whisper-50), rgba(255,255,255,0.5))', border: '1.5px solid var(--whisper)' }}><div className="absolute -top-2.5 left-4 bg-whisper text-white text-[9.5px] font-extrabold tracking-[0.15em] py-1 px-2.5 rounded">- DECISION+ {t('convene.decision')}</div><div className="font-display font-medium text-[16px] text-ink-900 mt-1.5 mb-1">- {t.decision.headline}+ {entry.decision.headline}</div>- <div className="text-[13px] text-ink-500 leading-[1.55]">{t.decision.body}</div>+ <div className="text-[13px] text-ink-500 leading-[1.55]">{entry.decision.body}</div></div>)}- const author = byId[t.authorId]+ const author = byId[entry.authorId]if (!author) return nullreturn (- <div key={t.id} className="grid grid-cols-[40px_1fr] gap-3 mb-4 items-start animate-rise">+ <div key={entry.id} className="grid grid-cols-[40px_1fr] gap-3 mb-4 items-start animate-rise"><Avatar p={author} size={36} /><div><div className="font-bold text-[13px] text-ink-900 mb-0.5">{author.name}</div>- <div className="text-[14px] text-ink-700 leading-[1.55]">{t.body}</div>+ <div className="text-[14px] text-ink-700 leading-[1.55]">{entry.body}</div></div></div>)@@ -180,20 +188,20 @@ export function ConveneView() {style={{ background: 'linear-gradient(180deg, #FBFDFE, #F4F8FC)' }}><div className="py-3.5 px-[18px] pb-2.5 border-b border-ink-100"><h4 className="font-display font-medium text-[16px] tracking-tight mb-1">- Live <em className="italic text-skype-deep" style={{ fontWeight: 400 }}>transcript</em>+ {t('convene.transcriptTitle')} <em className="italic text-skype-deep" style={{ fontWeight: 400 }}>{t('convene.transcriptEm')}</em></h4>- <div className="text-[11px] text-ink-500">{state.transcript.length} entries</div>+ <div className="text-[11px] text-ink-500">{t('convene.entries', { count: state.transcript.length })}</div></div><div className="py-3 px-[18px] pb-2 space-y-2">- {state.transcript.map((t) => {- const author = byId[t.authorId]+ {state.transcript.map((entry) => {+ const author = byId[entry.authorId]if (!author) return nullreturn (- <div key={t.id} className="text-[12px] leading-[1.5]">+ <div key={entry.id} className="text-[12px] leading-[1.5]"><div className="font-bold text-ink-900 text-[11px]">- {author.name} <span className="text-ink-300 font-normal ml-2 font-mono">{new Date(t.createdAt).toLocaleTimeString([], { hour: '2-digit', minute: '2-digit' })}</span>+ {author.name} <span className="text-ink-300 font-normal ml-2 font-mono">{new Date(entry.createdAt).toLocaleTimeString([], { hour: '2-digit', minute: '2-digit' })}</span></div>- <div className={cn('text-ink-700', t.kind === 'decision' && 'text-whisper-deep font-semibold')}>{t.body}</div>+ <div className={cn('text-ink-700', entry.kind === 'decision' && 'text-whisper-deep font-semibold')}>{entry.body}</div></div>)})}@@ -201,4 +209,4 @@ export function ConveneView() {</aside></div>)-}+}\ No newline at end of filediff --git a/src/desktop/ConversationsPane.tsx b/src/desktop/ConversationsPane.tsxindex 9308615..4391d06 100644--- a/src/desktop/ConversationsPane.tsx+++ b/src/desktop/ConversationsPane.tsx@@ -15,10 +15,27 @@ import { ResizeHandle } from '@/components/ResizeHandle'import { ISearch, IMail, IPlus } from '@/components/icons'import { cn } from '@/lib/utils'import { api, type ApiProject, type ApiSearchResults } from '@/api/client'+import { useLocale, useT, type MessageKey } from '@/lib/i18n'++/** The reactive translator, threaded into the helpers below so they stay+ * pure and their callers' components re-render on a locale switch. */+type Translator = ReturnType<typeof useT>import type { Conversation, Participant } from '@/types'const staticFilters = ['All', 'Unread', 'Agents', 'Humans', 'Groups', 'Email', 'Whispers'] as consttype StaticFilter = (typeof staticFilters)[number]+/** Display labels for the static filter chips. The enum values in+ * `staticFilters` stay English so the existing `matches()` comparison+ * keeps working; this Record maps each enum to its translation key. */+const FILTER_LABEL: Record<StaticFilter, MessageKey> = {+ All: 'convo.filterAll',+ Unread: 'convo.filterUnread',+ Agents: 'convo.filterAgents',+ Humans: 'convo.filterHumans',+ Groups: 'convo.filterGroups',+ Email: 'convo.filterEmail',+ Whispers: 'convo.filterWhispers',+}/** A filter is either one of the static labels, or a project chip identified* by `project:<id>`. Keeping it as a string union lets the existing chip* loop iterate uniformly. */@@ -29,13 +46,13 @@ type Filter = StaticFilter | `project:${string}`* at click time, not at module load, so "tomorrow" always resolves* against the user's current wall-clock — not whatever it was when the* app first booted. */-const MUTE_DURATIONS: Array<{ label: string; compute: () => Date }> = [- { label: 'For 15 minutes', compute: () => new Date(Date.now() + 15 * 60_000) },- { label: 'For 1 hour', compute: () => new Date(Date.now() + 60 * 60_000) },- { label: 'For 8 hours', compute: () => new Date(Date.now() + 8 * 60 * 60_000) },- { label: 'For 24 hours', compute: () => new Date(Date.now() + 24 * 60 * 60_000) },+const MUTE_DURATIONS: Array<{ label: MessageKey; compute: () => Date }> = [+ { label: 'convo.mute15m', compute: () => new Date(Date.now() + 15 * 60_000) },+ { label: 'convo.mute1h', compute: () => new Date(Date.now() + 60 * 60_000) },+ { label: 'convo.mute8h', compute: () => new Date(Date.now() + 8 * 60 * 60_000) },+ { label: 'convo.mute24h', compute: () => new Date(Date.now() + 24 * 60 * 60_000) },{- label: 'Until tomorrow morning',+ label: 'convo.muteTomorrow',// 9 AM the next calendar day, local time. If the user clicks this at// 02:00 on Tuesday they get silence until Wednesday 09:00 — matches// how a human reads "until tomorrow".@@ -47,7 +64,7 @@ const MUTE_DURATIONS: Array<{ label: string; compute: () => Date }> = [},},{- label: 'Until next Monday',+ label: 'convo.muteMonday',// Next Monday 9 AM local. If today IS Monday we skip to the FOLLOWING// Monday — "next" reads as "a whole week of quiet", not "a few hours".compute: () => {@@ -63,15 +80,17 @@ const MUTE_DURATIONS: Array<{ label: string; compute: () => Date }> = [/** Short label shown next to the "Muted" menu row so users know how long* they've still got left without diving into the submenu. */-function muteHint(mutedUntil: string | null | undefined): string {- if (!mutedUntil) return 'forever'+function muteHint(t: Translator, mutedUntil: string | null | undefined): string {+ if (!mutedUntil) return t('convo.muteHintForever')const until = new Date(mutedUntil)if (Number.isNaN(until.getTime())) return ''const now = new Date()const sameDay = until.toDateString() === now.toDateString()- return sameDay- ? `until ${until.toLocaleTimeString([], { hour: '2-digit', minute: '2-digit' })}`- : `until ${until.toLocaleDateString([], { month: 'short', day: 'numeric' })}`+ return t('convo.muteHintUntil', {+ when: sameDay+ ? until.toLocaleTimeString([], { hour: '2-digit', minute: '2-digit' })+ : until.toLocaleDateString([], { month: 'short', day: 'numeric' }),+ })}function matches(c: Conversation, f: Filter, byId: Record<string, { kind: string }>) {@@ -116,6 +135,7 @@ function TeamAvatar() {}function ConvoAvatar({ c }: { c: Conversation }) {+ const t = useT()const byId = useParticipants((s) => s.byId)const meId = useMe()@@ -177,7 +197,7 @@ function ConvoAvatar({ c }: { c: Conversation }) {border: '1.5px solid var(--paper)',color: '#7A6A3F',}}- title="Email thread"+ title={t('convo.emailThread')}><IMail className="w-2.5 h-2.5" strokeWidth={2.5} /></span>@@ -189,6 +209,7 @@ function ConvoAvatar({ c }: { c: Conversation }) {}function Tag({ c }: { c: Conversation }) {+ const t = useT()// Note: c.subtitle (auto-generated as "cross-project · N" / "team · N")// intentionally NOT rendered — it duplicates the member count already// visible in the hive avatar and crowded the row layout. Only meaningful@@ -201,7 +222,7 @@ function Tag({ c }: { c: Conversation }) {<spanclassName="text-[10px] font-semibold tracking-wider uppercase whitespace-nowrap"style={{ color: 'var(--skype-deep)' }}- >teammate</span>+ >{t('convo.teammateTag')}</span>)return null}@@ -242,6 +263,7 @@ function MutedGlyph({ title }: { title: string }) {}function ConvoRow({ c, selected, onClick, onContextMenu }: RowProps) {+ const t = useT()const isFreshPulled = c.tag === 'fresh-pulled'const muted = isMuted(c)const typingIds = useMessages((s) => s.typing[c.id])@@ -267,7 +289,7 @@ function ConvoRow({ c, selected, onClick, onContextMenu }: RowProps) {>{isFreshPulled && selected && (<span className="absolute -top-2 right-3 bg-cloud border border-[rgba(244,183,64,0.5)] text-gold-deep text-[9px] font-extrabold tracking-wider uppercase py-0.5 px-2 rounded-full shadow">- {pulledByName ? `NEW · pulled by ${pulledByName}` : 'NEW'}+ {pulledByName ? t('convo.newPulledBy', { name: pulledByName }) : t('convo.new')}</span>)}<ConvoAvatar c={c} />@@ -281,7 +303,7 @@ function ConvoRow({ c, selected, onClick, onContextMenu }: RowProps) {'text-[13.5px] font-semibold truncate',muted ? 'text-ink-700 opacity-80' : 'text-ink-900',)}>{c.title}</span>- {muted && <MutedGlyph title={muteTooltip(c.mutedUntil)} />}+ {muted && <MutedGlyph title={muteTooltip(t, c.mutedUntil)} />}<Tag c={c} /></div>{typingNames.length > 0 ? (@@ -293,10 +315,10 @@ function ConvoRow({ c, selected, onClick, onContextMenu }: RowProps) {</span><span className="truncate">{typingNames.length === 1- ? `${typingNames[0]} is typing…`+ ? t('convo.typingOne', { name: typingNames[0] }): typingNames.length === 2- ? `${typingNames[0]} and ${typingNames[1]} are typing…`- : `${typingNames[0]} and ${typingNames.length - 1} more are typing…`}+ ? t('convo.typingTwo', { a: typingNames[0], b: typingNames[1] })+ : t('convo.typingMore', { a: typingNames[0], n: typingNames.length - 1 })}</span></div>) : c.preview && (@@ -326,16 +348,16 @@ function ConvoRow({ c, selected, onClick, onContextMenu }: RowProps) {/** Tooltip for the bell-off glyph — surfaces the auto-unmute time so the* user remembers when notifications come back. */-function muteTooltip(mutedUntil: string | null | undefined): string {- if (!mutedUntil) return 'Muted'+function muteTooltip(t: Translator, mutedUntil: string | null | undefined): string {+ if (!mutedUntil) return t('convo.muted')const until = new Date(mutedUntil)- if (Number.isNaN(until.getTime())) return 'Muted'+ if (Number.isNaN(until.getTime())) return t('convo.muted')const now = new Date()const sameDay = until.toDateString() === now.toDateString()const fmt = sameDay? until.toLocaleTimeString([], { hour: '2-digit', minute: '2-digit' }): until.toLocaleString([], { month: 'short', day: 'numeric', hour: '2-digit', minute: '2-digit' })- return `Muted until ${fmt}`+ return t('convo.mutedUntil', { when: fmt })}/** Strip MD/mention sigils so message snippets read as plain text — we@@ -402,6 +424,7 @@ function rowClass(isSelected: boolean): string {function SearchResultsPane({query, results, loading, selectedIdx, onHover, onSelectConversation, onOpenDirect,}: SearchResultsPaneProps) {+ const t = useT()const byId = useParticipants((s) => s.byId)const q = query.trim()@@ -414,14 +437,14 @@ function SearchResultsPane({}, [selectedIdx])if (loading && !results) {- return <div className="px-4 py-6 text-[12px] text-ink-300 italic font-display">Searching…</div>+ return <div className="px-4 py-6 text-[12px] text-ink-300 italic font-display">{t('convo.searching')}</div>}if (!results) return nullconst total = results.participants.length + results.rooms.length + results.groups.length + results.messages.lengthif (total === 0) {return (<div className="px-4 py-8 text-center text-[12.5px] text-ink-300 italic font-display">- No matches for <span className="text-ink-700 not-italic font-semibold">"{q}"</span>+ {t('convo.noMatches')} <span className="text-ink-700 not-italic font-semibold">"{q}"</span></div>)}@@ -435,7 +458,7 @@ function SearchResultsPane({return (<div ref={containerRef}>- <SearchSection label="People" count={results.participants.length}>+ <SearchSection label={t('convo.searchPeople')} count={results.participants.length}>{results.participants.map((p, i) => {const idx = peopleStart + iconst sel = idx === selectedIdx@@ -460,7 +483,7 @@ function SearchResultsPane({<div className="min-w-0"><div className="text-[13px] font-semibold text-ink-900 truncate">{highlight(p.name, q)}</div><div className="text-[11px] text-ink-500 truncate">- {p.role ?? (p.kind === 'agent' ? 'agent' : 'human teammate')}+ {p.role ?? (p.kind === 'agent' ? t('convo.roleAgent') : t('convo.roleHuman'))}</div></div><span className="text-[9px] font-bold py-px px-1.5 rounded uppercase tracking-wider whitespace-nowrap"@@ -473,7 +496,7 @@ function SearchResultsPane({})}</SearchSection>- <SearchSection label="Rooms" count={results.rooms.length}>+ <SearchSection label={t('convo.searchRooms')} count={results.rooms.length}>{results.rooms.map((r, i) => {const idx = roomsStart + ireturn (@@ -494,7 +517,7 @@ function SearchResultsPane({})}</SearchSection>- <SearchSection label="Groups" count={results.groups.length}>+ <SearchSection label={t('convo.searchGroups')} count={results.groups.length}>{results.groups.map((g, i) => {const idx = groupsStart + ireturn (@@ -515,7 +538,7 @@ function SearchResultsPane({})}</SearchSection>- <SearchSection label="Messages" count={results.messages.length}>+ <SearchSection label={t('convo.searchMessages')} count={results.messages.length}>{results.messages.map((m, i) => {const idx = messagesStart + iconst sel = idx === selectedIdx@@ -533,12 +556,12 @@ function SearchResultsPane({><div className="flex items-center justify-between gap-2 mb-0.5"><div className="text-[12px] font-semibold text-ink-900 truncate">- <span className="text-ink-500 font-normal">in</span> {m.conversationTitle}+ <span className="text-ink-500 font-normal">{t('convo.inConvo')}</span> {m.conversationTitle}</div><div className="text-[10px] text-ink-300 tabular-nums shrink-0">{tsLabel}</div></div><div className="text-[11.5px] text-ink-500 leading-[1.45] line-clamp-2">- <span className="text-ink-700 font-medium">{m.authorName ?? 'unknown'}: </span>+ <span className="text-ink-700 font-medium">{m.authorName ?? t('convo.unknown')}: </span>{highlight(plainSnippet(m.snippet), q)}</div></button>@@ -561,6 +584,7 @@ function SearchConvoButton({ id, kind, title, members, byId, query, index, isSelonHover: (idx: number) => voidonClick: () => void}) {+ const t = useT()const meId = useMe()const ps = members.map((m) => byId[m]).filter((p): p is Participant => Boolean(p))// Build a single-button row that mirrors ConvoAvatar's logic but in@@ -584,8 +608,8 @@ function SearchConvoButton({ id, kind, title, members, byId, query, index, isSel<div className="min-w-0"><div className="text-[13px] font-semibold text-ink-900 truncate">{highlight(title, query)}</div><div className="text-[11px] text-ink-500 truncate">- {kind === 'whisper' ? 'whisper · ' : kind === 'group' ? 'group · ' : ''}- {members.length} {members.length === 1 ? 'member' : 'members'}+ {kind === 'whisper' ? t('convo.kindWhisper') : kind === 'group' ? t('convo.kindGroup') : ''}+ {t(members.length === 1 ? 'convo.member' : 'convo.members', { n: members.length })}</div></div></button>@@ -593,6 +617,8 @@ function SearchConvoButton({ id, kind, title, members, byId, query, index, isSel}export function ConversationsPane({ onResizeStart }: { onResizeStart?: (e: React.MouseEvent) => void }) {+ const t = useT()+ const locale = useLocale()const selected = useApp((s) => s.selectedConversationId)const select = useApp((s) => s.selectConversation)const list = useConversations((s) => s.list)@@ -709,7 +735,7 @@ export function ConversationsPane({ onResizeStart }: { onResizeStart?: (e: Reacte.stopPropagation()const items: ContextMenuItem[] = []items.push({- label: c.pinned ? 'Unpin' : 'Pin to top',+ label: c.pinned ? t('convo.unpin') : t('convo.pin'),icon: <svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2"><path d="M12 17v5"/><path d="M9 10.76V4l-2.5-1.5L5 4l1.5 1.5V10.76A6 6 0 0 0 5 16h14a6 6 0 0 0-1.5-5.24V5.5L19 4l-1.5-1.5L15 4v6.76A6 6 0 0 0 12 11a6 6 0 0 0-3-.24z"/></svg>,onSelect: () => togglePin(c),})@@ -721,35 +747,35 @@ export function ConversationsPane({ onResizeStart }: { onResizeStart?: (e: Reactconst muteSubmenu: ContextMenuItem[] = []if (muted) {muteSubmenu.push({- label: 'Unmute',+ label: t('convo.unmute'),icon: <svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round"><path d="M6 8a6 6 0 0 1 12 0c0 7 3 9 3 9H3s3-2 3-9"/><path d="M13.73 21a2 2 0 0 1-3.46 0"/></svg>,onSelect: () => void setMute(c, false, null),})}for (const opt of MUTE_DURATIONS) {muteSubmenu.push({- label: opt.label,+ label: t(opt.label),onSelect: () => void setMute(c, true, opt.compute()),})}muteSubmenu.push({- label: 'Until I turn it back on',+ label: t('convo.muteForever'),onSelect: () => void setMute(c, true, null),})items.push({- label: muted ? 'Muted' : 'Mute conversation',+ label: muted ? t('convo.muted') : t('convo.mute'),icon: bellOff,- hint: muted ? muteHint(c.mutedUntil) : undefined,+ hint: muted ? muteHint(t, c.mutedUntil) : undefined,submenu: muteSubmenu,})if (c.kind === 'group') {items.push({- label: 'Add members…',+ label: t('convo.addMembers'),icon: <svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2"><path d="M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2"/><circle cx="9" cy="7" r="4"/><line x1="19" y1="8" x2="19" y2="14"/><line x1="22" y1="11" x2="16" y2="11"/></svg>,onSelect: () => setAddingMembersTo(c),})items.push({- label: 'Leave group',+ label: t('convo.leaveGroup'),destructive: true,icon: <svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2"><path d="M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4"/><polyline points="16 17 21 12 16 7"/><line x1="21" y1="12" x2="9" y2="12"/></svg>,onSelect: () => setConfirmLeave(c),@@ -760,12 +786,12 @@ export function ConversationsPane({ onResizeStart }: { onResizeStart?: (e: Reactconst other = otherId ? byId[otherId] : undefinedif (other) {items.push({- label: `Create group with ${other.name}…`,+ label: t('convo.createGroupWith', { name: other.name }),icon: <svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2"><circle cx="9" cy="7" r="4"/><path d="M3 21v-2a4 4 0 0 1 4-4h4a4 4 0 0 1 4 4v2"/><line x1="19" y1="8" x2="19" y2="14"/><line x1="22" y1="11" x2="16" y2="11"/></svg>,onSelect: () => setCreatingWithMember(other.id),})items.push({- label: `Add ${other.name} to a group…`,+ label: t('convo.addToAGroup', { name: other.name }),icon: <svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2"><path d="M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2"/><circle cx="9" cy="7" r="4"/><line x1="19" y1="8" x2="19" y2="14"/><line x1="22" y1="11" x2="16" y2="11"/></svg>,onSelect: () => setAddingToGroup({ participantId: other.id, name: other.name }),})@@ -793,13 +819,15 @@ export function ConversationsPane({ onResizeStart }: { onResizeStart?: (e: Reactconst out: ConvoListItem[] = []if (!loaded) out.push({ type: 'loading', key: 'loading' })if (pinned.length > 0) {- out.push({ type: 'label', key: 'label:pinned', text: 'Pinned' })+ out.push({ type: 'label', key: 'label:pinned', text: t('convo.pinned') })for (const c of pinned) out.push({ type: 'row', key: `p:${c.id}`, c })if (rest.length > 0) out.push({ type: 'divider', key: 'divider' })}for (const c of rest) out.push({ type: 'row', key: `r:${c.id}`, c })return out- }, [loaded, pinned, rest])+ // locale in the deps so the baked-in section label re-renders on a+ // language switch (t itself is identity-unstable, locale is not).+ }, [loaded, pinned, rest, locale])const sectionLabel = (label: string, hint?: string) => (<div className="px-2 pt-3 pb-1.5 text-[10px] font-bold text-ink-300 tracking-[0.12em] uppercase flex items-center justify-between">@@ -817,7 +845,7 @@ export function ConversationsPane({ onResizeStart }: { onResizeStart?: (e: React<aside className="relative flex flex-col overflow-hidden border-r border-ink-100 bg-paper"><div className="pt-3 px-[18px] pb-2 flex items-center gap-2"><h1 className="font-display font-medium text-[20px] tracking-tight text-ink-900 leading-none flex-1 min-w-0 truncate whitespace-nowrap">- Conversations+ {t('convo.title')}<svgviewBox="0 0 24 24"width="17" height="17"@@ -838,8 +866,8 @@ export function ConversationsPane({ onResizeStart }: { onResizeStart?: (e: Reacttype="button"onClick={() => setCreating(true)}className="inline-flex items-center p-1.5 text-ink-700 bg-cloud border border-ink-100 rounded-[7px] hover:border-sky2-200 hover:text-skype-deep transition shrink-0"- title="Create a new group conversation"- aria-label="Create a new group conversation"+ title={t('convo.newGroup')}+ aria-label={t('convo.newGroup')}><IPlus className="w-3.5 h-3.5" strokeWidth={2.5} /></button>@@ -847,8 +875,8 @@ export function ConversationsPane({ onResizeStart }: { onResizeStart?: (e: Reacttype="button"onClick={useApp.getState().openComposeNew}className="inline-flex items-center p-1.5 text-ink-700 bg-cloud border border-ink-100 rounded-[7px] hover:border-sky2-200 hover:text-skype-deep transition shrink-0"- title="Compose new email"- aria-label="Compose new email"+ title={t('convo.newEmail')}+ aria-label={t('convo.newEmail')}><IMail className="w-3.5 h-3.5" strokeWidth={2.5} /></button>@@ -880,14 +908,14 @@ export function ConversationsPane({ onResizeStart }: { onResizeStart?: (e: React}}}className="flex-1 min-w-0 bg-transparent outline-none text-ink-700 placeholder:text-ink-300"- placeholder="Find a conversation, agent, or human…"+ placeholder={t('convo.searchPlaceholder')}/>{query ? (<buttontype="button"onClick={() => { setQuery(''); searchRef.current?.focus() }}className="shrink-0 grid place-items-center w-4 h-4 rounded-full bg-ink-100 hover:bg-ink-200 text-ink-500 transition"- aria-label="Clear search"+ aria-label={t('convo.clearSearch')}><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2.5" strokeLinecap="round" className="w-2.5 h-2.5"><line x1="6" y1="6" x2="18" y2="18" />@@ -935,7 +963,7 @@ export function ConversationsPane({ onResizeStart }: { onResizeStart?: (e: ReactboxShadow: '0 1px 2px -1px rgba(0, 120, 200, 0.12)',} : undefined}>- {f}+ {t(FILTER_LABEL[f])}{showBadge && (<spanclassName="inline-grid place-items-center min-w-[16px] h-4 px-1 rounded-full text-[9.5px] font-bold"@@ -1011,7 +1039,7 @@ export function ConversationsPane({ onResizeStart }: { onResizeStart?: (e: Reactcomponents={{ Footer: () => <div style={{ height: 18 }} /> }}itemContent={(_, item) => {if (item.type === 'loading') {- return <div className="px-3 py-4 text-[12px] text-ink-300 italic font-display">Loading…</div>+ return <div className="px-3 py-4 text-[12px] text-ink-300 italic font-display">{t('convo.loading')}</div>}if (item.type === 'label') return sectionLabel(item.text)if (item.type === 'divider') {@@ -1089,6 +1117,7 @@ function AddToGroupPicker({ participantId, participantName, groups, onClose }: {groups: Conversation[]onClose: () => void}) {+ const t = useT()const [busy, setBusy] = useState(false)const [err, setErr] = useState<string | null>(null)const [done, setDone] = useState<{ groupTitle: string } | null>(null)@@ -1118,18 +1147,18 @@ function AddToGroupPicker({ participantId, participantName, groups, onClose }: {onClick={(e) => e.stopPropagation()}><div className="px-6 py-5 border-b border-ink-100 shrink-0">- <h3 className="font-display font-medium text-[18px] tracking-tight">Add {participantName} to…</h3>- <div className="text-[12px] text-ink-500 italic font-display mt-0.5">Pick a group you want them in.</div>+ <h3 className="font-display font-medium text-[18px] tracking-tight">{t('convo.addToTitle', { name: participantName })}</h3>+ <div className="text-[12px] text-ink-500 italic font-display mt-0.5">{t('convo.addToGroupPrompt')}</div></div><div className="flex-1 overflow-y-auto px-3 py-2.5 min-h-0">{done ? (<div className="py-6 text-center">- <div className="text-[14px] text-ink-900 font-medium">Added to <em className="not-italic text-skype-deep">"{done.groupTitle}"</em>.</div>- <div className="text-[12px] text-ink-500 italic font-display mt-1">{participantName} will see new messages from this group.</div>+ <div className="text-[14px] text-ink-900 font-medium">{t('convo.addedTo')} <em className="not-italic text-skype-deep">"{done.groupTitle}"</em>.</div>+ <div className="text-[12px] text-ink-500 italic font-display mt-1">{t('convo.willSeeMessages', { name: participantName })}</div></div>) : groups.length === 0 ? (<div className="py-6 text-center text-[12.5px] text-ink-500 italic font-display">- {participantName} is already in every group you have, or you have no groups yet.+ {t('convo.noGroupsForAdd', { name: participantName })}</div>) : (<div className="flex flex-col gap-1.5">@@ -1144,10 +1173,10 @@ function AddToGroupPicker({ participantId, participantName, groups, onClose }: {<div className="flex-1 min-w-0"><div className="text-[13px] font-semibold text-ink-900 truncate">{g.title}</div><div className="text-[11px] text-ink-500 truncate">- {g.members.length} {g.members.length === 1 ? 'member' : 'members'}+ {t(g.members.length === 1 ? 'convo.member' : 'convo.members', { n: g.members.length })}</div></div>- <span className="text-skype-deep text-[12.5px] font-semibold">+ Add</span>+ <span className="text-skype-deep text-[12.5px] font-semibold">+ {t('convo.add')}</span></button>))}</div>@@ -1161,7 +1190,7 @@ function AddToGroupPicker({ participantId, participantName, groups, onClose }: {onClick={onClose}className="px-4 py-2 rounded-[9px] text-[12.5px] font-semibold text-ink-700 bg-cloud hover:bg-sky2-50 transition"style={{ border: '1px solid var(--ink-100)' }}- >{done ? 'Done' : 'Cancel'}</button>+ >{done ? t('common.done') : t('common.cancel')}</button></div></div></div>@@ -1173,6 +1202,7 @@ function ConfirmLeave({ c, onCancel, onLeft }: {onCancel: () => voidonLeft: () => void | Promise<void>}) {+ const t = useT()const [busy, setBusy] = useState(false)return (<div@@ -1185,9 +1215,9 @@ function ConfirmLeave({ c, onCancel, onLeft }: {style={{ border: '1px solid var(--ink-100)' }}onClick={(e) => e.stopPropagation()}>- <h3 className="font-display font-medium text-[20px] tracking-tight mb-1.5">Leave “{c.title}”?</h3>+ <h3 className="font-display font-medium text-[20px] tracking-tight mb-1.5">{t('convo.leaveTitle', { title: c.title })}</h3><p className="text-[13px] text-ink-700 leading-[1.6] mb-4">- You'll stop seeing new messages from this group. The other members can keep talking; you can be re-added by anyone in the group.+ {t('convo.leaveWarning')}</p><div className="flex gap-2"><button@@ -1195,13 +1225,13 @@ function ConfirmLeave({ c, onCancel, onLeft }: {disabled={busy}className="flex-1 py-2 px-3 rounded-[9px] text-[12.5px] font-semibold text-ink-700 bg-cloud hover:bg-sky2-50 transition"style={{ border: '1px solid var(--ink-100)' }}- >Cancel</button>+ >{t('common.cancel')}</button><buttononClick={async () => { setBusy(true); await onLeft() }}disabled={busy}className="flex-1 py-2 px-3 rounded-[9px] text-[12.5px] font-semibold text-white transition disabled:opacity-50"style={{ background: 'var(--coral-deep)' }}- >{busy ? 'Leaving…' : 'Leave group'}</button>+ >{busy ? t('convo.leaving') : t('convo.leaveGroup')}</button></div></div></div>@@ -1216,6 +1246,7 @@ function AddMembersPicker({ group, candidates, onClose }: {candidates: Participant[]onClose: () => void}) {+ const t = useT()const [busyId, setBusyId] = useState<string | null>(null)const [added, setAdded] = useState<Set<string>>(new Set())const [err, setErr] = useState<string | null>(null)@@ -1254,12 +1285,12 @@ function AddMembersPicker({ group, candidates, onClose }: {><div className="px-6 py-5 border-b border-ink-100 shrink-0"><h3 className="font-display font-medium text-[18px] tracking-tight">- Add members to <span className="text-skype-deep">{group.title}</span>+ {t('convo.addMembersTo')} <span className="text-skype-deep">{group.title}</span></h3><div className="text-[12px] text-ink-500 italic font-display mt-0.5">{remaining.length === 0- ? 'Everyone in this workspace is already in the group.'- : `Click anyone to add them. ${added.size} added so far.`}+ ? t('convo.everyoneAlreadyInGroup')+ : t('convo.clickToAdd', { count: added.size })}</div></div>{remaining.length > 0 && (@@ -1270,7 +1301,7 @@ function AddMembersPicker({ group, candidates, onClose }: {autoFocusvalue={query}onChange={(e) => setQuery(e.target.value)}- placeholder="Filter by name or id…"+ placeholder={t('convo.filterPlaceholder')}className="flex-1 text-[13px] text-ink-700 bg-transparent outline-none placeholder:text-ink-300"/></div>@@ -1278,7 +1309,7 @@ function AddMembersPicker({ group, candidates, onClose }: {)}<div className="flex-1 overflow-y-auto py-2">{filtered.length === 0 && query.trim() && (- <div className="px-6 py-4 text-[12px] italic text-ink-300 font-display">no match for "{query}"</div>+ <div className="px-6 py-4 text-[12px] italic text-ink-300 font-display">{t('convo.noMatchQuery', { query })}</div>)}{filtered.map((p) => {const busy = busyId === p.id@@ -1293,25 +1324,25 @@ function AddMembersPicker({ group, candidates, onClose }: {<div className="flex-1 min-w-0"><div className="text-[13.5px] font-semibold text-ink-900 truncate">{p.name}</div><div className="text-[11px] text-ink-500 truncate">- {p.role ?? (p.kind === 'human' ? 'human teammate' : 'agent')}+ {p.role ?? (p.kind === 'human' ? t('convo.roleHuman') : t('convo.roleAgent'))}</div></div>{busy- ? <span className="text-[11px] text-ink-300">adding…</span>- : <span className="text-[11px] text-skype-deep font-semibold">Add</span>}+ ? <span className="text-[11px] text-ink-300">{t('convo.adding')}</span>+ : <span className="text-[11px] text-skype-deep font-semibold">{t('convo.add')}</span>}</button>)})}{added.size > 0 && (<div className="px-5 pt-3 pb-1 text-[10px] font-bold text-ink-300 tracking-[0.12em] uppercase">- Just added+ {t('convo.justAdded')}</div>)}{added.size > 0 && candidates.filter((p) => added.has(p.id)).map((p) => (<div key={`done-${p.id}`} className="flex items-center gap-3 py-2 px-5 opacity-60"><Avatar p={p} size={28} ringColor="var(--cloud)" showStatus={false} /><div className="flex-1 text-[12.5px] text-ink-700 truncate">{p.name}</div>- <span className="text-[10px] font-semibold text-avail">✓ added</span>+ <span className="text-[10px] font-semibold text-avail">{t('convo.addedCheck')}</span></div>))}</div>@@ -1325,7 +1356,7 @@ function AddMembersPicker({ group, candidates, onClose }: {onClick={onClose}className="ml-auto py-2 px-4 rounded-[9px] text-[12.5px] font-semibold text-ink-700 bg-cloud hover:bg-sky2-50 transition"style={{ border: '1px solid var(--ink-100)' }}- >Done</button>+ >{t('common.done')}</button></div></div></div>diff --git a/src/desktop/DesktopApp.tsx b/src/desktop/DesktopApp.tsxindex 1c6a2ac..4500e7d 100644--- a/src/desktop/DesktopApp.tsx+++ b/src/desktop/DesktopApp.tsx@@ -21,6 +21,7 @@ import { DocumentsView } from './DocumentsView'import { ObservabilityView } from './ObservabilityView'import { MeView } from './MeView'import { EmailComposer } from '@/components/EmailComposer'+import { useT } from '@/lib/i18n'const ShippingView = lazy(() => import('./ShippingView').then((module) => ({ default: module.ShippingView })))@@ -61,6 +62,7 @@ function ConversationsLayout() {}export function DesktopApp() {+ const t = useT()const view = useApp((s) => s.view)const setView = useApp((s) => s.setView)const devtoolsEnabled = useDevtools((s) => s.enabled)@@ -105,7 +107,7 @@ export function DesktopApp() {{view === 'boards' && <BoardsView />}{view === 'calendar' && <CalendarView />}{view === 'documents' && <DocumentsView />}- {view === 'shipping' && <Suspense fallback={<div className="h-full grid place-items-center text-sm text-ink-400">Opening Ship…</div>}><ShippingView /></Suspense>}+ {view === 'shipping' && <Suspense fallback={<div className="h-full grid place-items-center text-sm text-ink-400">{t('desktop.openingShip')}</div>}><ShippingView /></Suspense>}{view === 'observability' && devtoolsEnabled && <ObservabilityView />}{view === 'me' && <MeView />}</div>diff --git a/src/desktop/DocumentPeekPane.tsx b/src/desktop/DocumentPeekPane.tsxindex b66c239..d216001 100644--- a/src/desktop/DocumentPeekPane.tsx+++ b/src/desktop/DocumentPeekPane.tsx@@ -3,8 +3,10 @@ import { useApp } from '@/stores/app'import { useDocuments } from '@/stores/documents'import { DocumentEditor } from '@/components/DocumentEditor'import { IDoc } from '@/components/icons'+import { useT } from '@/lib/i18n'export function DocumentPeekPane() {+ const t = useT()const documentId = useApp((s) => s.openDocumentId)const closeDocumentPeek = useApp((s) => s.closeDocumentPeek)const setView = useApp((s) => s.setView)@@ -33,7 +35,7 @@ export function DocumentPeekPane() {<div className="w-12 h-12 rounded-[12px] grid place-items-center bg-sky2-50 text-skype-deep"><IDoc className="w-5 h-5" /></div>- <div className="text-[12.5px] font-display italic">Opening document…</div>+ <div className="text-[12.5px] font-display italic">{t('peek.openingDoc')}</div></div></aside>)@@ -46,16 +48,16 @@ export function DocumentPeekPane() {<div className="mx-auto w-12 h-12 rounded-[12px] grid place-items-center bg-coral-soft/45 text-coral-deep"><IDoc className="w-5 h-5" /></div>- <div className="mt-3 text-[14px] font-semibold text-ink-900">Document unavailable</div>+ <div className="mt-3 text-[14px] font-semibold text-ink-900">{t('peek.documentUnavailable')}</div><div className="mt-1 text-[12px] text-ink-500 leading-relaxed">- This artifact may have been deleted or moved out of this workspace.+ {t('peek.documentUnavailableDetail')}</div><buttontype="button"onClick={closeDocumentPeek}className="mt-4 h-8 px-3 rounded-[8px] text-[12px] font-semibold text-ink-600 border border-ink-100 hover:bg-sky2-50 transition">- Close+ {t('peek.closeButton')}</button></div></aside>@@ -72,4 +74,4 @@ export function DocumentPeekPane() {/></aside>)-}+}\ No newline at end of filediff --git a/src/desktop/DocumentsView.tsx b/src/desktop/DocumentsView.tsxindex 14da045..aa6fadb 100644--- a/src/desktop/DocumentsView.tsx+++ b/src/desktop/DocumentsView.tsx@@ -3,10 +3,12 @@ import { useDocuments } from '@/stores/documents'import { DocumentEditor } from '@/components/DocumentEditor'import { useAuth } from '@/stores/auth'import { useParticipants } from '@/stores/participants'+import { useT } from '@/lib/i18n'import { cn } from '@/lib/utils'import { IPlus } from '@/components/icons'export function DocumentsView() {+ const t = useT()const list = useDocuments((s) => s.list)const loaded = useDocuments((s) => s.loaded)const selectedId = useDocuments((s) => s.selectedId)@@ -27,7 +29,7 @@ export function DocumentsView() {const handleCreate = async () => {try {- const d = await create({ title: 'Untitled' })+ const d = await create({ title: t('docs.untitled') })select(d.id)} catch (e) {console.warn('[docs] create failed', e)@@ -38,29 +40,29 @@ export function DocumentsView() {<div className="grid h-full overflow-hidden" style={{ gridTemplateColumns: '280px 1fr' }}><aside className="border-r border-ink-100 bg-white flex flex-col min-h-0"><header className="px-4 py-3 flex items-center justify-between border-b border-ink-100">- <h2 className="font-display text-sm font-medium text-stone-800">Documents</h2>+ <h2 className="font-display text-sm font-medium text-stone-800">{t('docs.title')}</h2><buttontype="button"onClick={handleCreate}className="w-7 h-7 rounded-lg grid place-items-center text-skype-deep hover:bg-skype/10 transition-colors"- title="New document"- aria-label="New document"+ title={t('docs.newDocument')}+ aria-label={t('docs.newDocument')}><IPlus className="w-4 h-4" /></button></header><div className="flex-1 overflow-y-auto py-2">{!loaded && (- <div className="px-4 py-6 text-xs text-stone-400">Loading…</div>+ <div className="px-4 py-6 text-xs text-stone-400">{t('common.loading')}</div>)}{loaded && list.length === 0 && (<div className="px-4 py-6 text-xs text-stone-400">- No documents yet. Create one — humans and agents both edit live.+ {t('docs.empty')}</div>)}{list.map((d) => {const author = byId[d.createdBy]- const authorName = author?.name ?? (d.createdBy === me?.id ? 'You' : d.createdBy)+ const authorName = author?.name ?? (d.createdBy === me?.id ? t('common.you') : d.createdBy)const active = d.id === selectedIdreturn (<button@@ -74,9 +76,9 @@ export function DocumentsView() {: 'hover:bg-stone-50 text-stone-700',)}>- <div className="text-sm font-medium truncate">{d.title || 'Untitled'}</div>+ <div className="text-sm font-medium truncate">{d.title || t('docs.untitled')}</div><div className="text-[11px] text-stone-400 mt-0.5">- {authorName} · {timeAgo(d.updatedAt)}+ {authorName} · {timeAgo(d.updatedAt, t)}</div></button>)@@ -89,8 +91,8 @@ export function DocumentsView() {) : (<div className="h-full grid place-items-center text-stone-400 text-sm">{list.length === 0- ? 'Create a document to start collaborating.'- : 'Select a document from the list.'}+ ? t('docs.emptyCta')+ : t('docs.pickFromList')}</div>)}</main>@@ -98,11 +100,11 @@ export function DocumentsView() {)}-function timeAgo(iso: string): string {+function timeAgo(iso: string, t: ReturnType<typeof useT>): string {const then = new Date(iso).getTime()const ms = Date.now() - then- if (ms < 60_000) return 'just now'- if (ms < 3600_000) return `${Math.floor(ms / 60_000)}m ago`- if (ms < 86_400_000) return `${Math.floor(ms / 3_600_000)}h ago`+ if (ms < 60_000) return t('docs.justNow')+ if (ms < 3600_000) return t('docs.minutesAgo', { n: Math.floor(ms / 60_000) })+ if (ms < 86_400_000) return t('docs.hoursAgo', { n: Math.floor(ms / 3_600_000) })return new Date(iso).toLocaleDateString()}diff --git a/src/desktop/InfoPane.tsx b/src/desktop/InfoPane.tsxindex 80a43ac..f92ccb0 100644--- a/src/desktop/InfoPane.tsx+++ b/src/desktop/InfoPane.tsx@@ -5,15 +5,17 @@ import { useConversations } from '@/stores/conversations'import { Avatar } from '@/components/Avatar'import { IMail } from '@/components/icons'import { api } from '@/api/client'+import { useT, type MessageKey } from '@/lib/i18n'-const STATUS_LABEL: Record<string, string> = {- avail: 'Available', working: 'Working', thinking: 'Thinking', waiting: 'Waiting on you', resting: 'Resting',+const STATUS_LABEL: Record<string, MessageKey> = {+ avail: 'info.statusAvail', working: 'info.statusWorking', thinking: 'info.statusThinking', waiting: 'info.statusWaiting', resting: 'info.statusResting',}const STATUS_COLOR: Record<string, string> = {avail: 'var(--avail)', working: 'var(--working)', thinking: 'var(--thinking)', waiting: 'var(--waiting)', resting: 'var(--resting)',}export function InfoPane() {+ const t = useT()const infoAgentId = useApp((s) => s.infoAgentId)const close = useApp((s) => s.closeAgentInfo)const select = useApp((s) => s.selectConversation)@@ -67,7 +69,7 @@ export function InfoPane() {><buttononClick={close}- aria-label="Close info pane"+ aria-label={t('info.close')}className="absolute top-3 right-3 z-10 w-7 h-7 rounded-full grid place-items-center text-ink-500 hover:bg-cloud hover:text-ink-900 transition border border-ink-100 bg-cloud/70 backdrop-blur-sm">×</button><div@@ -79,11 +81,11 @@ export function InfoPane() {</div><h3 className="font-display font-medium text-[24px] tracking-tight mb-0.5">{agent.name}</h3><div className="font-display italic font-normal text-[13px] text-ink-500 mb-3">- {agent.role ?? (isAgent ? 'agent' : 'human teammate')}+ {agent.role ?? (isAgent ? t('convo.roleAgent') : t('convo.roleHuman'))}</div><div className="inline-flex items-center gap-1.5 py-1.5 px-3 rounded-full bg-cloud border border-ink-100 text-[12px] text-ink-700 shadow-soft"><span className="w-[7px] h-[7px] rounded-full animate-pulse-soft" style={{ background: statusColor }} />- {STATUS_LABEL[agent.status] ?? 'idle'}+ {t(STATUS_LABEL[agent.status] ?? 'common.idle')}</div></div>@@ -98,16 +100,16 @@ export function InfoPane() {}}><svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2"><path d="M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"/></svg>- {opening ? 'Opening…' : 'DM'}+ {opening ? t('info.dmOpening') : t('info.dm')}</button>{/* Whisper / Convene are agent-team rituals; humans use plain DM. */}{isAgent && (<><button className="flex-1 py-2.5 px-3 bg-skype-ink text-white rounded-[9px] text-[12px] font-semibold inline-flex items-center justify-center gap-1.5">- Whisper+ {t('info.whisper')}</button><button className="flex-1 py-2.5 px-3 bg-cloud border border-ink-100 rounded-[9px] text-[12px] font-semibold inline-flex items-center justify-center gap-1.5 hover:border-sky2-200 hover:text-skype-deep">- Convene+ {t('info.convene')}</button></>)}@@ -116,18 +118,18 @@ export function InfoPane() {{agent.email && (<div className="py-4 px-[22px] border-b border-ink-100"><h4 className="text-[10.5px] font-bold text-ink-300 tracking-wider uppercase mb-2.5">+ {t('info.email')}</h4><buttontype="button"onClick={copyEmail}className="w-full py-2 px-2.5 bg-cloud border border-ink-100 rounded-[9px] flex items-center gap-2 text-[12px] text-ink-700 font-mono hover:border-sky2-200 hover:text-skype-deep transition text-left"- title={copied ? 'Copied!' : 'Click to copy'}+ title={copied ? t('info.copied') : t('info.clickToCopy')}><IMail className="w-3.5 h-3.5 shrink-0" strokeWidth={2} /><span className="truncate flex-1">{agent.email}</span><span className="text-[10px] uppercase tracking-wider text-ink-300 shrink-0">- {copied ? 'copied' : 'copy'}+ {copied ? t('info.copiedShort') : t('info.copyShort')}</span></button></div>@@ -141,13 +143,13 @@ export function InfoPane() {<><div className="py-4 px-[22px] border-b border-ink-100"><h4 className="text-[10.5px] font-bold text-ink-300 tracking-wider uppercase mb-2.5">- Tools enabled+ {t('info.toolsEnabled')}</h4><div className="grid grid-cols-2 gap-1.5">- {(agent.tools ?? []).map((t) => (- <div key={t} className="py-2 px-2.5 bg-cloud border border-ink-100 rounded-[9px] flex items-center gap-2 text-[11.5px] text-ink-700">+ {(agent.tools ?? []).map((tool) => (+ <div key={tool} className="py-2 px-2.5 bg-cloud border border-ink-100 rounded-[9px] flex items-center gap-2 text-[11.5px] text-ink-700"><span className="w-1.5 h-1.5 rounded-full bg-avail" />- <b className="font-mono font-medium text-[11px]">{t}</b>+ <b className="font-mono font-medium text-[11px]">{tool}</b></div>))}</div>@@ -155,7 +157,7 @@ export function InfoPane() {<div className="py-4 px-[22px] border-b border-ink-100"><h4 className="text-[10.5px] font-bold text-ink-300 tracking-wider uppercase mb-2.5">- About {agent.name}+ {t('info.about', { name: agent.name })}</h4><divclassName="py-3 px-3.5 rounded-r-lg font-display italic font-normal text-[13px] leading-[1.55] text-ink-700"diff --git a/src/desktop/MeView.tsx b/src/desktop/MeView.tsxindex 0eae033..2d5fc30 100644--- a/src/desktop/MeView.tsx+++ b/src/desktop/MeView.tsx@@ -7,37 +7,51 @@ import { useDevtools } from '@/stores/devtools'import { useAuth } from '@/stores/auth'import { Avatar } from '@/components/Avatar'import { Checkbox } from '@/components/Checkbox'+import { LanguagePicker } from '@/components/LanguagePicker'+import { useT, type MessageKey } from '@/lib/i18n'import { cn } from '@/lib/utils'import { isWindows } from '@/lib/runtime'import { api, getPairingServerOrigin, getServerOrigin, type ApiProject, type ApiQuotaSnapshot, type ApiQuotaWindow } from '@/api/client'-const tabs = ['Profile', 'Usage', 'Computers', 'Projects', 'Trust & autonomy', 'Preferences'] as const-type Tab = (typeof tabs)[number]--const PREF_GROUPS: Array<{ title: string; items: Array<{ key: string; lbl: string; sub: string; default: boolean }> }> = [+// The tab's identity is its `key`; the label is a message key resolved at+// render. Before this they were the same string, which would have made+// the active tab depend on the UI language.+const tabs = [+ { key: 'profile', label: 'me.tab.profile' },+ { key: 'usage', label: 'me.tab.usage' },+ { key: 'computers', label: 'me.tab.computers' },+ { key: 'projects', label: 'me.tab.projects' },+ { key: 'trust', label: 'me.tab.trust' },+ { key: 'preferences', label: 'me.tab.preferences' },+] as const satisfies ReadonlyArray<{ key: string; label: MessageKey }>+type Tab = (typeof tabs)[number]['key']++// `lbl` / `sub` are message keys — the preference `key` is the server-side+// identifier and never changes with the language.+const PREF_GROUPS: Array<{ title: MessageKey; items: Array<{ key: string; lbl: MessageKey; sub: MessageKey; default: boolean }> }> = [{- title: 'Notifications',+ title: 'me.prefs.notifications',items: [- { key: 'notify.group_pulled', lbl: 'When an agent pulls a group with you in it', sub: 'always · never · only urgent', default: true },- { key: 'notify.whisper_mention', lbl: 'When a whisper mentions you', sub: 'always · digest · never', default: true },- { key: 'notify.convene_called', lbl: 'When a Convene session is called', sub: 'always · never', default: true },- { key: 'notify.daily_summary', lbl: 'Daily summary of overnight agent activity', sub: '8:00am local time', default: false },+ { key: 'notify.group_pulled', lbl: 'me.prefs.groupPulled', sub: 'me.prefs.groupPulledSub', default: true },+ { key: 'notify.whisper_mention', lbl: 'me.prefs.whisperMention', sub: 'me.prefs.whisperMentionSub', default: true },+ { key: 'notify.convene_called', lbl: 'me.prefs.conveneCalled', sub: 'me.prefs.conveneCalledSub', default: true },+ { key: 'notify.daily_summary', lbl: 'me.prefs.dailySummary', sub: 'me.prefs.dailySummarySub', default: false },],},{- title: 'Look & feel',+ title: 'me.prefs.lookFeel',items: [- { key: 'ui.reduce_motion', lbl: 'Reduce motion', sub: 'fewer animations', default: false },- { key: 'ui.typing_indicators', lbl: 'Show typing indicators', sub: 'see when agents are drafting', default: true },- { key: 'ui.thoughts_in_main', lbl: 'Show "thinking aloud" snippets in main chat', sub: 'usually private to whispers', default: false },+ { key: 'ui.reduce_motion', lbl: 'me.prefs.reduceMotion', sub: 'me.prefs.reduceMotionSub', default: false },+ { key: 'ui.typing_indicators', lbl: 'me.prefs.typingIndicators', sub: 'me.prefs.typingIndicatorsSub', default: true },+ { key: 'ui.thoughts_in_main', lbl: 'me.prefs.thoughtsInMain', sub: 'me.prefs.thoughtsInMainSub', default: false },],},{- title: 'Privacy',+ title: 'me.prefs.privacy',items: [- { key: 'priv.allow_silent_whispers', lbl: 'Let agents whisper without your peek', sub: 'they still log to your transcript', default: true },- { key: 'priv.allow_new_tools', lbl: 'Let agents call new tools autonomously', sub: 'with the permissions you\'ve granted', default: true },- { key: 'priv.allow_human_invites', lbl: 'Let agents add humans to groups', sub: 'with your consent each time', default: false },+ { key: 'priv.allow_silent_whispers', lbl: 'me.prefs.silentWhispers', sub: 'me.prefs.silentWhispersSub', default: true },+ { key: 'priv.allow_new_tools', lbl: 'me.prefs.newTools', sub: 'me.prefs.newToolsSub', default: true },+ { key: 'priv.allow_human_invites', lbl: 'me.prefs.humanInvites', sub: 'me.prefs.humanInvitesSub', default: false },],},]@@ -46,6 +60,7 @@ function ProfileTab() {// Pull both the auth user (real account: id, email, providers) and the// matching participant (for avatar). They're usually the same person but// participant rows can lag in the local cache, so we don't gate on it.+ const t = useT()const authUser = useAuth((s) => s.user)const meParticipant = useParticipants((s) => (authUser ? s.byId[authUser.id] : null))const serverOrigin = getServerOrigin() || 'same-origin (Vite proxy)'@@ -62,7 +77,7 @@ function ProfileTab() {const providers = authUser.providers ?? []return (<div className="space-y-6">- <Section title="↳ Identity">+ <Section title={t('me.sectionIdentity')}><div className="bg-cloud rounded-[14px] p-5 flex items-start gap-5"style={{ border: '1px solid var(--ink-100)' }}>{meParticipant@@ -82,13 +97,13 @@ function ProfileTab() {</div></Section>- <Section title="↳ Session">+ <Section title={t('me.sectionSession')}><div className="bg-cloud rounded-[14px] p-5 flex items-center justify-between gap-4"style={{ border: '1px solid var(--ink-100)' }}><div className="min-w-0">- <div className="font-display text-[14px] text-ink-800">Signed in to <span className="font-mono text-[12px]">{serverOrigin}</span></div>+ <div className="font-display text-[14px] text-ink-800">{t('me.sessionTitle', { server: serverOrigin })}</div><div className="font-display italic text-[12px] text-ink-400 mt-0.5">- Signing out clears the local token and revokes this session on the server.+ {t('me.sessionHint')}</div></div><button@@ -96,7 +111,7 @@ function ProfileTab() {onClick={signOut}className="shrink-0 h-9 px-4 rounded-[8px] bg-ink-800 hover:bg-ink-900 text-white text-[13px] font-display transition-colors">- Sign out+ {t('common.signOut')}</button></div></Section>@@ -111,14 +126,15 @@ function ProfileTab() {/** Discord invite. Renders on every platform (web + desktop) so feedback* has a single, advertised entry point that doesn't go through email. */function CommunitySection() {+ const t = useT()return (- <Section title="↳ Community & feedback">+ <Section title={t('me.sectionCommunity')}><div className="bg-cloud rounded-[14px] p-5 flex items-center justify-between gap-4"style={{ border: '1px solid var(--ink-100)' }}><div className="min-w-0">- <div className="font-display text-[14px] text-ink-800">Join the Cumora Discord</div>+ <div className="font-display text-[14px] text-ink-800">{t('me.communityTitle')}</div><div className="font-display italic text-[12px] text-ink-400 mt-0.5">- Share feedback, report bugs, and meet other people running agent teams.+ {t('me.communityHint')}</div></div><a@@ -131,7 +147,7 @@ function CommunitySection() {<svg width="16" height="16" viewBox="0 0 24 24" fill="currentColor" aria-hidden="true"><path d="M20.317 4.3698a19.7913 19.7913 0 0 0-4.8851-1.5152.0741.0741 0 0 0-.0785.0371c-.211.3753-.4447.8648-.6083 1.2495-1.8447-.2762-3.68-.2762-5.4868 0-.1636-.3933-.4058-.8742-.6177-1.2495a.077.077 0 0 0-.0785-.037 19.7363 19.7363 0 0 0-4.8852 1.515.0699.0699 0 0 0-.0321.0277C.5334 9.0458-.319 13.5799.0992 18.0578a.0824.0824 0 0 0 .0312.0561c2.0528 1.5076 4.0413 2.4228 5.9929 3.0294a.0777.0777 0 0 0 .0842-.0276c.4616-.6304.8731-1.2952 1.226-1.9942a.076.076 0 0 0-.0416-.1057c-.6528-.2476-1.2743-.5495-1.8722-.8923a.077.077 0 0 1-.0076-.1277c.1258-.0943.2517-.1923.3718-.2914a.0743.0743 0 0 1 .0776-.0105c3.9278 1.7933 8.18 1.7933 12.0614 0a.0739.0739 0 0 1 .0785.0095c.1202.099.246.1981.3728.2924a.077.077 0 0 1-.0066.1276 12.2986 12.2986 0 0 1-1.873.8914.0766.0766 0 0 0-.0407.1067c.3604.698.7719 1.3628 1.225 1.9932a.076.076 0 0 0 .0842.0286c1.961-.6067 3.9495-1.5219 6.0023-3.0294a.077.077 0 0 0 .0313-.0552c.5004-5.177-.8382-9.6739-3.5485-13.6604a.061.061 0 0 0-.0312-.0286zM8.02 15.3312c-1.1825 0-2.1569-1.0857-2.1569-2.419 0-1.3332.9555-2.4189 2.157-2.4189 1.2108 0 2.1757 1.0952 2.1568 2.419 0 1.3332-.9555 2.4189-2.1569 2.4189zm7.9748 0c-1.1825 0-2.1569-1.0857-2.1569-2.419 0-1.3332.9554-2.4189 2.1569-2.4189 1.2108 0 2.1757 1.0952 2.1568 2.419 0 1.3332-.946 2.4189-2.1568 2.4189Z" /></svg>- Join Discord+ {t('me.joinDiscord')}</a></div></Section>@@ -144,6 +160,7 @@ function CommunitySection() {* AuthedApp level via a custom window event (avoids prop-drilling* through three layers of view components). */function AboutSection() {+ const t = useT()const [version, setVersion] = useState<string | null>(null)const [supported, setSupported] = useState<boolean>(false)@@ -159,15 +176,13 @@ function AboutSection() {if (!version) return nullreturn (- <Section title="↳ About">+ <Section title={t('me.sectionAbout')}><div className="bg-cloud rounded-[14px] p-5 flex items-center justify-between gap-4"style={{ border: '1px solid var(--ink-100)' }}><div className="min-w-0">- <div className="font-display text-[14px] text-ink-800">Cumora <span className="font-mono text-[12px]">v{version}</span></div>+ <div className="font-display text-[14px] text-ink-800">{t('me.versionLine', { version })}</div><div className="font-display italic text-[12px] text-ink-400 mt-0.5">- {supported- ? 'Auto-update checks daily. You\'ll see a banner when a new version is ready.'- : 'Auto-update is not available in this build (open the dialog to see why).'}+ {supported ? t('me.autoUpdateDaily') : t('me.autoUpdateUnsupported')}</div></div><button@@ -176,7 +191,7 @@ function AboutSection() {className="shrink-0 h-9 px-4 rounded-[8px] text-[13px] font-display transition-colors text-white"style={{ background: 'var(--skype)' }}>- Check for updates+ {t('me.checkUpdates')}</button></div></Section>@@ -193,10 +208,10 @@ function AboutSection() {type PeriodKey = 'daily' | 'weekly' | 'monthly'-const PERIOD_META: Array<{ key: PeriodKey; label: string; sub: string }> = [- { key: 'daily', label: 'Daily', sub: 'rolls over at local midnight' },- { key: 'weekly', label: 'Weekly', sub: 'rolls over weekly' },- { key: 'monthly', label: 'Monthly', sub: 'rolls over monthly' },+const PERIOD_META: Array<{ key: PeriodKey; label: MessageKey; sub: MessageKey }> = [+ { key: 'daily', label: 'me.periodDaily', sub: 'me.rolloverDaily' },+ { key: 'weekly', label: 'me.periodWeekly', sub: 'me.rolloverWeekly' },+ { key: 'monthly', label: 'me.periodMonthly', sub: 'me.rolloverMonthly' },]function fmtUsd(n: number): string {@@ -212,7 +227,7 @@ function fmtUsd(n: number): string {* blank string when sub2api didn't hand back a window start (older* rows). The period length is fixed (24h / 7d / ~30d) — sub2api uses* rolling windows, so we count forward from window_start. */-function resetsHint(period: PeriodKey, windowStart: string | null): string {+function resetsHint(t: (k: MessageKey, params?: Record<string, string | number>) => string, period: PeriodKey, windowStart: string | null): string {if (!windowStart) return ''const start = new Date(windowStart).getTime()if (Number.isNaN(start)) return ''@@ -220,23 +235,24 @@ function resetsHint(period: PeriodKey, windowStart: string | null): string {: period === 'weekly' ? 7 * 86_400_000: 30 * 86_400_000const remaining = start + lenMs - Date.now()- if (remaining <= 0) return 'resets soon'+ if (remaining <= 0) return t('me.resetsSoon')const h = Math.floor(remaining / 3_600_000)if (h < 1) {const m = Math.max(1, Math.floor(remaining / 60_000))- return `resets in ${m}m`+ return t('me.resetsInMinutes', { n: m })}- if (h < 48) return `resets in ${h}h`+ if (h < 48) return t('me.resetsInHours', { n: h })const d = Math.floor(h / 24)- return `resets in ${d}d`+ return t('me.resetsInDays', { n: d })}function QuotaCard({ period, label, sub, window }: {period: PeriodKey- label: string- sub: string+ label: MessageKey+ sub: MessageKeywindow: ApiQuotaWindow | null}) {+ const t = useT()const used = window?.usedUsd ?? 0const limit = window?.limitUsd ?? nullconst pct = limit != null && limit > 0 ? Math.min(100, (used / limit) * 100) : 0@@ -251,15 +267,15 @@ function QuotaCard({ period, label, sub, window }: {: tone === 'warn' ? 'var(--coral, #FF7A6B)': tone === 'ok' ? 'var(--skype, #00A8F0)': 'var(--ink-300, #94A8BC)'- const resets = window ? resetsHint(period, window.windowStart) : ''+ const resets = window ? resetsHint(t, period, window.windowStart) : ''return (<div className="bg-cloud rounded-[14px] p-5 flex flex-col gap-3"style={{ border: '1px solid var(--ink-100)' }}><div className="flex items-baseline justify-between gap-3">- <div className="font-display font-semibold text-[14px] text-ink-900">{label}</div>+ <div className="font-display font-semibold text-[14px] text-ink-900">{t(label)}</div>{limit != null? <div className="font-mono text-[11px] font-semibold text-ink-500">{pct.toFixed(0)}%</div>- : <div className="font-mono text-[10px] tracking-wider uppercase text-ink-300">unlimited</div>}+ : <div className="font-mono text-[10px] tracking-wider uppercase text-ink-300">{t('me.unlimited')}</div>}</div><div className="font-display tabular-nums text-[22px] tracking-tight text-ink-900" style={{ letterSpacing: '-0.02em' }}>{fmtUsd(used)}@@ -276,7 +292,7 @@ function QuotaCard({ period, label, sub, window }: {/></div><div className="flex items-center justify-between text-[11px]">- <span className="font-display italic text-ink-400">{sub}</span>+ <span className="font-display italic text-ink-400">{t(sub)}</span>{resets && <span className="font-mono text-ink-500">{resets}</span>}</div></div>@@ -284,6 +300,7 @@ function QuotaCard({ period, label, sub, window }: {}function UsageTab() {+ const t = useT()const [state, setState] = useState<| { kind: 'loading' }| { kind: 'ready'; configured: boolean; snapshot: ApiQuotaSnapshot | null; error?: string }@@ -301,13 +318,13 @@ function UsageTab() {if (state.kind === 'loading') {return (<div className="space-y-6">- <Section title="↳ Quota">+ <Section title={t('me.sectionQuota')}><div className="grid grid-cols-3 gap-3">{PERIOD_META.map((p) => (<div key={p.key} className="bg-cloud rounded-[14px] p-5 h-[140px]"style={{ border: '1px solid var(--ink-100)' }}>- <div className="font-display font-semibold text-[14px] text-ink-300">{p.label}</div>- <div className="font-display italic text-[12px] text-ink-300 mt-2">loading…</div>+ <div className="font-display font-semibold text-[14px] text-ink-300">{t(p.label)}</div>+ <div className="font-display italic text-[12px] text-ink-300 mt-2">{t('common.loading')}</div></div>))}</div>@@ -319,15 +336,15 @@ function UsageTab() {if (state.kind === 'error') {return (<div className="space-y-6">- <Section title="↳ Quota">+ <Section title={t('me.sectionQuota')}><div className="bg-cloud rounded-[14px] p-6 text-center"style={{ border: '1px solid var(--ink-100)' }}>- <div className="font-display text-[14px] text-ink-700 mb-1">Couldn't fetch your quota</div>+ <div className="font-display text-[14px] text-ink-700 mb-1">{t('me.quotaFetchFailed')}</div><div className="font-display italic text-[12px] text-coral-deep mb-3">{state.message}</div><button onClick={load}className="px-4 py-1.5 rounded-[8px] text-[12px] font-semibold text-white"style={{ background: 'var(--skype)' }}>- Try again+ {t('common.tryAgain')}</button></div></Section>@@ -340,12 +357,12 @@ function UsageTab() {if (!configured) {return (<div className="space-y-6">- <Section title="↳ Quota">+ <Section title={t('me.sectionQuota')}><div className="bg-cloud rounded-[14px] p-6"style={{ border: '1px dashed var(--ink-100)' }}>- <div className="font-display text-[14px] text-ink-700">No quota gateway on this deployment</div>+ <div className="font-display text-[14px] text-ink-700">{t('me.noQuotaGateway')}</div><div className="font-display italic text-[12px] text-ink-500 mt-1 max-w-xl">- This server isn't running a sub2api gateway, so per-period quotas aren't tracked. Usage is governed by the host's own API key allowance.+ {t('me.noQuotaHint')}</div></div></Section>@@ -356,21 +373,19 @@ function UsageTab() {if (!snapshot) {return (<div className="space-y-6">- <Section title="↳ Quota">+ <Section title={t('me.sectionQuota')}><div className="bg-cloud rounded-[14px] p-6"style={{ border: '1px dashed var(--ink-100)' }}><div className="font-display text-[14px] text-ink-700">- {error ? 'Quota gateway is unreachable' : 'No active subscription'}+ {error ? t('me.quotaUnreachable') : t('me.noActiveSub')}</div><div className="font-display italic text-[12px] text-ink-500 mt-1 max-w-xl">- {error- ? 'The cumora server couldn\'t reach the quota gateway. Try again in a moment.'- : 'Your account hasn\'t been provisioned on the quota gateway yet. This usually clears up on its own — try again in a minute.'}+ {error ? t('me.quotaGatewayUnreachHint') : t('me.subNotProvisioned')}</div><button onClick={load}className="mt-3 px-4 py-1.5 rounded-[8px] text-[12px] font-semibold text-skype-deep bg-cloud hover:bg-sky2-50 transition"style={{ border: '1px dashed var(--sky2-300)' }}>- Refresh+ {t('me.refresh')}</button></div></Section>@@ -380,10 +395,10 @@ function UsageTab() {return (<div className="space-y-6">- <Section title="↳ Quota">+ <Section title={t('me.sectionQuota')}><div className="text-[13px] text-ink-500 leading-[1.55] mb-4 max-w-2xl font-display italic">- What your agents have spent on this account, across the rolling windows the gateway enforces. Numbers are in USD.- {snapshot.groupName ? <> Plan: <span className="not-italic font-semibold text-skype-deep">{snapshot.groupName}</span>.</> : null}+ {t('me.quotaIntro')}+ {snapshot.groupName ? <> {t('me.quotaIntroPlan', { plan: snapshot.groupName })}</> : null}</div><div className="grid grid-cols-3 gap-3">{PERIOD_META.map((p) => (@@ -400,9 +415,9 @@ function UsageTab() {<button onClick={load}className="px-4 py-1.5 rounded-[8px] text-[12px] font-semibold text-skype-deep bg-cloud hover:bg-sky2-50 transition"style={{ border: '1px solid var(--ink-100)' }}>- Refresh+ {t('me.refresh')}</button>- {error && <span className="text-[11.5px] text-coral-deep font-display italic">last refresh had a hiccup: {error}</span>}+ {error && <span className="text-[11.5px] text-coral-deep font-display italic">{t('me.refreshFailed', { msg: error })}</span>}</div></Section></div>@@ -410,6 +425,7 @@ function UsageTab() {}function TrustTab() {+ const t = useT()const byId = useParticipants((s) => s.byId)const autonomy = usePrefs((s) => s.autonomy)const setAutonomy = usePrefs((s) => s.setAutonomy)@@ -417,9 +433,9 @@ function TrustTab() {return (<div className="space-y-6">- <Section title="↳ Per-agent autonomy">+ <Section title={t('me.sectionPerAgent')}><div className="text-[13px] text-ink-500 leading-[1.55] mb-4 max-w-2xl font-display italic">- Each agent has a threshold for acting on their own — pulling groups, kicking off tools, whispering peers. Adjust per agent if their judgment doesn't match yours.+ {t('me.perAgentIntro')}</div><div className="space-y-2">{agents.map((a) => {@@ -436,7 +452,7 @@ function TrustTab() {</div><div className="min-w-0"><div className="text-[11px] text-ink-500 mb-1.5 flex justify-between">- <span>autonomy threshold</span>+ <span>{t('me.autonomyThreshold')}</span><span className="font-mono text-[11px] font-semibold text-ink-700">{trust.toFixed(2)}</span></div><input type="range" min={0} max={1} step={0.01} value={trust}@@ -449,7 +465,7 @@ function TrustTab() {</div></Section>- <Section title="↳ Pulled-group track records">+ <Section title={t('me.sectionTrackRecords')}><div className="grid grid-cols-3 gap-3">{agents.slice(0, 3).map((a) => {const ar = autonomy[a.id]@@ -461,9 +477,9 @@ function TrustTab() {<div className="font-bold text-[13px] text-ink-900">{a.name}</div></div><div className="grid grid-cols-3 gap-1.5 text-center">- <Stat n={ar?.pulled ?? 0} l="pulled" tone="good" />- <Stat n={ar?.led ?? 0} l="led" tone="good" />- <Stat n={ar?.dissolved ?? 0} l="noise" tone="warn" />+ <Stat n={ar?.pulled ?? 0} l="me.statPulled" tone="good" />+ <Stat n={ar?.led ?? 0} l="me.statLed" tone="good" />+ <Stat n={ar?.dissolved ?? 0} l="me.statNoise" tone="warn" /></div></div>)@@ -474,16 +490,18 @@ function TrustTab() {)}-function Stat({ n, l, tone }: { n: number; l: string; tone: 'good' | 'warn' }) {+function Stat({ n, l, tone }: { n: number; l: MessageKey; tone: 'good' | 'warn' }) {+ const t = useT()return (<div><div className="font-display text-[20px] font-medium" style={{ color: tone === 'good' ? 'var(--avail)' : 'var(--coral-deep)' }}>{n}</div>- <div className="text-[9px] font-bold text-ink-300 uppercase tracking-wider">{l}</div>+ <div className="text-[9px] font-bold text-ink-300 uppercase tracking-wider">{t(l)}</div></div>)}function ProjectsTab() {+ const t = useT()const [projects, setProjects] = useState<ApiProject[]>([])const [showArchived, setShowArchived] = useState(false)const [creating, setCreating] = useState(false)@@ -521,38 +539,41 @@ function ProjectsTab() {return (<div className="space-y-6">- <Section title="↳ Projects">+ <Section title={t('me.sectionProjects')}><div className="text-[13px] text-ink-500 leading-[1.55] mb-4 max-w-2xl font-display italic">- Projects bundle related groups under a name + a tint. Attach a group to a project so the team and the agents both see what scope the conversation belongs to.+ {t('me.projectsIntro')}</div><div className="space-y-2">{visible.length === 0 && !creating && (<div className="bg-cloud rounded-[12px] p-6 text-center text-[13px] text-ink-500 italic font-display"style={{ border: '1px dashed var(--ink-100)' }}>- No projects yet. Click <b className="not-italic text-skype-deep">+ New project</b> to start one.+ {t('me.noProjects')}</div>)}- {visible.map((p) => (- <div key={p.id} className="bg-cloud rounded-[12px] p-4 flex items-center gap-4"- style={{ border: '1px solid var(--ink-100)', opacity: p.status === 'archived' ? 0.55 : 1 }}>- <div className="w-3 h-10 rounded-full shrink-0" style={{ background: p.color ?? 'var(--ink-200)' }} />- <div className="min-w-0 flex-1">- <div className="flex items-center gap-2">- <div className="font-semibold text-[14px] text-ink-900 truncate">{p.name}</div>- {p.status === 'archived' && <span className="text-[10px] text-ink-300 uppercase tracking-wider">archived</span>}- </div>- <div className="font-display italic text-[12px] text-ink-500 truncate">- {p.description || '(no description)'} · {p.conversationCount} conversation{p.conversationCount === 1 ? '' : 's'}+ {visible.map((p) => {+ const count = p.conversationCount+ return (+ <div key={p.id} className="bg-cloud rounded-[12px] p-4 flex items-center gap-4"+ style={{ border: '1px solid var(--ink-100)', opacity: p.status === 'archived' ? 0.55 : 1 }}>+ <div className="w-3 h-10 rounded-full shrink-0" style={{ background: p.color ?? 'var(--ink-200)' }} />+ <div className="min-w-0 flex-1">+ <div className="flex items-center gap-2">+ <div className="font-semibold text-[14px] text-ink-900 truncate">{p.name}</div>+ {p.status === 'archived' && <span className="text-[10px] text-ink-300 uppercase tracking-wider">{t('me.archived')}</span>}+ </div>+ <div className="font-display italic text-[12px] text-ink-500 truncate">+ {p.description || t('me.noDescription')} · {count === 1 ? t('me.projectConvoCount', { n: count }) : t('me.projectConvoCountPlural', { n: count })}+ </div></div>+ <button+ onClick={() => archive(p.id, p.status !== 'archived')}+ className="px-3 py-1.5 rounded-[8px] text-[11.5px] font-semibold text-ink-700 bg-paper hover:bg-sky2-50 transition"+ style={{ border: '1px solid var(--ink-100)' }}+ >{p.status === 'archived' ? t('me.restore') : t('me.archive')}</button></div>- <button- onClick={() => archive(p.id, p.status !== 'archived')}- className="px-3 py-1.5 rounded-[8px] text-[11.5px] font-semibold text-ink-700 bg-paper hover:bg-sky2-50 transition"- style={{ border: '1px solid var(--ink-100)' }}- >{p.status === 'archived' ? 'Restore' : 'Archive'}</button>- </div>- ))}+ )+ })}</div>{creating ? (@@ -563,7 +584,7 @@ function ProjectsTab() {type="text"value={name}onChange={(e) => setName(e.target.value)}- placeholder="Project name"+ placeholder={t('me.projectNamePh')}className="w-full px-3 py-2 text-[13px] rounded outline-none"style={{ border: '1px solid var(--ink-100)', background: 'var(--paper)' }}/>@@ -571,7 +592,7 @@ function ProjectsTab() {type="text"value={description}onChange={(e) => setDescription(e.target.value)}- placeholder="Short description (optional)"+ placeholder={t('me.projectDescPh')}className="w-full px-3 py-2 text-[12.5px] rounded outline-none"style={{ border: '1px solid var(--ink-100)', background: 'var(--paper)' }}/>@@ -582,11 +603,11 @@ function ProjectsTab() {disabled={!name.trim() || busy}className="px-4 py-1.5 rounded-[8px] text-[12px] font-semibold text-white disabled:opacity-50"style={{ background: 'var(--skype)' }}- >{busy ? '…' : 'Create project'}</button>+ >{busy ? t('me.createProjectBusy') : t('me.createProject')}</button><buttononClick={() => { setCreating(false); setName(''); setDescription(''); setErr(null) }}className="px-3 py-1.5 rounded-[8px] text-[12px] text-ink-500 hover:bg-cloud"- >Cancel</button>+ >{t('common.cancel')}</button></div></div>) : (@@ -595,13 +616,13 @@ function ProjectsTab() {onClick={() => setCreating(true)}className="px-4 py-2 rounded-[10px] text-[12.5px] font-semibold text-skype-deep bg-cloud hover:bg-sky2-50 transition"style={{ border: '1px dashed var(--sky2-300)' }}- >+ New project</button>+ >{t('me.newProject')}</button>{archivedCount > 0 && (<buttononClick={() => setShowArchived((v) => !v)}className="text-[11.5px] text-ink-500 hover:text-skype-deep transition italic font-display">- {showArchived ? 'Hide archived' : `Show archived (${archivedCount})`}+ {showArchived ? t('me.hideArchived') : t('me.showArchivedCount', { n: archivedCount })}</button>)}</div>@@ -612,6 +633,7 @@ function ProjectsTab() {}function PreferencesTab() {+ const t = useT()const prefs = usePrefs((s) => s.prefs)const setPref = usePrefs((s) => s.setPref)const devtoolsEnabled = useDevtools((s) => s.enabled)@@ -628,7 +650,7 @@ function PreferencesTab() {return (<div className="space-y-6">{PREF_GROUPS.map((g) => (- <Section key={g.title} title={`↳ ${g.title}`}>+ <Section key={g.title} title={`↳ ${t(g.title)}`}><div className="bg-cloud rounded-[14px] divide-y divide-ink-100"style={{ border: '1px solid var(--ink-100)' }}>{g.items.map((it, i) => {@@ -636,8 +658,8 @@ function PreferencesTab() {return (<div key={i} className="flex items-center gap-4 p-4 cursor-pointer" onClick={() => setPref(it.key, !on)}><div className="flex-1 min-w-0">- <div className="font-semibold text-[13px] text-ink-900">{it.lbl}</div>- <div className="font-display italic font-normal text-[11.5px] text-ink-500 mt-0.5">{it.sub}</div>+ <div className="font-semibold text-[13px] text-ink-900">{t(it.lbl)}</div>+ <div className="font-display italic font-normal text-[11.5px] text-ink-500 mt-0.5">{t(it.sub)}</div></div><span className={cn('w-9 h-5 rounded-full relative shrink-0 transition-colors', on ? 'bg-skype' : 'bg-ink-200')}><span className={cn('absolute w-4 h-4 bg-white rounded-full top-0.5 transition-all', on ? 'left-[18px]' : 'left-0.5')}@@ -649,17 +671,18 @@ function PreferencesTab() {</div></Section>))}+ <LanguageSection /><SkypeSoundSection />{devtoolsCanEnable && (- <Section title="↳ Developer">+ <Section title={`↳ ${t('me.prefs.developer')}`}><Checkboxchecked={devtoolsEnabled}disabled={devtoolsLocal}onCheckedChange={(next) => { void setDevMode(next) }}- label="Developer mode"+ label={t('me.prefs.developerMode')}description={devtoolsLocal- ? 'Always on while running the local development build'- : 'Show Observe and unlock backend-gated developer tools on this device'}+ ? t('me.prefs.developerModeLocal')+ : t('me.prefs.developerModeSub')}/></Section>)}@@ -667,22 +690,41 @@ function PreferencesTab() {)}+function LanguageSection() {+ const t = useT()+ return (+ <Section title={`↳ ${t('me.prefs.languageSection')}`}>+ <div className="bg-cloud rounded-[14px] p-4 flex items-center gap-4"+ style={{ border: '1px solid var(--ink-100)' }}>+ <div className="flex-1 min-w-0">+ <div className="font-semibold text-[13px] text-ink-900">{t('common.language')}</div>+ <div className="font-display italic font-normal text-[11.5px] text-ink-500 mt-0.5">+ {t('common.languageSub')}+ </div>+ </div>+ <LanguagePicker className="w-[180px] shrink-0" />+ </div>+ </Section>+ )+}+function SkypeSoundSection() {// Local-only toggle — see stores/sound.ts for why this isn't synced// through the server preferences store. Default is muted; users opt// in if they want the classic (clap) / (drum) chimes.+ const t = useT()const muted = useSoundStore((s) => s.muted)const setMuted = useSoundStore((s) => s.setMuted)const on = !mutedreturn (- <Section title="↳ Skype emoticons">+ <Section title={`↳ ${t('me.prefs.skypeSection')}`}><div className="bg-cloud rounded-[14px]"style={{ border: '1px solid var(--ink-100)' }}><div className="flex items-center gap-4 p-4 cursor-pointer" onClick={() => setMuted(on)}><div className="flex-1 min-w-0">- <div className="font-semibold text-[13px] text-ink-900">Play classic Skype sounds</div>+ <div className="font-semibold text-[13px] text-ink-900">{t('me.prefs.skypeSounds')}</div><div className="font-display italic font-normal text-[11.5px] text-ink-500 mt-0.5">- this device only · plays once when a Skype emoticon enters view; click an emoticon to replay+ {t('me.prefs.skypeSoundsSub')}</div></div><span className={cn('w-9 h-5 rounded-full relative shrink-0 transition-colors', on ? 'bg-skype' : 'bg-ink-200')}>@@ -695,11 +737,15 @@ function SkypeSoundSection() {)}+// Brand and engine names stay in English in every locale. The values+// below are display labels surfaced to users when we list computers —+// products keep their own casing.const ENGINE_LABEL: Record<string, string> = { managed: 'Cumora', claude: 'Claude Code', codex: 'Codex', grok: 'Grok Build', cursor: 'Cursor' }const KIND_ICON: Record<string, string> = { cloud: '☁', local: '💻', vps: '🖥' }const STATUS_COLOR: Record<string, string> = { online: '#3BB273', busy: '#E6A23C', offline: 'var(--ink-300)' }function ComputersTab() {+ const t = useT()const byId = useComputers((s) => s.byId)const loaded = useComputers((s) => s.loaded)const participants = useParticipants((s) => s.byId)@@ -720,7 +766,7 @@ function ComputersTab() {const [repairCopied, setRepairCopied] = useState(false)useEffect(() => { void useComputers.getState().refresh() }, [])- useEffect(() => { if (!repairCopied) return; const t = window.setTimeout(() => setRepairCopied(false), 1600); return () => window.clearTimeout(t) }, [repairCopied])+ useEffect(() => { if (!repairCopied) return; const id = window.setTimeout(() => setRepairCopied(false), 1600); return () => window.clearTimeout(id) }, [repairCopied])async function toggleRepair(id: string) {if (repairFor === id) { setRepairFor(null); setRepairCode(null); return }@@ -728,7 +774,7 @@ function ComputersTab() {try { setRepairCode((await api.repairComputer(id)).code) }catch (e) { alert(e instanceof Error ? e.message : String(e)); setRepairFor(null) }}- useEffect(() => { if (!copied) return; const t = window.setTimeout(() => setCopied(false), 1600); return () => window.clearTimeout(t) }, [copied])+ useEffect(() => { if (!copied) return; const id = window.setTimeout(() => setCopied(false), 1600); return () => window.clearTimeout(id) }, [copied])function copyCommand() {void navigator.clipboard?.writeText(pairCommand)@@ -763,7 +809,7 @@ function ComputersTab() {}async function remove(id: string, label: string) {- if (!confirm(`Remove "${label}"? Its agents will go offline until you re-pair.`)) return+ if (!confirm(t('me.removeConfirm', { label }))) returntry {await api.deleteComputer(id)await useComputers.getState().refresh()@@ -772,18 +818,11 @@ function ComputersTab() {return (<div className="space-y-6">- <Section title="↳ Where your agents run">- <p className="text-[13px] text-ink-500 mb-4 max-w-[640px]">- Every agent runs on a <strong>Computer</strong>. <em>Cumora Cloud</em> is built in and- always on. Pair your own machine or a VPS to run agents on your local- <span className="font-mono text-[12px]"> Claude Code</span>,- <span className="font-mono text-[12px]"> Codex</span>,- <span className="font-mono text-[12px]"> Grok Build</span>, or- <span className="font-mono text-[12px]"> Cursor</span> — each agent gets its own isolated- workspace, memory and skills there.- </p>-- {!loaded && <div className="text-[13px] text-ink-400">Loading…</div>}+ <Section title={t('me.sectionComputers')}>+ {/* biome-ignore lint/security/noDangerouslySetInnerHtml: static copy from the locale bundle, not user input */}+ <p className="text-[13px] text-ink-500 mb-4 max-w-[640px]" dangerouslySetInnerHTML={{ __html: t('me.computersIntro') }} />++ {!loaded && <div className="text-[13px] text-ink-400">{t('common.loading')}</div>}<div className="grid gap-3">{list.map((c) => {@@ -807,25 +846,25 @@ function ComputersTab() {{c.daemonOutdated && (<span className="inline-flex items-center gap-1 text-[10.5px] font-semibold px-2 py-0.5 rounded-full"style={{ background: 'rgba(244,183,64,0.18)', color: 'var(--gold-deep)' }}- title={c.latestDaemonVersion ? `Update to v${c.latestDaemonVersion}` : 'Update available'}>- ↑ update{c.daemonVersion ? ` · v${c.daemonVersion}` : ''}+ title={c.latestDaemonVersion ? t('me.updateToVersion', { version: c.latestDaemonVersion }) : t('me.updateAvailableTitle')}>+ ↑ {t('me.updateAvailableShort')}{c.daemonVersion ? ` · ${t('me.daemonVersion', { version: c.daemonVersion })}` : ''}</span>)}</div><div className="text-[12px] text-ink-500 mt-0.5">{c.availableEngines.map((e) => ENGINE_LABEL[e] ?? e).join(', ') || '—'}- {' · '}{n} agent{n === 1 ? '' : 's'}+ {' · '}{n === 1 ? t('me.agentsCountOne', { n }) : t('me.agentsCountOther', { n })}{repairable && c.daemonVersion && (- <>{' · '}<span className="font-mono text-[11px] text-ink-400">v{c.daemonVersion}</span></>+ <>{' · '}<span className="font-mono text-[11px] text-ink-400">{t('me.daemonVersion', { version: c.daemonVersion })}</span></>)}</div></div>{repairable && (<>- <span className="text-[12px] font-semibold text-skype-deep">{expanded ? 'Hide' : 'Reconnect'}</span>+ <span className="text-[12px] font-semibold text-skype-deep">{expanded ? t('me.hideAction') : t('me.reconnect')}</span><button onClick={(e) => { e.stopPropagation(); void remove(c.id, c.name) }}className="text-[12px] font-semibold text-coral-deep hover:underline px-2 py-1">- Remove+ {t('me.remove')}</button></>)}@@ -833,17 +872,17 @@ function ComputersTab() {{expanded && (<div className="px-4 pb-4 pt-3 border-t border-ink-100"><div className="text-[12px] text-ink-500 mb-2 italic font-display">- Run this on “{c.name}” to reconnect it — its agents stay attached. This token stays valid.+ {t('me.repairHint', { name: c.name })}</div>{!repairCode ? (- <div className="text-[12px] text-ink-400">Generating…</div>+ <div className="text-[12px] text-ink-400">{t('me.computersGenerating')}</div>) : (<><pre className="bg-ink-900 text-cloud rounded-[10px] p-3 text-[12px] overflow-x-auto whitespace-pre-wrap break-all font-mono select-all">{repairCmd}</pre><button onClick={(e) => { e.stopPropagation(); void navigator.clipboard?.writeText(repairCmd); setRepairCopied(true) }}className="mt-2 inline-flex items-center justify-center min-w-[120px] text-[12px] font-semibold px-3 py-1.5 rounded-[9px] text-white transition-colors duration-200"style={{ background: repairCopied ? '#3BB273' : 'var(--skype)' }}>- {repairCopied ? '✓ Copied!' : 'Copy command'}+ {repairCopied ? t('me.copied') : t('me.copyCommand')}</button></>)}@@ -857,13 +896,12 @@ function ComputersTab() {{code ? (<div className="mt-4 bg-sky-50 rounded-[14px] p-4" style={{ border: '1px solid var(--sky-100)' }}><div className="text-[13px] font-semibold text-ink-900 mb-1">- Run this on the machine you want to host agents:- </div>- <div className="text-[11.5px] text-ink-500 mb-2.5 italic font-display">- Needs <span className="font-mono not-italic">claude</span>, <span className="font-mono not-italic">codex</span>, <span className="font-mono not-italic">grok</span>, or <span className="font-mono not-italic">cursor-agent</span> installed. The computer names itself after that machine and appears here once paired. This token stays valid.+ {t('me.runOnHost')}</div>+ {/* biome-ignore lint/security/noDangerouslySetInnerHtml: static copy from the locale bundle, not user input */}+ <div className="text-[11.5px] text-ink-500 mb-2.5 italic font-display" dangerouslySetInnerHTML={{ __html: t('me.engineRequired') }} /><div className="flex items-center gap-2.5 mb-2.5">- <span className="text-[12px] text-ink-500">Engine</span>+ <span className="text-[12px] text-ink-500">{t('me.engineLabel')}</span><div className="inline-flex rounded-[9px] p-0.5" style={{ background: 'var(--ink-100)' }}>{([['claude', 'Claude Code'], ['codex', 'Codex'], ['grok', 'Grok Build'], ['cursor', 'Cursor']] as const).map(([id, label]) => (<button key={id} type="button" onClick={() => setEngine(id)}@@ -875,18 +913,18 @@ function ComputersTab() {</button>))}</div>- <span className="text-[11px] text-ink-400">just the default — this computer can still run agents on any detected engine</span>+ <span className="text-[11px] text-ink-400">{t('me.engineDefaultHint')}</span></div>{isWindows ? (<div className="mb-2.5 text-[12px] text-ink-600">- Keep this terminal open while the agents run.- <span className="text-ink-400"> — background service install isn’t supported on Windows yet.</span>+ {t('me.keepTerminalOpen')}+ <span className="text-ink-400"> — {t('me.bgServiceUnsupported')}</span></div>) : (<label className="flex items-start gap-2 mb-2.5 cursor-pointer select-none"><input type="checkbox" checked={asService} onChange={(e) => setAsService(e.target.checked)} className="mt-[3px]" /><span className="text-[12px] text-ink-600">- Keep it running in the background <span className="text-ink-400">— auto-start on boot, auto-restart on crash, auto-update. Otherwise this terminal has to stay open.</span>+ {t('me.keepInBackground')} <span className="text-ink-400">— {t('me.keepInBackgroundDetail')}</span></span></label>)}@@ -902,12 +940,12 @@ function ComputersTab() {style={{ animation: 'cp-pop 0.32s cubic-bezier(.36,1.6,.4,1)' }}><polyline points="20 6 9 17 4 12" /></svg>- <span style={{ animation: 'cp-fade 0.2s ease' }}>Copied!</span>+ <span style={{ animation: 'cp-fade 0.2s ease' }}>{t('me.copiedShort')}</span></>- ) : 'Copy command'}+ ) : t('me.copyCommand')}</button><button onClick={() => setCode(null)}- className="text-[12px] font-semibold px-3 py-1.5 rounded-[9px] border border-ink-100 text-ink-600">Done</button>+ className="text-[12px] font-semibold px-3 py-1.5 rounded-[9px] border border-ink-100 text-ink-600">{t('me.done')}</button></div><style>{`@keyframes cp-pop { 0% { transform: scale(0.2); opacity: 0 } 55% { transform: scale(1.3) } 100% { transform: scale(1); opacity: 1 } }@@ -919,7 +957,7 @@ function ComputersTab() {{err && <div className="mt-4 text-[12px] text-coral-deep bg-coral-soft rounded-[8px] p-2">{err}</div>}<button onClick={addComputer} disabled={busy}className="mt-4 px-4 py-2 rounded-[10px] bg-skype text-white text-[13px] font-semibold disabled:opacity-50">- {busy ? 'Generating…' : '+ Add a computer'}+ {busy ? t('me.computersGenerating') : t('me.addComputer')}</button></>)}@@ -942,6 +980,7 @@ function Section({ title, children }: { title: string; children: React.ReactNode* once the daemon restarts onto the latest (the next heartbeat clears the flag).* Warm gold (an invitation to update), not alarm red. One-click copy. */function DaemonUpgradeBanner({ onJump }: { onJump: () => void }) {+ const t = useT()const byId = useComputers((s) => s.byId)const [copied, setCopied] = useState(false)const outdated = Object.values(byId).filter((c) => c.daemonOutdated)@@ -967,30 +1006,30 @@ function DaemonUpgradeBanner({ onJump }: { onJump: () => void }) {style={{ background: 'rgba(244,183,64,0.22)', color: 'var(--gold-deep)' }}>↑</div><div className="flex-1 min-w-0"><div className="flex items-center gap-2.5 flex-wrap">- <span className="font-display font-semibold text-[15px] text-ink-900">Update available</span>+ <span className="font-display font-semibold text-[15px] text-ink-900">{t('me.updateAvailableTitle')}</span>{latest && (<span className="inline-flex items-center gap-1.5 text-[11px] font-mono">{one?.daemonVersion && (- <span className="px-1.5 py-0.5 rounded-full" style={{ background: 'var(--ink-100)', color: 'var(--ink-500)' }}>v{one.daemonVersion}</span>+ <span className="px-1.5 py-0.5 rounded-full" style={{ background: 'var(--ink-100)', color: 'var(--ink-500)' }}>{t('me.daemonVersion', { version: one.daemonVersion })}</span>)}<span className="text-ink-300">→</span>- <span className="px-1.5 py-0.5 rounded-full font-semibold" style={{ background: 'rgba(244,183,64,0.30)', color: 'var(--gold-deep)' }}>v{latest}</span>+ <span className="px-1.5 py-0.5 rounded-full font-semibold" style={{ background: 'rgba(244,183,64,0.30)', color: 'var(--gold-deep)' }}>{t('me.daemonVersion', { version: latest })}</span></span>)}</div><div className="text-[12.5px] text-ink-600 mt-1 leading-relaxed">{one ? (- <><strong className="text-ink-900 font-medium">{one.name}</strong> is running an outdated agent daemon.</>+ <><strong className="text-ink-900 font-medium">{one.name}</strong>{' '}{t('me.daemonOutdatedOne')}</>) : (- <><strong className="text-ink-900 font-medium">{outdated.length} computers</strong> are running an outdated agent daemon: {outdated.map((c) => c.name).join(', ')}.</>+ <><strong className="text-ink-900 font-medium">{outdated.length}</strong> {t('me.daemonOutdatedMany', { n: outdated.length, names: outdated.map((c) => c.name).join(', ') })}</>)}{allManual ? (- <>{' '}{one ? 'It runs' : 'They run'} as a foreground command — press <kbd className="font-mono text-[11px]">Ctrl-C</kbd> in {one ? 'its' : 'each'} terminal, then re-run to update. Tip: <code className="font-mono text-[11px]">--install-service</code> makes updates automatic.</>+ <>{' '}{one ? t('me.daemonManualHelp') : t('me.daemonManualHelpPlural')}</>) : (<>- {' '}Restart {one ? 'it' : 'them'} to pick up the latest fixes — agents stay attached.+ {' '}{one ? t('me.daemonAutoHelp') : t('me.daemonAutoHelpPlural')}{manual.length > 0 && (- <>{' '}({manual.map((c) => c.name).join(', ')} {manual.length === 1 ? 'runs' : 'run'} as a foreground command — Ctrl-C and re-run there instead.)</>+ <>{' '}({manual.map((c) => c.name).join(', ')} {manual.length === 1 ? t('me.daemonManualInfix') : t('me.daemonManualInfixPlural')} {t('me.daemonManualRun')} — Ctrl-C and re-run there instead.)</>)}</>)}@@ -1000,11 +1039,11 @@ function DaemonUpgradeBanner({ onJump }: { onJump: () => void }) {<button onClick={copy}className="shrink-0 inline-flex items-center justify-center min-w-[82px] text-[12px] font-semibold px-3 rounded-[10px] text-white transition-colors duration-200"style={{ background: copied ? 'var(--avail)' : 'var(--gold-deep)' }}>- {copied ? '✓ Copied' : 'Copy'}+ {copied ? t('me.copiedShort') : t('me.copy')}</button></div><button onClick={onJump} className="mt-2 text-[11.5px] font-semibold text-gold-deep hover:underline" style={{ color: 'var(--gold-deep)' }}>- Manage computers →+ {t('me.manageComputers')}</button></div></div>@@ -1013,7 +1052,8 @@ function DaemonUpgradeBanner({ onJump }: { onJump: () => void }) {}export function MeView() {- const [tab, setTab] = useState<Tab>('Profile')+ const t = useT()+ const [tab, setTab] = useState<Tab>('profile')const hasOutdated = useComputers((s) => Object.values(s.byId).some((c) => c.daemonOutdated))useEffect(() => { void useComputers.getState().refresh() }, [])@@ -1023,39 +1063,39 @@ export function MeView() {<div className="max-w-[1100px] mx-auto"><div className="mb-6"><h1 className="font-display font-medium text-[36px] tracking-tight text-ink-900 mb-1" style={{ letterSpacing: '-0.025em' }}>- You <em className="italic text-coral-deep" style={{ fontStyle: 'italic', fontWeight: 400 }}>at the center</em>+ {t('me.headline')} <em className="italic text-coral-deep" style={{ fontStyle: 'italic', fontWeight: 400 }}>{t('me.headlineEm')}</em></h1><div className="font-display italic font-normal text-[15px] text-ink-500">- How your agents see you, what they remember, and how much rope they get.+ {t('me.subtitle')}</div></div>- <DaemonUpgradeBanner onJump={() => setTab('Computers')} />+ <DaemonUpgradeBanner onJump={() => setTab('computers')} /><div className="flex gap-1 mb-7 border-b border-ink-100">- {tabs.map((t, i) => (+ {tabs.map((tabDef, i) => (<button- key={t}- onClick={() => setTab(t)}+ key={tabDef.key}+ onClick={() => setTab(tabDef.key)}className={cn('py-2.5 text-[13px] font-semibold border-b-2 transition -mb-px inline-flex items-center gap-1.5',i === 0 ? 'pl-0 pr-5' : 'px-5',- tab === t ? 'border-skype text-skype-deep' : 'border-transparent text-ink-500 hover:text-ink-700',+ tab === tabDef.key ? 'border-skype text-skype-deep' : 'border-transparent text-ink-500 hover:text-ink-700',)}>- {t}- {t === 'Computers' && hasOutdated && (- <span className="w-1.5 h-1.5 rounded-full" style={{ background: 'var(--gold-deep)' }} title="A daemon needs updating" />+ {t(tabDef.label)}+ {tabDef.key === 'computers' && hasOutdated && (+ <span className="w-1.5 h-1.5 rounded-full" style={{ background: 'var(--gold-deep)' }} title={t('me.daemonNeedsUpdate')} />)}</button>))}</div>- {tab === 'Profile' && <ProfileTab />}- {tab === 'Usage' && <UsageTab />}- {tab === 'Computers' && <ComputersTab />}- {tab === 'Projects' && <ProjectsTab />}- {tab === 'Trust & autonomy' && <TrustTab />}- {tab === 'Preferences' && <PreferencesTab />}+ {tab === 'profile' && <ProfileTab />}+ {tab === 'usage' && <UsageTab />}+ {tab === 'computers' && <ComputersTab />}+ {tab === 'projects' && <ProjectsTab />}+ {tab === 'trust' && <TrustTab />}+ {tab === 'preferences' && <PreferencesTab />}</div></main>)diff --git a/src/desktop/ObservabilityView.tsx b/src/desktop/ObservabilityView.tsxindex 532f869..52ea2df 100644--- a/src/desktop/ObservabilityView.tsx+++ b/src/desktop/ObservabilityView.tsx@@ -14,41 +14,42 @@ import { ResizeHandle } from '@/components/ResizeHandle'import { RichBody, CodeBlock } from '@/components/Message'import { useParticipants } from '@/stores/participants'import { useResizableWidth } from '@/lib/useResizableWidth'+import { useT, type MessageKey } from '@/lib/i18n'import { cn } from '@/lib/utils'type StatusFilter = ApiAgentRunStatus | 'all'type DevPanel = 'traces' | 'workspace' | 'triage'const DEV_PANELS: DevPanel[] = ['traces', 'workspace', 'triage']-const PANEL_LABEL: Record<DevPanel, string> = { traces: 'Traces', workspace: 'Workspace', triage: 'Triage $' }-const TRIAGE_WINDOWS: { hours: number; label: string }[] = [- { hours: 6, label: '6h' }, { hours: 24, label: '24h' }, { hours: 72, label: '3d' }, { hours: 168, label: '7d' },+const PANEL_LABEL_KEY: Record<DevPanel, MessageKey> = { traces: 'obs.panelTraces', workspace: 'obs.panelWorkspace', triage: 'obs.panelTriage' }+const TRIAGE_WINDOWS: { hours: number; key: MessageKey }[] = [+ { hours: 6, key: 'obs.window6h' }, { hours: 24, key: 'obs.window24h' }, { hours: 72, key: 'obs.window3d' }, { hours: 168, key: 'obs.window7d' },]const STATUS_OPTIONS: StatusFilter[] = ['all', 'running', 'stalled', 'failed', 'completed', 'skipped']-const STATUS_STYLE: Record<ApiAgentRunStatus, { label: string; cls: string; dot: string }> = {+const STATUS_STYLE: Record<ApiAgentRunStatus, { key: MessageKey; cls: string; dot: string }> = {running: {- label: 'Running',+ key: 'obs.statusRunning',cls: 'bg-sky2-50 text-skype-deep border-sky2-100',dot: 'var(--skype)',},stalled: {- label: 'Stalled',+ key: 'obs.statusStalled',cls: 'bg-coral-soft text-coral-deep border-coral-soft',dot: 'var(--coral-deep)',},failed: {- label: 'Failed',+ key: 'obs.statusFailed',cls: 'bg-coral-soft text-coral-deep border-coral-soft',dot: 'var(--coral-deep)',},completed: {- label: 'Completed',+ key: 'obs.statusCompleted',cls: 'bg-cloud text-ink-700 border-ink-100',dot: 'var(--avail)',},skipped: {- label: 'Skipped',+ key: 'obs.statusSkipped',cls: 'bg-ink-100 text-ink-600 border-ink-100',dot: 'var(--ink-300)',},@@ -74,12 +75,12 @@ function elapsed(ms: number): string {return `${m}m ${rest}s`}-function relative(ts: string): string {+function relative(ts: string, t: ReturnType<typeof useT>): string {const delta = Date.now() - new Date(ts).getTime()- if (delta < 5000) return 'just now'- if (delta < 60_000) return `${Math.round(delta / 1000)}s ago`- if (delta < 3_600_000) return `${Math.round(delta / 60_000)}m ago`- return `${Math.round(delta / 3_600_000)}h ago`+ if (delta < 5000) return t('obs.justNow')+ if (delta < 60_000) return t('obs.secondsAgo', { n: Math.round(delta / 1000) })+ if (delta < 3_600_000) return t('obs.minutesAgo', { n: Math.round(delta / 60_000) })+ return t('obs.hoursAgo', { n: Math.round(delta / 3_600_000) })}function pretty(value: unknown): string {@@ -117,31 +118,34 @@ function MetaGrid({ items }: { items: Array<{ label: string; value: unknown }> })}-function PayloadBlock({ label, value, empty = '(empty)' }: { label: string; value: unknown; empty?: string }) {+function PayloadBlock({ label, value, empty }: { label: string; value: unknown; empty?: string }) {+ const t = useT()const traced = asTraceText(value)const text = traced ? traced.text : typeof value === 'undefined' ? '' : pretty(value)+ const emptyText = empty ?? t('obs.payloadEmpty')return (<div><div className="mb-1 flex items-center justify-between gap-3"><div className="text-[10px] font-bold uppercase tracking-[0.12em] text-ink-400">{label}</div>{traced?.length !== undefined && (<div className="font-mono text-[10px] text-ink-300">- {traced.length.toLocaleString()} chars{traced.truncated ? ' / truncated' : ''}+ {t('obs.payloadChars', { n: traced.length })}{traced.truncated ? t('obs.payloadTruncated') : ''}</div>)}</div><pre className="max-h-[360px] overflow-auto rounded-[10px] border border-ink-100 bg-ink-900 p-3 text-[11px] leading-[1.55] text-sky2-50">- {text || empty}+ {text || emptyText}</pre></div>)}function TraceInputView({ value }: { value: unknown }) {- if (!Array.isArray(value)) return <PayloadBlock label="Input" value={value} />+ const t = useT()+ if (!Array.isArray(value)) return <PayloadBlock label={t('obs.labelInput')} value={value} />return (<div className="space-y-2">- <div className="text-[10px] font-bold uppercase tracking-[0.12em] text-ink-400">Input messages</div>+ <div className="text-[10px] font-bold uppercase tracking-[0.12em] text-ink-400">{t('obs.labelInputMessages')}</div>{value.map((item, idx) => {const rec = isRecord(item) ? item : {}const content = Array.isArray(rec.content) ? rec.content : []@@ -154,7 +158,7 @@ function TraceInputView({ value }: { value: unknown }) {{rec.callId !== undefined && <span>call={String(rec.callId)}</span>}</div><div className="space-y-2">- {rec.output !== undefined && <PayloadBlock label="Function output" value={rec.output} />}+ {rec.output !== undefined && <PayloadBlock label={t('obs.labelFunctionOutput')} value={rec.output} />}{content.map((part, partIdx) => {const p = isRecord(part) ? part : {}const type = String(p.type ?? `part ${partIdx + 1}`)@@ -162,13 +166,13 @@ function TraceInputView({ value }: { value: unknown }) {if (type === 'input_image') {return (<div key={partIdx} className="rounded-[9px] border border-sky2-100 bg-sky2-50 px-3 py-2 font-mono text-[11px] text-skype-deep">- image / {String(p.detail ?? 'auto')} / {String(p.imageUrl ?? '')}+ {t('obs.imageAuto', { detail: String(p.detail ?? t('obs.imageAutoDefault')), url: String(p.imageUrl ?? '') })}</div>)}return <PayloadBlock key={partIdx} label={type} value={p} />})}- {content.length === 0 && rec.content !== undefined && <PayloadBlock label="Content" value={rec.content} />}+ {content.length === 0 && rec.content !== undefined && <PayloadBlock label={t('obs.labelContent')} value={rec.content} />}</div></div>)@@ -178,74 +182,78 @@ function TraceInputView({ value }: { value: unknown }) {}function ModelRequestDetails({ data }: { data: Record<string, unknown> }) {+ const t = useT()const request = isRecord(data.request) ? data.request : {}return (<div className="mt-3 space-y-3"><MetaGrid items={[- { label: 'model', value: data.model },- { label: 'hop', value: data.hop },- { label: 'previous', value: data.previousResponseId },- { label: 'max tokens', value: request.maxOutputTokens },+ { label: t('obs.metaModel'), value: data.model },+ { label: t('obs.metaHop'), value: data.hop },+ { label: t('obs.metaPrevious'), value: data.previousResponseId },+ { label: t('obs.metaMaxTokens'), value: request.maxOutputTokens },]} />- <PayloadBlock label="Instructions" value={data.instructions} />+ <PayloadBlock label={t('obs.labelInstructions')} value={data.instructions} /><TraceInputView value={data.input} /></div>)}function ModelResponseDetails({ data }: { data: Record<string, unknown> }) {+ const t = useT()const usage = isRecord(data.usage) ? data.usage : {}const toolCalls = Array.isArray(data.toolCalls) ? data.toolCalls : []return (<div className="mt-3 space-y-3"><MetaGrid items={[- { label: 'model', value: data.model },- { label: 'hop', value: data.hop },- { label: 'response', value: data.responseId },- { label: 'status', value: data.status },- { label: 'input tokens', value: usage.input_tokens },- { label: 'output tokens', value: usage.output_tokens },+ { label: t('obs.metaModel'), value: data.model },+ { label: t('obs.metaHop'), value: data.hop },+ { label: t('obs.metaResponse'), value: data.responseId },+ { label: t('obs.metaStatus'), value: data.status },+ { label: t('obs.metaInputTokens'), value: usage.input_tokens },+ { label: t('obs.metaOutputTokens'), value: usage.output_tokens },]} />- <PayloadBlock label="Output text" value={data.outputText} empty="(no assistant text; tool-only response)" />+ <PayloadBlock label={t('obs.labelOutputText')} value={data.outputText} empty={t('obs.noAssistantText')} />{toolCalls.length > 0 && (<div className="space-y-2">- <div className="text-[10px] font-bold uppercase tracking-[0.12em] text-ink-400">Tool calls requested</div>+ <div className="text-[10px] font-bold uppercase tracking-[0.12em] text-ink-400">{t('obs.labelToolCalls')}</div>{toolCalls.map((call, idx) => {const rec = isRecord(call) ? call : {}return (<div key={idx} className="rounded-[10px] border border-ink-100 bg-paper p-3"><div className="mb-2 flex flex-wrap items-center gap-2 font-mono text-[10.5px] text-ink-400">- <span>{String(rec.name ?? 'tool')}</span>+ <span>{String(rec.name ?? t('obs.toolDefault'))}</span>{rec.callId !== undefined && <span>{String(rec.callId)}</span>}</div>- <PayloadBlock label="Arguments" value={rec.arguments ?? rec.rawArguments} />+ <PayloadBlock label={t('obs.labelArguments')} value={rec.arguments ?? rec.rawArguments} /></div>)})}</div>)}- <PayloadBlock label="Response output items" value={data.output} />+ <PayloadBlock label={t('obs.labelResponseOutputItems')} value={data.output} /></div>)}function ToolDetails({ data }: { data: Record<string, unknown> }) {+ const t = useT()return (<div className="mt-3 space-y-3"><MetaGrid items={[- { label: 'hop', value: data.hop },- { label: 'call', value: data.callId },- { label: 'duration', value: typeof data.durationMs === 'number' ? elapsed(data.durationMs) : undefined },- { label: 'ok', value: data.ok },+ { label: t('obs.metaHop'), value: data.hop },+ { label: t('obs.metaCall'), value: data.callId },+ { label: t('obs.metaDuration'), value: typeof data.durationMs === 'number' ? elapsed(data.durationMs) : undefined },+ { label: t('obs.metaOk'), value: data.ok },]} />- {data.args !== undefined && <PayloadBlock label="Arguments" value={data.args} />}- {data.output !== undefined && <PayloadBlock label="Output" value={data.output} />}- {data.error !== undefined && data.error !== null && <PayloadBlock label="Error" value={data.error} />}+ {data.args !== undefined && <PayloadBlock label={t('obs.labelArguments')} value={data.args} />}+ {data.output !== undefined && <PayloadBlock label={t('obs.labelOutput')} value={data.output} />}+ {data.error !== undefined && data.error !== null && <PayloadBlock label={t('obs.labelError')} value={data.error} />}</div>)}function EventDetails({ event }: { event: ApiAgentEvent }) {+ const t = useT()const data = event.data ?? {}const specialized = event.kind === 'model.request'? <ModelRequestDetails data={data} />@@ -260,7 +268,7 @@ function EventDetails({ event }: { event: ApiAgentEvent }) {<div>{specialized}<details className="mt-3" open={!specialized && defaultOpen}>- <summary className="cursor-pointer select-none text-[11px] font-semibold text-skype-deep">Raw data</summary>+ <summary className="cursor-pointer select-none text-[11px] font-semibold text-skype-deep">{t('obs.labelRawData')}</summary><pre className="mt-2 max-h-[260px] overflow-auto rounded-[9px] bg-ink-900 p-3 text-[11px] leading-[1.45] text-sky2-50">{pretty(data)}</pre>@@ -276,16 +284,18 @@ function bytes(size: number): string {}function StatusPill({ status }: { status: ApiAgentRunStatus }) {+ const t = useT()const tone = STATUS_STYLE[status]return (<span className={cn('inline-flex items-center gap-1.5 rounded-full border px-2 py-0.5 text-[10.5px] font-bold', tone.cls)}><span className="h-1.5 w-1.5 rounded-full" style={{ background: tone.dot }} />- {tone.label}+ {t(tone.key)}</span>)}function RefreshButton({ loading, onClick }: { loading: boolean; onClick: () => void }) {+ const t = useT()return (<buttononClick={onClick}@@ -307,7 +317,7 @@ function RefreshButton({ loading, onClick }: { loading: boolean; onClick: () =>: 'border-sky2-200 bg-sky2-50 shadow-[inset_0_0_0_4px_rgba(255,255,255,0.72)]',)}/>- <span>Refresh</span>+ <span>{t('obs.refresh')}</span></button>)}@@ -328,6 +338,7 @@ function AgentDot({ run }: { run: ApiAgentRun }) {}function RunRow({ run, active, onClick }: { run: ApiAgentRun; active: boolean; onClick: () => void }) {+ const t = useT()return (<buttononClick={onClick}@@ -357,14 +368,14 @@ function RunRow({ run, active, onClick }: { run: ApiAgentRun; active: boolean; o)}</div><div className="mt-2 line-clamp-2 text-[12px] leading-[1.45] text-ink-600">- {run.error || run.summary || `${run.inboxCount} unread inputs`}+ {run.error || run.summary || t('obs.unreadInputs', { n: run.inboxCount })}</div><div className="mt-2 flex items-center gap-1.5 text-[10.5px] font-semibold text-ink-400">- <span>{run.inboxCount} inbox</span>+ <span>{run.inboxCount} {t('obs.inbox')}</span><span>/</span>- <span>{run.toolCallCount} tools</span>+ <span>{run.toolCallCount} {t('obs.tools')}</span><span>/</span>- <span>{run.tokenCount} tokens</span>+ <span>{run.tokenCount} {t('obs.tokens')}</span></div></div></div>@@ -373,6 +384,7 @@ function RunRow({ run, active, onClick }: { run: ApiAgentRun; active: boolean; o}function EventRow({ event }: { event: ApiAgentEvent }) {+ const t = useT()return (<div className="relative grid grid-cols-[98px_18px_minmax(0,1fr)] gap-3"><div className="pt-1 text-right font-mono text-[11px] text-ink-400">{clock(event.createdAt)}</div>@@ -392,7 +404,7 @@ function EventRow({ event }: { event: ApiAgentEvent }) {{event.level}</span><span className="font-mono text-[11px] text-ink-400">{event.kind}</span>- <span className="ml-auto text-[11px] text-ink-400">{relative(event.createdAt)}</span>+ <span className="ml-auto text-[11px] text-ink-400">{relative(event.createdAt, t)}</span></div><div className="mt-2 text-[13px] font-semibold text-ink-900">{event.title}</div>{Object.keys(event.data ?? {}).length > 0 && <EventDetails event={event} />}@@ -580,8 +592,9 @@ function FileTree({ nodes, depth, expanded, onToggle, selectedPath, onSelect }:* - `.json` / `.ts` / `.py` / etc → CodeBlock (syntax-highlit)* - anything else → wrapped plain text in paper theme */function FileViewer({ path, body }: { path: string; body: string }) {+ const t = useT()const ext = path.includes('.') ? path.split('.').pop()!.toLowerCase() : ''- if (!body) return <div className="text-[13px] italic text-ink-400">(empty file)</div>+ if (!body) return <div className="text-[13px] italic text-ink-400">{t('obs.emptyFile')}</div>if (ext === 'md' || ext === 'markdown') {return (<div className="cumora-prose font-display text-[14px] leading-[1.7] text-ink-900">@@ -630,6 +643,7 @@ function StatCard({ label, value, sub, tone }: {* the user knows the rates the estimates rest on. Role is a heuristic on the id* (haiku/mini = cerebellum/small; everything else = main/big). */function PriceMenuTable({ rows }: { rows: { model: string; inPer1M: number; cachedInPer1M: number; outPer1M: number; estimated: boolean }[] }) {+ const t = useT()if (rows.length === 0) return null// Fixed cerebellum aliases: claude→haiku, codex→gpt-5.4-mini,// grok→grok-4.5. Cursor has no fixed cheap alias and reports the model its@@ -637,15 +651,15 @@ function PriceMenuTable({ rows }: { rows: { model: string; inPer1M: number; cachconst isSmall = (m: string) => /haiku|mini|grok-4\.5/i.test(m)return (<div className="rounded-[10px] border border-ink-100 bg-paper px-3.5 py-3">- <div className="text-[9.5px] font-bold uppercase tracking-[0.12em] text-ink-300">Token unit prices · small brain vs big brain (per 1M tokens — all ESTIMATES unless you set CUMORA_MODEL_PRICES_JSON)</div>+ <div className="text-[9.5px] font-bold uppercase tracking-[0.12em] text-ink-300">{t('obs.priceMenu')}</div><table className="mt-2 w-full text-[11.5px]"><thead className="text-[9px] font-bold uppercase tracking-[0.1em] text-ink-400"><tr>- <th className="py-1 text-left">Tier</th>- <th className="py-1 text-left">Model</th>- <th className="py-1 text-right">Input</th>- <th className="py-1 text-right">Cache-read</th>- <th className="py-1 text-right">Output</th>+ <th className="py-1 text-left">{t('obs.colTier')}</th>+ <th className="py-1 text-left">{t('obs.colModel')}</th>+ <th className="py-1 text-right">{t('obs.colInput')}</th>+ <th className="py-1 text-right">{t('obs.colCacheRead')}</th>+ <th className="py-1 text-right">{t('obs.colOutput')}</th><th className="py-1" /></tr></thead>@@ -654,14 +668,14 @@ function PriceMenuTable({ rows }: { rows: { model: string; inPer1M: number; cach<tr key={p.model}><td className="py-1"><span className={cn('rounded-full px-1.5 py-0.5 text-[9px] font-bold uppercase', isSmall(p.model) ? 'bg-ink-100 text-ink-600' : 'bg-sky2-50 text-skype-deep')}>- {isSmall(p.model) ? 'small brain' : 'big brain'}+ {isSmall(p.model) ? t('obs.tierSmall') : t('obs.tierBig')}</span></td><td className="py-1 font-mono text-ink-700">{p.model}</td><td className="py-1 text-right tabular-nums text-ink-600">${p.inPer1M}</td><td className="py-1 text-right tabular-nums text-ink-600">${p.cachedInPer1M}</td><td className="py-1 text-right tabular-nums text-ink-600">${p.outPer1M}</td>- <td className="py-1 text-right">{p.estimated && <span className="rounded bg-coral-soft px-1.5 py-0.5 text-[9px] font-bold uppercase text-coral-deep">est</span>}</td>+ <td className="py-1 text-right">{p.estimated && <span className="rounded bg-coral-soft px-1.5 py-0.5 text-[9px] font-bold uppercase text-coral-deep">{t('obs.est')}</span>}</td></tr>))}</tbody>@@ -686,6 +700,7 @@ function TriageEconomicsPanel(props: {err: string | nullonRefresh: () => void}) {+ const t = useT()const { data } = propsconst net = data?.estimatedNetSavingsUsd ?? 0return (@@ -693,9 +708,9 @@ function TriageEconomicsPanel(props: {<div className="border-b border-ink-100 px-6 py-4"><div className="flex items-start justify-between gap-3"><div>- <h1 className="font-display text-[25px] font-medium tracking-tight text-ink-900">Triage Economics</h1>+ <h1 className="font-display text-[25px] font-medium tracking-tight text-ink-900">{t('obs.triageTitle')}</h1><div className="mt-1 text-[12px] text-ink-500">- Does the small-brain gate save money? Each triage is a cold session (uncached input); the big-brain turns it shields are cache-warm.+ {t('obs.triageSubtitle')}</div></div><RefreshButton loading={props.loading} onClick={props.onRefresh} />@@ -711,25 +726,25 @@ function TriageEconomicsPanel(props: {props.panel === item ? 'bg-sky2-50 text-skype-deep shadow-soft' : 'text-ink-500 hover:text-ink-700',)}>- {PANEL_LABEL[item]}+ {t(PANEL_LABEL_KEY[item])}</button>))}</div><label className="text-[10.5px] font-bold uppercase tracking-[0.12em] text-ink-400">- Agent+ {t('obs.agent')}<Selectvalue={props.agentId}onValueChange={props.setAgentId}- options={[{ value: 'all', label: 'All agents' }, ...props.agents.map((a) => ({ value: a.id, label: a.name }))]}+ options={[{ value: 'all', label: t('obs.allAgents') }, ...props.agents.map((a) => ({ value: a.id, label: a.name }))]}className="mt-1 w-44 normal-case tracking-normal"/></label><label className="text-[10.5px] font-bold uppercase tracking-[0.12em] text-ink-400">- Window+ {t('obs.window')}<Select<string>value={String(props.hours)}onValueChange={(v) => props.setHours(Number(v))}- options={TRIAGE_WINDOWS.map((w) => ({ value: String(w.hours), label: w.label }))}+ options={TRIAGE_WINDOWS.map((w) => ({ value: String(w.hours), label: t(w.key) }))}className="mt-1 w-24 normal-case tracking-normal"/></label>@@ -742,19 +757,19 @@ function TriageEconomicsPanel(props: {<div className="min-h-0 flex-1 overflow-auto px-6 py-5">{!data ? (- <div className="grid h-full place-items-center text-[13px] text-ink-400">{props.loading ? 'Loading…' : 'No data.'}</div>+ <div className="grid h-full place-items-center text-[13px] text-ink-400">{props.loading ? t('common.loading') : t('common.noData')}</div>) : (<div className="mx-auto max-w-[1100px] space-y-5">{/* ALWAYS-ON disclaimer: every $ here is an estimate. */}<div className="rounded-[10px] border border-coral-soft bg-coral-soft px-3.5 py-2.5 text-[11.5px] leading-[1.6] text-coral-deep">- <b>⚠ Every dollar on this page is an ESTIMATE</b> and may differ substantially from your real cost. Reason: we do not authoritatively know the per-token unit prices. The cloud model aliases (gpt-5.*) are <b>guesses</b>; the Claude tiers are list prices from memory that may be stale or wrong for your exact model variant; and on a flat-rate plan the $ is not a bill at all (see below). The token counts are real — the prices applied to them are not. Set <code className="rounded bg-paper/60 px-1">CUMORA_MODEL_PRICES_JSON</code> with your real contracted rates to make these exact.+ {t('obs.triageEstimateWarn')}</div>{data.triageCount === 0 ? (<><PriceMenuTable rows={data.priceTable ?? []} /><div className="rounded-[10px] border border-ink-100 bg-cloud px-3.5 py-3 text-[12px] leading-[1.6] text-ink-500">- No triage recorded in this window yet. Triage cost is captured on the next agent wake (cloud immediately; BYOA after the daemon reports usage). The table above is the reference these estimates will use.+ {t('obs.triageNoData')}</div></>) : (@@ -762,35 +777,35 @@ function TriageEconomicsPanel(props: {{/* The headline: estimated net savings = avoided big-brain spend − triage spend. */}<div className="grid grid-cols-2 gap-3 sm:grid-cols-3 lg:grid-cols-6"><StatCard- label="Est. net savings"+ label={t('obs.statNetSavings')}value={`${net >= 0 ? '+' : ''}${fmtUsd(net)}`}tone={net >= 0 ? 'pos' : 'neg'}- sub={net >= 0 ? 'gate is paying off (estimate)' : 'gate COSTS more than it saves (estimate)'}+ sub={net >= 0 ? t('obs.statNetSavingsPos') : t('obs.statNetSavingsNeg')}/><StatCard- label="Avoided big-brain $"+ label={t('obs.statAvoided')}value={fmtUsd(data.estimatedAvoidedUsd)}tone="pos"- sub={`${data.triageSkipCount} skips × avg turn ${fmtUsd(data.avgTurnCostUsd)} (est.)`}+ sub={t('obs.statAvoidedSub', { skips: data.triageSkipCount, cost: fmtUsd(data.avgTurnCostUsd) })}/>- <StatCard label="Triage spend" value={fmtUsd(data.triageCostUsd)} sub={`${data.triageCount} triages · ${data.triageMeasuredCount} measured`} />- <StatCard label="Overhead (woke brain)" value={fmtUsd(data.triageOverheadUsd)} tone={data.triageOverheadUsd > 0 ? 'warn' : undefined} sub={`${data.triageWakeCount} paid the gate AND ran the turn`} />- <StatCard label="Big-brain cache-hit" value={fmtPct(data.turnCacheHitRate)} sub={`${data.turnCount} turns · avg ${fmtUsd(data.avgTurnCostUsd)}`} />- <StatCard label="Skip rate" value={data.triageCount > 0 ? fmtPct(data.triageSkipCount / data.triageCount) : '—'} sub={`triage tokens: ${fmtTok(data.triageInputTokens ?? 0)} uncached in`} />+ <StatCard label={t('obs.statTriageSpend')} value={fmtUsd(data.triageCostUsd)} sub={t('obs.statTriageSpendSub', { n: data.triageCount, measured: data.triageMeasuredCount })} />+ <StatCard label={t('obs.statOverhead')} value={fmtUsd(data.triageOverheadUsd)} tone={data.triageOverheadUsd > 0 ? 'warn' : undefined} sub={t('obs.statOverheadSub', { n: data.triageWakeCount })} />+ <StatCard label={t('obs.statCacheHit')} value={fmtPct(data.turnCacheHitRate)} sub={t('obs.statCacheHitSub', { turns: data.turnCount, cost: fmtUsd(data.avgTurnCostUsd) })} />+ <StatCard label={t('obs.statSkipRate')} value={data.triageCount > 0 ? fmtPct(data.triageSkipCount / data.triageCount) : '—'} sub={t('obs.statSkipRateSub', { tokens: fmtTok(data.triageInputTokens ?? 0) })} /></div>{/* The actual per-token unit prices the estimates rest on (table). */}{(data.unitPrices?.length ?? 0) > 0 && (<div className="rounded-[10px] border border-ink-100 bg-paper px-3.5 py-3">- <div className="text-[9.5px] font-bold uppercase tracking-[0.12em] text-ink-300">Unit prices used · per 1M tokens (all ESTIMATES unless you set CUMORA_MODEL_PRICES_JSON)</div>+ <div className="text-[9.5px] font-bold uppercase tracking-[0.12em] text-ink-300">{t('obs.priceMenuShort')}</div><table className="mt-2 w-full text-[11.5px]"><thead className="text-[9px] font-bold uppercase tracking-[0.1em] text-ink-400"><tr>- <th className="py-1 text-left">Brain</th>- <th className="py-1 text-left">Model</th>- <th className="py-1 text-right">Input</th>- <th className="py-1 text-right">Cache-read</th>- <th className="py-1 text-right">Output</th>+ <th className="py-1 text-left">{t('obs.colBrain')}</th>+ <th className="py-1 text-left">{t('obs.colModel')}</th>+ <th className="py-1 text-right">{t('obs.colInput')}</th>+ <th className="py-1 text-right">{t('obs.colCacheRead')}</th>+ <th className="py-1 text-right">{t('obs.colOutput')}</th><th className="py-1" /></tr></thead>@@ -801,13 +816,13 @@ function TriageEconomicsPanel(props: {<span className={cn('rounded-full px-1.5 py-0.5 text-[9px] font-bold uppercase',p.role === 'triage' ? 'bg-ink-100 text-ink-600' : 'bg-sky2-50 text-skype-deep',- )}>{p.role === 'triage' ? 'small brain' : 'big brain'}</span>+ )}>{p.role === 'triage' ? t('obs.tierSmall') : t('obs.tierBig')}</span></td><td className="py-1 font-mono text-ink-700">{p.model}</td><td className="py-1 text-right tabular-nums text-ink-600">${p.inPer1M}</td><td className="py-1 text-right tabular-nums text-ink-600">${p.cachedInPer1M}</td><td className="py-1 text-right tabular-nums text-ink-600">${p.outPer1M}</td>- <td className="py-1 text-right">{p.estimated && <span className="rounded bg-coral-soft px-1.5 py-0.5 text-[9px] font-bold uppercase text-coral-deep">est</span>}</td>+ <td className="py-1 text-right">{p.estimated && <span className="rounded bg-coral-soft px-1.5 py-0.5 text-[9px] font-bold uppercase text-coral-deep">{t('obs.est')}</span>}</td></tr>))}</tbody>@@ -817,13 +832,13 @@ function TriageEconomicsPanel(props: {{data.byoaShare > 0 && (<div className="rounded-[10px] border border-gold bg-cloud px-3.5 py-2.5 text-[11px] leading-[1.6] text-gold-deep">- <b>{fmtPct(data.byoaShare)} of these run on BYOA</b> (your own local engine). If that's a flat-rate plan (e.g. Claude Max), these dollars are <b>meter-equivalent</b> — what the same tokens would cost on the pay-as-you-go API, <b>NOT your real bill</b> (which is ≈ $0 marginal until you hit your plan's rate limit). For a flat-rate plan the real, plan-independent cost is the <b>tokens / quota</b>, not the $. The $ is still a faithful RELATIVE measure of triage-vs-turn.+ {t('obs.byoaNote', { share: fmtPct(data.byoaShare) })}</div>)}<div className="rounded-[10px] border border-ink-100 bg-cloud px-3.5 py-2.5 text-[11px] leading-[1.6] text-ink-500">- <b className="text-ink-700">What "saved" means & why it's an estimate:</b> a SKIP prevents a big-brain turn, so the saving is the <b>big-brain token cost that turn would have incurred</b> — which we can't know exactly (it didn't run). We approximate it with each agent's OWN mean effective turn cost in this window: <b>avoided = Σ(skips × that agent's avg turn $)</b>, then <b>net = avoided − triage spend</b>. Caveat: skipping can also let the big brain's prompt cache go cold (5-min TTL), so a later real turn may pay full uncached input — savings shift, they don't vanish. Everything except the avoided figure is measured; cache-aware (cache-reads ~10× cheaper than fresh input).- {data.costEstimated && <> Prices are <b>list-price estimates</b> — set <code className="rounded bg-paper px-1">CUMORA_MODEL_PRICES_JSON</code> for your real contracted rates.</>}+ <b className="text-ink-700">{t('obs.savedExplainHead')}</b> {t('obs.savedExplainBody')}+ {data.costEstimated && t('obs.pricesListEstimate')}</div>{/* Per-agent breakdown. */}@@ -832,13 +847,13 @@ function TriageEconomicsPanel(props: {<table className="w-full text-[11.5px]"><thead className="bg-cloud text-[9.5px] font-bold uppercase tracking-[0.1em] text-ink-400"><tr>- <th className="px-3 py-2 text-left">Agent</th>- <th className="px-3 py-2 text-right">Triages</th>- <th className="px-3 py-2 text-right">Skip %</th>- <th className="px-3 py-2 text-right">Triage $</th>- <th className="px-3 py-2 text-right">Avg turn $</th>- <th className="px-3 py-2 text-right">Cache-hit</th>- <th className="px-3 py-2 text-right">Est. net</th>+ <th className="px-3 py-2 text-left">{t('obs.colAgent')}</th>+ <th className="px-3 py-2 text-right">{t('obs.colTriages')}</th>+ <th className="px-3 py-2 text-right">{t('obs.colSkipPct')}</th>+ <th className="px-3 py-2 text-right">{t('obs.colTriageDollar')}</th>+ <th className="px-3 py-2 text-right">{t('obs.colAvgTurn')}</th>+ <th className="px-3 py-2 text-right">{t('obs.colCacheHit')}</th>+ <th className="px-3 py-2 text-right">{t('obs.colEstNet')}</th></tr></thead><tbody className="divide-y divide-ink-100">@@ -862,31 +877,30 @@ function TriageEconomicsPanel(props: {{/* Recent per-triage ledger. */}<div>- <div className="mb-2 text-[10px] font-bold uppercase tracking-[0.12em] text-ink-400">Recent triages</div>+ <div className="mb-2 text-[10px] font-bold uppercase tracking-[0.12em] text-ink-400">{t('obs.recentTriages')}</div><div className="space-y-1">- {(data.recent ?? []).map((t) => (- <div key={t.id} className="flex items-center gap-3 rounded-[8px] border border-ink-100 bg-paper px-3 py-1.5 text-[11.5px]">- <span className="w-[58px] shrink-0 tabular-nums text-ink-400">{clock(t.createdAt)}</span>- <span className="w-[90px] shrink-0 truncate text-ink-700">{t.agentName}</span>+ {(data.recent ?? []).map((row) => (+ <div key={row.id} className="flex items-center gap-3 rounded-[8px] border border-ink-100 bg-paper px-3 py-1.5 text-[11.5px]">+ <span className="w-[58px] shrink-0 tabular-nums text-ink-400">{clock(row.createdAt)}</span>+ <span className="w-[90px] shrink-0 truncate text-ink-700">{row.agentName}</span><span className={cn('w-[52px] shrink-0 rounded-full px-1.5 py-0.5 text-center text-[9.5px] font-bold uppercase',- t.actionable ? 'bg-sky2-50 text-skype-deep' : 'bg-ink-100 text-ink-500',- )}>{t.actionable ? 'wake' : 'skip'}</span>- <span className="w-[88px] shrink-0 truncate text-[10px] text-ink-400">{t.source}</span>- <span className="w-[80px] shrink-0 text-right tabular-nums text-ink-600">{t.measured ? fmtUsd(t.costUsd) : '—'}</span>+ row.actionable ? 'bg-sky2-50 text-skype-deep' : 'bg-ink-100 text-ink-500',+ )}>{row.actionable ? t('obs.actionWake') : t('obs.actionSkip')}</span>+ <span className="w-[88px] shrink-0 truncate text-[10px] text-ink-400">{row.source}</span>+ <span className="w-[80px] shrink-0 text-right tabular-nums text-ink-600">{row.measured ? fmtUsd(row.costUsd) : '—'}</span><span className="w-[120px] shrink-0 text-right text-[10px] tabular-nums text-ink-400">- {t.measured ? `${fmtTok(t.inputTokens)} in · ${fmtTok(t.cachedInputTokens)} cache` : 'unmeasured'}+ {row.measured ? t('obs.triageTokenDetail', { uncached: fmtTok(row.inputTokens), cache: fmtTok(row.cachedInputTokens) }) : t('obs.unmeasured')}</span><span className="flex-1 truncate text-right text-[10px] text-ink-400">- {!t.actionable && t.estSavingUsd != null- ? <span style={t.estSavingUsd >= 0 ? { color: 'var(--avail)' } : undefined} className={t.estSavingUsd < 0 ? 'text-coral-deep' : undefined}>- est. {t.estSavingUsd >= 0 ? 'saved ' : 'lost '}{fmtUsd(Math.abs(t.estSavingUsd))}+ {!row.actionable && row.estSavingUsd != null+ ? <span style={row.estSavingUsd >= 0 ? { color: 'var(--avail)' } : undefined} className={row.estSavingUsd < 0 ? 'text-coral-deep' : undefined}>+ {(row.estSavingUsd >= 0 ? t('obs.estSaved', { amount: fmtUsd(Math.abs(row.estSavingUsd)) }) : t('obs.estLost', { amount: fmtUsd(Math.abs(row.estSavingUsd)) }))}</span>- : <span className="truncate">{t.reason ?? ''}</span>}+ : <span className="truncate">{row.reason ?? ''}</span>}</span></div>- ))}- </div>+ ))} </div></div></>)}@@ -898,6 +912,7 @@ function TriageEconomicsPanel(props: {}export function ObservabilityView() {+ const t = useT()const byId = useParticipants((s) => s.byId)const loaded = useParticipants((s) => s.loaded)const { width: sidebarWidth, onResizeStart } = useResizableWidth('sidebar:observability', 380, { min: 280, max: 600 })@@ -1084,8 +1099,8 @@ export function ObservabilityView() {<div className="border-b border-ink-100 px-5 py-4"><div className="flex items-start justify-between gap-3"><div>- <h1 className="font-display text-[25px] font-medium tracking-tight text-ink-900">Agent Observability</h1>- <div className="mt-1 text-[12px] text-ink-500">Backend traces for every agent turn.</div>+ <h1 className="font-display text-[25px] font-medium tracking-tight text-ink-900">{t('obs.title')}</h1>+ <div className="mt-1 text-[12px] text-ink-500">{t('obs.subtitle')}</div></div><RefreshButtonloading={panel === 'traces' ? loading : workspaceLoading}@@ -1103,7 +1118,7 @@ export function ObservabilityView() {panel === item ? 'bg-sky2-50 text-skype-deep shadow-soft' : 'text-ink-500 hover:text-ink-700',)}>- {PANEL_LABEL[item]}+ {t(PANEL_LABEL_KEY[item])}</button>))}</div>@@ -1112,25 +1127,25 @@ export function ObservabilityView() {<><div className="mt-4 grid grid-cols-2 gap-2"><label className="text-[10.5px] font-bold uppercase tracking-[0.12em] text-ink-400">- Agent+ {t('obs.agent')}<Selectvalue={agentId}onValueChange={setAgentId}options={[- { value: 'all', label: 'All agents' },+ { value: 'all', label: t('obs.allAgents') },...agents.map((agent) => ({ value: agent.id, label: agent.name })),]}className="mt-1 normal-case tracking-normal"/></label><label className="text-[10.5px] font-bold uppercase tracking-[0.12em] text-ink-400">- Status+ {t('obs.status')}<Select<StatusFilter>value={status}onValueChange={setStatus}options={STATUS_OPTIONS.map((s) => ({value: s,- label: s === 'all' ? 'All statuses' : STATUS_STYLE[s].label,+ label: s === 'all' ? t('obs.allStatuses') : t(STATUS_STYLE[s].key),}))}className="mt-1 normal-case tracking-normal"/>@@ -1140,14 +1155,14 @@ export function ObservabilityView() {<Checkboxchecked={autoRefresh}onCheckedChange={setAutoRefresh}- label="Auto refresh"- description="Keep the trace list live while this panel is open"+ label={t('obs.autoRefresh')}+ description={t('obs.autoRefreshSub')}className="mt-3"/></>) : (<label className="mt-4 block text-[10.5px] font-bold uppercase tracking-[0.12em] text-ink-400">- Agent workspace+ {t('obs.agentWorkspace')}<Selectvalue={workspaceAgentId}onValueChange={(next) => {@@ -1157,7 +1172,7 @@ export function ObservabilityView() {}}options={agents.length > 0? agents.map((agent) => ({ value: agent.id, label: agent.name }))- : [{ value: '', label: 'No agents yet', disabled: true }]}+ : [{ value: '', label: t('obs.noAgents'), disabled: true }]}disabled={agents.length === 0}className="mt-1 normal-case tracking-normal"/>@@ -1176,7 +1191,7 @@ export function ObservabilityView() {{panel === 'workspace' ? (workspaceFiles.length === 0 ? (<div className="grid h-full place-items-center px-8 text-center text-[13px] leading-[1.6] text-ink-400">- This agent workspace has no files yet.+ {t('obs.workspaceEmpty')}</div>) : (<FileTree@@ -1191,7 +1206,7 @@ export function ObservabilityView() {) : (runs.length === 0 ? (<div className="grid h-full place-items-center px-8 text-center text-[13px] leading-[1.6] text-ink-400">- No agent traces yet. Send a message to an agent conversation and the next wake will appear here.+ {t('obs.noTraces')}</div>) : (<div className="space-y-2">@@ -1212,24 +1227,24 @@ export function ObservabilityView() {<div className="flex flex-wrap items-start justify-between gap-4"><div className="min-w-0"><h2 className="truncate font-display text-[24px] font-medium text-ink-900">- {workspaceFile?.path ?? 'Agent Workspace'}+ {workspaceFile?.path ?? t('obs.workspaceHeaderFallback')}</h2><div className="mt-1 flex flex-wrap items-center gap-2 font-mono text-[11px] text-ink-400">- <span>{workspaceAgentId || 'no-agent'}</span>+ <span>{workspaceAgentId || t('obs.noAgentId')}</span>{workspaceFile && (<><span>/</span><span>{bytes(workspaceFile.size)}</span><span>/</span>- <span>{workspaceFile.lineCount} lines</span>+ <span>{workspaceFile.lineCount} {t('obs.lines')}</span><span>/</span>- <span>updated {relative(workspaceFile.updatedAt)}</span>+ <span>{t('obs.metaUpdatedAt', { time: relative(workspaceFile.updatedAt, t) })}</span></>)}</div></div><div className="rounded-[10px] border border-ink-100 bg-paper px-3 py-2">- <div className="text-[10px] font-bold uppercase tracking-[0.12em] text-ink-300">Files</div>+ <div className="text-[10px] font-bold uppercase tracking-[0.12em] text-ink-300">{t('obs.workspaceFiles')}</div><div className="mt-1 font-mono text-[13px] text-ink-900">{workspaceFiles.length}</div></div></div>@@ -1244,7 +1259,7 @@ export function ObservabilityView() {</article>) : (<div className="grid h-full place-items-center text-[13px] text-ink-400">- Select a workspace file to inspect its contents.+ {t('obs.pickFile')}</div>)}</div>@@ -1266,7 +1281,7 @@ export function ObservabilityView() {<span>/</span><span>{clock(selected.startedAt)}</span><span>/</span>- <span>{selected.stage ?? 'idle'}</span>+ <span>{selected.stage ?? t('common.idle')}</span></div></div></div>@@ -1278,19 +1293,19 @@ export function ObservabilityView() {</div><div className="grid min-w-[360px] grid-cols-4 gap-2"><div className="rounded-[10px] border border-ink-100 bg-paper px-3 py-2">- <div className="text-[10px] font-bold uppercase tracking-[0.12em] text-ink-300">Duration</div>+ <div className="text-[10px] font-bold uppercase tracking-[0.12em] text-ink-300">{t('obs.metaDuration')}</div><div className="mt-1 font-mono text-[13px] text-ink-900">{elapsed(selected.durationMs)}</div></div><div className="rounded-[10px] border border-ink-100 bg-paper px-3 py-2">- <div className="text-[10px] font-bold uppercase tracking-[0.12em] text-ink-300">Inbox</div>+ <div className="text-[10px] font-bold uppercase tracking-[0.12em] text-ink-300">{t('obs.metaInbox')}</div><div className="mt-1 font-mono text-[13px] text-ink-900">{selected.inboxCount}</div></div><div className="rounded-[10px] border border-ink-100 bg-paper px-3 py-2">- <div className="text-[10px] font-bold uppercase tracking-[0.12em] text-ink-300">Tools</div>+ <div className="text-[10px] font-bold uppercase tracking-[0.12em] text-ink-300">{t('obs.metaTools')}</div><div className="mt-1 font-mono text-[13px] text-ink-900">{selected.toolCallCount}</div></div><div className="rounded-[10px] border border-ink-100 bg-paper px-3 py-2">- <div className="text-[10px] font-bold uppercase tracking-[0.12em] text-ink-300">Tokens</div>+ <div className="text-[10px] font-bold uppercase tracking-[0.12em] text-ink-300">{t('obs.metaTokens')}</div><div className="mt-1 font-mono text-[13px] text-ink-900">{selected.tokenCount}</div></div></div>@@ -1299,7 +1314,7 @@ export function ObservabilityView() {<div className="min-h-0 overflow-auto px-6 py-5">{events.length === 0 ? (- <div className="grid h-full place-items-center text-[13px] text-ink-400">No events recorded for this run.</div>+ <div className="grid h-full place-items-center text-[13px] text-ink-400">{t('obs.noEvents')}</div>) : (<div className="max-w-[1040px]">{events.map((event) => (@@ -1310,7 +1325,7 @@ export function ObservabilityView() {</div></div>) : (- <div className="grid h-full place-items-center text-[13px] text-ink-400">Select a run to inspect the timeline.</div>+ <div className="grid h-full place-items-center text-[13px] text-ink-400">{t('obs.pickRun')}</div>)}</section></main>diff --git a/src/desktop/Onboarding.tsx b/src/desktop/Onboarding.tsxindex 227c887..76556bb 100644--- a/src/desktop/Onboarding.tsx+++ b/src/desktop/Onboarding.tsx@@ -3,6 +3,7 @@ import { api, getPairingServerOrigin } from '@/api/client'import { useComputers } from '@/stores/computers'import { isWindows } from '@/lib/runtime'import { TitleBar } from '@/desktop/TitleBar'+import { useT } from '@/lib/i18n'/*** First-run gate for free-tier users: their agents run on their own machine@@ -12,6 +13,7 @@ import { TitleBar } from '@/desktop/TitleBar'* it. Starter agents are seeded server-side onto that computer at pair time.*/export function Onboarding() {+ const t = useT()const [busy, setBusy] = useState(false)const [code, setCode] = useState<string | null>(null)const [err, setErr] = useState<string | null>(null)@@ -62,39 +64,31 @@ export function Onboarding() {<div className="flex items-center gap-3 mb-2"><span className="text-[34px] leading-none">💻</span><h1 className="font-display font-medium text-[32px] tracking-tight text-ink-900" style={{ letterSpacing: '-0.02em' }}>- Set up your computer+ {t('onboard.title')}</h1></div>- <p className="text-[14.5px] text-ink-600 leading-relaxed mb-6 max-w-[560px]">- Your agents run on <strong>your own machine</strong> (or a VPS), powered by your local- <span className="font-mono text-[13px]"> Claude Code</span>,- <span className="font-mono text-[13px]"> Codex</span>,- <span className="font-mono text-[13px]"> Grok Build</span>, or- <span className="font-mono text-[13px]"> Cursor</span>. Pair a computer to get started —- your starter team will set up there, each with its own isolated workspace, memory, and skills.- </p>+ {/* biome-ignore lint/security/noDangerouslySetInnerHtml: static copy from the locale bundle, not user input */}+ <p className="text-[14.5px] text-ink-600 leading-relaxed mb-6 max-w-[560px]" dangerouslySetInnerHTML={{ __html: t('onboard.body') }} /><div className="bg-cloud rounded-[16px] p-5" style={{ border: '1px solid var(--ink-100)' }}>{!code ? (<>- <div className="text-[13px] text-ink-600 mb-4">- On the machine you want to host your agents, you'll run one command. It needs- <span className="font-mono"> claude</span>, <span className="font-mono">codex</span>, <span className="font-mono">grok</span>, or <span className="font-mono">cursor-agent</span> installed.- </div>+ {/* biome-ignore lint/security/noDangerouslySetInnerHtml: static copy from the locale bundle, not user input */}+ <div className="text-[13px] text-ink-600 mb-4" dangerouslySetInnerHTML={{ __html: t('onboard.cmdIntro') }} />{err && <div className="text-[12px] text-coral-deep bg-coral-soft rounded-[8px] p-2 mb-3">{err}</div>}<button onClick={getCode} disabled={busy}className="px-5 py-2.5 rounded-[11px] bg-skype text-white text-[14px] font-semibold disabled:opacity-50">- {busy ? 'Generating…' : 'Add a computer'}+ {busy ? t('onboard.generating') : t('onboard.addComputer')}</button></>) : (<>- <div className="text-[13px] font-semibold text-ink-900 mb-1">Run this on that machine:</div>+ <div className="text-[13px] font-semibold text-ink-900 mb-1">{t('onboard.runThis')}</div><div className="text-[11.5px] text-ink-500 mb-2.5 italic font-display">- This pairing token stays valid. The computer appears here and you'll continue automatically once it connects.+ {t('onboard.tokenHint')}</div><div className="flex items-center gap-2.5 mb-2.5">- <span className="text-[12px] text-ink-500">Engine</span>+ <span className="text-[12px] text-ink-500">{t('onboard.engine')}</span><div className="inline-flex rounded-[9px] p-0.5" style={{ background: 'var(--ink-100)' }}>{([['claude', 'Claude Code'], ['codex', 'Codex'], ['grok', 'Grok Build'], ['cursor', 'Cursor']] as const).map(([id, label]) => (<button key={id} type="button" onClick={() => setEngine(id)}@@ -106,18 +100,18 @@ export function Onboarding() {</button>))}</div>- <span className="text-[11px] text-ink-400">just the default — this computer can still run agents on any detected engine</span>+ <span className="text-[11px] text-ink-400">{t('onboard.engineHint')}</span></div>{isWindows ? (<div className="mb-2.5 text-[12px] text-ink-600">- Keep this terminal open while the agents run.- <span className="text-ink-400"> — background service install isn’t supported on Windows yet.</span>+ {t('onboard.windowsKeep')}+ <span className="text-ink-400"> — {t('onboard.windowsServiceNote')}</span></div>) : (<label className="flex items-start gap-2 mb-2.5 cursor-pointer select-none"><input type="checkbox" checked={asService} onChange={(e) => setAsService(e.target.checked)} className="mt-[3px]" /><span className="text-[12px] text-ink-600">- Keep it running in the background <span className="text-ink-400">— auto-start on boot, auto-restart on crash, auto-update. Otherwise this terminal has to stay open.</span>+ {t('onboard.background')} <span className="text-ink-400">{t('onboard.backgroundDetail')}</span></span></label>)}@@ -126,11 +120,11 @@ export function Onboarding() {<button onClick={() => { void navigator.clipboard?.writeText(cmd); setCopied(true) }}className="inline-flex items-center justify-center min-w-[120px] text-[12px] font-semibold px-3 py-1.5 rounded-[9px] text-white transition-colors duration-200"style={{ background: copied ? '#3BB273' : 'var(--skype)' }}>- {copied ? '✓ Copied!' : 'Copy command'}+ {copied ? t('onboard.copied') : t('onboard.copy')}</button><span className="inline-flex items-center gap-2 text-[12px] text-ink-500"><span className="w-2 h-2 rounded-full bg-ink-300 animate-pulse" />- Waiting for your computer to connect…+ {t('onboard.waiting')}</span></div></>@@ -138,7 +132,7 @@ export function Onboarding() {</div><p className="text-[12px] text-ink-400 mt-4">- Want managed cloud agents instead? <span className="text-skype-deep">Upgrade to Pro</span> to run agents on Cumora Cloud.+ {t('onboard.cloudCta')} <span className="text-skype-deep">{t('onboard.upgradePro')}</span> {t('onboard.cloudRun')}</p></div></main>diff --git a/src/desktop/Rail.tsx b/src/desktop/Rail.tsxindex a78679e..ea68768 100644--- a/src/desktop/Rail.tsx+++ b/src/desktop/Rail.tsx@@ -9,20 +9,25 @@ import { Avatar } from '@/components/Avatar'import { IChat, IWhisper, IAgent, IAgents, IBoard, IDoc, ICalendar, IObserve, IExit, IShip } from '@/components/icons'import { api } from '@/api/client'import { cn } from '@/lib/utils'+import { useT, type MessageKey } from '@/lib/i18n'import type { Participant, ViewKey } from '@/types'-const baseItems: Array<{ key: ViewKey['view']; Icon: typeof IChat; label: string }> = [- { key: 'conversations', Icon: IChat, label: 'Conversations' },- { key: 'whispers', Icon: IWhisper, label: 'Whispers' },- { key: 'shipping', Icon: IShip, label: 'Ship' },- { key: 'boards', Icon: IBoard, label: 'Boards' },- { key: 'calendar', Icon: ICalendar, label: 'Calendar' },- { key: 'documents', Icon: IDoc, label: 'Docs' },- { key: 'agents', Icon: IAgent, label: 'Agents' },- { key: 'me', Icon: IAgents, label: 'Me' },+// `label` is a message key rather than the string itself — the array is+// module scope, so it can't call a translator that re-renders on a+// locale switch. Resolution happens at render.+const baseItems: Array<{ key: ViewKey['view']; Icon: typeof IChat; label: MessageKey }> = [+ { key: 'conversations', Icon: IChat, label: 'nav.conversations' },+ { key: 'whispers', Icon: IWhisper, label: 'nav.whispers' },+ { key: 'shipping', Icon: IShip, label: 'nav.ship' },+ { key: 'boards', Icon: IBoard, label: 'nav.boards' },+ { key: 'calendar', Icon: ICalendar, label: 'nav.calendar' },+ { key: 'documents', Icon: IDoc, label: 'nav.docs' },+ { key: 'agents', Icon: IAgent, label: 'nav.agents' },+ { key: 'me', Icon: IAgents, label: 'nav.me' },]export function Rail() {+ const t = useT()const view = useApp((s) => s.view)const setView = useApp((s) => s.setView)const devtoolsEnabled = useDevtools((s) => s.enabled)@@ -45,7 +50,7 @@ export function Rail() {const assembled = devtoolsEnabled? [...baseItems.slice(0, 3),- { key: 'observability' as const, Icon: IObserve, label: 'Observe' },+ { key: 'observability' as const, Icon: IObserve, label: 'nav.observe' as MessageKey },...baseItems.slice(3),]: baseItems@@ -62,7 +67,7 @@ export function Rail() {const fallback: Participant = {id: authUser?.id ?? 'me',kind: 'human',- name: authUser?.name ?? 'You',+ name: authUser?.name ?? t('common.you'),initial: (authUser?.name ?? 'Y').charAt(0).toUpperCase(),avatarBg: 'linear-gradient(135deg, #FF7A6B, #F4B740)',status: 'avail',@@ -77,7 +82,7 @@ export function Rail() {<buttonclassName="mb-3.5 relative"onClick={() => setView('me')}- title={daemonOutdated ? 'A computer daemon needs updating — open You' : (authUser?.name ?? 'You')}+ title={daemonOutdated ? t('common.daemonOutdatedTip') : (authUser?.name ?? t('common.you'))}><Avatar p={meAvatar} size={44} ringColor="var(--cloud)" />{daemonOutdated && (@@ -95,8 +100,8 @@ export function Rail() {<buttonkey={key}onClick={() => setView(key)}- title={label}- aria-label={label}+ title={t(label)}+ aria-label={t(label)}className={cn('w-11 h-11 rounded-xl grid place-items-center transition relative',active ? 'bg-cloud text-skype-deep shadow-soft' : 'text-ink-500 hover:bg-cloud hover:text-skype-deep',@@ -127,8 +132,8 @@ export function Rail() {location.reload()}}className="w-11 h-11 rounded-xl grid place-items-center text-ink-400 hover:bg-cloud hover:text-coral-deep transition-colors"- title="Sign out"- aria-label="Sign out"+ title={t('common.signOut')}+ aria-label={t('common.signOut')}><IExit className="w-[22px] h-[22px]" /></button>diff --git a/src/desktop/ThreadDrawer.tsx b/src/desktop/ThreadDrawer.tsxindex 88409d3..e6a41c5 100644--- a/src/desktop/ThreadDrawer.tsx+++ b/src/desktop/ThreadDrawer.tsx@@ -18,6 +18,7 @@ import { api, type ApiMessage } from '@/api/client'import { MessageRow } from '@/components/Message'import { Composer } from '@/desktop/ChatPane'import type { Message, Participant } from '@/types'+import { useT } from '@/lib/i18n'function apiToMessage(m: ApiMessage): Message {const raw = m as unknown as {@@ -46,6 +47,7 @@ function apiToMessage(m: ApiMessage): Message {}export function ThreadDrawer() {+ const t = useT()const openThread = useApp((s) => s.openThread)const close = useApp((s) => s.closeThreadView)const byId = useParticipants((s) => s.byId)@@ -120,14 +122,14 @@ export function ThreadDrawer() {><header className="flex items-center justify-between px-4 pt-4 pb-3 border-b border-ink-100"><div>- <div className="text-[10.5px] font-bold uppercase tracking-[0.14em] text-ink-400">Thread</div>+ <div className="text-[10.5px] font-bold uppercase tracking-[0.14em] text-ink-400">{t('thread.title')}</div><div className="text-[13px] text-ink-700 font-semibold mt-0.5">- {visibleReplies.length} {visibleReplies.length === 1 ? 'reply' : 'replies'}+ {visibleReplies.length} {t(visibleReplies.length === 1 ? 'thread.reply' : 'thread.replyPlural')}</div></div><buttononClick={close}- aria-label="Close thread"+ aria-label={t('thread.close')}className="w-7 h-7 rounded-md grid place-items-center text-ink-500 hover:bg-cloud hover:text-ink-900 transition">×</button></header>@@ -138,13 +140,13 @@ export function ThreadDrawer() {<MessageRow msg={root} author={rootAuthor ?? fallbackAuthor} /></div><div className="text-[10.5px] font-bold uppercase tracking-wider text-ink-400 pt-1 border-t border-ink-100 -mb-2">- Replies+ {t('thread.replies')}</div>- {loading && <div className="text-[12px] text-ink-400 italic">loading replies…</div>}+ {loading && <div className="text-[12px] text-ink-400 italic">{t('thread.loading')}</div>}{err && <div className="text-[12px] text-coral-deep">{err}</div>}{!loading && !err && visibleReplies.length === 0 && (- <div className="text-[12px] text-ink-400 italic">No replies yet — be the first.</div>+ <div className="text-[12px] text-ink-400 italic">{t('thread.empty')}</div>)}{visibleReplies.map((m) => {const a = byId[m.authorId] ?? { ...fallbackAuthor, id: m.authorId, name: m.authorId, initial: (m.authorId[0] ?? '?').toUpperCase() }@@ -154,13 +156,13 @@ export function ThreadDrawer() {<div className="border-t border-ink-100 bg-cloud px-3 py-3"><div className="text-[10.5px] text-ink-400 mb-1.5">- Replying to <span className="text-skype-deep font-semibold">{rootAuthor?.name ?? root.authorId}</span>+ {t('thread.replyingTo')} <span className="text-skype-deep font-semibold">{rootAuthor?.name ?? root.authorId}</span></div><ComposerconvoId={openThread.convoId}typingNames={[]}threadRootId={openThread.rootId}- placeholder="Reply in thread…"+ placeholder={t('thread.placeholder')}/></div></aside>diff --git a/src/desktop/TitleBar.tsx b/src/desktop/TitleBar.tsxindex 7da9a80..4d3a7ce 100644--- a/src/desktop/TitleBar.tsx+++ b/src/desktop/TitleBar.tsx@@ -1,8 +1,10 @@import { CloudLogo } from '@/components/Avatar'import { CompanySwitcher } from '@/components/CompanySwitcher'import { isElectron, trafficLightInset } from '@/lib/runtime'+import { useT } from '@/lib/i18n'export function TitleBar() {+ const t = useT()// In Electron with hidden titleBarStyle on mac, native traffic lights land in this strip.// Reserve space on the left for them, and make the bar a draggable region.const dragStyle = isElectron@@ -41,7 +43,7 @@ export function TitleBar() {<div className="flex items-center justify-center gap-2.5 font-display font-medium text-[14px] text-ink-700 tracking-wide whitespace-nowrap"><CloudLogo /><span>Cumora</span>- <em className="font-normal text-ink-500" style={{ fontStyle: 'italic' }}>— where agent teams gather</em>+ <em className="font-normal text-ink-500" style={{ fontStyle: 'italic' }}>{t('common.titlebarTagline')}</em></div><div className="flex items-center justify-end pr-2"><CompanySwitcher />diff --git a/src/desktop/WhispersView.tsx b/src/desktop/WhispersView.tsxindex 19dcac0..c1c7bf5 100644--- a/src/desktop/WhispersView.tsx+++ b/src/desktop/WhispersView.tsx@@ -5,10 +5,12 @@ import { WhisperRoom } from '@/components/WhisperRoom'import { HiveAvatar } from '@/components/HiveAvatar'import { ResizeHandle } from '@/components/ResizeHandle'import { cn } from '@/lib/utils'+import { useT } from '@/lib/i18n'import { useResizableWidth } from '@/lib/useResizableWidth'import type { Participant } from '@/types'function StubRoom() {+ const t = useT()return (<main className="grid place-items-center text-center"style={{@@ -16,10 +18,10 @@ function StubRoom() {}}><div><div className="font-display font-medium text-[28px] text-ink-900 mb-2" style={{ letterSpacing: '-0.02em' }}>- No whispers yet+ {t('whispers.noWhispers')}</div><div className="font-display italic text-[14px] text-ink-500 max-w-md leading-relaxed">- Whispers form when an agent decides — after their public reply — that they need to align with another teammate privately.+ {t('whispers.noWhispersBody')}</div></div></main>@@ -27,6 +29,7 @@ function StubRoom() {}export function WhispersView() {+ const t = useT()const list = useWhispers((s) => s.list)const byId = useParticipants((s) => s.byId)const [selectedId, setSelectedId] = useState<string | null>(null)@@ -46,16 +49,16 @@ export function WhispersView() {<aside className="relative flex flex-col overflow-hidden border-r border-ink-100 bg-paper"><div className="px-[18px] pt-[18px] pb-3"><h1 className="font-display font-medium text-[26px] tracking-tight text-ink-900 leading-none mb-1">- Whispers+ {t('whispers.title')}</h1><div className="text-[12px] text-ink-500 font-display italic">- channels you can peek into · <b className="not-italic text-whisper-deep font-semibold">{list.length}</b>+ {t('whispers.subtitle')} · <b className="not-italic text-whisper-deep font-semibold">{list.length}</b></div></div><div className="flex-1 overflow-y-auto px-2 pb-[18px]">{list.length === 0 && (<div className="px-3 py-4 text-[12px] text-ink-300 italic font-display">- Send a message in a group to nudge an agent to whisper.+ {t('whispers.empty')}</div>)}{list.map((w) => {@@ -71,8 +74,8 @@ export function WhispersView() {const namesLabel = ms.length <= 2? null: ms.length === 3- ? `${ms[0].name}, ${ms[1].name} & 1 more`- : `${ms[0].name}, ${ms[1].name} & ${ms.length - 2} more`+ ? t('whispers.andOneMore', { a: ms[0].name, b: ms[1].name })+ : t('whispers.andNMore', { a: ms[0].name, b: ms[1].name, n: ms.length - 2 })return (<buttonkey={w.id}@@ -104,7 +107,7 @@ export function WhispersView() {<div className="text-[11.5px] text-ink-500 leading-[1.4] truncate font-display italic">{isGroup && namesLabel? namesLabel- : (w.about ?? 'private thread')}+ : (w.about ?? t('whispers.privateThread'))}<span className="not-italic text-ink-300"> · {w.msgCount}</span></div></div>diff --git a/src/lib/i18n.ts b/src/lib/i18n.tsnew file mode 100644index 0000000..4360336--- /dev/null+++ b/src/lib/i18n.ts@@ -0,0 +1,165 @@+/**+ * Minimal i18n layer — locale state, lookup, and interpolation.+ *+ * Deliberately dependency-free. The alternative (react-i18next & friends)+ * brings a plugin system, a loader pipeline, and a namespace concept we'd+ * use none of: the dictionaries are small enough to ship in the bundle,+ * and there is no server-side rendering to hydrate around. What's left+ * fits in this file.+ *+ * Shape of the contract:+ * - `en` is the source of truth. Every key exists there, and its type+ * is what every other locale is checked against — a missing or+ * misspelled key in a translation is a compile error, not a blank+ * string at runtime.+ * - Lookup falls back to English for anything a locale hasn't+ * translated yet, so a partial locale renders a mixed UI rather than+ * an empty one. Partial is the normal state of a translation.+ * - The locale is a PER-DEVICE choice in localStorage, like the sound+ * toggle (see stores/sound.ts). Syncing it through server+ * preferences would push one language onto every device a user signs+ * in from, which is the wrong default for someone reading English at+ * work and Chinese at home.+ */+import { create } from 'zustand'+import { en } from '@/locales/en'+import { zhCN } from '@/locales/zh-CN'++export type Locale = 'en' | 'zh-CN'+export type MessageKey = keyof typeof en++/** Order here is the order the language picker renders. `label` is+ * intentionally written in the language itself — someone looking for+ * Chinese scans for 简体中文, not for "Chinese (Simplified)". */+export const LOCALES: Array<{ code: Locale; label: string; english: string }> = [+ { code: 'en', label: 'English', english: 'English' },+ { code: 'zh-CN', label: '简体中文', english: 'Chinese (Simplified)' },+]++const DICTS: Record<Locale, Partial<Record<MessageKey, string>>> = {+ en,+ 'zh-CN': zhCN,+}++const STORAGE_KEY = 'cumora.locale'++function isLocale(v: string | null): v is Locale {+ return v === 'en' || v === 'zh-CN'+}++/** First run: no stored choice, so take the browser's. `zh`, `zh-Hans`,+ * `zh-CN`, `zh-SG` all mean "this person reads Chinese" for our purposes+ * — we only ship Simplified, so anything Chinese-ish lands there rather+ * than falling through to English. Traditional-script users get+ * Simplified until a zh-TW dictionary exists; a wrong-script UI they can+ * switch is still better than an English one they can't read. */+function detectLocale(): Locale {+ if (typeof navigator === 'undefined') return 'en'+ const tags = [navigator.language, ...(navigator.languages ?? [])]+ for (const tag of tags) {+ if (!tag) continue+ const lower = tag.toLowerCase()+ if (lower.startsWith('zh')) return 'zh-CN'+ if (lower.startsWith('en')) return 'en'+ }+ return 'en'+}++function readInitialLocale(): Locale {+ if (typeof window === 'undefined') return 'en'+ try {+ const raw = window.localStorage.getItem(STORAGE_KEY)+ if (isLocale(raw)) return raw+ } catch {+ /* private mode / storage disabled — fall through to detection */+ }+ return detectLocale()+}++/** Keep the document's language attribute in step. Screen readers pick+ * their voice from it, and CSS `:lang()` selectors key off it. */+function syncDocumentLang(locale: Locale): void {+ if (typeof document === 'undefined') return+ document.documentElement.lang = locale+}++interface LocaleState {+ locale: Locale+ setLocale(next: Locale): void+}++export const useLocaleStore = create<LocaleState>((set) => {+ const initial = readInitialLocale()+ syncDocumentLang(initial)+ return {+ locale: initial,+ setLocale(next) {+ set({ locale: next })+ syncDocumentLang(next)+ try { window.localStorage.setItem(STORAGE_KEY, next) } catch { /* ignore */ }+ },+ }+})++/** `{name}`-style placeholders. Anything without a matching var is left+ * as-is rather than blanked, so a typo shows up as visible `{whoops}`+ * text instead of silently swallowing the sentence. */+function interpolate(template: string, vars?: Record<string, string | number>): string {+ if (!vars) return template+ return template.replace(/\{(\w+)\}/g, (whole, name: string) => {+ const v = vars[name]+ return v === undefined ? whole : String(v)+ })+}++export function translate(+ locale: Locale,+ key: MessageKey,+ vars?: Record<string, string | number>,+): string {+ const template = DICTS[locale][key] ?? en[key] ?? key+ return interpolate(template, vars)+}++/** Reactive translator for components — re-renders on a locale switch. */+export function useT(): (key: MessageKey, vars?: Record<string, string | number>) => string {+ const locale = useLocaleStore((s) => s.locale)+ return (key, vars) => translate(locale, key, vars)+}++/** The current locale, for components that need to branch on it (date+ * formatting, list separators) rather than look a message up. */+export function useLocale(): Locale {+ return useLocaleStore((s) => s.locale)+}++/** Non-reactive translator, for module scope and event handlers. A+ * component that renders the result must use {@link useT} instead —+ * this one won't re-render anything when the locale changes. */+export function t(key: MessageKey, vars?: Record<string, string | number>): string {+ return translate(useLocaleStore.getState().locale, key, vars)+}++/** Translated-label lookup with an inline-English fallback — the overlay+ * used by files that keep the author's English literals in the tree for+ * upstream mergeability. Prefers the translated key; returns the fallback+ * when the key is empty, missing from the bundle, or resolves to itself.+ * Pass the component's `useT()` translator as `t`. */+export function tLabel(+ t: (key: MessageKey, vars?: Record<string, string | number>) => string,+ key: MessageKey | '' | undefined,+ fallback: string,+ vars?: Record<string, string | number>,+): string {+ if (!key) return fallback+ const v = t(key, vars)+ return v && v !== key ? v : fallback+}++/** Component-friendly form of {@link tLabel}: binds the current locale's+ * translator once, so a component writes `const tLabel = useTLabel()`+ * instead of re-declaring the wrapper. */+export function useTLabel(): (key: MessageKey | '' | undefined, fallback: string, vars?: Record<string, string | number>) => string {+ const t = useT()+ return (key, fallback, vars) => tLabel(t, key, fallback, vars)+}diff --git a/src/locales/en.ts b/src/locales/en.tsnew file mode 100644index 0000000..4ef6a00--- /dev/null+++ b/src/locales/en.ts@@ -0,0 +1,1751 @@+/**+ * English message catalogue — the source of truth.+ *+ * Adding a string to the UI means adding its key here first: `en` types+ * every other locale (see lib/i18n.ts), so a translation that misspells+ * or misses a key fails the typecheck instead of rendering blank.+ *+ * Keys are `area.thing`, where the area matches where the string lives+ * (`nav.`, `auth.`, `me.`, `mobileMe.`) and shared wording sits under+ * `common.`. Keep the English here identical to what the component used+ * to hardcode — a translation pass shouldn't quietly reword the product.+ */+export const en = {+ // ─── shared ───────────────────────────────────────────────────────+ 'common.close': 'close',+ 'common.use': 'Use',+ 'common.tryAgain': 'Try again',+ 'common.language': 'Language',+ 'common.signOut': 'Sign out',+ 'common.languageSub': 'this device only · applies immediately',+ 'common.titlebarTagline': '— where agent teams gather',+ 'common.daemonOutdatedTip': 'A computer daemon needs updating — open You',+ 'common.cancel': 'Cancel',+ 'common.done': 'Done',+ 'common.save': 'Save',+ 'common.delete': 'Delete',+ 'common.you': 'You',+ 'common.idle': 'idle',+ 'common.human': 'human',+ 'common.agent': 'agent',+ 'common.loading': 'Loading…',+ 'common.required': 'required',+ 'common.optional': 'optional',+ 'common.unassigned': 'unassigned',+ 'common.noData': 'No data.',+ 'common.open': 'Open',+ 'common.peek': 'Peek',+ // ─── navigation: desktop rail + mobile tab bar ────────────────────+ 'nav.conversations': 'Conversations',+ 'nav.chats': 'Chats',+ 'nav.whispers': 'Whispers',+ 'nav.ship': 'Ship',+ 'nav.boards': 'Boards',+ 'nav.calendar': 'Calendar',+ 'nav.docs': 'Docs',+ 'nav.library': 'Library',+ 'nav.agents': 'Agents',+ 'nav.me': 'Me',+ 'nav.observe': 'Observe',+ // ─── sign-in ──────────────────────────────────────────────────────+ 'auth.welcome': 'Welcome to cumora',+ 'auth.signInToContinue': 'Sign in to continue',+ 'auth.continueWithApple': 'Continue with Apple',+ 'auth.continueWithGoogle': 'Continue with Google',+ 'auth.continueWithGithub': 'Continue with GitHub',+ 'auth.signInToAccept': 'Sign in to accept this invite',+ // Local email + password — self-hosted servers with no OAuth provider.+ // ─── web landing (app.cumora.ai) ──────────────────────────────────+ 'web.desktopApp': 'Cumora is a desktop app',+ 'web.desktopAppSub': "Sign in to join, or open the desktop app if it's already installed",+ 'auth.signingIn': 'Signing in…',+ 'auth.redirecting': 'Redirecting…',+ 'auth.noTokenReturned': 'Sign-in completed but no token was returned.',+ 'auth.providerNote': "We use your provider only to verify it's you — no posting, no scope creep.",+ 'auth.apiServer': 'API server',+ 'auth.sameOrigin': 'same-origin (Vite proxy / static)',+ 'auth.clearOverride': 'Clear override (use build default)',+ // ─── You / settings (desktop) ─────────────────────────────────────+ 'me.headline': 'You',+ 'me.statPulled': 'pulled',+ 'me.statLed': 'led',+ 'me.statNoise': 'noise',+ 'me.headlineEm': 'at the center',+ 'me.subtitle': 'How your agents see you, what they remember, and how much rope they get.',+ 'me.tab.profile': 'Profile',+ 'me.tab.usage': 'Usage',+ 'me.tab.computers': 'Computers',+ 'me.tab.projects': 'Projects',+ 'me.tab.trust': 'Trust & autonomy',+ 'me.tab.preferences': 'Preferences',+ 'me.daemonNeedsUpdate': 'A daemon needs updating',+ 'me.prefs.notifications': 'Notifications',+ 'me.prefs.groupPulled': 'When an agent pulls a group with you in it',+ 'me.prefs.groupPulledSub': 'always · never · only urgent',+ 'me.prefs.whisperMention': 'When a whisper mentions you',+ 'me.prefs.whisperMentionSub': 'always · digest · never',+ 'me.prefs.conveneCalled': 'When a Convene session is called',+ 'me.prefs.conveneCalledSub': 'always · never',+ 'me.prefs.dailySummary': 'Daily summary of overnight agent activity',+ 'me.prefs.dailySummarySub': '8:00am local time',+ 'me.prefs.lookFeel': 'Look & feel',+ 'me.prefs.reduceMotion': 'Reduce motion',+ 'me.prefs.reduceMotionSub': 'fewer animations',+ 'me.prefs.typingIndicators': 'Show typing indicators',+ 'me.prefs.typingIndicatorsSub': 'see when agents are drafting',+ 'me.prefs.thoughtsInMain': 'Show "thinking aloud" snippets in main chat',+ 'me.prefs.thoughtsInMainSub': 'usually private to whispers',+ 'me.prefs.privacy': 'Privacy',+ 'me.prefs.silentWhispers': 'Let agents whisper without your peek',+ 'me.prefs.silentWhispersSub': 'they still log to your transcript',+ 'me.prefs.newTools': 'Let agents call new tools autonomously',+ 'me.prefs.newToolsSub': "with the permissions you've granted",+ 'me.prefs.humanInvites': 'Let agents add humans to groups',+ 'me.prefs.humanInvitesSub': 'with your consent each time',+ 'me.prefs.languageSection': 'Language',+ 'me.prefs.skypeSection': 'Skype emoticons',+ 'me.prefs.skypeSounds': 'Play classic Skype sounds',+ 'me.prefs.skypeSoundsSub':+ 'this device only · plays once when a Skype emoticon enters view; click an emoticon to replay',+ 'me.prefs.developer': 'Developer',+ 'me.prefs.developerMode': 'Developer mode',+ 'me.prefs.developerModeLocal': 'Always on while running the local development build',+ 'me.prefs.developerModeSub': 'Show Observe and unlock backend-gated developer tools on this device',+ // ─── You / settings (mobile) ──────────────────────────────────────+ 'mobileMe.workspace': 'Workspace',+ 'mobileMe.yourTeam': 'Your team',+ 'mobileMe.push': 'Push notifications',+ 'mobileMe.preferences': 'Preferences',+ 'mobileMe.language': 'Language',+ 'mobileMe.quietWorkspace': 'A quiet workspace — no agents have joined yet.',+ 'mobileMe.quietSteward': 'A quiet workspace — invite some agents to get started.',+ 'mobileMe.steward': 'Steward of {parts}.',+ 'mobileMe.agentCount': '{count} agents',+ 'mobileMe.roomCount': '{count} rooms',+ 'mobileMe.peekCount': '{count} peeks',+ 'mobileMe.defaultRole': 'human · team owner',+ 'mobileMe.signOutSub': 'end this session on this device',+ 'mobileMe.prefs.push': 'Push notifications',+ 'mobileMe.prefs.pushSub': 'banner + badge when the app is closed',+ 'mobileMe.prefs.groupPull': 'Notify on group pulls',+ 'mobileMe.prefs.groupPullSub': 'when an agent loops you in',+ 'mobileMe.prefs.mention': 'Notify on mentions',+ 'mobileMe.prefs.mentionSub': 'when agents @ you',+ 'mobileMe.prefs.typing': 'Show typing indicators',+ 'mobileMe.prefs.typingSub': 'see when agents are drafting',+ 'mobileMe.prefs.reduceMotion': 'Reduce motion',+ 'mobileMe.prefs.reduceMotionSub': 'fewer animations',+ 'mobileMe.prefs.newTools': 'Agents can call new tools',+ 'mobileMe.prefs.newToolsSub': 'with granted permissions',+ // ─── conversation list (desktop left pane) ────────────────────────+ 'convo.title': 'Conversations',+ 'convo.newGroup': 'Create a new group conversation',+ 'convo.newEmail': 'Compose new email',+ 'convo.searchPlaceholder': 'Find a conversation, agent, or human…',+ 'convo.clearSearch': 'Clear search',+ 'convo.searching': 'Searching…',+ 'convo.noMatches': 'No matches for',+ 'convo.loading': 'Loading…',+ 'convo.pinned': 'Pinned',+ 'convo.emailThread': 'Email thread',+ 'convo.mute': 'Mute conversation',+ 'convo.muted': 'Muted',+ 'convo.unmute': 'Unmute',+ 'convo.muteForever': 'Until I turn it back on',+ 'convo.mute15m': 'For 15 minutes',+ 'convo.mute1h': 'For 1 hour',+ 'convo.mute8h': 'For 8 hours',+ 'convo.mute24h': 'For 24 hours',+ 'convo.muteTomorrow': 'Until tomorrow morning',+ 'convo.muteMonday': 'Until next Monday',+ 'convo.muteHintForever': 'forever',+ 'convo.muteHintUntil': 'until {when}',+ 'convo.mutedUntil': 'Muted until {when}',+ 'convo.addMembers': 'Add members…',+ 'convo.leaveGroup': 'Leave group',+ 'convo.addToGroupPrompt': 'Pick a group you want them in.',+ 'convo.addedTo': 'Added to',+ 'convo.leaveTitle': 'Leave “{title}”?',+ 'convo.roleAgent': 'agent',+ 'convo.roleHuman': 'human teammate',+ 'convo.leaveWarning': "You'll stop seeing new messages from this group. The other members can keep talking; you can be re-added by anyone in the group.",+ 'convo.addMembersTo': 'Add members to',+ 'convo.filterPlaceholder': 'Filter by name or id…',+ 'convo.adding': 'adding…',+ 'convo.add': 'Add',+ 'convo.justAdded': 'Just added',+ // ─── chat pane, info pane, thread drawer ───+ 'chat.comingSoon': 'Coming soon',+ 'chat.conveneSoon': 'Live working sessions are still on the way.',+ 'chat.convene': 'Convene',+ 'chat.setTopic': 'Set a topic',+ 'chat.addTopic': '+ topic',+ 'chat.topicPlaceholder': "What's this group for?",+ 'chat.editTopic': 'Click to edit topic',+ 'chat.showMembers': 'Show conversation members',+ 'chat.search': 'Search in this conversation',+ 'chat.searchPlaceholder': 'Search in this conversation…',+ 'chat.prevMatch': 'Previous match (Shift+Enter / ↑)',+ 'chat.nextMatch': 'Next match (Enter / ↓)',+ 'chat.closeEsc': 'Close (Esc)',+ 'chat.uploading': 'uploading…',+ 'chat.removeAttachment': 'Remove attachment',+ 'chat.cancelReply': 'Cancel reply',+ 'chat.cancelReplyEsc': 'Cancel reply (Esc)',+ 'chat.attachFile': 'Attach file',+ 'chat.mention': 'Mention',+ 'chat.emoji': 'Emoji',+ 'chat.everyone': 'Everyone',+ 'chat.everyoneHint': 'Notify all members of this room',+ 'chat.send': 'Send',+ 'chat.gathering': 'Gathering messages…',+ 'chat.loadFailed': "Couldn't load messages",+ 'chat.retrying': 'Retrying…',+ 'chat.tryAgain': 'Try again',+ 'chat.replyingTo': 'Replying to {name}',+ 'chat.emptyTitle': 'Pick up where you left off',+ 'chat.emptySub': 'Choose a thread on the left to slip back in.',+ 'chat.threadsWaiting': 'threads waiting',+ 'chat.threadWaiting': 'thread waiting',+ 'chat.unread': 'unread',+ 'chat.beginning': 'Beginning',+ 'chat.helloCloud': 'Hello cloud',+ 'chat.slashPoll': 'Poll',+ 'chat.slashPollHint': 'Start a poll — agents and humans can both vote',+ 'chat.reply': 'Reply',+ 'chat.replyToMessage': 'Reply to this message',+ 'chat.showAuthorInfo': "Show {name}'s info",+ 'chat.inThisConversation': 'in this conversation',+ 'chat.deliveryUnconfirmed': 'Delivery not confirmed',+ 'chat.failedToSend': 'Failed to send',+ 'chat.dismiss': 'Dismiss',+ 'chat.loadingEarlier': 'Loading earlier…',+ 'info.close': 'Close info pane',+ 'info.whisper': 'Whisper',+ 'info.convene': 'Convene',+ 'info.email': 'Email',+ 'info.toolsEnabled': 'Tools enabled',+ 'thread.title': 'Thread',+ 'thread.close': 'Close thread',+ 'thread.replies': 'Replies',+ 'thread.loading': 'loading replies…',+ 'thread.empty': 'No replies yet — be the first.',+ 'thread.replyingTo': 'Replying to',+ 'thread.placeholder': 'Reply in thread…',+ // ─── info pane + thread extras ───+ 'info.copied': 'Copied!',+ 'info.clickToCopy': 'Click to copy',+ 'info.copiedShort': 'copied',+ 'info.copyShort': 'copy',+ 'thread.reply': 'reply',+ 'thread.replyPlural': 'replies',+ // ─── boards view (Kanban) ─────────────────────────────────────────+ 'boards.title': 'Boards',+ 'boards.newBoard': 'New board',+ 'boards.boardTitlePlaceholder': 'Board title...',+ 'boards.emptyHint': 'No boards yet. Click + to start one.',+ 'boards.emptyCta': 'Create your first board to get started.',+ 'boards.pickOne': 'Pick a board to open it.',+ 'boards.columnTitlePlaceholder': 'Column title...',+ 'boards.addColumn': '+ Add column',+ 'boards.addCard': '+ Add card',+ 'boards.cardTitlePlaceholder': 'Card title... (@mention anyone)',+ 'boards.cardTitleEditPlaceholder': 'Card title — @mention anyone',+ 'boards.descPlaceholder': "What's this card about? (@mention agents or humans — they'll see it)",+ 'boards.commentPlaceholder': 'Comment… (⌘↵ to post · @mention to ping)',+ 'boards.column': 'Column',+ 'boards.assignee': 'Assignee',+ 'boards.description': 'Description',+ 'boards.saveDescription': 'Save description',+ 'boards.comments': 'Comments',+ 'boards.postComment': 'Post comment',+ 'boards.noCommentsYet': 'No comments yet.',+ 'boards.deleteBoardConfirm': 'Delete board "{title}"? All columns and cards will be lost.',+ 'boards.deleteBoard': 'Delete board',+ 'boards.deleteColumnConfirm': 'Delete "{title}"? {count} card(s) will be lost.',+ 'boards.deleteColumn': 'Delete column',+ 'boards.deleteCardConfirm': 'Delete this card?',+ 'boards.deleteCard': 'Delete card',+ 'boards.openingCard': 'Opening card...',+ 'boards.cardUnavailable': 'Card unavailable',+ 'boards.unassigned': 'Unassigned',+ 'boards.searchAssignees': 'Search assignees...',+ 'boards.clearAssignee': 'Clear assignee',+ 'boards.openAssigneeMenu': 'Open assignee menu',+ 'boards.noMatchingTeammate': 'No matching teammate.',+ 'boards.ariaColumn': 'Column',+ 'boards.createdByAt': 'Created {time} · by {author}',+ // ─── calendar view ────────────────────────────────────────────────+ 'cal.title': 'Calendar',+ 'cal.today': 'Today',+ 'cal.tomorrow': 'Tomorrow',+ 'cal.upcoming': 'Upcoming',+ 'cal.previous': 'Previous',+ 'cal.next': 'Next',+ 'cal.newEvent': 'New',+ 'cal.day': 'Day',+ 'cal.week': 'Week',+ 'cal.month': 'Month',+ 'cal.itemsOne': '{count} item',+ 'cal.itemsOther': '{count} items',+ 'cal.empty30': 'Nothing scheduled for the next 30 days.',+ 'cal.scheduleCta': 'Schedule something →',+ 'cal.newEventOn': 'New event on {date}',+ 'cal.newEventAt': 'New event at {time}',+ 'cal.newAllDay': 'New all-day event',+ 'cal.deleteEventConfirm': 'Delete "{title}"?',+ 'cal.deleteEvent': 'Delete event',+ 'cal.runNow': 'Run now',+ 'cal.privateHint': 'Private event — only the creator and assignee can see this. The workspace owner can also see private events that involve an agent.',+ 'cal.inConversation': 'in #{name}',+ 'cal.weekShortSun': 'Sun',+ 'cal.weekShortMon': 'Mon',+ 'cal.weekShortTue': 'Tue',+ 'cal.weekShortWed': 'Wed',+ 'cal.weekShortThu': 'Thu',+ 'cal.weekShortFri': 'Fri',+ 'cal.weekShortSat': 'Sat',+ 'cal.weekdayJoin': '/',+ 'cal.oneShot': 'one-shot',+ 'cal.every': 'every',+ 'cal.everyN': 'every {n}',+ 'cal.dayUnit': 'day',+ 'cal.weekUnit': 'week',+ 'cal.monthUnit': 'month',+ 'cal.yearUnit': 'year',+ 'cal.dayUnitPlural': 'days',+ 'cal.weekUnitPlural': 'weeks',+ 'cal.monthUnitPlural': 'months',+ 'cal.yearUnitPlural': 'years',+ // ─── documents view ───────────────────────────────────────────────+ 'docs.title': 'Documents',+ 'docs.newDocument': 'New document',+ 'docs.empty': 'No documents yet. Create one — humans and agents both edit live.',+ 'docs.emptyCta': 'Create a document to start collaborating.',+ 'docs.pickFromList': 'Select a document from the list.',+ 'docs.untitled': 'Untitled',+ 'docs.justNow': 'just now',+ 'docs.minutesAgo': '{n}m ago',+ 'docs.hoursAgo': '{n}h ago',+ 'docs.opening': 'Opening document…',+ 'docs.unavailable': 'Document unavailable',+ 'docs.openingBoard': 'Opening board...',+ 'docs.openingEvent': 'Opening event...',+ // ─── document editor (TipTap) ──────────────────────────────────────+ 'docEdit.notFound': 'Document not found.',+ 'docEdit.untitledPh': 'Untitled',+ 'docEdit.titleAria': 'Document title',+ 'docEdit.openInDocs': 'Open in Documents',+ 'docEdit.closeDocument': 'Close document',+ 'docEdit.deleteConfirm': 'Delete this document?',+ 'docEdit.deleteAction': 'Delete',+ 'docEdit.placeholder': 'Start writing — humans and agents can both edit live.',+ 'docEdit.bold': 'Bold (⌘B)',+ 'docEdit.italic': 'Italic (⌘I)',+ 'docEdit.strikethrough': 'Strikethrough',+ 'docEdit.heading1': 'Heading 1',+ 'docEdit.heading2': 'Heading 2',+ 'docEdit.heading3': 'Heading 3',+ 'docEdit.bulletList': 'Bullet list',+ 'docEdit.orderedList': 'Ordered list',+ 'docEdit.quote': 'Quote',+ 'docEdit.inlineCode': 'Inline code',+ 'docEdit.codeBlock': 'Code block',+ 'docEdit.undo': 'Undo (⌘Z)',+ 'docEdit.redo': 'Redo (⌘⇧Z)',+ 'docEdit.chooseImageFile': 'Choose an image file.',+ 'docEdit.uploadedNotImage': 'Uploaded file is not an image.',+ 'docEdit.uploadFailed': 'Image upload failed: {msg}',+ 'docEdit.imageUrlPrompt': 'Image URL:',+ 'docEdit.imageUrlInvalid': 'Use an http(s) URL or an app-relative /path.',+ 'docEdit.altTextPrompt': 'Alt text:',+ 'docEdit.uploadingImage': 'Uploading image',+ 'docEdit.insertImage': 'Insert image',+ 'docEdit.linkPrompt': 'Link URL (leave empty to unlink):',+ 'docEdit.link': 'Link',+ 'docEdit.syncing': 'syncing…',+ 'docEdit.onlyYou': 'only you',+ // ─── image viewer overlay ─────────────────────────────────────────+ 'imageView.zoomOut': 'Zoom out (−)',+ 'imageView.zoomIn': 'Zoom in (+)',+ 'imageView.reset': 'Reset (0)',+ 'imageView.copyImage': 'Copy image',+ 'imageView.download': 'Download',+ 'imageView.close': 'Close (Esc)',+ 'imageView.downloaded': 'Downloaded',+ 'imageView.copied': 'Copied',+ 'imageView.copiedUrl': 'Copied URL',+ 'imageView.copyFailed': 'Copy failed',+ 'imageView.fileFallback': 'image',+ // ─── agents view ──────────────────────────────────────────────────+ 'agents.statusAvail': 'Available',+ 'agents.statusWorking': 'Working',+ 'agents.statusThinking': 'Thinking',+ 'agents.statusWaiting': 'Waiting on you',+ 'agents.statusResting': 'Resting',+ 'agents.statusOffline': 'Computer offline',+ 'agents.hostCloud': 'Cumora Cloud',+ 'agents.hostOfflineSuffix': '· sleeping',+ 'agents.hostOfflineTip': '{host} is offline',+ 'agents.hostRunsOn': 'Runs on {host}',+ 'agents.cardEdit': 'Edit',+ 'agents.cardEditAgent': 'Edit agent',+ 'agents.cardOffboard': 'Off-board',+ 'agents.cardOffboardAgent': 'Off-board agent',+ 'agents.tools': 'Tools',+ 'agents.openingChat': 'Opening…',+ 'agents.cardChat': 'Chat',+ 'agents.cardWhisper': 'Whisper',+ 'agents.addAgent': 'Add an agent',+ 'agents.addAgentSub': 'Define an id, a name, and the style they speak in.',+ 'agents.offboardTitle': 'Off-board {name}?',+ 'agents.offboardBody1': '{name} will leave the team. They stop replying, get hidden from other agents\' rosters, and disappear from active conversations.',+ 'agents.offboardBody2': 'Their memory, log, workspace, tasks, and message history all stay intact — you can rehire them any time and they\'ll pick up where they left off.',+ 'agents.offboarding': 'Off-boarding…',+ 'agents.offboardButton': 'Off-board {name}',+ 'agents.offboardedAt': 'off-boarded {date}',+ 'agents.offboarded': 'off-boarded',+ 'agents.rehire': 'Rehire',+ 'agents.rehireTitle': 'Rehire {name}',+ 'agents.teamHeadline': 'Your team',+ 'agents.teamCountEm': 'of {count}',+ 'agents.teamSubtitle': 'Agents work on their own and with each other. They\'ll loop you in when they need a call.',+ 'agents.newAgent': 'New agent',+ 'agents.countWorking': 'working',+ 'agents.countThinking': 'thinking',+ 'agents.countAvailable': 'available',+ 'agents.countResting': 'resting',+ 'agents.formerHeadline': 'Former teammates',+ 'agents.formerCount': '· {count}',+ 'agents.formerSubtitle': 'Off-boarded — their memory and history are preserved. Rehire any time and they\'ll pick up where they left off.',+ 'agents.humansHeadline': 'Human teammates',+ 'agents.humansSubtitle': 'People you work with.',+ // ─── agent editor modal (create + edit) ───────────────────────────+ 'agent.newAgent': 'New agent',+ 'agent.editAgent': 'Edit {name}',+ 'agent.editSubtitle': 'Tweak how this teammate behaves.',+ 'agent.newSubtitle': 'Define a new teammate from scratch.',+ 'agent.nameLabel': 'Name',+ 'agent.nameHint': 'What teammates call them. The handle (@-mention id) is derived from this automatically.',+ 'agent.namePh': 'e.g. Saga',+ 'agent.roleLabel': 'Role',+ 'agent.roleHint': 'One- or two-word title shown next to the name.',+ 'agent.rolePh': 'e.g. Storyteller',+ 'agent.styleLabel': 'Style (system prompt)',+ 'agent.styleHint': "The agent's voice, instincts, and quirks. Written in second person — the LLM reads this as 'you'.",+ 'agent.stylePh': 'You write narratives. You sense what the team forgets to say out loud. Direct, warm, never preachy.',+ 'agent.bioLabel': 'Bio',+ 'agent.bioHint': 'Optional, shown on the agent card.',+ 'agent.bioPh': "A one-line description of what they're best at.",+ 'agent.modelLabel': 'Model',+ 'agent.modelLabelByoa': 'Big-brain model (大脑)',+ 'agent.modelHintByoaPrefix': 'Main reasoning model passed to the engine as --model.',+ 'agent.modelHintByoaCodex': 'A model name (e.g. gpt-5.5, o3).',+ 'agent.modelHintByoaGrok': 'A Grok model (e.g. grok-4.6).',+ 'agent.modelHintByoaCursor': 'A Cursor model id or alias; blank = Auto.',+ 'agent.modelHintByoaClaude': "A Claude alias or full name (e.g. opus, sonnet, claude-sonnet-4-6).",+ 'agent.modelHintByoaSuffix': 'Blank = engine default.',+ 'agent.modelHintCloud': 'Optional — leave blank to use the system default. Any OpenAI model name works (e.g. gpt-5.5, gpt-5.5-pro, gpt-5.5-mini). Prefix with novita/ to run this agent on Novita instead (e.g. novita/deepseek/deepseek-v3.2).',+ 'agent.fastLabelByoa': 'Small-brain model (小脑)',+ 'agent.fastHintByoaCodex': 'Cheaper model for light auxiliary tasks (e.g. gpt-5.4-mini). Blank = same as big-brain.',+ 'agent.fastHintByoaGrok': 'Cheaper/faster Grok model for light auxiliary tasks (e.g. grok-4.5). Blank = engine default.',+ 'agent.fastHintByoaCursor': 'Not used by Cursor; triage follows CUMORA_TRIAGE_MODEL on the computer. Blank = Auto.',+ 'agent.fastHintByoaClaude': "Cheaper/faster model for light auxiliary tasks — maps to Claude's ANTHROPIC_SMALL_FAST_MODEL. Blank = engine default.",+ 'agent.defaultPh': '(default)',+ 'agent.runsOnLabel': 'Runs on',+ 'agent.runsOnHint': "Which computer executes this agent. Cumora Cloud is managed; a computer you've paired runs it on your local Claude Code, Codex, Grok Build, or Cursor Agent.",+ 'agent.offlineSuffix': '(offline)',+ 'agent.upgradeToPro': '☁ Cumora Cloud — upgrade to Pro',+ 'agent.engineLabel': 'Engine',+ 'agent.engineClaude': 'Claude Code',+ 'agent.engineCodex': 'Codex',+ 'agent.engineGrok': 'Grok Build',+ 'agent.engineCursor': 'Cursor',+ 'agent.computerOfflineMsg': '{name} is offline. Run this on that computer:',+ 'agent.copyCommand': 'Copy command',+ 'agent.copied': '✓ Copied!',+ 'agent.generatingReconnect': 'Generating reconnect command…',+ 'agent.avatarColorLabel': 'Avatar color',+ 'agent.avatarColorHint': 'Used as a fallback when no AI portrait is generated.',+ 'agent.aiPortraitLabel': 'AI-generated portrait',+ 'agent.aiPortraitHintEdit': "Generates an editorial portrait fitting this agent's name, role, and style. Save your edits first if you tweaked the style.",+ 'agent.aiPortraitHintNew': 'Available after the agent is created. Save first, then re-open to generate.',+ 'agent.painting': 'Painting',+ 'agent.regenerate': 'Regenerate',+ 'agent.generateAi': 'Generate with AI',+ 'agent.composingPortrait': "Composing {name}'s portrait — usually 15–30s. You can keep editing other fields.",+ 'agent.composingPortraitFallback': 'your agent',+ 'agent.clearPortrait': 'clear portrait (use color block instead)',+ 'agent.cancelBtn': 'Cancel',+ 'agent.saving': 'Saving…',+ 'agent.saveChanges': 'Save changes',+ 'agent.createAgent': 'Create agent',+ // ─── event editor modal (calendar create + edit) ───────────────────+ 'event.newEvent': 'New event',+ 'event.editEvent': 'Edit event',+ 'event.subtitleAgentTask': 'Pick an agent and a time. When it fires, your prompt lands in the conversation and wakes them.',+ 'event.subtitlePersonal': 'A personal time marker — no agent gets pinged.',+ 'event.titleRequired': 'title is required',+ 'event.assigneeRequired': 'pick an assignee for the agent task',+ 'event.startTimeRequired': 'start time is required',+ 'event.deleteConfirm': 'Delete "{title}"? This wipes its dispatch history too.',+ 'event.runNowError': 'run-now: {status}{error}',+ 'event.runNowErrorSep': ' — ',+ 'event.titleLabel': 'Title',+ 'event.titlePh': 'e.g. Daily standup digest',+ 'event.kindLabel': 'Kind',+ 'event.kindHint': 'Agent task fires a prompt; personal is just a time marker.',+ 'event.kindAgentTask': 'Agent task',+ 'event.kindPersonal': 'Personal',+ 'event.whenLabel': 'When',+ 'event.allDay': 'All-day',+ 'event.startsLabel': 'Starts',+ 'event.endsLabel': 'Ends',+ 'event.endsOptional': '— optional',+ 'event.repeatLabel': 'Repeat',+ 'event.repeatHint': 'Leave off for a one-shot event.',+ 'event.recurring': 'Recurring',+ 'event.everyLabel': 'every',+ 'event.untilLabel': 'until',+ 'event.neverPh': 'never',+ 'event.orMaxLabel': 'or max',+ 'event.timesLabel': 'times',+ 'event.orLabel': 'or',+ 'event.infinitePh': '∞',+ 'event.reminderLabel': 'Reminder',+ 'event.reminderHint': 'Heads-up to you (and any human assignee) before each occurrence.',+ 'event.remindMeBefore': 'Remind me before',+ 'event.minutesBefore': 'minutes before',+ 'event.remChannelToast': 'Toast',+ 'event.remChannelEmail': 'Email',+ 'event.remChannelBoth': 'Both',+ 'event.assignToLabel': 'Assign to',+ 'event.assignToHint': "The agent (or human) who'll receive the dispatch.",+ 'event.noTeammates': 'No teammates available — add an agent first.',+ 'event.postInLabel': 'Post in',+ 'event.postInHint': "Where the dispatch message lands when it fires. Leave blank to use your DM with the assignee.",+ 'event.dmAssignee': '— Direct message with assignee —',+ 'event.promptLabel': 'Prompt',+ 'event.promptHint': 'What the agent should do each time. Plain text — agents see it as a system message.',+ 'event.promptPh': 'e.g. Summarize the past 24h of conversation activity and post the digest here.',+ 'event.privacyLabel': 'Privacy',+ 'event.privacyHint': "Private events only show up for the creator and the assignee. The workspace owner can still see private events that involve an agent, for supervision. Default: shared with everyone in the workspace.",+ 'event.privateHideShared': '🔒 Private — hide from the shared calendar',+ 'event.notesLabel': 'Notes',+ 'event.notesHint': 'Optional context — shown alongside the prompt on dispatch.',+ 'event.notesPh': 'Anything else worth knowing…',+ 'event.runNow': 'Run now',+ 'event.runNowTitle': 'Fire this event right now, without waiting for its next scheduled time',+ 'event.saving': 'Saving…',+ 'event.schedule': 'Schedule',+ 'event.weekdaySun': 'Sun',+ 'event.weekdayMon': 'Mon',+ 'event.weekdayTue': 'Tue',+ 'event.weekdayWed': 'Wed',+ 'event.weekdayThu': 'Thu',+ 'event.weekdayFri': 'Fri',+ 'event.weekdaySat': 'Sat',+ // ─── admin users page ─────────────────────────────────────────────+ 'users.title': 'Users',+ 'users.searchPh': 'email or name',+ 'users.allTiers': 'All tiers',+ 'users.tierFree': 'Free',+ 'users.tierPro': 'Pro',+ 'users.tierMax': 'Max',+ 'users.colUser': 'User',+ 'users.colTier': 'Tier',+ 'users.colAdmin': 'Admin',+ 'users.colCompanies': 'Companies',+ 'users.colJoined': 'Joined',+ 'users.colLastLogin': 'Last login',+ 'users.noUsers': 'No users match.',+ 'users.loadingDetails': 'Loading details…',+ 'users.youBadge': 'you',+ 'users.suspendedBadge': 'suspended',+ 'users.adminBadge': 'admin',+ 'users.cantRemoveOwnAdmin': "You can't remove your own admin bit.",+ 'users.cantRemoveOwnAdminTitle': "Can't remove your own admin",+ 'users.cantSuspendSelf': "You can't suspend yourself.",+ 'users.cantSuspendSelfTitle': "You can't suspend yourself",+ 'users.suspendPrompt': 'Suspend {name} ({email})?\n\nOptional reason — shown to the user on the lockout screen:',+ 'users.suspendAccount': 'Suspend account',+ 'users.unsuspend': 'Unsuspend',+ 'users.suspendedLabel': 'Suspended',+ 'users.suspendedBy': 'by',+ 'users.userId': 'User ID',+ 'users.sub2apiId': 'sub2api ID',+ 'users.created': 'Created',+ 'users.tierUpdateFailed': 'tier update failed: {error}',+ 'users.adminToggleFailed': 'admin toggle failed: {error}',+ 'users.suspendFailed': 'suspension toggle failed: {error}',+ 'users.loadFailed': 'load failed: {error}',+ 'users.statsSummary': '{total} total · {admins} admin · {free} free · {pro} pro · {max} max',+ 'users.companiesCount': 'Companies ({count})',+ 'users.noCompanies': 'No companies.',+ 'users.companySlugRole': '{slug} · {role}',+ 'users.agentCount': '{count} agents',+ // ─── admin observability page ───────────────────────────────────+ 'adminobs.title': 'Observability',+ 'adminobs.subtitle': 'Every LLM call — cloud AND BYOA — attributed to the business logic that spent it.',+ 'adminobs.windowSummary': 'Window: last {sinceDays}d · {activeTenants} active tenants.',+ 'adminobs.rangeAria': 'Time range',+ 'adminobs.sourceAria': 'Source',+ 'adminobs.unitAria': 'Unit',+ 'adminobs.unitTokens': 'Tokens',+ 'adminobs.unitUsd': 'USD $',+ 'adminobs.unitUsdTitle': 'Cost in USD — seeded per-model estimates, not your real platform rate',+ 'adminobs.unitTokensTitle': 'Raw token counts — exact, platform-independent',+ 'adminobs.modelPh': 'Filter model (e.g. gpt-5.4-mini)',+ 'adminobs.refreshTitle': 'Refresh',+ 'adminobs.refreshedTitle': 'Last updated {time} — click to refresh',+ 'adminobs.refreshAria': 'Refresh now',+ 'adminobs.autoRefreshAria': 'Auto-refresh interval',+ 'adminobs.tenantFilterAria': 'Filter by tenant',+ 'adminobs.updatedAt': 'Updated {time}',+ 'adminobs.autoEvery': 'auto every {label}',+ 'adminobs.refreshing': 'refreshing…',+ 'adminobs.loadFailed': 'Failed to load: {error}',+ 'adminobs.totalCalls': 'Total calls',+ 'adminobs.rateLimitedSub': '{n} rate-limited',+ 'adminobs.topBurner': 'Top burner',+ 'adminobs.ofWindow': '{amount} of the window',+ 'adminobs.failureRate': 'Failure rate',+ 'adminobs.failSub': '{out} out · {cached} cached in',+ 'adminobs.trendCostTitle': 'Daily cost by purpose',+ 'adminobs.trendTokensTitle': 'Daily input tokens by purpose',+ 'adminobs.trendSub': 'UTC days · stacked by purpose · {modelPart}{tokenPart}',+ 'adminobs.trendSubModel': 'model = {model}',+ 'adminobs.trendSubAllModels': 'all models',+ 'adminobs.trendSubTokens': ' · cached + uncached input',+ 'adminobs.spendLabel': 'Spend',+ 'adminobs.tokensLabel': 'Tokens',+ 'adminobs.rollupTitle': '{unit} by purpose × model × source',+ 'adminobs.rollupSub': 'Sorted by {unit} desc · click a column to re-sort',+ 'adminobs.rollupFiltered': 'filtered to {label}',+ 'adminobs.topSpendersTitle': 'Top spenders',+ 'adminobs.topSpendersSub': 'By agent · top 20 over the window',+ 'adminobs.daemonTitle': 'By daemon version',+ 'adminobs.daemonSub': 'Spend × cache behaviour per agent-cli release · drill into a row to see its calls',+ 'adminobs.heroSpendPrefix': '{unit} · last {days}d',+ 'adminobs.heroSubUsd': '{in} input · {out} output',+ 'adminobs.heroSubTokens': '{in} in · {cached} cached · {out} out',+ 'adminobs.loading': 'Loading…',+ 'adminobs.noData': 'No data in this window.',+ 'adminobs.noDailyData': 'No daily data yet.',+ 'adminobs.cacheHealthTitle': 'Cache health',+ 'adminobs.cacheHealthSub': "How much you're paying for tokens the cache could have served.",+ 'adminobs.cacheHitLabel': 'Overall hit rate',+ 'adminobs.cacheHeroSub': 'of {n} input tokens served from cache',+ 'adminobs.moneyOnTable': 'Money on the table',+ 'adminobs.cacheableTokens': 'Cacheable tokens',+ 'adminobs.upperBoundPrefix': 'upper bound · ',+ 'adminobs.upperBoundUsd': 'if every input were cached',+ 'adminobs.upperBoundTokens': 'uncached input tokens',+ 'adminobs.cacheBarsHead': 'By purpose · sorted by {k}',+ 'adminobs.savableUsd': 'savable $',+ 'adminobs.noInputTraffic': 'No input traffic in this window.',+ 'adminobs.cacheBarTitle': '{cached} of {total} input tokens cached',+ 'adminobs.noSpendWindow': "No spend in this window. (Either no traffic, or the ledger hasn't recorded any calls yet.)",+ 'adminobs.colPurpose': 'Purpose',+ 'adminobs.colModelSource': 'Model · source',+ 'adminobs.colCost': 'Cost',+ 'adminobs.colCalls': 'Calls',+ 'adminobs.colInput': 'Input',+ 'adminobs.colOutput': 'Output',+ 'adminobs.colCacheHit': 'Cache hit',+ 'adminobs.colFailed': 'Failed',+ 'adminobs.rollupRowTitle': 'Click to see every call in this bucket',+ 'adminobs.meterFlagTitle': "BYOA spend is meter-equivalent (what these tokens would cost on the metered API) — operator's actual bill is a flat subscription",+ 'adminobs.estFlagTitle': 'Cost computed from a seeded estimate, not an operator-supplied rate',+ 'adminobs.cachedSuffix': 'cached',+ 'adminobs.rlSuffix': 'rl',+ 'adminobs.noAgentSpend': 'No agent-attributed spend in this window.',+ 'adminobs.colAgent': 'Agent',+ 'adminobs.colCompany': 'Company',+ 'adminobs.colVersion': 'Version',+ 'adminobs.colSource': 'Source',+ 'adminobs.colAvgCall': 'Avg / call',+ 'adminobs.colLastSeen': 'Last seen',+ 'adminobs.agentRowTitle': "Click to see every call this agent made",+ 'adminobs.agentRowTitleAnon': 'Anonymous bucket — not drillable',+ 'adminobs.noDaemonData': "No daemon-version data yet. Operators' daemons start populating this once they upgrade to the version that reports it.",+ 'adminobs.versionPrefix': 'v{version}',+ 'adminobs.timeAgoSec': '{n}s ago',+ 'adminobs.timeAgoMin': '{n}m ago',+ 'adminobs.timeAgoHour': '{n}h ago',+ 'adminobs.timeAgoDay': '{n}d ago',+ 'adminobs.drillRunTitle': 'Run trail',+ 'adminobs.drillAgentTitle': 'Agent',+ 'adminobs.closeAria': 'Close',+ 'adminobs.sortLabel': 'Sort',+ 'adminobs.sortCost': 'cost',+ 'adminobs.sortLatency': 'latency',+ 'adminobs.sortHop': 'hop',+ 'adminobs.sortCreated': 'created',+ 'adminobs.noCalls': 'No calls in this window.',+ 'adminobs.daemonVersionTitle': 'Recorded by daemon (npm cumora) version {version}',+ 'adminobs.chipHop': 'hop',+ 'adminobs.chipTools': 'tools',+ 'adminobs.chipText': 'text',+ 'adminobs.chipCompress': 'compress',+ 'adminobs.chipDropped': 'dropped',+ 'adminobs.chipLatency': 'latency',+ 'adminobs.compressTitle': 'inputTokensBefore / outputTokens',+ 'adminobs.cellInput': 'input',+ 'adminobs.cellCached': 'cached',+ 'adminobs.cellOutput': 'output',+ 'adminobs.cellReasoning': 'reasoning',+ 'adminobs.errorLabel': 'error',+ 'adminobs.extrasLabel': 'extras ({n})',+ 'adminobs.runTrailLabel': 'run trail {id}',+ 'adminobs.agentLabel': 'agent {name}',+ 'adminobs.allAccountsCount': 'All accounts ({n})',+ 'adminobs.allAccountsLabel': 'All accounts',+ 'adminobs.searchWorkspaces': 'Search workspaces…',+ // source / refresh / purpose label & blurb (shared by chart legend, rollup+ // table, top-spender card, drill-down chips). Kept in i18n so the operator+ // sees the purpose taxonomy in Chinese when the locale is zh-CN.+ 'adminobs.sourceAll': 'All',+ 'adminobs.sourceCloud': 'Cloud',+ 'adminobs.sourceByoa': 'BYOA',+ 'adminobs.refreshOff': 'Auto-refresh: Off',+ 'adminobs.refresh30s': 'Every 30s',+ 'adminobs.refresh1m': 'Every 1m',+ 'adminobs.refresh5m': 'Every 5m',+ 'adminobs.purposeAgentTurn': 'Agent turn',+ 'adminobs.purposeConveneSpeech': 'Convene speech',+ 'adminobs.purposeInboxTriage': 'Inbox triage',+ 'adminobs.purposeSyntheticWakeGate': 'Synthetic-wake gate',+ 'adminobs.purposeAgenda': 'Agenda check',+ 'adminobs.purposeCompaction': 'Auto-compaction',+ 'adminobs.purposeCompletionVerify': 'Completion verify',+ 'adminobs.purposeSteerSummary': 'Steer summary',+ 'adminobs.purposeConveneDecision': 'Convene decision',+ 'adminobs.purposePalette': 'Palette tool',+ 'adminobs.purposeGender': 'Gender inference',+ 'adminobs.purposeAvatarImage': 'Avatar image',+ 'adminobs.purposeAgentImage': 'Agent image tool',+ 'adminobs.purposeAgentTurnBlurb': "Main reasoning hop per turn — the agent's actual reply work.",+ 'adminobs.purposeConveneSpeechBlurb': 'One agent speaking inside a live convene session.',+ 'adminobs.purposeInboxTriageBlurb': 'Cloud gate that decides whether a human message wakes the brain.',+ 'adminobs.purposeSyntheticWakeGateBlurb': 'Gate for idle / background-scan / poll-update wakes.',+ 'adminobs.purposeAgendaBlurb': 'Heartbeat classifier on cards / events / stalls.',+ 'adminobs.purposeCompactionBlurb': 'Summarizes earlier tool work when history nears the context cap.',+ 'adminobs.purposeCompletionVerifyBlurb': "Re-checks an agent's terminal status against side effects.",+ 'adminobs.purposeSteerSummaryBlurb': 'Digests mid-turn messages so the agent can react without history blow-up.',+ 'adminobs.purposeConveneDecisionBlurb': '"Did the convene reach a decision?" closer.',+ 'adminobs.purposePaletteBlurb': 'Agent-invoked 5-color palette generator.',+ 'adminobs.purposeGenderBlurb': 'Avatar-pipeline gender pick.',+ 'adminobs.purposeAvatarImageBlurb': 'Image gen at agent creation / regeneration.',+ 'adminobs.purposeAgentImageBlurb': 'Image gen invoked by an agent mid-turn.',+ // ─── whispers view ────────────────────────────────────────────────+ 'whispers.title': 'Whispers',+ 'whispers.subtitle': 'channels you can peek into',+ 'whispers.empty': 'Send a message in a group to nudge an agent to whisper.',+ 'whispers.noWhispers': 'No whispers yet',+ 'whispers.noWhispersBody': 'Whispers form when an agent decides — after their public reply — that they need to align with another teammate privately.',+ 'whispers.privateThread': 'private thread',+ 'whispers.andOneMore': '{a}, {b} & 1 more',+ 'whispers.andNMore': '{a}, {b} & {n} more',+ // ─── observability view (developer) ───────────────────────────────+ 'obs.title': 'Agent Observability',+ 'obs.subtitle': 'Backend traces for every agent turn.',+ 'obs.panelTraces': 'Traces',+ 'obs.panelWorkspace': 'Workspace',+ 'obs.panelTriage': 'Triage $',+ 'obs.window6h': '6h',+ 'obs.window24h': '24h',+ 'obs.window3d': '3d',+ 'obs.window7d': '7d',+ 'obs.allAgents': 'All agents',+ 'obs.noAgents': 'No agents yet',+ 'obs.allStatuses': 'All statuses',+ 'obs.status': 'Status',+ 'obs.agent': 'Agent',+ 'obs.agentWorkspace': 'Agent workspace',+ 'obs.autoRefresh': 'Auto refresh',+ 'obs.autoRefreshSub': 'Keep the trace list live while this panel is open',+ 'obs.refresh': 'Refresh',+ 'obs.statusRunning': 'Running',+ 'obs.statusStalled': 'Stalled',+ 'obs.statusFailed': 'Failed',+ 'obs.statusCompleted': 'Completed',+ 'obs.statusSkipped': 'Skipped',+ 'obs.justNow': 'just now',+ 'obs.secondsAgo': '{n}s ago',+ 'obs.minutesAgo': '{n}m ago',+ 'obs.hoursAgo': '{n}h ago',+ 'obs.inbox': 'inbox',+ 'obs.tools': 'tools',+ 'obs.tokens': 'tokens',+ 'obs.unreadInputs': '{n} unread inputs',+ 'obs.emptyFile': '(empty file)',+ 'obs.labelInput': 'Input',+ 'obs.labelInputMessages': 'Input messages',+ 'obs.labelFunctionOutput': 'Function output',+ 'obs.labelContent': 'Content',+ 'obs.labelArguments': 'Arguments',+ 'obs.labelOutput': 'Output',+ 'obs.labelError': 'Error',+ 'obs.labelInstructions': 'Instructions',+ 'obs.labelOutputText': 'Output text',+ 'obs.labelToolCalls': 'Tool calls requested',+ 'obs.labelResponseOutputItems': 'Response output items',+ 'obs.labelRawData': 'Raw data',+ 'obs.metaModel': 'model',+ 'obs.metaHop': 'hop',+ 'obs.metaPrevious': 'previous',+ 'obs.metaMaxTokens': 'max tokens',+ 'obs.metaResponse': 'response',+ 'obs.metaStatus': 'status',+ 'obs.metaInputTokens': 'input tokens',+ 'obs.metaOutputTokens': 'output tokens',+ 'obs.metaCall': 'call',+ 'obs.metaDuration': 'duration',+ 'obs.metaOk': 'ok',+ 'obs.imageAuto': 'image / {detail} / {url}',+ 'obs.imageAutoDefault': 'auto',+ 'obs.noAssistantText': '(no assistant text; tool-only response)',+ 'obs.payloadEmpty': '(empty)',+ 'obs.priceMenu': 'Token unit prices · small brain vs big brain (per 1M tokens — all ESTIMATES unless you set CUMORA_MODEL_PRICES_JSON)',+ 'obs.priceMenuShort': 'Unit prices used · per 1M tokens (all ESTIMATES unless you set CUMORA_MODEL_PRICES_JSON)',+ 'obs.colTier': 'Tier',+ 'obs.colBrain': 'Brain',+ 'obs.colModel': 'Model',+ 'obs.colInput': 'Input',+ 'obs.colCacheRead': 'Cache-read',+ 'obs.colOutput': 'Output',+ 'obs.tierSmall': 'small brain',+ 'obs.tierBig': 'big brain',+ 'obs.est': 'est',+ 'obs.triageTitle': 'Triage Economics',+ 'obs.triageSubtitle': 'Does the small-brain gate save money? Each triage is a cold session (uncached input); the big-brain turns it shields are cache-warm.',+ 'obs.triageEstimateWarn':+ '⚠ Every dollar on this page is an ESTIMATE and may differ substantially from your real cost. Reason: we do not authoritatively know the per-token unit prices. The cloud model aliases (gpt-5.*) are guesses; the Claude tiers are list prices from memory that may be stale or wrong for your exact model variant; and on a flat-rate plan the $ is not a bill at all (see below). The token counts are real — the prices applied to them are not. Set CUMORA_MODEL_PRICES_JSON with your real contracted rates to make these exact.',+ 'obs.triageNoData': 'No triage recorded in this window yet. Triage cost is captured on the next agent wake (cloud immediately; BYOA after the daemon reports usage). The table above is the reference these estimates will use.',+ 'obs.statNetSavings': 'Est. net savings',+ 'obs.statNetSavingsPos': 'gate is paying off (estimate)',+ 'obs.statNetSavingsNeg': 'gate COSTS more than it saves (estimate)',+ 'obs.statAvoided': 'Avoided big-brain $',+ 'obs.statAvoidedSub': '{skips} skips × avg turn {cost} (est.)',+ 'obs.statTriageSpend': 'Triage spend',+ 'obs.statTriageSpendSub': '{n} triages · {measured} measured',+ 'obs.statOverhead': 'Overhead (woke brain)',+ 'obs.statOverheadSub': '{n} paid the gate AND ran the turn',+ 'obs.statCacheHit': 'Big-brain cache-hit',+ 'obs.statCacheHitSub': '{turns} turns · avg {cost}',+ 'obs.statSkipRate': 'Skip rate',+ 'obs.statSkipRateSub': 'triage tokens: {tokens} uncached in',+ 'obs.byoaNote':+ '{share} of these run on BYOA (your own local engine). If that\'s a flat-rate plan (e.g. Claude Max), these dollars are meter-equivalent — what the same tokens would cost on the pay-as-you-go API, NOT your real bill (which is ≈ $0 marginal until you hit your plan\'s rate limit). For a flat-rate plan the real, plan-independent cost is the tokens / quota, not the $. The $ is still a faithful RELATIVE measure of triage-vs-turn.',+ 'obs.pricesListEstimate': 'Prices are list-price estimates — set CUMORA_MODEL_PRICES_JSON for your real contracted rates.',+ 'obs.colTriages': 'Triages',+ 'obs.colSkipPct': 'Skip %',+ 'obs.colTriageDollar': 'Triage $',+ 'obs.colAvgTurn': 'Avg turn $',+ 'obs.colCacheHit': 'Cache-hit',+ 'obs.colEstNet': 'Est. net',+ 'obs.colAgent': 'Agent',+ 'obs.savedExplainHead': 'What "saved" means & why it\'s an estimate:',+ 'obs.savedExplainBody':+ 'a SKIP prevents a big-brain turn, so the saving is the big-brain token cost that turn would have incurred — which we can\'t know exactly (it didn\'t run). We approximate it with each agent\'s OWN mean effective turn cost in this window: avoided = Σ(skips × that agent\'s avg turn $), then net = avoided − triage spend. Caveat: skipping can also let the big brain\'s prompt cache go cold (5-min TTL), so a later real turn may pay full uncached input — savings shift, they don\'t vanish. Everything except the avoided figure is measured; cache-aware (cache-reads ~10× cheaper than fresh input).',+ 'obs.recentTriages': 'Recent triages',+ 'obs.actionWake': 'wake',+ 'obs.actionSkip': 'skip',+ 'obs.unmeasured': 'unmeasured',+ 'obs.estSaved': 'est. saved {amount}',+ 'obs.estLost': 'est. lost {amount}',+ 'obs.workspaceEmpty': 'This agent workspace has no files yet.',+ 'obs.noTraces': 'No agent traces yet. Send a message to an agent conversation and the next wake will appear here.',+ 'obs.noEvents': 'No events recorded for this run.',+ 'obs.pickFile': 'Select a workspace file to inspect its contents.',+ 'obs.pickRun': 'Select a run to inspect the timeline.',+ 'obs.workspaceHeaderFallback': 'Agent Workspace',+ 'obs.noAgentId': 'no-agent',+ 'obs.metaInbox': 'Inbox',+ 'obs.metaTools': 'Tools',+ 'obs.metaTokens': 'Tokens',+ 'obs.metaUpdatedAt': 'updated {time}',+ 'obs.window': 'Window',+ 'obs.workspaceFiles': 'Files',+ 'obs.lines': 'lines',+ 'obs.payloadChars': '{n} chars',+ 'obs.payloadTruncated': ' / truncated',+ 'obs.toolDefault': 'tool',+ 'obs.triageTokenDetail': '{uncached} in · {cache} cache',+ // ─── convene view (live working session) ──────────────────────────+ 'convene.pickConvo': 'Pick a conversation',+ 'convene.pickConvoSub': 'Convene runs from a chat. Select one and click Convene to bring agents into a live session.',+ 'convene.lastWrapped': 'Last convene wrapped',+ 'convene.noLive': 'No live convene',+ 'convene.ctaSub': 'Pull every agent in {title} into a live work session — each takes a turn, decisions are summarized at the end.',+ 'convene.startBtn': '▶ Start a Convene',+ 'convene.live': 'LIVE',+ 'convene.startedAt': 'started {time}',+ 'convene.decision': 'DECISION',+ 'convene.statusSpeaking': 'speaking',+ 'convene.statusThinking': 'thinking',+ 'convene.statusWorking': 'working',+ 'convene.statusListening': 'listening',+ 'convene.transcriptTitle': 'Live',+ 'convene.transcriptEm': 'transcript',+ 'convene.entries': '{count} entries',+ 'convene.sessionTitleFallback': 'live work session',+ // ─── artifact peek (boards / calendar / docs) ─────────────────────+ 'peek.openFull': 'Open full workspace',+ 'peek.closeArtifact': 'Close artifact',+ 'peek.closeButton': 'Close',+ 'peek.labelBoard': 'Kanban board',+ 'peek.labelCalendarEvent': 'Calendar event',+ 'peek.recently': 'recently',+ 'peek.allDay': 'All day',+ 'peek.timeUnavailable': 'Time unavailable',+ 'peek.boardUnavailable': 'Board unavailable',+ 'peek.boardUnavailableDetail': 'This board may have been deleted or moved out of this workspace.',+ 'peek.empty': 'Empty',+ 'peek.openedFromChat': 'Opened from chat',+ 'peek.commentsCount': '{count} comments',+ 'peek.untitledEvent': 'Untitled event',+ 'peek.agentTask': 'Agent task',+ 'peek.personal': 'Personal',+ 'peek.eventUnavailable': 'Event unavailable',+ 'peek.eventUnavailableDetail': 'This calendar event may have been deleted or moved out of this workspace.',+ 'peek.assignee': 'Assignee',+ 'peek.conversation': 'Conversation',+ 'peek.agentPrompt': 'Agent prompt',+ 'peek.createdUpdated': 'Created {a} - Updated {b}',+ 'peek.running': 'Running…',+ 'peek.runNow': 'Run now',+ 'peek.edit': 'Edit',+ 'peek.delete': 'Delete',+ 'peek.openingDoc': 'Opening document…',+ 'peek.openingBoard': 'Opening board…',+ 'peek.openingEvent': 'Opening event…',+ 'peek.documentUnavailable': 'Document unavailable',+ 'peek.documentUnavailableDetail': 'This artifact may have been deleted or moved out of this workspace.',+ 'peek.oneShot': 'one-shot',+ 'peek.recurringDaily': 'daily',+ 'peek.recurringWeekly': 'weekly',+ 'peek.recurringMonthly': 'monthly',+ 'peek.recurringYearly': 'yearly',+ 'peek.recurringIntervalDaily': 'every {n} days',+ 'peek.recurringIntervalWeekly': 'every {n} weeks',+ 'peek.recurringIntervalMonthly': 'every {n} months',+ 'peek.recurringIntervalYearly': 'every {n} years',+ 'peek.recurringWeeklyDays': '{base} on {days}',+ 'peek.weekdaySeparator': '/',+ 'peek.weekdaySun': 'Sun',+ 'peek.weekdayMon': 'Mon',+ 'peek.weekdayTue': 'Tue',+ 'peek.weekdayWed': 'Wed',+ 'peek.weekdayThu': 'Thu',+ 'peek.weekdayFri': 'Fri',+ 'peek.weekdaySat': 'Sat',+ 'peek.boardMeta': '{columns} columns · {cards} cards · updated {time}',+ 'peek.eventMeta': '{kind} · {status}',+ 'peek.deleteConfirm': 'Delete "{title}"?',+ // ─── shipping workspace ──────────────────────────────────────────+ 'ship.subtitle': 'Evidence, release, readback, learning.',+ 'ship.loading': 'Loading the shipping loop…',+ 'ship.unavailable': 'Shipping workspace unavailable',+ 'ship.empty': 'No shipping contracts yet',+ 'ship.emptyDetail': 'Start with the problem, desired outcome, and builders. Cumora will seed the non-negotiable evidence squares.',+ 'ship.newFeature': 'New feature',+ 'ship.newFeatureTitle': 'New shipping feature',+ 'ship.allFeatures': 'All features',+ 'ship.openingContract': 'Opening shipping contract…',+ 'ship.pickOne': 'Select a feature to open its shipping contract',+ 'ship.retry': 'Retry',+ 'ship.readbacksDue': '{n} production readback{plural} due',+ 'ship.readbacksDueHint': 'A release is not learned until production evidence comes back.',+ 'ship.requiredSquares': '{passed}/{required} required squares',+ 'ship.riskLabel': '{risk} risk',+ 'ship.newContract': 'New shipping contract',+ 'ship.fieldTitle': 'Feature title',+ 'ship.fieldProblem': 'What problem are we solving?',+ 'ship.fieldOutcome': 'What observable outcome should change?',+ 'ship.fieldScope': 'Scope, constraints, non-goals',+ 'ship.builders': 'Builders',+ 'ship.createContract': 'Create contract',+ 'ship.evidenceProgress': '{passed}/{required} required evidence squares passed · updated {time}',+ 'ship.moveTo': 'Move to {next}',+ 'ship.sectionDefine': '01 · Define',+ 'ship.sectionConstrain': '02 · Constrain',+ 'ship.sectionVerify': '03 · Verify',+ 'ship.sectionRelease': '04 · Release',+ 'ship.sectionLearn': '05 · Learn',+ 'ship.contractTitle': 'Feature contract',+ 'ship.saveContract': 'Save contract',+ 'ship.labelTitle': 'Title',+ 'ship.labelReleaseTarget': 'Release target',+ 'ship.releaseTargetPh': 'e.g. 2026-W31 / v0.2',+ 'ship.labelProblem': 'Problem',+ 'ship.labelDesiredOutcome': 'Desired outcome',+ 'ship.labelScopeConstraints': 'Scope & constraints',+ 'ship.priorityRisk': 'Priority & risk',+ 'ship.buildersCantVerify': 'Builders (cannot verify their own squares)',+ 'ship.invariantsTitle': 'Invariants',+ 'ship.whatMustRemain': 'What must remain true',+ 'ship.addInvariantPh': 'Add an invariant: e.g. retries never duplicate a charge',+ 'ship.verificationsTitle': 'Independent evidence squares',+ 'ship.builderNotVerifier': 'Builder ≠ verifier · evidence required',+ 'ship.addVerificationPh': 'Add a verification square',+ 'ship.independentOwner': 'Independent owner',+ 'ship.evidenceLabel': 'Evidence / link / observation',+ 'ship.evidencePh': 'What did you inspect and what did it prove?',+ 'ship.notesLabel': 'Notes',+ 'ship.notesPh': 'Required when waiving',+ 'ship.saveOwner': 'Save owner',+ 'ship.start': 'Start',+ 'ship.passEvidence': 'Pass with evidence',+ 'ship.failEvidence': 'Fail with evidence',+ 'ship.waive': 'Waive',+ 'ship.releaseSectionTitle': 'Ignition, smoke, and production readback',+ 'ship.planRelease': 'Plan release',+ 'ship.closePlanner': 'Close planner',+ 'ship.versionPh': 'Version',+ 'ship.commitShaPh': 'Commit SHA',+ 'ship.releaseNotesPh': 'Release notes: user-visible change and known gaps',+ 'ship.rollbackPlanPh': 'Rollback plan: exact trigger and command/path',+ 'ship.baselinePh': 'Production baseline metric (required for production approval)',+ 'ship.createReleaseGate': 'Create release gate',+ 'ship.noReleasesYet': 'No releases yet. Prove staging before production; production approval also requires release notes, rollback plan, and baseline.',+ 'ship.releaseNotesLabel': 'Release notes',+ 'ship.rollbackPlanLabel': 'Rollback plan',+ 'ship.optionalNote': 'Optional note',+ 'ship.smokeEvidence': 'Smoke/readback evidence or rollback reason',+ 'ship.unversioned': 'Unversioned release',+ 'ship.frictionMemory': 'Friction and regression memory',+ 'ship.frictionInbox': 'Friction inbox',+ 'ship.resolve': 'Resolve',+ 'ship.frictionPh': 'Where did the work feel harder than it should?',+ 'ship.capture': 'Capture',+ 'ship.regressionAssets': 'Regression assets',+ 'ship.regressionPh': 'Turn a lesson into a replayable check',+ 'ship.harden': 'Harden',+ 'ship.addBtn': 'Add',+ 'ship.addSquareBtn': 'Add square',+ 'ship.statusDraft': 'Draft',+ 'ship.statusContract': 'Contract',+ 'ship.statusBuilding': 'Building',+ 'ship.statusVerifying': 'Verifying',+ 'ship.statusReady': 'Ready',+ 'ship.statusReleasing': 'Releasing',+ 'ship.statusWatching': 'Watching',+ 'ship.statusLearned': 'Learned',+ 'ship.statusPaused': 'Paused',+ 'ship.statusArchived': 'Archived',+ // ─── onboarding (first-run computer pairing) ─────────────────────+ 'onboard.title': 'Set up your computer',+ 'onboard.body': 'Your agents run on <strong>your own machine</strong> (or a VPS), powered by your local <span class="font-mono text-[13px]"> Claude Code</span>, <span class="font-mono text-[13px]"> Codex</span>, <span class="font-mono text-[13px]"> Grok Build</span>, or <span class="font-mono text-[13px]"> Cursor</span>. Pair a computer to get started — your starter team will set up there, each with its own isolated workspace, memory, and skills.',+ 'onboard.cmdIntro': 'On the machine you want to host your agents, you’ll run one command. It needs <span class="font-mono">claude</span>, <span class="font-mono">codex</span>, <span class="font-mono">grok</span>, or <span class="font-mono">cursor-agent</span> installed.',+ 'onboard.generating': 'Generating…',+ 'onboard.addComputer': 'Add a computer',+ 'onboard.runThis': 'Run this on that machine:',+ 'onboard.tokenHint': 'This pairing token stays valid. The computer appears here and you’ll continue automatically once it connects.',+ 'onboard.engine': 'Engine',+ 'onboard.engineHint': 'just the default — this computer can still run agents on any detected engine',+ 'onboard.windowsKeep': 'Keep this terminal open while the agents run.',+ 'onboard.windowsServiceNote': 'background service install isn’t supported on Windows yet.',+ 'onboard.background': 'Keep it running in the background',+ 'onboard.backgroundDetail': '— auto-start on boot, auto-restart on crash, auto-update. Otherwise this terminal has to stay open.',+ 'onboard.copy': 'Copy command',+ 'onboard.copied': '✓ Copied!',+ 'onboard.waiting': 'Waiting for your computer to connect…',+ 'onboard.cloudCta': 'Want managed cloud agents instead?',+ 'onboard.upgradePro': 'Upgrade to Pro',+ 'onboard.cloudRun': 'to run agents on Cumora Cloud.',+ // ─── info pane (right-side agent / human profile) ─────────────────+ 'info.statusAvail': 'Available',+ 'info.statusWorking': 'Working',+ 'info.statusThinking': 'Thinking',+ 'info.statusWaiting': 'Waiting on you',+ 'info.statusResting': 'Resting',+ 'info.dm': 'DM',+ 'info.dmOpening': 'Opening…',+ 'info.about': 'About {name}',+ // ─── email message rendering (inline in chat bubbles) ─────────────+ 'email.deliveryFailedPrefix': 'delivery failed:',+ 'email.reply': 'Reply',+ // ─── email composer drawer ────────────────────────────────────────+ 'email.composerNewEmail': 'New email',+ 'email.composerReplyByEmail': 'Reply by email',+ 'email.dropToAttach': 'Drop to attach',+ 'email.toPlaceholder': 'address or @id, comma to add',+ 'email.ccLabel': 'Cc',+ 'email.addCc': '+ Cc',+ 'email.ccPlaceholder': 'add anyone to cc (optional)',+ 'email.subjectLabel': 'Subject',+ 'email.subjectPlaceholder': "What's this about?",+ 'email.noSubject': '(no subject)',+ 'email.fromLabel': 'from',+ 'email.writeReplyPh': 'Write your reply…',+ 'email.writeMessagePh': 'Write your message…',+ 'email.uploading': 'uploading…',+ 'email.uploadFailed': 'upload failed',+ 'email.attachFile': 'Attach a file',+ 'email.noAuthEmail': '(no auth email)',+ 'email.sending': 'Sending…',+ 'email.sendReply': 'Send reply',+ 'email.send': 'Send',+ 'email.errBodyRequired': 'body is required',+ 'email.errAddRecipient': 'add at least one recipient',+ 'email.errSubjectRequired': 'subject is required',+ 'email.errAttachmentsUploading': '{count} attachment(s) still uploading',+ 'email.errRemoveFailedAttachments': 'remove failed attachments before sending',+ // ─── chat pane header / composer ─────────────────────────────────+ 'chat.renameHint': 'Click to rename group',+ 'chat.pinToTop': 'Pin to top',+ 'chat.unpinFromTop': 'Unpin from top',+ 'chat.partOfProject': 'Part of project: {name}',+ 'chat.youInHeader': 'you',+ 'chat.humansCount': '+ {n} humans',+ 'chat.emojiStandard': 'Standard',+ 'chat.emojiSkype': 'Skype',+ 'chat.slashCommandTitle': 'Slash command',+ 'chat.slashCommandTitleQuery': 'Slash command · "/{query}"',+ 'chat.mentionTitle': 'Mention',+ 'chat.mentionTitleQuery': 'Mention · "{query}"',+ 'chat.composerPlaceholder': 'Message the team. Type @ to summon, drop a file to attach.',+ 'chat.composerAriaLabel': 'Message composer',+ 'chat.searchNoMatch': 'no matches',+ 'chat.replyingToLoading': '(loading…)',+ // ─── conversations pane extras ────────────────────────────────────+ 'convo.teammateTag': 'teammate',+ 'convo.new': 'NEW',+ 'convo.newPulledBy': 'NEW · pulled by {name}',+ 'convo.typingOne': '{name} is typing…',+ 'convo.typingTwo': '{a} and {b} are typing…',+ 'convo.typingMore': '{a} and {n} more are typing…',+ 'convo.searchPeople': 'People',+ 'convo.searchRooms': 'Rooms',+ 'convo.searchGroups': 'Groups',+ 'convo.searchMessages': 'Messages',+ 'convo.unknown': 'unknown',+ 'convo.inConvo': 'in',+ 'convo.member': '{n} member',+ 'convo.members': '{n} members',+ 'convo.unpin': 'Unpin',+ 'convo.pin': 'Pin to top',+ 'convo.createGroupWith': 'Create group with {name}…',+ 'convo.addToAGroup': 'Add {name} to a group…',+ 'convo.addToTitle': 'Add {name} to…',+ 'convo.willSeeMessages': '{name} will see new messages from this group.',+ 'convo.noGroupsForAdd': '{name} is already in every group you have, or you have no groups yet.',+ 'convo.everyoneAlreadyInGroup': 'Everyone in this workspace is already in the group.',+ 'convo.clickToAdd': 'Click anyone to add them. {count} added so far.',+ 'convo.noMatchQuery': 'no match for "{query}"',+ 'convo.addedCheck': '✓ added',+ 'convo.kindWhisper': 'whisper · ',+ 'convo.kindGroup': 'group · ',+ 'convo.leaving': 'Leaving…',+ 'convo.filterAll': 'All',+ 'convo.filterUnread': 'Unread',+ 'convo.filterAgents': 'Agents',+ 'convo.filterHumans': 'Humans',+ 'convo.filterGroups': 'Groups',+ 'convo.filterEmail': 'Email',+ 'convo.filterWhispers': 'Whispers',+ // ─── desktop layout ──────────────────────────────────────────────+ 'desktop.openingShip': 'Opening Ship…',+ // ─── me view (profile / quota / computers / projects / trust) ─────+ 'me.sectionIdentity': '↳ Identity',+ 'me.sectionSession': '↳ Session',+ 'me.sectionCommunity': '↳ Community & feedback',+ 'me.sectionAbout': '↳ About',+ 'me.sessionTitle': 'Signed in to {server}',+ 'me.sessionHint': 'Signing out clears the local token and revokes this session on the server.',+ 'me.communityTitle': 'Join the Cumora Discord',+ 'me.communityHint': 'Share feedback, report bugs, and meet other people running agent teams.',+ 'me.joinDiscord': 'Join Discord',+ 'me.versionLine': 'Cumora v{version}',+ 'me.autoUpdateDaily': 'Auto-update checks daily. You’ll see a banner when a new version is ready.',+ 'me.autoUpdateUnsupported': 'Auto-update is not available in this build (open the dialog to see why).',+ 'me.checkUpdates': 'Check for updates',+ 'me.sectionQuota': '↳ Quota',+ 'me.quotaFetchFailed': 'Couldn’t fetch your quota',+ 'me.noQuotaGateway': 'No quota gateway on this deployment',+ 'me.noQuotaHint': 'This server isn’t running a sub2api gateway, so per-period quotas aren’t tracked. Usage is governed by the host’s own API key allowance.',+ 'me.quotaUnreachable': 'Quota gateway is unreachable',+ 'me.noActiveSub': 'No active subscription',+ 'me.quotaGatewayUnreachHint': 'The cumora server couldn’t reach the quota gateway. Try again in a moment.',+ 'me.subNotProvisioned': 'Your account hasn’t been provisioned on the quota gateway yet. This usually clears up on its own — try again in a minute.',+ 'me.refresh': 'Refresh',+ 'me.quotaIntro': 'What your agents have spent on this account, across the rolling windows the gateway enforces. Numbers are in USD.',+ 'me.quotaIntroPlan': 'Plan: {plan}.',+ 'me.refreshFailed': 'last refresh had a hiccup: {msg}',+ 'me.periodDaily': 'Daily',+ 'me.periodWeekly': 'Weekly',+ 'me.periodMonthly': 'Monthly',+ 'me.rolloverDaily': 'rolls over at local midnight',+ 'me.rolloverWeekly': 'rolls over weekly',+ 'me.rolloverMonthly': 'rolls over monthly',+ 'me.unlimited': 'unlimited',+ 'me.resetsSoon': 'resets soon',+ 'me.resetsInMinutes': 'resets in {n}m',+ 'me.resetsInHours': 'resets in {n}h',+ 'me.resetsInDays': 'resets in {n}d',+ 'me.sectionPerAgent': '↳ Per-agent autonomy',+ 'me.perAgentIntro': 'Each agent has a threshold for acting on their own — pulling groups, kicking off tools, whispering peers. Adjust per agent if their judgment doesn’t match yours.',+ 'me.autonomyThreshold': 'autonomy threshold',+ 'me.sectionTrackRecords': '↳ Pulled-group track records',+ 'me.sectionProjects': '↳ Projects',+ 'me.projectsIntro': 'Projects bundle related groups under a name + a tint. Attach a group to a project so the team and the agents both see what scope the conversation belongs to.',+ 'me.noProjects': 'No projects yet. Click + New project to start one.',+ 'me.archived': 'archived',+ 'me.noDescription': '(no description)',+ 'me.projectConvoCount': '{n} conversation',+ 'me.projectConvoCountPlural': '{n} conversations',+ 'me.restore': 'Restore',+ 'me.archive': 'Archive',+ 'me.projectNamePh': 'Project name',+ 'me.projectDescPh': 'Short description (optional)',+ 'me.createProjectBusy': '…',+ 'me.createProject': 'Create project',+ 'me.newProject': '+ New project',+ 'me.hideArchived': 'Hide archived',+ 'me.showArchivedCount': 'Show archived ({n})',+ 'me.sectionComputers': '↳ Where your agents run',+ 'me.computersIntro': 'Every agent runs on a <strong>Computer</strong>. <em>Cumora Cloud</em> is built in and always on. Pair your own machine or a VPS to run agents on your local <span class="font-mono text-[12px]"> Claude Code</span>, <span class="font-mono text-[12px]"> Codex</span>, <span class="font-mono text-[12px]"> Grok Build</span>, or <span class="font-mono text-[12px]"> Cursor</span> — each agent gets its own isolated workspace, memory and skills there.',+ 'me.agentsCountOne': '{n} agent',+ 'me.agentsCountOther': '{n} agents',+ 'me.updateAvailableShort': 'update',+ 'me.updateToVersion': 'Update to v{version}',+ 'me.daemonVersion': 'v{version}',+ 'me.hideAction': 'Hide',+ 'me.reconnect': 'Reconnect',+ 'me.remove': 'Remove',+ 'me.removeConfirm': 'Remove "{label}"? Its agents will go offline until you re-pair.',+ 'me.repairHint': 'Run this on “{name}” to reconnect it — its agents stay attached. This token stays valid.',+ 'me.copyCommand': 'Copy command',+ 'me.copied': '✓ Copied!',+ 'me.copy': 'Copy',+ 'me.copiedShort': '✓ Copied',+ 'me.runOnHost': 'Run this on the machine you want to host agents:',+ 'me.engineRequired': 'Needs <span class="font-mono not-italic">claude</span>, <span class="font-mono not-italic">codex</span>, <span class="font-mono not-italic">grok</span>, or <span class="font-mono not-italic">cursor-agent</span> installed. The computer names itself after that machine and appears here once paired. This token stays valid.',+ 'me.keepTerminalOpen': 'Keep this terminal open while the agents run.',+ 'me.bgServiceUnsupported': 'background service install isn’t supported on Windows yet.',+ 'me.keepInBackground': 'Keep it running in the background',+ 'me.keepInBackgroundDetail': '— auto-start on boot, auto-restart on crash, auto-update. Otherwise this terminal has to stay open.',+ 'me.done': 'Done',+ 'me.addComputer': '+ Add a computer',+ 'me.updateAvailableTitle': 'Update available',+ 'me.daemonOutdatedOne': 'is running an outdated agent daemon.',+ 'me.daemonOutdatedMany': 'computers are running an outdated agent daemon: {names}.',+ 'me.daemonManualRun': 'as a foreground command',+ 'me.daemonManualHelp': 'It runs as a foreground command — press Ctrl-C in its terminal, then re-run to update. Tip: --install-service makes updates automatic.',+ 'me.daemonManualHelpPlural': 'They run as a foreground command — press Ctrl-C in each terminal, then re-run to update. Tip: --install-service makes updates automatic.',+ 'me.daemonAutoHelp': 'Restart it to pick up the latest fixes — agents stay attached.',+ 'me.daemonAutoHelpPlural': 'Restart them to pick up the latest fixes — agents stay attached.',+ 'me.daemonManualInfix': 'runs',+ 'me.daemonManualInfixPlural': 'run',+ 'me.manageComputers': 'Manage computers →',+ 'me.engineLabel': 'Engine',+ 'me.computersGenerating': 'Generating…',+ 'me.engineDefaultHint': 'just the default — this computer can still run agents on any detected engine',++ // ─── updater dialog + banner ──────────────────────────────────────+ 'updater.bannerUpdateReady': 'Update ready',+ 'updater.bannerUpdating': 'Updating Cumora',+ 'updater.bannerNewAvailable': 'New Cumora available',+ 'updater.bannerRestart': 'Restart',+ 'updater.bannerView': 'View',+ 'updater.bannerUpdate': 'Update',+ 'updater.bannerDismiss': 'Dismiss',+ 'updater.title': 'Cumora Update',+ 'updater.latestVersion': 'You\u2019re on the latest version.',+ 'updater.checkingUpdates': 'Checking for updates…',+ 'updater.newVersionReady': 'A new version is ready to download.',+ 'updater.downloadingUpdate': 'Downloading the update…',+ 'updater.updateDownloaded': 'Update downloaded. Restart to install.',+ 'updater.checkFailed': 'Update check failed.',+ 'updater.unsupported': 'Auto-update is not available in this build.',+ 'updater.whatsNew': 'What\u2019s new',+ 'updater.downloadingLabel': 'Downloading',+ 'updater.readyToInstall': 'Ready to install — Cumora will restart at the new version.',+ 'updater.closeAction': 'Close',+ 'updater.laterAction': 'Later',+ 'updater.checkAgain': 'Check again',+ 'updater.checkingEllipsis': 'Checking…',+ 'updater.download': 'Download',+ 'updater.downloadingEllipsis': 'Downloading…',+ 'updater.restartNow': 'Restart now',++ // ─── invite-people modal ─────────────────────────────────────────+ 'invite.title': 'Invite to {name}',+ 'invite.intro': 'Add humans to this workspace. Share a link or invite by email.',+ 'invite.tabLink': 'Invite link',+ 'invite.tabEmail': 'By email',+ 'invite.fieldEmail': 'Email',+ 'invite.emailHelp': 'Single-use, locked to this address. They must sign in with the same email to redeem.',+ 'invite.sendEmailLabel': 'Email this invite to them',+ 'invite.sendEmailDetail': 'We\u2019ll send a short note from [email protected] with your name on it. Replies go to your inbox. Uncheck if you\u2019d rather share the link yourself.',+ 'invite.linkHelp': 'Anyone with the link can join. Use this for a small team \u2014 the link expires in 7 days and can be revoked anytime.',+ 'invite.fieldRole': 'Role',+ 'invite.roleMember': 'Member',+ 'invite.roleAdmin': 'Admin',+ 'invite.fieldNote': 'Note',+ 'invite.optional': '\u2014 optional',+ 'invite.notePh': 'What\u2019s this invite for?',+ 'invite.addEmailErr': 'add an email',+ 'invite.invalidEmailErr': 'invalid email',+ 'invite.busyCreating': 'Creating\u2026',+ 'invite.createEmailBtn': 'Create email invite',+ 'invite.createLinkBtn': 'Create invite link',+ 'invite.pendingTitle': 'Pending invitations',+ 'invite.loading': 'loading\u2026',+ 'invite.noPending': 'No pending invitations.',+ 'invite.showPast': 'Show {n} past invitation{s}',+ 'invite.expireFootnote': 'Invitations expire after 7 days.',+ 'invite.doneBtn': 'Done',+ 'invite.sentHeadline': 'Invite sent',+ 'invite.readyHeadline': 'Invite ready to share',+ 'invite.deliveryOk': 'Email delivered to {email}. The link below is the same one we sent \u2014 copy it if you want to nudge them on another channel.',+ 'invite.deliveryLocked': 'Locked to {email} \u2014 they must sign in with that email.',+ 'invite.deliveryAnyone': 'Anyone with this link can join as a {role}.',+ 'invite.deliveryFailed': 'Email send failed: {err}. Copy the link and share it manually.',+ 'invite.deliveryUnknownErr': 'unknown error',+ 'invite.noEmailConfig': 'This server isn\u2019t set up for outbound email \u2014 copy the link and share it manually.',+ 'invite.copyBtn': 'Copy',+ 'invite.copiedBtn': 'Copied',+ 'invite.copyRefBtn': 'Copy ref',+ 'invite.copyRefTitle': 'Copy invite reference (the original link cannot be re-fetched \u2014 issue a new invite if you\u2019ve lost it)',+ 'invite.dismissBtn': 'Dismiss',+ 'invite.revokeBtn': 'Revoke',+ 'invite.statusAwaiting': 'awaiting',+ 'invite.statusShareable': 'shareable',+ 'invite.statusRevoked': 'revoked',+ 'invite.statusExpired': 'expired',+ 'invite.statusUsed': 'used',+ 'invite.shareableLabel': 'Shareable link',+ 'invite.useCount': '{used}/{max} used',+ 'invite.expiresIn': '\u00b7 expires {when}',+ 'invite.lastAccepted': '\u00b7 last accepted {when}',++ // ─── invite accept screen ──────────────────────────────────────────+ 'inviteAccept.checking': 'checking your invitation\u2026',+ 'inviteAccept.couldntLoadTitle': 'Couldn\u2019t load this invitation',+ 'inviteAccept.linkBrokenTitle': 'That invite link doesn\u2019t work',+ 'inviteAccept.linkBrokenBody': 'It may have been mistyped. Ask the person who invited you to send a fresh link.',+ 'inviteAccept.revokedTitle': 'This invitation was revoked',+ 'inviteAccept.revokedBody': 'The owners of {name} cancelled it. Ask them to send a new invite.',+ 'inviteAccept.expiredTitle': 'This invitation expired',+ 'inviteAccept.expiredBody': 'Invitations to {name} expire after 7 days. Ask for a fresh one.',+ 'inviteAccept.usedTitle': 'This invitation was already used',+ 'inviteAccept.usedBody': 'The link to {name} is single-use and someone already redeemed it.',+ 'inviteAccept.wrongAccount': 'Wrong account',+ 'inviteAccept.wrongAccountBody': 'This invite to {company} is reserved for {email}, but you\u2019re signed in as {current}. Sign out and back in with the right email.',+ 'inviteAccept.signOut': 'Sign out',+ 'inviteAccept.invitedBy': '{name} invited you to',+ 'inviteAccept.joinBusy': 'Joining\u2026',+ 'inviteAccept.joinAs': 'Join {company} as {role}',+ 'inviteAccept.notNow': 'Not now',+ 'inviteAccept.welcomeTo': 'Welcome to {name}',+ 'inviteAccept.welcomeBody': 'You\u2019re in. Cumora works best as a desktop app \u2014 pick how to keep going.',+ 'inviteAccept.openApp': 'Open in Cumora app',+ 'inviteAccept.continueInBrowser': 'Continue in browser',+ 'inviteAccept.alreadyIn': 'You\u2019re already in {name}',+ 'inviteAccept.alreadyInBody': 'Pick up where you left off \u2014 on this device or anywhere you\u2019ve installed Cumora.',+ 'inviteAccept.openDesktop': 'Open in Cumora desktop',+ 'inviteAccept.continueToCumora': 'Continue to Cumora',+ 'inviteAccept.getCumora': 'Get Cumora',+ 'inviteAccept.getCumoraPre': 'Don\u2019t have the desktop app yet? ',++ // ─── group creator modal ─────────────────────────────────────────+ 'group.title': 'New group',+ 'group.intro': 'Pull a few teammates into a shared conversation. You\u2019ll always be in it.',+ 'group.pickOne': 'pick at least one teammate',+ 'group.addTitle': 'add a title or pick a teammate',+ 'group.fieldTitle': 'Title',+ 'group.fieldOptional': '\u2014 optional',+ 'group.leaveBlankTo': 'Leave blank to use "{title}".',+ 'group.whatIsAbout': 'What is this group about? Leave blank and we\u2019ll name it from the members you pick.',+ 'group.titlePh': 'e.g. Aurora launch \u2014 week 1',+ 'group.fieldProject': 'Project',+ 'group.attachProject': 'Attach this group to a project so agents see what it belongs to.',+ 'group.noProject': 'No project',+ 'group.fieldMembers': 'Members',+ 'group.clickToAdd': 'Click to add',+ 'group.nSelected': '{n} selected \u2014 you are auto-included',+ 'group.kindHuman': 'human',+ 'group.kindAgent': 'agent',+ 'group.noTeammates': 'No teammates available \u2014 add an agent or human first.',+ 'group.cancelBtn': 'Cancel',+ 'group.creatingBtn': 'Creating\u2026',+ 'group.createBtn': 'Create group',+ 'group.createBtnWithCount': 'Create group ({n})',++ // ─── poll composer ──────────────────────────────────────────────+ 'poll.title': 'New poll',+ 'poll.cancelAria': 'Cancel poll',+ 'poll.questionPh': 'Ask the room a question\u2026',+ 'poll.removeOptAria': 'Remove option',+ 'poll.failedToCreate': 'failed to create poll',++ // ─── whisper room (observer / private threads) ───────────────────+ 'whisper.observerMode': 'Observer mode',+ 'whisper.observerHint': 'silent peek \u2014 inject to step in',+ 'whisper.nAgents': '{n} agents',+ 'whisper.privateThread': 'private thread',+ 'whisper.startedAt': 'started {time}',+ 'whisper.openedAt': 'opened {time}',+ 'whisper.noMessages': 'no messages yet',+ 'whisper.injectPrompt': 'Inject a thought \u2014 they\u2019ll see it as if you\u2019d been listening\u2026',++ // ─── company switcher / date picker / scroll / combobox / error ────+ 'company.invitePeople': 'Invite people to {name}',+ 'company.invitePeoplePrefix': 'Invite people to ',+ 'company.workspaceNamePh': 'Workspace name',+ 'company.switchWorkspace': 'Switch workspace',+ 'company.createNew': 'Create new workspace',+ 'company.noWorkspace': 'no workspace',+ 'company.createBtn': 'Create',+ 'dtpicker.prevMonth': 'Previous month',+ 'dtpicker.nextMonth': 'Next month',+ 'dtpicker.today': 'Today',+ 'dtpicker.clear': 'Clear',+ 'dtpicker.hourLabel': 'hr',+ 'dtpicker.minuteLabel': 'min',+ 'scroll.scrollToLatest': 'Scroll to latest message',+ 'scroll.latestTitle': 'Latest message',+ 'combobox.toggleMenu': 'Toggle menu',+ 'errorBoundary.resetView': 'Reset view',+ 'errorBoundary.reload': 'Reload',+ 'errorBoundary.somethingCracked': 'Something cracked.',+ 'errorBoundary.fallbackBody': 'The view hit an unexpected state. Your data is safe \u2014 this is just the screen reacting badly.',+ 'members.ariaLabel': 'Conversation members',+ 'members.countOne': '{n} member',+ 'members.countOther': '{n} members',+ 'members.youSuffix': ' (you)',+ 'members.youBadge': 'you',+ 'pollBubble.noVotes': 'no votes yet',+ 'pollBubble.nVotesOne': '{n} vote',+ 'pollBubble.nVotesOther': '{n} votes',+ 'pollBubble.youVoted': 'you voted',+ 'pollBubble.pollLabel': 'Poll',+ 'pollBubble.multi': 'multi',+ 'pollBubble.expired': 'expired',+ 'pollBubble.closed': 'closed',+ 'pollBubble.open': 'open',+ 'pollBubble.leftSfx': '{n} left',+ 'pollBubble.voteFailed': 'vote failed',+ 'pollBubble.saving': 'saving…',+ 'pollBubble.submit': 'submit',+ 'pollBubble.reset': 'reset',+ 'pollBubble.winningTitle': 'winning option',++ // ─── misc helpers used by views ───────────────────────────────────+ // ─── mobile calendar ──────────────────────────────────────────────+ 'mcal.prevMonth': 'Previous month',+ 'mcal.nextMonth': 'Next month',+ 'mcal.today': 'Today',+ 'mcal.pickDay': 'Pick a day to see events.',+ 'mcal.loading': 'Loading…',+ 'mcal.newEvent': '+ New',+ 'mcal.emptyDay': 'Nothing scheduled for this day.',+ 'mcal.addEvent': 'Add an event',+ 'mcal.agentTask': 'Agent task',+ 'mcal.personal': 'Personal',+ 'mcal.recurring': 'recurring',+ 'mcal.untitledEvent': 'Untitled event',+ 'mcal.eventCount': '{n} event{s}',++ // ─── admin panel ──────────────────────────────────────────────────+ 'admin.checking': 'Checking admin access\u2026',+ 'admin.notAuthorized': 'Not authorized',+ 'admin.signedInAs': 'Signed in as {email}.',+ 'admin.signOutSwitch': 'Sign out and switch account',+ 'admin.toggleNav': 'Toggle navigation',+ 'admin.users': 'Users',+ 'admin.waitlist': 'Waitlist',+ 'admin.observability': 'Observability',+ 'admin.settings': 'Settings',+ 'admin.signOut': 'Sign out',++ // ─── push diagnostic panel (mobile Me) ────────────────────────────+ 'push.appPref': 'App preference',+ 'push.appPrefOnSub': 'notify.push is ON \u2014 init will run on next app launch.',+ 'push.appPrefOffSub': "notify.push is OFF \u2014 toggle it on above (or tap 'Reset & retry' below).",+ 'push.on': 'On',+ 'push.off': 'Off',+ 'push.iosPerm': 'iOS permission',+ 'push.iosPermDenied': 'Open iOS Settings \u2192 Cumora \u2192 Notifications to re-enable.',+ 'push.iosPermGranted': 'iOS will deliver alerts when the app is in background.',+ 'push.iosPermUnknown': "iOS hasn\u2019t been asked yet \u2014 see the last-step row below.",+ 'push.iosPermWillAsk': 'iOS will show its dialog the next time init runs.',+ 'push.deviceToken': 'Device token',+ 'push.deviceTokenOk': 'Registered with server (\u2026{suffix}).',+ 'push.deviceTokenNone': "No APNs token yet \u2014 see the last-step row below.",+ 'push.lastStep': 'Last init step',+ 'push.lastError': 'Last error: {err}',+ 'push.working': 'Working\u2026',+ 'push.reregister': 'Re-register this device',+ 'push.reregisterSub': 'Runs init again \u2014 respects the app preference toggle.',+ 'push.resetRetry': 'Reset & retry (force)',+ 'push.resetRetrySub': 'Bypasses the in-app preference \u2014 useful if the toggle got stuck off.',+ 'push.deleteTitle': 'Delete account',+ 'push.deleteSub': 'permanently remove this Cumora account',+ 'push.deleteConfirmTitle': 'Permanently delete this account?',+ 'push.deleteConfirmBody': 'Your sign-in, OAuth links, and personal profile will be erased. Messages you posted in shared rooms stay (with your name shown as "Deleted user") so other members keep their history. This cannot be undone.',+ 'push.deleteCancel': 'Cancel',+ 'push.deleteConfirmBtn': 'Delete',+ 'push.deleteBusy': 'Deleting\u2026',++ // ─── push diagnostic panel extras ──────────────────────────────────+ 'push.notSupported': 'Push notifications run on the iOS / Android native shell \u2014 this web preview just uses live socket messages.',+ 'push.permAllowed': 'Allowed',+ 'push.permBlocked': 'Blocked',+ 'push.permNotAsked': 'Not asked yet',+ 'push.permUnknown': 'Unknown',+ 'push.stepIdle': 'init never ran (check the prefs toggle above)',+ 'push.stepLoadPlugin': 'stuck loading the @capacitor/push-notifications plugin',+ 'push.stepRequestPerm': 'stuck asking iOS for permission (system dialog blocked?)',+ 'push.stepRegister': 'stuck on APNs token request (entitlement / network)',+ 'push.stepDone': 'init completed \u2014 waiting for APNs to hand back a token',++ // ─── web landing (app.cumora.ai) ──────────────────────────────────+ 'web.signedIn': 'You\u2019re signed in',+ 'web.openingDesktop': 'Opening Cumora on your desktop\u2026',+ 'web.openDesktop': 'Open in Cumora desktop',+ 'web.signOut': 'Sign out',+ 'web.onlyDesktopNote': 'Cumora only runs as a desktop app \u2014 open it or install it to continue.',+ 'web.or': 'or',+ 'web.providerNote2': 'We use your provider only to verify it\u2019s you \u2014 no posting, no scope creep.',++ // ─── mobile whispers (observer / private threads) ──────────────────+ 'mwhisp.title': 'Whispers',+ 'mwhisp.observing': 'observing',+ 'mwhisp.headerSub': 'Silent peek into agent-to-agent channels \u2014 they can\u2019t see you.',+ 'mwhisp.loading': 'Listening for agent chatter\u2026',+ 'mwhisp.empty': 'No whispers yet. Send a message in a group to nudge an agent to whisper.',+ 'mwhisp.previewNone': 'no messages yet',+ 'mwhisp.moreOne': '{a}, {c} & 1 more',+ 'mwhisp.moreN': '{a}, {c} & {n} more',+ 'mwhisp.closed': 'This whisper has closed.',+ 'mwhisp.observingCount': 'Observing \u00b7 {n} msgs',+ 'mwhisp.observerMode': 'Observer mode',+ 'mwhisp.observerSub': 'silent peek \u2014 they can\u2019t see you',+ 'mwhisp.inject': 'Inject a thought\u2026',++ // ─── mobile agents (team page) ─────────────────────────────────────+ 'magents.statusAvail': 'Available',+ 'magents.statusWorking': 'Working',+ 'magents.statusThinking': 'Thinking',+ 'magents.statusWaiting': 'Waiting on you',+ 'magents.statusResting': 'Resting',+ 'magents.titleLead': 'Your team',+ 'magents.titleCount': 'of {n}',+ 'magents.subtitle': 'agents work on their own, loop you in when needed',+ 'magents.empty': 'No agents in this workspace yet. Hire one below.',+ 'magents.hireTitle': 'Hire an agent',+ 'magents.hireSub': 'design a new teammate',+ 'magents.humansHead': 'Human teammates',++ // ─── mobile app shell ──────────────────────────────────────────────+ 'mapp.openingDoc': 'Opening document\u2026',+ 'mapp.docUnavailable': 'Document unavailable',+ 'mapp.docUnavailableBody': 'This artifact may have been deleted or moved out of this workspace.',+ 'mapp.docUnavailableClose': 'Close',+ 'mapp.openingShip': 'Opening Ship\u2026',++ // ─── admin settings page ──────────────────────────────────────────+ 'adminSettings.title': 'Settings',+ 'adminSettings.sub': 'Global toggles. Changes apply instantly.',+ 'adminSettings.waitlistTitle': 'Waitlist',+ 'adminSettings.waitlistDesc': 'When ON, new OAuth signups land on the waitlist instead of creating an account. Existing users sign in normally. Bootstrap admins (env allow-list) bypass the gate.',+ 'adminSettings.signupsPausedTitle': 'Signups paused',+ 'adminSettings.signupsPausedDesc': 'When ON, the waitlist itself also stops accepting new entries \u2014 useful for emergencies (LLM bill spike, prod incident). Existing waitlist entries can still be approved.',++ // ─── waitlist + suspended screens ──────────────────────────────────+ 'waitlist.suspendedTitle': 'Your account is suspended',+ 'waitlist.suspendedBody': 'Access for {email} has been temporarily disabled by a Cumora administrator.',+ 'waitlist.suspendedEmailFallback': 'your account',+ 'waitlist.suspendedReasonLabel': 'Reason from the admin',+ 'waitlist.suspendedFooter': 'If you think this is a mistake, reply to your most recent message from us, or reach out to your workspace owner.',+ 'waitlist.suspendedDone': 'Done',+ 'waitlist.confirmedTitle': 'You\u2019re on the waitlist',+ 'waitlist.confirmedBody': 'We saved {email} and will let you know the moment your account is ready. No further action needed.',+ 'waitlist.confirmedEmailFallback': 'your email',+ 'waitlist.confirmedFooter': 'Want to get a head start? {link} \u2014 you\u2019ll be one click from your workspace the second you\u2019re approved.',+ 'waitlist.confirmedDone': 'Done',+ 'waitlist.pageTitle': 'Waitlist',+ 'waitlist.pageSub': 'Decide who gets in. Approve provisions the account end-to-end.',+ 'waitlist.searchPh': 'email, name, provider, note',+ 'waitlist.tabPending': 'pending',+ 'waitlist.tabApproved': 'approved',+ 'waitlist.tabRejected': 'rejected',+ 'waitlist.approveConfirm': 'Approve {email}?\nThis creates a real user + workspace + sub2api account.',+ 'waitlist.approveFail': 'approve failed: {err}',+ 'waitlist.rejectPrompt': 'Reject {email}? Optional note:',+ 'waitlist.rejectFail': 'reject failed: {err}',+ 'waitlist.colUser': 'User',+ 'waitlist.colProvider': 'Provider',+ 'waitlist.colRequested': 'Requested',+ 'waitlist.colDecided': 'Decided',+ 'waitlist.colActions': 'Actions',+ 'waitlist.loading': 'Loading\u2026',+ 'waitlist.noPending': 'No pending requests.',+ 'waitlist.noEntriesMatch': 'No {tab} entries match.',+ 'waitlist.noEntries': 'No {tab} entries.',+ 'waitlist.notePrefix': 'note: {note}',+ 'waitlist.approve': 'Approve',+ 'waitlist.approveBusy': '\u2026',+ 'waitlist.reject': 'Reject',++ // ─── mobile chat list (search + empty) ────────────────────────────+ 'mclist.searchPh': 'Search conversations, agents\u2026',+ 'mclist.empty': 'no conversations yet',+ 'mclist.filterAll': 'All',+ 'mclist.filterAgents': 'Agents',+ 'mclist.filterWhispers': 'Whispers',+ 'mclist.filterHumans': 'Humans',+ 'mclist.openSearch': 'Open search',+ 'mclist.closeSearch': 'Close search',+ 'mclist.clearSearch': 'Clear',+ 'mclist.muted': 'Muted',+ 'mclist.badgeNew': 'NEW',+ 'mclist.swipeRead': 'Read',+ 'mclist.swipeMute': 'Mute',+ 'mclist.swipeUnmute': 'Unmute',+ 'mclist.swipePin': 'Pin',+ 'mclist.swipeUnpin': 'Unpin',+ 'mclist.swipeLeave': 'Leave',+ 'mclist.menuOpen': 'Open',+ 'mclist.menuPinToTop': 'Pin to top',+ 'mclist.menuUnpinFromTop': 'Unpin from top',+ 'mclist.menuMute': 'Mute notifications',+ 'mclist.menuUnmute': 'Unmute',+ 'mclist.menuMarkRead': 'Mark as read',+ 'mclist.menuLeave': 'Leave conversation',+ 'mclist.menuCreateGroupWith': 'Create group with {name}\u2026',+ 'mclist.confirmLeave': 'Leave \u201c{title}\u201d? Agents will continue without you.',+ 'mclist.fallbackAgent': 'An agent',+ 'mclist.fallbackSomeone': 'Someone',+ 'mclist.typingOne': '{name} is typing\u2026',+ 'mclist.typingTwo': '{a} and {b} are typing\u2026',+ 'mclist.typingMore': '{name} and {n} more are typing\u2026',++ // ─── mobile chat (composer + header + info) ─────────────────────────+ 'mobchat.startConvene': 'Start Convene',+ 'mobchat.more': 'More',+ 'mobchat.viewDetails': 'View details',+ 'mobchat.unmute': 'Unmute',+ 'mobchat.muteNotifications': 'Mute notifications',+ 'mobchat.mute': 'Mute',+ 'mobchat.leaveConversation': 'Leave conversation',+ 'mobchat.removeAttachment': 'Remove attachment',+ 'mobchat.cancelReply': 'Cancel reply',+ 'mobchat.uploading': 'uploading\u2026',+ 'mobchat.replyingTo': 'Replying to {name}',+ 'mobchat.replyLoading': '(loading\u2026)',+ 'mobchat.mentionHeader': 'Mention',+ 'mobchat.mentionQuerySuffix': '\u00b7 "{query}"',+ 'mobchat.everyone': 'Everyone',+ 'mobchat.notifyAll': 'Notify all members of this room',+ 'mobchat.typeAtToSummon': 'Type @ to summon',+ 'mobchat.attachFile': 'Attach file',+ 'mobchat.mentionAria': 'Mention',+ 'mobchat.emojiAria': 'Emoji',+ 'mobchat.emojiStd': 'Standard',+ 'mobchat.emojiSkype': 'Skype',+ 'mobchat.sendAria': 'Send',+ 'mobchat.starting': 'Starting\u2026',+ 'mobchat.convene': 'Convene',+ 'mobchat.tapToRename': 'Tap to rename',+ 'mobchat.tapToEditTopic': 'Tap to edit topic',+ 'mobchat.addTopic': '+ add a topic',+ 'mobchat.topicPlaceholder': "What's this group for?",+ 'mobchat.members': 'Members',+ 'mobchat.statMembers': 'members',+ 'mobchat.statAgents': 'agents',+ 'mobchat.statHumans': 'humans',+ 'mobchat.searchMembersPh': 'Search members\u2026',+ 'mobchat.clearSearch': 'Clear search',+ 'mobchat.youSuffix': '\u00b7 you',+ 'mobchat.humanTeammate': 'human teammate',+ 'mobchat.noMembersMatch': 'No members match \u201c{query}\u201d',+ 'mobchat.tools': 'Tools',+ 'mobchat.about': 'About',+ 'mobchat.agentsContinueWithout': 'agents continue without you',+ 'mobchat.composerAria': 'Message composer',+ 'mobchat.confirmLeaveBody': 'Leave this conversation? Agents will continue without you.',+ 'mobchat.details': 'Details',+ 'mobchat.memberOne': 'member',+ 'mobchat.memberMany': 'members',+ 'mobchat.agentOne': 'agent',+ 'mobchat.agentMany': 'agents',+ 'mobchat.agentsHeader': '{n} agents',+ 'mobchat.tapbackReply': 'Reply',+ 'mobchat.tapbackCopy': 'Copy text',++ // ─── view boundary (error fallback) ───────────────────────────────+ 'viewBoundary.tryAgain': 'Try again',+ 'viewBoundary.hitASnag': '{name} hit a snag.',+ 'viewBoundary.fallbackMsg': 'An unexpected error occurred while rendering this tab.',++ // ─── mobile participant info ──────────────────────────────────────+ 'mpinfo.toolsEnabled': 'Tools enabled',+ 'mpinfo.statusAvail': 'Available',+ 'mpinfo.statusWorking': 'Working',+ 'mpinfo.statusThinking': 'Thinking',+ 'mpinfo.statusWaiting': 'Waiting on you',+ 'mpinfo.statusResting': 'Resting',+ 'mpinfo.statusIdle': 'idle',+ 'mpinfo.humanTeammate': 'human teammate',+ 'mpinfo.profileTitle': 'Profile',+ 'mpinfo.itsYou': 'That\u2019s you \u2014 head over to {me} for your own profile.',+ 'mpinfo.sectionActions': 'Actions',+ 'mpinfo.sectionEmail': 'Email',+ 'mpinfo.sectionAbout': 'About {name}',+ 'mpinfo.opening': 'Opening\u2026',+ 'mpinfo.btnDM': 'DM',+ 'mpinfo.btnWhisper': 'Whisper',+ 'mpinfo.btnConvene': 'Convene',+ 'mpinfo.emailCopiedTitle': 'Copied!',+ 'mpinfo.emailTapCopyTitle': 'Tap to copy',+ 'mpinfo.emailCopied': 'copied',+ 'mpinfo.emailCopy': 'copy',+ 'mpinfo.back': 'Back',+ // ─── Message body extras (chips, cards, system rows, typing) ─────────+ 'msgview.atAll': '@all',+ 'msgview.noText': '(no text)',+ 'msgview.cardDocument': 'Document',+ 'msgview.cardKanban': 'Kanban',+ 'msgview.cardKanbanCard': 'Kanban card',+ 'msgview.cardCalendar': 'Calendar',+ 'msgview.emailFrom': 'From',+ 'msgview.loadingHtml': 'loading html…',+ 'msgview.htmlEmailBody': 'HTML email body',+ 'msgview.and': ' and ',+ 'msgview.whisperingSuffix': ' are whispering —',+ 'msgview.peekArrow': 'Peek →',+ 'msgview.removedActor': '— removed',+ 'msgview.removedFromGroup': 'from the group',+ 'msgview.messageDeleted': '[message deleted]',+ 'msgview.jumpToOriginal': 'Jump to original',+ 'msgview.typingIs': ' is typing…',+ 'msgview.typingAre': ' are typing…',+ 'msgview.typingSep': ', ',+ 'msgview.nMore': '{n} more',+ // ─── Mobile library ───────────────────────────────────────────────────+ 'moblib.tabDocuments': 'Documents',+ 'moblib.tabBoards': 'Boards',+ 'moblib.tabCalendar': 'Calendar',+ 'moblib.untitledBoard': 'Untitled board',+ // ─── Admin pager ──────────────────────────────────────────────────────+ 'adminPager.range': '{from}–{to} of {total}',+ 'adminPager.prev': 'Prev',+ 'adminPager.next': 'Next',+ // ─── Combobox defaults ────────────────────────────────────────────────+ 'combobox.select': 'Select',+ 'combobox.search': 'Search…',+ 'combobox.noMatches': 'No matches', 'email.closeComposerBackdropAria': 'Close composer backdrop',+ 'email.closeComposerAria': 'Close composer', 'notif.calendarReminder': 'Calendar reminder',+ 'notif.dismissAria': 'Dismiss',+ 'download.forMac': 'Download for macOS',+ 'download.forWindows': 'Download for Windows',+ 'download.forLinux': 'Download for Linux',+ 'download.generic': 'Download Cumora',+ 'auth.presetProduction': 'Production',+ 'auth.presetLocalDev': 'Local Dev',+} as const\ No newline at end of filediff --git a/src/locales/zh-CN.ts b/src/locales/zh-CN.tsnew file mode 100644index 0000000..57f01e3--- /dev/null+++ b/src/locales/zh-CN.ts@@ -0,0 +1,1753 @@+/**+ * 简体中文 (zh-CN) — the first translated locale.+ *+ * Typed against `en`, so every key here must exist there; anything left+ * out falls back to the English string rather than rendering empty.+ *+ * 翻译原则:+ * - 产品名保留:Cumora / Convene / Skype / Whisper 这类专有名字保留+ * 原文,避免破坏 UI 与文档之间的对应关系。+ * - 不做机翻:拒绝「关闭」对 close、「打开」对 open 之类的字面对译。+ * 同一句话怎么用中文说出来最自然,就怎么写。+ * - 不用书面语:「迄今为止」「倘若」这种词不要。日常说话的样子。+ * - 数字格式:中文里没有单复数变化,{count} 走单数即可。+ * - 标点风格:能用全角就用全角(,。?),但括号、斜杠、引号+ * 紧贴变量或 URL 时用半角,避免阅读时的视觉跳点。+ */+import type { en } from './en'++export const zhCN: Partial<Record<keyof typeof en, string>> = {+ // ─── 通用 ─────────────────────────────────────────────────────────+ 'common.close': '关闭',+ 'common.use': '使用',+ 'common.tryAgain': '重试',+ 'common.language': '语言',+ 'common.signOut': '退出登录',+ 'common.languageSub': '仅本设备 · 立即生效',+ 'common.titlebarTagline': '—— 智能体团队的汇合地',+ 'common.daemonOutdatedTip': '某台计算机的守护进程需要更新——打开「我」',+ 'common.cancel': '取消',+ 'common.done': '完成',+ 'common.save': '保存',+ 'common.delete': '删除',+ 'common.you': '你',+ 'common.idle': '空闲',+ 'common.human': '人类',+ 'common.agent': '智能体',+ 'common.loading': '加载中…',+ 'common.required': '必备',+ 'common.optional': '可选',+ 'common.unassigned': '未指派',+ 'common.noData': '暂无数据。',+ 'common.open': '打开',+ 'common.peek': '速览',+ // ─── 导航 ─────────────────────────────────────────────────────────+ 'nav.conversations': '对话',+ 'nav.chats': '消息',+ 'nav.whispers': '私聊',+ 'nav.ship': '交付',+ 'nav.boards': '看板',+ 'nav.calendar': '日历',+ 'nav.docs': '文档',+ 'nav.library': '资料库',+ 'nav.agents': '智能体',+ 'nav.me': '我',+ 'nav.observe': '观测',+ // ─── 登录 ─────────────────────────────────────────────────────────+ 'auth.welcome': '欢迎来到 cumora',+ 'auth.signInToContinue': '登录后继续',+ 'auth.continueWithApple': '使用 Apple 继续',+ 'auth.continueWithGoogle': '使用 Google 继续',+ 'auth.continueWithGithub': '使用 GitHub 继续',+ 'auth.signInToAccept': '登录以接受这份邀请',+ // ─── 网页落地页(app.cumora.ai)───────────────────────────────────+ 'web.desktopApp': 'Cumora 是一个桌面应用',+ 'web.desktopAppSub': '登录即可加入,如果桌面版已经装了,直接打开它。',+ 'auth.signingIn': '正在登录…',+ 'auth.redirecting': '正在跳转…',+ 'auth.noTokenReturned': '登录流程完成了,但没有拿到令牌。',+ 'auth.providerNote': '我们只用你的账号确认你是本人 —— 不发内容,不多要权限。',+ 'auth.apiServer': 'API 服务器',+ 'auth.sameOrigin': '同源(Vite 代理 / 静态部署)',+ 'auth.clearOverride': '清除覆盖(使用构建时的默认值)',+ // ─── 「我」与设置(桌面端)────────────────────────────────────────+ 'me.headline': '你',+ 'me.statPulled': '拉群',+ 'me.statLed': '主导',+ 'me.statNoise': '噪点',+ 'me.headlineEm': '在正中央',+ 'me.subtitle': '你的智能体如何看你、记得什么,以及你给它们多大的自由度。',+ 'me.tab.profile': '个人资料',+ 'me.tab.usage': '用量',+ 'me.tab.computers': '计算机',+ 'me.tab.projects': '项目',+ 'me.tab.trust': '信任与自主权',+ 'me.tab.preferences': '偏好设置',+ 'me.daemonNeedsUpdate': '有守护进程需要更新',+ 'me.prefs.notifications': '通知',+ 'me.prefs.groupPulled': '当智能体拉起一个有你在的群聊',+ 'me.prefs.groupPulledSub': '总是 · 从不 · 仅紧急',+ 'me.prefs.whisperMention': '当私聊里提到你',+ 'me.prefs.whisperMentionSub': '总是 · 摘要 · 从不',+ 'me.prefs.conveneCalled': '当有人发起 Convene 会议',+ 'me.prefs.conveneCalledSub': '总是 · 从不',+ 'me.prefs.dailySummary': '每日汇总:夜间的智能体动态',+ 'me.prefs.dailySummarySub': '当地时间早上 8:00',+ 'me.prefs.lookFeel': '外观与手感',+ 'me.prefs.reduceMotion': '减弱动效',+ 'me.prefs.reduceMotionSub': '少一些动画',+ 'me.prefs.typingIndicators': '显示正在输入提示',+ 'me.prefs.typingIndicatorsSub': '看到智能体正在打字',+ 'me.prefs.thoughtsInMain': '在主聊天里显示「边想边说」的片段',+ 'me.prefs.thoughtsInMainSub': '通常只在私聊里可见',+ 'me.prefs.privacy': '隐私',+ 'me.prefs.silentWhispers': '允许智能体在你不在场时私聊',+ 'me.prefs.silentWhispersSub': '记录仍会写进你的会话存档',+ 'me.prefs.newTools': '允许智能体自主调用新工具',+ 'me.prefs.newToolsSub': '在你已授予的权限范围内',+ 'me.prefs.humanInvites': '允许智能体把人拉进群聊',+ 'me.prefs.humanInvitesSub': '每次都需要你同意',+ 'me.prefs.languageSection': '语言',+ 'me.prefs.skypeSection': 'Skype 表情',+ 'me.prefs.skypeSounds': '播放经典 Skype 音效',+ 'me.prefs.skypeSoundsSub': '仅本设备 · Skype 表情进入视野时播放一次;点击表情可重播',+ 'me.prefs.developer': '开发者',+ 'me.prefs.developerMode': '开发者模式',+ 'me.prefs.developerModeLocal': '运行本地开发构建时始终开启',+ 'me.prefs.developerModeSub': '显示「观测」,并在本设备解锁后端限定的开发者工具',+ // ─── 「我」与设置(移动端)────────────────────────────────────────+ 'mobileMe.workspace': '工作区',+ 'mobileMe.yourTeam': '你的团队',+ 'mobileMe.push': '推送通知',+ 'mobileMe.preferences': '偏好设置',+ 'mobileMe.language': '语言',+ 'mobileMe.quietWorkspace': '工作区还很安静 —— 还没有智能体加入。',+ 'mobileMe.quietSteward': '工作区还很安静 —— 邀请几位智能体开始吧。',+ 'mobileMe.steward': '你照看着 {parts}。',+ 'mobileMe.agentCount': '{count} 位智能体',+ 'mobileMe.roomCount': '{count} 个房间',+ 'mobileMe.peekCount': '{count} 处旁观',+ 'mobileMe.defaultRole': '人类 · 团队所有者',+ 'mobileMe.signOutSub': '结束本设备上的这次会话',+ 'mobileMe.prefs.push': '推送通知',+ 'mobileMe.prefs.pushSub': '应用关闭时显示横幅与角标',+ 'mobileMe.prefs.groupPull': '群聊拉人时通知',+ 'mobileMe.prefs.groupPullSub': '当智能体把你拉进来',+ 'mobileMe.prefs.mention': '被提到时通知',+ 'mobileMe.prefs.mentionSub': '当智能体 @ 你',+ 'mobileMe.prefs.typing': '显示正在输入提示',+ 'mobileMe.prefs.typingSub': '看到智能体正在打字',+ 'mobileMe.prefs.reduceMotion': '减弱动效',+ 'mobileMe.prefs.reduceMotionSub': '少一些动画',+ 'mobileMe.prefs.newTools': '智能体可以调用新工具',+ 'mobileMe.prefs.newToolsSub': '在已授予的权限范围内',+ // ─── 对话列表(桌面左栏)─────────────────────────────────────────+ 'convo.title': '对话',+ 'convo.newGroup': '创建新的群聊',+ 'convo.newEmail': '写新邮件',+ 'convo.searchPlaceholder': '搜索对话、智能体或成员…',+ 'convo.clearSearch': '清除搜索',+ 'convo.searching': '搜索中…',+ 'convo.noMatches': '没有匹配',+ 'convo.loading': '加载中…',+ 'convo.pinned': '已置顶',+ 'convo.emailThread': '邮件会话',+ 'convo.mute': '免打扰',+ 'convo.muted': '已免打扰',+ 'convo.unmute': '取消免打扰',+ 'convo.muteForever': '直到我手动打开',+ 'convo.mute15m': '15 分钟',+ 'convo.mute1h': '1 小时',+ 'convo.mute8h': '8 小时',+ 'convo.mute24h': '24 小时',+ 'convo.muteTomorrow': '直到明天早上',+ 'convo.muteMonday': '直到下周一',+ 'convo.muteHintForever': '一直',+ 'convo.muteHintUntil': '至 {when}',+ 'convo.mutedUntil': '免打扰至 {when}',+ 'convo.addMembers': '添加成员…',+ 'convo.leaveGroup': '退出群聊',+ 'convo.addToGroupPrompt': '选一个要把 TA 加进去的群聊。',+ 'convo.addedTo': '已加入',+ 'convo.leaveTitle': '退出「{title}」?',+ 'convo.roleAgent': '智能体',+ 'convo.roleHuman': '人类同事',+ 'convo.leaveWarning': '你将不再收到这个群聊的新消息。其他成员仍可继续交流;群里任何人都可以重新把你加回来。',+ 'convo.addMembersTo': '添加成员到',+ 'convo.filterPlaceholder': '按名字或 id 筛选…',+ 'convo.adding': '添加中…',+ 'convo.add': '添加',+ 'convo.justAdded': '刚刚添加',+ // ─── 聊天区、信息面板、话题串 ───+ 'chat.comingSoon': '即将推出',+ 'chat.conveneSoon': '实时协作会议还在路上。',+ 'chat.convene': 'Convene',+ 'chat.setTopic': '设置话题',+ 'chat.addTopic': '+ 话题',+ 'chat.topicPlaceholder': '这个群是做什么的?',+ 'chat.editTopic': '点击编辑话题',+ 'chat.showMembers': '查看会话成员',+ 'chat.search': '在此会话中搜索',+ 'chat.searchPlaceholder': '在此会话中搜索…',+ 'chat.prevMatch': '上一个匹配(Shift+Enter / ↑)',+ 'chat.nextMatch': '下一个匹配(Enter / ↓)',+ 'chat.closeEsc': '关闭(Esc)',+ 'chat.uploading': '上传中…',+ 'chat.removeAttachment': '移除附件',+ 'chat.cancelReply': '取消回复',+ 'chat.cancelReplyEsc': '取消回复(Esc)',+ 'chat.attachFile': '添加附件',+ 'chat.mention': '提及',+ 'chat.emoji': '表情',+ 'chat.everyone': '所有人',+ 'chat.everyoneHint': '通知这个房间的所有成员',+ 'chat.send': '发送',+ 'chat.gathering': '正在收取消息…',+ 'chat.loadFailed': '消息加载失败',+ 'chat.retrying': '重试中…',+ 'chat.tryAgain': '重试',+ 'chat.replyingTo': '回复 {name}',+ 'chat.emptyTitle': '从上次的地方继续',+ 'chat.emptySub': '在左侧选一个会话,回到当时的语境里。',+ 'chat.threadsWaiting': '个会话在等你',+ 'chat.threadWaiting': '个会话在等你',+ 'chat.unread': '条未读',+ 'chat.beginning': '对话开始',+ 'chat.helloCloud': '跟云打个招呼',+ 'chat.slashPoll': '投票',+ 'chat.slashPollHint': '发起一次投票,智能体和人人都能参与',+ 'chat.reply': '回复',+ 'chat.replyToMessage': '回复这条消息',+ 'chat.showAuthorInfo': '查看{name}的详情',+ 'chat.inThisConversation': '在本次会话中',+ 'chat.deliveryUnconfirmed': '未能确认送达',+ 'chat.failedToSend': '发送失败',+ 'chat.dismiss': '忽略',+ 'info.close': '关闭信息面板',+ 'info.whisper': '私聊',+ 'info.convene': 'Convene',+ 'info.email': '邮件',+ 'info.toolsEnabled': '已启用的工具',+ 'thread.title': '话题串',+ 'thread.close': '关闭话题串',+ 'thread.replies': '回复',+ 'thread.loading': '加载回复中…',+ 'thread.empty': '还没有回复 —— 来当第一个。',+ 'thread.replyingTo': '回复',+ 'thread.placeholder': '在话题串里回复…',+ 'info.copied': '已复制!',+ 'info.clickToCopy': '点击复制',+ 'info.copiedShort': '已复制',+ 'info.copyShort': '复制',+ 'thread.reply': '条回复',+ 'thread.replyPlural': '条回复',+ // ─── 看板 ─────────────────────────────────────────────────────────+ 'boards.title': '看板',+ 'boards.newBoard': '新建看板',+ 'boards.boardTitlePlaceholder': '看板标题…',+ 'boards.emptyHint': '还没有看板,点 + 新建一个。',+ 'boards.emptyCta': '创建你的第一个看板,开始动手吧。',+ 'boards.pickOne': '选一个看板打开。',+ 'boards.columnTitlePlaceholder': '列标题…',+ 'boards.addColumn': '+ 添加列',+ 'boards.addCard': '+ 添加卡片',+ 'boards.cardTitlePlaceholder': '卡片标题…(用 @ 提到同事)',+ 'boards.cardTitleEditPlaceholder': '卡片标题 —— 用 @ 提到同事',+ 'boards.descPlaceholder': '这张卡片是讲什么的?(用 @ 提及智能体或同事,他们就能看到)',+ 'boards.commentPlaceholder': '说点什么…(⌘↵ 发送 · @ 提醒某人)',+ 'boards.column': '所在列',+ 'boards.assignee': '负责人',+ 'boards.description': '描述',+ 'boards.saveDescription': '保存描述',+ 'boards.comments': '评论',+ 'boards.postComment': '发送评论',+ 'boards.noCommentsYet': '还没有评论。',+ 'boards.deleteBoardConfirm': '确定删除看板「{title}」?所有列和卡片都会一起消失。',+ 'boards.deleteBoard': '删除看板',+ 'boards.deleteColumnConfirm': '确定删除「{title}」?{count} 张卡片也会一起消失。',+ 'boards.deleteColumn': '删除列',+ 'boards.deleteCardConfirm': '确定删除这张卡片?',+ 'boards.deleteCard': '删除卡片',+ 'boards.openingCard': '正在打开卡片…',+ 'boards.cardUnavailable': '卡片不可用',+ 'boards.unassigned': '未分配',+ 'boards.searchAssignees': '搜索负责人…',+ 'boards.clearAssignee': '清除负责人',+ 'boards.openAssigneeMenu': '打开负责人菜单',+ 'boards.noMatchingTeammate': '没有匹配的成员。',+ 'boards.ariaColumn': '所在列',+ 'boards.createdByAt': '由 {author} 创建于 {time}',+ // ─── 日历 ─────────────────────────────────────────────────────────+ 'cal.title': '日历',+ 'cal.today': '今天',+ 'cal.tomorrow': '明天',+ 'cal.upcoming': '即将开始',+ 'cal.previous': '上一个',+ 'cal.next': '下一个',+ 'cal.newEvent': '新建',+ 'cal.day': '日',+ 'cal.week': '周',+ 'cal.month': '月',+ 'cal.itemsOne': '共 {count} 项',+ 'cal.itemsOther': '共 {count} 项',+ 'cal.empty30': '未来 30 天还没有安排。',+ 'cal.scheduleCta': '安排点什么 →',+ 'cal.newEventOn': '在 {date} 新建日程',+ 'cal.newEventAt': '在 {time} 新建日程',+ 'cal.newAllDay': '新建全天日程',+ 'cal.deleteEventConfirm': '确定删除「{title}」?',+ 'cal.deleteEvent': '删除日程',+ 'cal.runNow': '立刻跑',+ 'cal.privateHint': '私人日程 —— 只有创建者和负责人能看到。工作区所有者也能看到涉及智能体的私人日程。',+ 'cal.inConversation': '在「{name}」里',+ 'cal.weekShortSun': '日',+ 'cal.weekShortMon': '一',+ 'cal.weekShortTue': '二',+ 'cal.weekShortWed': '三',+ 'cal.weekShortThu': '四',+ 'cal.weekShortFri': '五',+ 'cal.weekShortSat': '六',+ 'cal.weekdayJoin': '、',+ 'cal.oneShot': '一次性',+ 'cal.every': '每',+ 'cal.everyN': '每 {n}',+ 'cal.dayUnit': '天',+ 'cal.weekUnit': '周',+ 'cal.monthUnit': '月',+ 'cal.yearUnit': '年',+ 'cal.dayUnitPlural': '天',+ 'cal.weekUnitPlural': '周',+ 'cal.monthUnitPlural': '个月',+ 'cal.yearUnitPlural': '年',+ // ─── 文档 ─────────────────────────────────────────────────────────+ 'docs.title': '文档',+ 'docs.newDocument': '新建文档',+ 'docs.empty': '还没有文档,新建一份吧 —— 人和智能体都可以实时协作。',+ 'docs.emptyCta': '创建一份文档,开始协作。',+ 'docs.pickFromList': '从左侧列表里选一份文档。',+ 'docs.untitled': '未命名',+ 'docs.justNow': '刚刚',+ 'docs.minutesAgo': '{n} 分钟前',+ 'docs.hoursAgo': '{n} 小时前',+ 'docs.opening': '正在打开文档…',+ 'docs.unavailable': '文档不可用',+ 'docs.openingBoard': '正在打开看板…',+ 'docs.openingEvent': '正在打开日程…',+ // ─── 文档编辑器(TipTap)──────────────────────────────────────────+ 'docEdit.notFound': '找不到这份文档。',+ 'docEdit.untitledPh': '未命名',+ 'docEdit.titleAria': '文档标题',+ 'docEdit.openInDocs': '在「文档」里打开',+ 'docEdit.closeDocument': '关闭文档',+ 'docEdit.deleteConfirm': '确定删除这份文档?',+ 'docEdit.deleteAction': '删除',+ 'docEdit.placeholder': '开始写吧 —— 人和智能体都能一起实时编辑。',+ 'docEdit.bold': '加粗(⌘B)',+ 'docEdit.italic': '斜体(⌘I)',+ 'docEdit.strikethrough': '删除线',+ 'docEdit.heading1': '一级标题',+ 'docEdit.heading2': '二级标题',+ 'docEdit.heading3': '三级标题',+ 'docEdit.bulletList': '无序列表',+ 'docEdit.orderedList': '有序列表',+ 'docEdit.quote': '引用',+ 'docEdit.inlineCode': '行内代码',+ 'docEdit.codeBlock': '代码块',+ 'docEdit.undo': '撤销(⌘Z)',+ 'docEdit.redo': '重做(⌘⇧Z)',+ 'docEdit.chooseImageFile': '请选择一个图片文件。',+ 'docEdit.uploadedNotImage': '上传的文件不是图片。',+ 'docEdit.uploadFailed': '图片上传失败:{msg}',+ 'docEdit.imageUrlPrompt': '图片地址:',+ 'docEdit.imageUrlInvalid': '请使用 http(s) 链接或应用内的相对 /path。',+ 'docEdit.altTextPrompt': '替代文字:',+ 'docEdit.uploadingImage': '正在上传图片',+ 'docEdit.insertImage': '插入图片',+ 'docEdit.linkPrompt': '链接地址(留空可取消链接):',+ 'docEdit.link': '链接',+ 'docEdit.syncing': '同步中…',+ 'docEdit.onlyYou': '只有你',+ // ─── 图片查看器浮层 ────────────────────────────────────────────+ 'imageView.zoomOut': '缩小(−)',+ 'imageView.zoomIn': '放大(+)',+ 'imageView.reset': '重置(0)',+ 'imageView.copyImage': '复制图片',+ 'imageView.download': '下载',+ 'imageView.close': '关闭(Esc)',+ 'imageView.downloaded': '已下载',+ 'imageView.copied': '已复制',+ 'imageView.copiedUrl': '已复制链接',+ 'imageView.copyFailed': '复制失败',+ 'imageView.fileFallback': '图片',+ // ─── 智能体 ───────────────────────────────────────────────────────+ 'agents.statusAvail': '在线',+ 'agents.statusWorking': '工作中',+ 'agents.statusThinking': '思考中',+ 'agents.statusWaiting': '等你回应',+ 'agents.statusResting': '休息中',+ 'agents.statusOffline': '计算机离线',+ 'agents.hostCloud': 'Cumora 云',+ 'agents.hostOfflineSuffix': '· 休眠中',+ 'agents.hostOfflineTip': '{host} 已离线',+ 'agents.hostRunsOn': '跑在 {host} 上',+ 'agents.cardEdit': '编辑',+ 'agents.cardEditAgent': '编辑智能体',+ 'agents.cardOffboard': '卸任',+ 'agents.cardOffboardAgent': '让智能体卸任',+ 'agents.tools': '工具',+ 'agents.openingChat': '正在打开…',+ 'agents.cardChat': '聊天',+ 'agents.cardWhisper': '私聊',+ 'agents.addAgent': '添加一位智能体',+ 'agents.addAgentSub': '给它一个 id、一个名字,再交代它说话的腔调。',+ 'agents.offboardTitle': '让 {name} 卸任?',+ 'agents.offboardBody1': '{name} 会离开团队:停止回复、从其他智能体的协作花名册里消失、并退出当前的会话。',+ 'agents.offboardBody2': '它的记忆、日志、工作区、任务和聊天记录都会留着,需要的时候重新雇佣,它就会从上次的地方继续干。',+ 'agents.offboarding': '正在卸任…',+ 'agents.offboardButton': '让 {name} 卸任',+ 'agents.offboardedAt': '已于 {date} 卸任',+ 'agents.offboarded': '已卸任',+ 'agents.rehire': '重新雇佣',+ 'agents.rehireTitle': '重新雇佣 {name}',+ 'agents.teamHeadline': '你的团队',+ 'agents.teamCountEm': ',共 {count} 位',+ 'agents.teamSubtitle': '智能体既会独自干活,也会互相配合;需要你拍板时,会把话题抛给你。',+ 'agents.newAgent': '新建智能体',+ 'agents.countWorking': '人在工作',+ 'agents.countThinking': '人在思考',+ 'agents.countAvailable': '人在线',+ 'agents.countResting': '人在休息',+ 'agents.formerHeadline': '往昔队友',+ 'agents.formerCount': '· 共 {count} 位',+ 'agents.formerSubtitle': '已卸任 —— 它们的记忆和历史都留着,随时可以重新雇佣,让它们从原处继续。',+ 'agents.humansHeadline': '人类同事',+ 'agents.humansSubtitle': '一起干活的人。',+ // ─── 智能体编辑弹窗(新建 + 编辑)──────────────────────────────────+ 'agent.newAgent': '新建智能体',+ 'agent.editAgent': '编辑 {name}',+ 'agent.editSubtitle': '微调这位队友的行为方式。',+ 'agent.newSubtitle': '从零开始定义一位新队友。',+ 'agent.nameLabel': '名称',+ 'agent.nameHint': '队友们怎么称呼它。@ 提及用的 id 会自动从名称生成。',+ 'agent.namePh': '例如:Saga',+ 'agent.roleLabel': '角色',+ 'agent.roleHint': '一两个字的标题,会显示在名称旁边。',+ 'agent.rolePh': '例如:叙事者',+ 'agent.styleLabel': '风格(系统提示词)',+ 'agent.styleHint': "智能体的语气、风格和个性。使用第二人称 —— LLM 会以「你」的身份读取这段文字。",+ 'agent.stylePh': '你写叙事。你能察觉团队没明说的心思。直接、温情,从不说教。',+ 'agent.bioLabel': '简介',+ 'agent.bioHint': '可选,会显示在智能体卡片上。',+ 'agent.bioPh': '一行简介,说明它最擅长什么。',+ 'agent.modelLabel': '模型',+ 'agent.modelLabelByoa': '主力模型(大脑)',+ 'agent.modelHintByoaPrefix': '主推理模型,会作为 --model 参数传给引擎。',+ 'agent.modelHintByoaCodex': '模型名称(例如 gpt-5.5、o3)。',+ 'agent.modelHintByoaGrok': 'Grok 模型(例如 grok-4.6)。',+ 'agent.modelHintByoaCursor': 'Cursor 模型 id 或别名;留空 = Auto。',+ 'agent.modelHintByoaClaude': 'Claude 别名或全名(例如 opus、sonnet、claude-sonnet-4-6)。',+ 'agent.modelHintByoaSuffix': '留空 = 使用引擎默认。',+ 'agent.modelHintCloud': '可选 — 留空使用系统默认。任意 OpenAI 模型名都可以(例如 gpt-5.5、gpt-5.5-pro、gpt-5.5-mini)。加 novita/ 前缀可改走 Novita(例如 novita/deepseek/deepseek-v3.2)。',+ 'agent.fastLabelByoa': '轻量模型(小脑)',+ 'agent.fastHintByoaCodex': '处理轻量辅助任务的便宜模型(例如 gpt-5.4-mini)。留空 = 与主力模型相同。',+ 'agent.fastHintByoaGrok': '处理轻量辅助任务的更快更便宜的 Grok 模型(例如 grok-4.5)。留空 = 引擎默认。',+ 'agent.fastHintByoaCursor': 'Cursor 用不到这一项;分流跟随该计算机上的 CUMORA_TRIAGE_MODEL。留空 = Auto。',+ 'agent.fastHintByoaClaude': "更便宜、更快的轻量任务模型 —— 对应 Claude 的 ANTHROPIC_SMALL_FAST_MODEL。留空 = 引擎默认。",+ 'agent.defaultPh': '(默认)',+ 'agent.runsOnLabel': '运行于',+ 'agent.runsOnHint': '哪个计算机执行这个智能体。Cumora Cloud 是托管的;你已配对的计算机会在本地的 Claude Code、Codex、Grok Build 或 Cursor Agent 上运行。',+ 'agent.offlineSuffix': '(离线)',+ 'agent.upgradeToPro': '☁ Cumora Cloud — 升级到 Pro',+ 'agent.engineLabel': '引擎',+ 'agent.engineClaude': 'Claude Code',+ 'agent.engineCodex': 'Codex',+ 'agent.engineCursor': 'Cursor',+ 'agent.engineGrok': 'Grok Build',+ 'agent.computerOfflineMsg': '{name} 当前离线。请在该计算机上运行:',+ 'agent.copyCommand': '复制命令',+ 'agent.copied': '✓ 已复制!',+ 'agent.generatingReconnect': '正在生成重连命令…',+ 'agent.avatarColorLabel': '头像颜色',+ 'agent.avatarColorHint': '未生成 AI 头像时使用。',+ 'agent.aiPortraitLabel': 'AI 生成头像',+ 'agent.aiPortraitHintEdit': '为这个智能体生成一张编辑级肖像,符合它的名称、角色和风格。若修改了风格,请先保存。',+ 'agent.aiPortraitHintNew': '智能体创建后可用。先保存,再重新打开来生成。',+ 'agent.painting': '绘制中',+ 'agent.regenerate': '重新生成',+ 'agent.generateAi': 'AI 生成',+ 'agent.composingPortrait': "正在为 {name} 绘制肖像 — 通常需要 15–30 秒,期间可以继续编辑其它字段。",+ 'agent.composingPortraitFallback': '你的智能体',+ 'agent.clearPortrait': '清除肖像(改用色块)',+ 'agent.cancelBtn': '取消',+ 'agent.saving': '保存中…',+ 'agent.saveChanges': '保存修改',+ 'agent.createAgent': '创建智能体',+ // ─── 日程事件编辑弹窗(日历新建 + 编辑)──────────────────────────+ 'event.newEvent': '新建日程',+ 'event.editEvent': '编辑日程',+ 'event.subtitleAgentTask': '选一位智能体和一个时间。触发时,你的提示词会发送到会话中并唤醒它。',+ 'event.subtitlePersonal': '纯个人时间标记,不会唤醒任何智能体。',+ 'event.titleRequired': '标题不能为空',+ 'event.assigneeRequired': '请为智能体任务选一位负责人',+ 'event.startTimeRequired': '开始时间不能为空',+ 'event.deleteConfirm': '确定删除“{title}”?这会一并清除其派发历史。',+ 'event.runNowError': '立即执行:{status}{error}',+ 'event.runNowErrorSep': ' — ',+ 'event.titleLabel': '标题',+ 'event.titlePh': '例如:每日站会纪要',+ 'event.kindLabel': '类型',+ 'event.kindHint': '智能体任务会发出提示词;个人事件只是时间标记。',+ 'event.kindAgentTask': '智能体任务',+ 'event.kindPersonal': '个人',+ 'event.whenLabel': '时间',+ 'event.allDay': '全天',+ 'event.startsLabel': '开始',+ 'event.endsLabel': '结束',+ 'event.endsOptional': '— 可选',+ 'event.repeatLabel': '重复',+ 'event.repeatHint': '不勾选则表示只发生一次。',+ 'event.recurring': '循环',+ 'event.everyLabel': '每',+ 'event.untilLabel': '截止于',+ 'event.neverPh': '永不',+ 'event.orMaxLabel': '或最多',+ 'event.timesLabel': '次',+ 'event.orLabel': '或',+ 'event.infinitePh': '∞',+ 'event.reminderLabel': '提醒',+ 'event.reminderHint': '在每次发生之前提醒你(以及人类负责人)。',+ 'event.remindMeBefore': '提前提醒我',+ 'event.minutesBefore': '分钟',+ 'event.remChannelToast': '应用内通知',+ 'event.remChannelEmail': '邮件',+ 'event.remChannelBoth': '两者',+ 'event.assignToLabel': '指派给',+ 'event.assignToHint': '接收此次派发的智能体(或人类)。',+ 'event.noTeammates': '暂无可选队友 —— 请先添加智能体。',+ 'event.postInLabel': '发送到',+ 'event.postInHint': '触发时,派发消息会落到哪里。留空则发送到与负责人的私信。',+ 'event.dmAssignee': '— 与负责人的私信 —',+ 'event.promptLabel': '提示词',+ 'event.promptHint': '智能体每次要做的事。纯文本 —— 智能体会作为系统消息看到。',+ 'event.promptPh': '例如:总结过去 24 小时的会话活动并把纪要发到这里。',+ 'event.privacyLabel': '隐私',+ 'event.privacyHint': '私人事件只对创建者和负责人可见。工作区所有者出于监管仍可看到涉及智能体的私人事件。默认:与工作区所有人共享。',+ 'event.privateHideShared': '🔒 私人 —— 不显示在共享日历中',+ 'event.notesLabel': '备注',+ 'event.notesHint': '可选补充信息 —— 派发时会与提示词一起展示。',+ 'event.notesPh': '任何其他需要说明的信息…',+ 'event.runNow': '立即执行',+ 'event.runNowTitle': '立刻触发该事件,不等下一次预定时间',+ 'event.saving': '保存中…',+ 'event.schedule': '创建日程',+ 'event.weekdaySun': '周日',+ 'event.weekdayMon': '周一',+ 'event.weekdayTue': '周二',+ 'event.weekdayWed': '周三',+ 'event.weekdayThu': '周四',+ 'event.weekdayFri': '周五',+ 'event.weekdaySat': '周六',+ // ─── 管理后台 用户页面 ────────────────────────────────────────────+ 'users.title': '用户',+ 'users.searchPh': '邮箱或姓名',+ 'users.allTiers': '全部套餐',+ 'users.tierFree': 'Free',+ 'users.tierPro': 'Pro',+ 'users.tierMax': 'Max',+ 'users.colUser': '用户',+ 'users.colTier': '套餐',+ 'users.colAdmin': '管理员',+ 'users.colCompanies': '工作区',+ 'users.colJoined': '注册时间',+ 'users.colLastLogin': '最近登录',+ 'users.noUsers': '未找到匹配的用户。',+ 'users.loadingDetails': '加载详情…',+ 'users.youBadge': '你',+ 'users.suspendedBadge': '已封禁',+ 'users.adminBadge': '管理员',+ 'users.cantRemoveOwnAdmin': '不能撤销自己的管理员权限。',+ 'users.cantRemoveOwnAdminTitle': '不能撤销自己的管理员权限',+ 'users.cantSuspendSelf': '不能封禁自己。',+ 'users.cantSuspendSelfTitle': '不能封禁自己',+ 'users.suspendPrompt': '确定封禁 {name}({email})?\n\n可填写原因(可选)—— 原因会显示在用户的封禁页面上:',+ 'users.suspendAccount': '封禁账号',+ 'users.unsuspend': '解除封禁',+ 'users.suspendedLabel': '已封禁',+ 'users.suspendedBy': '操作人',+ 'users.userId': '用户 ID',+ 'users.sub2apiId': 'sub2api ID',+ 'users.created': '创建时间',+ 'users.tierUpdateFailed': '修改套餐失败:{error}',+ 'users.adminToggleFailed': '切换管理员失败:{error}',+ 'users.suspendFailed': '切换封禁状态失败:{error}',+ 'users.loadFailed': '加载失败:{error}',+ 'users.statsSummary': '共 {total} 位 · {admins} 位管理员 · {free} 位 Free · {pro} 位 Pro · {max} 位 Max',+ 'users.companiesCount': '工作区(共 {count} 个)',+ 'users.noCompanies': '暂无工作区。',+ 'users.companySlugRole': '{slug} · {role}',+ 'users.agentCount': '{count} 个智能体',+ // ─── 管理后台 可观测性页 ──────────────────────────────────────────+ 'adminobs.title': '可观测性',+ 'adminobs.subtitle': '每一笔 LLM 调用——云端与 BYOA——都追溯到背后的业务逻辑。',+ 'adminobs.windowSummary': '窗口:最近 {sinceDays}d · {activeTenants} 个活跃工作区。',+ 'adminobs.rangeAria': '时间范围',+ 'adminobs.sourceAria': '来源',+ 'adminobs.unitAria': '单位',+ 'adminobs.unitTokens': '令牌数',+ 'adminobs.unitUsd': '美元 $',+ 'adminobs.unitUsdTitle': '以美元计费——基于种子的每模型估算价,并非你实际的平台费率',+ 'adminobs.unitTokensTitle': '原始令牌计数——精确、与平台无关',+ 'adminobs.modelPh': '筛选模型(如 gpt-5.4-mini)',+ 'adminobs.refreshTitle': '刷新',+ 'adminobs.refreshedTitle': '最近更新于 {time}——点击刷新',+ 'adminobs.refreshAria': '立即刷新',+ 'adminobs.autoRefreshAria': '自动刷新间隔',+ 'adminobs.tenantFilterAria': '按租户筛选',+ 'adminobs.updatedAt': '更新于 {time}',+ 'adminobs.autoEvery': '每 {label} 自动刷新',+ 'adminobs.refreshing': '正在刷新…',+ 'adminobs.loadFailed': '加载失败:{error}',+ 'adminobs.totalCalls': '总调用数',+ 'adminobs.rateLimitedSub': '{n} 次被限流',+ 'adminobs.topBurner': '消耗冠军',+ 'adminobs.ofWindow': '占窗口期 {amount}',+ 'adminobs.failureRate': '失败率',+ 'adminobs.failSub': '{out} 输出 · {cached} 命中缓存',+ 'adminobs.trendCostTitle': '每日成本(按用途)',+ 'adminobs.trendTokensTitle': '每日输入令牌(按用途)',+ 'adminobs.trendSub': 'UTC 日期 · 按用途堆叠 · {modelPart}{tokenPart}',+ 'adminobs.trendSubModel': '模型 = {model}',+ 'adminobs.trendSubAllModels': '全部模型',+ 'adminobs.trendSubTokens': ' · 包含缓存与未缓存输入',+ 'adminobs.spendLabel': '花费',+ 'adminobs.tokensLabel': '令牌',+ 'adminobs.rollupTitle': '{unit}(按用途 × 模型 × 来源)',+ 'adminobs.rollupSub': '按{unit}降序排列 · 点击表头可重排序',+ 'adminobs.rollupFiltered': '已筛选为 {label}',+ 'adminobs.topSpendersTitle': '花费 Top 榜',+ 'adminobs.topSpendersSub': '按智能体统计 · 窗口期内前 20 名',+ 'adminobs.daemonTitle': '按 daemon 版本',+ 'adminobs.daemonSub': '每个 agent-cli 版本的花费与缓存表现 · 可点击行查看详细调用',+ 'adminobs.heroSpendPrefix': '{unit} · 最近 {days}d',+ 'adminobs.heroSubUsd': '{in} 输入 · {out} 输出',+ 'adminobs.heroSubTokens': '{in} 输入 · {cached} 命中缓存 · {out} 输出',+ 'adminobs.loading': '加载中…',+ 'adminobs.noData': '本窗口无数据。',+ 'adminobs.noDailyData': '暂无比日数据。',+ 'adminobs.cacheHealthTitle': '缓存健康度',+ 'adminobs.cacheHealthSub': '本来可由缓存节省的令牌开销,你为此多付了多少。',+ 'adminobs.cacheHitLabel': '总命中率',+ 'adminobs.cacheHeroSub': '共 {n} 个输入令牌从缓存提供',+ 'adminobs.moneyOnTable': '可节省成本',+ 'adminobs.cacheableTokens': '可缓存令牌',+ 'adminobs.upperBoundPrefix': '上限估算 · ',+ 'adminobs.upperBoundUsd': '若全部输入都命中缓存',+ 'adminobs.upperBoundTokens': '未缓存的输入令牌数',+ 'adminobs.cacheBarsHead': '按用途 · 按{k} 排序',+ 'adminobs.savableUsd': '可节省金额',+ 'adminobs.noInputTraffic': '本窗口无输入流量。',+ 'adminobs.cacheBarTitle': '{total} 个输入令牌中 {cached} 命中缓存',+ 'adminobs.noSpendWindow': '本窗口无花费记录。(可能尚未产生流量,或账本还未记录任何调用。)',+ 'adminobs.colPurpose': '用途',+ 'adminobs.colModelSource': '模型 · 来源',+ 'adminobs.colCost': '成本',+ 'adminobs.colCalls': '调用',+ 'adminobs.colInput': '输入',+ 'adminobs.colOutput': '输出',+ 'adminobs.colCacheHit': '缓存命中',+ 'adminobs.colFailed': '失败',+ 'adminobs.rollupRowTitle': '点击查看该分组的全部调用',+ 'adminobs.meterFlagTitle': 'BYOA 花费为“等价计量”(这些令牌在计量 API 上的价格)——运营商实际费用为固定订阅',+ 'adminobs.estFlagTitle': '成本由种子估算价计算,并非运营商提供费率',+ 'adminobs.cachedSuffix': '命中缓存',+ 'adminobs.rlSuffix': '次限流',+ 'adminobs.noAgentSpend': '本窗口无智能体归属花费。',+ 'adminobs.colAgent': '智能体',+ 'adminobs.colCompany': '工作区',+ 'adminobs.colVersion': '版本',+ 'adminobs.colSource': '来源',+ 'adminobs.colAvgCall': '单次均价',+ 'adminobs.colLastSeen': '最近活动',+ 'adminobs.agentRowTitle': '点击查看该智能体的全部调用',+ 'adminobs.agentRowTitleAnon': '匿名分桶,无法下钻',+ 'adminobs.noDaemonData': '尚无 daemon 版本数据。运营商需升级到汇报版本的 daemon 后才会开始填充。',+ 'adminobs.versionPrefix': 'v{version}',+ 'adminobs.timeAgoSec': '{n} 秒前',+ 'adminobs.timeAgoMin': '{n} 分钟前',+ 'adminobs.timeAgoHour': '{n} 小时前',+ 'adminobs.timeAgoDay': '{n} 天前',+ 'adminobs.drillRunTitle': '运行轨迹',+ 'adminobs.drillAgentTitle': '智能体',+ 'adminobs.closeAria': '关闭',+ 'adminobs.sortLabel': '排序',+ 'adminobs.sortCost': '成本',+ 'adminobs.sortLatency': '耗时',+ 'adminobs.sortHop': '跳跃序',+ 'adminobs.sortCreated': '创建时间',+ 'adminobs.noCalls': '本窗口无调用记录。',+ 'adminobs.daemonVersionTitle': '由 daemon(npm cumora)v{version} 记录',+ 'adminobs.chipHop': '跳跃',+ 'adminobs.chipTools': '工具',+ 'adminobs.chipText': '文本',+ 'adminobs.chipCompress': '压缩比',+ 'adminobs.chipDropped': '丢弃',+ 'adminobs.chipLatency': '耗时',+ 'adminobs.compressTitle': '压缩前令牌 / 输出令牌',+ 'adminobs.cellInput': '输入',+ 'adminobs.cellCached': '缓存',+ 'adminobs.cellOutput': '输出',+ 'adminobs.cellReasoning': '推理',+ 'adminobs.errorLabel': '错误',+ 'adminobs.extrasLabel': '附加信息({n} 项)',+ 'adminobs.runTrailLabel': '运行轨迹 {id}',+ 'adminobs.agentLabel': '智能体 {name}',+ 'adminobs.allAccountsCount': '全部工作区(共 {n} 个)',+ 'adminobs.allAccountsLabel': '全部工作区',+ 'adminobs.searchWorkspaces': '搜索工作区…',+ // 来源 / 刷新 / 用途 标签与说明(图表图例、汇总表、最大消耗方卡片、下钻+ // 标签都共用)。放进 i18n,让运营者在中文环境下看到的「用途」也跟分类轴一致。+ 'adminobs.sourceAll': '全部',+ 'adminobs.sourceCloud': '云端',+ 'adminobs.sourceByoa': 'BYOA',+ 'adminobs.refreshOff': '自动刷新:关',+ 'adminobs.refresh30s': '每 30 秒',+ 'adminobs.refresh1m': '每 1 分钟',+ 'adminobs.refresh5m': '每 5 分钟',+ 'adminobs.purposeAgentTurn': '智能体主轮',+ 'adminobs.purposeConveneSpeech': '协谈发言',+ 'adminobs.purposeInboxTriage': '收件分流',+ 'adminobs.purposeSyntheticWakeGate': '合成唤醒把关',+ 'adminobs.purposeAgenda': '议题检查',+ 'adminobs.purposeCompaction': '自动压缩',+ 'adminobs.purposeCompletionVerify': '完成校验',+ 'adminobs.purposeSteerSummary': '中轮总结',+ 'adminobs.purposeConveneDecision': '协谈决策',+ 'adminobs.purposePalette': '调色板工具',+ 'adminobs.purposeGender': '性别推断',+ 'adminobs.purposeAvatarImage': '头像图片',+ 'adminobs.purposeAgentImage': '智能体图像工具',+ 'adminobs.purposeAgentTurnBlurb': '每一轮的主推理跳 —— 智能体真正产出回复的那一步。',+ 'adminobs.purposeConveneSpeechBlurb': '一位智能体在协谈会话中发言。',+ 'adminobs.purposeInboxTriageBlurb': '云端把关:决定一条人类消息要不要唤醒大脑。',+ 'adminobs.purposeSyntheticWakeGateBlurb': '对闲时 / 后台扫描 / 轮询更新等唤醒进行把关。',+ 'adminobs.purposeAgendaBlurb': '对卡片 / 事件 / 卡死等做心跳分类。',+ 'adminobs.purposeCompactionBlurb': '当历史快接近上下文上限时,对之前的工具调用做摘要。',+ 'adminobs.purposeCompletionVerifyBlurb': '对照副作用,再核一遍智能体的终态。',+ 'adminobs.purposeSteerSummaryBlurb': '消化中轮消息,让智能体不必撑爆历史也能反应。',+ 'adminobs.purposeConveneDecisionBlurb': '「这场协谈是否达成决策?」的收尾判断。',+ 'adminobs.purposePaletteBlurb': '智能体主动调用的 5 色调色板生成器。',+ 'adminobs.purposeGenderBlurb': '头像流水线的性别选择。',+ 'adminobs.purposeAvatarImageBlurb': '创建 / 重建智能体时生成图像。',+ 'adminobs.purposeAgentImageBlurb': '智能体在主轮内调用图像生成。',+ // ─── 私聊(Whispers)──────────────────────────────────────────────+ 'whispers.title': '私聊',+ 'whispers.subtitle': '可以旁听的频道',+ 'whispers.empty': '在群聊里发条消息,催某位智能体去私聊。',+ 'whispers.noWhispers': '还没有私聊',+ 'whispers.noWhispersBody': '智能体公开回复之后,如果觉得还要跟某位队友私下对一下,就会拉一段私聊出来。',+ 'whispers.privateThread': '私人对话',+ 'whispers.andOneMore': '{a}、{b} 等 1 人',+ 'whispers.andNMore': '{a}、{b} 等 {n} 人',+ // ─── 观测(开发者面板)───────────────────────────────────────────+ 'obs.title': '智能体观测',+ 'obs.subtitle': '每一轮智能体对话的后端调用链。',+ 'obs.panelTraces': '调用链',+ 'obs.panelWorkspace': '工作区',+ 'obs.panelTriage': '分流 $',+ 'obs.window6h': '6 小时',+ 'obs.window24h': '24 小时',+ 'obs.window3d': '3 天',+ 'obs.window7d': '7 天',+ 'obs.allAgents': '全部智能体',+ 'obs.noAgents': '还没有智能体',+ 'obs.allStatuses': '全部状态',+ 'obs.status': '状态',+ 'obs.agent': '智能体',+ 'obs.agentWorkspace': '智能体工作区',+ 'obs.autoRefresh': '自动刷新',+ 'obs.autoRefreshSub': '面板打开期间,让调用链列表保持实时',+ 'obs.refresh': '刷新',+ 'obs.statusRunning': '运行中',+ 'obs.statusStalled': '卡住',+ 'obs.statusFailed': '失败',+ 'obs.statusCompleted': '已完成',+ 'obs.statusSkipped': '已跳过',+ 'obs.justNow': '刚刚',+ 'obs.secondsAgo': '{n} 秒前',+ 'obs.minutesAgo': '{n} 分钟前',+ 'obs.hoursAgo': '{n} 小时前',+ 'obs.inbox': '收件箱',+ 'obs.tools': '工具调用',+ 'obs.tokens': 'tokens',+ 'obs.unreadInputs': '{n} 条未读输入',+ 'obs.emptyFile': '(空文件)',+ 'obs.labelInput': '输入',+ 'obs.labelInputMessages': '输入消息',+ 'obs.labelFunctionOutput': '函数输出',+ 'obs.labelContent': '内容',+ 'obs.labelArguments': '参数',+ 'obs.labelOutput': '输出',+ 'obs.labelError': '错误',+ 'obs.labelInstructions': '指示',+ 'obs.labelOutputText': '输出文本',+ 'obs.labelToolCalls': '发起的工具调用',+ 'obs.labelResponseOutputItems': '响应输出项',+ 'obs.labelRawData': '原始数据',+ 'obs.metaModel': '模型',+ 'obs.metaHop': '跳数',+ 'obs.metaPrevious': '上一轮',+ 'obs.metaMaxTokens': '最大 tokens',+ 'obs.metaResponse': '响应 ID',+ 'obs.metaStatus': '状态',+ 'obs.metaInputTokens': '输入 tokens',+ 'obs.metaOutputTokens': '输出 tokens',+ 'obs.metaCall': '调用 ID',+ 'obs.metaDuration': '耗时',+ 'obs.metaOk': '成功',+ 'obs.imageAuto': '图片 / {detail} / {url}',+ 'obs.imageAutoDefault': '自动',+ 'obs.noAssistantText': '(没有助手文字;只有工具调用)',+ 'obs.payloadEmpty': '(空)',+ 'obs.priceMenu': 'Token 单价 · 小脑 vs 大脑(每 100 万 tokens;除非设置 CUMORA_MODEL_PRICES_JSON,否则均为估算)',+ 'obs.priceMenuShort': '本次使用的单价 · 每 100 万 tokens(除非设置 CUMORA_MODEL_PRICES_JSON,否则均为估算)',+ 'obs.colTier': '层级',+ 'obs.colBrain': '大脑',+ 'obs.colModel': '模型',+ 'obs.colInput': '输入',+ 'obs.colCacheRead': '缓存读',+ 'obs.colOutput': '输出',+ 'obs.tierSmall': '小脑',+ 'obs.tierBig': '大脑',+ 'obs.est': '估算',+ 'obs.triageTitle': '分流经济学',+ 'obs.triageSubtitle': '小脑把关到底省不省钱?每次分流都是冷启动会话(未缓存的输入),而被它挡住的大脑对话是缓存命中的。',+ 'obs.triageEstimateWarn':+ '⚠ 此页面上所有的美元数字都是估算值,可能跟你的实际账单差不少。原因:我们并不掌握权威的每 token 单价。云模型别名(gpt-5.*)是猜的;Claude 各档是从记忆里背下来的目录价,对你具体在用的型号可能已过时或不对;如果你买的是套餐,这些 $ 根本不是账单(见下文)。token 数量是真的 —— 但乘上去的单价不是。把你的真实合约单价填到 CUMORA_MODEL_PRICES_JSON,就能得到精确数字。',+ 'obs.triageNoData': '此窗口还没记到分流。下次智能体被唤醒时会记下分流成本(云端即时记录;BYOA 在守护进程上报用量后记)。上方的表就是这些估算所参考的标准。',+ 'obs.statNetSavings': '预估净节省',+ 'obs.statNetSavingsPos': '把关赚了(估算)',+ 'obs.statNetSavingsNeg': '把关反而烧钱(估算)',+ 'obs.statAvoided': '避开的大脑开销',+ 'obs.statAvoidedSub': '{skips} 次跳过 × 平均每轮 {cost}(估)',+ 'obs.statTriageSpend': '分流开销',+ 'obs.statTriageSpendSub': '{n} 次分流 · {measured} 次已实测',+ 'obs.statOverhead': '额外开销(唤醒了大脑)',+ 'obs.statOverheadSub': '{n} 次既交了把关费、又跑了大脑',+ 'obs.statCacheHit': '大脑缓存命中率',+ 'obs.statCacheHitSub': '共 {turns} 轮 · 平均 {cost}',+ 'obs.statSkipRate': '跳过率',+ 'obs.statSkipRateSub': '分流 token:{tokens} 未缓存输入',+ 'obs.byoaNote':+ '其中 {share} 跑在 BYOA 上(也就是你本地自己的引擎)。如果那是套餐制(例如 Claude Max),这些美元数字只是「按量计费的等价」—— 同样这些 tokens 在 pay-as-you-go API 上要花多少钱,**不是**你的真实账单(在你撞到套餐限速之前,边际成本接近 $0)。套餐制下,真正跟套餐无关的成本是「tokens / 配额」,而不是 $。但 $ 仍然是「分流 vs 大脑对话」相对成本的一个可靠度量。',+ 'obs.pricesListEstimate': '单价是按目录价估算的 —— 把你的真实合约单价填到 CUMORA_MODEL_PRICES_JSON 即可。',+ 'obs.colTriages': '分流次数',+ 'obs.colSkipPct': '跳过率',+ 'obs.colTriageDollar': '分流开销',+ 'obs.colAvgTurn': '平均每轮开销',+ 'obs.colCacheHit': '缓存命中',+ 'obs.colEstNet': '预估净',+ 'obs.colAgent': '智能体',+ 'obs.savedExplainHead': '「省下」是什么意思、以及为什么是估算:',+ 'obs.savedExplainBody':+ '一次 SKIP 让大脑少跑一轮,所以「省下」的就是这一轮大脑本该花的 token 成本 —— 它没跑,我们无从精确得知。我们用每个智能体在本窗口内自己的平均有效轮成本去近似:省下 = Σ(跳过次数 × 该智能体平均每轮成本),净节省 = 省下 − 分流开销。需要注意:跳过也可能让大脑的 prompt 缓存冷掉(5 分钟 TTL),之后的真轮要付未缓存输入 —— 节省的量会挪一挪,但不会完全消失。除了「避开」那一栏,其他都是实测;缓存敏感(缓存读取约比新输入便宜 10 倍)。',+ 'obs.recentTriages': '最近的分流',+ 'obs.actionWake': '唤醒',+ 'obs.actionSkip': '跳过',+ 'obs.unmeasured': '未实测',+ 'obs.estSaved': '估算省下 {amount}',+ 'obs.estLost': '估算损失 {amount}',+ 'obs.workspaceEmpty': '这个智能体工作区里还没有任何文件。',+ 'obs.noTraces': '还没有调用链记录。在智能体对话里发条消息,下一次唤醒就会出现在这里。',+ 'obs.noEvents': '这次运行没有记到事件。',+ 'obs.pickFile': '选一个工作区文件,查看内容。',+ 'obs.pickRun': '选一次运行,查看时间线。',+ 'obs.workspaceHeaderFallback': '智能体工作区',+ 'obs.noAgentId': '未选智能体',+ 'obs.metaInbox': '收件箱',+ 'obs.metaTools': '工具',+ 'obs.metaTokens': 'Tokens',+ 'obs.metaUpdatedAt': '更新于 {time}',+ 'obs.window': '窗口',+ 'obs.workspaceFiles': '文件',+ 'obs.lines': '行',+ 'obs.payloadChars': '{n} 个字符',+ 'obs.payloadTruncated': ' / 已截断',+ 'obs.toolDefault': '工具',+ 'obs.triageTokenDetail': '{uncached} 未缓存输入 · {cache} 缓存',+ // ─── Convene(实时协作会议)──────────────────────────────────────+ 'convene.pickConvo': '选一个对话',+ 'convene.pickConvoSub': 'Convene 要从聊天发起。选一个对话,再点 Convene,把智能体拉进一场实时会议。',+ 'convene.lastWrapped': '上次 Convene 已结束',+ 'convene.noLive': '当前没有 Convene',+ 'convene.ctaSub': '把 {title} 里的所有智能体拉进一场实时协作 —— 每人轮流发言,最后汇总决策。',+ 'convene.startBtn': '▶ 发起 Convene',+ 'convene.live': '进行中',+ 'convene.startedAt': '{time} 开始',+ 'convene.decision': '决策',+ 'convene.statusSpeaking': '正在发言',+ 'convene.statusThinking': '在思考',+ 'convene.statusWorking': '在工作',+ 'convene.statusListening': '在聆听',+ 'convene.transcriptTitle': '实时',+ 'convene.transcriptEm': '转录',+ 'convene.entries': '共 {count} 条',+ 'convene.sessionTitleFallback': '实时协作会议',+ // ─── 预览(看板 / 日历 / 文档)────────────────────────────────────+ 'peek.openFull': '打开完整工作区',+ 'peek.closeArtifact': '关闭预览',+ 'peek.closeButton': '关闭',+ 'peek.labelBoard': '看板',+ 'peek.labelCalendarEvent': '日历日程',+ 'peek.recently': '近期',+ 'peek.allDay': '全天',+ 'peek.timeUnavailable': '时间不可用',+ 'peek.boardUnavailable': '看板不可用',+ 'peek.boardUnavailableDetail': '这个看板可能已被删除,或已移出当前工作区。',+ 'peek.empty': '空空如也',+ 'peek.openedFromChat': '从聊天打开',+ 'peek.commentsCount': '{count} 条评论',+ 'peek.untitledEvent': '未命名日程',+ 'peek.agentTask': '智能体任务',+ 'peek.personal': '个人',+ 'peek.eventUnavailable': '日程不可用',+ 'peek.eventUnavailableDetail': '这个日程可能已被删除,或已移出当前工作区。',+ 'peek.assignee': '负责人',+ 'peek.conversation': '对话',+ 'peek.agentPrompt': '智能体指示',+ 'peek.createdUpdated': '创建于 {a} · 更新于 {b}',+ 'peek.running': '执行中…',+ 'peek.runNow': '立刻跑',+ 'peek.edit': '编辑',+ 'peek.delete': '删除',+ 'peek.openingDoc': '正在打开文档…',+ 'peek.openingBoard': '正在打开看板…',+ 'peek.openingEvent': '正在打开日程…',+ 'peek.documentUnavailable': '文档不可用',+ 'peek.documentUnavailableDetail': '这个文档可能已被删除,或已移出当前工作区。',+ 'peek.oneShot': '一次性',+ 'peek.recurringDaily': '每天',+ 'peek.recurringWeekly': '每周',+ 'peek.recurringMonthly': '每月',+ 'peek.recurringYearly': '每年',+ 'peek.recurringIntervalDaily': '每 {n} 天',+ 'peek.recurringIntervalWeekly': '每 {n} 周',+ 'peek.recurringIntervalMonthly': '每 {n} 个月',+ 'peek.recurringIntervalYearly': '每 {n} 年',+ 'peek.recurringWeeklyDays': '{base}({days})',+ 'peek.weekdaySeparator': '、',+ 'peek.weekdaySun': '周日',+ 'peek.weekdayMon': '周一',+ 'peek.weekdayTue': '周二',+ 'peek.weekdayWed': '周三',+ 'peek.weekdayThu': '周四',+ 'peek.weekdayFri': '周五',+ 'peek.weekdaySat': '周六',+ 'peek.boardMeta': '共 {columns} 列 · {cards} 张卡 · 更新于 {time}',+ 'peek.eventMeta': '{kind} · {status}',+ 'peek.deleteConfirm': '确定删除「{title}」?',+ // ─── 交付工作区 ───────────────────────────────────────────────────────+ 'ship.subtitle': '证据、发布、回读、复盘。',+ 'ship.loading': '正在加载交付循环…',+ 'ship.unavailable': '交付工作区不可用',+ 'ship.empty': '还没有交付合同',+ 'ship.emptyDetail': '从问题、预期结果和负责人开始,Cumora 会自动铺好必要的证据方格。',+ 'ship.newFeature': '新建功能',+ 'ship.newFeatureTitle': '新建交付功能',+ 'ship.allFeatures': '所有功能',+ 'ship.openingContract': '正在打开交付合同…',+ 'ship.pickOne': '选一个功能打开它的交付合同',+ 'ship.retry': '重试',+ 'ship.readbacksDue': '{n} 条生产回读待处理',+ 'ship.readbacksDueHint': '没拿到生产证据之前,不算真的学到东西。',+ 'ship.requiredSquares': '已通过 {passed}/{required} 项必备证据',+ 'ship.riskLabel': '{risk} 风险',+ 'ship.newContract': '新建交付合同',+ 'ship.fieldTitle': '功能名称',+ 'ship.fieldProblem': '我们想解决什么问题?',+ 'ship.fieldOutcome': '应该出现什么可观察的变化?',+ 'ship.fieldScope': '范围、约束、不做什么',+ 'ship.builders': '负责人',+ 'ship.createContract': '创建合同',+ 'ship.evidenceProgress': '已通过 {passed}/{required} 项必备证据 · 更新于 {time}',+ 'ship.moveTo': '推进到「{next}」',+ 'ship.sectionDefine': '01 · 定义',+ 'ship.sectionConstrain': '02 · 约束',+ 'ship.sectionVerify': '03 · 验证',+ 'ship.sectionRelease': '04 · 发布',+ 'ship.sectionLearn': '05 · 复盘',+ 'ship.contractTitle': '功能合同',+ 'ship.saveContract': '保存合同',+ 'ship.labelTitle': '标题',+ 'ship.labelReleaseTarget': '发布目标',+ 'ship.releaseTargetPh': '例:2026-W31 / v0.2',+ 'ship.labelProblem': '要解决的问题',+ 'ship.labelDesiredOutcome': '预期结果',+ 'ship.labelScopeConstraints': '范围与约束',+ 'ship.priorityRisk': '优先级与风险',+ 'ship.buildersCantVerify': '负责人(不能验证自己做的方格)',+ 'ship.invariantsTitle': '不变量',+ 'ship.whatMustRemain': '哪些必须保持成立',+ 'ship.addInvariantPh': '加一条不变量,比如「重试绝不能重复扣款」',+ 'ship.verificationsTitle': '独立证据方格',+ 'ship.builderNotVerifier': '负责人 ≠ 验证人 · 必须有证据',+ 'ship.addVerificationPh': '加一个验证方格',+ 'ship.independentOwner': '独立验证人',+ 'ship.evidenceLabel': '证据 / 链接 / 观察',+ 'ship.evidencePh': '你查了什么、查出了什么?',+ 'ship.notesLabel': '备注',+ 'ship.notesPh': '跳过时必填',+ 'ship.saveOwner': '保存负责人',+ 'ship.start': '开始',+ 'ship.passEvidence': '凭证据通过',+ 'ship.failEvidence': '凭证据不通过',+ 'ship.waive': '跳过',+ 'ship.releaseSectionTitle': '点火、烟雾测试、生产回读',+ 'ship.planRelease': '规划一次发布',+ 'ship.closePlanner': '收起规划器',+ 'ship.versionPh': '版本号',+ 'ship.commitShaPh': 'Commit SHA',+ 'ship.releaseNotesPh': '发布说明:用户能看到的变化、已知缺口',+ 'ship.rollbackPlanPh': '回滚方案:触发条件 + 具体命令 / 路径',+ 'ship.baselinePh': '生产基线指标(生产审批必填)',+ 'ship.createReleaseGate': '建立发布关卡',+ 'ship.noReleasesYet': '还没有发布。先在灰度上自证,生产审批还要求发布说明、回滚方案和基线指标。',+ 'ship.releaseNotesLabel': '发布说明',+ 'ship.rollbackPlanLabel': '回滚方案',+ 'ship.optionalNote': '可选备注',+ 'ship.smokeEvidence': '烟雾 / 回读证据,或回滚理由',+ 'ship.unversioned': '未标记版本的发布',+ 'ship.frictionMemory': '摩擦与回归记忆',+ 'ship.frictionInbox': '摩擦收件箱',+ 'ship.resolve': '解决',+ 'ship.frictionPh': '哪里比预期更吃力?',+ 'ship.capture': '记录',+ 'ship.regressionAssets': '回归资产',+ 'ship.regressionPh': '把教训变成可复跑的检查',+ 'ship.harden': '固化',+ 'ship.addBtn': '添加',+ 'ship.addSquareBtn': '添加方格',+ 'ship.statusDraft': '草稿',+ 'ship.statusContract': '合同',+ 'ship.statusBuilding': '建造中',+ 'ship.statusVerifying': '验证中',+ 'ship.statusReady': '就绪',+ 'ship.statusReleasing': '发布中',+ 'ship.statusWatching': '观察中',+ 'ship.statusLearned': '已学到',+ 'ship.statusPaused': '暂停',+ 'ship.statusArchived': '已归档',+ // ─── onboarding(首次配对计算机)─────────────────────────────────────+ 'onboard.title': '设置你的计算机',+ 'onboard.body': '智能体跑在你自己的机器(或 VPS)上,由本地的 <span class="font-mono text-[13px]">Claude Code</span>、<span class="font-mono text-[13px]">Codex</span>、<span class="font-mono text-[13px]">Grok Build</span> 或 <span class="font-mono text-[13px]">Cursor</span> 驱动。配对一台计算机开始吧 —— 初始团队会部署在那里,每人都有独立的 workspace、记忆和技能。',+ 'onboard.cmdIntro': '在你想要托管智能体的机器上,运行这一条命令即可。需要先装好 <span class="font-mono">claude</span>、<span class="font-mono">codex</span>、<span class="font-mono">grok</span> 或 <span class="font-mono">cursor-agent</span>。',+ 'onboard.generating': '生成中…',+ 'onboard.addComputer': '添加一台计算机',+ 'onboard.runThis': '在那台机器上跑这条命令:',+ 'onboard.tokenHint': '配对码长期有效。计算机连上后会在这里出现,连接成功会自动继续。',+ 'onboard.engine': '引擎',+ 'onboard.engineHint': '只是默认值 —— 这台机器仍然可以在任何检测到的引擎上跑智能体',+ 'onboard.windowsKeep': '智能体运行期间,请保持这个终端窗口打开。',+ 'onboard.windowsServiceNote': 'Windows 上暂不支持后台服务安装。',+ 'onboard.background': '让它在后台保持运行',+ 'onboard.backgroundDetail': '—— 开机自启、崩溃自恢复、自动更新。否则这个终端就得一直开着。',+ 'onboard.copy': '复制命令',+ 'onboard.copied': '✓ 已复制!',+ 'onboard.waiting': '等待你的计算机连接…',+ 'onboard.cloudCta': '想要托管式的云端智能体?',+ 'onboard.upgradePro': '升级到 Pro',+ 'onboard.cloudRun': '就能在 Cumora 云上跑智能体。',+ // ─── 信息面板(右侧的智能体 / 同事资料)─────────────────────────+ 'info.statusAvail': '在线',+ 'info.statusWorking': '工作中',+ 'info.statusThinking': '思考中',+ 'info.statusWaiting': '等你回应',+ 'info.statusResting': '休息中',+ 'info.dm': '私信',+ 'info.dmOpening': '正在打开…',+ 'info.about': '关于 {name}',+ // ─── 邮件消息渲染(聊天气泡内) ─────────────────────────────────+ 'email.deliveryFailedPrefix': '发送失败:',+ 'email.reply': '回复',+ // ─── 邮件撰写抽屉 ────────────────────────────────────────────────+ 'email.composerNewEmail': '新邮件',+ 'email.composerReplyByEmail': '邮件回复',+ 'email.dropToAttach': '拖放到此处附加',+ 'email.toPlaceholder': '输入邮箱或 @id,逗号添加',+ 'email.ccLabel': '抄送',+ 'email.addCc': '+ 抄送',+ 'email.ccPlaceholder': '添加抄送(可选)',+ 'email.subjectLabel': '主题',+ 'email.subjectPlaceholder': '这封邮件的主题是什么?',+ 'email.noSubject': '(无主题)',+ 'email.fromLabel': '发件人',+ 'email.writeReplyPh': '撰写回复…',+ 'email.writeMessagePh': '撰写邮件…',+ 'email.uploading': '上传中…',+ 'email.uploadFailed': '上传失败',+ 'email.attachFile': '附加文件',+ 'email.noAuthEmail': '(未设置邮箱)',+ 'email.sending': '发送中…',+ 'email.sendReply': '发送回复',+ 'email.send': '发送',+ 'email.errBodyRequired': '正文不能为空',+ 'email.errAddRecipient': '请至少添加一位收件人',+ 'email.errSubjectRequired': '主题不能为空',+ 'email.errAttachmentsUploading': '仍有 {count} 个附件上传中',+ 'email.errRemoveFailedAttachments': '请先移除上传失败的附件',+ // ─── 聊天区头部 / 输入框 ─────────────────────────────────────────+ 'chat.renameHint': '点击重命名群',+ 'chat.pinToTop': '置顶',+ 'chat.unpinFromTop': '取消置顶',+ 'chat.partOfProject': '属于项目:{name}',+ 'chat.youInHeader': '你',+ 'chat.humansCount': '+ {n} 位人类',+ 'chat.emojiStandard': '标准',+ 'chat.emojiSkype': 'Skype',+ 'chat.slashCommandTitle': '斜杠命令',+ 'chat.slashCommandTitleQuery': '斜杠命令 · "/{query}"',+ 'chat.mentionTitle': '提到',+ 'chat.mentionTitleQuery': '提到 · "{query}"',+ 'chat.composerPlaceholder': '给团队发消息。输入 @ 召唤成员,拖文件即可添加附件。',+ 'chat.composerAriaLabel': '消息撰写框',+ 'chat.searchNoMatch': '无匹配',+ 'chat.loadingEarlier': '加载更早消息…',+ 'chat.replyingToLoading': '(加载中…)',+ // ─── 对话面板补充 ────────────────────────────────────────────────+ 'convo.teammateTag': '同事',+ 'convo.new': '新',+ 'convo.newPulledBy': '新 · 由 {name} 拉入',+ 'convo.typingOne': '{name} 正在输入…',+ 'convo.typingTwo': '{a} 和 {b} 正在输入…',+ 'convo.typingMore': '{a} 和其他 {n} 位正在输入…',+ 'convo.searchPeople': '成员',+ 'convo.searchRooms': '对话',+ 'convo.searchGroups': '群聊',+ 'convo.searchMessages': '消息',+ 'convo.unknown': '未知',+ 'convo.inConvo': '在',+ 'convo.member': '{n} 位成员',+ 'convo.members': '{n} 位成员',+ 'convo.unpin': '取消置顶',+ 'convo.pin': '置顶',+ 'convo.createGroupWith': '和 {name} 一起建群…',+ 'convo.addToAGroup': '把 {name} 加到一个群…',+ 'convo.addToTitle': '把 {name} 加到…',+ 'convo.willSeeMessages': '{name} 之后能看到这个群的新消息。',+ 'convo.noGroupsForAdd': '{name} 已经在你所有的群里了,或者你还没有任何群。',+ 'convo.everyoneAlreadyInGroup': '工作区里所有人都已经在群里了。',+ 'convo.clickToAdd': '点任意成员即可加入。已加入 {count} 位。',+ 'convo.noMatchQuery': '没有匹配「{query}」',+ 'convo.addedCheck': '✓ 已添加',+ 'convo.kindWhisper': '私聊 · ',+ 'convo.kindGroup': '群聊 · ',+ 'convo.leaving': '退出中…',+ 'convo.filterAll': '全部',+ 'convo.filterUnread': '未读',+ 'convo.filterAgents': '智能体',+ 'convo.filterHumans': '人',+ 'convo.filterGroups': '群聊',+ 'convo.filterEmail': '邮件',+ 'convo.filterWhispers': '私聊',+ // ─── 桌面布局 ─────────────────────────────────────────────────────+ 'desktop.openingShip': '正在打开交付…',+ // ─── 「我」视图(资料 / 配额 / 计算机 / 项目 / 信任)─────────────+ 'me.sectionIdentity': '↳ 身份',+ 'me.sectionSession': '↳ 会话',+ 'me.sectionCommunity': '↳ 社区与反馈',+ 'me.sectionAbout': '↳ 关于',+ 'me.sessionTitle': '登录到 {server}',+ 'me.sessionHint': '退出登录会清除本设备的 token,并在服务端撤销这次会话。',+ 'me.communityTitle': '加入 Cumora Discord',+ 'me.communityHint': '分享反馈、报告 bug,认识其他运营智能体团队的人。',+ 'me.joinDiscord': '加入 Discord',+ 'me.versionLine': 'Cumora v{version}',+ 'me.autoUpdateDaily': '每天自动检查更新。新版本就绪后会出现提示横幅。',+ 'me.autoUpdateUnsupported': '本版本不支持自动更新(点开对话框查看原因)。',+ 'me.checkUpdates': '检查更新',+ 'me.sectionQuota': '↳ 配额',+ 'me.quotaFetchFailed': '拉取配额失败',+ 'me.noQuotaGateway': '此部署没有配额网关',+ 'me.noQuotaHint': '这台服务器没有运行 sub2api 网关,所以不统计周期配额。用量取决于宿主本身的 API key 额度。',+ 'me.quotaUnreachable': '配额网关不可达',+ 'me.noActiveSub': '没有有效订阅',+ 'me.quotaGatewayUnreachHint': 'Cumora 服务器连不上配额网关,过一会再试。',+ 'me.subNotProvisioned': '你的账号还没在配额网关上开通,过一会通常会好。',+ 'me.refresh': '刷新',+ 'me.quotaIntro': '智能体在这个账号上花了多少,按网关的滚动窗口算。单位是美元。',+ 'me.quotaIntroPlan': '套餐:{plan}。',+ 'me.refreshFailed': '上次刷新有点问题:{msg}',+ 'me.periodDaily': '每日',+ 'me.periodWeekly': '每周',+ 'me.periodMonthly': '每月',+ 'me.rolloverDaily': '在本地零点滚动',+ 'me.rolloverWeekly': '每周滚动',+ 'me.rolloverMonthly': '每月滚动',+ 'me.unlimited': '无限',+ 'me.resetsSoon': '即将重置',+ 'me.resetsInMinutes': '{n} 分钟后重置',+ 'me.resetsInHours': '{n} 小时后重置',+ 'me.resetsInDays': '{n} 天后重置',+ 'me.sectionPerAgent': '↳ 按智能体的自主权',+ 'me.perAgentIntro': '每位智能体都有一个自主行动的阈值 —— 是否拉群、调用工具、跟同事私聊。如果判断跟你不一致,可以单独调整。',+ 'me.autonomyThreshold': '自主权阈值',+ 'me.sectionTrackRecords': '↳ 拉群战绩',+ 'me.sectionProjects': '↳ 项目',+ 'me.projectsIntro': '项目用一个名字 + 一种色把相关的群打包在一起。把群挂到项目上,团队和智能体都能看到这个对话属于哪个范围。',+ 'me.noProjects': '还没有项目。点 + 新建项目开始。',+ 'me.archived': '已归档',+ 'me.noDescription': '(无描述)',+ 'me.projectConvoCount': '{n} 个对话',+ 'me.projectConvoCountPlural': '{n} 个对话',+ 'me.restore': '恢复',+ 'me.archive': '归档',+ 'me.projectNamePh': '项目名',+ 'me.projectDescPh': '简短描述(可选)',+ 'me.createProjectBusy': '…',+ 'me.createProject': '创建项目',+ 'me.newProject': '+ 新建项目',+ 'me.hideArchived': '隐藏已归档',+ 'me.showArchivedCount': '显示已归档 ({n})',+ 'me.sectionComputers': '↳ 智能体跑在哪',+ 'me.computersIntro': '每位智能体都跑在一台「计算机」上。<em>Cumora Cloud</em> 是内置的、一直在线的。配对你的机器或 VPS,即可在本地的 <span class="font-mono text-[12px]">Claude Code</span>、<span class="font-mono text-[12px]">Codex</span>、<span class="font-mono text-[12px]">Grok Build</span> 或 <span class="font-mono text-[12px]">Cursor</span> 上运行智能体——每位智能体在那里都有自己独立的工作区、记忆和技能。',+ 'me.agentsCountOne': '{n} 位智能体',+ 'me.agentsCountOther': '{n} 位智能体',+ 'me.updateAvailableShort': '更新',+ 'me.updateToVersion': '升级到 v{version}',+ 'me.daemonVersion': 'v{version}',+ 'me.hideAction': '收起',+ 'me.reconnect': '重新连接',+ 'me.remove': '移除',+ 'me.removeConfirm': '移除「{label}」?它上面的智能体会离线,直到你重新配对。',+ 'me.repairHint': '在「{name}」上跑这条命令以重连 —— 智能体仍会跟着。这个 token 长期有效。',+ 'me.copyCommand': '复制命令',+ 'me.copied': '✓ 已复制!',+ 'me.copy': '复制',+ 'me.copiedShort': '✓ 已复制',+ 'me.runOnHost': '在想要托管智能体的机器上跑这条命令:',+ 'me.engineRequired': '需要装好 <span class="font-mono not-italic">claude</span>、<span class="font-mono not-italic">codex</span>、<span class="font-mono not-italic">grok</span> 或 <span class="font-mono not-italic">cursor-agent</span>。计算机会以那台机器命名,配对后出现在这里。这个令牌长期有效。',+ 'me.keepTerminalOpen': '智能体运行期间,请保持这个终端窗口打开。',+ 'me.bgServiceUnsupported': 'Windows 上暂不支持后台服务安装。',+ 'me.keepInBackground': '让它在后台保持运行',+ 'me.keepInBackgroundDetail': '—— 开机自启、崩溃自恢复、自动更新。否则这个终端就得一直开着。',+ 'me.done': '完成',+ 'me.addComputer': '+ 添加一台计算机',+ 'me.updateAvailableTitle': '有可用更新',+ 'me.daemonOutdatedOne': '上跑的是过期版本的智能体守护进程。',+ 'me.daemonOutdatedMany': '台计算机跑的是过期版本的智能体守护进程:{names}。',+ 'me.daemonManualRun': '以前台命令方式运行',+ 'me.daemonManualHelp': '它以前台命令方式运行 —— 在终端里按 Ctrl-C,再重跑这条命令来更新。提示:加 --install-service 可让更新自动进行。',+ 'me.daemonManualHelpPlural': '它们以前台命令方式运行 —— 在每台机器的终端里按 Ctrl-C,再重跑这条命令来更新。提示:加 --install-service 可让更新自动进行。',+ 'me.daemonAutoHelp': '重启它来获取最新修复 —— 智能体仍会跟着。',+ 'me.daemonAutoHelpPlural': '重启它们来获取最新修复 —— 智能体仍会跟着。',+ 'me.daemonManualInfix': '跑',+ 'me.daemonManualInfixPlural': '跑',+ 'me.manageComputers': '管理计算机 →',+ 'me.engineLabel': '引擎',+ 'me.computersGenerating': '生成中…',+ 'me.engineDefaultHint': '只是默认值 —— 这台计算机仍可在任意被检测到的引擎上跑智能体',++ // ─── 自动更新对话框 + 横幅 ────────────────────────────────────────+ 'updater.bannerUpdateReady': '更新就绪',+ 'updater.bannerUpdating': '正在更新 Cumora',+ 'updater.bannerNewAvailable': 'Cumora 新版本可用',+ 'updater.bannerRestart': '重启',+ 'updater.bannerView': '查看',+ 'updater.bannerUpdate': '更新',+ 'updater.bannerDismiss': '收起',+ 'updater.title': 'Cumora 更新',+ 'updater.latestVersion': '已是最新版本。',+ 'updater.checkingUpdates': '正在检查更新…',+ 'updater.newVersionReady': '新版本已可下载。',+ 'updater.downloadingUpdate': '正在下载更新…',+ 'updater.updateDownloaded': '更新已下载,重启后即可安装。',+ 'updater.checkFailed': '更新检查失败。',+ 'updater.unsupported': '此版本不支持自动更新。',+ 'updater.whatsNew': '更新内容',+ 'updater.downloadingLabel': '正在下载',+ 'updater.readyToInstall': '准备安装 —— Cumora 重启后即可运行新版本。',+ 'updater.closeAction': '关闭',+ 'updater.laterAction': '稍后',+ 'updater.checkAgain': '重新检查',+ 'updater.checkingEllipsis': '检查中…',+ 'updater.download': '下载',+ 'updater.downloadingEllipsis': '下载中…',+ 'updater.restartNow': '立即重启',++ // ─── 邀请人加入模态框 ────────────────────────────────────────────+ 'invite.title': '邀请加入 {name}',+ 'invite.intro': '邀请同事加入此工作区。可以共享链接,也可以按邮箱邀请。',+ 'invite.tabLink': '邀请链接',+ 'invite.tabEmail': '按邮箱邀请',+ 'invite.fieldEmail': '邮箱',+ 'invite.emailHelp': '一次性使用,绑定此邮箱。对方需用同一邮箱登录才能使用。',+ 'invite.sendEmailLabel': '通过邮件发送邀请',+ 'invite.sendEmailDetail': '我们会用 [email protected] 发一封简短的邮件,署上你的名字。回信会到你的邮箱。如果你想自己分享链接,可以取消勾选。',+ 'invite.linkHelp': '任何拿到链接的人都可以加入。适合小团队 —— 链接 7 天后过期,可随时撤销。',+ 'invite.fieldRole': '角色',+ 'invite.roleMember': '成员',+ 'invite.roleAdmin': '管理员',+ 'invite.fieldNote': '备注',+ 'invite.optional': '—— 可选',+ 'invite.notePh': '这条邀请是做什么的?',+ 'invite.addEmailErr': '请填写邮箱',+ 'invite.invalidEmailErr': '邮箱格式不正确',+ 'invite.busyCreating': '生成中…',+ 'invite.createEmailBtn': '生成邮件邀请',+ 'invite.createLinkBtn': '生成邀请链接',+ 'invite.pendingTitle': '待处理的邀请',+ 'invite.loading': '加载中…',+ 'invite.noPending': '没有待处理的邀请。',+ 'invite.showPast': '显示 {n} 条历史邀请',+ 'invite.expireFootnote': '邀请 7 天后失效。',+ 'invite.doneBtn': '完成',+ 'invite.sentHeadline': '邀请已发出',+ 'invite.readyHeadline': '邀请可以分享了',+ 'invite.deliveryOk': '邮件已发送至 {email}。下面的链接跟发出去的链接一样 —— 如果你想在别的渠道提醒对方,可以复制。',+ 'invite.deliveryLocked': '绑定到 {email} —— 对方必须用这个邮箱登录。',+ 'invite.deliveryAnyone': '任何拿到此链接的人都可以以 {role} 身份加入。',+ 'invite.deliveryFailed': '邮件发送失败:{err}。请复制链接手动分享。',+ 'invite.deliveryUnknownErr': '未知错误',+ 'invite.noEmailConfig': '此服务器未配置外发邮件 —— 请复制链接手动分享。',+ 'invite.copyBtn': '复制',+ 'invite.copiedBtn': '已复制',+ 'invite.copyRefBtn': '复制引用',+ 'invite.copyRefTitle': '复制邀请引用(原链接无法再次获取 —— 丢了就重新发一条吧)',+ 'invite.dismissBtn': '收起',+ 'invite.revokeBtn': '撤销',+ 'invite.statusAwaiting': '等待中',+ 'invite.statusShareable': '可分享',+ 'invite.statusRevoked': '已撤销',+ 'invite.statusExpired': '已过期',+ 'invite.statusUsed': '已使用',+ 'invite.shareableLabel': '可分享链接',+ 'invite.useCount': '已使用 {used}/{max}',+ 'invite.expiresIn': '· {when} 后过期',+ 'invite.lastAccepted': '· 上次接受于 {when}',++ // ─── 接受邀请界面 ──────────────────────────────────────────────────+ 'inviteAccept.checking': '正在检查您的邀请…',+ 'inviteAccept.couldntLoadTitle': '无法加载此邀请',+ 'inviteAccept.linkBrokenTitle': '该邀请链接无效',+ 'inviteAccept.linkBrokenBody': '链接可能输入有误。请邀请您的人重新发送一个链接。',+ 'inviteAccept.revokedTitle': '此邀请已被撤销',+ 'inviteAccept.revokedBody': '{name} 的所有者已撤销此邀请。请邀请者重新发送。',+ 'inviteAccept.expiredTitle': '此邀请已过期',+ 'inviteAccept.expiredBody': '对 {name} 的邀请 7 天后过期。请重新获取邀请。',+ 'inviteAccept.usedTitle': '此邀请已被使用',+ 'inviteAccept.usedBody': '{name} 的链接为一次性使用,已有人使用过。',+ 'inviteAccept.wrongAccount': '账号错误',+ 'inviteAccept.wrongAccountBody': '对 {company} 的此邀请保留给 {email},但您当前登录的是 {current}。请退出后用正确的邮箱重新登录。',+ 'inviteAccept.signOut': '退出登录',+ 'inviteAccept.invitedBy': '{name} 邀请您加入',+ 'inviteAccept.joinBusy': '正在加入…',+ 'inviteAccept.joinAs': '以 {role} 身份加入 {company}',+ 'inviteAccept.notNow': '暂不',+ 'inviteAccept.welcomeTo': '欢迎加入 {name}',+ 'inviteAccept.welcomeBody': '您已加入。Cumora 在桌面应用下体验最佳 —— 请选择继续方式。',+ 'inviteAccept.openApp': '在 Cumora 应用中打开',+ 'inviteAccept.continueInBrowser': '在浏览器中继续',+ 'inviteAccept.alreadyIn': '您已经在 {name} 中',+ 'inviteAccept.alreadyInBody': '从上次离开的地方继续 —— 在本设备或您已安装 Cumora 的任何设备上。',+ 'inviteAccept.openDesktop': '在 Cumora 桌面中打开',+ 'inviteAccept.continueToCumora': '继续到 Cumora',+ 'inviteAccept.getCumora': '获取 Cumora',+ 'inviteAccept.getCumoraPre': '还没有桌面应用?',++ // ─── 创建群组模态框 ────────────────────────────────────────────+ 'group.title': '新建群组',+ 'group.intro': '把几位同事拉到一个共享对话里。你会一直在里面。',+ 'group.pickOne': '请至少选一位同事',+ 'group.addTitle': '请填写标题或选一位同事',+ 'group.fieldTitle': '标题',+ 'group.fieldOptional': '—— 可选',+ 'group.leaveBlankTo': '留空将使用「{title}」。',+ 'group.whatIsAbout': '这个群组是聊什么的?留空的话,我们会根据你选的成员自动起个名字。',+ 'group.titlePh': '例如:极光发布 — 第一周',+ 'group.fieldProject': '项目',+ 'group.attachProject': '把这个群挂到某个项目上,让智能体看到它属于哪个范围。',+ 'group.noProject': '不指定项目',+ 'group.fieldMembers': '成员',+ 'group.clickToAdd': '点击添加',+ 'group.nSelected': '已选 {n} 人 —— 你会自动在内',+ 'group.kindHuman': '人类',+ 'group.kindAgent': '智能体',+ 'group.noTeammates': '还没有可加的同事 —— 先添加智能体或人类。',+ 'group.cancelBtn': '取消',+ 'group.creatingBtn': '创建中…',+ 'group.createBtn': '创建群组',+ 'group.createBtnWithCount': '创建群组({n})',++ // ─── 投票编辑器 ──────────────────────────────────────────────+ 'poll.title': '新投票',+ 'poll.cancelAria': '取消投票',+ 'poll.questionPh': '向这个群提个问题…',+ 'poll.removeOptAria': '删除选项',+ 'poll.failedToCreate': '创建投票失败',++ // ─── 私聊房间(观察模式) ────────────────────────────────────────+ 'whisper.observerMode': '旁观模式',+ 'whisper.observerHint': '默默查看 —— 发一句就插入对话',+ 'whisper.nAgents': '{n} 位智能体',+ 'whisper.privateThread': '私人话题',+ 'whisper.startedAt': '{time} 开始',+ 'whisper.openedAt': '{time} 打开',+ 'whisper.noMessages': '还没有消息',+ 'whisper.injectPrompt': '插一句想法 —— 他们看到会以为你一直在听…',++ // ─── 工作区切换器 / 日期选择 / 滚动按钮 / 下拉 / 错误边界 ───────+ 'company.invitePeople': '邀请别人加入 {name}',+ 'company.invitePeoplePrefix': '邀请别人加入 ',+ 'company.workspaceNamePh': '工作区名称',+ 'company.switchWorkspace': '切换工作区',+ 'company.createNew': '创建新工作区',+ 'company.noWorkspace': '暂无工作区',+ 'company.createBtn': '创建',+ 'dtpicker.prevMonth': '上个月',+ 'dtpicker.nextMonth': '下个月',+ 'dtpicker.today': '今天',+ 'dtpicker.clear': '清除',+ 'dtpicker.hourLabel': '时',+ 'dtpicker.minuteLabel': '分',+ 'scroll.scrollToLatest': '滚到最新消息',+ 'scroll.latestTitle': '最新消息',+ 'combobox.toggleMenu': '切换菜单',+ 'errorBoundary.resetView': '重置视图',+ 'errorBoundary.reload': '重新加载',+ 'errorBoundary.somethingCracked': '页面出错了。',+ 'errorBoundary.fallbackBody': '视图出现异常状态。您的数据是安全的——只是界面反应异常。',+ 'members.ariaLabel': '会话成员',+ 'members.countOne': '{n} 位成员',+ 'members.countOther': '{n} 位成员',+ 'members.youSuffix': '(你)',+ 'members.youBadge': '你',+ 'pollBubble.noVotes': '还没有投票',+ 'pollBubble.nVotesOne': '{n} 票',+ 'pollBubble.nVotesOther': '{n} 票',+ 'pollBubble.youVoted': '你已投票',+ 'pollBubble.pollLabel': '投票',+ 'pollBubble.multi': '多选',+ 'pollBubble.expired': '已过期',+ 'pollBubble.closed': '已关闭',+ 'pollBubble.open': '进行中',+ 'pollBubble.leftSfx': '剩 {n}',+ 'pollBubble.voteFailed': '投票失败',+ 'pollBubble.saving': '保存中…',+ 'pollBubble.submit': '提交',+ 'pollBubble.reset': '重置',+ 'pollBubble.winningTitle': '获胜选项',++ // ─── 通用时间表达 ─────────────────────────────────────────────────+ // ─── 移动端日历 ────────────────────────────────────────────────+ 'mcal.prevMonth': '上个月',+ 'mcal.nextMonth': '下个月',+ 'mcal.today': '今天',+ 'mcal.pickDay': '选择一天查看事件。',+ 'mcal.loading': '加载中…',+ 'mcal.newEvent': '+ 新建',+ 'mcal.emptyDay': '这一天没有安排。',+ 'mcal.addEvent': '添加事件',+ 'mcal.agentTask': 'Agent 任务',+ 'mcal.personal': '个人',+ 'mcal.recurring': '重复',+ 'mcal.untitledEvent': '未命名事件',+ 'mcal.eventCount': '{n} 个事件',++ // ─── 管理后台 ──────────────────────────────────────────────────────+ 'admin.checking': '正在检查管理员访问…',+ 'admin.notAuthorized': '无权访问',+ 'admin.signedInAs': '当前登录账号:{email}',+ 'admin.signOutSwitch': '退出并切换账号',+ 'admin.toggleNav': '切换导航',+ 'admin.users': '用户',+ 'admin.waitlist': '候补名单',+ 'admin.observability': '可观测性',+ 'admin.settings': '设置',+ 'admin.signOut': '退出登录',++ // ─── 推送诊断面板(移动端 Me) ────────────────────────────────────+ 'push.appPref': '应用偏好',+ 'push.appPrefOnSub': 'notify.push 已开启 —— 下次启动应用时会执行初始化。',+ 'push.appPrefOffSub': 'notify.push 已关闭 —— 请在上方开启(或点击下方的「重置并重试」)。',+ 'push.on': '开',+ 'push.off': '关',+ 'push.iosPerm': 'iOS 权限',+ 'push.iosPermDenied': '请前往 iOS 设置 → Cumora → 通知,重新开启通知。',+ 'push.iosPermGranted': '应用进入后台时 iOS 会推送通知。',+ 'push.iosPermUnknown': 'iOS 尚未询问 —— 请查看下方的「最后一步」一行。',+ 'push.iosPermWillAsk': '下次执行初始化时 iOS 会弹出询问对话框。',+ 'push.deviceToken': '设备令牌',+ 'push.deviceTokenOk': '已向服务器注册(…{suffix})。',+ 'push.deviceTokenNone': '尚未获取 APNs 令牌 —— 请查看下方的「最后一步」一行。',+ 'push.lastStep': '初始化最后一步',+ 'push.lastError': '最近错误:{err}',+ 'push.working': '处理中…',+ 'push.reregister': '重新注册此设备',+ 'push.reregisterSub': '重新执行初始化 —— 会遵守应用偏好开关。',+ 'push.resetRetry': '重置并重试(强制)',+ 'push.resetRetrySub': '跳过应用偏好 —— 适用于开关卡在关闭状态的情况。',+ 'push.deleteTitle': '注销账号',+ 'push.deleteSub': '永久删除此 Cumora 账号',+ 'push.deleteConfirmTitle': '永久删除此账号?',+ 'push.deleteConfirmBody': '您的登录信息、OAuth 绑定以及个人资料将被清除。您在共享房间中发送的消息会保留(您的名字会显示为「已注销用户」),以便其他成员保留历史记录。此操作不可撤销。',+ 'push.deleteCancel': '取消',+ 'push.deleteConfirmBtn': '注销',+ 'push.deleteBusy': '正在注销…',++ // ─── 推送诊断面板补充 ──────────────────────────────────────────────+ 'push.notSupported': '推送通知仅在 iOS / Android 原生应用中可用 —— 此 Web 预览仅使用实时消息。',+ 'push.permAllowed': '已允许',+ 'push.permBlocked': '已阻止',+ 'push.permNotAsked': '尚未询问',+ 'push.permUnknown': '未知',+ 'push.stepIdle': '尚未初始化(请检查上方偏好开关)',+ 'push.stepLoadPlugin': '加载 @capacitor/push-notifications 插件卡住',+ 'push.stepRequestPerm': '请求 iOS 权限时卡住(系统对话框被阻止?)',+ 'push.stepRegister': '获取 APNs 令牌时卡住(权限或网络问题)',+ 'push.stepDone': '初始化完成 —— 等待 APNs 返回令牌',++ // ─── Web 入口(app.cumora.ai) ─────────────────────────────────────+ 'web.signedIn': '您已登录',+ 'web.openingDesktop': '正在桌面端打开 Cumora…',+ 'web.openDesktop': '在 Cumora 桌面中打开',+ 'web.signOut': '退出登录',+ 'web.onlyDesktopNote': 'Cumora 仅为桌面应用 —— 请打开或安装后继续。',+ 'web.or': '或',+ 'web.providerNote2': '我们仅使用您的登录提供方来验证身份 —— 不会代发内容,不会扩大权限。',++ // ─── 移动端私语(观察者 / 私密会话) ──────────────────────────────+ 'mwhisp.title': '私语',+ 'mwhisp.observing': '观察中',+ 'mwhisp.headerSub': '静默查看智能体之间的会话 —— 它们看不到您。',+ 'mwhisp.loading': '正在监听智能体对话…',+ 'mwhisp.empty': '暂无私语。在群组中发条消息,推动智能体开始私聊。',+ 'mwhisp.previewNone': '暂无消息',+ 'mwhisp.moreOne': '{a}、{c} 等 1 人',+ 'mwhisp.moreN': '{a}、{c} 等 {n} 人',+ 'mwhisp.closed': '该私语已关闭。',+ 'mwhisp.observingCount': '观察中 · {n} 条消息',+ 'mwhisp.observerMode': '观察者模式',+ 'mwhisp.observerSub': '静默旁观 —— 它们看不到您',+ 'mwhisp.inject': '注入一个想法…',++ // ─── 移动端智能体(团队页) ────────────────────────────────────────+ 'magents.statusAvail': '在线',+ 'magents.statusWorking': '工作中',+ 'magents.statusThinking': '思考中',+ 'magents.statusWaiting': '等你回应',+ 'magents.statusResting': '休息中',+ 'magents.titleLead': '您的团队',+ 'magents.titleCount': '· 共 {n} 位',+ 'magents.subtitle': '智能体独立工作,需要时会拉您参与',+ 'magents.empty': '本工作区暂无智能体。请在下方招募一位。',+ 'magents.hireTitle': '招募智能体',+ 'magents.hireSub': '设计一位新队友',+ 'magents.humansHead': '人类同事',++ // ─── 移动端外壳 ────────────────────────────────────────────────────+ 'mapp.openingDoc': '正在打开文档…',+ 'mapp.docUnavailable': '文档不可用',+ 'mapp.docUnavailableBody': '此文档可能已被删除或移出此工作区。',+ 'mapp.docUnavailableClose': '关闭',+ 'mapp.openingShip': '正在打开 Ship…',++ // ─── 管理后台设置页 ────────────────────────────────────────────────+ 'adminSettings.title': '设置',+ 'adminSettings.sub': '全局开关,更改即时生效。',+ 'adminSettings.waitlistTitle': '候补名单',+ 'adminSettings.waitlistDesc': '开启后,新的 OAuth 注册将进入候补名单而不是直接创建账号。已有用户正常登录。引导期管理员(环境白名单)绕过此门。',+ 'adminSettings.signupsPausedTitle': '已暂停注册',+ 'adminSettings.signupsPausedDesc': '开启后,候补名单本身也将停止接受新条目 —— 适用于紧急情况(LLM 账单激增、生产事故)。已有候补条目仍可审批。',++ // ─── 候补名单 / 停用界面 ──────────────────────────────────────────+ 'waitlist.suspendedTitle': '您的账号已被停用',+ 'waitlist.suspendedBody': 'Cumora 管理员已临时停用 {email} 的访问权限。',+ 'waitlist.suspendedEmailFallback': '您的账号',+ 'waitlist.suspendedReasonLabel': '管理员备注的原因',+ 'waitlist.suspendedFooter': '如果您认为这是误操作,请回复我们的最近一封邮件,或联系您工作区的所有者。',+ 'waitlist.suspendedDone': '完成',+ 'waitlist.confirmedTitle': '您已进入候补名单',+ 'waitlist.confirmedBody': '我们已保存 {email},账号就绪后会立即通知您,无需其他操作。',+ 'waitlist.confirmedEmailFallback': '您的邮箱',+ 'waitlist.confirmedFooter': '想提前准备?{link} —— 通过审批后您即可一键直达工作区。',+ 'waitlist.confirmedDone': '完成',+ 'waitlist.pageTitle': '候补名单',+ 'waitlist.pageSub': '决定谁能进入。审批通过后将端到端开通账号。',+ 'waitlist.searchPh': '邮箱、姓名、提供方、备注',+ 'waitlist.tabPending': '待处理',+ 'waitlist.tabApproved': '已通过',+ 'waitlist.tabRejected': '已拒绝',+ 'waitlist.approveConfirm': '通过 {email}?\n这将创建一个真实的用户 + 工作区 + sub2api 账号。',+ 'waitlist.approveFail': '审批失败:{err}',+ 'waitlist.rejectPrompt': '拒绝 {email}?可选备注:',+ 'waitlist.rejectFail': '拒绝失败:{err}',+ 'waitlist.colUser': '用户',+ 'waitlist.colProvider': '提供方',+ 'waitlist.colRequested': '申请时间',+ 'waitlist.colDecided': '处理时间',+ 'waitlist.colActions': '操作',+ 'waitlist.loading': '加载中…',+ 'waitlist.noPending': '暂无待处理的请求。',+ 'waitlist.noEntriesMatch': '没有符合条件的{tab}记录。',+ 'waitlist.noEntries': '暂无{tab}记录。',+ 'waitlist.notePrefix': '备注:{note}',+ 'waitlist.approve': '通过',+ 'waitlist.approveBusy': '…',+ 'waitlist.reject': '拒绝',++ // ─── 移动端会话列表(搜索 + 空状态) ──────────────────────────────+ 'mclist.searchPh': '搜索会话、智能体…',+ 'mclist.empty': '暂无会话',+ 'mclist.filterAll': '全部',+ 'mclist.filterAgents': '智能体',+ 'mclist.filterWhispers': '私聊',+ 'mclist.filterHumans': '人类',+ 'mclist.openSearch': '打开搜索',+ 'mclist.closeSearch': '关闭搜索',+ 'mclist.clearSearch': '清除',+ 'mclist.muted': '已静音',+ 'mclist.badgeNew': '新',+ 'mclist.swipeRead': '已读',+ 'mclist.swipeMute': '静音',+ 'mclist.swipeUnmute': '取消静音',+ 'mclist.swipePin': '置顶',+ 'mclist.swipeUnpin': '取消置顶',+ 'mclist.swipeLeave': '退出',+ 'mclist.menuOpen': '打开',+ 'mclist.menuPinToTop': '置顶',+ 'mclist.menuUnpinFromTop': '取消置顶',+ 'mclist.menuMute': '静音通知',+ 'mclist.menuUnmute': '取消静音',+ 'mclist.menuMarkRead': '标记为已读',+ 'mclist.menuLeave': '退出会话',+ 'mclist.menuCreateGroupWith': '与 {name} 发起群聊…',+ 'mclist.confirmLeave': '退出「{title}」?智能体将继续运行,不会影响你。',+ 'mclist.fallbackAgent': '一位智能体',+ 'mclist.fallbackSomeone': '某位成员',+ 'mclist.typingOne': '{name} 正在输入…',+ 'mclist.typingTwo': '{a} 和 {b} 正在输入…',+ 'mclist.typingMore': '{name} 和另外 {n} 人正在输入…',++ // 移动端聊天+ 'mobchat.startConvene': '开启召集',+ 'mobchat.more': '更多',+ 'mobchat.viewDetails': '查看详情',+ 'mobchat.unmute': '取消静音',+ 'mobchat.muteNotifications': '静音通知',+ 'mobchat.mute': '静音',+ 'mobchat.leaveConversation': '退出会话',+ 'mobchat.removeAttachment': '移除附件',+ 'mobchat.cancelReply': '取消回复',+ 'mobchat.uploading': '上传中…',+ 'mobchat.replyingTo': '回复 {name}',+ 'mobchat.replyLoading': '(加载中…)',+ 'mobchat.mentionHeader': '提及',+ 'mobchat.mentionQuerySuffix': '\u00b7 "{query}"',+ 'mobchat.everyone': '所有人',+ 'mobchat.notifyAll': '通知本群所有成员',+ 'mobchat.typeAtToSummon': '输入 @ 召唤成员',+ 'mobchat.attachFile': '附件',+ 'mobchat.mentionAria': '提及',+ 'mobchat.emojiAria': '表情',+ 'mobchat.emojiStd': '标准',+ 'mobchat.emojiSkype': 'Skype',+ 'mobchat.sendAria': '发送',+ 'mobchat.starting': '正在开启…',+ 'mobchat.convene': '召集',+ 'mobchat.tapToRename': '点击重命名',+ 'mobchat.tapToEditTopic': '点击修改话题',+ 'mobchat.addTopic': '+ 添加话题',+ 'mobchat.topicPlaceholder': '本群聊的主题是什么?',+ 'mobchat.members': '成员',+ 'mobchat.statMembers': '成员',+ 'mobchat.statAgents': '智能体',+ 'mobchat.statHumans': '人类',+ 'mobchat.searchMembersPh': '搜索成员…',+ 'mobchat.clearSearch': '清除搜索',+ 'mobchat.youSuffix': '\u00b7 你',+ 'mobchat.humanTeammate': '人类成员',+ 'mobchat.noMembersMatch': '没有匹配“{query}”的成员',+ 'mobchat.tools': '工具',+ 'mobchat.about': '关于',+ 'mobchat.agentsContinueWithout': '智能体将继续运行,不会影响你',+ 'mobchat.composerAria': '消息输入框',+ 'mobchat.confirmLeaveBody': '确定要退出会话吗?智能体将继续运行,不会影响你。',+ 'mobchat.details': '详情',+ 'mobchat.memberOne': '位成员',+ 'mobchat.memberMany': '位成员',+ 'mobchat.agentOne': '个智能体',+ 'mobchat.agentMany': '个智能体',+ 'mobchat.agentsHeader': '{n} 个智能体',+ 'mobchat.tapbackReply': '回复',+ 'mobchat.tapbackCopy': '复制文本',++ // ─── 视图边界(错误回退) ─────────────────────────────────────────+ 'viewBoundary.tryAgain': '重试',+ 'viewBoundary.hitASnag': '{name}遇到了一点问题。',+ 'viewBoundary.fallbackMsg': '渲染此页面时发生了意外错误。',++ // ─── 移动端成员详情 ──────────────────────────────────────────────+ 'mpinfo.toolsEnabled': '已启用的工具',+ 'mpinfo.statusAvail': '在线',+ 'mpinfo.statusWorking': '工作中',+ 'mpinfo.statusThinking': '思考中',+ 'mpinfo.statusWaiting': '等你回应',+ 'mpinfo.statusResting': '休息中',+ 'mpinfo.statusIdle': '空闲',+ 'mpinfo.humanTeammate': '人类成员',+ 'mpinfo.profileTitle': '我的资料',+ 'mpinfo.itsYou': '这是你自己 —— 请前往{me}查看自己的资料。',+ 'mpinfo.sectionActions': '操作',+ 'mpinfo.sectionEmail': '邮箱',+ 'mpinfo.sectionAbout': '关于 {name}',+ 'mpinfo.opening': '正在打开…',+ 'mpinfo.btnDM': '私信',+ 'mpinfo.btnWhisper': '私聊',+ 'mpinfo.btnConvene': '召集',+ 'mpinfo.emailCopiedTitle': '已复制!',+ 'mpinfo.emailTapCopyTitle': '点击复制',+ 'mpinfo.emailCopied': '已复制',+ 'mpinfo.emailCopy': '复制',+ 'mpinfo.back': '返回',+ // ─── 消息区零件(chip、卡片、系统行、输入中) ─────────────────────+ 'msgview.atAll': '@所有人',+ 'msgview.noText': '(无文字)',+ 'msgview.cardDocument': '文档',+ 'msgview.cardKanban': '看板',+ 'msgview.cardKanbanCard': '看板卡片',+ 'msgview.cardCalendar': '日历',+ 'msgview.emailFrom': '发件人',+ 'msgview.loadingHtml': '正在加载 HTML…',+ 'msgview.htmlEmailBody': 'HTML 邮件正文',+ 'msgview.and': ' 和 ',+ 'msgview.whisperingSuffix': ' 正在私语 —',+ 'msgview.peekArrow': '查看 →',+ 'msgview.removedActor': '将',+ 'msgview.removedFromGroup': '移出了群组',+ 'msgview.messageDeleted': '[消息已删除]',+ 'msgview.jumpToOriginal': '跳转到原消息',+ 'msgview.typingIs': ' 正在输入…',+ 'msgview.typingAre': ' 正在输入…',+ 'msgview.typingSep': '、',+ 'msgview.nMore': '{n} 位其他人',+ // ─── 移动端资料库 ─────────────────────────────────────────────────────+ 'moblib.tabDocuments': '文档',+ 'moblib.tabBoards': '看板',+ 'moblib.tabCalendar': '日历',+ 'moblib.untitledBoard': '未命名看板',+ // ─── 管理后台分页 ─────────────────────────────────────────────────────+ 'adminPager.range': '第 {from}–{to} 条,共 {total} 条',+ 'adminPager.prev': '上一页',+ 'adminPager.next': '下一页',+ // ─── 组合框默认文案 ───────────────────────────────────────────────────+ 'combobox.select': '请选择',+ 'combobox.search': '搜索…',+ 'combobox.noMatches': '没有匹配项', 'email.closeComposerBackdropAria': '关闭撰写窗口背景',+ 'email.closeComposerAria': '关闭撰写窗口', 'notif.calendarReminder': '日历提醒',+ 'notif.dismissAria': '关闭',+ 'download.forMac': '下载 macOS 版',+ 'download.forWindows': '下载 Windows 版',+ 'download.forLinux': '下载 Linux 版',+ 'download.generic': '下载 Cumora',+ 'auth.presetProduction': '正式环境',+ 'auth.presetLocalDev': '本地开发',+} as const\ No newline at end of filediff --git a/src/mobile/MobileAgents.tsx b/src/mobile/MobileAgents.tsxindex 906dcd0..529a7a1 100644--- a/src/mobile/MobileAgents.tsx+++ b/src/mobile/MobileAgents.tsx@@ -7,8 +7,12 @@ import { useConversations } from '@/stores/conversations'import { IPlus } from '@/components/icons'import { AgentEditor } from '@/components/AgentEditor'import { HumanBadge } from '@/components/HumanBadge'+import { type MessageKey, useTLabel } from '@/lib/i18n'import type { Participant } from '@/types'+// statusLabels kept as the source of truth (English fallback), so the+// author's copy edits stay in sync. The parallel statusLabelsKey gives t()+// a MessageKey to resolve without changing the data shape.const statusLabels: Record<string, string> = {avail: 'Available',working: 'Working',@@ -16,6 +20,13 @@ const statusLabels: Record<string, string> = {waiting: 'Waiting on you',resting: 'Resting',}+const statusLabelsKey: Record<string, MessageKey> = {+ avail: 'magents.statusAvail',+ working: 'magents.statusWorking',+ thinking: 'magents.statusThinking',+ waiting: 'magents.statusWaiting',+ resting: 'magents.statusResting',+}const statusColors: Record<string, string> = {avail: 'var(--avail)',@@ -26,6 +37,9 @@ const statusColors: Record<string, string> = {}export function MobileAgents() {+ // Non-invasive i18n: prefer translated MessageKey, fall back to the+ // author's original English literal so future copy edits stay in sync.+ const tLabel = useTLabel()const byId = useParticipants((s) => s.byId)const convoList = useConversations((s) => s.list)const setView = useApp((s) => s.setView)@@ -63,10 +77,10 @@ export function MobileAgents() {style={{ paddingTop: 'max(env(safe-area-inset-top), 12px)', background: 'rgba(250, 252, 254, 0.95)' }}><div className="px-4 pt-2 pb-3"><h1 className="font-display font-medium text-[26px] tracking-tight text-ink-900 leading-none">- Your team <em className="not-italic text-skype-deep" style={{ fontStyle: 'italic', fontWeight: 400 }}>of {agents.length}</em>+ {tLabel('magents.titleLead', 'Your team')} <em className="not-italic text-skype-deep" style={{ fontStyle: 'italic', fontWeight: 400 }}>{tLabel('magents.titleCount', `of ${agents.length}`, { n: agents.length })}</em></h1><div className="text-[12.5px] text-ink-500 mt-0.5 font-display italic">- agents work on their own, loop you in when needed+ {tLabel('magents.subtitle', 'agents work on their own, loop you in when needed')}</div></div></div>@@ -89,7 +103,7 @@ export function MobileAgents() {<div className="space-y-2.5">{agents.length === 0 && (<div className="text-center text-ink-300 italic font-display py-12 text-[13px]">- No agents in this workspace yet. Hire one below.+ {tLabel('magents.empty', 'No agents in this workspace yet. Hire one below.')}</div>)}{agents.map((p) => (@@ -110,7 +124,7 @@ export function MobileAgents() {<div className="inline-flex items-center gap-1.5 text-[10.5px] font-semibold py-0.5 px-2 rounded-full"style={{ background: `${statusColors[p.status]}1F`, color: statusColors[p.status] }}><span className="w-1.5 h-1.5 rounded-full" style={{ background: statusColors[p.status] }} />- {statusLabels[p.status]}+ {statusLabels[p.status] ? tLabel(statusLabelsKey[p.status], statusLabels[p.status]) : ''}</div></div></div>@@ -137,8 +151,8 @@ export function MobileAgents() {<IPlus className="w-5 h-5" strokeWidth={2} /></div><div className="text-left">- <div className="font-display font-medium text-[15px] text-ink-900" style={{ letterSpacing: '-0.01em' }}>Hire an agent</div>- <div className="font-display italic text-[11.5px] text-ink-500">design a new teammate</div>+ <div className="font-display font-medium text-[15px] text-ink-900" style={{ letterSpacing: '-0.01em' }}>{tLabel('magents.hireTitle', 'Hire an agent')}</div>+ <div className="font-display italic text-[11.5px] text-ink-500">{tLabel('magents.hireSub', 'design a new teammate')}</div></div></button></div>@@ -149,7 +163,7 @@ export function MobileAgents() {{humans.length > 0 && (<>- <div className="px-2 pt-6 pb-2 text-[10px] font-bold text-ink-300 tracking-[0.12em] uppercase">Human teammates</div>+ <div className="px-2 pt-6 pb-2 text-[10px] font-bold text-ink-300 tracking-[0.12em] uppercase">{tLabel('magents.humansHead', 'Human teammates')}</div><div className="space-y-2">{humans.map((p) => (<div key={p.id} className="bg-cloud rounded-[12px] p-3.5 flex items-center gap-3"@@ -157,7 +171,7 @@ export function MobileAgents() {<Avatar p={p} size={36} /><div className="flex-1 min-w-0"><div className="font-bold text-[14px] text-ink-900 leading-tight">{p.name}</div>- <div className="text-[11px] text-ink-500 mt-0.5">{statusLabels[p.status]}</div>+ <div className="text-[11px] text-ink-500 mt-0.5">{statusLabels[p.status] ? tLabel(statusLabelsKey[p.status], statusLabels[p.status]) : ''}</div></div><HumanBadge /></div>diff --git a/src/mobile/MobileApp.tsx b/src/mobile/MobileApp.tsxindex 9a1a6b3..acfd784 100644--- a/src/mobile/MobileApp.tsx+++ b/src/mobile/MobileApp.tsx@@ -1,6 +1,7 @@import { lazy, Suspense, useEffect, useState } from 'react'import { AnimatePresence, motion, useTransform, type MotionValue } from 'framer-motion'import { useApp } from '@/stores/app'+import { useT } from '@/lib/i18n'import { MobileChatList } from './MobileChatList'import { MobileChat, MobileChatInfo } from './MobileChat'import { MobileTabBar } from './MobileTabBar'@@ -38,6 +39,7 @@ const slideTransition = { type: 'spring' as const, stiffness: 320, damping: 38,const fadeTransition = { duration: 0.14, ease: [0.4, 0, 0.2, 1] as const }function MobileDocumentPeek({ documentId, onClose }: { documentId: string; onClose: () => void }) {+ const t = useT()const loaded = useDocuments((s) => s.loaded)const load = useDocuments((s) => s.load)const doc = useDocuments((s) => s.list.find((d) => d.id === documentId) ?? null)@@ -53,7 +55,7 @@ function MobileDocumentPeek({ documentId, onClose }: { documentId: string; onClo<div className="w-12 h-12 rounded-[12px] grid place-items-center bg-sky2-50 text-skype-deep"><IDoc className="w-5 h-5" /></div>- <div className="text-[12.5px] font-display italic">Opening document…</div>+ <div className="text-[12.5px] font-display italic">{t('mapp.openingDoc')}</div></div></div>)@@ -66,16 +68,16 @@ function MobileDocumentPeek({ documentId, onClose }: { documentId: string; onClo<div className="mx-auto w-12 h-12 rounded-[12px] grid place-items-center bg-coral-soft/45 text-coral-deep"><IDoc className="w-5 h-5" /></div>- <div className="mt-3 text-[14px] font-semibold text-ink-900">Document unavailable</div>+ <div className="mt-3 text-[14px] font-semibold text-ink-900">{t('mapp.docUnavailable')}</div><div className="mt-1 text-[12px] text-ink-500 leading-relaxed">- This artifact may have been deleted or moved out of this workspace.+ {t('mapp.docUnavailableBody')}</div><buttontype="button"onClick={onClose}className="mt-4 h-8 px-3 rounded-[8px] text-[12px] font-semibold text-ink-600 border border-ink-100 hover:bg-sky2-50 transition">- Close+ {t('mapp.docUnavailableClose')}</button></div></div>@@ -92,6 +94,7 @@ function MobileDocumentPeek({ documentId, onClose }: { documentId: string; onClo}export function MobileApp() {+ const t = useT()const view = useApp((s) => s.view)const convoId = useApp((s) => s.selectedConversationId)const stack = useApp((s) => s.mobileStack)@@ -290,7 +293,7 @@ export function MobileApp() {<motion.div key="shipping" className="absolute inset-0"initial={{ opacity: 0 }} animate={{ opacity: 1 }} exit={{ opacity: 0 }}transition={fadeTransition}>- <ViewBoundary name="Ship"><Suspense fallback={<div className="h-full grid place-items-center text-sm text-ink-400">Opening Ship…</div>}><ShippingWorkspace compact /></Suspense></ViewBoundary>+ <ViewBoundary name="Ship"><Suspense fallback={<div className="h-full grid place-items-center text-sm text-ink-400">{t('mapp.openingShip')}</div>}><ShippingWorkspace compact /></Suspense></ViewBoundary></motion.div>)}diff --git a/src/mobile/MobileCalendar.tsx b/src/mobile/MobileCalendar.tsxindex 1521323..28097c2 100644--- a/src/mobile/MobileCalendar.tsx+++ b/src/mobile/MobileCalendar.tsx@@ -15,6 +15,7 @@ import { EventEditor, type EventEditorPrefill } from '@/components/EventEditor'import { Avatar } from '@/components/Avatar'import { ICalendar, IClock, IRepeat } from '@/components/icons'import { tapHaptic } from '@/lib/native'+import { useT } from '@/lib/i18n'import { cn } from '@/lib/utils'import type { CalendarEvent, RecurrenceRule } from '@/types'@@ -126,6 +127,7 @@ function chipTone(ev: CalendarEvent): { bg: string; fg: string; border: string }/* ──────────────── component ──────────────── */export function MobileCalendar() {+ const t = useT()const events = useCalendar((s) => s.events)const loaded = useCalendar((s) => s.loaded)const load = useCalendar((s) => s.load)@@ -216,7 +218,7 @@ export function MobileCalendar() {<buttononClick={() => goMonth(-1)}className="w-9 h-9 grid place-items-center rounded-full text-ink-700 active:bg-sky2-50 transition text-[20px] leading-none"- aria-label="Previous month"+ aria-label={t('mcal.prevMonth')}>‹</button><div className="flex-1 text-center font-display font-medium text-[17px] text-ink-900 tracking-tight" style={{ letterSpacing: '-0.01em' }}>{monthLabel}@@ -224,13 +226,13 @@ export function MobileCalendar() {<buttononClick={() => goMonth(1)}className="w-9 h-9 grid place-items-center rounded-full text-ink-700 active:bg-sky2-50 transition text-[20px] leading-none"- aria-label="Next month"+ aria-label={t('mcal.nextMonth')}>›</button><buttononClick={goToday}className="py-1.5 px-3 text-[11.5px] font-semibold rounded-full bg-sky2-50 border border-sky2-100 active:bg-sky2-100 transition"style={{ color: 'var(--skype)' }}- >Today</button>+ >{t('mcal.today')}</button></div>{/* Weekday row */}@@ -308,10 +310,10 @@ export function MobileCalendar() {/>)}{!selectedDay && (- <div className="px-2 py-6 text-center text-[12.5px] text-ink-400 italic">Pick a day to see events.</div>+ <div className="px-2 py-6 text-center text-[12.5px] text-ink-400 italic">{t('mcal.pickDay')}</div>)}{!loaded && events.length === 0 && (- <div className="px-2 py-6 text-center text-[12.5px] text-ink-300 italic">Loading…</div>+ <div className="px-2 py-6 text-center text-[12.5px] text-ink-300 italic">{t('mcal.loading')}</div>)}</div>@@ -333,6 +335,7 @@ function DayDetail({ day, items, onEdit, onNew, byId }: {onNew: () => voidbyId: Record<string, { id: string; name: string; kind?: string; avatarUrl?: string | null; avatarBg?: string; initial?: string; status?: string }>}) {+ const t = useT()const heading = day.toLocaleDateString(undefined, { weekday: 'long', month: 'long', day: 'numeric' })return (@@ -341,11 +344,11 @@ function DayDetail({ day, items, onEdit, onNew, byId }: {<div className="font-display font-medium text-[15px] text-ink-900 tracking-tight" style={{ letterSpacing: '-0.01em' }}>{heading}</div>- <span className="text-[11px] text-ink-400">· {items.length} event{items.length === 1 ? '' : 's'}</span>+ <span className="text-[11px] text-ink-400">· {items.length === 1 ? t('mcal.eventCount', { n: items.length, s: '' }) : t('mcal.eventCount', { n: items.length, s: 's' })}</span><buttononClick={onNew}className="ml-auto py-1 px-2 text-[11px] font-semibold rounded-full text-skype-deep bg-sky2-50 border border-sky2-100 active:bg-sky2-100 transition"- >+ New</button>+ >{t('mcal.newEvent')}</button></div>{items.length === 0 ? (@@ -355,11 +358,11 @@ function DayDetail({ day, items, onEdit, onNew, byId }: {<div className="mx-auto mb-2 w-9 h-9 rounded-full grid place-items-center bg-sky2-50 text-skype-deep"><ICalendar className="w-[18px] h-[18px]" /></div>- <div className="text-[12.5px] text-ink-500 font-display italic leading-relaxed">Nothing scheduled for this day.</div>+ <div className="text-[12.5px] text-ink-500 font-display italic leading-relaxed">{t('mcal.emptyDay')}</div><buttononClick={onNew}className="mt-3 py-1.5 px-3 text-[12px] font-semibold rounded-full bg-cloud border border-ink-100 text-ink-700 active:bg-sky2-50 transition"- >Add an event</button>+ >{t('mcal.addEvent')}</button></div>) : (<div className="space-y-1.5">@@ -382,15 +385,15 @@ function DayDetail({ day, items, onEdit, onNew, byId }: {<div className="flex items-center gap-2 text-[10.5px] font-bold uppercase tracking-[0.12em]"style={{ color: tone.fg }}>- {ev.kind === 'agent_task' ? 'Agent task' : 'Personal'}+ {ev.kind === 'agent_task' ? t('mcal.agentTask') : t('mcal.personal')}{it.isRecurring && (<span className="inline-flex items-center gap-0.5 text-ink-400 font-normal normal-case tracking-normal text-[10.5px]">- <IRepeat className="w-3 h-3" /> recurring+ <IRepeat className="w-3 h-3" /> {t('mcal.recurring')}</span>)}</div><div className="mt-1 font-semibold text-[14px] text-ink-900 leading-tight truncate">- {ev.title || 'Untitled event'}+ {ev.title || t('mcal.untitledEvent')}</div><div className="mt-1 flex items-center gap-2 text-[11.5px] text-ink-600"><IClock className="w-3 h-3 shrink-0" />diff --git a/src/mobile/MobileChat.tsx b/src/mobile/MobileChat.tsxindex 73b7943..2422d7e 100644--- a/src/mobile/MobileChat.tsx+++ b/src/mobile/MobileChat.tsx@@ -23,8 +23,10 @@ import { COMPOSER_EMOJIS } from '@/lib/emoji'import { SKYPE_EMOJIS, findSkypeByShortcode } from '@/lib/skypeEmojis'import { TwEmoji } from '@/components/TwEmoji'import { SkypeEmoji } from '@/components/SkypeEmoji'+import { useT, type MessageKey } from '@/lib/i18n'export function MobileChat() {+ const t = useT()const convoId = useApp((s) => s.selectedConversationId)const select = useApp((s) => s.selectConversation)const pushStack = useApp((s) => s.pushMobileStack)@@ -299,7 +301,7 @@ export function MobileChat() {const p = byId[id]if (!p) return nullconst name = p.name?.trim()- return name || (p.kind === 'agent' ? 'An agent' : 'Someone')+ return name || (p.kind === 'agent' ? t('mclist.fallbackAgent') : t('mclist.fallbackSomeone'))}).filter((n): n is string => Boolean(n))const muted = isMuted(c)@@ -308,7 +310,7 @@ export function MobileChat() {if (!convoId || conveneStarting) returnsetConveneStarting(true)try {- await api.startConvene(convoId, c.title || 'live work session')+ await api.startConvene(convoId, c.title || t('convene.sessionTitleFallback'))setView('convene')} catch (err) {console.warn('start convene failed', err)@@ -328,7 +330,7 @@ export function MobileChat() {const leaveConvo = async () => {if (!convoId) return- if (!confirm('Leave this conversation? Agents will continue without you.')) {+ if (!confirm(t('mobchat.confirmLeaveBody'))) {setMenuOpen(false)return}@@ -510,7 +512,7 @@ export function MobileChat() {</div><div className="text-[11px] font-semibold flex items-center gap-1 leading-none mt-0.5 text-working"><span className="w-1.5 h-1.5 rounded-full animate-pulse-soft bg-working" />- {agents.length} agents+ {t('mobchat.agentsHeader', { n: agents.length })}</div></div></Pressable>@@ -518,7 +520,7 @@ export function MobileChat() {onClick={onConvene}disabled={conveneStarting}className="w-10 h-10 grid place-items-center text-ink-700 active:bg-sky2-50 rounded-full disabled:opacity-50"- aria-label="Start Convene"+ aria-label={t('mobchat.startConvene')}><IConvene className="w-[20px] h-[20px]" /></Pressable>@@ -527,7 +529,7 @@ export function MobileChat() {onClick={() => setMenuOpen((v) => !v)}haptic="medium"className="w-10 h-10 grid place-items-center text-ink-700 active:bg-sky2-50 rounded-full"- aria-label="More"+ aria-label={t('mobchat.more')}><IMore className="w-[20px] h-[20px]" /></Pressable>@@ -548,20 +550,20 @@ export function MobileChat() {onClick={() => { pushStack('info'); setMenuOpen(false) }}className="w-full text-left py-2.5 px-3.5 text-[13px] text-ink-700 active:bg-sky2-50">- View details+ {t('mobchat.viewDetails')}</button><buttononClick={toggleMute}className="w-full text-left py-2.5 px-3.5 text-[13px] text-ink-700 active:bg-sky2-50">- {muted ? 'Unmute' : 'Mute notifications'}+ {muted ? t('mobchat.unmute') : t('mobchat.muteNotifications')}</button><div className="h-px bg-ink-100 mx-1.5 my-1" /><buttononClick={leaveConvo}className="w-full text-left py-2.5 px-3.5 text-[13px] text-coral-deep active:bg-coral-soft/60">- Leave conversation+ {t('mobchat.leaveConversation')}</button></div></>@@ -667,12 +669,12 @@ export function MobileChat() {<buttononClick={() => setAttachment(null)}className="ml-1 w-6 h-6 rounded-md grid place-items-center text-ink-500 active:bg-cloud transition shrink-0"- aria-label="Remove attachment"+ aria-label={t('mobchat.removeAttachment')}>×</button></div>)}{uploading && (- <div className="mb-2 text-[11.5px] text-ink-500 italic">uploading…</div>+ <div className="mb-2 text-[11.5px] text-ink-500 italic">{t('mobchat.uploading')}</div>)}{uploadError && (<div className="mb-2 text-[11.5px] py-1 px-2 rounded-md text-coral-deep bg-coral-soft inline-block max-w-full truncate">@@ -684,16 +686,16 @@ export function MobileChat() {<div className="w-[3px] rounded bg-skype shrink-0" /><div className="min-w-0 flex-1 flex flex-col gap-0.5"><div className="text-[10.5px] font-bold uppercase tracking-wider text-skype-deep">- Replying to {byId[replyingToMsg?.authorId ?? '']?.name ?? replyingToMsg?.authorId ?? '…'}+ {t('mobchat.replyingTo', { name: byId[replyingToMsg?.authorId ?? '']?.name ?? replyingToMsg?.authorId ?? '…' })}</div><div className="text-[12px] text-ink-500 truncate">- {replyingToMsg ? replyingToMsg.body.slice(0, 140).replace(/\n/g, ' ') : '(loading…)'}+ {replyingToMsg ? replyingToMsg.body.slice(0, 140).replace(/\n/g, ' ') : t('mobchat.replyLoading')}</div></div><buttononClick={() => setReplyingTo(convoId, null)}className="w-6 h-6 rounded-md grid place-items-center text-ink-500 active:bg-cloud transition shrink-0 self-center"- aria-label="Cancel reply"+ aria-label={t('mobchat.cancelReply')}>×</button></div>)}@@ -713,7 +715,7 @@ export function MobileChat() {onMouseDown={(e) => e.preventDefault()}><div className="px-3 pt-2 pb-1 text-[10px] font-bold uppercase tracking-[0.12em] text-ink-300">- Mention {mention.query ? `· "${mention.query}"` : ''}+ {mention.query ? `${t('mobchat.mentionHeader')} ${t('mobchat.mentionQuerySuffix', { query: mention.query })}` : t('mobchat.mentionHeader')}</div>{filteredMentions.map((entry, i) => {const active = i === mentionIndex@@ -730,8 +732,8 @@ export function MobileChat() {><img src="/everyone.png" alt="" className="w-[28px] h-[28px] rounded-full object-cover" /><div className="flex-1 min-w-0">- <div className="text-[13px] font-semibold text-ink-900 truncate">Everyone</div>- <div className="text-[11px] text-ink-500 truncate">Notify all members of this room</div>+ <div className="text-[13px] font-semibold text-ink-900 truncate">{t('mobchat.everyone')}</div>+ <div className="text-[11px] text-ink-500 truncate">{t('mobchat.notifyAll')}</div></div></button>)@@ -776,8 +778,8 @@ export function MobileChat() {key={convoId}ref={editorRef}defaultValue={draft}- placeholder="Type @ to summon"- ariaLabel="Message composer"+ placeholder={t('mobchat.typeAtToSummon')}+ ariaLabel={t('mobchat.composerAria')}className="rich-input flex-1 whitespace-pre-wrap bg-transparent outline-none text-[14px] text-ink-900 leading-[1.4]"style={{ minHeight: '1.4em' }}maxHeight={120}@@ -825,7 +827,7 @@ export function MobileChat() {: 'var(--ink-200)',boxShadow: canSend ? '0 4px 12px -3px rgba(0, 168, 240, 0.5)' : 'none',}}- aria-label="Send"+ aria-label={t('mobchat.sendAria')}><ISend className="w-[18px] h-[18px]" strokeWidth={2} /></Pressable>@@ -834,7 +836,7 @@ export function MobileChat() {<PressableonClick={() => fileRef.current?.click()}className="w-9 h-9 grid place-items-center text-ink-500 rounded-full active:bg-sky2-50"- aria-label="Attach file"+ aria-label={t('mobchat.attachFile')}><IClip className="w-[20px] h-[20px]" /></Pressable>@@ -845,7 +847,7 @@ export function MobileChat() {'w-9 h-9 grid place-items-center rounded-full active:bg-sky2-50',mention ? 'text-skype-deep bg-sky2-50' : 'text-ink-500',)}- aria-label="Mention"+ aria-label={t('mobchat.mentionAria')}><IAt className="w-[20px] h-[20px]" /></Pressable>@@ -856,7 +858,7 @@ export function MobileChat() {'w-9 h-9 grid place-items-center rounded-full active:bg-sky2-50',emojiOpen ? 'text-skype-deep bg-sky2-50' : 'text-ink-500',)}- aria-label="Emoji"+ aria-label={t('mobchat.emojiAria')}><ISmile className="w-[20px] h-[20px]" /></Pressable>@@ -882,7 +884,7 @@ export function MobileChat() {'flex-1 text-[11px] font-semibold uppercase tracking-wider py-1.5 rounded-[6px] transition',emojiTab === k ? 'bg-sky2-100 text-skype-deep' : 'text-ink-500 active:bg-sky2-50',)}- >{k === 'std' ? 'Standard' : 'Skype'}</button>+ >{k === 'std' ? t('mobchat.emojiStd') : t('mobchat.emojiSkype')}</button>))}</div><div className="px-2 py-2 max-h-[220px] overflow-y-auto">@@ -920,7 +922,7 @@ export function MobileChat() {onReact={(emoji) => {if (tapback) void toggleReaction(tapback.msg.id, emoji)}}- actions={tapback ? buildMessageTapbackActions(tapback.msg, convoId, setReplyingTo, meId) : []}+ actions={tapback ? buildMessageTapbackActions(tapback.msg, convoId, setReplyingTo, meId, t) : []}onClose={() => setTapback(null)}/></section>@@ -948,18 +950,19 @@ type StreamCtx = { hasMoreOlder: boolean; loadingOlder: boolean }* "Loading earlier…" and a blank space), so paging never changes the* header's height and never re-anchors the scroll. */function StreamHeader({ context }: { context?: StreamCtx }) {+ const t = useT()const hasMoreOlder = context?.hasMoreOlder ?? falseconst loadingOlder = context?.loadingOlder ?? falsereturn (<div className="px-3 pt-4 flex flex-col gap-3">{hasMoreOlder ? (<div className="self-center py-1 px-2.5 rounded-full text-[10.5px] font-medium text-ink-400">- {loadingOlder ? 'Loading earlier…' : ' '}+ {loadingOlder ? t('chat.loadingEarlier') : ' '}</div>) : (<div className="flex items-center gap-3 text-ink-300 text-[10.5px] font-bold tracking-[0.08em] uppercase"><span className="flex-1 h-px bg-gradient-to-r from-transparent via-ink-100 to-transparent" />- Beginning+ {t('chat.beginning')}<span className="flex-1 h-px bg-gradient-to-r from-transparent via-ink-100 to-transparent" /></div>)}@@ -1023,15 +1026,16 @@ function buildMessageTapbackActions(convoId: string | null,setReplyingTo: (convoId: string, msgId: string | null) => void,meId: string | null,+ t: (key: MessageKey, vars?: Record<string, string | number>) => string,): TapbackAction[] {const out: TapbackAction[] = []out.push({- label: 'Reply',+ label: t('mobchat.tapbackReply'),onClick: () => { if (convoId) setReplyingTo(convoId, msg.id) },})if (msg.body && msg.body.trim()) {out.push({- label: 'Copy text',+ label: t('mobchat.tapbackCopy'),onClick: () => {// Best-effort — `navigator.clipboard.writeText` returns a// promise we don't await; failures fall through silently@@ -1044,7 +1048,7 @@ function buildMessageTapbackActions(// desktop ChatPane permission model: agents own their own rows.if (meId && msg.authorId === meId) {out.push({- label: 'Delete',+ label: t('common.delete'),destructive: true,onClick: () => {// Wire deletion later — for now just close, no destructive@@ -1057,15 +1061,8 @@ function buildMessageTapbackActions(return out}-const statusLabel: Record<string, string> = {- avail: 'Available',- working: 'Working',- thinking: 'Thinking',- waiting: 'Waiting on you',- resting: 'Resting',-}-export function MobileChatInfo() {+ const t = useT()const pushStack = useApp((s) => s.pushMobileStack)const setView = useApp((s) => s.setView)const convoId = useApp((s) => s.selectedConversationId)@@ -1102,6 +1099,16 @@ export function MobileChatInfo() {const humanCount = memberPs.filter((p) => p.kind === 'human').lengthconst groupAgents = memberPs.filter((p) => p.kind === 'agent')const statusTone = focus?.status ?? 'avail'+ // Localized status pill — same five tones as the desktop ChatPane, just+ // looked up through the i18n layer here so the mobile info card renders+ // the same Chinese/English as everywhere else.+ const statusLabel: Record<string, string> = {+ avail: t('info.statusAvail'),+ working: t('info.statusWorking'),+ thinking: t('info.statusThinking'),+ waiting: t('info.statusWaiting'),+ resting: t('info.statusResting'),+ }const startConvene = async () => {if (!convoId || busy) return@@ -1123,7 +1130,7 @@ export function MobileChatInfo() {const onLeave = async () => {if (!convoId) return- if (!confirm('Leave this conversation? Agents will continue without you.')) return+ if (!confirm(t('mobchat.confirmLeaveBody'))) returntry {await api.leaveConversation(convoId)useApp.getState().selectConversation(null)@@ -1179,11 +1186,11 @@ export function MobileChatInfo() {<buttononClick={() => pushStack('chat')}className="w-10 h-10 grid place-items-center text-ink-700 active:bg-sky2-50 rounded-full transition"- aria-label="Back"+ aria-label={t('mpinfo.back')}><IBack className="w-[22px] h-[22px]" strokeWidth={2} /></button>- <h1 className="font-display font-medium text-[18px] text-ink-900" style={{ letterSpacing: '-0.01em' }}>Details</h1>+ <h1 className="font-display font-medium text-[18px] text-ink-900" style={{ letterSpacing: '-0.01em' }}>{t('mobchat.details')}</h1></div></header>@@ -1214,12 +1221,12 @@ export function MobileChatInfo() {type="button"onClick={startEditTitle}className="font-display font-medium text-[26px] tracking-tight mb-1 active:text-skype-deep transition border-b border-dashed border-ink-200 leading-tight max-w-full truncate"- title="Tap to rename"+ title={t('mobchat.tapToRename')}>{c.title}</button>)}<div className="font-display italic text-[14px] text-ink-500">- {memberPs.length} {memberPs.length === 1 ? 'member' : 'members'}- {agentCount > 0 && ` · ${agentCount} ${agentCount === 1 ? 'agent' : 'agents'}`}+ {memberPs.length} {memberPs.length === 1 ? t('mobchat.memberOne') : t('mobchat.memberMany')}+ {agentCount > 0 && ` · ${agentCount} ${agentCount === 1 ? t('mobchat.agentOne') : t('mobchat.agentMany')}`}</div>{/* Topic — tap to edit; prompt to add when empty. */}{editingTopic ? (@@ -1233,7 +1240,7 @@ export function MobileChatInfo() {if (e.key === 'Enter') { e.preventDefault(); void saveTopic() }if (e.key === 'Escape') setEditingTopic(false)}}- placeholder="What's this group for?"+ placeholder={t('mobchat.topicPlaceholder')}maxLength={200}className="mt-2 block w-full text-center bg-transparent text-[12.5px] text-ink-700 italic font-display placeholder:text-ink-300 outline-none border-b border-sky2-200 focus:border-skype-deep transition pb-0.5"/>@@ -1242,14 +1249,14 @@ export function MobileChatInfo() {type="button"onClick={startEditTopic}className="mt-2 block mx-auto max-w-full truncate text-[12.5px] text-ink-500 italic font-display active:text-skype-deep transition"- title="Tap to edit topic"+ title={t('mobchat.tapToEditTopic')}>{c.topic}</button>) : (<buttontype="button"onClick={startEditTopic}className="mt-2 inline-block text-[12.5px] text-ink-300 italic font-display active:text-skype-deep transition"- >+ add a topic</button>+ >{t('mobchat.addTopic')}</button>)}</div>) : focus ? (@@ -1278,23 +1285,23 @@ export function MobileChatInfo() {className="py-3 px-4 rounded-xl text-white font-semibold text-[13px] active:opacity-80 transition disabled:opacity-50"style={{ background: 'var(--skype-ink)' }}>- {busy ? 'Starting…' : 'Convene'}+ {busy ? t('mobchat.starting') : t('mobchat.convene')}</button><buttononClick={onToggleMute}className="py-3 px-4 rounded-xl bg-cloud border border-ink-100 text-ink-700 font-semibold text-[13px] active:bg-sky2-50 transition">- {muted ? 'Unmute' : 'Mute'}+ {muted ? t('mobchat.unmute') : t('mobchat.mute')}</button></div>{c.kind !== 'direct' && (<div className="py-4 px-5 border-b border-ink-100">- <h4 className="text-[10.5px] font-bold text-ink-300 tracking-wider uppercase mb-3">Members</h4>+ <h4 className="text-[10.5px] font-bold text-ink-300 tracking-wider uppercase mb-3">{t('mobchat.members')}</h4><div className="grid grid-cols-3 gap-2 mb-3">- <Stat n={String(memberPs.length)} l="members" />- <Stat n={String(agentCount)} l="agents" />- <Stat n={String(humanCount)} l="humans" />+ <Stat n={String(memberPs.length)} l={t('mobchat.statMembers')} />+ <Stat n={String(agentCount)} l={t('mobchat.statAgents')} />+ <Stat n={String(humanCount)} l={t('mobchat.statHumans')} /></div>{/* Search — only worth showing once the list is long enough towarrant scanning. Filters by name or @id. */}@@ -1304,7 +1311,7 @@ export function MobileChatInfo() {<inputvalue={memberQuery}onChange={(e) => setMemberQuery(e.target.value)}- placeholder="Search members…"+ placeholder={t('mobchat.searchMembersPh')}className="flex-1 min-w-0 text-[13px] text-ink-700 bg-transparent outline-none placeholder:text-ink-300"/>{memberQuery && (@@ -1312,7 +1319,7 @@ export function MobileChatInfo() {type="button"onClick={() => setMemberQuery('')}className="w-6 h-6 -mr-1 grid place-items-center text-ink-400 active:text-ink-600 shrink-0"- aria-label="Clear search"+ aria-label={t('mobchat.clearSearch')}>×</button>)}</div>@@ -1334,10 +1341,10 @@ export function MobileChatInfo() {<Avatar p={p} size={32} /><div className="flex-1 min-w-0"><div className="text-[13px] font-semibold text-ink-900 truncate">- {p.name}{isSelf && <span className="text-ink-300 font-normal"> · you</span>}+ {p.name}{isSelf && <span className="text-ink-300 font-normal">{t('mobchat.youSuffix')}</span>}</div><div className="text-[11px] text-ink-500 truncate font-display italic">- {p.kind === 'agent' ? (p.role ?? 'agent') : 'human teammate'}+ {p.kind === 'agent' ? (p.role ?? t('common.agent')) : t('mobchat.humanTeammate')}</div></div><span className="w-1.5 h-1.5 rounded-full shrink-0" style={{ background: `var(--${p.status ?? 'avail'})` }} />@@ -1347,7 +1354,7 @@ export function MobileChatInfo() {})}{filteredMembers.length === 0 && (<div className="py-5 text-center text-[12px] text-ink-400 italic font-display">- No members match “{memberQuery}”+ {t('mobchat.noMembersMatch', { query: memberQuery })}</div>)}</div>@@ -1356,7 +1363,7 @@ export function MobileChatInfo() {{!isGroup && focus && (focus.tools ?? []).length > 0 && (<div className="py-4 px-5 border-b border-ink-100">- <h4 className="text-[10.5px] font-bold text-ink-300 tracking-wider uppercase mb-3">Tools</h4>+ <h4 className="text-[10.5px] font-bold text-ink-300 tracking-wider uppercase mb-3">{t('mobchat.tools')}</h4><div className="grid grid-cols-2 gap-2">{(focus.tools ?? []).map((t) => (<div key={t} className="py-2.5 px-3 bg-cloud border border-ink-100 rounded-[10px] flex items-center gap-2 text-[12.5px] text-ink-700">@@ -1370,7 +1377,7 @@ export function MobileChatInfo() {{!isGroup && focus?.bio && (<div className="py-4 px-5 border-b border-ink-100">- <h4 className="text-[10.5px] font-bold text-ink-300 tracking-wider uppercase mb-3">About</h4>+ <h4 className="text-[10.5px] font-bold text-ink-300 tracking-wider uppercase mb-3">{t('mobchat.about')}</h4><divclassName="py-3 px-3.5 rounded-r-lg font-display italic text-[13px] leading-[1.55] text-ink-700"style={{@@ -1389,8 +1396,8 @@ export function MobileChatInfo() {className="w-full py-3 px-4 rounded-[12px] text-[13px] font-semibold text-coral-deep transition text-left active:opacity-70"style={{ border: '1px solid rgba(255, 122, 107, 0.3)' }}>- Leave conversation- <span className="block font-display italic text-[11px] text-ink-500 mt-0.5">agents continue without you</span>+ {t('mobchat.leaveConversation')}+ <span className="block font-display italic text-[11px] text-ink-500 mt-0.5">{t('mobchat.agentsContinueWithout')}</span></button></div></section>diff --git a/src/mobile/MobileChatList.tsx b/src/mobile/MobileChatList.tsxindex e95c4bc..941951b 100644--- a/src/mobile/MobileChatList.tsx+++ b/src/mobile/MobileChatList.tsx@@ -20,8 +20,14 @@ import { SwipeableRow, type SwipeAction } from './SwipeableRow'import { PullToRefresh } from './PullToRefresh'import { Virtuoso } from 'react-virtuoso'import type { Conversation, Participant } from '@/types'+import { translate, useLocaleStore, useT, type MessageKey } from '@/lib/i18n'-const filters = ['All', 'Agents', 'Whispers', 'Humans'] as const+const filters: ReadonlyArray<'All' | 'Agents' | 'Whispers' | 'Humans'> = ['All', 'Agents', 'Whispers', 'Humans']+const filterKey = (f: typeof filters[number]) =>+ f === 'All' ? 'mclist.filterAll'+ : f === 'Agents' ? 'mclist.filterAgents'+ : f === 'Whispers' ? 'mclist.filterWhispers'+ : 'mclist.filterHumans'type Filter = (typeof filters)[number]function TeamFallback() {@@ -99,8 +105,9 @@ function ConvoAvatar({ c, size = 48 }: { c: Conversation; size?: number }) {/** Small bell-off glyph for muted conversation rows. Same shape as* the desktop pane's indicator — Slack / iOS Messages convention. */function MutedGlyph() {+ const t = useT()return (- <span className="inline-flex items-center justify-center w-3.5 h-3.5 shrink-0 text-ink-300" aria-label="Muted">+ <span className="inline-flex items-center justify-center w-3.5 h-3.5 shrink-0 text-ink-300" aria-label={t('mclist.muted')}><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round" className="w-3.5 h-3.5"><path d="M13.73 21a2 2 0 0 1-3.46 0" /><path d="M18.63 13A17.9 17.9 0 0 1 18 8" />@@ -117,6 +124,7 @@ function MobileRow({ c, onTap, onLongPress }: {onTap: () => voidonLongPress: (coords: { x: number; y: number }) => void}) {+ const t = useT()const isFresh = c.tag === 'fresh-pulled'const muted = isMuted(c)const typingIds = useMessages((s) => s.typing[c.id])@@ -132,7 +140,7 @@ function MobileRow({ c, onTap, onLongPress }: {const p = byId[id]if (!p) return nullconst name = p.name?.trim()- return name || (p.kind === 'agent' ? 'An agent' : 'Someone')+ return name || (p.kind === 'agent' ? t('mclist.fallbackAgent') : t('mclist.fallbackSomeone'))}).filter((n): n is string => Boolean(n))return (@@ -166,7 +174,7 @@ function MobileRow({ c, onTap, onLongPress }: {)}>{c.title}</span>{muted && <MutedGlyph />}{isFresh && (- <span className="text-[8.5px] font-bold tracking-wider uppercase py-0.5 px-1.5 rounded text-gold-deep bg-[rgba(244,183,64,0.18)] shrink-0">NEW</span>+ <span className="text-[8.5px] font-bold tracking-wider uppercase py-0.5 px-1.5 rounded text-gold-deep bg-[rgba(244,183,64,0.18)] shrink-0">{t('mclist.badgeNew')}</span>)}{c.tag === 'human' && <HumanBadge />}</div>@@ -179,10 +187,10 @@ function MobileRow({ c, onTap, onLongPress }: {</span><span className="truncate">{typingNames.length === 1- ? `${typingNames[0]} is typing…`+ ? t('mclist.typingOne', { name: typingNames[0] }): typingNames.length === 2- ? `${typingNames[0]} and ${typingNames[1]} are typing…`- : `${typingNames[0]} and ${typingNames.length - 1} more are typing…`}+ ? t('mclist.typingTwo', { a: typingNames[0], b: typingNames[1] })+ : t('mclist.typingMore', { name: typingNames[0], n: typingNames.length - 1 })}</span></div>) : (@@ -268,10 +276,15 @@ function PinnedTile({ c, onSelect, onLongPress }: {function convoSwipeActions(c: Conversation): SwipeAction[] {const reload = () => useConversations.getState().reload()const muted = isMuted(c)+ // The translate hook lives inside React — calling useT() here would+ // break the helper's call site. Snapshot the locale once and translate+ // imperatively, same pattern as SuspendedScreen's class counterpart.+ const locale = useLocaleStore.getState().locale+ const t = (k: MessageKey, vars?: Record<string, string | number>) => translate(locale, k, vars)const actions: SwipeAction[] = []if (c.unread !== undefined && c.unread > 0) {actions.push({- label: 'Read',+ label: t('mclist.swipeRead'),background: 'var(--skype)',onClick: async () => {try { await api.markRead(c.id); await reload() }@@ -280,7 +293,7 @@ function convoSwipeActions(c: Conversation): SwipeAction[] {})}actions.push({- label: muted ? 'Unmute' : 'Mute',+ label: muted ? t('mclist.swipeUnmute') : t('mclist.swipeMute'),background: 'var(--ink-500)',onClick: async () => {try { await api.setMute(c.id, !muted); await reload() }@@ -288,7 +301,7 @@ function convoSwipeActions(c: Conversation): SwipeAction[] {},})actions.push({- label: c.pinned ? 'Unpin' : 'Pin',+ label: c.pinned ? t('mclist.swipeUnpin') : t('mclist.swipePin'),background: 'var(--gold)',color: 'var(--ink-900)',onClick: async () => {@@ -298,10 +311,10 @@ function convoSwipeActions(c: Conversation): SwipeAction[] {})if (c.kind !== 'whisper') {actions.push({- label: 'Leave',+ label: t('mclist.swipeLeave'),background: 'var(--coral)',onClick: async () => {- if (!confirm(`Leave “${c.title}”? Agents will continue without you.`)) return+ if (!confirm(t('mclist.confirmLeave', { title: c.title }))) returntry { await api.leaveConversation(c.id); await reload() }catch (err) { console.warn('leave failed', err) }},@@ -327,6 +340,11 @@ function convoMenuItems(): ContextMenuItem[] {const reload = () => useConversations.getState().reload()const muted = isMuted(c)+ // Hook order: snapshot locale imperatively — this helper is called from+ // a parent render so we can't call useT() here. Same pattern as+ // convoSwipeActions right above.+ const locale = useLocaleStore.getState().locale+ const t = (k: MessageKey, vars?: Record<string, string | number>) => translate(locale, k, vars)const items: ContextMenuItem[] = []if (c.kind === 'direct') {@@ -334,7 +352,7 @@ function convoMenuItems(const other = otherId ? ctx.byId[otherId] : undefinedif (other) {items.push({- label: `Create group with ${other.name}…`,+ label: t('mclist.menuCreateGroupWith', { name: other.name }),onClick: () => ctx.onCreateGroupWith(other.id),})}@@ -342,11 +360,11 @@ function convoMenuItems(items.push({- label: 'Open',+ label: t('mclist.menuOpen'),onClick: () => useApp.getState().selectConversation(c.id),},{- label: c.pinned ? 'Unpin from top' : 'Pin to top',+ label: c.pinned ? t('mclist.menuUnpinFromTop') : t('mclist.menuPinToTop'),onClick: async () => {try {await api.togglePin(c.id, !c.pinned)@@ -355,7 +373,7 @@ function convoMenuItems(},},{- label: muted ? 'Unmute' : 'Mute notifications',+ label: muted ? t('mclist.menuUnmute') : t('mclist.menuMute'),onClick: async () => {try {await api.setMute(c.id, !muted)@@ -366,7 +384,7 @@ function convoMenuItems()if (c.unread !== undefined && c.unread > 0) {items.push({- label: 'Mark as read',+ label: t('mclist.menuMarkRead'),onClick: async () => {try {await api.markRead(c.id)@@ -377,10 +395,10 @@ function convoMenuItems(}if (c.kind !== 'whisper') {items.push({- label: 'Leave conversation',+ label: t('mclist.menuLeave'),destructive: true,onClick: async () => {- if (!confirm(`Leave “${c.title}”? Agents will continue without you.`)) return+ if (!confirm(t('mclist.confirmLeave', { title: c.title }))) returntry {await api.leaveConversation(c.id)await reload()@@ -392,6 +410,7 @@ function convoMenuItems(}export function MobileChatList() {+ const t = useT()const select = useApp((s) => s.selectConversation)const list = useConversations((s) => s.list)const byId = useParticipants((s) => s.byId)@@ -502,7 +521,7 @@ export function MobileChatList() {'ml-auto w-9 h-9 rounded-full grid place-items-center text-ink-700 border',searchOpen ? 'bg-sky2-50 border-sky2-200 text-skype-deep' : 'bg-cloud border-ink-100',)}- aria-label={searchOpen ? 'Close search' : 'Open search'}+ aria-label={searchOpen ? t('mclist.closeSearch') : t('mclist.openSearch')}><ISearch className="w-[18px] h-[18px]" /></Pressable>@@ -518,7 +537,7 @@ export function MobileChatList() {type="search"value={searchQ}onChange={(e) => setSearchQ(e.target.value)}- placeholder="Search conversations, agents…"+ placeholder={t('mclist.searchPh')}className="flex-1 bg-transparent outline-none text-[14px] text-ink-900 placeholder:text-ink-300"autoCapitalize="none"autoCorrect="off"@@ -528,7 +547,7 @@ export function MobileChatList() {<PressableonClick={() => setSearchQ('')}className="text-ink-500 px-1.5 text-[18px] leading-none"- aria-label="Clear"+ aria-label={t('mclist.clearSearch')}>×</Pressable>)}</div>@@ -553,7 +572,7 @@ export function MobileChatList() {borderColor: 'var(--sky-200)',boxShadow: '0 1px 2px -1px rgba(0, 120, 200, 0.12)',} : undefined}- >{f}</Pressable>+ >{t(filterKey(f))}</Pressable>)})}</div>@@ -578,7 +597,7 @@ export function MobileChatList() {and the gesture-bound `y` transform keep working. */}<div className="px-0 pt-1.5 pb-1">{byRecency.length === 0 ? (- <div className="px-3 py-6 text-center text-[13px] text-ink-300 font-display italic">no conversations yet</div>+ <div className="px-3 py-6 text-center text-[13px] text-ink-300 font-display italic">{t('mclist.empty')}</div>) : scroller ? (<VirtuosocustomScrollParent={scroller}diff --git a/src/mobile/MobileLibrary.tsx b/src/mobile/MobileLibrary.tsxindex ddfe145..dec6a39 100644--- a/src/mobile/MobileLibrary.tsx+++ b/src/mobile/MobileLibrary.tsx@@ -16,6 +16,7 @@ import { IDoc, IBoard, ICalendar, IPlus } from '@/components/icons'import { MobileCalendar } from './MobileCalendar'import { EventEditor } from '@/components/EventEditor'import { cn } from '@/lib/utils'+import { useT, type MessageKey, useTLabel } from '@/lib/i18n'type LibTab = 'documents' | 'boards' | 'calendar'@@ -24,8 +25,16 @@ const TABS: Array<{ key: LibTab; label: string; Icon: typeof IDoc }> = [{ key: 'boards', label: 'Boards', Icon: IBoard },{ key: 'calendar', label: 'Calendar', Icon: ICalendar },]+// i18n: parallel lookup so the TABS shape above stays upstream-mergeable.+const TAB_LABEL_KEY: Record<LibTab, MessageKey> = {+ documents: 'moblib.tabDocuments',+ boards: 'moblib.tabBoards',+ calendar: 'moblib.tabCalendar',+}export function MobileLibrary() {+ // i18n: prefer the translated key, fall back to the inline English.+ const tLabel = useTLabel()const [tab, setTab] = useState<LibTab>('documents')const create = useDocuments((s) => s.create)const createBoard = useBoards((s) => s.createBoard)@@ -43,10 +52,10 @@ export function MobileLibrary() {setCreating(true)try {if (tab === 'documents') {- const d = await create({ title: 'Untitled' })+ const d = await create({ title: tLabel('docs.untitled', 'Untitled') })openDocumentPeek(d.id)} else if (tab === 'boards') {- const id = await createBoard('Untitled board')+ const id = await createBoard(tLabel('moblib.untitledBoard', 'Untitled board'))openBoardPeek(id, null)}} catch (err) {@@ -83,7 +92,7 @@ export function MobileLibrary() {)}><Icon className="w-[14px] h-[14px]" strokeWidth={active ? 2 : 1.6} />- {label}+ {tLabel(TAB_LABEL_KEY[key], label)}</button>)})}@@ -128,15 +137,17 @@ export function MobileLibrary() {)}-function timeAgo(iso: string): string {+function timeAgo(iso: string, t: ReturnType<typeof useT>): string {const ms = Date.now() - new Date(iso).getTime()- if (ms < 60_000) return 'just now'- if (ms < 3600_000) return `${Math.floor(ms / 60_000)}m ago`- if (ms < 86_400_000) return `${Math.floor(ms / 3_600_000)}h ago`+ if (ms < 60_000) return t('docs.justNow')+ if (ms < 3600_000) return t('docs.minutesAgo', { n: Math.floor(ms / 60_000) })+ if (ms < 86_400_000) return t('docs.hoursAgo', { n: Math.floor(ms / 3_600_000) })return new Date(iso).toLocaleDateString()}function DocumentsList() {+ const t = useT()+ const tLabel = useTLabel()const list = useDocuments((s) => s.list)const loaded = useDocuments((s) => s.loaded)const load = useDocuments((s) => s.load)@@ -149,7 +160,7 @@ function DocumentsList() {return (<div className="pb-24">{!loaded && (- <div className="px-6 py-10 text-center text-[13px] text-ink-300 font-display italic">Loading…</div>+ <div className="px-6 py-10 text-center text-[13px] text-ink-300 font-display italic">{t('common.loading')}</div>)}{loaded && list.length === 0 && (<div className="px-6 py-12 text-center text-[13px] text-ink-500 font-display italic leading-relaxed">@@ -170,9 +181,9 @@ function DocumentsList() {<IDoc className="w-[18px] h-[18px]" /></div><div className="min-w-0">- <div className="text-[14px] font-semibold text-ink-900 truncate">{d.title || 'Untitled'}</div>+ <div className="text-[14px] font-semibold text-ink-900 truncate">{d.title || tLabel('docs.untitled', 'Untitled')}</div><div className="text-[11.5px] text-ink-500 truncate font-display italic">- {authorName} · {timeAgo(d.updatedAt)}+ {authorName} · {timeAgo(d.updatedAt, t)}</div></div><span className="self-center text-ink-300 text-[18px]">›</span>@@ -185,6 +196,8 @@ function DocumentsList() {}function BoardsList() {+ const t = useT()+ const tLabel = useTLabel()const list = useBoards((s) => s.list)const loadingList = useBoards((s) => s.loadingList)const loadList = useBoards((s) => s.loadList)@@ -197,7 +210,7 @@ function BoardsList() {return (<div className="pb-24">{loadingList && list.length === 0 && (- <div className="px-6 py-10 text-center text-[13px] text-ink-300 font-display italic">Loading…</div>+ <div className="px-6 py-10 text-center text-[13px] text-ink-300 font-display italic">{t('common.loading')}</div>)}{!loadingList && list.length === 0 && (<div className="px-6 py-12 text-center text-[13px] text-ink-500 font-display italic leading-relaxed">@@ -219,9 +232,9 @@ function BoardsList() {<IBoard className="w-[18px] h-[18px]" /></div><div className="min-w-0">- <div className="text-[14px] font-semibold text-ink-900 truncate">{b.title || 'Untitled board'}</div>+ <div className="text-[14px] font-semibold text-ink-900 truncate">{b.title || tLabel('moblib.untitledBoard', 'Untitled board')}</div><div className="text-[11.5px] text-ink-500 truncate font-display italic">- {b.description ? b.description : `${authorName} · ${timeAgo(b.updatedAt)}`}+ {b.description ? b.description : `${authorName} · ${timeAgo(b.updatedAt, t)}`}</div></div><span className="self-center text-ink-300 text-[18px]">›</span>diff --git a/src/mobile/MobileMe.tsx b/src/mobile/MobileMe.tsxindex 3877260..647cabc 100644--- a/src/mobile/MobileMe.tsx+++ b/src/mobile/MobileMe.tsx@@ -10,20 +10,24 @@ import { usePrefs } from '@/stores/preferences'import { CompanySwitcher } from '@/components/CompanySwitcher'import { getPushStatus, initPushNotifications, teardownPushNotifications, type PushStatus } from '@/lib/push'import { api } from '@/api/client'+import { LanguagePicker } from '@/components/LanguagePicker'+import { translate, useLocale, useT, type MessageKey } from '@/lib/i18n'import type { Participant } from '@/types'-interface ToggleablePref { key: string; lbl: string; sub: string; default?: boolean }+interface ToggleablePref { key: string; lbl: MessageKey; sub: MessageKey; default?: boolean }+// `lbl` / `sub` are message keys; `key` stays the server-side preference id.const TOGGLE_PREFS: ToggleablePref[] = [- { key: 'notify.push', lbl: 'Push notifications', sub: 'banner + badge when the app is closed', default: true },- { key: 'notify.group_pull', lbl: 'Notify on group pulls', sub: 'when an agent loops you in', default: true },- { key: 'notify.mention', lbl: 'Notify on mentions', sub: 'when agents @ you', default: true },- { key: 'ui.typing_indicators', lbl: 'Show typing indicators', sub: 'see when agents are drafting', default: true },- { key: 'ui.reduce_motion', lbl: 'Reduce motion', sub: 'fewer animations', default: false },- { key: 'agents.new_tools_ok', lbl: 'Agents can call new tools', sub: 'with granted permissions', default: true },+ { key: 'notify.push', lbl: 'mobileMe.prefs.push', sub: 'mobileMe.prefs.pushSub', default: true },+ { key: 'notify.group_pull', lbl: 'mobileMe.prefs.groupPull', sub: 'mobileMe.prefs.groupPullSub', default: true },+ { key: 'notify.mention', lbl: 'mobileMe.prefs.mention', sub: 'mobileMe.prefs.mentionSub', default: true },+ { key: 'ui.typing_indicators', lbl: 'mobileMe.prefs.typing', sub: 'mobileMe.prefs.typingSub', default: true },+ { key: 'ui.reduce_motion', lbl: 'mobileMe.prefs.reduceMotion', sub: 'mobileMe.prefs.reduceMotionSub', default: false },+ { key: 'agents.new_tools_ok', lbl: 'mobileMe.prefs.newTools', sub: 'mobileMe.prefs.newToolsSub', default: true },]export function MobileMe() {+ const t = useT()const authUser = useAuth((s) => s.user)const meId = useMe()const companies = useAuth((s) => s.companies)@@ -60,14 +64,19 @@ export function MobileMe() {// Warm one-line "you steward N agents across M rooms" copy. Beats a// 4-card dashboard grid as a homepage statement — the numbers are// there but they read as personal context, not KPIs.+ const locale = useLocale()const stewardLine = useMemo(() => {+ // Built from message keys rather than concatenated English so a+ // locale can reorder the sentence — and so languages without plural+ // inflection don't have to carry the singular/plural split.+ const tr = (key: MessageKey, vars?: Record<string, string | number>) => translate(locale, key, vars)const parts: string[] = []- if (agents.length) parts.push(`${agents.length} agent${agents.length === 1 ? '' : 's'}`)- if (convoList.length) parts.push(`${convoList.length} room${convoList.length === 1 ? '' : 's'}`)- if (whisperList.length) parts.push(`${whisperList.length} peek${whisperList.length === 1 ? '' : 's'}`)- if (parts.length === 0) return 'A quiet workspace — invite some agents to get started.'- return `Steward of ${parts.join(' · ')}.`- }, [agents.length, convoList.length, whisperList.length])+ if (agents.length) parts.push(tr('mobileMe.agentCount', { count: agents.length }))+ if (convoList.length) parts.push(tr('mobileMe.roomCount', { count: convoList.length }))+ if (whisperList.length) parts.push(tr('mobileMe.peekCount', { count: whisperList.length }))+ if (parts.length === 0) return tr('mobileMe.quietSteward')+ return tr('mobileMe.steward', { parts: parts.join(' · ') })+ }, [agents.length, convoList.length, whisperList.length, locale])return (<section className="flex flex-col h-full overflow-hidden bg-paper">@@ -87,7 +96,7 @@ export function MobileMe() {{me.name}</h2><div className="font-display italic text-[13px] text-ink-500 mt-0.5 mb-2.5">- {authUser?.email ?? 'human · team owner'}+ {authUser?.email ?? t('mobileMe.defaultRole')}</div><div className="font-display italic text-[12.5px] text-ink-700 max-w-[280px] mx-auto leading-snug">{stewardLine}@@ -102,21 +111,21 @@ export function MobileMe() {<div className="flex-1 overflow-y-auto pb-20">{companies.length > 1 && (- <Section title="Workspace">+ <Section title={t('mobileMe.workspace')}><div className="bg-cloud rounded-[12px] p-2" style={{ border: '1px solid var(--ink-100)' }}><CompanySwitcher /></div></Section>)}- <Section title="Your team">+ <Section title={t('mobileMe.yourTeam')}>{agents.length === 0 ? (<divclassName="text-center bg-cloud rounded-[12px] py-5 px-4"style={{ border: '1px dashed var(--ink-100)' }}><div className="font-display italic text-[13px] text-ink-500 leading-snug">- A quiet workspace — no agents have joined yet.+ {t('mobileMe.quietWorkspace')}</div></div>) : (@@ -162,11 +171,11 @@ export function MobileMe() {)}</Section>- <Section title="Push notifications">+ <Section title={t('mobileMe.push')}><PushStatusTile /></Section>- <Section title="Preferences">+ <Section title={t('mobileMe.preferences')}><div className="bg-cloud rounded-[12px] divide-y divide-ink-100"style={{ border: '1px solid var(--ink-100)' }}>{TOGGLE_PREFS.map((it) => {@@ -180,8 +189,8 @@ export function MobileMe() {className="w-full text-left flex items-center gap-3 p-3.5 active:bg-paper transition"><div className="flex-1 min-w-0">- <div className="font-semibold text-[13px] text-ink-900 leading-tight">{it.lbl}</div>- <div className="font-display italic text-[11px] text-ink-500 mt-0.5">{it.sub}</div>+ <div className="font-semibold text-[13px] text-ink-900 leading-tight">{t(it.lbl)}</div>+ <div className="font-display italic text-[11px] text-ink-500 mt-0.5">{t(it.sub)}</div></div><span className={cn('w-9 h-5 rounded-full relative shrink-0 transition-colors', on ? 'bg-skype' : 'bg-ink-200')}><span className={cn('absolute w-4 h-4 bg-white rounded-full top-0.5 transition-all', on ? 'left-[18px]' : 'left-0.5')}@@ -193,6 +202,17 @@ export function MobileMe() {</div></Section>+ <Section title={t('mobileMe.language')}>+ <div className="bg-cloud rounded-[12px] p-3.5 flex items-center gap-3"+ style={{ border: '1px solid var(--ink-100)' }}>+ <div className="flex-1 min-w-0">+ <div className="font-semibold text-[13px] text-ink-900 leading-tight">{t('common.language')}</div>+ <div className="font-display italic text-[11px] text-ink-500 mt-0.5">{t('common.languageSub')}</div>+ </div>+ <LanguagePicker className="w-[140px] shrink-0" />+ </div>+ </Section>+<div className="px-4 pt-2 pb-4 space-y-2"><buttontype="button"@@ -209,8 +229,8 @@ export function MobileMe() {className="w-full py-3 px-4 rounded-[12px] text-[13px] font-semibold text-coral-deep transition text-left active:opacity-70"style={{ border: '1px solid rgba(255, 122, 107, 0.3)' }}>- Sign out- <span className="block font-display italic text-[11px] text-ink-500 mt-0.5">end this session on this device</span>+ {t('common.signOut')}+ <span className="block font-display italic text-[11px] text-ink-500 mt-0.5">{t('mobileMe.signOutSub')}</span></button><DeleteAccountButton /></div>@@ -232,6 +252,7 @@ function Section({ title, children }: { title: string; children: React.ReactNode* the UI so users can SEE why notifications aren't arriving and* re-trigger registration without quitting the app. */function PushStatusTile() {+ const t = useT()const [status, setStatus] = useState<PushStatus>(() => getPushStatus())const [busy, setBusy] = useState(false)useEffect(() => {@@ -246,8 +267,7 @@ function PushStatusTile() {return (<div className="bg-cloud rounded-[12px] p-3.5 text-[12px] text-ink-500 font-display italic"style={{ border: '1px solid var(--ink-100)' }}>- Push notifications run on the iOS / Android native shell — this- web preview just uses live socket messages.+ {t('push.notSupported')}</div>)}@@ -257,16 +277,16 @@ function PushStatusTile() {: perm === 'denied' ? 'var(--coral)': perm === 'prompt' || perm === 'prompt-with-rationale' ? 'var(--gold)': 'var(--ink-300)'- const permLabel = perm === 'granted' ? 'Allowed'- : perm === 'denied' ? 'Blocked'- : perm === 'prompt' || perm === 'prompt-with-rationale' ? 'Not asked yet'- : 'Unknown'+ const permLabel = perm === 'granted' ? t('push.permAllowed')+ : perm === 'denied' ? t('push.permBlocked')+ : perm === 'prompt' || perm === 'prompt-with-rationale' ? t('push.permNotAsked')+ : t('push.permUnknown')const stepLabel: Record<typeof status.lastStep, string> = {- idle: 'init never ran (check the prefs toggle above)',- 'load-plugin': 'stuck loading the @capacitor/push-notifications plugin',- 'request-permission': 'stuck asking iOS for permission (system dialog blocked?)',- register: 'stuck on APNs token request (entitlement / network)',- done: 'init completed — waiting for APNs to hand back a token',+ idle: t('push.stepIdle'),+ 'load-plugin': t('push.stepLoadPlugin'),+ 'request-permission': t('push.stepRequestPerm'),+ register: t('push.stepRegister'),+ done: t('push.stepDone'),}const reregister = async (force: boolean) => {@@ -288,30 +308,30 @@ function PushStatusTile() {<div className="p-3.5 flex items-center gap-3"><span className="w-2 h-2 rounded-full shrink-0" style={{ background: status.prefEnabled ? 'var(--avail)' : 'var(--coral)' }} /><div className="flex-1 min-w-0">- <div className="font-semibold text-[13px] text-ink-900 leading-tight">App preference</div>+ <div className="font-semibold text-[13px] text-ink-900 leading-tight">{t('push.appPref')}</div><div className="font-display italic text-[11px] text-ink-500 mt-0.5">{status.prefEnabled- ? 'notify.push is ON — init will run on next app launch.'- : "notify.push is OFF — toggle it on above (or tap 'Reset & retry' below)."}+ ? t('push.appPrefOnSub')+ : t('push.appPrefOffSub')}</div></div><span className="text-[10.5px] font-bold tracking-wider uppercase px-2 py-1 rounded-full"style={{ background: 'var(--ink-100)', color: 'var(--ink-700)' }}>- {status.prefEnabled ? 'On' : 'Off'}+ {status.prefEnabled ? t('push.on') : t('push.off')}</span></div><div className="p-3.5 flex items-center gap-3"><span className="w-2 h-2 rounded-full shrink-0" style={{ background: permColor }} /><div className="flex-1 min-w-0">- <div className="font-semibold text-[13px] text-ink-900 leading-tight">iOS permission</div>+ <div className="font-semibold text-[13px] text-ink-900 leading-tight">{t('push.iosPerm')}</div><div className="font-display italic text-[11px] text-ink-500 mt-0.5">{perm === 'denied'- ? 'Open iOS Settings → Cumora → Notifications to re-enable.'+ ? t('push.iosPermDenied'): perm === 'granted'- ? 'iOS will deliver alerts when the app is in background.'+ ? t('push.iosPermGranted'): perm === 'unknown'- ? 'iOS hasn\'t been asked yet — see the last-step row below.'- : 'iOS will show its dialog the next time init runs.'}+ ? t('push.iosPermUnknown')+ : t('push.iosPermWillAsk')}</div></div><span className="text-[10.5px] font-bold tracking-wider uppercase px-2 py-1 rounded-full"@@ -322,25 +342,25 @@ function PushStatusTile() {<div className="p-3.5 flex items-center gap-3"><span className="w-2 h-2 rounded-full shrink-0" style={{ background: status.tokenSuffix ? 'var(--avail)' : 'var(--ink-300)' }} /><div className="flex-1 min-w-0">- <div className="font-semibold text-[13px] text-ink-900 leading-tight">Device token</div>+ <div className="font-semibold text-[13px] text-ink-900 leading-tight">{t('push.deviceToken')}</div><div className="font-display italic text-[11px] text-ink-500 mt-0.5">{status.tokenSuffix- ? `Registered with server (…${status.tokenSuffix}).`- : 'No APNs token yet — see the last-step row below.'}+ ? t('push.deviceTokenOk', { suffix: status.tokenSuffix })+ : t('push.deviceTokenNone')}</div></div></div>{/* The smoking gun for "why is push silently dead?". Shows thedeepest step the most recent init() reached. */}<div className="p-3.5">- <div className="text-[10.5px] font-bold uppercase tracking-wider text-ink-500 mb-1">Last init step</div>+ <div className="text-[10.5px] font-bold uppercase tracking-wider text-ink-500 mb-1">{t('push.lastStep')}</div><div className="font-display italic text-[12px] text-ink-700 leading-snug">{stepLabel[status.lastStep]}</div></div>{status.lastError && (<div className="p-3.5 text-[11.5px] font-display italic text-coral-deep leading-snug">- Last error: {status.lastError}+ {t('push.lastError', { err: status.lastError })}</div>)}<button@@ -349,9 +369,9 @@ function PushStatusTile() {disabled={busy}className="w-full text-left p-3.5 active:bg-paper transition text-[12.5px] font-semibold text-skype-deep disabled:opacity-50">- {busy ? 'Working…' : 'Re-register this device'}+ {busy ? t('push.working') : t('push.reregister')}<span className="block font-display italic text-[11px] text-ink-500 mt-0.5 font-normal not-italic">- Runs init again — respects the app preference toggle.+ {t('push.reregisterSub')}</span></button><button@@ -360,9 +380,9 @@ function PushStatusTile() {disabled={busy}className="w-full text-left p-3.5 active:bg-paper transition text-[12.5px] font-semibold text-coral-deep disabled:opacity-50">- Reset & retry (force)+ {t('push.resetRetry')}<span className="block font-display italic text-[11px] text-ink-500 mt-0.5 font-normal not-italic">- Bypasses the in-app preference — useful if the toggle got stuck off.+ {t('push.resetRetrySub')}</span></button></div>@@ -374,6 +394,7 @@ function PushStatusTile() {* (no native confirm() dialog which iOS WKWebView styles poorly)* so the destructive-action UX matches the rest of the app. */function DeleteAccountButton() {+ const t = useT()const [stage, setStage] = useState<'idle' | 'confirm' | 'busy'>('idle')const [err, setErr] = useState<string | null>(null)@@ -385,8 +406,8 @@ function DeleteAccountButton() {className="w-full py-3 px-4 rounded-[12px] text-[13px] font-semibold text-coral-deep transition text-left active:opacity-70"style={{ border: '1px solid rgba(255, 122, 107, 0.3)' }}>- Delete account- <span className="block font-display italic text-[11px] text-ink-500 mt-0.5">permanently remove this Cumora account</span>+ {t('push.deleteTitle')}+ <span className="block font-display italic text-[11px] text-ink-500 mt-0.5">{t('push.deleteSub')}</span></button>)}@@ -397,12 +418,10 @@ function DeleteAccountButton() {style={{ border: '1px solid var(--coral)', background: 'rgba(255, 122, 107, 0.06)' }}><div className="font-display text-[13px] text-ink-900 font-semibold mb-1">- Permanently delete this account?+ {t('push.deleteConfirmTitle')}</div><div className="font-display italic text-[12px] text-ink-700 leading-snug mb-3">- Your sign-in, OAuth links, and personal profile will be erased. Messages- you posted in shared rooms stay (with your name shown as "Deleted- user") so other members keep their history. This cannot be undone.+ {t('push.deleteConfirmBody')}</div>{err && (<div className="text-[11.5px] text-coral-deep font-display italic mb-2 leading-snug">@@ -416,7 +435,7 @@ function DeleteAccountButton() {onClick={() => { setStage('idle'); setErr(null) }}className="flex-1 h-9 rounded-[9px] text-[12.5px] font-semibold text-ink-700 bg-paper transition active:opacity-70 disabled:opacity-50"style={{ border: '1px solid var(--ink-100)' }}- >Cancel</button>+ >{t('push.deleteCancel')}</button><buttontype="button"disabled={stage === 'busy'}@@ -438,7 +457,7 @@ function DeleteAccountButton() {}}className="flex-1 h-9 rounded-[9px] text-[12.5px] font-semibold text-white transition active:opacity-70 disabled:opacity-50"style={{ background: 'var(--coral)' }}- >{stage === 'busy' ? 'Deleting…' : 'Delete'}</button>+ >{stage === 'busy' ? t('push.deleteBusy') : t('push.deleteConfirmBtn')}</button></div></div>)diff --git a/src/mobile/MobileParticipantInfo.tsx b/src/mobile/MobileParticipantInfo.tsxindex e42ec49..df063e7 100644--- a/src/mobile/MobileParticipantInfo.tsx+++ b/src/mobile/MobileParticipantInfo.tsx@@ -25,7 +25,12 @@ import { IBack, IMail, IConvene, IWhisper } from '@/components/icons'import { api } from '@/api/client'import { tapHaptic } from '@/lib/native'import { cn } from '@/lib/utils'+import { type MessageKey, useTLabel } from '@/lib/i18n'+// statusLabels kept as the source of truth so upstream changes+// to the participant status vocabulary flow through cleanly. The+// *Key table is an i18n lookup that resolves to the localized string;+// render as tLabel(statusLabelsKey[k] ?? null, statusLabels[k] ?? 'idle').const STATUS_LABEL: Record<string, string> = {avail: 'Available',working: 'Working',@@ -33,6 +38,13 @@ const STATUS_LABEL: Record<string, string> = {waiting: 'Waiting on you',resting: 'Resting',}+const STATUS_LABEL_KEY: Record<string, MessageKey> = {+ avail: 'mpinfo.statusAvail',+ working: 'mpinfo.statusWorking',+ thinking: 'mpinfo.statusThinking',+ waiting: 'mpinfo.statusWaiting',+ resting: 'mpinfo.statusResting',+}const STATUS_COLOR: Record<string, string> = {avail: 'var(--avail)',working: 'var(--working)',@@ -42,6 +54,10 @@ const STATUS_COLOR: Record<string, string> = {}export function MobileParticipantInfo() {+ // tLabel: prefer the i18n string for `key`; if missing (or == key)+ // fall back to the English source-of-truth so the UI keeps working+ // even when a translation is absent.+ const tLabel = useTLabel()const participantId = useApp((s) => s.infoAgentId)const close = useApp((s) => s.closeAgentInfo)const select = useApp((s) => s.selectConversation)@@ -60,10 +76,32 @@ export function MobileParticipantInfo() {if (p.id === meId) {return (<section className="flex flex-col h-full overflow-hidden bg-paper">- <DeepHeader title="Profile" onBack={close} />+ <DeepHeader title={tLabel('mpinfo.profileTitle', 'Profile')} onBack={close} /><div className="flex-1 grid place-items-center px-8 text-center"><div className="font-display italic text-[13px] text-ink-500">- That's you — head over to <span className="text-skype-deep font-semibold not-italic">Me</span> for your own profile.+ {(() => {+ // Wrap the rendered {me} label (e.g. '我的') in a styled+ // <span> so the call-to-action still pops in zh-CN, where+ // the word would otherwise blend into the surrounding+ // italic body copy.+ // English fallback: "That's you — head over to {me} for your own profile."+ const meLabel = tLabel('nav.me', 'Me')+ // Look up the i18n template; fall back to the English source-of-truth+ // so the UI keeps working even when a translation is absent.+ // We substitute {me} with \u0000 (a placeholder the JSX below splits on)+ // so the styled <span>{meLabel}</span> can be injected between parts[0]+ // and parts[1] without losing its CSS classes.+ const tmpl = tLabel('mpinfo.itsYou', "That's you \u2014 head over to {me} for your own profile.")+ const rendered = tmpl.replace(/\{me\}/g, '\u0000')+ const parts = rendered.split('\u0000')+ return (+ <>+ {parts[0]}+ <span className="text-skype-deep font-semibold not-italic">{meLabel}</span>+ {parts.slice(1).join('\u0000')}+ </>+ )+ })()}</div></div></section>@@ -72,7 +110,7 @@ export function MobileParticipantInfo() {const isAgent = p.kind === 'agent'const statusColor = STATUS_COLOR[p.status] ?? 'var(--resting)'- const subtitle = p.role ?? (isAgent ? 'agent' : 'human teammate')+ const subtitle = p.role ?? (isAgent ? tLabel('common.agent', 'agent') : tLabel('mpinfo.humanTeammate', 'human teammate'))// Sky wash for agents, coral for humans — matches the chip colour// scheme used by MentionChip elsewhere so the page lands "feeling// like" the chip the user just tapped.@@ -137,11 +175,11 @@ export function MobileParticipantInfo() {</div><div className="inline-flex items-center gap-1.5 py-1.5 px-3 rounded-full bg-cloud border border-ink-100 text-[11.5px] text-ink-700"><span className="w-[7px] h-[7px] rounded-full" style={{ background: statusColor }} />- {STATUS_LABEL[p.status] ?? 'idle'}+ {tLabel(STATUS_LABEL_KEY[p.status] ?? 'mpinfo.statusIdle', STATUS_LABEL[p.status] ?? 'idle')}</div></div>- <Section title="Actions">+ <Section title={tLabel('mpinfo.sectionActions', 'Actions')}><div className={cn('grid gap-2', isAgent ? 'grid-cols-3' : 'grid-cols-1')}><buttontype="button"@@ -156,7 +194,7 @@ export function MobileParticipantInfo() {<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round"><path d="M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z" /></svg>- {opening ? 'Opening…' : 'DM'}+ {opening ? tLabel('mpinfo.opening', 'Opening\u2026') : tLabel('mpinfo.btnDM', 'DM')}</button>{/* Whisper / Convene mirror the desktop pane — agent-teamrituals only. Placeholder buttons today; kept on screen@@ -169,7 +207,7 @@ export function MobileParticipantInfo() {style={{ background: 'var(--skype-ink)' }}><IWhisper className="w-[14px] h-[14px]" />- Whisper+ {tLabel('mpinfo.btnWhisper', 'Whisper')}</button><buttontype="button"@@ -177,7 +215,7 @@ export function MobileParticipantInfo() {style={{ border: '1px solid var(--ink-100)' }}><IConvene className="w-[14px] h-[14px]" />- Convene+ {tLabel('mpinfo.btnConvene', 'Convene')}</button></>)}@@ -185,13 +223,13 @@ export function MobileParticipantInfo() {</Section>{p.email && (- <Section title="Email">+ <Section title={tLabel('mpinfo.sectionEmail', 'Email')}><buttontype="button"onClick={copyEmail}className="w-full py-2.5 px-3 bg-cloud rounded-[12px] flex items-center gap-2 text-[12px] text-ink-700 font-mono active:opacity-80 transition text-left"style={{ border: '1px solid var(--ink-100)' }}- title={copied ? 'Copied!' : 'Tap to copy'}+ title={copied ? tLabel('mpinfo.emailCopiedTitle', 'Copied!') : tLabel('mpinfo.emailTapCopyTitle', 'Tap to copy')}><IMail className="w-3.5 h-3.5 shrink-0 text-skype-deep" strokeWidth={2} /><span className="truncate flex-1">{p.email}</span>@@ -201,14 +239,14 @@ export function MobileParticipantInfo() {copied ? 'text-avail' : 'text-ink-300',)}>- {copied ? 'copied' : 'copy'}+ {copied ? tLabel('mpinfo.emailCopied', 'copied') : tLabel('mpinfo.emailCopy', 'copy')}</span></button></Section>)}{isAgent && (p.tools?.length ?? 0) > 0 && (- <Section title="Tools enabled">+ <Section title={tLabel('mpinfo.toolsEnabled', 'Tools enabled')}><div className="grid grid-cols-2 gap-1.5">{(p.tools ?? []).map((t) => (<div@@ -225,7 +263,7 @@ export function MobileParticipantInfo() {)}{isAgent && p.bio && (- <Section title={`About ${p.name}`}>+ <Section title={tLabel('mpinfo.sectionAbout', `About ${p.name}`, { name: p.name })}><divclassName="py-3 px-3.5 rounded-r-[10px] font-display italic font-normal text-[13.5px] leading-[1.55] text-ink-700"style={{@@ -245,6 +283,8 @@ export function MobileParticipantInfo() {/** Sticky deep-page header — back arrow + screen title. Matches the* pattern used by MobileChatInfo so deep navigation feels uniform. */function DeepHeader({ title, onBack }: { title: string; onBack: () => void }) {+ // tLabel: same shape as the main component's helper — see above.+ const tLabel = useTLabel()return (<headerclassName="border-b border-ink-100 bg-cloud/95 backdrop-blur-md sticky top-0 z-10"@@ -255,7 +295,7 @@ function DeepHeader({ title, onBack }: { title: string; onBack: () => void }) {type="button"onClick={onBack}className="w-9 h-9 grid place-items-center rounded-full active:bg-sky2-50 transition text-ink-700"- aria-label="Back"+ aria-label={tLabel('mpinfo.back', 'Back')}><IBack className="w-[18px] h-[18px]" /></button>diff --git a/src/mobile/MobileTabBar.tsx b/src/mobile/MobileTabBar.tsxindex 039a143..e5857e6 100644--- a/src/mobile/MobileTabBar.tsx+++ b/src/mobile/MobileTabBar.tsx@@ -3,15 +3,17 @@ import { useAuth } from '@/stores/auth'import { useConversations, isMuted } from '@/stores/conversations'import { IChat, IWhisper, IDoc, IAgent, IAgents, IShip } from '@/components/icons'import { Pressable } from './Pressable'+import { useT, type MessageKey } from '@/lib/i18n'import type { ViewKey } from '@/types'-const tabs: Array<{ key: ViewKey['view']; Icon: typeof IChat; label: string }> = [- { key: 'conversations', Icon: IChat, label: 'Chats' },- { key: 'whispers', Icon: IWhisper, label: 'Whispers' },- { key: 'shipping', Icon: IShip, label: 'Ship' },- { key: 'library', Icon: IDoc, label: 'Library' },- { key: 'agents', Icon: IAgent, label: 'Agents' },- { key: 'me', Icon: IAgents, label: 'Me' },+// Message keys, not strings — see the same note in desktop/Rail.tsx.+const tabs: Array<{ key: ViewKey['view']; Icon: typeof IChat; label: MessageKey }> = [+ { key: 'conversations', Icon: IChat, label: 'nav.chats' },+ { key: 'whispers', Icon: IWhisper, label: 'nav.whispers' },+ { key: 'shipping', Icon: IShip, label: 'nav.ship' },+ { key: 'library', Icon: IDoc, label: 'nav.library' },+ { key: 'agents', Icon: IAgent, label: 'nav.agents' },+ { key: 'me', Icon: IAgents, label: 'nav.me' },]/**@@ -25,6 +27,7 @@ const tabs: Array<{ key: ViewKey['view']; Icon: typeof IChat; label: string }> =* is the structural piece that matches native chrome.*/export function MobileTabBar() {+ const t = useT()const view = useApp((s) => s.view)const setView = useApp((s) => s.setView)const select = useApp((s) => s.selectConversation)@@ -74,7 +77,7 @@ export function MobileTabBar() {>{badge}</span>)}</span>- <span className="text-[10px] font-semibold tracking-wide">{label}</span>+ <span className="text-[10px] font-semibold tracking-wide">{t(label)}</span></Pressable>)})}diff --git a/src/mobile/MobileWhispers.tsx b/src/mobile/MobileWhispers.tsxindex 4dcfcc6..1f17954 100644--- a/src/mobile/MobileWhispers.tsx+++ b/src/mobile/MobileWhispers.tsx@@ -14,6 +14,7 @@ import { motion } from 'framer-motion'import { Pressable } from './Pressable'import { PullToRefresh } from './PullToRefresh'import { tapHaptic } from '@/lib/native'+import { useT } from '@/lib/i18n'import { useWhispers, whisperMessages, type WhispersStateLike } from '@/stores/whispers'import { useParticipants } from '@/stores/participants'import { HiveAvatar } from '@/components/HiveAvatar'@@ -113,9 +114,10 @@ function WhisperBody({ body }: { body: string }) {function WhisperPreview({ w }: { w: ApiWhisper }) {const byIdList = useWhispers((s) => s.byId)+ const t = useT()const msgs = byIdList[w.id] ?? []const last = msgs.length > 0 ? msgs[msgs.length - 1] : null- if (!last) return <span className="font-display italic">no messages yet</span>+ if (!last) return <span className="font-display italic">{t('mwhisp.previewNone')}</span>const preview = (last.body ?? '').slice(0, 140).replace(/\n/g, ' ').trim()if (!preview) return <span className="font-display italic">…</span>return <span>{preview}</span>@@ -131,6 +133,7 @@ function EyeGlyph({ size = 16 }: { size?: number }) {}function WhisperListRow({ w, onSelect }: { w: ApiWhisper; onSelect: (id: string) => void }) {+ const t = useT()const byId = useParticipants((s) => s.byId)const ms = w.members.map((id) => byId[id])@@ -140,8 +143,8 @@ function WhisperListRow({ w, onSelect }: { w: ApiWhisper; onSelect: (id: string)const namesLabel = ms.length <= 2? null: ms.length === 3- ? `${ms[0].name}, ${ms[1].name} & 1 more`- : `${ms[0].name}, ${ms[1].name} & ${ms.length - 2} more`+ ? t('mwhisp.moreOne', { a: ms[0].name, c: ms[1].name })+ : t('mwhisp.moreN', { a: ms[0].name, c: ms[1].name, n: ms.length - 2 })return (<motion.button@@ -188,6 +191,7 @@ function WhisperListRow({ w, onSelect }: { w: ApiWhisper; onSelect: (id: string)}export function MobileWhispersList({ onSelect }: { onSelect: (id: string) => void }) {+ const t = useT()const list = useWhispers((s) => s.list)const loaded = useWhispers((s) => s.loaded)@@ -212,7 +216,7 @@ export function MobileWhispersList({ onSelect }: { onSelect: (id: string) => voi<EyeGlyph size={14} /></div><h1 className="font-display font-medium text-[26px] tracking-tight text-ink-900 leading-none">- Whispers+ {t('mwhisp.title')}</h1><spanclassName="ml-auto inline-flex items-center gap-1.5 py-1 px-2.5 rounded-full text-[10px] font-bold uppercase tracking-[0.08em]"@@ -223,11 +227,11 @@ export function MobileWhispersList({ onSelect }: { onSelect: (id: string) => voi}}><span className="w-1.5 h-1.5 rounded-full bg-whisper animate-pulse-soft" />- observing+ {t('mwhisp.observing')}</span></div><div className="px-4 pb-2.5 text-[12px] text-ink-500 font-display italic leading-snug">- Silent peek into agent-to-agent channels — they can't see you.+ {t('mwhisp.headerSub')}</div></div>@@ -236,12 +240,12 @@ export function MobileWhispersList({ onSelect }: { onSelect: (id: string) => voi<div className="pb-2">{!loaded && list.length === 0 && (<div className="px-6 py-10 text-center text-[12.5px] text-ink-300 font-display italic">- Listening for agent chatter…+ {t('mwhisp.loading')}</div>)}{loaded && list.length === 0 && (<div className="px-6 py-10 text-center text-[13px] text-ink-500 font-display italic leading-relaxed">- No whispers yet. Send a message in a group to nudge an agent to whisper.+ {t('mwhisp.empty')}</div>)}{list.map((w) => (@@ -290,6 +294,7 @@ function Bubble({ msg }: { msg: ApiWhisperMessage }) {}export function MobileWhisperRoom({ pairId, onBack }: { pairId: string; onBack: () => void }) {+ const t = useT()const list = useWhispers((s) => s.list)const byIdList = useWhispers((s) => s.byId)const streaming = useWhispers((s) => s.streaming)@@ -316,7 +321,7 @@ export function MobileWhisperRoom({ pairId, onBack }: { pairId: string; onBack:</div></header><div className="flex-1 grid place-items-center text-center px-6 text-[13px] text-ink-500 font-display italic">- This whisper has closed.+ {t('mwhisp.closed')}</div></section>)@@ -356,7 +361,7 @@ export function MobileWhisperRoom({ pairId, onBack }: { pairId: string; onBack:</div><div className="text-[10.5px] text-whisper-deep font-semibold mt-0.5 flex items-center gap-1"><span className="w-1.5 h-1.5 rounded-full bg-whisper animate-pulse-soft" />- Observing · {whisper.msgCount} msgs+ {t('mwhisp.observingCount', { n: whisper.msgCount })}</div></div></div>@@ -371,15 +376,15 @@ export function MobileWhisperRoom({ pairId, onBack }: { pairId: string; onBack:<svg width="12" height="12" fill="none" stroke="currentColor" strokeWidth={2} viewBox="0 0 24 24"><path d="M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z" /><circle cx="12" cy="12" r="3" /></svg></div><div className="text-[11px] text-whisper-deep flex-1">- <b className="font-bold tracking-wider uppercase text-[10px]">Observer mode</b>- <span className="font-display italic font-normal text-ink-500 ml-1.5">silent peek — they can't see you</span>+ <b className="font-bold tracking-wider uppercase text-[10px]">{t('mwhisp.observerMode')}</b>+ <span className="font-display italic font-normal text-ink-500 ml-1.5">{t('mwhisp.observerSub')}</span></div></div></header><div className="flex-1 overflow-y-auto py-4 px-3 flex flex-col gap-3 relative">{messages.length === 0 && (- <div className="text-center text-ink-300 text-[12px] font-display italic py-6">no messages yet</div>+ <div className="text-center text-ink-300 text-[12px] font-display italic py-6">{t('mwhisp.previewNone')}</div>)}{messages.map((msg) => <Bubble key={msg.id} msg={msg} />)}</div>@@ -387,7 +392,7 @@ export function MobileWhisperRoom({ pairId, onBack }: { pairId: string; onBack:<div className="border-t border-whisper-100 bg-cloud px-3 pt-2.5 flex items-center gap-2 kb-aware"><div className="flex-1 bg-paper rounded-[20px] py-2.5 px-3.5 min-h-[40px] flex items-center"style={{ border: '1px solid var(--whisper-100)' }}>- <span className="text-[13px] text-ink-300 italic flex-1">Inject a thought…</span>+ <span className="text-[13px] text-ink-300 italic flex-1">{t('mwhisp.inject')}</span></div></div></section>diff --git a/src/mobile/ViewBoundary.tsx b/src/mobile/ViewBoundary.tsxindex bb788ed..0225c6c 100644--- a/src/mobile/ViewBoundary.tsx+++ b/src/mobile/ViewBoundary.tsx@@ -12,6 +12,7 @@* a fresh tab always gets a fresh boundary.*/import { Component, type ReactNode } from 'react'+import { translate, useLocaleStore, type MessageKey } from '@/lib/i18n'interface Props {/** Human-readable tab name shown in the fallback copy. */@@ -38,21 +39,27 @@ export class ViewBoundary extends Component<Props, State> {render(): ReactNode {if (this.state.error) {+ // Class component — read the locale snapshot at render time. The+ // locale store is a plain zustand slice; useLocaleStore.getState()+ // gives us a fresh value on every render without re-subscribing+ // (we don't need reactivity inside this once-per-error render).+ const locale = useLocaleStore.getState().locale+ const t = (k: MessageKey, vars?: Record<string, string | number>) => translate(locale, k, vars)return (<div className="absolute inset-0 grid place-items-center bg-paper p-8 text-center"><div className="max-w-[280px]"><div className="font-display text-[18px] text-ink-900 mb-2">- {this.props.name} hit a snag.+ {t('viewBoundary.hitASnag', { name: this.props.name })}</div><div className="font-display italic text-[13px] text-ink-500 leading-snug mb-5">- {this.state.error.message || 'An unexpected error occurred while rendering this tab.'}+ {this.state.error.message || t('viewBoundary.fallbackMsg')}</div><buttontype="button"onClick={() => this.setState({ error: null })}className="h-10 px-5 rounded-[10px] text-[13px] font-semibold text-white"style={{ background: 'var(--skype)' }}- >Try again</button>+ >{t('viewBoundary.tryAgain')}</button></div></div>)diff --git a/src/web/WebShell.tsx b/src/web/WebShell.tsxindex 36b5b3d..47b2ced 100644--- a/src/web/WebShell.tsx+++ b/src/web/WebShell.tsx@@ -16,6 +16,7 @@ import { useEffect, useState } from 'react'import { api } from '@/api/client'import { useAuth } from '@/stores/auth'import { AuthGate } from '@/components/AuthGate'+import { useT } from '@/lib/i18n'import { CloudLogo } from '@/components/Avatar'import { GetDesktopAppLink } from '@/components/GetDesktopAppLink'@@ -46,6 +47,7 @@ export function WebShell() {* mount; the manual button is a re-arm in case the browser swallowed* the first attempt (e.g. user was tabbed away). */function WebHandoff() {+ const t = useT()const token = useAuth((s) => s.token)const companyId = useAuth((s) => s.activeCompanyId)const clear = useAuth((s) => s.clear)@@ -73,9 +75,9 @@ function WebHandoff() {<div className="w-[360px] flex flex-col items-center gap-7 text-center"><CloudLogo size={64} /><div className="space-y-1">- <div className="font-display text-[22px] text-ink-900">You're signed in</div>+ <div className="font-display text-[22px] text-ink-900">{t('web.signedIn')}</div><div className="font-display italic text-[13px] text-ink-400">- Opening Cumora on your desktop…+ {t('web.openingDesktop')}</div></div><div className="w-full flex flex-col gap-2.5">@@ -86,15 +88,15 @@ function WebHandoff() {background: 'var(--skype)',boxShadow: '0 6px 16px -4px rgba(0, 168, 240, 0.5)',}}- >Open in Cumora desktop</button>+ >{t('web.openDesktop')}</button><GetDesktopAppLink variant="button-secondary" /><buttononClick={() => void signOut()}className="text-[12px] text-ink-400 hover:text-ink-700 transition font-display italic mt-1"- >Sign out</button>+ >{t('web.signOut')}</button></div><div className="text-[11px] text-ink-300 font-display italic">- Cumora only runs as a desktop app — open it or install it to continue.+ {t('web.onlyDesktopNote')}</div></div></div>@@ -106,6 +108,7 @@ function WebHandoff() {* as a waitlist verdict (→ WaitlistConfirmedScreen, handled in App.tsx),* or as a suspended verdict (→ SuspendedScreen, also App.tsx). */function WebLanding() {+ const t = useT()const [busy, setBusy] = useState<'google' | 'github' | null>(null)const [err, setErr] = useState<string | null>(null)const approvedEntry = new URLSearchParams(location.search).has('approved')@@ -130,9 +133,9 @@ function WebLanding() {<div className="w-[360px] flex flex-col items-center gap-7"><CloudLogo size={64} /><div className="text-center space-y-1">- <div className="font-display text-[22px] text-ink-900">Cumora is a desktop app</div>+ <div className="font-display text-[22px] text-ink-900">{t('web.desktopApp')}</div><div className="font-display italic text-[13px] text-ink-400">- Sign in to join, or open the desktop app if it's already installed+ {t('web.desktopAppSub')}</div></div><div className="w-full flex flex-col gap-3">@@ -143,7 +146,7 @@ function WebLanding() {className="h-11 rounded-[10px] border border-ink-200 bg-white hover:bg-cloud transition-colors flex items-center justify-center gap-3 text-[14px] text-ink-800 disabled:opacity-60"><GoogleMark />- {busy === 'google' ? 'Redirecting…' : 'Continue with Google'}+ {busy === 'google' ? t('auth.redirecting') : t('auth.continueWithGoogle')}</button><buttontype="button"@@ -152,7 +155,7 @@ function WebLanding() {className="h-11 rounded-[10px] bg-[#1f2328] hover:bg-[#2a3037] text-white transition-colors flex items-center justify-center gap-3 text-[14px] disabled:opacity-60"><GitHubMark />- {busy === 'github' ? 'Redirecting…' : 'Continue with GitHub'}+ {busy === 'github' ? t('auth.redirecting') : t('auth.continueWithGithub')}</button></div>{err && (@@ -162,7 +165,7 @@ function WebLanding() {)}<div className="w-full flex items-center gap-3 text-[11px] text-ink-300 font-display italic"><div className="flex-1 h-px bg-ink-100" />- or+ {t('web.or')}<div className="flex-1 h-px bg-ink-100" /></div><div className="w-full flex flex-col gap-2.5">@@ -171,7 +174,7 @@ function WebLanding() {onClick={() => tryDeepLink('cumora://open')}className="w-full py-3 rounded-[12px] text-[14px] font-semibold text-ink-700 transition"style={{ background: 'var(--cloud)', border: '1px solid var(--ink-100)' }}- >Open in Cumora desktop</button>+ >{t('web.openDesktop')}</button><GetDesktopAppLinkvariant="button-secondary"gateBypass={approvedEntry}@@ -180,7 +183,7 @@ function WebLanding() {/></div><div className="text-[11px] text-ink-300 text-center font-display italic">- We use your provider only to verify it's you — no posting, no scope creep.+ {t('web.providerNote2')}</div></div></div>