Scale computer-use 2.0 with open-source drivers, cross-OS sandboxes, and benchmarks for training, evaluation, and data generation.
Rust agentai-agentapplecomputer-usecomputer-use-agentcontainerizationcuadesktop-automationhacktoberfestlumemacosmanusoperatorswiftvirtualizationvirtualization-frameworkwindowswindows-sandbox
i18n(cua-spaces): translations workflow, first 5 languages, Language setting (CUA-1928) (#5602)
Francesco Bonaccia6865556b9d1
diff --git a/.github/workflows/i18n-translate-spaces.yml b/.github/workflows/i18n-translate-spaces.ymlnew file mode 100644index 0000000000..0d05571f24--- /dev/null+++ b/.github/workflows/i18n-translate-spaces.yml@@ -0,0 +1,98 @@+name: "i18n: translate Cua Spaces strings"++# When the English UI strings of the Spaces app change on main (or on manual+# dispatch), translate only the new or changed keys into zh-Hans, ko, pt-BR, ja+# and es with Claude Sonnet through our LiteLLM gateway, validate them, and open+# a PR labelled `i18n`. Never pushes to main. Design: apps/cua-spaces/docs/i18n.md.+#+# Secrets (repository): LITELLM_BASE_URL, LITELLM_API_KEY. Optional variable+# I18N_MODEL (default claude-sonnet-5-5). PR_TOKEN, when set, opens the PR so+# that the normal PR checks run on it (a PR opened with GITHUB_TOKEN does not+# trigger them).++on:+ push:+ branches: [main]+ paths:+ - "apps/cua-spaces/src/i18n/locales/en/**"+ - "apps/cua-spaces/src/i18n/glossary.json"+ workflow_dispatch:+ inputs:+ locales:+ description: "Comma-separated languages (default: all of zh-Hans,ko,pt-BR,ja,es)"+ required: false+ default: ""+ force:+ description: "Retranslate every string, not only new or changed ones"+ type: boolean+ default: false++permissions:+ contents: write+ pull-requests: write++concurrency:+ group: i18n-translate-spaces+ cancel-in-progress: false++env:+ CUA_TELEMETRY: "0"+ DO_NOT_TRACK: "1"++jobs:+ translate:+ name: translate and open PR+ runs-on: ubuntu-24.04+ timeout-minutes: 30+ defaults:+ run:+ working-directory: apps/cua-spaces+ steps:+ - uses: actions/checkout@v4+ - uses: pnpm/action-setup@b906affcce14559ad1aafd4ab0e942779e9f58b1 # v4+ - uses: actions/setup-node@v4+ with:+ node-version: 22+ cache: pnpm+ cache-dependency-path: apps/cua-spaces/pnpm-lock.yaml+ - run: pnpm install --frozen-lockfile+ - name: Translate+ env:+ I18N_BASE_URL: ${{ secrets.LITELLM_BASE_URL }}+ I18N_API_KEY: ${{ secrets.LITELLM_API_KEY }}+ I18N_MODEL: ${{ vars.I18N_MODEL }}+ LOCALES: ${{ inputs.locales }}+ FORCE: ${{ inputs.force }}+ run: |+ if [ -z "$I18N_BASE_URL" ] || [ -z "$I18N_API_KEY" ]; then+ echo "::error::Set the LITELLM_BASE_URL and LITELLM_API_KEY repository secrets."+ exit 1+ fi+ args=(--report "$RUNNER_TEMP/i18n-report.md")+ [ -n "$LOCALES" ] && args+=(--locales "$LOCALES")+ [ "$FORCE" = "true" ] && args+=(--force)+ node scripts/i18n-translate.mjs "${args[@]}"+ - name: Open the PR+ env:+ GH_TOKEN: ${{ secrets.PR_TOKEN || github.token }}+ working-directory: ${{ github.workspace }}+ run: |+ if [ -z "$(git status --porcelain -- apps/cua-spaces/src/i18n)" ]; then+ echo "Translations are up to date."+ exit 0+ fi+ branch="i18n/spaces-translations-${GITHUB_RUN_ID}"+ git config user.name "cua-i18n[bot]"+ git config user.email "[email protected]"+ git checkout -b "$branch"+ git add apps/cua-spaces/src/i18n+ git commit -m "i18n(cua-spaces): update translations"+ git push "https://x-access-token:${GH_TOKEN}@github.com/${GITHUB_REPOSITORY}.git" "$branch"+ {+ echo "Updates the Cua Spaces translations (zh-Hans, ko, pt-BR, ja, es) for the English strings that changed on main. Machine translated by Claude Sonnet; nothing changes for English users."+ echo+ cat "$RUNNER_TEMP/i18n-report.md"+ } > "$RUNNER_TEMP/body.md"+ gh label create i18n --color 0E8A16 --description "Translations" 2>/dev/null || true+ gh pr create --base main --head "$branch" --label i18n \+ --title "i18n(cua-spaces): update translations" --body-file "$RUNNER_TEMP/body.md"diff --git a/apps/cua-spaces/docs/i18n.md b/apps/cua-spaces/docs/i18n.mdindex 78d2dafd67..68be3e6db5 100644--- a/apps/cua-spaces/docs/i18n.md+++ b/apps/cua-spaces/docs/i18n.md@@ -1,6 +1,6 @@# Translating UI strings-The shared web UI uses i18next with ICU messages. Only English (`en`) is bundled for now; translations are generated in CI later, so edit `en` only.+The shared web UI uses i18next with ICU messages. English (`en`) is the source; zh-Hans, ko, pt-BR, ja and es are generated by CI and bundled, so edit `en` only and never hand-edit another language.## Add a string@@ -27,3 +27,12 @@ Outside React, use `t("sharing:sheet.invite_button")` from `src/i18n`.## Guardrail`src/i18n/noHardcodedStrings.test.ts` fails on JSX text and on `title`, `aria-label`, `placeholder`, `alt` and `label` string literals in the files listed in `MIGRATED`. When you finish extracting a file or directory (paths relative to `src/`), add it to that list in the same PR.++## Translations++- When `locales/en/*.json` changes on main, `.github/workflows/i18n-translate-spaces.yml` runs `scripts/i18n-translate.mjs`: it translates only new or changed keys (hash per key in `src/i18n/i18n.lock.json`) with Claude Sonnet through the LiteLLM gateway, validates them, and opens a PR labelled `i18n`. Run it by hand from the Actions tab (optionally `locales`, `force`).+- Needs the repository secrets `LITELLM_BASE_URL` and `LITELLM_API_KEY` (optional variable `I18N_MODEL`, default `claude-sonnet-5-5`). Locally: `I18N_BASE_URL=... I18N_API_KEY=... node scripts/i18n-translate.mjs`, or `--provider claude-cli` to use the `claude` CLI.+- `src/i18n/glossary.json` holds the do-not-translate list (Cua, Cua Spaces, Spaces, Cua Driver, Teams, Pro, Free and more), the tone guidance and preferred terms per language. Change it, then rerun with `--force`.+- Checks before a PR: valid ICU, same variables, tags and select keywords as English, complete plural categories, product names kept, no empty values (blocking, retried with feedback). Length over 1.5x the English and back-translation meaning drift are listed in the PR body for review.+- `translations.test.ts` keeps every committed string valid; `renderOverflow.test.tsx` renders Onboarding and Settings in every language and fails on raw keys, leftover ICU or controls wider than the display budget. Pixel-level overflow checks with Playwright can follow once `apps/cua-spaces-web` (which has the Playwright setup) is on i18n.+- Settings has a Language row (System default plus the six languages). It saves `cua.settings.locale`, switches the UI live and reports `ui_locale`.diff --git a/apps/cua-spaces/scripts/i18n-translate.mjs b/apps/cua-spaces/scripts/i18n-translate.mjsnew file mode 100644index 0000000000..4a6306ed6e--- /dev/null+++ b/apps/cua-spaces/scripts/i18n-translate.mjs@@ -0,0 +1,312 @@+#!/usr/bin/env node+// SPDX-License-Identifier: FSL-1.1-MIT+// Copyright (c) 2026 Cua AI, Inc.++/**+ * Translates the Spaces app's UI strings with Claude, like `@lobehub/i18n-cli`:+ * only new or changed `en` keys are sent, per target language, and the result+ * is validated before anything is written.+ *+ * node scripts/i18n-translate.mjs [--locales ja,es] [--force] [--dry-run]+ * [--no-backtranslate] [--report path] [--provider api|claude-cli]+ *+ * Source: src/i18n/locales/en/<ns>.json (flat `<area>.<screen>.<element>` keys).+ * Output: src/i18n/locales/<lng>/<ns>.json and src/i18n/i18n.lock.json (the+ * hash of each English string each language was translated from).+ *+ * Provider `api` (default; CI) calls an OpenAI-compatible chat endpoint, our+ * LiteLLM gateway: I18N_BASE_URL, I18N_API_KEY, I18N_MODEL (default+ * claude-sonnet-5-5). Provider `claude-cli` shells out to `claude -p` for local+ * runs. Keys are read from the environment and never printed.+ */+import { spawnSync } from "node:child_process"+import { existsSync, mkdirSync, readFileSync, readdirSync, rmSync, writeFileSync } from "node:fs"+import { dirname, join, resolve } from "node:path"+import { fileURLToPath } from "node:url"+import { TARGET_LOCALES, hashSource, validateTranslation } from "./i18n/lib.mjs"++const app = resolve(dirname(fileURLToPath(import.meta.url)), "..")+const i18nDir = join(app, "src", "i18n")+const localesDir = join(i18nDir, "locales")+const lockPath = join(i18nDir, "i18n.lock.json")+const glossary = JSON.parse(readFileSync(join(i18nDir, "glossary.json"), "utf8"))++const LOCALE_NAMES = {+ "zh-Hans": "Simplified Chinese (zh-Hans)",+ ko: "Korean",+ "pt-BR": "Brazilian Portuguese",+ ja: "Japanese",+ es: "Spanish (neutral, Latin America and Spain)",+}+const BATCH = 40+const RETRIES = 3++function parseArgs(argv) {+ const o = { locales: TARGET_LOCALES, force: false, dryRun: false, back: true, report: null, provider: process.env.I18N_PROVIDER || "api" }+ for (let i = 0; i < argv.length; i++) {+ const a = argv[i]+ if (a === "--locales") o.locales = argv[++i].split(",").map((s) => s.trim()).filter(Boolean)+ else if (a === "--force") o.force = true+ else if (a === "--dry-run") o.dryRun = true+ else if (a === "--no-backtranslate") o.back = false+ else if (a === "--report") o.report = resolve(argv[++i])+ else if (a === "--provider") o.provider = argv[++i]+ else throw new Error(`unknown argument ${a}`)+ }+ for (const l of o.locales) if (!TARGET_LOCALES.includes(l)) throw new Error(`unsupported locale ${l}`)+ return o+}++const readJson = (p, fallback) => (existsSync(p) ? JSON.parse(readFileSync(p, "utf8")) : fallback)+const writeJson = (p, v) => {+ mkdirSync(dirname(p), { recursive: true })+ writeFileSync(p, JSON.stringify(v, null, 2) + "\n")+}++/** Dotted-key entries of a (possibly nested) catalog: { "a.b": "text" }. */+function flatten(obj, prefix = "", out = {}) {+ for (const [k, v] of Object.entries(obj)) {+ if (v && typeof v === "object") flatten(v, `${prefix}${k}.`, out)+ else out[`${prefix}${k}`] = v+ }+ return out+}++/** `values` (flat) laid out in the same shape as the English catalog `shape`. */+function nestLike(shape, values, prefix = "") {+ const out = {}+ for (const [k, v] of Object.entries(shape)) {+ if (v && typeof v === "object") {+ const inner = nestLike(v, values, `${prefix}${k}.`)+ if (Object.keys(inner).length) out[k] = inner+ } else if (`${prefix}${k}` in values) out[k] = values[`${prefix}${k}`]+ }+ return out+}++/** { ns: { key: english } } from locales/en (nested catalogs are flattened). */+function readSource() {+ const out = {}+ for (const f of readdirSync(join(localesDir, "en")).filter((n) => n.endsWith(".json")).sort()) {+ out[f.replace(/\.json$/, "")] = readJson(join(localesDir, "en", f), {})+ }+ return out+}++// ------------------------------------------------------------------ model++async function complete(system, user, opts) {+ if (opts.provider === "claude-cli") {+ const r = spawnSync("claude", ["-p", "--model", process.env.I18N_MODEL || "sonnet", "--append-system-prompt", system, "--output-format", "text"], {+ input: user,+ encoding: "utf8",+ maxBuffer: 32 * 1024 * 1024,+ })+ if (r.status !== 0) throw new Error(`claude -p failed (status ${r.status}, ${r.signal ?? "no signal"}): ${(r.stderr || r.stdout || "").slice(0, 300)}`)+ return r.stdout+ }+ const base = process.env.I18N_BASE_URL+ const key = process.env.I18N_API_KEY+ if (!base || !key) throw new Error("I18N_BASE_URL and I18N_API_KEY are required (provider api)")+ const res = await fetch(`${base.replace(/\/+$/, "")}/v1/chat/completions`, {+ method: "POST",+ headers: { "content-type": "application/json", authorization: `Bearer ${key}` },+ body: JSON.stringify({+ model: process.env.I18N_MODEL || "claude-sonnet-5-5",+ temperature: 0,+ max_tokens: 8000,+ messages: [+ { role: "system", content: system },+ { role: "user", content: user },+ ],+ }),+ })+ if (!res.ok) throw new Error(`gateway ${res.status}: ${(await res.text()).slice(0, 300).replace(key, "***")}`)+ const body = await res.json()+ return body.choices?.[0]?.message?.content ?? ""+}++/** The JSON object in a model reply (tolerates code fences and chatter). */+function extractJson(text) {+ const start = text.indexOf("{")+ const end = text.lastIndexOf("}")+ if (start < 0 || end < start) throw new Error("no JSON object in reply")+ return JSON.parse(text.slice(start, end + 1))+}++function systemPrompt(locale) {+ const forced = Object.entries(glossary.terms[locale] ?? {}).map(([k, v]) => ` "${k}" -> "${v}"`).join("\n")+ return [+ `You translate the UI text of Cua Spaces, a desktop app, from English into ${LOCALE_NAMES[locale]}.`,+ `Tone: ${glossary.tone}`,+ "Rules:",+ "- Input is a JSON object of key -> English. Reply with ONE JSON object with exactly the same keys and the translated values. No prose, no code fences.",+ "- Keys describe where the text appears (<area>.<screen>.<element>). Use them as context only; never translate keys.",+ "- Messages use ICU MessageFormat. Keep every {variable}, every <tag>, and the whole ICU structure. Variable names, select keywords (the words before `{` in select blocks) and the `plural`/`select` keywords stay in English.",+ `- In plural blocks write every plural category ${LOCALE_NAMES[locale]} needs (CLDR: ${new Intl.PluralRules(locale).resolvedOptions().pluralCategories.join(", ")}), plus \`other\`. Use # for the number.`,+ `- Never translate or transliterate these product and brand names; keep them exactly as written, in Latin letters, even inside ${LOCALE_NAMES[locale]} sentences (for example "Cua", never a phonetic spelling, and "Space"/"Spaces", never a word meaning "space"): ${glossary.doNotTranslate.join(", ")}.`,+ "- Use one term per concept, consistently across keys. Preferred terms:",+ forced || " (none)",+ "- Keep punctuation style natural for the language, keep the same length where you can (UI space is tight), and do not add or drop information.",+ ].join("\n")+}++async function translateBatch(locale, entries, opts) {+ const result = {}+ let pending = { ...entries }+ const problems = {}+ for (let attempt = 1; attempt <= RETRIES && Object.keys(pending).length; attempt++) {+ const feedback = Object.keys(problems).length+ ? `\n\nYour previous answer had problems; fix them:\n${Object.values(problems).flat().join("\n")}`+ : ""+ let reply+ try {+ reply = extractJson(await complete(systemPrompt(locale), JSON.stringify(pending, null, 2) + feedback, opts))+ } catch (e) {+ console.error(` ${locale}: attempt ${attempt} failed: ${e.message}`)+ await new Promise((r) => setTimeout(r, 5000 * attempt))+ continue+ }+ for (const [key, source] of Object.entries(pending)) {+ const v = validateTranslation({ key, source, translation: reply[key], locale, doNotTranslate: glossary.doNotTranslate })+ if (v.errors.length) {+ problems[key] = v.errors+ } else {+ result[key] = { text: reply[key], warnings: v.warnings }+ delete pending[key]+ delete problems[key]+ }+ }+ }+ return { result, failed: pending, problems }+}++/** Translate each new string back to English; list where the meaning moved. */+async function backTranslate(locale, pairs, opts) {+ if (!pairs.length) return []+ const system = [+ `You review translations of UI text from English into ${LOCALE_NAMES[locale]}.`,+ "Input: JSON object key -> { en, tr }. For each key, translate `tr` back to English literally, then say whether its meaning drifted from `en`.",+ 'Reply with ONE JSON object: key -> { "back": "...", "drift": true|false, "note": "short reason when drift is true" }. Flag only real meaning changes (added, lost or changed meaning), not wording or word order.',+ ].join("\n")+ const flags = []+ for (let i = 0; i < pairs.length; i += 60) {+ const chunk = Object.fromEntries(pairs.slice(i, i + 60).map(([k, en, tr]) => [k, { en, tr }]))+ try {+ const reply = extractJson(await complete(system, JSON.stringify(chunk, null, 2), opts))+ for (const [k, v] of Object.entries(reply)) if (v?.drift) flags.push({ locale, key: k, en: chunk[k]?.en, tr: chunk[k]?.tr, back: v.back, note: v.note })+ } catch (e) {+ console.error(` ${locale}: back-translation skipped for a batch: ${e.message}`)+ }+ }+ return flags+}++function saveLock(lock) {+ const ordered = {}+ for (const l of Object.keys(lock).sort()) ordered[l] = Object.fromEntries(Object.entries(lock[l]).sort(([a], [b]) => a.localeCompare(b)))+ writeJson(lockPath, ordered)+}++// ------------------------------------------------------------------- main++async function main() {+ const opts = parseArgs(process.argv.slice(2))+ const shapes = readSource() // as written in locales/en+ const source = Object.fromEntries(Object.entries(shapes).map(([ns, c]) => [ns, flatten(c)]))+ const lock = readJson(lockPath, {})+ const report = { translated: {}, removed: {}, warnings: [], drift: [], failures: [] }+ let touched = false++ for (const locale of opts.locales) {+ const lockFor = (lock[locale] ??= {})+ const todo = [] // [ns, key, en]+ for (const [ns, strings] of Object.entries(source)) {+ const file = join(localesDir, locale, `${ns}.json`)+ const have = flatten(readJson(file, {}))+ for (const [key, en] of Object.entries(strings)) {+ if (opts.force || !(key in have) || lockFor[key] !== hashSource(en)) todo.push([ns, key, en])+ }+ }+ // Removed keys (and namespaces) leave the locale files.+ const wanted = new Set(Object.entries(source).flatMap(([, s]) => Object.keys(s)))+ const removed = []+ for (const key of Object.keys(lockFor)) if (!wanted.has(key)) { delete lockFor[key]; removed.push(key) }+ report.removed[locale] = removed+ console.log(`${locale}: ${todo.length} to translate, ${removed.length} removed`)++ const outputs = {} // ns -> key -> text+ const newPairs = []+ for (let i = 0; i < todo.length; i += BATCH) {+ const batch = todo.slice(i, i + BATCH)+ if (opts.dryRun) continue+ const { result, failed, problems } = await translateBatch(locale, Object.fromEntries(batch.map(([, k, en]) => [k, en])), opts)+ for (const [ns, key, en] of batch) {+ if (result[key]) {+ ;(outputs[ns] ??= {})[key] = result[key].text+ lockFor[key] = hashSource(en)+ newPairs.push([key, en, result[key].text])+ for (const w of result[key].warnings) report.warnings.push(`${locale} ${w}`)+ } else if (key in failed) {+ report.failures.push(`${locale} ${key}: ${(problems[key] ?? ["no usable reply"]).join("; ")}`)+ }+ }+ }+ report.translated[locale] = newPairs.length+ if (opts.dryRun) continue++ for (const [ns, strings] of Object.entries(source)) {+ const file = join(localesDir, locale, `${ns}.json`)+ const have = flatten(readJson(file, {}))+ const next = {}+ for (const key of Object.keys(strings)) {+ if (outputs[ns]?.[key] !== undefined) next[key] = outputs[ns][key]+ else if (key in have && !opts.force && lockFor[key] === hashSource(strings[key])) next[key] = have[key]+ // else: changed or failed: left out, so the UI falls back to English until it is translated.+ }+ const nested = nestLike(shapes[ns], next)+ const before = existsSync(file) ? readFileSync(file, "utf8") : null+ const after = JSON.stringify(nested, null, 2) + "\n"+ if (before !== after) { mkdirSync(dirname(file), { recursive: true }); writeFileSync(file, after); touched = true }+ }+ // Namespaces that no longer exist in English.+ const dir = join(localesDir, locale)+ if (existsSync(dir)) for (const f of readdirSync(dir)) if (f.endsWith(".json") && !(f.replace(/\.json$/, "") in source)) { rmSync(join(dir, f)); touched = true }++ saveLock(lock)+ if (opts.back) report.drift.push(...(await backTranslate(locale, newPairs, opts)))+ }++ if (!opts.dryRun) saveLock(lock)+ const md = renderReport(report, opts)+ if (opts.report) writeFileSync(opts.report, md)+ console.log(md)+ if (report.failures.length) {+ console.error(`${report.failures.length} strings failed validation after ${RETRIES} tries; they stay English until retried.`)+ process.exitCode = 2+ }+ if (!touched && !opts.dryRun) console.log("No file changes.")+}++function renderReport(r, opts) {+ const total = Object.values(r.translated).reduce((a, b) => a + b, 0)+ const lines = ["## Translation summary", ""]+ lines.push(`Strings translated: ${total} (${Object.entries(r.translated).map(([l, n]) => `${l} ${n}`).join(", ") || "none"})`)+ const removed = Object.values(r.removed).reduce((a, b) => a + b.length, 0)+ if (removed) lines.push(`Keys removed: ${removed} per language set (${Object.keys(r.removed).length} languages)`)+ lines.push("", "Checks run on every string: valid ICU syntax, the same variables, tags and select keywords as English, complete plural categories, product names kept, no empty values.")+ lines.push("", `### Length warnings (over 1.5x the English)`, "")+ lines.push(...(r.warnings.length ? r.warnings.map((w) => `- ${w}`) : ["None."]))+ lines.push("", "### Possible meaning drift (back-translation review)", "")+ if (!opts.back) lines.push("Skipped.")+ else if (!r.drift.length) lines.push("None flagged.")+ else for (const d of r.drift) lines.push(`- ${d.locale} \`${d.key}\`: "${d.en}" became "${d.tr}", which reads back as "${d.back}". ${d.note ?? ""}`)+ if (r.failures.length) lines.push("", "### Failed validation (left in English)", "", ...r.failures.map((f) => `- ${f}`))+ lines.push("", "Machine translation by Claude Sonnet. Spot-check one launch language with a native speaker before it is published.")+ return lines.join("\n") + "\n"+}++main().catch((e) => {+ console.error(e.message)+ process.exit(1)+})diff --git a/apps/cua-spaces/scripts/i18n/lib.mjs b/apps/cua-spaces/scripts/i18n/lib.mjsnew file mode 100644index 0000000000..c20fb8d268--- /dev/null+++ b/apps/cua-spaces/scripts/i18n/lib.mjs@@ -0,0 +1,132 @@+// SPDX-License-Identifier: FSL-1.1-MIT+// Copyright (c) 2026 Cua AI, Inc.++/**+ * Checks shared by the translation script and the vitest guard: ICU syntax,+ * the same variables, tags and select keywords as English, complete CLDR+ * plural categories, kept product names, and a length warning.+ */+import { createHash } from "node:crypto"+import { IntlMessageFormat } from "intl-messageformat"++/** Target languages, in the order they are generated. */+export const TARGET_LOCALES = ["zh-Hans", "ko", "pt-BR", "ja", "es"]++/** Longer than this many times the English is flagged (warning, not blocking). */+export const LENGTH_RATIO_WARN = 1.5+/** Strings shorter than this are too small for a ratio to mean anything. */+export const LENGTH_MIN_CHARS = 12++/** Short stable hash of an English string, for change detection. */+export function hashSource(text) {+ return createHash("sha256").update(text).digest("hex").slice(0, 12)+}++// intl-messageformat AST element types.+const T = { literal: 0, argument: 1, number: 2, date: 3, time: 4, select: 5, plural: 6, pound: 7, tag: 8 }++/**+ * Parse an ICU message. Returns its structure: the variables used (with the+ * kind), tags, select keywords and plural categories, or `{ error }`.+ */+export function analyze(message) {+ let ast+ try {+ ast = new IntlMessageFormat(message, "en").getAst()+ } catch (e) {+ return { error: String(e?.message ?? e).split("\n")[0] }+ }+ const vars = new Map() // name -> kind+ const tags = new Set()+ const selects = new Map() // name -> sorted option keys+ const plurals = new Map() // name -> sorted option keys+ const walk = (els) => {+ for (const el of els) {+ switch (el.type) {+ case T.argument: vars.set(el.value, vars.get(el.value) ?? "arg"); break+ case T.number: vars.set(el.value, "number"); break+ case T.date: vars.set(el.value, "date"); break+ case T.time: vars.set(el.value, "time"); break+ case T.select:+ case T.plural: {+ vars.set(el.value, el.type === T.select ? "select" : "plural")+ const keys = Object.keys(el.options).sort()+ ;(el.type === T.select ? selects : plurals).set(el.value, keys)+ for (const opt of Object.values(el.options)) walk(opt.value)+ break+ }+ case T.tag: tags.add(el.value); walk(el.children); break+ default: break+ }+ }+ }+ walk(ast)+ return { vars, tags, selects, plurals }+}++const sameSet = (a, b) => a.size === b.size && [...a].every((x) => b.has(x))++/** CLDR plural categories a language needs in a `plural` block. */+export function pluralCategories(locale) {+ return new Intl.PluralRules(locale).resolvedOptions().pluralCategories+}++/**+ * Whole-word, case-sensitive match so `Pro` does not match `Product`. Only+ * Latin letters and digits count as word characters, so `Cua는` (a Korean+ * particle) and `Spaces를` still match.+ */+function hasTerm(text, term) {+ const esc = term.replace(/[.*+?^${}()|[\]\\]/g, "\\$&")+ return new RegExp(`(?<![A-Za-z0-9])${esc}(?![A-Za-z0-9])`, "u").test(text)+}++/**+ * Validate one translation. Returns `{ errors, warnings }`; any error blocks.+ * `doNotTranslate` terms present in the English must survive verbatim.+ */+export function validateTranslation({ key, source, translation, locale, doNotTranslate = [], forcedTerms = {} }) {+ const errors = []+ const warnings = []+ if (typeof translation !== "string" || translation.trim() === "") {+ return { errors: [`${key}: empty translation`], warnings }+ }+ const src = analyze(source)+ if (src.error) return { errors: [`${key}: English source does not parse (${src.error})`], warnings }+ const out = analyze(translation)+ if (out.error) return { errors: [`${key}: ICU syntax error (${out.error})`], warnings }++ const names = (m) => new Set(m.keys())+ if (!sameSet(names(src.vars), names(out.vars))) {+ const miss = [...src.vars.keys()].filter((v) => !out.vars.has(v))+ const extra = [...out.vars.keys()].filter((v) => !src.vars.has(v))+ errors.push(`${key}: variables differ (missing: ${miss.join(", ") || "none"}; extra: ${extra.join(", ") || "none"})`)+ } else {+ for (const [name, kind] of src.vars) {+ if (out.vars.get(name) !== kind) errors.push(`${key}: variable {${name}} changed type (${kind} to ${out.vars.get(name)})`)+ }+ }+ if (!sameSet(src.tags, out.tags)) errors.push(`${key}: tags differ (${[...src.tags].join(", ") || "none"} vs ${[...out.tags].join(", ") || "none"})`)+ for (const [name, keys] of src.selects) {+ if (JSON.stringify(out.selects.get(name) ?? []) !== JSON.stringify(keys)) errors.push(`${key}: select {${name}} keywords must stay ${keys.join(", ")}`)+ }+ const cats = pluralCategories(locale)+ for (const [name] of src.plurals) {+ const have = out.plurals.get(name)+ if (!have) continue // already reported as a variable-kind change+ const lacking = ["other", ...cats].filter((c) => !have.includes(c))+ if (lacking.length) errors.push(`${key}: plural {${name}} lacks ${[...new Set(lacking)].join(", ")} for ${locale}`)+ }+ for (const term of doNotTranslate) {+ if (hasTerm(source, term) && !hasTerm(translation, term)) errors.push(`${key}: "${term}" must stay in English`)+ }+ for (const [term, wanted] of Object.entries(forcedTerms)) {+ if (hasTerm(source.toLowerCase(), term.toLowerCase()) && !translation.includes(wanted)) {+ warnings.push(`${key}: expected "${wanted}" for "${term}"`)+ }+ }+ if (source.length >= LENGTH_MIN_CHARS && translation.length > source.length * LENGTH_RATIO_WARN) {+ warnings.push(`${key}: ${translation.length} chars is ${(translation.length / source.length).toFixed(1)}x the English (${source.length})`)+ }+ return { errors, warnings }+}diff --git a/apps/cua-spaces/src/components/SettingsPanel.test.tsx b/apps/cua-spaces/src/components/SettingsPanel.test.tsxindex a18e75a5b2..4a54228521 100644--- a/apps/cua-spaces/src/components/SettingsPanel.test.tsx+++ b/apps/cua-spaces/src/components/SettingsPanel.test.tsx@@ -8,6 +8,9 @@ import { afterEach, beforeEach, describe, expect, it, vi } from "vitest";import * as appCore from "../core";import type { TelemetryBridge, TelemetryView } from "../native/telemetry";import { fakeDrive, MOUNT_OFF, MOUNTED, NEEDS_APPROVAL } from "../test/fakeDrive";+import { currentUiLocale } from "../i18n";+import { setLocaleChoice } from "../i18n/preference";+import * as telemetryModule from "../native/telemetry";import { SettingsPanel, SIGN_IN_URL } from "./SettingsPanel";beforeEach(() => {@@ -398,7 +401,7 @@ describe("SettingsPanel Privacy", () => {renderPanel({ telemetry: fakeTelemetry(), onShowWelcome });await screen.findByText("Share usage data to help improve Cua");const titles = screen.getAllByRole("heading", { level: 3 }).map((h) => h.textContent);- expect(titles).toEqual(["Account", "Teams", "General", "Privacy", "AI agents", "Experiments"]);+ expect(titles).toEqual(["Account", "Teams", "General", "Privacy", "AI agents", "Experiments", "Language"]);await userEvent.click(screen.getByRole("button", { name: "Show again" }));expect(onShowWelcome).toHaveBeenCalled();});@@ -733,3 +736,37 @@ describe("SettingsPanel launch at login", () => {expect(toggle).toHaveAttribute("aria-checked", "false");});});++describe("SettingsPanel language", () => {+ afterEach(async () => {+ await act(async () => {+ await setLocaleChoice("system");+ });+ });++ it("offers System default and the six languages, saves the choice and switches live", async () => {+ const user = userEvent.setup();+ const report = vi.spyOn(telemetryModule, "telemetryBridge");+ renderPanel();+ const select = screen.getByRole("combobox", { name: "Language" });+ expect(within(select).getAllByRole("option").map((o) => o.textContent)).toEqual([+ "System default",+ "English",+ "简体中文",+ "한국어",+ "Português (Brasil)",+ "日本語",+ "Español",+ ]);+ expect(select).toHaveValue("system");+ await user.selectOptions(select, "ja");+ await waitFor(() => expect(window.localStorage.getItem("cua.settings.locale")).toBe("ja"));+ expect(currentUiLocale()).toBe("ja");+ expect(report).toHaveBeenCalled(); // setUiLocale goes out through the telemetry bridge+ expect(await screen.findByRole("combobox", { name: "言語" })).toHaveValue("ja");+ await user.selectOptions(screen.getByRole("combobox", { name: "言語" }), "system");+ await waitFor(() => expect(window.localStorage.getItem("cua.settings.locale")).toBeNull());+ expect(currentUiLocale()).toBe("en");+ report.mockRestore();+ });+});diff --git a/apps/cua-spaces/src/components/SettingsPanel.tsx b/apps/cua-spaces/src/components/SettingsPanel.tsxindex a865b332d0..35166bb06e 100644--- a/apps/cua-spaces/src/components/SettingsPanel.tsx+++ b/apps/cua-spaces/src/components/SettingsPanel.tsx@@ -37,7 +37,8 @@ import type { Location } from "../model/types";import { settingsPage, type SettingsRow, type SettingsSection, type SignInPhase } from "../model/window";import { experimentsPage, settingsWithStorage } from "../model/experiments";import { chooseExperimentRow, useExperiments } from "../state/experiments";-import { t } from "../i18n";+import { AVAILABLE_LOCALES, t, useT } from "../i18n";+import { LOCALE_ENDONYMS, savedLocaleChoice, setLocaleChoice } from "../i18n/preference";import { MiddleText } from "./MiddleText";import { SfIcon } from "./SfIcon";@@ -145,6 +146,9 @@ export function SettingsPanel({onClose,}: SettingsPanelProps) {const panelRef = useRef<HTMLDivElement>(null);+ // Re-renders the panel when the language changes (the core's rows are words too).+ const tl = useT("settings");+ const [localeChoice, setLocaleChoiceState] = useState(savedLocaleChoice);const telemetry = useMemo(() => telemetryProp ?? telemetryBridge(), [telemetryProp]);const experiments = useExperiments();const drive = useMemo(() => driveProp ?? createDriveBridge(), [driveProp]);@@ -507,6 +511,35 @@ export function SettingsPanel({</section>);})}+ <section className="st-group" aria-label={tl("settings.language.label")}>+ <div className="st-head">+ <h3 className="st-title">{tl("settings.language.label")}</h3>+ </div>+ <div className="st-rows">+ <div className="st-row">+ <label className="st-label" htmlFor="st-ui-language">+ {tl("settings.language.label")}+ </label>+ <select+ id="st-ui-language"+ className="dw-input st-field"+ data-owns-enter+ value={localeChoice}+ onChange={(event) => {+ setLocaleChoiceState(event.target.value);+ void setLocaleChoice(event.target.value);+ }}+ >+ <option value="system">{tl("settings.language.system_default")}</option>+ {AVAILABLE_LOCALES.map((code) => (+ <option key={code} value={code} lang={code}>+ {LOCALE_ENDONYMS[code]}+ </option>+ ))}+ </select>+ </div>+ </div>+ </section></div>);}diff --git a/apps/cua-spaces/src/i18n/glossary.json b/apps/cua-spaces/src/i18n/glossary.jsonnew file mode 100644index 0000000000..f1b3cc52a0--- /dev/null+++ b/apps/cua-spaces/src/i18n/glossary.json@@ -0,0 +1,43 @@+{+ "doNotTranslate": [+ "Cua Spaces",+ "Cua Driver",+ "Cua Volume",+ "Cua",+ "Spaces",+ "Space",+ "Teams",+ "Pro",+ "Free",+ "macOS",+ "MCP"+ ],+ "tone": "Plain and friendly, like the English: short and direct, no jargon, no slang. Use the polite everyday register (informal tu in es and pt-BR; polite です/ます in ja; 해요 style in ko; plain neutral 您-free wording in zh-Hans). Do not add exclamation marks or words the English does not have.",+ "terms": {+ "zh-Hans": {+ "Sign in": "登录",+ "Settings": "设置",+ "Teleport": "传送"+ },+ "ko": {+ "Sign in": "로그인",+ "Settings": "설정",+ "Teleport": "텔레포트"+ },+ "pt-BR": {+ "Sign in": "Entrar",+ "Settings": "Configurações",+ "Teleport": "Teleportar"+ },+ "ja": {+ "Sign in": "サインイン",+ "Settings": "設定",+ "Teleport": "テレポート"+ },+ "es": {+ "Sign in": "Iniciar sesión",+ "Settings": "Ajustes",+ "Teleport": "Teletransportar"+ }+ }+}diff --git a/apps/cua-spaces/src/i18n/i18n.lock.json b/apps/cua-spaces/src/i18n/i18n.lock.jsonnew file mode 100644index 0000000000..01e01e46d0--- /dev/null+++ b/apps/cua-spaces/src/i18n/i18n.lock.json@@ -0,0 +1,727 @@+{+ "es": {+ "agents.routine.day": "8f2364e11b8b",+ "agents.routine.minutes": "4f846a84e7fc",+ "agents.routine.prompt": "5c39123805ff",+ "agents.routine.schedule": "f4830a1dae29",+ "agents.routine.time": "33b93476cf59",+ "agents.routine.title": "7e8cd2056da7",+ "common.action.back": "76900f1bfd16",+ "common.action.cancel": "19766ed6ccb2",+ "common.action.close": "7d9eb7acb13e",+ "common.action.dismiss": "48845bff334a",+ "common.action.done": "11a6767d5674",+ "common.action.reconnect": "bf8a9eab9e7e",+ "common.action.retry": "942087cc2d41",+ "common.app_name": "8d8f3a906275",+ "common.status.connecting": "72021eb70e91",+ "devices.approve.passphrase_label": "2f9469b9939d",+ "devices.banner.label": "158b46b34c60",+ "devices.enroll.code_label": "1b774f3cfe6a",+ "devices.recent.not_yours_label": "0bc370cca274",+ "devices.section.label": "4ba5121d4d1b",+ "devices.section.title": "4ba5121d4d1b",+ "errors.settings.sign_in_start_failed": "607df02d4dc2",+ "errors.spaces.create_failed": "90a7bbca694a",+ "errors.spaces.load_failed": "48f794c6626f",+ "errors.spaces.refresh_failed": "bc9e18ba6912",+ "errors.viewer.agent_open_failed": "cf193e0cf4dc",+ "errors.viewer.stop_hotspot_failed": "aff28d6055ac",+ "errors.viewer.stream_unreachable": "a7bcccbabec5",+ "installer.agents.detected_label": "4b16bc9f2fe8",+ "installer.agents.results_label": "2c3e18ce88e8",+ "installer.flow.label": "228f11be7459",+ "installer.flow.steps_label": "1eba90226b10",+ "installer.prompts.copied": "8d525e5f158b",+ "installer.prompts.label": "a592aec4fd49",+ "onboarding.mode.change_later": "cae75f781863",+ "settings.accessibility.enable_window_drag": "5460d093a199",+ "settings.cloud.checks_label": "de07d0720955",+ "settings.cloud.clouds_label": "e45347b019f0",+ "settings.cloud.sign_in_found": "0a51af132f6e",+ "settings.cloud.touches_label": "baf0b2fddc25",+ "settings.language.label": "a4fe65264ef7",+ "settings.language.system_default": "b0459211f9f7",+ "settings.this_machine.sharing_label": "bbedc70e985f",+ "sharing.sheet.role_label": "14736a2eb9f4",+ "sharing.sheet.shared_with_label": "8f0085638354",+ "spaces.agents.list_label": "6abfe7bce327",+ "spaces.ambient.teleport": "a63cee2f0b03",+ "spaces.brand.cua_spaces": "8d8f3a906275",+ "spaces.create.creating": "d11891d7f38d",+ "spaces.detail.preview_alt": "d1502f59eed7",+ "spaces.facts.label": "45989de49fb7",+ "spaces.main.agents_label": "279b44d2ab4b",+ "spaces.main.nav_label": "f7efa7bc1fc5",+ "spaces.main.new_hint": "0841818d307c",+ "spaces.main.os_tile_label": "99afed6f542b",+ "spaces.main.search_label": "283586dda9d5",+ "spaces.main.settings_hint": "0841818d307c",+ "spaces.main.sidebar_label": "077a293d1263",+ "spaces.switcher.create_new": "62457776f8b3",+ "spaces.switcher.drop_hint": "d76e677e7c3c",+ "spaces.switcher.drop_hint_app": "a264d83d8e1e",+ "spaces.switcher.label": "f51f069a69d6",+ "spaces.switcher.list_label": "82bb2a7ac311",+ "spaces.switcher.list_view_hint": "04423d8b7138",+ "spaces.switcher.list_view_label": "5d8c3e1b635e",+ "spaces.switcher.new_drop_label": "a6d4a8f31b3b",+ "spaces.switcher.new_label": "bdc4786ca037",+ "spaces.switcher.new_tile": "18fdd549b2ed",+ "spaces.switcher.no_match": "586b36b37bfd",+ "spaces.switcher.search_hint": "283586dda9d5",+ "spaces.switcher.search_label": "25cac10caf01",+ "spaces.switcher.search_placeholder": "49c266baaaa7",+ "spaces.switcher.settings": "74a883a037bc",+ "spaces.switcher.stop_hotspot": "7c11302f5f8a",+ "spaces.switcher.stop_hotspot_hint": "3f1ad8b66358",+ "spaces.thumbnail.deleting": "43b5894c3e4e",+ "spaces.tile.delete_hint": "e45f1e1195dd",+ "spaces.tile.delete_label": "3cf8146e529f",+ "spaces.tile.hotspot_badge": "16ae61116c59",+ "spaces.tile.pin_hint": "76763e6d446e",+ "spaces.tile.pin_label": "89b6466bac11",+ "spaces.tile.power_label": "49fd66582345",+ "spaces.tile.teleport_hint": "30aaddfc0af8",+ "spaces.tile.teleport_label": "17f4ac2d00ec",+ "spaces.viewer.agent_installing": "b3762c16ae4b",+ "spaces.viewer.agent_opened": "1be80752f3f7",+ "spaces.viewer.agents_menu_label": "707c65c28bca",+ "spaces.viewer.connecting_to": "7fb114ef635a",+ "spaces.viewer.controls_label": "3fe4c71762c6",+ "spaces.viewer.launch_agent": "6af26e6d0986",+ "spaces.viewer.launch_agent_hint": "88e8e3be5bf4",+ "spaces.viewer.stop_hotspot": "7c11302f5f8a",+ "spaces.viewer.stop_hotspot_hint": "ce54237d0e5c",+ "spaces.viewer.stream_ended": "9e78d065d014",+ "spaces.viewer.teleport": "5e19c1450e47",+ "spaces.viewer.teleport_hint": "099179f7d5f5",+ "spaces.viewer.transferring": "0abcaa15639d",+ "spaces.window_stream.close_window": "8b9de9c0c0a0",+ "spaces.window_stream.no_windows": "0aa22974ca89",+ "spaces.window_stream.waiting_for": "da722f83a95a",+ "spaces.windows.stream_label": "1eec3071dd26",+ "spaces.wizard.connect_by_address": "c2bf1a2da6ce",+ "spaces.wizard.cost_label": "204a5eb2cd28",+ "spaces.wizard.label": "6e49a5c6fd96",+ "spaces.wizard.resources_label": "e89b30aa1dc3",+ "spaces.wizard.steps_label": "1de3df70ddf4",+ "spaces.wizard.summary_label": "8e76a94ac832",+ "teleport.app_picker.add_files": "609914f346b0",+ "teleport.app_picker.also_send_label": "f9bcaac31b89",+ "teleport.app_picker.bytes_leave": "0edda55e4df2",+ "teleport.app_picker.confirm": "e68b3b94586d",+ "teleport.app_picker.consent_title": "2fcdc027ad5c",+ "teleport.app_picker.done_imported": "8f5c442e5e05",+ "teleport.app_picker.done_installed": "7bc75a55e95b",+ "teleport.app_picker.done_opened": "5acb680a03d8",+ "teleport.app_picker.done_sent": "2b285a8dd985",+ "teleport.app_picker.done_title": "d53306cbde46",+ "teleport.app_picker.done_title_fallback": "d494f204e8e6",+ "teleport.app_picker.error_title": "0beaee4550cc",+ "teleport.app_picker.error_title_named": "408c7c79c3de",+ "teleport.app_picker.event_line": "f91a979b5445",+ "teleport.app_picker.keyvault_hint": "9e9433bb7f37",+ "teleport.app_picker.loading": "550bfaa84685",+ "teleport.app_picker.nothing_leaves": "a3126fb3379e",+ "teleport.app_picker.preparing": "c83b3f2f7fd4",+ "teleport.app_picker.preparing_fallback": "95280bc3320c",+ "teleport.app_picker.remove_file": "c3812fc4acb8",+ "teleport.app_picker.review": "aff0766a5290",+ "teleport.app_picker.running_title": "a742c631fbff",+ "teleport.app_picker.save_to_keyvault": "e3a6b780cf7f",+ "teleport.app_picker.search_label": "a10a36fa1098",+ "teleport.app_picker.search_placeholder": "a10a36fa1098",+ "teleport.app_picker.secret_flag": "7e32a729b122",+ "teleport.app_picker.send_secrets": "48427f9b8f82",+ "teleport.app_picker.send_unencrypted": "1f2ff552779d",+ "teleport.app_picker.starting": "bbe5fc3b9ef3",+ "teleport.app_picker.what_moves_label": "2f00672ec761",+ "teleport.drop_zone.label": "4535b8935db0",+ "teleport.picker.open_failed": "e19338bb069a",+ "teleport.picker.preparing": "5d1fa38bcf0d",+ "teleport.picker.search": "49c266baaaa7",+ "teleport.picker.tabs_label": "e68b3b94586d",+ "teleport.sheet.label": "17f4ac2d00ec"+ },+ "ja": {+ "agents.routine.day": "8f2364e11b8b",+ "agents.routine.minutes": "4f846a84e7fc",+ "agents.routine.prompt": "5c39123805ff",+ "agents.routine.schedule": "f4830a1dae29",+ "agents.routine.time": "33b93476cf59",+ "agents.routine.title": "7e8cd2056da7",+ "common.action.back": "76900f1bfd16",+ "common.action.cancel": "19766ed6ccb2",+ "common.action.close": "7d9eb7acb13e",+ "common.action.dismiss": "48845bff334a",+ "common.action.done": "11a6767d5674",+ "common.action.reconnect": "bf8a9eab9e7e",+ "common.action.retry": "942087cc2d41",+ "common.app_name": "8d8f3a906275",+ "common.status.connecting": "72021eb70e91",+ "devices.approve.passphrase_label": "2f9469b9939d",+ "devices.banner.label": "158b46b34c60",+ "devices.enroll.code_label": "1b774f3cfe6a",+ "devices.recent.not_yours_label": "0bc370cca274",+ "devices.section.label": "4ba5121d4d1b",+ "devices.section.title": "4ba5121d4d1b",+ "errors.settings.sign_in_start_failed": "607df02d4dc2",+ "errors.spaces.create_failed": "90a7bbca694a",+ "errors.spaces.load_failed": "48f794c6626f",+ "errors.spaces.refresh_failed": "bc9e18ba6912",+ "errors.viewer.agent_open_failed": "cf193e0cf4dc",+ "errors.viewer.stop_hotspot_failed": "aff28d6055ac",+ "errors.viewer.stream_unreachable": "a7bcccbabec5",+ "installer.agents.detected_label": "4b16bc9f2fe8",+ "installer.agents.results_label": "2c3e18ce88e8",+ "installer.flow.label": "228f11be7459",+ "installer.flow.steps_label": "1eba90226b10",+ "installer.prompts.copied": "8d525e5f158b",+ "installer.prompts.label": "a592aec4fd49",+ "onboarding.mode.change_later": "cae75f781863",+ "settings.accessibility.enable_window_drag": "5460d093a199",+ "settings.cloud.checks_label": "de07d0720955",+ "settings.cloud.clouds_label": "e45347b019f0",+ "settings.cloud.sign_in_found": "0a51af132f6e",+ "settings.cloud.touches_label": "baf0b2fddc25",+ "settings.language.label": "a4fe65264ef7",+ "settings.language.system_default": "b0459211f9f7",+ "settings.this_machine.sharing_label": "bbedc70e985f",+ "sharing.sheet.role_label": "14736a2eb9f4",+ "sharing.sheet.shared_with_label": "8f0085638354",+ "spaces.agents.list_label": "6abfe7bce327",+ "spaces.ambient.teleport": "a63cee2f0b03",+ "spaces.brand.cua_spaces": "8d8f3a906275",+ "spaces.create.creating": "d11891d7f38d",+ "spaces.detail.preview_alt": "d1502f59eed7",+ "spaces.facts.label": "45989de49fb7",+ "spaces.main.agents_label": "279b44d2ab4b",+ "spaces.main.nav_label": "f7efa7bc1fc5",+ "spaces.main.new_hint": "0841818d307c",+ "spaces.main.os_tile_label": "99afed6f542b",+ "spaces.main.search_label": "283586dda9d5",+ "spaces.main.settings_hint": "0841818d307c",+ "spaces.main.sidebar_label": "077a293d1263",+ "spaces.switcher.create_new": "62457776f8b3",+ "spaces.switcher.drop_hint": "d76e677e7c3c",+ "spaces.switcher.drop_hint_app": "a264d83d8e1e",+ "spaces.switcher.label": "f51f069a69d6",+ "spaces.switcher.list_label": "82bb2a7ac311",+ "spaces.switcher.list_view_hint": "04423d8b7138",+ "spaces.switcher.list_view_label": "5d8c3e1b635e",+ "spaces.switcher.new_drop_label": "a6d4a8f31b3b",+ "spaces.switcher.new_label": "bdc4786ca037",+ "spaces.switcher.new_tile": "18fdd549b2ed",+ "spaces.switcher.no_match": "586b36b37bfd",+ "spaces.switcher.search_hint": "283586dda9d5",+ "spaces.switcher.search_label": "25cac10caf01",+ "spaces.switcher.search_placeholder": "49c266baaaa7",+ "spaces.switcher.settings": "74a883a037bc",+ "spaces.switcher.stop_hotspot": "7c11302f5f8a",+ "spaces.switcher.stop_hotspot_hint": "3f1ad8b66358",+ "spaces.thumbnail.deleting": "43b5894c3e4e",+ "spaces.tile.delete_hint": "e45f1e1195dd",+ "spaces.tile.delete_label": "3cf8146e529f",+ "spaces.tile.hotspot_badge": "16ae61116c59",+ "spaces.tile.pin_hint": "76763e6d446e",+ "spaces.tile.pin_label": "89b6466bac11",+ "spaces.tile.power_label": "49fd66582345",+ "spaces.tile.teleport_hint": "30aaddfc0af8",+ "spaces.tile.teleport_label": "17f4ac2d00ec",+ "spaces.viewer.agent_installing": "b3762c16ae4b",+ "spaces.viewer.agent_opened": "1be80752f3f7",+ "spaces.viewer.agents_menu_label": "707c65c28bca",+ "spaces.viewer.connecting_to": "7fb114ef635a",+ "spaces.viewer.controls_label": "3fe4c71762c6",+ "spaces.viewer.launch_agent": "6af26e6d0986",+ "spaces.viewer.launch_agent_hint": "88e8e3be5bf4",+ "spaces.viewer.stop_hotspot": "7c11302f5f8a",+ "spaces.viewer.stop_hotspot_hint": "ce54237d0e5c",+ "spaces.viewer.stream_ended": "9e78d065d014",+ "spaces.viewer.teleport": "5e19c1450e47",+ "spaces.viewer.teleport_hint": "099179f7d5f5",+ "spaces.viewer.transferring": "0abcaa15639d",+ "spaces.window_stream.close_window": "8b9de9c0c0a0",+ "spaces.window_stream.no_windows": "0aa22974ca89",+ "spaces.window_stream.waiting_for": "da722f83a95a",+ "spaces.windows.stream_label": "1eec3071dd26",+ "spaces.wizard.connect_by_address": "c2bf1a2da6ce",+ "spaces.wizard.cost_label": "204a5eb2cd28",+ "spaces.wizard.label": "6e49a5c6fd96",+ "spaces.wizard.resources_label": "e89b30aa1dc3",+ "spaces.wizard.steps_label": "1de3df70ddf4",+ "spaces.wizard.summary_label": "8e76a94ac832",+ "teleport.app_picker.add_files": "609914f346b0",+ "teleport.app_picker.also_send_label": "f9bcaac31b89",+ "teleport.app_picker.bytes_leave": "0edda55e4df2",+ "teleport.app_picker.confirm": "e68b3b94586d",+ "teleport.app_picker.consent_title": "2fcdc027ad5c",+ "teleport.app_picker.done_imported": "8f5c442e5e05",+ "teleport.app_picker.done_installed": "7bc75a55e95b",+ "teleport.app_picker.done_opened": "5acb680a03d8",+ "teleport.app_picker.done_sent": "2b285a8dd985",+ "teleport.app_picker.done_title": "d53306cbde46",+ "teleport.app_picker.done_title_fallback": "d494f204e8e6",+ "teleport.app_picker.error_title": "0beaee4550cc",+ "teleport.app_picker.error_title_named": "408c7c79c3de",+ "teleport.app_picker.event_line": "f91a979b5445",+ "teleport.app_picker.keyvault_hint": "9e9433bb7f37",+ "teleport.app_picker.loading": "550bfaa84685",+ "teleport.app_picker.nothing_leaves": "a3126fb3379e",+ "teleport.app_picker.preparing": "c83b3f2f7fd4",+ "teleport.app_picker.preparing_fallback": "95280bc3320c",+ "teleport.app_picker.remove_file": "c3812fc4acb8",+ "teleport.app_picker.review": "aff0766a5290",+ "teleport.app_picker.running_title": "a742c631fbff",+ "teleport.app_picker.save_to_keyvault": "e3a6b780cf7f",+ "teleport.app_picker.search_label": "a10a36fa1098",+ "teleport.app_picker.search_placeholder": "a10a36fa1098",+ "teleport.app_picker.secret_flag": "7e32a729b122",+ "teleport.app_picker.send_secrets": "48427f9b8f82",+ "teleport.app_picker.send_unencrypted": "1f2ff552779d",+ "teleport.app_picker.starting": "bbe5fc3b9ef3",+ "teleport.app_picker.what_moves_label": "2f00672ec761",+ "teleport.drop_zone.label": "4535b8935db0",+ "teleport.picker.open_failed": "e19338bb069a",+ "teleport.picker.preparing": "5d1fa38bcf0d",+ "teleport.picker.search": "49c266baaaa7",+ "teleport.picker.tabs_label": "e68b3b94586d",+ "teleport.sheet.label": "17f4ac2d00ec"+ },+ "ko": {+ "agents.routine.day": "8f2364e11b8b",+ "agents.routine.minutes": "4f846a84e7fc",+ "agents.routine.prompt": "5c39123805ff",+ "agents.routine.schedule": "f4830a1dae29",+ "agents.routine.time": "33b93476cf59",+ "agents.routine.title": "7e8cd2056da7",+ "common.action.back": "76900f1bfd16",+ "common.action.cancel": "19766ed6ccb2",+ "common.action.close": "7d9eb7acb13e",+ "common.action.dismiss": "48845bff334a",+ "common.action.done": "11a6767d5674",+ "common.action.reconnect": "bf8a9eab9e7e",+ "common.action.retry": "942087cc2d41",+ "common.app_name": "8d8f3a906275",+ "common.status.connecting": "72021eb70e91",+ "devices.approve.passphrase_label": "2f9469b9939d",+ "devices.banner.label": "158b46b34c60",+ "devices.enroll.code_label": "1b774f3cfe6a",+ "devices.recent.not_yours_label": "0bc370cca274",+ "devices.section.label": "4ba5121d4d1b",+ "devices.section.title": "4ba5121d4d1b",+ "errors.settings.sign_in_start_failed": "607df02d4dc2",+ "errors.spaces.create_failed": "90a7bbca694a",+ "errors.spaces.load_failed": "48f794c6626f",+ "errors.spaces.refresh_failed": "bc9e18ba6912",+ "errors.viewer.agent_open_failed": "cf193e0cf4dc",+ "errors.viewer.stop_hotspot_failed": "aff28d6055ac",+ "errors.viewer.stream_unreachable": "a7bcccbabec5",+ "installer.agents.detected_label": "4b16bc9f2fe8",+ "installer.agents.results_label": "2c3e18ce88e8",+ "installer.flow.label": "228f11be7459",+ "installer.flow.steps_label": "1eba90226b10",+ "installer.prompts.copied": "8d525e5f158b",+ "installer.prompts.label": "a592aec4fd49",+ "onboarding.mode.change_later": "cae75f781863",+ "settings.accessibility.enable_window_drag": "5460d093a199",+ "settings.cloud.checks_label": "de07d0720955",+ "settings.cloud.clouds_label": "e45347b019f0",+ "settings.cloud.sign_in_found": "0a51af132f6e",+ "settings.cloud.touches_label": "baf0b2fddc25",+ "settings.language.label": "a4fe65264ef7",+ "settings.language.system_default": "b0459211f9f7",+ "settings.this_machine.sharing_label": "bbedc70e985f",+ "sharing.sheet.role_label": "14736a2eb9f4",+ "sharing.sheet.shared_with_label": "8f0085638354",+ "spaces.agents.list_label": "6abfe7bce327",+ "spaces.ambient.teleport": "a63cee2f0b03",+ "spaces.brand.cua_spaces": "8d8f3a906275",+ "spaces.create.creating": "d11891d7f38d",+ "spaces.detail.preview_alt": "d1502f59eed7",+ "spaces.facts.label": "45989de49fb7",+ "spaces.main.agents_label": "279b44d2ab4b",+ "spaces.main.nav_label": "f7efa7bc1fc5",+ "spaces.main.new_hint": "0841818d307c",+ "spaces.main.os_tile_label": "99afed6f542b",+ "spaces.main.search_label": "283586dda9d5",+ "spaces.main.settings_hint": "0841818d307c",+ "spaces.main.sidebar_label": "077a293d1263",+ "spaces.switcher.create_new": "62457776f8b3",+ "spaces.switcher.drop_hint": "d76e677e7c3c",+ "spaces.switcher.drop_hint_app": "a264d83d8e1e",+ "spaces.switcher.label": "f51f069a69d6",+ "spaces.switcher.list_label": "82bb2a7ac311",+ "spaces.switcher.list_view_hint": "04423d8b7138",+ "spaces.switcher.list_view_label": "5d8c3e1b635e",+ "spaces.switcher.new_drop_label": "a6d4a8f31b3b",+ "spaces.switcher.new_label": "bdc4786ca037",+ "spaces.switcher.new_tile": "18fdd549b2ed",+ "spaces.switcher.no_match": "586b36b37bfd",+ "spaces.switcher.search_hint": "283586dda9d5",+ "spaces.switcher.search_label": "25cac10caf01",+ "spaces.switcher.search_placeholder": "49c266baaaa7",+ "spaces.switcher.settings": "74a883a037bc",+ "spaces.switcher.stop_hotspot": "7c11302f5f8a",+ "spaces.switcher.stop_hotspot_hint": "3f1ad8b66358",+ "spaces.thumbnail.deleting": "43b5894c3e4e",+ "spaces.tile.delete_hint": "e45f1e1195dd",+ "spaces.tile.delete_label": "3cf8146e529f",+ "spaces.tile.hotspot_badge": "16ae61116c59",+ "spaces.tile.pin_hint": "76763e6d446e",+ "spaces.tile.pin_label": "89b6466bac11",+ "spaces.tile.power_label": "49fd66582345",+ "spaces.tile.teleport_hint": "30aaddfc0af8",+ "spaces.tile.teleport_label": "17f4ac2d00ec",+ "spaces.viewer.agent_installing": "b3762c16ae4b",+ "spaces.viewer.agent_opened": "1be80752f3f7",+ "spaces.viewer.agents_menu_label": "707c65c28bca",+ "spaces.viewer.connecting_to": "7fb114ef635a",+ "spaces.viewer.controls_label": "3fe4c71762c6",+ "spaces.viewer.launch_agent": "6af26e6d0986",+ "spaces.viewer.launch_agent_hint": "88e8e3be5bf4",+ "spaces.viewer.stop_hotspot": "7c11302f5f8a",+ "spaces.viewer.stop_hotspot_hint": "ce54237d0e5c",+ "spaces.viewer.stream_ended": "9e78d065d014",+ "spaces.viewer.teleport": "5e19c1450e47",+ "spaces.viewer.teleport_hint": "099179f7d5f5",+ "spaces.viewer.transferring": "0abcaa15639d",+ "spaces.window_stream.close_window": "8b9de9c0c0a0",+ "spaces.window_stream.no_windows": "0aa22974ca89",+ "spaces.window_stream.waiting_for": "da722f83a95a",+ "spaces.windows.stream_label": "1eec3071dd26",+ "spaces.wizard.connect_by_address": "c2bf1a2da6ce",+ "spaces.wizard.cost_label": "204a5eb2cd28",+ "spaces.wizard.label": "6e49a5c6fd96",+ "spaces.wizard.resources_label": "e89b30aa1dc3",+ "spaces.wizard.steps_label": "1de3df70ddf4",+ "spaces.wizard.summary_label": "8e76a94ac832",+ "teleport.app_picker.add_files": "609914f346b0",+ "teleport.app_picker.also_send_label": "f9bcaac31b89",+ "teleport.app_picker.bytes_leave": "0edda55e4df2",+ "teleport.app_picker.confirm": "e68b3b94586d",+ "teleport.app_picker.consent_title": "2fcdc027ad5c",+ "teleport.app_picker.done_imported": "8f5c442e5e05",+ "teleport.app_picker.done_installed": "7bc75a55e95b",+ "teleport.app_picker.done_opened": "5acb680a03d8",+ "teleport.app_picker.done_sent": "2b285a8dd985",+ "teleport.app_picker.done_title": "d53306cbde46",+ "teleport.app_picker.done_title_fallback": "d494f204e8e6",+ "teleport.app_picker.error_title": "0beaee4550cc",+ "teleport.app_picker.error_title_named": "408c7c79c3de",+ "teleport.app_picker.event_line": "f91a979b5445",+ "teleport.app_picker.keyvault_hint": "9e9433bb7f37",+ "teleport.app_picker.loading": "550bfaa84685",+ "teleport.app_picker.nothing_leaves": "a3126fb3379e",+ "teleport.app_picker.preparing": "c83b3f2f7fd4",+ "teleport.app_picker.preparing_fallback": "95280bc3320c",+ "teleport.app_picker.remove_file": "c3812fc4acb8",+ "teleport.app_picker.review": "aff0766a5290",+ "teleport.app_picker.running_title": "a742c631fbff",+ "teleport.app_picker.save_to_keyvault": "e3a6b780cf7f",+ "teleport.app_picker.search_label": "a10a36fa1098",+ "teleport.app_picker.search_placeholder": "a10a36fa1098",+ "teleport.app_picker.secret_flag": "7e32a729b122",+ "teleport.app_picker.send_secrets": "48427f9b8f82",+ "teleport.app_picker.send_unencrypted": "1f2ff552779d",+ "teleport.app_picker.starting": "bbe5fc3b9ef3",+ "teleport.app_picker.what_moves_label": "2f00672ec761",+ "teleport.drop_zone.label": "4535b8935db0",+ "teleport.picker.open_failed": "e19338bb069a",+ "teleport.picker.preparing": "5d1fa38bcf0d",+ "teleport.picker.search": "49c266baaaa7",+ "teleport.picker.tabs_label": "e68b3b94586d",+ "teleport.sheet.label": "17f4ac2d00ec"+ },+ "pt-BR": {+ "agents.routine.day": "8f2364e11b8b",+ "agents.routine.minutes": "4f846a84e7fc",+ "agents.routine.prompt": "5c39123805ff",+ "agents.routine.schedule": "f4830a1dae29",+ "agents.routine.time": "33b93476cf59",+ "agents.routine.title": "7e8cd2056da7",+ "common.action.back": "76900f1bfd16",+ "common.action.cancel": "19766ed6ccb2",+ "common.action.close": "7d9eb7acb13e",+ "common.action.dismiss": "48845bff334a",+ "common.action.done": "11a6767d5674",+ "common.action.reconnect": "bf8a9eab9e7e",+ "common.action.retry": "942087cc2d41",+ "common.app_name": "8d8f3a906275",+ "common.status.connecting": "72021eb70e91",+ "devices.approve.passphrase_label": "2f9469b9939d",+ "devices.banner.label": "158b46b34c60",+ "devices.enroll.code_label": "1b774f3cfe6a",+ "devices.recent.not_yours_label": "0bc370cca274",+ "devices.section.label": "4ba5121d4d1b",+ "devices.section.title": "4ba5121d4d1b",+ "errors.settings.sign_in_start_failed": "607df02d4dc2",+ "errors.spaces.create_failed": "90a7bbca694a",+ "errors.spaces.load_failed": "48f794c6626f",+ "errors.spaces.refresh_failed": "bc9e18ba6912",+ "errors.viewer.agent_open_failed": "cf193e0cf4dc",+ "errors.viewer.stop_hotspot_failed": "aff28d6055ac",+ "errors.viewer.stream_unreachable": "a7bcccbabec5",+ "installer.agents.detected_label": "4b16bc9f2fe8",+ "installer.agents.results_label": "2c3e18ce88e8",+ "installer.flow.label": "228f11be7459",+ "installer.flow.steps_label": "1eba90226b10",+ "installer.prompts.copied": "8d525e5f158b",+ "installer.prompts.label": "a592aec4fd49",+ "onboarding.mode.change_later": "cae75f781863",+ "settings.accessibility.enable_window_drag": "5460d093a199",+ "settings.cloud.checks_label": "de07d0720955",+ "settings.cloud.clouds_label": "e45347b019f0",+ "settings.cloud.sign_in_found": "0a51af132f6e",+ "settings.cloud.touches_label": "baf0b2fddc25",+ "settings.language.label": "a4fe65264ef7",+ "settings.language.system_default": "b0459211f9f7",+ "settings.this_machine.sharing_label": "bbedc70e985f",+ "sharing.sheet.role_label": "14736a2eb9f4",+ "sharing.sheet.shared_with_label": "8f0085638354",+ "spaces.agents.list_label": "6abfe7bce327",+ "spaces.ambient.teleport": "a63cee2f0b03",+ "spaces.brand.cua_spaces": "8d8f3a906275",+ "spaces.create.creating": "d11891d7f38d",+ "spaces.detail.preview_alt": "d1502f59eed7",+ "spaces.facts.label": "45989de49fb7",+ "spaces.main.agents_label": "279b44d2ab4b",+ "spaces.main.nav_label": "f7efa7bc1fc5",+ "spaces.main.new_hint": "0841818d307c",+ "spaces.main.os_tile_label": "99afed6f542b",+ "spaces.main.search_label": "283586dda9d5",+ "spaces.main.settings_hint": "0841818d307c",+ "spaces.main.sidebar_label": "077a293d1263",+ "spaces.switcher.create_new": "62457776f8b3",+ "spaces.switcher.drop_hint": "d76e677e7c3c",+ "spaces.switcher.drop_hint_app": "a264d83d8e1e",+ "spaces.switcher.label": "f51f069a69d6",+ "spaces.switcher.list_label": "82bb2a7ac311",+ "spaces.switcher.list_view_hint": "04423d8b7138",+ "spaces.switcher.list_view_label": "5d8c3e1b635e",+ "spaces.switcher.new_drop_label": "a6d4a8f31b3b",+ "spaces.switcher.new_label": "bdc4786ca037",+ "spaces.switcher.new_tile": "18fdd549b2ed",+ "spaces.switcher.no_match": "586b36b37bfd",+ "spaces.switcher.search_hint": "283586dda9d5",+ "spaces.switcher.search_label": "25cac10caf01",+ "spaces.switcher.search_placeholder": "49c266baaaa7",+ "spaces.switcher.settings": "74a883a037bc",+ "spaces.switcher.stop_hotspot": "7c11302f5f8a",+ "spaces.switcher.stop_hotspot_hint": "3f1ad8b66358",+ "spaces.thumbnail.deleting": "43b5894c3e4e",+ "spaces.tile.delete_hint": "e45f1e1195dd",+ "spaces.tile.delete_label": "3cf8146e529f",+ "spaces.tile.hotspot_badge": "16ae61116c59",+ "spaces.tile.pin_hint": "76763e6d446e",+ "spaces.tile.pin_label": "89b6466bac11",+ "spaces.tile.power_label": "49fd66582345",+ "spaces.tile.teleport_hint": "30aaddfc0af8",+ "spaces.tile.teleport_label": "17f4ac2d00ec",+ "spaces.viewer.agent_installing": "b3762c16ae4b",+ "spaces.viewer.agent_opened": "1be80752f3f7",+ "spaces.viewer.agents_menu_label": "707c65c28bca",+ "spaces.viewer.connecting_to": "7fb114ef635a",+ "spaces.viewer.controls_label": "3fe4c71762c6",+ "spaces.viewer.launch_agent": "6af26e6d0986",+ "spaces.viewer.launch_agent_hint": "88e8e3be5bf4",+ "spaces.viewer.stop_hotspot": "7c11302f5f8a",+ "spaces.viewer.stop_hotspot_hint": "ce54237d0e5c",+ "spaces.viewer.stream_ended": "9e78d065d014",+ "spaces.viewer.teleport": "5e19c1450e47",+ "spaces.viewer.teleport_hint": "099179f7d5f5",+ "spaces.viewer.transferring": "0abcaa15639d",+ "spaces.window_stream.close_window": "8b9de9c0c0a0",+ "spaces.window_stream.no_windows": "0aa22974ca89",+ "spaces.window_stream.waiting_for": "da722f83a95a",+ "spaces.windows.stream_label": "1eec3071dd26",+ "spaces.wizard.connect_by_address": "c2bf1a2da6ce",+ "spaces.wizard.cost_label": "204a5eb2cd28",+ "spaces.wizard.label": "6e49a5c6fd96",+ "spaces.wizard.resources_label": "e89b30aa1dc3",+ "spaces.wizard.steps_label": "1de3df70ddf4",+ "spaces.wizard.summary_label": "8e76a94ac832",+ "teleport.app_picker.add_files": "609914f346b0",+ "teleport.app_picker.also_send_label": "f9bcaac31b89",+ "teleport.app_picker.bytes_leave": "0edda55e4df2",+ "teleport.app_picker.confirm": "e68b3b94586d",+ "teleport.app_picker.consent_title": "2fcdc027ad5c",+ "teleport.app_picker.done_imported": "8f5c442e5e05",+ "teleport.app_picker.done_installed": "7bc75a55e95b",+ "teleport.app_picker.done_opened": "5acb680a03d8",+ "teleport.app_picker.done_sent": "2b285a8dd985",+ "teleport.app_picker.done_title": "d53306cbde46",+ "teleport.app_picker.done_title_fallback": "d494f204e8e6",+ "teleport.app_picker.error_title": "0beaee4550cc",+ "teleport.app_picker.error_title_named": "408c7c79c3de",+ "teleport.app_picker.event_line": "f91a979b5445",+ "teleport.app_picker.keyvault_hint": "9e9433bb7f37",+ "teleport.app_picker.loading": "550bfaa84685",+ "teleport.app_picker.nothing_leaves": "a3126fb3379e",+ "teleport.app_picker.preparing": "c83b3f2f7fd4",+ "teleport.app_picker.preparing_fallback": "95280bc3320c",+ "teleport.app_picker.remove_file": "c3812fc4acb8",+ "teleport.app_picker.review": "aff0766a5290",+ "teleport.app_picker.running_title": "a742c631fbff",+ "teleport.app_picker.save_to_keyvault": "e3a6b780cf7f",+ "teleport.app_picker.search_label": "a10a36fa1098",+ "teleport.app_picker.search_placeholder": "a10a36fa1098",+ "teleport.app_picker.secret_flag": "7e32a729b122",+ "teleport.app_picker.send_secrets": "48427f9b8f82",+ "teleport.app_picker.send_unencrypted": "1f2ff552779d",+ "teleport.app_picker.starting": "bbe5fc3b9ef3",+ "teleport.app_picker.what_moves_label": "2f00672ec761",+ "teleport.drop_zone.label": "4535b8935db0",+ "teleport.picker.open_failed": "e19338bb069a",+ "teleport.picker.preparing": "5d1fa38bcf0d",+ "teleport.picker.search": "49c266baaaa7",+ "teleport.picker.tabs_label": "e68b3b94586d",+ "teleport.sheet.label": "17f4ac2d00ec"+ },+ "zh-Hans": {+ "agents.routine.day": "8f2364e11b8b",+ "agents.routine.minutes": "4f846a84e7fc",+ "agents.routine.prompt": "5c39123805ff",+ "agents.routine.schedule": "f4830a1dae29",+ "agents.routine.time": "33b93476cf59",+ "agents.routine.title": "7e8cd2056da7",+ "common.action.back": "76900f1bfd16",+ "common.action.cancel": "19766ed6ccb2",+ "common.action.close": "7d9eb7acb13e",+ "common.action.dismiss": "48845bff334a",+ "common.action.done": "11a6767d5674",+ "common.action.reconnect": "bf8a9eab9e7e",+ "common.action.retry": "942087cc2d41",+ "common.app_name": "8d8f3a906275",+ "common.status.connecting": "72021eb70e91",+ "devices.approve.passphrase_label": "2f9469b9939d",+ "devices.banner.label": "158b46b34c60",+ "devices.enroll.code_label": "1b774f3cfe6a",+ "devices.recent.not_yours_label": "0bc370cca274",+ "devices.section.label": "4ba5121d4d1b",+ "devices.section.title": "4ba5121d4d1b",+ "errors.settings.sign_in_start_failed": "607df02d4dc2",+ "errors.spaces.create_failed": "90a7bbca694a",+ "errors.spaces.load_failed": "48f794c6626f",+ "errors.spaces.refresh_failed": "bc9e18ba6912",+ "errors.viewer.agent_open_failed": "cf193e0cf4dc",+ "errors.viewer.stop_hotspot_failed": "aff28d6055ac",+ "errors.viewer.stream_unreachable": "a7bcccbabec5",+ "installer.agents.detected_label": "4b16bc9f2fe8",+ "installer.agents.results_label": "2c3e18ce88e8",+ "installer.flow.label": "228f11be7459",+ "installer.flow.steps_label": "1eba90226b10",+ "installer.prompts.copied": "8d525e5f158b",+ "installer.prompts.label": "a592aec4fd49",+ "onboarding.mode.change_later": "cae75f781863",+ "settings.accessibility.enable_window_drag": "5460d093a199",+ "settings.cloud.checks_label": "de07d0720955",+ "settings.cloud.clouds_label": "e45347b019f0",+ "settings.cloud.sign_in_found": "0a51af132f6e",+ "settings.cloud.touches_label": "baf0b2fddc25",+ "settings.language.label": "a4fe65264ef7",+ "settings.language.system_default": "b0459211f9f7",+ "settings.this_machine.sharing_label": "bbedc70e985f",+ "sharing.sheet.role_label": "14736a2eb9f4",+ "sharing.sheet.shared_with_label": "8f0085638354",+ "spaces.agents.list_label": "6abfe7bce327",+ "spaces.ambient.teleport": "a63cee2f0b03",+ "spaces.brand.cua_spaces": "8d8f3a906275",+ "spaces.create.creating": "d11891d7f38d",+ "spaces.detail.preview_alt": "d1502f59eed7",+ "spaces.facts.label": "45989de49fb7",+ "spaces.main.agents_label": "279b44d2ab4b",+ "spaces.main.nav_label": "f7efa7bc1fc5",+ "spaces.main.new_hint": "0841818d307c",+ "spaces.main.os_tile_label": "99afed6f542b",+ "spaces.main.search_label": "283586dda9d5",+ "spaces.main.settings_hint": "0841818d307c",+ "spaces.main.sidebar_label": "077a293d1263",+ "spaces.switcher.create_new": "62457776f8b3",+ "spaces.switcher.drop_hint": "d76e677e7c3c",+ "spaces.switcher.drop_hint_app": "a264d83d8e1e",+ "spaces.switcher.label": "f51f069a69d6",+ "spaces.switcher.list_label": "82bb2a7ac311",+ "spaces.switcher.list_view_hint": "04423d8b7138",+ "spaces.switcher.list_view_label": "5d8c3e1b635e",+ "spaces.switcher.new_drop_label": "a6d4a8f31b3b",+ "spaces.switcher.new_label": "bdc4786ca037",+ "spaces.switcher.new_tile": "18fdd549b2ed",+ "spaces.switcher.no_match": "586b36b37bfd",+ "spaces.switcher.search_hint": "283586dda9d5",+ "spaces.switcher.search_label": "25cac10caf01",+ "spaces.switcher.search_placeholder": "49c266baaaa7",+ "spaces.switcher.settings": "74a883a037bc",+ "spaces.switcher.stop_hotspot": "7c11302f5f8a",+ "spaces.switcher.stop_hotspot_hint": "3f1ad8b66358",+ "spaces.thumbnail.deleting": "43b5894c3e4e",+ "spaces.tile.delete_hint": "e45f1e1195dd",+ "spaces.tile.delete_label": "3cf8146e529f",+ "spaces.tile.hotspot_badge": "16ae61116c59",+ "spaces.tile.pin_hint": "76763e6d446e",+ "spaces.tile.pin_label": "89b6466bac11",+ "spaces.tile.power_label": "49fd66582345",+ "spaces.tile.teleport_hint": "30aaddfc0af8",+ "spaces.tile.teleport_label": "17f4ac2d00ec",+ "spaces.viewer.agent_installing": "b3762c16ae4b",+ "spaces.viewer.agent_opened": "1be80752f3f7",+ "spaces.viewer.agents_menu_label": "707c65c28bca",+ "spaces.viewer.connecting_to": "7fb114ef635a",+ "spaces.viewer.controls_label": "3fe4c71762c6",+ "spaces.viewer.launch_agent": "6af26e6d0986",+ "spaces.viewer.launch_agent_hint": "88e8e3be5bf4",+ "spaces.viewer.stop_hotspot": "7c11302f5f8a",+ "spaces.viewer.stop_hotspot_hint": "ce54237d0e5c",+ "spaces.viewer.stream_ended": "9e78d065d014",+ "spaces.viewer.teleport": "5e19c1450e47",+ "spaces.viewer.teleport_hint": "099179f7d5f5",+ "spaces.viewer.transferring": "0abcaa15639d",+ "spaces.window_stream.close_window": "8b9de9c0c0a0",+ "spaces.window_stream.no_windows": "0aa22974ca89",+ "spaces.window_stream.waiting_for": "da722f83a95a",+ "spaces.windows.stream_label": "1eec3071dd26",+ "spaces.wizard.connect_by_address": "c2bf1a2da6ce",+ "spaces.wizard.cost_label": "204a5eb2cd28",+ "spaces.wizard.label": "6e49a5c6fd96",+ "spaces.wizard.resources_label": "e89b30aa1dc3",+ "spaces.wizard.steps_label": "1de3df70ddf4",+ "spaces.wizard.summary_label": "8e76a94ac832",+ "teleport.app_picker.add_files": "609914f346b0",+ "teleport.app_picker.also_send_label": "f9bcaac31b89",+ "teleport.app_picker.bytes_leave": "0edda55e4df2",+ "teleport.app_picker.confirm": "e68b3b94586d",+ "teleport.app_picker.consent_title": "2fcdc027ad5c",+ "teleport.app_picker.done_imported": "8f5c442e5e05",+ "teleport.app_picker.done_installed": "7bc75a55e95b",+ "teleport.app_picker.done_opened": "5acb680a03d8",+ "teleport.app_picker.done_sent": "2b285a8dd985",+ "teleport.app_picker.done_title": "d53306cbde46",+ "teleport.app_picker.done_title_fallback": "d494f204e8e6",+ "teleport.app_picker.error_title": "0beaee4550cc",+ "teleport.app_picker.error_title_named": "408c7c79c3de",+ "teleport.app_picker.event_line": "f91a979b5445",+ "teleport.app_picker.keyvault_hint": "9e9433bb7f37",+ "teleport.app_picker.loading": "550bfaa84685",+ "teleport.app_picker.nothing_leaves": "a3126fb3379e",+ "teleport.app_picker.preparing": "c83b3f2f7fd4",+ "teleport.app_picker.preparing_fallback": "95280bc3320c",+ "teleport.app_picker.remove_file": "c3812fc4acb8",+ "teleport.app_picker.review": "aff0766a5290",+ "teleport.app_picker.running_title": "a742c631fbff",+ "teleport.app_picker.save_to_keyvault": "e3a6b780cf7f",+ "teleport.app_picker.search_label": "a10a36fa1098",+ "teleport.app_picker.search_placeholder": "a10a36fa1098",+ "teleport.app_picker.secret_flag": "7e32a729b122",+ "teleport.app_picker.send_secrets": "48427f9b8f82",+ "teleport.app_picker.send_unencrypted": "1f2ff552779d",+ "teleport.app_picker.starting": "bbe5fc3b9ef3",+ "teleport.app_picker.what_moves_label": "2f00672ec761",+ "teleport.drop_zone.label": "4535b8935db0",+ "teleport.picker.open_failed": "e19338bb069a",+ "teleport.picker.preparing": "5d1fa38bcf0d",+ "teleport.picker.search": "49c266baaaa7",+ "teleport.picker.tabs_label": "e68b3b94586d",+ "teleport.sheet.label": "17f4ac2d00ec"+ }+}diff --git a/apps/cua-spaces/src/i18n/index.test.ts b/apps/cua-spaces/src/i18n/index.test.tsindex c41c6ba451..8a8c7dac95 100644--- a/apps/cua-spaces/src/i18n/index.test.ts+++ b/apps/cua-spaces/src/i18n/index.test.ts@@ -35,6 +35,6 @@ describe("i18n", () => {expect(detectLocale("es", ["ja"], all)).toBe("es");expect(detectLocale(null, ["fr", "ja-JP"], all)).toBe("ja");expect(detectLocale("xx", ["fr"], all)).toBe("en");- expect(detectLocale(null, ["ja"])).toBe("en"); // phase 1: only en is bundled+ expect(detectLocale(null, ["ja"])).toBe("ja"); // every launch language is bundled});});diff --git a/apps/cua-spaces/src/i18n/index.ts b/apps/cua-spaces/src/i18n/index.tsindex a1c70f74b0..de6d27fbfb 100644--- a/apps/cua-spaces/src/i18n/index.ts+++ b/apps/cua-spaces/src/i18n/index.ts@@ -5,17 +5,6 @@ import i18next, { type TOptions } from "i18next";import ICU from "i18next-icu";import { initReactI18next, useTranslation } from "react-i18next";-import common from "./locales/en/common.json";-import onboarding from "./locales/en/onboarding.json";-import spaces from "./locales/en/spaces.json";-import sharing from "./locales/en/sharing.json";-import billing from "./locales/en/billing.json";-import settings from "./locales/en/settings.json";-import teleport from "./locales/en/teleport.json";-import agents from "./locales/en/agents.json";-import devices from "./locales/en/devices.json";-import installer from "./locales/en/installer.json";-import errors from "./locales/en/errors.json";/** One namespace per product area. Keys: `<area>.<screen>.<element>`. */export const NAMESPACES = [@@ -33,16 +22,22 @@ export const NAMESPACES = [] as const;export type Namespace = (typeof NAMESPACES)[number];-/** Languages whose resources are bundled. Phase 1 ships English only. */-export const AVAILABLE_LOCALES = ["en"] as const;+/** Languages whose resources are bundled (`locales/<lng>/<ns>.json`). */+export const AVAILABLE_LOCALES = ["en", "zh-Hans", "ko", "pt-BR", "ja", "es"] as const;+export type UiLocale = (typeof AVAILABLE_LOCALES)[number];export const FALLBACK_LOCALE = "en";/** localStorage key for the Settings language choice (absent = system default). */export const LOCALE_SETTING_KEY = "cua.settings.locale";-const resources = {- en: { common, onboarding, spaces, sharing, billing, settings, teleport, agents, devices, installer, errors },-};+// Every locale file is bundled up front (about 10 KB per language): the first+// render is already in the right language, and a language switch needs no fetch.+const files = import.meta.glob<Record<string, string>>("./locales/*/*.json", { eager: true, import: "default" });+const resources: Record<string, Record<string, Record<string, string>>> = {};+for (const [path, strings] of Object.entries(files)) {+ const [, lng, file] = /\.\/locales\/([^/]+)\/([^/]+)\.json$/.exec(path) ?? [];+ if (lng && file) (resources[lng] ??= {})[file] = strings;+}/*** Map a BCP 47 tag to one of the app's locale codes, or null when thediff --git a/apps/cua-spaces/src/i18n/locales/en/settings.json b/apps/cua-spaces/src/i18n/locales/en/settings.jsonindex d7827a4cb5..aa522d6ec3 100644--- a/apps/cua-spaces/src/i18n/locales/en/settings.json+++ b/apps/cua-spaces/src/i18n/locales/en/settings.json@@ -4,5 +4,7 @@"settings.cloud.sign_in_found": "Sign-in found","settings.cloud.touches_label": "What Cua will touch","settings.cloud.checks_label": "Checks",- "settings.accessibility.enable_window_drag": "Enable window dragging in System Settings → Privacy → Accessibility"+ "settings.accessibility.enable_window_drag": "Enable window dragging in System Settings → Privacy → Accessibility",+ "settings.language.label": "Language",+ "settings.language.system_default": "System default"}diff --git a/apps/cua-spaces/src/i18n/locales/es/agents.json b/apps/cua-spaces/src/i18n/locales/es/agents.jsonnew file mode 100644index 0000000000..fc5b8830a4--- /dev/null+++ b/apps/cua-spaces/src/i18n/locales/es/agents.json@@ -0,0 +1,8 @@+{+ "agents.routine.title": "Título",+ "agents.routine.prompt": "Instrucción",+ "agents.routine.schedule": "Programación",+ "agents.routine.minutes": "Minutos",+ "agents.routine.time": "Hora",+ "agents.routine.day": "Día"+}diff --git a/apps/cua-spaces/src/i18n/locales/es/billing.json b/apps/cua-spaces/src/i18n/locales/es/billing.jsonnew file mode 100644index 0000000000..0967ef424b--- /dev/null+++ b/apps/cua-spaces/src/i18n/locales/es/billing.json@@ -0,0 +1 @@+{}diff --git a/apps/cua-spaces/src/i18n/locales/es/common.json b/apps/cua-spaces/src/i18n/locales/es/common.jsonnew file mode 100644index 0000000000..93b1ea34a9--- /dev/null+++ b/apps/cua-spaces/src/i18n/locales/es/common.json@@ -0,0 +1,13 @@+{+ "common": {+ "app_name": "Cua Spaces"+ },+ "common.action.dismiss": "Descartar",+ "common.action.retry": "Reintentar",+ "common.action.cancel": "Cancelar",+ "common.action.close": "Cerrar",+ "common.action.reconnect": "Volver a conectar",+ "common.status.connecting": "Conectando…",+ "common.action.back": "Atrás",+ "common.action.done": "Listo"+}diff --git a/apps/cua-spaces/src/i18n/locales/es/devices.json b/apps/cua-spaces/src/i18n/locales/es/devices.jsonnew file mode 100644index 0000000000..883a2d7dbf--- /dev/null+++ b/apps/cua-spaces/src/i18n/locales/es/devices.json@@ -0,0 +1,8 @@+{+ "devices.banner.label": "Registro de dispositivos",+ "devices.section.label": "Dispositivos",+ "devices.section.title": "Dispositivos",+ "devices.recent.not_yours_label": "No es uno de tus dispositivos",+ "devices.enroll.code_label": "Código de un solo uso",+ "devices.approve.passphrase_label": "Frase de contraseña de Keyvault"+}diff --git a/apps/cua-spaces/src/i18n/locales/es/errors.json b/apps/cua-spaces/src/i18n/locales/es/errors.jsonnew file mode 100644index 0000000000..b23f79b050--- /dev/null+++ b/apps/cua-spaces/src/i18n/locales/es/errors.json@@ -0,0 +1,9 @@+{+ "errors.viewer.stream_unreachable": "No se pudo acceder a la transmisión del escritorio.",+ "errors.viewer.agent_open_failed": "No se pudo abrir {agent}: {reason}",+ "errors.viewer.stop_hotspot_failed": "No se pudo detener el uso compartido",+ "errors.spaces.create_failed": "No se pudo crear un Space",+ "errors.spaces.refresh_failed": "No se pudieron actualizar los Spaces. Es posible que las filas cargadas antes estén desactualizadas.",+ "errors.spaces.load_failed": "No se pudieron cargar los Spaces. Intenta actualizar de nuevo.",+ "errors.settings.sign_in_start_failed": "No se pudo iniciar sesión"+}diff --git a/apps/cua-spaces/src/i18n/locales/es/installer.json b/apps/cua-spaces/src/i18n/locales/es/installer.jsonnew file mode 100644index 0000000000..3aebdd146c--- /dev/null+++ b/apps/cua-spaces/src/i18n/locales/es/installer.json@@ -0,0 +1,8 @@+{+ "installer.flow.label": "Configurar Cua",+ "installer.flow.steps_label": "Pasos de configuración",+ "installer.prompts.label": "Prueba a preguntarle a tu agente:",+ "installer.prompts.copied": "Copiado",+ "installer.agents.results_label": "Resultados de la configuración",+ "installer.agents.detected_label": "Agentes detectados"+}diff --git a/apps/cua-spaces/src/i18n/locales/es/onboarding.json b/apps/cua-spaces/src/i18n/locales/es/onboarding.jsonnew file mode 100644index 0000000000..ad4a3e0486--- /dev/null+++ b/apps/cua-spaces/src/i18n/locales/es/onboarding.json@@ -0,0 +1,3 @@+{+ "onboarding.mode.change_later": "Cámbialo más tarde desde Este equipo en tu lista de Spaces."+}diff --git a/apps/cua-spaces/src/i18n/locales/es/settings.json b/apps/cua-spaces/src/i18n/locales/es/settings.jsonnew file mode 100644index 0000000000..7bff91ae84--- /dev/null+++ b/apps/cua-spaces/src/i18n/locales/es/settings.json@@ -0,0 +1,10 @@+{+ "settings.this_machine.sharing_label": "Uso compartido",+ "settings.cloud.clouds_label": "Nubes",+ "settings.cloud.sign_in_found": "Inicio de sesión encontrado",+ "settings.cloud.touches_label": "Lo que Cua tocará",+ "settings.cloud.checks_label": "Comprobaciones",+ "settings.accessibility.enable_window_drag": "Activa el arrastre de ventanas en Ajustes del Sistema → Privacidad → Accesibilidad",+ "settings.language.label": "Idioma",+ "settings.language.system_default": "Predeterminado del sistema"+}diff --git a/apps/cua-spaces/src/i18n/locales/es/sharing.json b/apps/cua-spaces/src/i18n/locales/es/sharing.jsonnew file mode 100644index 0000000000..d0164b5120--- /dev/null+++ b/apps/cua-spaces/src/i18n/locales/es/sharing.json@@ -0,0 +1,4 @@+{+ "sharing.sheet.role_label": "Rol",+ "sharing.sheet.shared_with_label": "Compartido con"+}diff --git a/apps/cua-spaces/src/i18n/locales/es/spaces.json b/apps/cua-spaces/src/i18n/locales/es/spaces.jsonnew file mode 100644index 0000000000..c129357381--- /dev/null+++ b/apps/cua-spaces/src/i18n/locales/es/spaces.json@@ -0,0 +1,64 @@+{+ "spaces.tile.hotspot_badge": "Navegando a través de tu red",+ "spaces.tile.delete_label": "Eliminar {name}",+ "spaces.tile.delete_hint": "Eliminar este Space",+ "spaces.tile.power_label": "{action} {name}",+ "spaces.tile.teleport_label": "Teletransportar una app a {name}",+ "spaces.tile.teleport_hint": "Teletransportar una app a este entorno aislado",+ "spaces.tile.pin_label": "Fijar {name} como imagen en imagen",+ "spaces.tile.pin_hint": "Fijar como imagen en imagen",+ "spaces.thumbnail.deleting": "Eliminando…",+ "spaces.brand.cua_spaces": "Cua Spaces",+ "spaces.ambient.teleport": "Teletransportar a Cua",+ "spaces.facts.label": "Detalles",+ "spaces.windows.stream_label": "Transmisión",+ "spaces.agents.list_label": "Agentes en este Space",+ "spaces.switcher.label": "Selector de Cua Spaces",+ "spaces.switcher.drop_hint": "Suelta en un Space para teletransportar",+ "spaces.switcher.drop_hint_app": "Suelta en un Space para teletransportar {app}",+ "spaces.switcher.search_hint": "Buscar Spaces",+ "spaces.switcher.search_placeholder": "Buscar",+ "spaces.switcher.search_label": "Filtrar Cua Spaces por nombre, sistema operativo, estado o ubicación",+ "spaces.switcher.list_label": "Spaces, los más recientes primero",+ "spaces.switcher.no_match": "Ninguno de tus Spaces coincide con “{query}”.",+ "spaces.switcher.create_new": "Crear un Space nuevo",+ "spaces.switcher.new_drop_label": "Suelta aquí para crear un Space nuevo",+ "spaces.switcher.new_label": "Nuevo Space ({shortcut})",+ "spaces.switcher.new_tile": "Nuevo",+ "spaces.switcher.list_view_label": "Vista de lista",+ "spaces.switcher.list_view_hint": "Abrir la ventana de Cua Spaces",+ "spaces.switcher.settings": "Ajustes",+ "spaces.switcher.stop_hotspot_hint": "Dejar de compartir tu red",+ "spaces.switcher.stop_hotspot": "Dejar de compartir red",+ "spaces.main.sidebar_label": "Spaces",+ "spaces.main.search_label": "Buscar Spaces",+ "spaces.main.nav_label": "Barra lateral",+ "spaces.main.agents_label": "Agentes",+ "spaces.main.new_hint": "{label} ({shortcut})",+ "spaces.main.settings_hint": "{label} ({shortcut})",+ "spaces.main.os_tile_label": "{name}, {detail}",+ "spaces.detail.preview_alt": "Escritorio de {name}",+ "spaces.wizard.connect_by_address": "Conectar por dirección",+ "spaces.wizard.label": "Nuevo Space",+ "spaces.wizard.steps_label": "Pasos",+ "spaces.wizard.cost_label": "Costo",+ "spaces.wizard.resources_label": "Recursos",+ "spaces.wizard.summary_label": "Resumen",+ "spaces.viewer.controls_label": "Controles del Space",+ "spaces.viewer.launch_agent_hint": "Iniciar un agente de programación para este Space",+ "spaces.viewer.launch_agent": "Iniciar agente",+ "spaces.viewer.agents_menu_label": "Agentes de programación",+ "spaces.viewer.stop_hotspot_hint": "Dejar de compartir tu red con este Space",+ "spaces.viewer.stop_hotspot": "Dejar de compartir red",+ "spaces.viewer.teleport_hint": "Teletransportar una app a {name}",+ "spaces.viewer.teleport": "Teletransportar una app…",+ "spaces.viewer.connecting_to": "Conectando con {name}…",+ "spaces.viewer.stream_ended": "La transmisión terminó.",+ "spaces.viewer.transferring": "Transfiriendo la sesión…",+ "spaces.viewer.agent_installing": "{agent} sigue instalándose",+ "spaces.viewer.agent_opened": "{agent} está abierto en una terminal de este Space; inicia sesión allí",+ "spaces.window_stream.waiting_for": "Esperando a {name}…",+ "spaces.window_stream.no_windows": "Aún no hay ventanas abiertas en {name}.",+ "spaces.window_stream.close_window": "Cerrar ventana",+ "spaces.create.creating": "Creando un Space…"+}diff --git a/apps/cua-spaces/src/i18n/locales/es/teleport.json b/apps/cua-spaces/src/i18n/locales/es/teleport.jsonnew file mode 100644index 0000000000..cdc28391d1--- /dev/null+++ b/apps/cua-spaces/src/i18n/locales/es/teleport.json@@ -0,0 +1,38 @@+{+ "teleport.sheet.label": "Teletransportar una app a {name}",+ "teleport.app_picker.loading": "Buscando apps…",+ "teleport.app_picker.search_placeholder": "Buscar apps",+ "teleport.app_picker.search_label": "Buscar apps",+ "teleport.app_picker.what_moves_label": "Qué se mueve",+ "teleport.app_picker.also_send_label": "Enviar también",+ "teleport.app_picker.remove_file": "Quitar",+ "teleport.app_picker.add_files": "Agregar archivos o carpetas…",+ "teleport.app_picker.review": "Revisar",+ "teleport.app_picker.preparing": "Preparando {name}…",+ "teleport.app_picker.preparing_fallback": "el teletransporte",+ "teleport.app_picker.consent_title": "¿Teletransportar {app} a {space}?",+ "teleport.app_picker.secret_flag": "Secreto",+ "teleport.app_picker.send_secrets": "Enviar los secretos de arriba",+ "teleport.app_picker.keyvault_hint": "Mantén esta sesión iniciada sellada en tu Cua Keyvault para poder entregarla de nuevo sin volver a preguntar.",+ "teleport.app_picker.save_to_keyvault": "Guardar en Keyvault para reutilizar",+ "teleport.app_picker.send_unencrypted": "Enviar sin cifrado de extremo a extremo",+ "teleport.app_picker.bytes_leave": "{size} salen de este Mac",+ "teleport.app_picker.nothing_leaves": "No sale nada de este Mac",+ "teleport.app_picker.confirm": "Teletransportar",+ "teleport.app_picker.running_title": "Teletransportando {app} a {space}…",+ "teleport.app_picker.starting": "Iniciando…",+ "teleport.app_picker.event_line": "{kind}: {detail}",+ "teleport.app_picker.done_installed": "Se instaló {apps}.",+ "teleport.app_picker.done_sent": "Se enviaron {count} elemento(s).",+ "teleport.app_picker.done_imported": "Se importaron {count} elemento(s).",+ "teleport.app_picker.done_opened": "Abierto.",+ "teleport.app_picker.done_title": "{app} está en {space}",+ "teleport.app_picker.done_title_fallback": "La app",+ "teleport.app_picker.error_title": "No se pudo teletransportar",+ "teleport.app_picker.error_title_named": "No se pudo teletransportar {name}",+ "teleport.picker.open_failed": "No se pudo abrir el selector de teletransporte",+ "teleport.picker.preparing": "Preparando…",+ "teleport.picker.tabs_label": "Teletransportar",+ "teleport.picker.search": "Buscar",+ "teleport.drop_zone.label": "Teletransportar a {name}"+}diff --git a/apps/cua-spaces/src/i18n/locales/ja/agents.json b/apps/cua-spaces/src/i18n/locales/ja/agents.jsonnew file mode 100644index 0000000000..61dde73707--- /dev/null+++ b/apps/cua-spaces/src/i18n/locales/ja/agents.json@@ -0,0 +1,8 @@+{+ "agents.routine.title": "タイトル",+ "agents.routine.prompt": "プロンプト",+ "agents.routine.schedule": "スケジュール",+ "agents.routine.minutes": "分",+ "agents.routine.time": "時刻",+ "agents.routine.day": "曜日"+}diff --git a/apps/cua-spaces/src/i18n/locales/ja/billing.json b/apps/cua-spaces/src/i18n/locales/ja/billing.jsonnew file mode 100644index 0000000000..0967ef424b--- /dev/null+++ b/apps/cua-spaces/src/i18n/locales/ja/billing.json@@ -0,0 +1 @@+{}diff --git a/apps/cua-spaces/src/i18n/locales/ja/common.json b/apps/cua-spaces/src/i18n/locales/ja/common.jsonnew file mode 100644index 0000000000..9960463c2c--- /dev/null+++ b/apps/cua-spaces/src/i18n/locales/ja/common.json@@ -0,0 +1,13 @@+{+ "common": {+ "app_name": "Cua Spaces"+ },+ "common.action.dismiss": "閉じる",+ "common.action.retry": "再試行",+ "common.action.cancel": "キャンセル",+ "common.action.close": "閉じる",+ "common.action.reconnect": "再接続",+ "common.status.connecting": "接続中…",+ "common.action.back": "戻る",+ "common.action.done": "完了"+}diff --git a/apps/cua-spaces/src/i18n/locales/ja/devices.json b/apps/cua-spaces/src/i18n/locales/ja/devices.jsonnew file mode 100644index 0000000000..0b0cddf199--- /dev/null+++ b/apps/cua-spaces/src/i18n/locales/ja/devices.json@@ -0,0 +1,8 @@+{+ "devices.banner.label": "デバイスの登録",+ "devices.section.label": "デバイス",+ "devices.section.title": "デバイス",+ "devices.recent.not_yours_label": "あなたのデバイスではありません",+ "devices.enroll.code_label": "ワンタイムコード",+ "devices.approve.passphrase_label": "Keyvaultのパスフレーズ"+}diff --git a/apps/cua-spaces/src/i18n/locales/ja/errors.json b/apps/cua-spaces/src/i18n/locales/ja/errors.jsonnew file mode 100644index 0000000000..fbc31ce09d--- /dev/null+++ b/apps/cua-spaces/src/i18n/locales/ja/errors.json@@ -0,0 +1,9 @@+{+ "errors.viewer.stream_unreachable": "デスクトップのストリームに接続できませんでした。",+ "errors.viewer.agent_open_failed": "{agent}を開けませんでした: {reason}",+ "errors.viewer.stop_hotspot_failed": "共有を停止できませんでした",+ "errors.spaces.create_failed": "Space を作成できませんでした",+ "errors.spaces.refresh_failed": "Spaces を更新できませんでした。以前に読み込んだ行は古い可能性があります。",+ "errors.spaces.load_failed": "Spaces を読み込めませんでした。もう一度更新してください。",+ "errors.settings.sign_in_start_failed": "サインインを開始できませんでした"+}diff --git a/apps/cua-spaces/src/i18n/locales/ja/installer.json b/apps/cua-spaces/src/i18n/locales/ja/installer.jsonnew file mode 100644index 0000000000..e0cf98150d--- /dev/null+++ b/apps/cua-spaces/src/i18n/locales/ja/installer.json@@ -0,0 +1,8 @@+{+ "installer.flow.label": "Cua のセットアップ",+ "installer.flow.steps_label": "セットアップの手順",+ "installer.prompts.label": "エージェントに聞いてみましょう:",+ "installer.prompts.copied": "コピーしました",+ "installer.agents.results_label": "セットアップの結果",+ "installer.agents.detected_label": "検出されたエージェント"+}diff --git a/apps/cua-spaces/src/i18n/locales/ja/onboarding.json b/apps/cua-spaces/src/i18n/locales/ja/onboarding.jsonnew file mode 100644index 0000000000..2c4d0deac9--- /dev/null+++ b/apps/cua-spaces/src/i18n/locales/ja/onboarding.json@@ -0,0 +1,3 @@+{+ "onboarding.mode.change_later": "あとで Spaces の一覧にある「このコンピュータ」から変更できます。"+}diff --git a/apps/cua-spaces/src/i18n/locales/ja/settings.json b/apps/cua-spaces/src/i18n/locales/ja/settings.jsonnew file mode 100644index 0000000000..f7fc278606--- /dev/null+++ b/apps/cua-spaces/src/i18n/locales/ja/settings.json@@ -0,0 +1,10 @@+{+ "settings.this_machine.sharing_label": "共有",+ "settings.cloud.clouds_label": "クラウド",+ "settings.cloud.sign_in_found": "サインインが見つかりました",+ "settings.cloud.touches_label": "Cua が操作する対象",+ "settings.cloud.checks_label": "チェック",+ "settings.accessibility.enable_window_drag": "システム設定 → プライバシー → アクセシビリティでウィンドウのドラッグを有効にします",+ "settings.language.label": "言語",+ "settings.language.system_default": "システムのデフォルト"+}diff --git a/apps/cua-spaces/src/i18n/locales/ja/sharing.json b/apps/cua-spaces/src/i18n/locales/ja/sharing.jsonnew file mode 100644index 0000000000..a987ce1e3f--- /dev/null+++ b/apps/cua-spaces/src/i18n/locales/ja/sharing.json@@ -0,0 +1,4 @@+{+ "sharing.sheet.role_label": "役割",+ "sharing.sheet.shared_with_label": "共有相手"+}diff --git a/apps/cua-spaces/src/i18n/locales/ja/spaces.json b/apps/cua-spaces/src/i18n/locales/ja/spaces.jsonnew file mode 100644index 0000000000..e196ab52f8--- /dev/null+++ b/apps/cua-spaces/src/i18n/locales/ja/spaces.json@@ -0,0 +1,64 @@+{+ "spaces.tile.hotspot_badge": "ネットワーク経由でブラウズ中",+ "spaces.tile.delete_label": "{name}を削除",+ "spaces.tile.delete_hint": "この Space を削除します",+ "spaces.tile.power_label": "{action} {name}",+ "spaces.tile.teleport_label": "アプリを{name}にテレポート",+ "spaces.tile.teleport_hint": "アプリをこのサンドボックスにテレポートします",+ "spaces.tile.pin_label": "{name}をピクチャインピクチャで固定",+ "spaces.tile.pin_hint": "ピクチャインピクチャで固定します",+ "spaces.thumbnail.deleting": "削除中…",+ "spaces.brand.cua_spaces": "Cua Spaces",+ "spaces.ambient.teleport": "Cua にテレポート",+ "spaces.facts.label": "詳細",+ "spaces.windows.stream_label": "ストリーム",+ "spaces.agents.list_label": "この Space のエージェント",+ "spaces.switcher.label": "Cua Spaces スイッチャー",+ "spaces.switcher.drop_hint": "Space にドロップしてテレポート",+ "spaces.switcher.drop_hint_app": "Space にドロップして{app}をテレポート",+ "spaces.switcher.search_hint": "Spaces を検索",+ "spaces.switcher.search_placeholder": "検索",+ "spaces.switcher.search_label": "名前、OS、状態、場所で Cua Spaces を絞り込み",+ "spaces.switcher.list_label": "Spaces(新しい順)",+ "spaces.switcher.no_match": "「{query}」に一致する Spaces はありません。",+ "spaces.switcher.create_new": "新しい Space を作成",+ "spaces.switcher.new_drop_label": "ここにドロップして新しい Space を作成",+ "spaces.switcher.new_label": "新しい Space({shortcut})",+ "spaces.switcher.new_tile": "新規",+ "spaces.switcher.list_view_label": "リスト表示",+ "spaces.switcher.list_view_hint": "Cua Spaces ウィンドウを開きます",+ "spaces.switcher.settings": "設定",+ "spaces.switcher.stop_hotspot_hint": "ネットワークの共有を停止します",+ "spaces.switcher.stop_hotspot": "ネットワーク共有を停止",+ "spaces.main.sidebar_label": "Spaces",+ "spaces.main.search_label": "Spaces を検索",+ "spaces.main.nav_label": "サイドバー",+ "spaces.main.agents_label": "エージェント",+ "spaces.main.new_hint": "{label}({shortcut})",+ "spaces.main.settings_hint": "{label}({shortcut})",+ "spaces.main.os_tile_label": "{name}、{detail}",+ "spaces.detail.preview_alt": "{name}のデスクトップ",+ "spaces.wizard.connect_by_address": "アドレスで接続",+ "spaces.wizard.label": "新しい Space",+ "spaces.wizard.steps_label": "ステップ",+ "spaces.wizard.cost_label": "料金",+ "spaces.wizard.resources_label": "リソース",+ "spaces.wizard.summary_label": "概要",+ "spaces.viewer.controls_label": "Space の操作",+ "spaces.viewer.launch_agent_hint": "この Space でコーディングエージェントを起動します",+ "spaces.viewer.launch_agent": "エージェントを起動",+ "spaces.viewer.agents_menu_label": "コーディングエージェント",+ "spaces.viewer.stop_hotspot_hint": "この Space とのネットワーク共有を停止します",+ "spaces.viewer.stop_hotspot": "ネットワーク共有を停止",+ "spaces.viewer.teleport_hint": "アプリを{name}にテレポートします",+ "spaces.viewer.teleport": "アプリをテレポート…",+ "spaces.viewer.connecting_to": "{name}に接続しています…",+ "spaces.viewer.stream_ended": "ストリームが終了しました。",+ "spaces.viewer.transferring": "セッションを転送しています…",+ "spaces.viewer.agent_installing": "{agent}をインストール中です",+ "spaces.viewer.agent_opened": "{agent} がこの Space のターミナルで開いています。そこでサインインしてください",+ "spaces.window_stream.waiting_for": "{name}を待っています…",+ "spaces.window_stream.no_windows": "{name}にはまだ開いているウィンドウがありません。",+ "spaces.window_stream.close_window": "ウィンドウを閉じる",+ "spaces.create.creating": "Space を作成中…"+}diff --git a/apps/cua-spaces/src/i18n/locales/ja/teleport.json b/apps/cua-spaces/src/i18n/locales/ja/teleport.jsonnew file mode 100644index 0000000000..19b74b2207--- /dev/null+++ b/apps/cua-spaces/src/i18n/locales/ja/teleport.json@@ -0,0 +1,38 @@+{+ "teleport.sheet.label": "アプリを{name}にテレポート",+ "teleport.app_picker.loading": "アプリを探しています…",+ "teleport.app_picker.search_placeholder": "アプリを検索",+ "teleport.app_picker.search_label": "アプリを検索",+ "teleport.app_picker.what_moves_label": "移動するもの",+ "teleport.app_picker.also_send_label": "あわせて送信",+ "teleport.app_picker.remove_file": "削除",+ "teleport.app_picker.add_files": "ファイルやフォルダを追加…",+ "teleport.app_picker.review": "確認",+ "teleport.app_picker.preparing": "{name}を準備しています…",+ "teleport.app_picker.preparing_fallback": "テレポート",+ "teleport.app_picker.consent_title": "{app}を{space}にテレポートしますか?",+ "teleport.app_picker.secret_flag": "シークレット",+ "teleport.app_picker.send_secrets": "上記のシークレットを送信する",+ "teleport.app_picker.keyvault_hint": "ログイン済みのこのセッションを Cua Keyvault に保管して、再度確認せずにもう一度渡せるようにします。",+ "teleport.app_picker.save_to_keyvault": "再利用のためKeyvaultに保存",+ "teleport.app_picker.send_unencrypted": "エンドツーエンド暗号化なしで送信",+ "teleport.app_picker.bytes_leave": "{size}がこのMacから送信されます",+ "teleport.app_picker.nothing_leaves": "このMacからは何も送信されません",+ "teleport.app_picker.confirm": "テレポート",+ "teleport.app_picker.running_title": "{app}を{space}にテレポートしています…",+ "teleport.app_picker.starting": "開始しています…",+ "teleport.app_picker.event_line": "{kind}: {detail}",+ "teleport.app_picker.done_installed": "{apps}をインストールしました。",+ "teleport.app_picker.done_sent": "{count}件を送信しました。",+ "teleport.app_picker.done_imported": "{count}件を読み込みました。",+ "teleport.app_picker.done_opened": "開きました。",+ "teleport.app_picker.done_title": "{app}は{space}にあります",+ "teleport.app_picker.done_title_fallback": "アプリ",+ "teleport.app_picker.error_title": "テレポートできませんでした",+ "teleport.app_picker.error_title_named": "{name}をテレポートできませんでした",+ "teleport.picker.open_failed": "テレポートピッカーを開けませんでした",+ "teleport.picker.preparing": "準備しています…",+ "teleport.picker.tabs_label": "テレポート",+ "teleport.picker.search": "検索",+ "teleport.drop_zone.label": "{name}にテレポート"+}diff --git a/apps/cua-spaces/src/i18n/locales/ko/agents.json b/apps/cua-spaces/src/i18n/locales/ko/agents.jsonnew file mode 100644index 0000000000..3e18fdfb17--- /dev/null+++ b/apps/cua-spaces/src/i18n/locales/ko/agents.json@@ -0,0 +1,8 @@+{+ "agents.routine.title": "제목",+ "agents.routine.prompt": "프롬프트",+ "agents.routine.schedule": "일정",+ "agents.routine.minutes": "분",+ "agents.routine.time": "시간",+ "agents.routine.day": "요일"+}diff --git a/apps/cua-spaces/src/i18n/locales/ko/billing.json b/apps/cua-spaces/src/i18n/locales/ko/billing.jsonnew file mode 100644index 0000000000..0967ef424b--- /dev/null+++ b/apps/cua-spaces/src/i18n/locales/ko/billing.json@@ -0,0 +1 @@+{}diff --git a/apps/cua-spaces/src/i18n/locales/ko/common.json b/apps/cua-spaces/src/i18n/locales/ko/common.jsonnew file mode 100644index 0000000000..6277dcbed5--- /dev/null+++ b/apps/cua-spaces/src/i18n/locales/ko/common.json@@ -0,0 +1,13 @@+{+ "common": {+ "app_name": "Cua Spaces"+ },+ "common.action.dismiss": "닫기",+ "common.action.retry": "다시 시도",+ "common.action.cancel": "취소",+ "common.action.close": "닫기",+ "common.action.reconnect": "다시 연결",+ "common.status.connecting": "연결 중…",+ "common.action.back": "뒤로",+ "common.action.done": "완료"+}diff --git a/apps/cua-spaces/src/i18n/locales/ko/devices.json b/apps/cua-spaces/src/i18n/locales/ko/devices.jsonnew file mode 100644index 0000000000..8416c38ac7--- /dev/null+++ b/apps/cua-spaces/src/i18n/locales/ko/devices.json@@ -0,0 +1,8 @@+{+ "devices.banner.label": "기기 등록",+ "devices.section.label": "기기",+ "devices.section.title": "기기",+ "devices.recent.not_yours_label": "내 기기가 아님",+ "devices.enroll.code_label": "일회용 코드",+ "devices.approve.passphrase_label": "키볼트 암호"+}diff --git a/apps/cua-spaces/src/i18n/locales/ko/errors.json b/apps/cua-spaces/src/i18n/locales/ko/errors.jsonnew file mode 100644index 0000000000..83b1dbbb15--- /dev/null+++ b/apps/cua-spaces/src/i18n/locales/ko/errors.json@@ -0,0 +1,9 @@+{+ "errors.viewer.stream_unreachable": "데스크톱 스트림에 연결할 수 없어요.",+ "errors.viewer.agent_open_failed": "{agent}을(를) 열 수 없어요: {reason}",+ "errors.viewer.stop_hotspot_failed": "공유를 중지할 수 없어요",+ "errors.spaces.create_failed": "Space를 만들 수 없어요",+ "errors.spaces.refresh_failed": "Spaces를 새로 고치지 못했어요. 이전에 불러온 항목이 최신이 아닐 수 있어요.",+ "errors.spaces.load_failed": "Spaces를 불러오지 못했어요. 다시 새로 고쳐 보세요.",+ "errors.settings.sign_in_start_failed": "로그인을 시작할 수 없어요"+}diff --git a/apps/cua-spaces/src/i18n/locales/ko/installer.json b/apps/cua-spaces/src/i18n/locales/ko/installer.jsonnew file mode 100644index 0000000000..35e935bedc--- /dev/null+++ b/apps/cua-spaces/src/i18n/locales/ko/installer.json@@ -0,0 +1,8 @@+{+ "installer.flow.label": "Cua 설정",+ "installer.flow.steps_label": "설정 단계",+ "installer.prompts.label": "에이전트에게 이렇게 물어보세요:",+ "installer.prompts.copied": "복사됨",+ "installer.agents.results_label": "설정 결과",+ "installer.agents.detected_label": "감지된 에이전트"+}diff --git a/apps/cua-spaces/src/i18n/locales/ko/onboarding.json b/apps/cua-spaces/src/i18n/locales/ko/onboarding.jsonnew file mode 100644index 0000000000..278a95cdb0--- /dev/null+++ b/apps/cua-spaces/src/i18n/locales/ko/onboarding.json@@ -0,0 +1,3 @@+{+ "onboarding.mode.change_later": "Spaces 목록의 이 컴퓨터에서 나중에 바꿀 수 있어요."+}diff --git a/apps/cua-spaces/src/i18n/locales/ko/settings.json b/apps/cua-spaces/src/i18n/locales/ko/settings.jsonnew file mode 100644index 0000000000..22f08ff530--- /dev/null+++ b/apps/cua-spaces/src/i18n/locales/ko/settings.json@@ -0,0 +1,10 @@+{+ "settings.this_machine.sharing_label": "공유",+ "settings.cloud.clouds_label": "클라우드",+ "settings.cloud.sign_in_found": "로그인 정보를 찾았어요",+ "settings.cloud.touches_label": "Cua가 접근하는 항목",+ "settings.cloud.checks_label": "확인 항목",+ "settings.accessibility.enable_window_drag": "시스템 설정 → 개인정보 보호 및 보안 → 손쉬운 사용에서 창 드래그를 켜세요",+ "settings.language.label": "언어",+ "settings.language.system_default": "시스템 기본값"+}diff --git a/apps/cua-spaces/src/i18n/locales/ko/sharing.json b/apps/cua-spaces/src/i18n/locales/ko/sharing.jsonnew file mode 100644index 0000000000..3585dcb566--- /dev/null+++ b/apps/cua-spaces/src/i18n/locales/ko/sharing.json@@ -0,0 +1,4 @@+{+ "sharing.sheet.role_label": "역할",+ "sharing.sheet.shared_with_label": "공유 대상"+}diff --git a/apps/cua-spaces/src/i18n/locales/ko/spaces.json b/apps/cua-spaces/src/i18n/locales/ko/spaces.jsonnew file mode 100644index 0000000000..dbf06b79ce--- /dev/null+++ b/apps/cua-spaces/src/i18n/locales/ko/spaces.json@@ -0,0 +1,64 @@+{+ "spaces.tile.hotspot_badge": "내 네트워크로 탐색 중",+ "spaces.tile.delete_label": "{name} 삭제",+ "spaces.tile.delete_hint": "이 Space 삭제",+ "spaces.tile.power_label": "{action} {name}",+ "spaces.tile.teleport_label": "앱을 {name}(으)로 텔레포트",+ "spaces.tile.teleport_hint": "앱을 이 샌드박스로 텔레포트",+ "spaces.tile.pin_label": "{name}을(를) 화면 속 화면으로 고정",+ "spaces.tile.pin_hint": "화면 속 화면으로 고정",+ "spaces.thumbnail.deleting": "삭제 중…",+ "spaces.brand.cua_spaces": "Cua Spaces",+ "spaces.ambient.teleport": "Cua로 텔레포트",+ "spaces.facts.label": "세부 정보",+ "spaces.windows.stream_label": "스트림",+ "spaces.agents.list_label": "이 Space의 에이전트",+ "spaces.switcher.label": "Cua Spaces 전환기",+ "spaces.switcher.drop_hint": "Space에 놓아 텔레포트",+ "spaces.switcher.drop_hint_app": "Space에 놓아 {app} 텔레포트",+ "spaces.switcher.search_hint": "Spaces 검색",+ "spaces.switcher.search_placeholder": "검색",+ "spaces.switcher.search_label": "이름, OS, 상태 또는 위치로 Cua Spaces 필터링",+ "spaces.switcher.list_label": "Spaces, 최근 순",+ "spaces.switcher.no_match": "“{query}”와 일치하는 Spaces가 없어요.",+ "spaces.switcher.create_new": "새 Space 만들기",+ "spaces.switcher.new_drop_label": "여기에 놓아 새 Space 만들기",+ "spaces.switcher.new_label": "새 Space ({shortcut})",+ "spaces.switcher.new_tile": "새로 만들기",+ "spaces.switcher.list_view_label": "목록 보기",+ "spaces.switcher.list_view_hint": "Cua Spaces 창 열기",+ "spaces.switcher.settings": "설정",+ "spaces.switcher.stop_hotspot_hint": "내 네트워크 공유 중지",+ "spaces.switcher.stop_hotspot": "네트워크 공유 중지",+ "spaces.main.sidebar_label": "Spaces",+ "spaces.main.search_label": "Spaces 검색",+ "spaces.main.nav_label": "사이드바",+ "spaces.main.agents_label": "에이전트",+ "spaces.main.new_hint": "{label} ({shortcut})",+ "spaces.main.settings_hint": "{label} ({shortcut})",+ "spaces.main.os_tile_label": "{name}, {detail}",+ "spaces.detail.preview_alt": "{name} 데스크톱",+ "spaces.wizard.connect_by_address": "주소로 연결",+ "spaces.wizard.label": "새 Space",+ "spaces.wizard.steps_label": "단계",+ "spaces.wizard.cost_label": "비용",+ "spaces.wizard.resources_label": "리소스",+ "spaces.wizard.summary_label": "요약",+ "spaces.viewer.controls_label": "Space 제어",+ "spaces.viewer.launch_agent_hint": "이 Space에서 코딩 에이전트 실행",+ "spaces.viewer.launch_agent": "에이전트 실행",+ "spaces.viewer.agents_menu_label": "코딩 에이전트",+ "spaces.viewer.stop_hotspot_hint": "이 Space와 네트워크 공유 중지",+ "spaces.viewer.stop_hotspot": "네트워크 공유 중지",+ "spaces.viewer.teleport_hint": "{name}(으)로 앱 텔레포트",+ "spaces.viewer.teleport": "앱 텔레포트…",+ "spaces.viewer.connecting_to": "{name}에 연결하는 중…",+ "spaces.viewer.stream_ended": "스트림이 종료되었어요.",+ "spaces.viewer.transferring": "세션을 전송하는 중…",+ "spaces.viewer.agent_installing": "{agent}을(를) 아직 설치하는 중이에요",+ "spaces.viewer.agent_opened": "{agent}이(가) 이 Space의 터미널에서 열려 있어요. 그곳에서 로그인하세요",+ "spaces.window_stream.waiting_for": "{name}을(를) 기다리는 중…",+ "spaces.window_stream.no_windows": "{name}에 열린 창이 아직 없어요.",+ "spaces.window_stream.close_window": "창 닫기",+ "spaces.create.creating": "Space 만드는 중…"+}diff --git a/apps/cua-spaces/src/i18n/locales/ko/teleport.json b/apps/cua-spaces/src/i18n/locales/ko/teleport.jsonnew file mode 100644index 0000000000..6cb7d195fc--- /dev/null+++ b/apps/cua-spaces/src/i18n/locales/ko/teleport.json@@ -0,0 +1,38 @@+{+ "teleport.sheet.label": "{name}(으)로 앱 텔레포트",+ "teleport.app_picker.loading": "앱을 찾는 중…",+ "teleport.app_picker.search_placeholder": "앱 검색",+ "teleport.app_picker.search_label": "앱 검색",+ "teleport.app_picker.what_moves_label": "이동하는 항목",+ "teleport.app_picker.also_send_label": "함께 보내기",+ "teleport.app_picker.remove_file": "제거",+ "teleport.app_picker.add_files": "파일 또는 폴더 추가…",+ "teleport.app_picker.review": "검토",+ "teleport.app_picker.preparing": "{name}을(를) 준비하는 중…",+ "teleport.app_picker.preparing_fallback": "텔레포트",+ "teleport.app_picker.consent_title": "{app}을(를) {space}(으)로 텔레포트할까요?",+ "teleport.app_picker.secret_flag": "비밀",+ "teleport.app_picker.send_secrets": "위의 비밀 정보 보내기",+ "teleport.app_picker.keyvault_hint": "로그인된 이 세션을 Cua Keyvault에 안전하게 보관해 두면, 다시 묻지 않고 다시 전달할 수 있어요.",+ "teleport.app_picker.save_to_keyvault": "다시 쓰도록 Keyvault에 저장",+ "teleport.app_picker.send_unencrypted": "종단 간 암호화 없이 보내기",+ "teleport.app_picker.bytes_leave": "{size}이(가) 이 Mac을 떠나요",+ "teleport.app_picker.nothing_leaves": "이 Mac을 떠나는 정보는 없어요",+ "teleport.app_picker.confirm": "텔레포트",+ "teleport.app_picker.running_title": "{app}을(를) {space}(으)로 텔레포트하는 중…",+ "teleport.app_picker.starting": "시작하는 중…",+ "teleport.app_picker.event_line": "{kind}: {detail}",+ "teleport.app_picker.done_installed": "{apps}을(를) 설치했어요.",+ "teleport.app_picker.done_sent": "항목 {count}개를 보냈어요.",+ "teleport.app_picker.done_imported": "항목 {count}개를 가져왔어요.",+ "teleport.app_picker.done_opened": "열었어요.",+ "teleport.app_picker.done_title": "{app}이(가) {space}에 있어요",+ "teleport.app_picker.done_title_fallback": "앱",+ "teleport.app_picker.error_title": "텔레포트하지 못했어요",+ "teleport.app_picker.error_title_named": "{name}을(를) 텔레포트하지 못했어요",+ "teleport.picker.open_failed": "텔레포트 선택기를 열지 못했어요",+ "teleport.picker.preparing": "준비하는 중…",+ "teleport.picker.tabs_label": "텔레포트",+ "teleport.picker.search": "검색",+ "teleport.drop_zone.label": "{name}(으)로 텔레포트"+}diff --git a/apps/cua-spaces/src/i18n/locales/pt-BR/agents.json b/apps/cua-spaces/src/i18n/locales/pt-BR/agents.jsonnew file mode 100644index 0000000000..e320758698--- /dev/null+++ b/apps/cua-spaces/src/i18n/locales/pt-BR/agents.json@@ -0,0 +1,8 @@+{+ "agents.routine.title": "Título",+ "agents.routine.prompt": "Prompt",+ "agents.routine.schedule": "Agendamento",+ "agents.routine.minutes": "Minutos",+ "agents.routine.time": "Horário",+ "agents.routine.day": "Dia"+}diff --git a/apps/cua-spaces/src/i18n/locales/pt-BR/billing.json b/apps/cua-spaces/src/i18n/locales/pt-BR/billing.jsonnew file mode 100644index 0000000000..0967ef424b--- /dev/null+++ b/apps/cua-spaces/src/i18n/locales/pt-BR/billing.json@@ -0,0 +1 @@+{}diff --git a/apps/cua-spaces/src/i18n/locales/pt-BR/common.json b/apps/cua-spaces/src/i18n/locales/pt-BR/common.jsonnew file mode 100644index 0000000000..9460753fbf--- /dev/null+++ b/apps/cua-spaces/src/i18n/locales/pt-BR/common.json@@ -0,0 +1,13 @@+{+ "common": {+ "app_name": "Cua Spaces"+ },+ "common.action.dismiss": "Dispensar",+ "common.action.retry": "Tentar de novo",+ "common.action.cancel": "Cancelar",+ "common.action.close": "Fechar",+ "common.action.reconnect": "Reconectar",+ "common.status.connecting": "Conectando…",+ "common.action.back": "Voltar",+ "common.action.done": "Concluir"+}diff --git a/apps/cua-spaces/src/i18n/locales/pt-BR/devices.json b/apps/cua-spaces/src/i18n/locales/pt-BR/devices.jsonnew file mode 100644index 0000000000..1d215f077b--- /dev/null+++ b/apps/cua-spaces/src/i18n/locales/pt-BR/devices.json@@ -0,0 +1,8 @@+{+ "devices.banner.label": "Registro de dispositivo",+ "devices.section.label": "Dispositivos",+ "devices.section.title": "Dispositivos",+ "devices.recent.not_yours_label": "Não é um dos seus dispositivos",+ "devices.enroll.code_label": "Código de uso único",+ "devices.approve.passphrase_label": "Frase secreta do Keyvault"+}diff --git a/apps/cua-spaces/src/i18n/locales/pt-BR/errors.json b/apps/cua-spaces/src/i18n/locales/pt-BR/errors.jsonnew file mode 100644index 0000000000..f4bb452637--- /dev/null+++ b/apps/cua-spaces/src/i18n/locales/pt-BR/errors.json@@ -0,0 +1,9 @@+{+ "errors.viewer.stream_unreachable": "Não foi possível acessar o stream da área de trabalho.",+ "errors.viewer.agent_open_failed": "Não foi possível abrir {agent}: {reason}",+ "errors.viewer.stop_hotspot_failed": "Não foi possível parar o compartilhamento",+ "errors.spaces.create_failed": "Não foi possível criar um Space",+ "errors.spaces.refresh_failed": "Não foi possível atualizar os Spaces. As linhas carregadas antes podem estar desatualizadas.",+ "errors.spaces.load_failed": "Não foi possível carregar os Spaces. Tente atualizar de novo.",+ "errors.settings.sign_in_start_failed": "Não foi possível iniciar o login"+}diff --git a/apps/cua-spaces/src/i18n/locales/pt-BR/installer.json b/apps/cua-spaces/src/i18n/locales/pt-BR/installer.jsonnew file mode 100644index 0000000000..7308bf893e--- /dev/null+++ b/apps/cua-spaces/src/i18n/locales/pt-BR/installer.json@@ -0,0 +1,8 @@+{+ "installer.flow.label": "Configurar o Cua",+ "installer.flow.steps_label": "Etapas da configuração",+ "installer.prompts.label": "Experimente pedir ao seu agente:",+ "installer.prompts.copied": "Copiado",+ "installer.agents.results_label": "Resultados da configuração",+ "installer.agents.detected_label": "Agentes detectados"+}diff --git a/apps/cua-spaces/src/i18n/locales/pt-BR/onboarding.json b/apps/cua-spaces/src/i18n/locales/pt-BR/onboarding.jsonnew file mode 100644index 0000000000..0c1d3a9fe2--- /dev/null+++ b/apps/cua-spaces/src/i18n/locales/pt-BR/onboarding.json@@ -0,0 +1,3 @@+{+ "onboarding.mode.change_later": "Altere depois em Este computador, na sua lista de Spaces."+}diff --git a/apps/cua-spaces/src/i18n/locales/pt-BR/settings.json b/apps/cua-spaces/src/i18n/locales/pt-BR/settings.jsonnew file mode 100644index 0000000000..359ff13507--- /dev/null+++ b/apps/cua-spaces/src/i18n/locales/pt-BR/settings.json@@ -0,0 +1,10 @@+{+ "settings.this_machine.sharing_label": "Compartilhamento",+ "settings.cloud.clouds_label": "Nuvens",+ "settings.cloud.sign_in_found": "Login encontrado",+ "settings.cloud.touches_label": "O que o Cua vai alterar",+ "settings.cloud.checks_label": "Verificações",+ "settings.accessibility.enable_window_drag": "Ative o arrastar janelas em Configurações do Sistema → Privacidade → Acessibilidade",+ "settings.language.label": "Idioma",+ "settings.language.system_default": "Padrão do sistema"+}diff --git a/apps/cua-spaces/src/i18n/locales/pt-BR/sharing.json b/apps/cua-spaces/src/i18n/locales/pt-BR/sharing.jsonnew file mode 100644index 0000000000..1ccc2ca4e5--- /dev/null+++ b/apps/cua-spaces/src/i18n/locales/pt-BR/sharing.json@@ -0,0 +1,4 @@+{+ "sharing.sheet.role_label": "Função",+ "sharing.sheet.shared_with_label": "Compartilhado com"+}diff --git a/apps/cua-spaces/src/i18n/locales/pt-BR/spaces.json b/apps/cua-spaces/src/i18n/locales/pt-BR/spaces.jsonnew file mode 100644index 0000000000..344a88b569--- /dev/null+++ b/apps/cua-spaces/src/i18n/locales/pt-BR/spaces.json@@ -0,0 +1,64 @@+{+ "spaces.tile.hotspot_badge": "Navegando pela sua rede",+ "spaces.tile.delete_label": "Excluir {name}",+ "spaces.tile.delete_hint": "Excluir este Space",+ "spaces.tile.power_label": "{action} {name}",+ "spaces.tile.teleport_label": "Teleportar um app para {name}",+ "spaces.tile.teleport_hint": "Teleportar um app para este sandbox",+ "spaces.tile.pin_label": "Fixar {name} como picture-in-picture",+ "spaces.tile.pin_hint": "Fixar como picture-in-picture",+ "spaces.thumbnail.deleting": "Excluindo…",+ "spaces.brand.cua_spaces": "Cua Spaces",+ "spaces.ambient.teleport": "Teleportar para o Cua",+ "spaces.facts.label": "Detalhes",+ "spaces.windows.stream_label": "Transmissão",+ "spaces.agents.list_label": "Agentes neste Space",+ "spaces.switcher.label": "Seletor do Cua Spaces",+ "spaces.switcher.drop_hint": "Solte em um Space para Teleportar",+ "spaces.switcher.drop_hint_app": "Solte em um Space para Teleportar {app}",+ "spaces.switcher.search_hint": "Pesquisar Spaces",+ "spaces.switcher.search_placeholder": "Pesquisar",+ "spaces.switcher.search_label": "Filtrar o Cua Spaces por nome, SO, status ou local",+ "spaces.switcher.list_label": "Spaces, mais recentes primeiro",+ "spaces.switcher.no_match": "Nenhum Spaces corresponde a “{query}”.",+ "spaces.switcher.create_new": "Criar um novo Space",+ "spaces.switcher.new_drop_label": "Solte aqui para um novo Space",+ "spaces.switcher.new_label": "Novo Space ({shortcut})",+ "spaces.switcher.new_tile": "Novo",+ "spaces.switcher.list_view_label": "Visualização em lista",+ "spaces.switcher.list_view_hint": "Abrir a janela do Cua Spaces",+ "spaces.switcher.settings": "Configurações",+ "spaces.switcher.stop_hotspot_hint": "Parar de compartilhar sua rede",+ "spaces.switcher.stop_hotspot": "Parar de compartilhar rede",+ "spaces.main.sidebar_label": "Spaces",+ "spaces.main.search_label": "Pesquisar Spaces",+ "spaces.main.nav_label": "Barra lateral",+ "spaces.main.agents_label": "Agentes",+ "spaces.main.new_hint": "{label} ({shortcut})",+ "spaces.main.settings_hint": "{label} ({shortcut})",+ "spaces.main.os_tile_label": "{name}, {detail}",+ "spaces.detail.preview_alt": "Área de trabalho de {name}",+ "spaces.wizard.connect_by_address": "Conectar por endereço",+ "spaces.wizard.label": "Novo Space",+ "spaces.wizard.steps_label": "Etapas",+ "spaces.wizard.cost_label": "Custo",+ "spaces.wizard.resources_label": "Recursos",+ "spaces.wizard.summary_label": "Resumo",+ "spaces.viewer.controls_label": "Controles do Space",+ "spaces.viewer.launch_agent_hint": "Iniciar um agente de programação para este Space",+ "spaces.viewer.launch_agent": "Iniciar agente",+ "spaces.viewer.agents_menu_label": "Agentes de programação",+ "spaces.viewer.stop_hotspot_hint": "Parar de compartilhar sua rede com este Space",+ "spaces.viewer.stop_hotspot": "Parar de compartilhar rede",+ "spaces.viewer.teleport_hint": "Teleportar um app para {name}",+ "spaces.viewer.teleport": "Teleportar um app…",+ "spaces.viewer.connecting_to": "Conectando a {name}…",+ "spaces.viewer.stream_ended": "A transmissão terminou.",+ "spaces.viewer.transferring": "Transferindo a sessão…",+ "spaces.viewer.agent_installing": "{agent} ainda está sendo instalado",+ "spaces.viewer.agent_opened": "{agent} está aberto em um terminal neste Space; entre lá",+ "spaces.window_stream.waiting_for": "Aguardando {name}…",+ "spaces.window_stream.no_windows": "Ainda não há janelas abertas em {name}.",+ "spaces.window_stream.close_window": "Fechar janela",+ "spaces.create.creating": "Criando um Space…"+}diff --git a/apps/cua-spaces/src/i18n/locales/pt-BR/teleport.json b/apps/cua-spaces/src/i18n/locales/pt-BR/teleport.jsonnew file mode 100644index 0000000000..c5cb94b8ba--- /dev/null+++ b/apps/cua-spaces/src/i18n/locales/pt-BR/teleport.json@@ -0,0 +1,38 @@+{+ "teleport.sheet.label": "Teleportar um app para {name}",+ "teleport.app_picker.loading": "Procurando apps…",+ "teleport.app_picker.search_placeholder": "Buscar apps",+ "teleport.app_picker.search_label": "Buscar apps",+ "teleport.app_picker.what_moves_label": "O que será movido",+ "teleport.app_picker.also_send_label": "Enviar também",+ "teleport.app_picker.remove_file": "Remover",+ "teleport.app_picker.add_files": "Adicionar arquivos ou pastas…",+ "teleport.app_picker.review": "Revisar",+ "teleport.app_picker.preparing": "Preparando {name}…",+ "teleport.app_picker.preparing_fallback": "o teleporte",+ "teleport.app_picker.consent_title": "Teleportar {app} para {space}?",+ "teleport.app_picker.secret_flag": "Segredo",+ "teleport.app_picker.send_secrets": "Enviar os segredos acima",+ "teleport.app_picker.keyvault_hint": "Mantenha esta sessão conectada protegida no seu Cua Keyvault para que possa ser entregue novamente sem pedir de novo.",+ "teleport.app_picker.save_to_keyvault": "Salvar no Keyvault para reutilizar",+ "teleport.app_picker.send_unencrypted": "Enviar sem criptografia de ponta a ponta",+ "teleport.app_picker.bytes_leave": "{size} saem deste Mac",+ "teleport.app_picker.nothing_leaves": "Nada sai deste Mac",+ "teleport.app_picker.confirm": "Teleportar",+ "teleport.app_picker.running_title": "Teleportando {app} para {space}…",+ "teleport.app_picker.starting": "Iniciando…",+ "teleport.app_picker.event_line": "{kind}: {detail}",+ "teleport.app_picker.done_installed": "{apps} instalado(s).",+ "teleport.app_picker.done_sent": "{count} item(ns) enviado(s).",+ "teleport.app_picker.done_imported": "{count} item(ns) importado(s).",+ "teleport.app_picker.done_opened": "Aberto.",+ "teleport.app_picker.done_title": "{app} está em {space}",+ "teleport.app_picker.done_title_fallback": "O app",+ "teleport.app_picker.error_title": "Não foi possível teleportar",+ "teleport.app_picker.error_title_named": "Não foi possível teleportar {name}",+ "teleport.picker.open_failed": "Não foi possível abrir o seletor de teleporte",+ "teleport.picker.preparing": "Preparando…",+ "teleport.picker.tabs_label": "Teleportar",+ "teleport.picker.search": "Pesquisar",+ "teleport.drop_zone.label": "Teleportar para {name}"+}diff --git a/apps/cua-spaces/src/i18n/locales/zh-Hans/agents.json b/apps/cua-spaces/src/i18n/locales/zh-Hans/agents.jsonnew file mode 100644index 0000000000..d8370a9655--- /dev/null+++ b/apps/cua-spaces/src/i18n/locales/zh-Hans/agents.json@@ -0,0 +1,8 @@+{+ "agents.routine.title": "标题",+ "agents.routine.prompt": "提示词",+ "agents.routine.schedule": "计划",+ "agents.routine.minutes": "分钟",+ "agents.routine.time": "时间",+ "agents.routine.day": "日期"+}diff --git a/apps/cua-spaces/src/i18n/locales/zh-Hans/billing.json b/apps/cua-spaces/src/i18n/locales/zh-Hans/billing.jsonnew file mode 100644index 0000000000..0967ef424b--- /dev/null+++ b/apps/cua-spaces/src/i18n/locales/zh-Hans/billing.json@@ -0,0 +1 @@+{}diff --git a/apps/cua-spaces/src/i18n/locales/zh-Hans/common.json b/apps/cua-spaces/src/i18n/locales/zh-Hans/common.jsonnew file mode 100644index 0000000000..435ea87400--- /dev/null+++ b/apps/cua-spaces/src/i18n/locales/zh-Hans/common.json@@ -0,0 +1,13 @@+{+ "common": {+ "app_name": "Cua Spaces"+ },+ "common.action.dismiss": "关闭",+ "common.action.retry": "重试",+ "common.action.cancel": "取消",+ "common.action.close": "关闭",+ "common.action.reconnect": "重新连接",+ "common.status.connecting": "正在连接…",+ "common.action.back": "返回",+ "common.action.done": "完成"+}diff --git a/apps/cua-spaces/src/i18n/locales/zh-Hans/devices.json b/apps/cua-spaces/src/i18n/locales/zh-Hans/devices.jsonnew file mode 100644index 0000000000..66b3f97d56--- /dev/null+++ b/apps/cua-spaces/src/i18n/locales/zh-Hans/devices.json@@ -0,0 +1,8 @@+{+ "devices.banner.label": "设备注册",+ "devices.section.label": "设备",+ "devices.section.title": "设备",+ "devices.recent.not_yours_label": "不是您的设备",+ "devices.enroll.code_label": "一次性验证码",+ "devices.approve.passphrase_label": "密钥库口令"+}diff --git a/apps/cua-spaces/src/i18n/locales/zh-Hans/errors.json b/apps/cua-spaces/src/i18n/locales/zh-Hans/errors.jsonnew file mode 100644index 0000000000..9b29346cca--- /dev/null+++ b/apps/cua-spaces/src/i18n/locales/zh-Hans/errors.json@@ -0,0 +1,9 @@+{+ "errors.viewer.stream_unreachable": "无法连接到桌面画面。",+ "errors.viewer.agent_open_failed": "无法打开 {agent}:{reason}",+ "errors.viewer.stop_hotspot_failed": "无法停止共享",+ "errors.spaces.create_failed": "无法创建 Space",+ "errors.spaces.refresh_failed": "无法刷新 Spaces。之前加载的行可能已过期。",+ "errors.spaces.load_failed": "无法加载 Spaces。请再刷新一次。",+ "errors.settings.sign_in_start_failed": "无法开始登录"+}diff --git a/apps/cua-spaces/src/i18n/locales/zh-Hans/installer.json b/apps/cua-spaces/src/i18n/locales/zh-Hans/installer.jsonnew file mode 100644index 0000000000..337b66eecb--- /dev/null+++ b/apps/cua-spaces/src/i18n/locales/zh-Hans/installer.json@@ -0,0 +1,8 @@+{+ "installer.flow.label": "设置 Cua",+ "installer.flow.steps_label": "设置步骤",+ "installer.prompts.label": "试着问问你的智能体:",+ "installer.prompts.copied": "已复制",+ "installer.agents.results_label": "设置结果",+ "installer.agents.detected_label": "检测到的智能体"+}diff --git a/apps/cua-spaces/src/i18n/locales/zh-Hans/onboarding.json b/apps/cua-spaces/src/i18n/locales/zh-Hans/onboarding.jsonnew file mode 100644index 0000000000..d7ff33c3e2--- /dev/null+++ b/apps/cua-spaces/src/i18n/locales/zh-Hans/onboarding.json@@ -0,0 +1,3 @@+{+ "onboarding.mode.change_later": "之后可以在 Spaces 列表的“此电脑”中更改。"+}diff --git a/apps/cua-spaces/src/i18n/locales/zh-Hans/settings.json b/apps/cua-spaces/src/i18n/locales/zh-Hans/settings.jsonnew file mode 100644index 0000000000..7ae6cac1c4--- /dev/null+++ b/apps/cua-spaces/src/i18n/locales/zh-Hans/settings.json@@ -0,0 +1,10 @@+{+ "settings.this_machine.sharing_label": "共享",+ "settings.cloud.clouds_label": "云",+ "settings.cloud.sign_in_found": "已找到登录信息",+ "settings.cloud.touches_label": "Cua 将访问的内容",+ "settings.cloud.checks_label": "检查",+ "settings.accessibility.enable_window_drag": "在“系统设置 → 隐私与安全性 → 辅助功能”中启用窗口拖动",+ "settings.language.label": "语言",+ "settings.language.system_default": "系统默认"+}diff --git a/apps/cua-spaces/src/i18n/locales/zh-Hans/sharing.json b/apps/cua-spaces/src/i18n/locales/zh-Hans/sharing.jsonnew file mode 100644index 0000000000..a6f2eb81f7--- /dev/null+++ b/apps/cua-spaces/src/i18n/locales/zh-Hans/sharing.json@@ -0,0 +1,4 @@+{+ "sharing.sheet.role_label": "角色",+ "sharing.sheet.shared_with_label": "共享对象"+}diff --git a/apps/cua-spaces/src/i18n/locales/zh-Hans/spaces.json b/apps/cua-spaces/src/i18n/locales/zh-Hans/spaces.jsonnew file mode 100644index 0000000000..b15757bf7d--- /dev/null+++ b/apps/cua-spaces/src/i18n/locales/zh-Hans/spaces.json@@ -0,0 +1,64 @@+{+ "spaces.tile.hotspot_badge": "正通过你的网络浏览",+ "spaces.tile.delete_label": "删除 {name}",+ "spaces.tile.delete_hint": "删除此 Space",+ "spaces.tile.power_label": "{action} {name}",+ "spaces.tile.teleport_label": "将应用传送到 {name}",+ "spaces.tile.teleport_hint": "将应用传送到此沙盒",+ "spaces.tile.pin_label": "将 {name} 固定为画中画",+ "spaces.tile.pin_hint": "固定为画中画",+ "spaces.thumbnail.deleting": "正在删除…",+ "spaces.brand.cua_spaces": "Cua Spaces",+ "spaces.ambient.teleport": "传送到 Cua",+ "spaces.facts.label": "详情",+ "spaces.windows.stream_label": "串流",+ "spaces.agents.list_label": "此 Space 中的智能体",+ "spaces.switcher.label": "Cua Spaces 切换器",+ "spaces.switcher.drop_hint": "拖放到 Space 上即可传送",+ "spaces.switcher.drop_hint_app": "拖放到 Space 上即可传送 {app}",+ "spaces.switcher.search_hint": "搜索 Spaces",+ "spaces.switcher.search_placeholder": "搜索",+ "spaces.switcher.search_label": "按名称、操作系统、状态或位置筛选 Cua Spaces",+ "spaces.switcher.list_label": "Spaces,按最近使用排序",+ "spaces.switcher.no_match": "没有与“{query}”匹配的 Spaces。",+ "spaces.switcher.create_new": "创建新 Space",+ "spaces.switcher.new_drop_label": "拖放到此处以新建 Space",+ "spaces.switcher.new_label": "新建 Space({shortcut})",+ "spaces.switcher.new_tile": "新建",+ "spaces.switcher.list_view_label": "列表视图",+ "spaces.switcher.list_view_hint": "打开 Cua Spaces 窗口",+ "spaces.switcher.settings": "设置",+ "spaces.switcher.stop_hotspot_hint": "停止共享你的网络",+ "spaces.switcher.stop_hotspot": "停止共享网络",+ "spaces.main.sidebar_label": "Spaces",+ "spaces.main.search_label": "搜索 Spaces",+ "spaces.main.nav_label": "侧边栏",+ "spaces.main.agents_label": "智能体",+ "spaces.main.new_hint": "{label}({shortcut})",+ "spaces.main.settings_hint": "{label}({shortcut})",+ "spaces.main.os_tile_label": "{name},{detail}",+ "spaces.detail.preview_alt": "{name} 桌面",+ "spaces.wizard.connect_by_address": "通过地址连接",+ "spaces.wizard.label": "新建 Space",+ "spaces.wizard.steps_label": "步骤",+ "spaces.wizard.cost_label": "费用",+ "spaces.wizard.resources_label": "资源",+ "spaces.wizard.summary_label": "摘要",+ "spaces.viewer.controls_label": "Space 控制",+ "spaces.viewer.launch_agent_hint": "为此 Space 启动编程智能体",+ "spaces.viewer.launch_agent": "启动智能体",+ "spaces.viewer.agents_menu_label": "编程智能体",+ "spaces.viewer.stop_hotspot_hint": "停止与此 Space 共享您的网络",+ "spaces.viewer.stop_hotspot": "停止共享网络",+ "spaces.viewer.teleport_hint": "将应用传送到 {name}",+ "spaces.viewer.teleport": "传送应用…",+ "spaces.viewer.connecting_to": "正在连接到 {name}…",+ "spaces.viewer.stream_ended": "串流已结束。",+ "spaces.viewer.transferring": "正在转移会话…",+ "spaces.viewer.agent_installing": "{agent} 仍在安装",+ "spaces.viewer.agent_opened": "{agent} 已在此 Space 的终端中打开,请在终端中登录",+ "spaces.window_stream.waiting_for": "正在等待 {name}…",+ "spaces.window_stream.no_windows": "{name} 中还没有打开的窗口。",+ "spaces.window_stream.close_window": "关闭窗口",+ "spaces.create.creating": "正在创建 Space…"+}diff --git a/apps/cua-spaces/src/i18n/locales/zh-Hans/teleport.json b/apps/cua-spaces/src/i18n/locales/zh-Hans/teleport.jsonnew file mode 100644index 0000000000..85fc4972b2--- /dev/null+++ b/apps/cua-spaces/src/i18n/locales/zh-Hans/teleport.json@@ -0,0 +1,38 @@+{+ "teleport.sheet.label": "将应用传送到 {name}",+ "teleport.app_picker.loading": "正在查找应用…",+ "teleport.app_picker.search_placeholder": "搜索应用",+ "teleport.app_picker.search_label": "搜索应用",+ "teleport.app_picker.what_moves_label": "将传送的内容",+ "teleport.app_picker.also_send_label": "同时发送",+ "teleport.app_picker.remove_file": "移除",+ "teleport.app_picker.add_files": "添加文件或文件夹…",+ "teleport.app_picker.review": "查看",+ "teleport.app_picker.preparing": "正在准备 {name}…",+ "teleport.app_picker.preparing_fallback": "传送",+ "teleport.app_picker.consent_title": "将 {app} 传送到 {space}?",+ "teleport.app_picker.secret_flag": "机密",+ "teleport.app_picker.send_secrets": "发送上方的密钥",+ "teleport.app_picker.keyvault_hint": "将此已登录的会话密封保存在您的 Cua Keyvault 中,之后无需再次询问即可再次发送。",+ "teleport.app_picker.save_to_keyvault": "保存到 Keyvault 以便重复使用",+ "teleport.app_picker.send_unencrypted": "不使用端到端加密发送",+ "teleport.app_picker.bytes_leave": "{size} 将离开这台 Mac",+ "teleport.app_picker.nothing_leaves": "没有任何内容会离开这台 Mac",+ "teleport.app_picker.confirm": "传送",+ "teleport.app_picker.running_title": "正在将 {app} 传送到 {space}…",+ "teleport.app_picker.starting": "正在开始…",+ "teleport.app_picker.event_line": "{kind}:{detail}",+ "teleport.app_picker.done_installed": "已安装 {apps}。",+ "teleport.app_picker.done_sent": "已发送 {count} 项。",+ "teleport.app_picker.done_imported": "已导入 {count} 项。",+ "teleport.app_picker.done_opened": "已打开。",+ "teleport.app_picker.done_title": "{app} 已在 {space} 中",+ "teleport.app_picker.done_title_fallback": "该应用",+ "teleport.app_picker.error_title": "无法传送",+ "teleport.app_picker.error_title_named": "无法传送 {name}",+ "teleport.picker.open_failed": "无法打开传送选择器",+ "teleport.picker.preparing": "正在准备…",+ "teleport.picker.tabs_label": "传送",+ "teleport.picker.search": "搜索",+ "teleport.drop_zone.label": "传送到 {name}"+}diff --git a/apps/cua-spaces/src/i18n/preference.ts b/apps/cua-spaces/src/i18n/preference.tsnew file mode 100644index 0000000000..aa4c4e8f32--- /dev/null+++ b/apps/cua-spaces/src/i18n/preference.ts@@ -0,0 +1,43 @@+// SPDX-License-Identifier: FSL-1.1-MIT+// Copyright (c) 2026 Cua AI, Inc.++import i18next from "i18next";++import { AVAILABLE_LOCALES, LOCALE_SETTING_KEY, detectLocale } from "./index";+import { reportUiLocale } from "./reportLocale";++/** Each language in its own language, so a user can find theirs whatever the UI says. */+export const LOCALE_ENDONYMS: Record<(typeof AVAILABLE_LOCALES)[number], string> = {+ en: "English",+ "zh-Hans": "简体中文",+ ko: "한국어",+ "pt-BR": "Português (Brasil)",+ ja: "日本語",+ es: "Español",+};++/** The Settings choice: a locale code, or "system" when none is saved. */+export function savedLocaleChoice(): string {+ try {+ const saved = window.localStorage?.getItem(LOCALE_SETTING_KEY);+ return saved && (AVAILABLE_LOCALES as readonly string[]).includes(saved) ? saved : "system";+ } catch {+ return "system";+ }+}++/**+ * Save the Settings language choice (`"system"` clears it), switch the UI+ * live and tell telemetry which language is now in use.+ */+export async function setLocaleChoice(choice: string): Promise<void> {+ try {+ if (choice === "system") window.localStorage?.removeItem(LOCALE_SETTING_KEY);+ else if ((AVAILABLE_LOCALES as readonly string[]).includes(choice)) window.localStorage?.setItem(LOCALE_SETTING_KEY, choice);+ else return;+ } catch {+ // Storage blocked: the switch still applies for this session.+ }+ await i18next.changeLanguage(detectLocale(choice === "system" ? null : choice));+ reportUiLocale();+}diff --git a/apps/cua-spaces/src/i18n/renderOverflow.test.tsx b/apps/cua-spaces/src/i18n/renderOverflow.test.tsxnew file mode 100644index 0000000000..b71af3c11b--- /dev/null+++ b/apps/cua-spaces/src/i18n/renderOverflow.test.tsx@@ -0,0 +1,61 @@+// SPDX-License-Identifier: FSL-1.1-MIT+// Copyright (c) 2026 Cua AI, Inc.++// Render check for overflow in every language. jsdom has no layout, so this+// measures what would overflow a control from the text itself: every label+// on key screens must be translated (no raw key, no ICU left over) and fit a+// display-width budget, counting CJK characters as two columns. Real pixels+// are checked by the Playwright parity run in apps/cua-spaces-web once that+// UI is on i18n.+import { act, cleanup, render } from "@testing-library/react";+import { afterEach, beforeEach, describe, expect, it, vi } from "vitest";++import { createFakeHostBridge } from "../native/host";+import { Onboarding } from "../components/Onboarding";+import { SettingsPanel } from "../components/SettingsPanel";+import i18n, { AVAILABLE_LOCALES } from "./index";++/** Terminal-style columns: wide (CJK, full-width) characters take two. */+function columns(text: string): number {+ let n = 0;+ for (const ch of text) n += /[ᄀ-ᅟ⺀-가-힣豈-︰--⦆¢-₩]/u.test(ch) ? 2 : 1;+ return n;+}++/** What one control (button, tab, option, heading, label) may spend on its text. */+const CONTROL_BUDGET = 48;++function controlTexts(root: HTMLElement): string[] {+ const nodes = root.querySelectorAll("button, [role=radio], [role=tab], option, h1, h2, h3, label, .st-label");+ return [...nodes].map((n) => (n.textContent ?? "").trim()).filter(Boolean);+}++beforeEach(() => window.localStorage.clear());+afterEach(async () => {+ cleanup();+ await act(async () => {+ await i18n.changeLanguage("en");+ });+});++describe.each(AVAILABLE_LOCALES as readonly string[])("render overflow: %s", (lng) => {+ const screens: Record<string, () => ReturnType<typeof render>> = {+ onboarding: () => render(<Onboarding host={createFakeHostBridge()} onDone={vi.fn()} />),+ settings: () =>+ render(<SettingsPanel menuBar={false} onMenuBarMode={vi.fn()} onOpenExternal={vi.fn()} onClose={vi.fn()} />),+ };++ for (const [name, mount] of Object.entries(screens)) {+ it(`${name}: no raw keys, no ICU left, controls fit`, async () => {+ await act(async () => {+ await i18n.changeLanguage(lng);+ });+ const { container } = mount();+ const text = container.textContent ?? "";+ expect(text).not.toMatch(/\b[a-z]+\.[a-z_]+\.[a-z_]+\b/); // an untranslated key+ expect(text).not.toMatch(/\{[a-z_]+[,}]/); // an unformatted ICU variable+ const tooWide = controlTexts(container).filter((s) => columns(s) > CONTROL_BUDGET);+ expect(tooWide).toEqual([]);+ });+ }+});diff --git a/apps/cua-spaces/src/i18n/translations.test.ts b/apps/cua-spaces/src/i18n/translations.test.tsnew file mode 100644index 0000000000..54312626c5--- /dev/null+++ b/apps/cua-spaces/src/i18n/translations.test.ts@@ -0,0 +1,71 @@+// SPDX-License-Identifier: FSL-1.1-MIT+// Copyright (c) 2026 Cua AI, Inc.++// Guards the generated translations: every string in locales/<lng> must still+// be valid next to its English (ICU, variables, tags, plural categories,+// product names) and no file may carry a key English no longer has. A string+// English added or changed may be missing or one revision behind until the+// translation PR merges, so completeness is not required here.+// @ts-expect-error node:fs is untyped here+import { existsSync, readFileSync, readdirSync } from "node:fs";+import { describe, expect, it } from "vitest";++// @ts-expect-error plain .mjs shared with the translation script+import { TARGET_LOCALES, analyze, validateTranslation } from "../../scripts/i18n/lib.mjs";+import glossary from "./glossary.json";+import { AVAILABLE_LOCALES, NAMESPACES } from "./index";++declare const process: { cwd(): string };++const root = `${process.cwd()}/src/i18n/locales`;+/** Dotted-key entries of a (possibly nested) catalog. */+const flatten = (obj: Record<string, unknown>, prefix = "", out: Record<string, string> = {}): Record<string, string> => {+ for (const [k, v] of Object.entries(obj)) {+ if (v && typeof v === "object") flatten(v as Record<string, unknown>, `${prefix}${k}.`, out);+ else out[`${prefix}${k}`] = v as string;+ }+ return out;+};+const read = (lng: string, ns: string): Record<string, string> => {+ const p = `${root}/${lng}/${ns}.json`;+ return existsSync(p) ? flatten(JSON.parse(readFileSync(p, "utf8"))) : {};+};++describe("translations", () => {+ it("ship exactly the target languages", () => {+ expect([...AVAILABLE_LOCALES].sort()).toEqual(["en", ...TARGET_LOCALES].sort());+ expect((readdirSync(root) as string[]).sort()).toEqual([...AVAILABLE_LOCALES].sort());+ });++ it("English strings all parse as ICU", () => {+ for (const ns of NAMESPACES) {+ for (const [key, value] of Object.entries(read("en", ns))) {+ expect(analyze(value).error, key).toBeUndefined();+ }+ }+ });++ for (const lng of TARGET_LOCALES as string[]) {+ it(`${lng}: every string is valid and matches an English key`, () => {+ const problems: string[] = [];+ for (const ns of NAMESPACES) {+ const en = read("en", ns);+ for (const [key, translation] of Object.entries(read(lng, ns))) {+ if (!(key in en)) {+ problems.push(`${ns}/${key}: no such English key`);+ continue;+ }+ const v = validateTranslation({+ key,+ source: en[key],+ translation,+ locale: lng,+ doNotTranslate: glossary.doNotTranslate,+ });+ problems.push(...v.errors);+ }+ }+ expect(problems).toEqual([]);+ });+ }+});