Open source Grok Bot alternative, Bring your own agent and subscription: message Claude Code, Codex, Gemini CLI, Cursor, Copilot and 40+ AI agents as bots on your own computer, from iPhone, Mac, Windows, Linux or terminal. Agent-agnostic and free. Also a Muse and Dots alternative. Built in Rust.
Rust acpagent-client-protocolai-agentsai-assistantclaudeclaude-codecodexcoding-agentscursorgeminigemini-cligrok-bot-alternativeiosiphonelinuxmacosmcpopen-sourcerustself-hosted
fix(i18n): translate routine notices and trace labels (#287)
redmyyyyyy-web2fd91431dc15
diff --git a/.github/workflows/kit.yml b/.github/workflows/kit.ymlindex a401030b..a53a4c51 100644--- a/.github/workflows/kit.yml+++ b/.github/workflows/kit.yml@@ -24,9 +24,12 @@ jobs:- name: Test on an iPhone simulatorrun: |DEVICE=$(xcrun simctl list devices available | grep -m1 -oE 'iPhone [^(]+\(([0-9A-F-]{36})\)' | grep -oE '[0-9A-F-]{36}')+ # Wait for SpringBoard before UIKit tests start, and use this ready device+ # instead of booting parallel test simulators on the shared runner.+ xcrun simctl bootstatus "$DEVICE" -b# A test that fails is run again, up to twice: a timing hiccup on a busy runner no longer fails# the whole run (the result bundle still records the retries).- xcodebuild test -scheme CodyncKit-Package -destination "platform=iOS Simulator,id=$DEVICE" -resultBundlePath "$RUNNER_TEMP/CodyncKit.xcresult" -retry-tests-on-failure -test-iterations 3 -quiet+ xcodebuild test -scheme CodyncKit-Package -destination "platform=iOS Simulator,id=$DEVICE" -parallel-testing-enabled NO -resultBundlePath "$RUNNER_TEMP/CodyncKit.xcresult" -retry-tests-on-failure -test-iterations 3 -quiet- name: Report test failuresif: failure()run: |diff --git a/apps/android/WhatsNew.md b/apps/android/WhatsNew.mdindex 8957367e..55c3c18c 100644--- a/apps/android/WhatsNew.md+++ b/apps/android/WhatsNew.md@@ -16,11 +16,13 @@ else a generic "Bug fixes and improvements" line. Delete old sections.- 新增俄文介面:在設定選擇「Русский」,或跟隨系統的俄文語言。- 用 QR Code 配對時,如果電腦當下沒能加入你的帳號(例如手機連不上 Codync 雲端,或電腦的雲端關著),下次連上時會自動補上。- 語音通話的對話紀錄更好讀,通話列在 bot 沒說話時也會顯示一排靜止的點。+- 排隊狀態、例行任務和執行紀錄會跟隨介面語言,名稱與訊息保留原文。### en-US- When bots use different agents, the bot list shows each one's logo (off in Settings › Appearance).-- Fixed a crash when the connection to your computer dropped.+- Fixed a crash when the connection dropped.- A one-off speech recognition error no longer ends a voice call.- Choose Português (Brasil) or Русский in Settings, or follow your system language.-- A QR-paired computer that couldn't join your account joins it when it next connects.+- A QR-paired computer joins your account when it next connects.- Calls read more clearly, and the call bar shows still dots while the bot is quiet.+- Routine and trace labels follow your language.diff --git a/apps/android/app/src/main/kotlin/com/codync/android/ChatRows.kt b/apps/android/app/src/main/kotlin/com/codync/android/ChatRows.ktindex d805b674..8a268cb7 100644--- a/apps/android/app/src/main/kotlin/com/codync/android/ChatRows.kt+++ b/apps/android/app/src/main/kotlin/com/codync/android/ChatRows.kt@@ -219,7 +219,7 @@ internal val Entry.reactions: List<String> get() = (data["reactions"] as? JsonAr"delivering" -> "Delivered to the computer"else -> null}- if (text != null) Text(text, style = Type.caption2, color = Palette.tertiary)+ if (text != null) Text(tr(text), style = Type.caption2, color = Palette.tertiary)}/** A message this phone is still delivering: the same bubble, with how far it got. */@@ -321,7 +321,7 @@ internal val Entry.botReactions: Map<String, List<String>> get() =Row(Modifier.plainButton(action = open).padding(vertical = 10.dp), verticalAlignment = Alignment.CenterVertically,horizontalArrangement = Arrangement.spacedBy(6.dp)) {Symbol("clock.arrow.circlepath", size = 15.dp, tint = Palette.secondary)- Text(entry.text.ifEmpty { "Routine" }, style = Type.footnote, color = Palette.secondary)+ Text(tr(entry.text.ifEmpty { "Routine" }), style = Type.footnote, color = Palette.secondary)}if (entry.data["retry"]?.jsonPrimitive?.booleanOrNull == true) {if (retrying) Spinner(14.dp)@@ -332,7 +332,7 @@ internal val Entry.botReactions: Map<String, List<String>> get() =/** A line from the computer. `addFallback`, on a failure the bot's fallbacks could have carried, opens them. */@Composable private fun NoticeRow(entry: Entry, addFallback: (() -> Unit)?) {- val text = entry.text+ val text = tr(entry.text)val length = callLength(entry)when {length.isNotEmpty() -> Row(Modifier.fillMaxWidth(), horizontalArrangement = Arrangement.Center, verticalAlignment = Alignment.CenterVertically) {diff --git a/apps/android/app/src/main/kotlin/com/codync/android/TraceView.kt b/apps/android/app/src/main/kotlin/com/codync/android/TraceView.ktindex ace36d8d..3d24cfcf 100644--- a/apps/android/app/src/main/kotlin/com/codync/android/TraceView.kt+++ b/apps/android/app/src/main/kotlin/com/codync/android/TraceView.kt@@ -46,7 +46,7 @@ import kotlinx.serialization.json.jsonPrimitiveif (turns.isEmpty()) item { Text(tr("Nothing yet."), style = Type.body, color = Palette.tertiary) }items(turns, key = { it.first }) { (turn, entries) ->Column(verticalArrangement = Arrangement.spacedBy(8.dp)) {- Text(entries.firstOrNull { it.kind == "user" }?.text ?: "Turn $turn", Modifier.padding(start = 4.dp),+ Text(entries.firstOrNull { it.kind == "user" }?.text ?: tr("Turn {turn}").replace("{turn}", turn.toString()), Modifier.padding(start = 4.dp),style = Type.subheadline.semibold, color = Palette.text, maxLines = 1, overflow = TextOverflow.Ellipsis)CardSection { for (entry in entries) row { TraceRow(entry, unfolded = turn == running) } }}@@ -118,10 +118,11 @@ internal fun workingSteps(entries: List<Entry>): List<Entry> {"edit" -> ThinkingOrbState.Shaping; else -> ThinkingOrbState.Working }val diffs = (d["diffs"] as? JsonArray).orEmpty().mapNotNull { it as? JsonObject }val output = d.text("output").orEmpty()+ val title = d.text("title") ?: "Tool"val label: @Composable () -> Unit = {Row(verticalAlignment = Alignment.CenterVertically, horizontalArrangement = Arrangement.spacedBy(8.dp)) {Box(Modifier.width(18.dp), contentAlignment = Alignment.Center) { Symbol(icon, size = 15.dp, tint = Palette.secondary) }- Text(d.text("title") ?: "Tool", Modifier.weight(1f), style = Type.subheadline, color = Palette.text, maxLines = 2, overflow = TextOverflow.Ellipsis)+ Text(if (title == "Tool") tr("Tool") else title, Modifier.weight(1f), style = Type.subheadline, color = Palette.text, maxLines = 2, overflow = TextOverflow.Ellipsis)when (d.text("status")) {"completed" -> Symbol("checkmark", size = 14.dp, tint = Palette.accent)"failed" -> Symbol("xmark", size = 14.dp, tint = Palette.danger)diff --git a/apps/android/app/src/test/kotlin/com/codync/android/AppLanguageTest.kt b/apps/android/app/src/test/kotlin/com/codync/android/AppLanguageTest.ktindex 94823601..79a96563 100644--- a/apps/android/app/src/test/kotlin/com/codync/android/AppLanguageTest.kt+++ b/apps/android/app/src/test/kotlin/com/codync/android/AppLanguageTest.kt@@ -92,8 +92,23 @@ class AppLanguageTest {"this Mac" to "这台 Mac",)val sentence = "Runs the official installer on this Mac."- val expected = "在 这台 Mac 上运行官方安装程序。"+ val expected = "在 this Mac 上运行官方安装程序。"assertEquals(expected, translate(sentence, AppLanguage.Zh, systemIsChinese = false, table))assertEquals(expected, translate(sentence, AppLanguage.Zh, systemIsChinese = false, table))}+ @Test fun filledTemplatesPreserveNamesMessagesAndNestedHints() {+ val table = mapOf(+ "Routine · {name}" to "例行任务 · {name}",+ "Message from {name}: {message}" to "来自 {name}:{message}",+ "{name} isn't set up. {hint}" to "{name} 尚未设置。{hint}",+ "Install {name}." to "安装 {name}。",+ "Plan" to "计划", "connected" to "已连接", "Standby" to "待命",+ )+ for (name in listOf("Plan", "connected", "Standby", "$&", "{hint}")) {+ assertEquals("例行任务 · $name", translate("Routine · $name", AppLanguage.Zh, false, table))+ assertEquals("来自 $name:Plan", translate("Message from $name: Plan", AppLanguage.Zh, false, table))+ }+ assertEquals("{hint} 尚未设置。安装 Plan。",+ translate("{hint} isn't set up. Install Plan.", AppLanguage.Zh, false, table))+ }}diff --git a/apps/android/design/src/main/kotlin/com/codync/android/design/L10n.kt b/apps/android/design/src/main/kotlin/com/codync/android/design/L10n.ktindex a9a3e987..9ad93cd8 100644--- a/apps/android/design/src/main/kotlin/com/codync/android/design/L10n.kt+++ b/apps/android/design/src/main/kotlin/com/codync/android/design/L10n.kt@@ -48,7 +48,7 @@ private data class Piece(val literal: String?, val token: String?)/*** A sentence the host or a view already filled in, matched back to its `{token}` phrase.- * A slot that is itself a known phrase (a setup hint) is translated too.+ * Only app-owned hints recurse; names and free text stay as written.*/private val templateLock = Any()private var cachedKey: Map<String, String>? = null@@ -98,6 +98,9 @@ private fun parseTemplate(template: String): List<Piece>? {return if (pieces.any { it.token != null }) pieces else null}+private val localizableSlots = setOf("{hint}", "{error}", "{setup}", "{kind}", "{when}", "{status}", "{reason}", "{shortcut}")+private val placeholder = Regex("\\{[A-Za-z0-9]+\\}")+private fun fill(text: String, pieces: List<Piece>, phrase: String, phrases: Map<String, String>, depth: Int): String? {var pos = 0val caps = linkedMapOf<String, String>()@@ -116,12 +119,15 @@ private fun fill(text: String, pieces: List<Piece>, phrase: String, phrases: Mappos = end}if (pos != text.length) return null- var result = phrase- for ((token, value) in caps) {- val inner = phrases[value] ?: if (depth == 0) templated(value, phrases, 1) else null- result = result.replace(token, inner ?: value)+ val values = caps.mapValues { (token, value) ->+ // Only app-owned UI slots translate recursively; names and free text stay verbatim.+ val localizable = token in localizableSlots+ val inner = if (localizable) {+ phrases[value] ?: if (depth == 0) templated(value, phrases, 1) else null+ } else null+ inner ?: value}- return result+ return placeholder.replace(phrase) { match -> values[match.value] ?: match.value }}fun translate(text: String, preference: AppLanguage, systemIsChinese: Boolean, phrases: Map<String, String>): String {diff --git a/apps/desktop/src/renderer/lib/l10n.test.ts b/apps/desktop/src/renderer/lib/l10n.test.tsindex 709707ab..4a25c020 100644--- a/apps/desktop/src/renderer/lib/l10n.test.ts+++ b/apps/desktop/src/renderer/lib/l10n.test.ts@@ -63,6 +63,11 @@ test('known chrome becomes Chinese and everything else stays', () => {assert.equal(translate('Restart host', 'zh', false), '重启 Host')assert.equal(translate('2 bots working', 'zh', false), '2 个 Bot 正在工作')assert.equal(translate('Check for updates', 'zh', false), '检查更新')+ assert.equal(translate('Routine · News', 'zh', false), '例行任务 · News')+ assert.equal(translate('Routine · News', 'zh-Hant', 'en'), '例行任務 · News')+ assert.equal(translate('Turn {turn}', 'zh', false), '第 {turn} 轮')+ assert.equal(translate('Tool', 'zh', false), '工具')+ assert.equal(translate('Tool', 'zh-Hant', 'en'), '工具')assert.equal(translate('Computer access is ready.', 'zh', false), '电脑访问已就绪。')assert.equal(translate('Storage', 'zh', false), '存储')assert.equal(translate('Extensions sections', 'zh', false), '扩展分类')@@ -113,7 +118,7 @@ test('known chrome becomes Chinese and everything else stays', () => {assert.equal(translate('Remove {name}?', 'zh', false), '移除 {name}?')assert.equal(translate('No setup needed.', 'zh', false), '无需设置。')assert.equal(translate('On {name} ({kind})', 'zh', false), '在 {name} 上({kind})')- assert.equal(translate('Runs the official installer on this Mac.', 'zh', false), '在 这台 Mac 上运行官方安装程序。')+ assert.equal(translate('Runs the official installer on this Mac.', 'zh', false), '在 this Mac 上运行官方安装程序。')assert.equal(translate('Use Claude subscription', 'zh', false), '使用 Claude 订阅')assert.equal(translate('Support', 'zh', false), '支持')assert.equal(translate('Devices that can use FORWARDXU-MC3', 'zh', false), '可以使用 FORWARDXU-MC3 的设备')@@ -190,3 +195,26 @@ test('Russian resolves regional tags and keeps its native menu name', () => {assert.equal(languageTitle('ru', 'en', 'en'), 'Русский')assert.equal(resolvedLanguage('ru', 'pt-BR'), 'ru')})++test('filled interface templates preserve user-owned names', () => {+ for (const name of ['Plan', 'connected', 'Standby']) {+ assert.equal(translate(`Routine · ${name}`, 'zh', 'en'), `例行任务 · ${name}`)+ assert.equal(translate(`Routine · ${name}`, 'zh-Hant', 'en'), `例行任務 · ${name}`)+ assert.equal(translate(`Remove ${name}?`, 'zh', 'en'), `移除 ${name}?`)+ }+})++test('all catalogs preserve names and substitute captured values only once', () => {+ for (const language of appLanguages.filter((id) => id !== 'en' && id !== 'system')) {+ for (const name of ['Plan', 'connected', 'Standby', '$&', '{hint}']) {+ const expected = translate('Routine · {name}', language).replaceAll('{name}', () => name)+ assert.equal(translate(`Routine · ${name}`, language), expected, `${language}: ${name}`)+ const title = translate('Message about “{title}”', language).replaceAll('{title}', () => name)+ assert.equal(translate(`Message about “${name}”`, language), title)+ }+ const hint = 'Install Claude Code and run `claude auth login`.'+ const expected = translate("{name} isn't set up on this computer. {hint}", language)+ .replaceAll('{hint}', translate(hint, language)).replaceAll('{name}', '{hint}')+ assert.equal(translate(`{hint} isn't set up on this computer. ${hint}`, language), expected)+ }+})diff --git a/apps/desktop/src/renderer/lib/l10n.ts b/apps/desktop/src/renderer/lib/l10n.tsindex c1e5efd6..43456866 100644--- a/apps/desktop/src/renderer/lib/l10n.ts+++ b/apps/desktop/src/renderer/lib/l10n.ts@@ -67,7 +67,7 @@ interface Piece { literal?: string; token?: string }/*** Phrase keys that already contain `{token}` slots, longest fixed text first.* A filled sentence ("Runs the official installer on this Mac.") matches the key,- * and a slot that is itself a known phrase (a setup hint) is translated too.+ * while only app-owned hints recurse; names and free text stay as written.*/const templates: Array<{ key: string; pieces: Piece[]; literal: number }> = Object.keys(hans).flatMap((key) => {const pieces = parseTemplate(key)@@ -98,6 +98,8 @@ function hit(key: string, primary: Record<string, string>, fallback: Record<strireturn primary[key] ?? fallback[key]}+const localizableSlots = new Set(['{hint}', '{error}', '{setup}', '{kind}', '{when}', '{status}', '{reason}', '{shortcut}'])+function fill(text: string, pieces: Piece[], phrase: string, primary: Record<string, string>, fallback: Record<string, string>, depth: number): string | undefined {let pos = 0const caps = new Map<string, string>()@@ -116,12 +118,13 @@ function fill(text: string, pieces: Piece[], phrase: string, primary: Record<strpos = end}if (pos !== text.length) return undefined- let result = phrasefor (const [token, value] of caps) {- const inner = hit(value, primary, fallback) ?? (depth === 0 ? templated(value, primary, fallback, 1) : undefined) ?? value- result = result.replaceAll(token, inner)+ // Only app-owned UI slots translate recursively; names and free text stay verbatim.+ const localizable = localizableSlots.has(token)+ const inner = localizable ? hit(value, primary, fallback) ?? (depth === 0 ? templated(value, primary, fallback, 1) : undefined) ?? value : value+ caps.set(token, inner)}- return result+ return phrase.replace(/\{[A-Za-z0-9]+\}/g, (token) => caps.get(token) ?? token)}/** A sentence the host or a view already filled in, matched back to its `{token}` phrase. */diff --git a/apps/desktop/src/renderer/views/thread/ChatRows.tsx b/apps/desktop/src/renderer/views/thread/ChatRows.tsxindex 74af248e..207d0146 100644--- a/apps/desktop/src/renderer/views/thread/ChatRows.tsx+++ b/apps/desktop/src/renderer/views/thread/ChatRows.tsx@@ -204,7 +204,8 @@ export function AgentBubble({ entry, openTrace, reply, openArtifact }: { entry:}export function NoticeRow({ entry, addFallback }: { entry: Entry; addFallback?: () => void }) {- const text = entry.data.text ?? ''+ const tr = useTr()+ const text = tr(entry.data.text ?? '')if (entry.data.callSeconds !== undefined) {return (<HStack justify="center" gap={6}>@@ -220,7 +221,7 @@ export function NoticeRow({ entry, addFallback }: { entry: Entry; addFallback?:<Icon name="exclamationmark.triangle.fill" size={10} color="var(--danger)" /><VStack gap={10} align="flex-start"><Text size="footnote" tone="text" className="selectable">{text}</Text>- {addFallback ? <Button kind="secondary" onClick={addFallback}>Add a fallback</Button> : null}+ {addFallback ? <Button kind="secondary" onClick={addFallback}>{tr('Add a fallback')}</Button> : null}</VStack></HStack>)diff --git a/apps/desktop/src/renderer/views/thread/RoutineNotice.tsx b/apps/desktop/src/renderer/views/thread/RoutineNotice.tsxindex e5c18de7..0f6f9695 100644--- a/apps/desktop/src/renderer/views/thread/RoutineNotice.tsx+++ b/apps/desktop/src/renderer/views/thread/RoutineNotice.tsx@@ -2,19 +2,21 @@ import type { Entry } from '@shared/models'import { IconButton, Spinner } from '../../components/Controls'import { Icon } from '../../components/Icon'import { HStack } from '../../components/Stack'+import { useTr } from '../../lib/use-language'import { useStore } from '../../store/context'/** A routine's line in the chat, which opens the routine; a failed run the user can run again has a retry button. */export function RoutineNotice({ entry, open }: { entry: Entry; open: () => void }) {const store = useStore()+ const tr = useTr()const retrying = store.answering.has(entry.id)return (<HStack gap={4} justify="center"><button className="chat-routine-notice" onClick={open}><Icon name="clock.arrow.circlepath" size={10} />- {entry.data.text ?? 'Routine'}+ {tr(entry.data.text ?? 'Routine')}</button>- {entry.data.retry && (retrying ? <Spinner size={10} /> : <IconButton title="Try again" icon="arrow.clockwise" size={20} onClick={() => store.retryRoutineRun(entry)} />)}+ {entry.data.retry && (retrying ? <Spinner size={10} /> : <IconButton title={tr('Try again')} icon="arrow.clockwise" size={20} onClick={() => store.retryRoutineRun(entry)} />)}</HStack>)}diff --git a/apps/desktop/src/renderer/views/thread/TraceView.tsx b/apps/desktop/src/renderer/views/thread/TraceView.tsxindex bc1386f3..b58dab6b 100644--- a/apps/desktop/src/renderer/views/thread/TraceView.tsx+++ b/apps/desktop/src/renderer/views/thread/TraceView.tsx@@ -40,7 +40,7 @@ export function TraceView({ botId }: { botId: string }) {{sorted.map(([turn, entries]) => (<VStack key={turn} gap={8}><Text as="div" size="compactSecondary" weight="semibold" tone="text" truncate className="trace-turn-title">- {entries.find((e) => e.kind === 'user')?.data.text ?? `Turn ${turn}`}+ {entries.find((e) => e.kind === 'user')?.data.text ?? tr('Turn {turn}').replaceAll('{turn}', String(turn))}</Text><CardSection>{entries.map((e) => (@@ -105,7 +105,7 @@ export function TraceRow({ entry, unfolded }: { entry: Entry; unfolded: booleanreturn (<VStack gap={6}><Label icon={<Icon name="checklist" size={11} weight="bold" />} weight="bold">- Plan+ {tr('Plan')}</Label>{(d.entries ?? []).map((item, i) => (<Label@@ -130,6 +130,8 @@ export function TraceRow({ entry, unfolded }: { entry: Entry; unfolded: boolean{d.title ?? 'Approval'}</Label>)+ case 'notice':+ return <Text size="footnote" tone="tertiary">{tr(d.text ?? '')}</Text>default:return <Text size="footnote" tone="tertiary">{d.text ?? ''}</Text>}@@ -144,12 +146,13 @@ export function ToolRow({ data }: { data: EntryData }) {const tr = useTr()const [expanded, setExpanded] = useState(false)const hasBody = !!data.output || !!data.diffs?.length+ const title = data.title ?? 'Tool'const label = (<HStack as="span" gap={8} grow><IconSlot width={18} tone="secondary"><Icon name={toolIcon(data.toolKind)} size={10} /></IconSlot>- <Text size="subheadline" tone="text" lines={2} grow>{data.title ?? tr(`Tool`)}</Text>+ <Text size="subheadline" tone="text" lines={2} grow>{title === 'Tool' ? tr('Tool') : title}</Text>{data.status === 'completed' ? (<Icon name="checkmark" size={10} color="var(--accent)" />) : data.status === 'failed' ? (diff --git a/apps/ios/Kit/Sources/CodyncKit/L10n.swift b/apps/ios/Kit/Sources/CodyncKit/L10n.swiftindex 80cb718c..b1929b9f 100644--- a/apps/ios/Kit/Sources/CodyncKit/L10n.swift+++ b/apps/ios/Kit/Sources/CodyncKit/L10n.swift@@ -211,6 +211,10 @@ public enum L10n {return nil}+ private static let localizableSlots: Set<String> = [+ "{hint}", "{error}", "{setup}", "{kind}", "{when}", "{status}", "{reason}", "{shortcut}",+ ]+private static func fill(_ text: String,pieces: [Piece],@@ -240,12 +244,16 @@ public enum L10n {pos = end}guard pos == text.endIndex else { return nil }- var result = phrase+ var values: [String: String] = [:]for (token, value) in caps {- let inner = primary[value] ?? fallback[value] ?? (depth == 0 ? nested(value, primary: primary, fallback: fallback) : nil) ?? value- result = result.replacingOccurrences(of: token, with: inner)+ // Only app-owned UI slots translate recursively; names and free text stay verbatim.+ let localizable = localizableSlots.contains(token)+ let inner = localizable ? (primary[value] ?? fallback[value] ?? (depth == 0 ? nested(value, primary: primary, fallback: fallback) : nil) ?? value) : value+ values[token] = inner+ }+ return phrase.replacing(#/\{[A-Za-z0-9]+\}/#) { match in+ values[String(match.output)] ?? String(match.output)}- return result}/// One more template pass, for a setup hint inside an error. It does not look inside its own slots.diff --git a/apps/ios/Kit/Sources/CodyncKit/Resources/Languages/de.json b/apps/ios/Kit/Sources/CodyncKit/Resources/Languages/de.jsonindex 3bc7e45e..b85daed5 100644--- a/apps/ios/Kit/Sources/CodyncKit/Resources/Languages/de.json+++ b/apps/ios/Kit/Sources/CodyncKit/Resources/Languages/de.json@@ -706,6 +706,11 @@"Connect to this computer to save your routine.": "Verbinde dich mit diesem Computer, um die Routine zu speichern.","Enter a name and instruction above to save.": "Gib oben einen Namen und eine Anweisung ein, um zu speichern.","Delete routine": "Routine löschen",+ "Queued": "In der Warteschlange",+ "Queued until this response finishes": "Wartet, bis diese Antwort fertig ist",+ "Routine · {name}": "Routine · {name}",+ "Tool": "Werkzeug",+ "Turn {turn}": "Runde {turn}","Routines": "Routinen","Set up a routine": "Routine einrichten","Ask the bot for a routine": "Bot um eine Routine bitten",@@ -1220,13 +1225,13 @@"Talk to a bot from any app, then tap the key once more to send.": "Sprich aus jeder App mit einem Bot und drücke die Taste noch einmal zum Senden.","Right ⌘ twice": "Rechte ⌘ zweimal","Left ⌘ twice": "Linke ⌘ zweimal",- "Tip: double-tap {key} to talk from any app, then tap it once to send.": "Tipp: Drücke {key} zweimal, um aus jeder App zu sprechen, und einmal zum Senden.",+ "Tip: double-tap {shortcut} to talk from any app, then tap it once to send.": "Tipp: Drücke {shortcut} zweimal, um aus jeder App zu sprechen, und einmal zum Senden.","the right ⌘": "die rechte ⌘","the left ⌘": "die linke ⌘","{name} (not installed)": "{name} (nicht installiert)","Copy template": "Vorlage kopieren","Siri and Dictation are disabled": "Siri und Diktat sind deaktiviert",- "the Codync cloud refused ({status} {code}): {message}": "die Codync-Cloud hat abgelehnt ({status} {code}): {message}",+ "the Codync cloud refused ({status} {reason}): {hint}": "die Codync-Cloud hat abgelehnt ({status} {reason}): {hint}","forbidden": "verboten","Sign in on the computer to use remote screen relay.": "Melde dich auf dem Computer an, um das Remote-Bildschirm-Relay zu verwenden.","Remote screen relay is not configured on this cloud.": "Das Remote-Bildschirm-Relay ist in dieser Cloud nicht eingerichtet.",diff --git a/apps/ios/Kit/Sources/CodyncKit/Resources/Languages/es.json b/apps/ios/Kit/Sources/CodyncKit/Resources/Languages/es.jsonindex 1b03ea39..960e905a 100644--- a/apps/ios/Kit/Sources/CodyncKit/Resources/Languages/es.json+++ b/apps/ios/Kit/Sources/CodyncKit/Resources/Languages/es.json@@ -706,6 +706,11 @@"Connect to this computer to save your routine.": "Conecta con esta computadora para guardar tu rutina.","Enter a name and instruction above to save.": "Introduce un nombre y una instrucción arriba para guardar.","Delete routine": "Eliminar rutina",+ "Queued": "En cola",+ "Queued until this response finishes": "En espera de que termine esta respuesta",+ "Routine · {name}": "Rutina · {name}",+ "Tool": "Herramienta",+ "Turn {turn}": "Turno {turn}","Routines": "Rutinas","Set up a routine": "Configurar una rutina","Ask the bot for a routine": "Pedir una rutina al bot",@@ -1220,13 +1225,13 @@"Talk to a bot from any app, then tap the key once more to send.": "Habla con un bot desde cualquier app y pulsa la tecla una vez más para enviar.","Right ⌘ twice": "⌘ derecha dos veces","Left ⌘ twice": "⌘ izquierda dos veces",- "Tip: double-tap {key} to talk from any app, then tap it once to send.": "Consejo: pulsa {key} dos veces para hablar desde cualquier app y una vez para enviar.",+ "Tip: double-tap {shortcut} to talk from any app, then tap it once to send.": "Consejo: pulsa {shortcut} dos veces para hablar desde cualquier app y una vez para enviar.","the right ⌘": "la ⌘ derecha","the left ⌘": "la ⌘ izquierda","{name} (not installed)": "{name} (no instalado)","Copy template": "Copiar plantilla","Siri and Dictation are disabled": "Siri y Dictado están desactivados",- "the Codync cloud refused ({status} {code}): {message}": "la nube de Codync rechazó la solicitud ({status} {code}): {message}",+ "the Codync cloud refused ({status} {reason}): {hint}": "la nube de Codync rechazó la solicitud ({status} {reason}): {hint}","forbidden": "prohibido","Sign in on the computer to use remote screen relay.": "Inicia sesión en la computadora para usar el relé de pantalla remota.","Remote screen relay is not configured on this cloud.": "El relé de pantalla remota no está configurado en esta nube.",diff --git a/apps/ios/Kit/Sources/CodyncKit/Resources/Languages/fr.json b/apps/ios/Kit/Sources/CodyncKit/Resources/Languages/fr.jsonindex c1f214ea..bed0eece 100644--- a/apps/ios/Kit/Sources/CodyncKit/Resources/Languages/fr.json+++ b/apps/ios/Kit/Sources/CodyncKit/Resources/Languages/fr.json@@ -706,6 +706,11 @@"Connect to this computer to save your routine.": "Connectez-vous à cet ordinateur pour enregistrer la routine.","Enter a name and instruction above to save.": "Saisissez un nom et une instruction ci-dessus pour enregistrer.","Delete routine": "Supprimer la routine",+ "Queued": "En file d’attente",+ "Queued until this response finishes": "En attente de la fin de cette réponse",+ "Routine · {name}": "Routine · {name}",+ "Tool": "Outil",+ "Turn {turn}": "Tour {turn}","Routines": "Routines","Set up a routine": "Configurer une routine","Ask the bot for a routine": "Demander une routine au bot",@@ -1220,13 +1225,13 @@"Talk to a bot from any app, then tap the key once more to send.": "Parlez à un bot depuis n’importe quelle app, puis appuyez encore une fois sur la touche pour envoyer.","Right ⌘ twice": "Deux fois ⌘ droite","Left ⌘ twice": "Deux fois ⌘ gauche",- "Tip: double-tap {key} to talk from any app, then tap it once to send.": "Astuce : appuyez deux fois sur {key} pour parler depuis n’importe quelle app, puis une fois pour envoyer.",+ "Tip: double-tap {shortcut} to talk from any app, then tap it once to send.": "Astuce : appuyez deux fois sur {shortcut} pour parler depuis n’importe quelle app, puis une fois pour envoyer.","the right ⌘": "⌘ droite","the left ⌘": "⌘ gauche","{name} (not installed)": "{name} (non installé)","Copy template": "Copier le modèle","Siri and Dictation are disabled": "Siri et Dictée sont désactivés",- "the Codync cloud refused ({status} {code}): {message}": "le cloud Codync a refusé ({status} {code}) : {message}",+ "the Codync cloud refused ({status} {reason}): {hint}": "le cloud Codync a refusé ({status} {reason}) : {hint}","forbidden": "interdit","Sign in on the computer to use remote screen relay.": "Connectez-vous sur l’ordinateur pour utiliser le relais d’écran distant.","Remote screen relay is not configured on this cloud.": "Le relais d’écran distant n’est pas configuré sur ce cloud.",diff --git a/apps/ios/Kit/Sources/CodyncKit/Resources/Languages/ja.json b/apps/ios/Kit/Sources/CodyncKit/Resources/Languages/ja.jsonindex 0ffe521d..e34f3ba0 100644--- a/apps/ios/Kit/Sources/CodyncKit/Resources/Languages/ja.json+++ b/apps/ios/Kit/Sources/CodyncKit/Resources/Languages/ja.json@@ -706,6 +706,11 @@"Connect to this computer to save your routine.": "このコンピュータに接続してルーチンを保存します。","Enter a name and instruction above to save.": "上に名前と保存する手順を入力します。","Delete routine": "ルーチンの削除",+ "Queued": "待機中",+ "Queued until this response finishes": "この返信が終わるまで待機",+ "Routine · {name}": "ルーティン · {name}",+ "Tool": "ツール",+ "Turn {turn}": "{turn} ターン目","Routines": "ルーティン","Set up a routine": "ルーチンを設定する","Ask the bot for a routine": "ボットにルーティンを尋ねる",@@ -1220,13 +1225,13 @@"Talk to a bot from any app, then tap the key once more to send.": "任意のアプリからボットに話しかけ、キーをもう一度タップして送信します。","Right ⌘ twice": "右⌘を2回","Left ⌘ twice": "左⌘を2回",- "Tip: double-tap {key} to talk from any app, then tap it once to send.": "ヒント: {key} をダブルタップして任意のアプリから通話し、一度タップして送信します。",+ "Tip: double-tap {shortcut} to talk from any app, then tap it once to send.": "ヒント: {shortcut} をダブルタップして任意のアプリから通話し、一度タップして送信します。","the right ⌘": "右⌘","the left ⌘": "左⌘","{name} (not installed)": "{name} (未インストール)","Copy template": "テンプレートをコピー","Siri and Dictation are disabled": "Siri とディクテーションが無効になっています",- "the Codync cloud refused ({status} {code}): {message}": "Codync クラウドが拒否しました ({status} {code}): {message}",+ "the Codync cloud refused ({status} {reason}): {hint}": "Codync クラウドが拒否しました ({status} {reason}): {hint}","forbidden": "アクセス禁止","Sign in on the computer to use remote screen relay.": "リモート画面リレーを使用するには、コンピューターにサインインします。","Remote screen relay is not configured on this cloud.": "このクラウドではリモート画面リレーが構成されていません。",diff --git a/apps/ios/Kit/Sources/CodyncKit/Resources/Languages/ko.json b/apps/ios/Kit/Sources/CodyncKit/Resources/Languages/ko.jsonindex de97c08a..b114a95d 100644--- a/apps/ios/Kit/Sources/CodyncKit/Resources/Languages/ko.json+++ b/apps/ios/Kit/Sources/CodyncKit/Resources/Languages/ko.json@@ -706,6 +706,11 @@"Connect to this computer to save your routine.": "루틴을 저장하려면 이 컴퓨터에 연결하세요.","Enter a name and instruction above to save.": "저장하려면 위에 이름과 지침을 입력하세요.","Delete routine": "루틴 삭제",+ "Queued": "대기 중",+ "Queued until this response finishes": "이 응답이 끝날 때까지 대기",+ "Routine · {name}": "루틴 · {name}",+ "Tool": "도구",+ "Turn {turn}": "{turn}번째 턴","Routines": "루틴","Set up a routine": "루틴 설정","Ask the bot for a routine": "봇에게 루틴 요청",@@ -1220,13 +1225,13 @@"Talk to a bot from any app, then tap the key once more to send.": "어떤 앱에서든 봇에게 말한 뒤 키를 한 번 더 눌러 전송하세요.","Right ⌘ twice": "오른쪽 ⌘ 두 번","Left ⌘ twice": "왼쪽 ⌘ 두 번",- "Tip: double-tap {key} to talk from any app, then tap it once to send.": "팁: {key}를 두 번 눌러 어떤 앱에서든 말하고 한 번 더 눌러 전송하세요.",+ "Tip: double-tap {shortcut} to talk from any app, then tap it once to send.": "팁: {shortcut}를 두 번 눌러 어떤 앱에서든 말하고 한 번 더 눌러 전송하세요.","the right ⌘": "오른쪽 ⌘","the left ⌘": "왼쪽 ⌘","{name} (not installed)": "{name}(설치되지 않음)","Copy template": "템플릿 복사","Siri and Dictation are disabled": "Siri와 받아쓰기가 꺼져 있습니다",- "the Codync cloud refused ({status} {code}): {message}": "Codync 클라우드가 거부했습니다({status} {code}): {message}",+ "the Codync cloud refused ({status} {reason}): {hint}": "Codync 클라우드가 거부했습니다({status} {reason}): {hint}","forbidden": "접근 금지","Sign in on the computer to use remote screen relay.": "원격 화면 릴레이를 사용하려면 컴퓨터에서 로그인하세요.","Remote screen relay is not configured on this cloud.": "이 클라우드에는 원격 화면 릴레이가 설정되지 않았습니다.",diff --git a/apps/ios/Kit/Sources/CodyncKit/Resources/Languages/pt-BR.json b/apps/ios/Kit/Sources/CodyncKit/Resources/Languages/pt-BR.jsonindex 9c3fafd6..dc33dfd9 100644--- a/apps/ios/Kit/Sources/CodyncKit/Resources/Languages/pt-BR.json+++ b/apps/ios/Kit/Sources/CodyncKit/Resources/Languages/pt-BR.json@@ -706,6 +706,11 @@"Connect to this computer to save your routine.": "Conecte-se a este computador para salvar sua rotina.","Enter a name and instruction above to save.": "Digite um nome e uma instrução acima para salvar.","Delete routine": "Excluir rotina",+ "Queued": "Na fila",+ "Queued until this response finishes": "Na fila até esta resposta terminar",+ "Routine · {name}": "Rotina · {name}",+ "Tool": "Ferramenta",+ "Turn {turn}": "Rodada {turn}","Routines": "Rotinas","Set up a routine": "Configurar uma rotina","Ask the bot for a routine": "Pedir uma rotina ao bot",@@ -1220,13 +1225,13 @@"Talk to a bot from any app, then tap the key once more to send.": "Fale com um bot a partir de qualquer aplicativo e depois pressione a tecla mais uma vez para enviar.","Right ⌘ twice": "⌘ direito duas vezes","Left ⌘ twice": "⌘ esquerdo duas vezes",- "Tip: double-tap {key} to talk from any app, then tap it once to send.": "Dica: pressione {key} duas vezes para falar a partir de qualquer aplicativo e depois uma vez para enviar.",+ "Tip: double-tap {shortcut} to talk from any app, then tap it once to send.": "Dica: pressione {shortcut} duas vezes para falar a partir de qualquer aplicativo e depois uma vez para enviar.","the right ⌘": "o ⌘ direito","the left ⌘": "o ⌘ esquerdo","{name} (not installed)": "{name} (não instalado)","Copy template": "Copiar modelo","Siri and Dictation are disabled": "A Siri e o Ditado estão desativados",- "the Codync cloud refused ({status} {code}): {message}": "a nuvem do Codync recusou ({status} {code}): {message}",+ "the Codync cloud refused ({status} {reason}): {hint}": "a nuvem do Codync recusou ({status} {reason}): {hint}","forbidden": "acesso negado","Sign in on the computer to use remote screen relay.": "Entre na sua conta no computador para usar o relay de tela remota.","Remote screen relay is not configured on this cloud.": "O relay de tela remota não está configurado nesta nuvem.",diff --git a/apps/ios/Kit/Sources/CodyncKit/Resources/Languages/ru.json b/apps/ios/Kit/Sources/CodyncKit/Resources/Languages/ru.jsonindex e0c7e256..ca53da5a 100644--- a/apps/ios/Kit/Sources/CodyncKit/Resources/Languages/ru.json+++ b/apps/ios/Kit/Sources/CodyncKit/Resources/Languages/ru.json@@ -706,6 +706,11 @@"Connect to this computer to save your routine.": "Подключитесь к этому компьютеру, чтобы сохранить рутину.","Enter a name and instruction above to save.": "Введите название и инструкцию выше, чтобы сохранить.","Delete routine": "Удалить рутину",+ "Queued": "В очереди",+ "Queued until this response finishes": "В очереди до завершения этого ответа",+ "Routine · {name}": "Рутина · {name}",+ "Tool": "Инструмент",+ "Turn {turn}": "Ход {turn}","Routines": "Рутины","Set up a routine": "Настроить рутину","Ask the bot for a routine": "Попросить бота о рутине",@@ -1220,13 +1225,13 @@"Talk to a bot from any app, then tap the key once more to send.": "Говорите с ботом из любого приложения, затем нажмите клавишу ещё раз, чтобы отправить.","Right ⌘ twice": "Правый ⌘ дважды","Left ⌘ twice": "Левый ⌘ дважды",- "Tip: double-tap {key} to talk from any app, then tap it once to send.": "Совет: дважды нажмите {key}, чтобы говорить из любого приложения, и один раз — чтобы отправить.",+ "Tip: double-tap {shortcut} to talk from any app, then tap it once to send.": "Совет: дважды нажмите {shortcut}, чтобы говорить из любого приложения, и один раз — чтобы отправить.","the right ⌘": "правый ⌘","the left ⌘": "левый ⌘","{name} (not installed)": "{name} (не установлен)","Copy template": "Скопировать шаблон","Siri and Dictation are disabled": "Siri и Диктовка отключены",- "the Codync cloud refused ({status} {code}): {message}": "облако Codync отказало ({status} {code}): {message}",+ "the Codync cloud refused ({status} {reason}): {hint}": "облако Codync отказало ({status} {reason}): {hint}","forbidden": "доступ запрещён","Sign in on the computer to use remote screen relay.": "Войдите на компьютере, чтобы использовать ретранслятор удалённого экрана.","Remote screen relay is not configured on this cloud.": "Ретранслятор удалённого экрана в этом облаке не настроен.",diff --git a/apps/ios/Kit/Sources/CodyncKit/Resources/Languages/zh-Hans.json b/apps/ios/Kit/Sources/CodyncKit/Resources/Languages/zh-Hans.jsonindex 120934cd..b082cbed 100644--- a/apps/ios/Kit/Sources/CodyncKit/Resources/Languages/zh-Hans.json+++ b/apps/ios/Kit/Sources/CodyncKit/Resources/Languages/zh-Hans.json@@ -706,6 +706,11 @@"Connect to this computer to save your routine.": "先连上这台电脑,才能保存例行任务。","Enter a name and instruction above to save.": "先在上面填写名称和说明,再保存。","Delete routine": "删除例行任务",+ "Queued": "排队中",+ "Queued until this response finishes": "等这次回复结束后再发",+ "Routine · {name}": "例行任务 · {name}",+ "Tool": "工具",+ "Turn {turn}": "第 {turn} 轮","Routines": "例行任务","Set up a routine": "设置例行任务","Ask the bot for a routine": "让 Bot 设置例行任务",@@ -1220,13 +1225,13 @@"Talk to a bot from any app, then tap the key once more to send.": "在任何应用里对 Bot 说话,再按一次这个键就发送。","Right ⌘ twice": "右 ⌘ 两次","Left ⌘ twice": "左 ⌘ 两次",- "Tip: double-tap {key} to talk from any app, then tap it once to send.": "提示:连按两次{key},就能在任何应用里说话,再按一次就发送。",+ "Tip: double-tap {shortcut} to talk from any app, then tap it once to send.": "提示:连按两次{shortcut},就能在任何应用里说话,再按一次就发送。","the right ⌘": "右侧 ⌘","the left ⌘": "左侧 ⌘","{name} (not installed)": "{name}(未安装)","Copy template": "复制模板","Siri and Dictation are disabled": "Siri 和听写已关闭",- "the Codync cloud refused ({status} {code}): {message}": "Codync 云拒绝了({status} {code}):{message}",+ "the Codync cloud refused ({status} {reason}): {hint}": "Codync 云拒绝了({status} {reason}):{hint}","forbidden": "禁止","Sign in on the computer to use remote screen relay.": "请先在电脑上登录,才能使用远程屏幕中继。","Remote screen relay is not configured on this cloud.": "这台云没有配置远程屏幕中继。",diff --git a/apps/ios/Kit/Sources/CodyncKit/Resources/Languages/zh-Hant.json b/apps/ios/Kit/Sources/CodyncKit/Resources/Languages/zh-Hant.jsonindex 8e655156..e5e76e21 100644--- a/apps/ios/Kit/Sources/CodyncKit/Resources/Languages/zh-Hant.json+++ b/apps/ios/Kit/Sources/CodyncKit/Resources/Languages/zh-Hant.json@@ -706,6 +706,11 @@"Connect to this computer to save your routine.": "先連上這臺電腦,才能儲存例行任務。","Enter a name and instruction above to save.": "先在上面填寫名稱和說明,再儲存。","Delete routine": "刪除例行任務",+ "Queued": "排隊中",+ "Queued until this response finishes": "等這次回覆結束後再送",+ "Routine · {name}": "例行任務 · {name}",+ "Tool": "工具",+ "Turn {turn}": "第 {turn} 輪","Routines": "例行任務","Set up a routine": "設定例行任務","Ask the bot for a routine": "讓 Bot 設定例行任務",@@ -1220,13 +1225,13 @@"Talk to a bot from any app, then tap the key once more to send.": "在任何應用裡對 Bot 說話,再按一次這個鍵就傳送。","Right ⌘ twice": "右 ⌘ 兩次","Left ⌘ twice": "左 ⌘ 兩次",- "Tip: double-tap {key} to talk from any app, then tap it once to send.": "提示:連按兩次{key},就能在任何應用裡說話,再按一次就傳送。",+ "Tip: double-tap {shortcut} to talk from any app, then tap it once to send.": "提示:連按兩次{shortcut},就能在任何應用裡說話,再按一次就傳送。","the right ⌘": "右側 ⌘","the left ⌘": "左側 ⌘","{name} (not installed)": "{name}(未安裝)","Copy template": "複製模板","Siri and Dictation are disabled": "Siri 和聽寫已關閉",- "the Codync cloud refused ({status} {code}): {message}": "Codync 雲拒絕了({status} {code}):{message}",+ "the Codync cloud refused ({status} {reason}): {hint}": "Codync 雲拒絕了({status} {reason}):{hint}","forbidden": "禁止","Sign in on the computer to use remote screen relay.": "請先在電腦上登入,才能使用遠端螢幕中繼。","Remote screen relay is not configured on this cloud.": "這臺雲沒有配置遠端螢幕中繼。",diff --git a/apps/ios/Kit/Sources/CodyncUI/Thread/ChatRows.swift b/apps/ios/Kit/Sources/CodyncUI/Thread/ChatRows.swiftindex 8e0215af..fa4b3afc 100644--- a/apps/ios/Kit/Sources/CodyncUI/Thread/ChatRows.swift+++ b/apps/ios/Kit/Sources/CodyncUI/Thread/ChatRows.swift@@ -157,7 +157,7 @@ struct UserBubble: View {case "sending":Text(L10n.tr("Sending…")).font(.caption2).foregroundStyle(Palette.tertiary)case "queued":- Text(botWorking ? "Queued until this response finishes" : "Queued")+ Text(L10n.tr(botWorking ? "Queued until this response finishes" : "Queued")).font(.caption2).foregroundStyle(Palette.tertiary)case "failed":diff --git a/apps/ios/Kit/Sources/CodyncUI/Thread/RoutineNoticeRow.swift b/apps/ios/Kit/Sources/CodyncUI/Thread/RoutineNoticeRow.swiftindex ff7bc86a..97c2fbbf 100644--- a/apps/ios/Kit/Sources/CodyncUI/Thread/RoutineNoticeRow.swift+++ b/apps/ios/Kit/Sources/CodyncUI/Thread/RoutineNoticeRow.swift@@ -10,7 +10,7 @@ struct RoutineNoticeRow: View {var body: some View {HStack(spacing: 8) {Button(action: open) {- Label(entry.data.text ?? "Routine", systemImage: "clock.arrow.circlepath")+ Label(L10n.tr(entry.data.text ?? "Routine"), systemImage: "clock.arrow.circlepath").font(.footnote).foregroundStyle(Palette.secondary).padding(.vertical, 10)}.buttonStyle(.plain)diff --git a/apps/ios/Kit/Sources/CodyncUI/Thread/TraceView.swift b/apps/ios/Kit/Sources/CodyncUI/Thread/TraceView.swiftindex e1bcf1bf..a51cfe21 100644--- a/apps/ios/Kit/Sources/CodyncUI/Thread/TraceView.swift+++ b/apps/ios/Kit/Sources/CodyncUI/Thread/TraceView.swift@@ -25,7 +25,7 @@ public struct TraceView: View {ForEach(turns, id: \.key) { turn, entries inVStack(alignment: .leading, spacing: 8) {// A plain one-line turn header (CardSection's own title wraps).- Text(entries.first { $0.kind == "user" }?.data.text ?? "Turn \(turn)")+ Text(entries.first { $0.kind == "user" }?.data.text ?? L10n.tr("Turn {turn}").replacingOccurrences(of: "{turn}", with: String(turn))).lineLimit(1).font(.subheadline.weight(.semibold)).foregroundStyle(Palette.text)@@ -145,9 +145,10 @@ struct ToolRow: View {}private var label: some View {- HStack(spacing: 8) {+ let title = data.title ?? "Tool"+ return HStack(spacing: 8) {Image(systemName: icon).frame(width: 18).foregroundStyle(Palette.secondary)- Text(data.title ?? "Tool").font(.subheadline).foregroundStyle(Palette.text).lineLimit(2)+ Text(title == "Tool" ? L10n.tr("Tool") : title).font(.subheadline).foregroundStyle(Palette.text).lineLimit(2)Spacer(minLength: 4)switch data.status {case "completed": Image(systemName: "checkmark").foregroundStyle(Palette.accent)diff --git a/apps/ios/Kit/Tests/CodyncKitTests/AppLanguageTests.swift b/apps/ios/Kit/Tests/CodyncKitTests/AppLanguageTests.swiftindex 3b73bf11..de62857f 100644--- a/apps/ios/Kit/Tests/CodyncKitTests/AppLanguageTests.swift+++ b/apps/ios/Kit/Tests/CodyncKitTests/AppLanguageTests.swift@@ -186,3 +186,23 @@ extension AppLanguageTests {store.removeObject(forKey: AppLanguage.storageKey)}}++extension AppLanguageTests {+ @Test func filledTemplatesPreserveNamesAndSubstituteValuesOnlyOnce() {+ for language in AppLanguage.allCases where language != .system && language != .en {+ for name in ["Plan", "connected", "Standby", "$&", "{hint}"] {+ let expected = L10n.tr("Routine · {name}", preference: language)+ .replacingOccurrences(of: "{name}", with: name)+ #expect(L10n.tr("Routine · \(name)", preference: language) == expected)+ let title = L10n.tr("Message about “{title}”", preference: language)+ .replacingOccurrences(of: "{title}", with: name)+ #expect(L10n.tr("Message about “\(name)”", preference: language) == title)+ }+ let hint = "Install Claude Code and run `claude auth login`."+ let expected = L10n.tr("{name} isn't set up on this computer. {hint}", preference: language)+ .replacingOccurrences(of: "{hint}", with: L10n.tr(hint, preference: language))+ .replacingOccurrences(of: "{name}", with: "{hint}")+ #expect(L10n.tr("{hint} isn't set up on this computer. \(hint)", preference: language) == expected)+ }+ }+}diff --git a/apps/ios/WhatsNew.md b/apps/ios/WhatsNew.mdindex 894b4e19..1c7e9ad4 100644--- a/apps/ios/WhatsNew.md+++ b/apps/ios/WhatsNew.md@@ -16,6 +16,7 @@ a version without one gets a generic "Bug fixes and improvements" line. Delete o- 介面新增巴西葡萄牙文:可在設定選擇「Português (Brasil)」,或跟隨系統的葡萄牙文語言。- 新增俄文介面:在設定選擇「Русский」,或跟隨系統的俄文語言。- 用 QR Code 配對時,如果電腦當下沒能加入你的帳號(例如手機連不上 Codync 雲端,或電腦的雲端關著),下次連上時會自動補上。+- 排隊狀態、例行任務和執行紀錄會跟隨介面語言,名稱與訊息保留原文。### en-US- When your bots use more than one agent, the bot list marks each avatar with its agent's logo. Turn it off in Settings › Appearance.@@ -26,3 +27,4 @@ a version without one gets a generic "Bug fixes and improvements" line. Delete o- Choose Português (Brasil) in Settings, or follow your Portuguese system language.- Choose Русский in Settings, or follow your Russian system language.- A computer you pair with a QR code that couldn't join your account at the time (the phone couldn't reach the Codync cloud, or the computer's cloud was off, say) joins it the next time it connects.+- Queue status, routine notices and trace labels follow your language; names and messages stay as written.diff --git a/docs/guides/localization.md b/docs/guides/localization.mdindex 59994a6e..2b17ba70 100644--- a/docs/guides/localization.md+++ b/docs/guides/localization.md@@ -19,6 +19,13 @@ Traditional Chinese retains its existing Simplified fallback. Translate aninterface template before inserting a user's name or text. Conversation contentis not translated. The desktop catalog test checks key and placeholder parity.+A captured name, title, query, sign-in code or message is opaque, even when it+matches an English interface phrase. Only app-owned `{hint}`, `{error}`,+`{setup}`, `{kind}`, `{when}`, `{status}`, `{reason}` and `{shortcut}` slots+translate recursively. Cloud errors use `{reason}` and `{hint}` for their+interface text; keyboard hints use `{shortcut}`. Substitute captured values in+one pass so a name containing another placeholder's spelling stays literal.+Russian system locales (including `ru-RU` and `ru_RU.UTF-8`) use `ru`, shownas **Русский** after Brazilian Portuguese. The Russian catalog uses a fixedglossary (бот, ведущий агент, рутина, коннектор) and count-neutral phrases suchdiff --git a/docs/reviews/translation-notices-2026-11-03/README.md b/docs/reviews/translation-notices-2026-11-03/README.mdnew file mode 100644index 00000000..ed3e1fa7--- /dev/null+++ b/docs/reviews/translation-notices-2026-11-03/README.md@@ -0,0 +1,36 @@+# Notice localization review — 2026-11-03++PR #287, based on dev `054edeff890e12c51804b9e709d6846dd41fb33a`, reviewed and repaired in the isolated `Codync-i18n-287` worktree.++## Repairs and review++- Completed the five new notice/trace phrases in all nine catalogs, including Portuguese and Russian; all 1,526 keys and placeholder sets agree.+- Template substitution preserves names and message content. Only explicit UI-owned placeholder roles translate recursively, and substitution runs once, preserving literal braces and replacement characters in user data.+- Localized queued-message labels, routine notices, generic tool titles, plan headings and turn labels across desktop, iPhone, Android and TUI. Custom tool titles, plan items and message bodies stay verbatim.+- Added regression coverage in all four localization runtimes, both phones' bilingual 2.38.0 notes, localization guidance and the user manual. Version 2.38.0 was already ahead of the latest release tag.+- Three read-only reviews found no correctness or completeness issues; a documentation placement suggestion was applied. Visual E2E found a remaining desktop trace notice omission, which was fixed and retested.++## Validation++- Desktop: typecheck and 384 tests passed, rerun after the final trace repair.+- Host: native development build and 134 TUI tests passed.+- iPhone: 12 language tests and signed simulator development build passed.+- Android: 217 core tests (one skipped), 90 app tests, debug APK and lint passed.+- User docs: 18 pages and 105 links checked.++The first remote iPhone run timed out while UIKit initialization waited on SpringBoard. A rerun timed out in another screen-recovery test while the diagnostic reported cooperative/dispatch thread exhaustion; its other 359 tests passed. The same head passed all 361 tests locally, including the initially reported test alone. CI now waits for the selected simulator to finish booting and disables parallel test simulators. Its complete boot-and-test command passed all 361 tests locally from a shut-down task simulator, with retries enabled and no tests skipped. This CI-only adjustment changes no shipped app behavior; the app walkthroughs below remain applicable. Remote confirmation is required by the merge gate.++## Real-app E2E++All clients connected to this worktree's real host. A local deterministic ACP fixture produced a routine named `Plan`, a generic `Tool`, a custom tool named `Plan`, and a plan item named `Plan`. A real composer submission queued `Standby` while the routine was busy. Releasing the fixture completed both turns; no external AI call or mocked client bridge was used.++| Platform | Flow | Result and evidence |+| --- | --- | --- |+| macOS desktop | Simplified Chinese chat and completed trace | Pass: translated routine, queue, tool, plan and turn labels; original names and messages preserved. [Chat](desktop-chat.png), [trace](desktop-trace.png). |+| iPhone simulator | Same host conversation and trace through Device Hub | Pass: matching labels and preserved content. [Chat](ios-chat.png), [trace](ios-trace.png). |+| Android emulator | Same host conversation and trace | Pass: matching labels and preserved content. [Chat](android-chat.png), [trace](android-trace.png). |+| macOS TUI | Actual PTY, bot selection, queued transcript and trace navigation | Pass: localized routine, queue, tool, plan and numbered turn headings; `Plan` and `Standby` preserved. |++Desktop native accessibility could not obtain this Electron window, so Playwright attached to the actual Electron process over its local debugging port; reduced-motion emulation avoided animation stability waits. Android used adb because the native computer-use surface could not target the emulator. iPhone interaction used Device Hub.++GUI checks exercised Simplified Chinese; automated catalog and substitution checks covered all nine translations. This was the minimal macOS E2E run, without Linux/Windows GUI checks. Unchanged widgets/tray surfaces were not walked. The older `Created routine: Plan` template remains English in this PR and is part of the separate untranslated-strings PR #308; agent replies remain original content.diff --git a/docs/reviews/translation-notices-2026-11-03/android-chat.png b/docs/reviews/translation-notices-2026-11-03/android-chat.pngnew file mode 100644index 00000000..ec4a8151Binary files /dev/null and b/docs/reviews/translation-notices-2026-11-03/android-chat.png differdiff --git a/docs/reviews/translation-notices-2026-11-03/android-trace.png b/docs/reviews/translation-notices-2026-11-03/android-trace.pngnew file mode 100644index 00000000..a59d46eaBinary files /dev/null and b/docs/reviews/translation-notices-2026-11-03/android-trace.png differdiff --git a/docs/reviews/translation-notices-2026-11-03/desktop-chat.png b/docs/reviews/translation-notices-2026-11-03/desktop-chat.pngnew file mode 100644index 00000000..08c507c1Binary files /dev/null and b/docs/reviews/translation-notices-2026-11-03/desktop-chat.png differdiff --git a/docs/reviews/translation-notices-2026-11-03/desktop-trace.png b/docs/reviews/translation-notices-2026-11-03/desktop-trace.pngnew file mode 100644index 00000000..98757fdbBinary files /dev/null and b/docs/reviews/translation-notices-2026-11-03/desktop-trace.png differdiff --git a/docs/reviews/translation-notices-2026-11-03/ios-chat.png b/docs/reviews/translation-notices-2026-11-03/ios-chat.pngnew file mode 100644index 00000000..277837b8Binary files /dev/null and b/docs/reviews/translation-notices-2026-11-03/ios-chat.png differdiff --git a/docs/reviews/translation-notices-2026-11-03/ios-trace.png b/docs/reviews/translation-notices-2026-11-03/ios-trace.pngnew file mode 100644index 00000000..c1482b65Binary files /dev/null and b/docs/reviews/translation-notices-2026-11-03/ios-trace.png differdiff --git a/host/src/tui/app/model.rs b/host/src/tui/app/model.rsindex 55fcae48..6a51b513 100644--- a/host/src/tui/app/model.rs+++ b/host/src/tui/app/model.rs@@ -150,9 +150,10 @@ impl Entry {/// A notice's line; a voice call gets its length ("Voice chat · 00:16").pub fn notice_text(&self) -> String {+ let text = super::super::l10n::tr(self.text());match self.data["callSeconds"].as_u64() {- Some(s) => format!("{} · {:02}:{:02}", self.text(), s / 60, s % 60),- None => self.text().to_owned(),+ Some(s) => format!("{text} · {:02}:{:02}", s / 60, s % 60),+ None => text.into_owned(),}}diff --git a/host/src/tui/l10n.rs b/host/src/tui/l10n.rsindex 6effbe3c..4cf7410d 100644--- a/host/src/tui/l10n.rs+++ b/host/src/tui/l10n.rs@@ -313,22 +313,44 @@ fn templated_at(text: &str, table: &HashMap<String, String>, depth: u8) -> Optiofor template in TEMPLATES.iter() {let Some(caps) = captures(text, &template.pieces) else { continue };let Some(phrase) = phrase_of(table, &template.key) else { continue };- let mut result = phrase.clone();+ let mut values = HashMap::new();for (token, value) in caps {- let shown = if let Some(hit) = phrase_of(table, &value) {+ // Only app-owned UI slots translate recursively; names and free text stay verbatim.+ let localizable = matches!(+ token.as_str(),+ "{hint}" | "{error}" | "{setup}" | "{kind}" | "{when}" | "{status}" | "{reason}" | "{shortcut}"+ );+ let shown = if !localizable {+ value+ } else if let Some(hit) = phrase_of(table, &value) {hit.clone()} else if depth == 0 {templated_at(&value, table, 1).unwrap_or(value)} else {value};- result = result.replace(&token, &shown);+ values.insert(token, shown);}- return Some(result);+ return Some(substitute(phrase, &values));}None}+/// Substitute once, so a name containing another slot's spelling stays literal.+fn substitute(phrase: &str, values: &HashMap<String, String>) -> String {+ let mut result = String::new();+ for piece in phrase.split_inclusive('}') {+ let Some(open) = piece.rfind('{') else {+ result.push_str(piece);+ continue;+ };+ result.push_str(&piece[..open]);+ let token = &piece[open..];+ result.push_str(values.get(token).map_or(token, String::as_str));+ }+ result+}+fn captures(text: &str, pieces: &[Piece]) -> Option<Vec<(String, String)>> {let mut pos = 0;let mut caps = Vec::new();@@ -411,89 +433,3 @@ pub(in crate::tui) fn cycle_language() -> Cow<'static, str> {#[cfg(test)]#[path = "l10n_tests.rs"]mod registration_tests;--#[cfg(test)]-mod tests {- use super::{AppLanguage, translate};-- #[test]- fn additional_languages_resolve_regions_and_load_catalogs() {- for (language, table) in [- (AppLanguage::Ja, &*super::JA),- (AppLanguage::Ko, &*super::KO),- (AppLanguage::Fr, &*super::FR),- (AppLanguage::De, &*super::DE),- (AppLanguage::Es, &*super::ES),- (AppLanguage::Ru, &*super::RU),- ] {- assert_eq!(- super::resolved_language(AppLanguage::System, &format!("{}_XX.UTF-8", language.stored())),- language- );- assert_eq!(super::resolved_language(language, "zh_TW"), language);- assert_ne!(super::translate_with("Settings", table), "Settings");- assert_eq!(super::translate_with("Unknown phrase", table), "Unknown phrase");- }- assert_eq!(super::resolved_language(AppLanguage::System, "nl_NL"), AppLanguage::En);- }-- #[test]- fn chinese_replaces_a_known_phrase_and_leaves_the_rest() {- assert_eq!(translate("Pair a computer", true).as_ref(), "配对一台电脑");- assert_eq!(translate("Pair a computer", false).as_ref(), "Pair a computer");- assert_eq!(translate("Not a phrase", true).as_ref(), "Not a phrase");- assert_eq!(translate("Follow system", true).as_ref(), "跟随系统");- assert_eq!(translate("Writing a reply…", true).as_ref(), "正在写回复…");- assert_eq!(translate("Downloading Codebuddy Code…", true).as_ref(), "正在下载 Codebuddy Code…");- assert_eq!(translate("Needs approval: Bash", true).as_ref(), "需要批准:Bash");- assert_eq!(translate("Storage", true).as_ref(), "存储");- assert_eq!(translate("New skill", true).as_ref(), "新建技能");- assert_eq!(translate("Add connector", true).as_ref(), "添加连接器");- assert_eq!(translate("Name your group", true).as_ref(), "给群聊起个名字");- assert_eq!(translate("Nothing installed", true).as_ref(), "还没有安装");- assert_eq!(translate("No setup needed.", true).as_ref(), "无需设置。");- assert_eq!(- translate("Runs the official installer on this Mac.", true).as_ref(),- "在 这台 Mac 上运行官方安装程序。"- );- assert_eq!(- translate(- "Claude Code isn't set up on this computer. Install Claude Code and run `claude auth login`.",- true- )- .as_ref(),- "Claude Code 还没有在这台电脑上设置好。安装 Claude Code,然后运行 `claude auth login`。"- );- assert_eq!(super::compact_time("3h 20m").as_deref(), Some("3小时20分"));- assert_eq!(super::compact_time("2d 6h").as_deref(), Some("2天6小时"));- assert_eq!(super::compact_time("Sep 26"), None);- }-- #[test]- fn the_palette_label_reads_the_choice_without_locking_twice() {- let title = super::language_title();- assert!(!title.is_empty());- }-- #[test]- fn a_missing_choice_follows_the_computer() {- assert_eq!(AppLanguage::parse(""), AppLanguage::System);- assert_eq!(AppLanguage::parse("zh"), AppLanguage::Zh);- assert_eq!(AppLanguage::parse("zh-Hans"), AppLanguage::Zh);- assert_eq!(AppLanguage::parse("zh-Hant"), AppLanguage::ZhHant);- assert_eq!(AppLanguage::parse("en"), AppLanguage::En);- assert_eq!(AppLanguage::System.next(), AppLanguage::Zh);- assert_eq!(AppLanguage::Zh.next(), AppLanguage::ZhHant);- assert_eq!(AppLanguage::ZhHant.next(), AppLanguage::En);- assert_eq!(AppLanguage::En.next(), AppLanguage::Ja);- assert_eq!(AppLanguage::Es.next(), AppLanguage::PtBr);- assert_eq!(AppLanguage::PtBr.next(), AppLanguage::Ru);- assert_eq!(AppLanguage::Ru.next(), AppLanguage::System);- assert_eq!(super::system_script_of("zh_TW.UTF-8"), Some(super::ChineseScript::Hant));- assert_eq!(super::system_script_of("zh-HK"), Some(super::ChineseScript::Hant));- assert_eq!(super::system_script_of("zh_CN.UTF-8"), Some(super::ChineseScript::Hans));- assert_eq!(super::system_script_of("en_US.UTF-8"), None);- assert_eq!(super::translate_with("Settings", &super::HANT).as_ref(), "設定");- assert_eq!(super::translate_with("Files", &super::HANT).as_ref(), "檔案");- }-}diff --git a/host/src/tui/l10n_tests.rs b/host/src/tui/l10n_tests.rsindex d9d3f17a..32a7ff54 100644--- a/host/src/tui/l10n_tests.rs+++ b/host/src/tui/l10n_tests.rs@@ -1,4 +1,4 @@-use super::{AppLanguage, PREFERENCE, language_title, resolved_language, tr};+use super::{AppLanguage, PREFERENCE, language_title, resolved_language, tr, translate};use crate::LockExt;#[test]@@ -83,3 +83,105 @@ fn non_portuguese_system_locale_resolution_is_unchanged() {assert_eq!(resolved_language(AppLanguage::System, locale), expected, "{locale}");}}++#[test]+fn additional_languages_resolve_regions_and_load_catalogs() {+ for (language, table) in [+ (AppLanguage::Ja, &*super::JA),+ (AppLanguage::Ko, &*super::KO),+ (AppLanguage::Fr, &*super::FR),+ (AppLanguage::De, &*super::DE),+ (AppLanguage::Es, &*super::ES),+ (AppLanguage::Ru, &*super::RU),+ ] {+ assert_eq!(resolved_language(AppLanguage::System, &format!("{}_XX.UTF-8", language.stored())), language);+ assert_eq!(resolved_language(language, "zh_TW"), language);+ assert_ne!(super::translate_with("Settings", table), "Settings");+ assert_eq!(super::translate_with("Unknown phrase", table), "Unknown phrase");+ }+ assert_eq!(resolved_language(AppLanguage::System, "nl_NL"), AppLanguage::En);+}++#[test]+fn chinese_replaces_a_known_phrase_and_leaves_the_rest() {+ assert_eq!(translate("Pair a computer", true).as_ref(), "配对一台电脑");+ assert_eq!(translate("Pair a computer", false).as_ref(), "Pair a computer");+ assert_eq!(translate("Not a phrase", true).as_ref(), "Not a phrase");+ assert_eq!(translate("Follow system", true).as_ref(), "跟随系统");+ assert_eq!(translate("Writing a reply…", true).as_ref(), "正在写回复…");+ assert_eq!(translate("Downloading Codebuddy Code…", true).as_ref(), "正在下载 Codebuddy Code…");+ assert_eq!(translate("Needs approval: Bash", true).as_ref(), "需要批准:Bash");+ assert_eq!(translate("Storage", true).as_ref(), "存储");+ assert_eq!(translate("New skill", true).as_ref(), "新建技能");+ assert_eq!(translate("Add connector", true).as_ref(), "添加连接器");+ assert_eq!(translate("Name your group", true).as_ref(), "给群聊起个名字");+ assert_eq!(translate("Nothing installed", true).as_ref(), "还没有安装");+ assert_eq!(translate("No setup needed.", true).as_ref(), "无需设置。");+ assert_eq!(+ translate("Runs the official installer on this Mac.", true).as_ref(),+ "在 this Mac 上运行官方安装程序。"+ );+ assert_eq!(+ translate("Claude Code isn't set up on this computer. Install Claude Code and run `claude auth login`.", true)+ .as_ref(),+ "Claude Code 还没有在这台电脑上设置好。安装 Claude Code,然后运行 `claude auth login`。"+ );+ assert_eq!(super::compact_time("3h 20m").as_deref(), Some("3小时20分"));+ assert_eq!(super::compact_time("2d 6h").as_deref(), Some("2天6小时"));+ assert_eq!(super::compact_time("Sep 26"), None);+}++#[test]+fn the_palette_label_reads_the_choice_without_locking_twice() {+ let title = language_title();+ assert!(!title.is_empty());+}++#[test]+fn a_missing_choice_follows_the_computer() {+ assert_eq!(AppLanguage::parse(""), AppLanguage::System);+ assert_eq!(AppLanguage::parse("zh"), AppLanguage::Zh);+ assert_eq!(AppLanguage::parse("zh-Hans"), AppLanguage::Zh);+ assert_eq!(AppLanguage::parse("zh-Hant"), AppLanguage::ZhHant);+ assert_eq!(AppLanguage::parse("en"), AppLanguage::En);+ assert_eq!(AppLanguage::System.next(), AppLanguage::Zh);+ assert_eq!(AppLanguage::Zh.next(), AppLanguage::ZhHant);+ assert_eq!(AppLanguage::ZhHant.next(), AppLanguage::En);+ assert_eq!(AppLanguage::En.next(), AppLanguage::Ja);+ assert_eq!(AppLanguage::Es.next(), AppLanguage::PtBr);+ assert_eq!(AppLanguage::PtBr.next(), AppLanguage::Ru);+ assert_eq!(AppLanguage::Ru.next(), AppLanguage::System);+ assert_eq!(super::system_script_of("zh_TW.UTF-8"), Some(super::ChineseScript::Hant));+ assert_eq!(super::system_script_of("zh-HK"), Some(super::ChineseScript::Hant));+ assert_eq!(super::system_script_of("zh_CN.UTF-8"), Some(super::ChineseScript::Hans));+ assert_eq!(super::system_script_of("en_US.UTF-8"), None);+ assert_eq!(super::translate_with("Settings", &super::HANT).as_ref(), "設定");+ assert_eq!(super::translate_with("Files", &super::HANT).as_ref(), "檔案");+}++#[test]+fn catalogs_preserve_names_and_substitute_captured_values_once() {+ for table in [+ &*super::HANS,+ &*super::HANT,+ &*super::JA,+ &*super::KO,+ &*super::FR,+ &*super::DE,+ &*super::ES,+ &*super::PT_BR,+ &*super::RU,+ ] {+ for name in ["Plan", "connected", "Standby", "$&", "{hint}"] {+ let expected = super::translate_with("Routine · {name}", table).replace("{name}", name);+ assert_eq!(super::translate_with(&format!("Routine · {name}"), table), expected);+ let title = super::translate_with("Message about “{title}”", table).replace("{title}", name);+ assert_eq!(super::translate_with(&format!("Message about “{name}”"), table), title);+ }+ let hint = "Install Claude Code and run `claude auth login`.";+ let expected = super::translate_with("{name} isn't set up on this computer. {hint}", table)+ .replace("{hint}", &super::translate_with(hint, table))+ .replace("{name}", "{hint}");+ assert_eq!(super::translate_with(&format!("{{hint}} isn't set up on this computer. {hint}"), table), expected);+ }+}diff --git a/host/src/tui/view/trace.rs b/host/src/tui/view/trace.rsindex 813ffd3a..15e3926f 100644--- a/host/src/tui/view/trace.rs+++ b/host/src/tui/view/trace.rs@@ -6,6 +6,7 @@ use ratatui::style::Modifier;use ratatui::text::{Line, Span};use super::super::app::{App, Bot, Entry, Focus, Kind, Status, TraceMode, tilde};+use super::super::l10n::tr;use super::super::md::{self, truncate, width as w};use super::buffer::{hline, put, put_line, rput, u};use super::style::{spin, theme};@@ -33,9 +34,16 @@ pub(super) fn trace(buf: &mut Buffer, r: Rect, app: &mut App) {// The keys hint only when the title leaves it room.let right = if r.width >= 64 { rput(buf, r.right() - 1, r.y, keys, t.dim) } else { r.right() };let title = if turns.is_empty() {- format!("· {} · chat", b.name)+ format!("· {} · {}", b.name, tr("Chat"))} else {- format!("· {} · chat · turn {nth} of {}{}", b.name, turns.len(), if live { " · live" } else { "" })+ format!(+ "· {} · {} · {} / {}{}",+ b.name,+ tr("Chat"),+ tr("Turn {turn}").replace("{turn}", &nth.to_string()),+ turns.len(),+ if live { format!(" · {}", tr("Working")) } else { String::new() }+ )};let room = right.saturating_sub(x + 2);put(buf, x + 1, r.y, room, &truncate(&title, usize::from(room)), t.dim);@@ -53,7 +61,7 @@ pub(super) fn trace(buf: &mut Buffer, r: Rect, app: &mut App) {}if lines.is_empty() {let empty = if turns.is_empty() { "Nothing yet." } else { "Nothing happened in this turn yet." };- put(buf, body.x + 2, body.y, body.width.saturating_sub(2), empty, t.dim);+ put(buf, body.x + 2, body.y, body.width.saturating_sub(2), &tr(empty), t.dim);}}@@ -122,7 +130,7 @@ pub(super) fn push_step(out: &mut Vec<Line<'static>>, app: &App, e: &Entry, widt/// A step's kind, padded to the text column.fn label(s: &str) -> Span<'static> {- Span::styled(format!("{s:<8} "), theme().secondary)+ Span::styled(format!("{s}{} ", " ".repeat(8_usize.saturating_sub(w(s)))), theme().secondary)}/// The room a step's text has after its glyph and label.@@ -164,10 +172,11 @@ fn push_tool(out: &mut Vec<Line<'static>>, app: &App, e: &Entry, width: usize, f};let kind = tool_label(e.data["toolKind"].as_str().unwrap_or("tool")).to_owned();let title = e.data["title"].as_str().unwrap_or("Tool");+ let title = if title == "Tool" { tr("Tool") } else { title.into() };out.push(Line::from(vec![Span::styled(format!(" {g} "), gs),label(&kind),- Span::styled(truncate(title, text_rest(width)), t.text),+ Span::styled(truncate(&title, text_rest(width)), t.text),]));let (diff_max, out_max) = if full { (400, 400) } else { (14, 6) };for d in e.data["diffs"].as_array().into_iter().flatten() {@@ -230,7 +239,7 @@ fn push_plan(out: &mut Vec<Line<'static>>, e: &Entry, width: usize) {let done = items.iter().filter(|i| i["status"] == "completed").count();out.push(Line::from(vec![Span::styled(" ☐ ", t.secondary),- label("plan"),+ label(&tr("Plan")),Span::styled(format!("{done}/{}", items.len()), t.text),]));for i in &items {diff --git a/host/src/tui/view/transcript.rs b/host/src/tui/view/transcript.rsindex f342eb3a..6cda9f80 100644--- a/host/src/tui/view/transcript.rs+++ b/host/src/tui/view/transcript.rs@@ -5,6 +5,7 @@ use ratatui::text::{Line, Span};use std::collections::{BTreeMap, BTreeSet, HashMap};use super::super::app::{App, Bot, Click, Entry, Exchange, Item, Kind, Outcome, Status, group};+use super::super::l10n::tr;use super::super::md::{self, truncate, width as w};use super::buffer::u;use super::chat::with_bg;@@ -152,7 +153,7 @@ fn entry_lines(out: &mut Built, app: &App, b: &Bot, e: &Entry, info: &HashMap<i6Span::styled(format!(" {}", clock(e.created_at)), t.dim),];match e.data["status"].as_str() {- Some("queued") => head.push(Span::styled(" · queued", t.dim)),+ Some("queued") => head.push(Span::styled(format!(" · {}", tr("Queued")), t.dim)),Some("cancelled") => head.push(Span::styled(" · not sent", t.red)),_ => {}}diff --git a/web/content/docs/getting-started.mdx b/web/content/docs/getting-started.mdxindex 047066d8..5280d8af 100644--- a/web/content/docs/getting-started.mdx+++ b/web/content/docs/getting-started.mdx@@ -134,6 +134,9 @@ for Portuguese system languages, including `pt` and `pt-BR`; unsupportedlanguages use English. This changes the interface, not your conversations,bot names or commands.+Queue status, routine notices and trace labels follow this choice too. Bot and+routine names, custom tool titles and message contents stay as written.+## Next steps- [Bots](/docs/bots): set up a bot's agent, folder, approvals and more.