Skip to content

armgit / cua

Public Imported from GitHub
0

Scale computer-use 2.0 with open-source drivers, cross-OS sandboxes, and benchmarks for training, evaluation, and data generation.

feat(spaces): extract Spaces list and card strings to i18n (CUA-1928) (#5578)

Francesco Bonaccifabc02adabdd
diff --git a/apps/cua-spaces/src/components/Ambient.tsx b/apps/cua-spaces/src/components/Ambient.tsx
index fd3619359e..e1c6c2528f 100644
--- a/apps/cua-spaces/src/components/Ambient.tsx
+++ b/apps/cua-spaces/src/components/Ambient.tsx
@@ -7,6 +7,7 @@ import type { Space } from "../model/types";
import type { DisplayStyle } from "../native/types";
import { HotspotGlyph, RemoteAccessGlyph } from "./HotspotGlyph";
import { RadialProgress } from "./RadialProgress";
+import { useT } from "../i18n";
interface AmbientProps {
spaces: readonly Space[];
@@ -44,6 +45,7 @@ export function Ambient({
hotspotActive = false,
transfer,
}: AmbientProps) {
+ const t = useT("spaces");
const dots = ambientDots(spaces);
const active = countActive(spaces);
// The tab's rows and the left-of-notch indicator are the core's
@@ -81,9 +83,9 @@ export function Ambient({
className="ambient-teleport-box"
role="status"
aria-hidden={!teleportOpen}
- aria-label="Teleport to Cua"
+ aria-label={t("spaces.ambient.teleport")}
>
- <span className="ambient-teleport-label">Teleport to Cua</span>
+ <span className="ambient-teleport-label">{t("spaces.ambient.teleport")}</span>
</div>
);
diff --git a/apps/cua-spaces/src/components/FactList.tsx b/apps/cua-spaces/src/components/FactList.tsx
index 85bf4e7c51..27561acb7c 100644
--- a/apps/cua-spaces/src/components/FactList.tsx
+++ b/apps/cua-spaces/src/components/FactList.tsx
@@ -4,6 +4,7 @@
import type { SpaceDetailView } from "../model/window";
import { CopyButton, type WriteText } from "./CopyButton";
import { Sym } from "./desktop/Sym";
+import { useT } from "../i18n";
/**
* A Space's facts (the core's `detail_live`): one line each, the full value
@@ -12,8 +13,9 @@ import { Sym } from "./desktop/Sym";
* (an emulated local Space's Architecture).
*/
export function FactList({ facts, copyText }: { facts: SpaceDetailView["facts"]; copyText?: WriteText }) {
+ const t = useT("spaces");
return (
- <dl className="dw-list" aria-label="Details">
+ <dl className="dw-list" aria-label={t("spaces.facts.label")}>
{facts.map((fact) => (
<div key={fact.label}>
<dt>{fact.label}</dt>
diff --git a/apps/cua-spaces/src/components/SpaceAgentList.tsx b/apps/cua-spaces/src/components/SpaceAgentList.tsx
index 685949fd93..20a384031c 100644
--- a/apps/cua-spaces/src/components/SpaceAgentList.tsx
+++ b/apps/cua-spaces/src/components/SpaceAgentList.tsx
@@ -15,6 +15,7 @@ import {
import { detailCopy } from "../model/window";
import type { TeleportBridge } from "../native/teleport";
import { AgentGlyph } from "./NavGlyphs";
+import { useT } from "../i18n";
/**
* The AGENTS section of a Space's page: one row per coding-agent run inside it.
@@ -60,6 +61,7 @@ export function SpaceAgentList({
teleport: TeleportBridge;
query?: string;
}) {
+ const t = useT("spaces");
const copy = detailCopy();
const [load, setLoad] = useState<Load>({ kind: "loading" });
@@ -111,7 +113,7 @@ export function SpaceAgentList({
{load.runs.length > 0 ? copy.agentsNoMatch : copy.agentsEmpty}
</p>
) : (
- <ul className="swl-rows" aria-label="Agents in this Space">
+ <ul className="swl-rows" aria-label={t("spaces.agents.list_label")}>
{runs.map((run) => (
<li key={run.runId}>
{/* The reason comes from the shell, so the tooltip explains the
diff --git a/apps/cua-spaces/src/components/SpaceTile.tsx b/apps/cua-spaces/src/components/SpaceTile.tsx
index 911cd0e9bb..049b3ea325 100644
--- a/apps/cua-spaces/src/components/SpaceTile.tsx
+++ b/apps/cua-spaces/src/components/SpaceTile.tsx
@@ -13,6 +13,7 @@ import { OsIcon } from "./OsIcon";
import { SfIcon } from "./SfIcon";
import { STATUS_LABEL, StatusDot } from "./StatusDot";
import { Thumbnail } from "./Thumbnail";
+import { useT } from "../i18n";
interface SpaceTileProps {
space: Space;
@@ -107,6 +108,7 @@ function useLiveThumbnail(space: Space): { shot: string | null; preload: () => v
}
export function SpaceTile({ space, focused, onFocus, onSelect, onPin, onShareApp, hotspot = false, onDelete, onPower, dropMode = false, dropTarget = false, dropGhost = null }: SpaceTileProps) {
+ const t = useT("spaces");
const ref = useRef<HTMLButtonElement>(null);
const { shot, preload } = useLiveThumbnail(space);
// The core's Deleting row: shows the instant Delete is pressed.
@@ -166,7 +168,7 @@ export function SpaceTile({ space, focused, onFocus, onSelect, onPin, onShareApp
local={space.provider === "local"}
/>
{hotspot && (
- <span className="tile-hotspot-badge" title="Browsing through your network" aria-hidden="true">
+ <span className="tile-hotspot-badge" title={t("spaces.tile.hotspot_badge")} aria-hidden="true">
<SfIcon
name="personalhotspot"
size={11}
@@ -193,8 +195,8 @@ export function SpaceTile({ space, focused, onFocus, onSelect, onPin, onShareApp
className="tile-action tile-delete"
data-owns-enter
tabIndex={-1}
- aria-label={`Delete ${space.name}`}
- title="Delete this Space"
+ aria-label={t("spaces.tile.delete_label", { name: space.name })}
+ title={t("spaces.tile.delete_hint")}
onClick={(event) => {
event.stopPropagation();
onDelete?.();
@@ -210,7 +212,7 @@ export function SpaceTile({ space, focused, onFocus, onSelect, onPin, onShareApp
data-owns-enter
data-busy={power.busy ? "true" : undefined}
tabIndex={-1}
- aria-label={`${power.help} ${space.name}`}
+ aria-label={t("spaces.tile.power_label", { action: power.help, name: space.name })}
title={power.help}
disabled={!power.enabled}
onClick={(event) => {
@@ -231,8 +233,8 @@ export function SpaceTile({ space, focused, onFocus, onSelect, onPin, onShareApp
className="tile-action tile-share"
data-owns-enter
tabIndex={-1}
- aria-label={`Teleport an app to ${space.name}`}
- title="Teleport an app to this sandbox"
+ aria-label={t("spaces.tile.teleport_label", { name: space.name })}
+ title={t("spaces.tile.teleport_hint")}
onClick={(event) => {
event.stopPropagation();
onShareApp?.();
@@ -247,8 +249,8 @@ export function SpaceTile({ space, focused, onFocus, onSelect, onPin, onShareApp
className="tile-action tile-pin"
data-owns-enter
tabIndex={-1}
- aria-label={`Pin ${space.name} as picture-in-picture`}
- title="Pin as picture-in-picture"
+ aria-label={t("spaces.tile.pin_label", { name: space.name })}
+ title={t("spaces.tile.pin_hint")}
onClick={(event) => {
event.stopPropagation();
onPin?.();
diff --git a/apps/cua-spaces/src/components/SpaceWindowList.tsx b/apps/cua-spaces/src/components/SpaceWindowList.tsx
index e425ba4cc0..4755af6cbe 100644
--- a/apps/cua-spaces/src/components/SpaceWindowList.tsx
+++ b/apps/cua-spaces/src/components/SpaceWindowList.tsx
@@ -9,6 +9,7 @@ import { pipClick, pipReduce, streamSection, type PipEvent, type StreamRow } fro
import type { TeleportBridge } from "../native/teleport";
import { Sym } from "./desktop/Sym";
import { OsIconMark } from "./OsIcon";
+import { useT } from "../i18n";
interface SpaceWindowListProps {
space: Pick<Space, "id" | "os" | "osName">;
@@ -43,6 +44,7 @@ export function SpaceWindowList({
onPipWindow,
query = "",
}: SpaceWindowListProps) {
+ const t = useT("spaces");
const spaceId = space.id;
const [windows, setWindows] = useState<RemoteWindow[] | null>(null);
const [failed, setFailed] = useState(false);
@@ -172,7 +174,7 @@ export function SpaceWindowList({
return (
<div className="ssr">
- <ul className="ssr-rows" aria-label="Stream">
+ <ul className="ssr-rows" aria-label={t("spaces.windows.stream_label")}>
{section.rows.map((row) => (
<li className="ssr-row" key={row.id} data-kind={row.kind}>
<span className="ssr-icon" aria-hidden="true">
diff --git a/apps/cua-spaces/src/components/SpacesStackMark.tsx b/apps/cua-spaces/src/components/SpacesStackMark.tsx
index de23b3304c..3b093f1d7f 100644
--- a/apps/cua-spaces/src/components/SpacesStackMark.tsx
+++ b/apps/cua-spaces/src/components/SpacesStackMark.tsx
@@ -2,6 +2,7 @@
// Copyright (c) 2026 Cua AI, Inc.
import cuaMark from "../assets/brand/cua-mark-white.svg";
+import { useT } from "../i18n";
/** Back to front: offset, fill token, shadow strength. */
const LAYERS = [
@@ -25,6 +26,7 @@ const LOGO = 50;
* (scripts/icons/gen-icon-svgs.py).
*/
export function SpacesStackMark({ size = 120 }: { size?: number }) {
+ const t = useT("spaces");
const view = SIDE + LAYERS[LAYERS.length - 1]!.offset + 8;
return (
<svg
@@ -33,7 +35,7 @@ export function SpacesStackMark({ size = 120 }: { size?: number }) {
height={size}
viewBox={`-4 -2 ${view} ${view}`}
role="img"
- aria-label="Cua Spaces"
+ aria-label={t("spaces.brand.cua_spaces")}
>
<defs>
{LAYERS.map((l, i) => (
diff --git a/apps/cua-spaces/src/components/Switcher.tsx b/apps/cua-spaces/src/components/Switcher.tsx
index 795609b5fd..a10402bd82 100644
--- a/apps/cua-spaces/src/components/Switcher.tsx
+++ b/apps/cua-spaces/src/components/Switcher.tsx
@@ -12,6 +12,7 @@ import { ListGlyph } from "./NavGlyphs";
import { SearchGlyph } from "./SearchGlyph";
import { GearGlyph } from "./SettingsPanel";
import { SpaceTile } from "./SpaceTile";
+import { useT } from "../i18n";
interface SwitcherProps {
spaces: readonly Space[];
@@ -78,6 +79,7 @@ export function Switcher({
footer,
spacesList,
}: SwitcherProps) {
+ const t = useT("spaces");
const newRef = useRef<HTMLButtonElement>(null);
const searchRef = useRef<HTMLInputElement>(null);
const [query, setQuery] = useState("");
@@ -117,22 +119,22 @@ export function Switcher({
}, [focusIndex]);
return (
- <section className="shelf switcher" aria-label="Cua Spaces switcher" data-drop-mode={dropMode ? "true" : undefined}>
+ <section className="shelf switcher" aria-label={t("spaces.switcher.label")} data-drop-mode={dropMode ? "true" : undefined}>
<header className="shelf-header">
{dropMode ? (
<p className="shelf-drop-hint" role="status">
- Drop on a Space to Teleport{dragAppName ? ` ${dragAppName}` : ""}
+ {dragAppName ? t("spaces.switcher.drop_hint_app", { app: dragAppName }) : t("spaces.switcher.drop_hint")}
</p>
) : (
- <label className="switcher-search" title="Search Spaces">
+ <label className="switcher-search" title={t("spaces.switcher.search_hint")}>
<SearchGlyph className="glyph switcher-search-glyph" />
<input
ref={searchRef}
type="search"
className="switcher-search-input"
- placeholder="Search"
+ placeholder={t("spaces.switcher.search_placeholder")}
value={query}
- aria-label="Filter Cua Spaces by name, OS, status, or location"
+ aria-label={t("spaces.switcher.search_label")}
spellCheck={false}
autoComplete="off"
// The filter box is focused on open, so let navigation + shortcut
@@ -165,13 +167,13 @@ export function Switcher({
)}
</header>
- <div className="tile-row" role="listbox" aria-label="Spaces, most recent first">
+ <div className="tile-row" role="listbox" aria-label={t("spaces.switcher.list_label")}>
{query.trim() && filtered.length === 0 ? (
// No matches: fold the "New" action into the empty message as a link.
<p className="switcher-empty" role="status">
- No Spaces match “{query.trim()}”.{" "}
+ {t("spaces.switcher.no_match", { query: query.trim() })}{" "}
<button type="button" className="link-button" data-owns-enter onClick={onNew}>
- Create a new Space
+ {t("spaces.switcher.create_new")}
</button>
</p>
) : (
@@ -190,7 +192,7 @@ export function Switcher({
tabIndex={focusIndex === NEW_TILE_INDEX ? 0 : -1}
onFocus={() => onFocus(NEW_TILE_INDEX)}
onClick={onNew}
- aria-label={dropMode ? "Drop here for a new Space" : `New Space (${MOD} N)`}
+ aria-label={dropMode ? t("spaces.switcher.new_drop_label") : t("spaces.switcher.new_label", { shortcut: `${MOD} N` })}
>
<span className="tile-frame tile-new-frame">
<span className="tile-plus" aria-hidden="true">
@@ -198,7 +200,7 @@ export function Switcher({
</span>
</span>
<span className="tile-caption">
- <span className="tile-name">New</span>
+ <span className="tile-name">{t("spaces.switcher.new_tile")}</span>
</span>
</button>
{/* While teleporting, drop "This Mac": you cannot teleport to the local machine.
@@ -241,8 +243,8 @@ export function Switcher({
type="button"
className="settings-gear"
data-owns-enter
- aria-label="List view"
- title="Open the Cua Spaces window"
+ aria-label={t("spaces.switcher.list_view_label")}
+ title={t("spaces.switcher.list_view_hint")}
onClick={() => openList()}
>
<ListGlyph className="glyph" />
@@ -251,8 +253,8 @@ export function Switcher({
type="button"
className="settings-gear"
data-owns-enter
- aria-label="Settings"
- title="Settings"
+ aria-label={t("spaces.switcher.settings")}
+ title={t("spaces.switcher.settings")}
onClick={() => void spacesListBridge.openSettings().catch(() => {})}
>
<GearGlyph className="glyph" />
@@ -266,10 +268,10 @@ export function Switcher({
className="switcher-hotspot-stop"
data-owns-enter
onClick={onStopHotspot}
- title="Stop sharing your network"
+ title={t("spaces.switcher.stop_hotspot_hint")}
>
<HotspotGlyph className="switcher-hotspot-stop-glyph" />
- Stop sharing network
+ {t("spaces.switcher.stop_hotspot")}
</button>
)}
{notice && (
diff --git a/apps/cua-spaces/src/components/Thumbnail.tsx b/apps/cua-spaces/src/components/Thumbnail.tsx
index 7f80041a71..87cd1a78b2 100644
--- a/apps/cua-spaces/src/components/Thumbnail.tsx
+++ b/apps/cua-spaces/src/components/Thumbnail.tsx
@@ -3,6 +3,7 @@
import type { SpaceStatus, ThumbnailScene } from "../model/types";
import { RadialProgress } from "./RadialProgress";
+import { useT } from "../i18n";
interface ThumbnailProps {
scene: ThumbnailScene;
@@ -50,6 +51,7 @@ export function Thumbnail({
deleting,
local,
}: ThumbnailProps) {
+ const t = useT("spaces");
const live = status === "running" || status === "local";
// Overlays render over BOTH the screenshot and the synthetic scene, so a
// starting tile shows the pie even if it has a cached shot, and a
@@ -60,7 +62,7 @@ export function Thumbnail({
className="thumb-radial"
estimateMs={local ? LOCAL_DELETE_ESTIMATE_MS : undefined}
/>
- <span className="thumb-provisioning-status">Deleting…</span>
+ <span className="thumb-provisioning-status">{t("spaces.thumbnail.deleting")}</span>
</span>
) : status === "provisioning" ? (
<span className="thumb-provisioning">
diff --git a/apps/cua-spaces/src/components/desktop/MainWindow.tsx b/apps/cua-spaces/src/components/desktop/MainWindow.tsx
index 4d630db7d7..3b84f9e5fb 100644
--- a/apps/cua-spaces/src/components/desktop/MainWindow.tsx
+++ b/apps/cua-spaces/src/components/desktop/MainWindow.tsx
@@ -77,6 +77,7 @@ import { useExperiments } from '../../state/experiments';
import { createLoginItemBridge, type LoginItemBridge } from '../../native/loginItem';
import { launchPlan, readLaunchChoice, writeLaunchChoice } from '../../model/loginItem';
import { Sym } from './Sym';
+import { useT } from "../../i18n";
export interface MainWindowProps {
fleet?: FleetBridge;
@@ -149,6 +150,8 @@ export function MainWindow({
now = Date.now,
forceOnboarding = false,
}: MainWindowProps) {
+ const t = useT("spaces");
+ const tc = useT("common");
const fleet = useMemo(() => fleetProp ?? createFleetBridge(), [fleetProp]);
const host = useMemo(() => hostProp ?? createHostBridge(), [hostProp]);
const installer = useMemo(() => installerProp ?? createInstallerBridge(), [installerProp]);
@@ -583,13 +586,13 @@ export function MainWindow({
return (
<div className="dw" data-view="spaces">
- <aside className="dw-sidebar" aria-label="Spaces">
+ <aside className="dw-sidebar" aria-label={t("spaces.main.sidebar_label")}>
<div className="dw-sidebar-top" data-tauri-drag-region>
<button
type="button"
className="dw-icon-btn"
aria-label={chrome.newSpaceLabel}
- title={`${chrome.newSpaceLabel} (${chrome.newSpaceShortcut})`}
+ title={t("spaces.main.new_hint", { label: chrome.newSpaceLabel, shortcut: chrome.newSpaceShortcut })}
onClick={() => setWizard(true)}
>
<Sym name="plus" />
@@ -601,13 +604,13 @@ export function MainWindow({
className="dw-input"
type="search"
placeholder={chrome.searchPlaceholder}
- aria-label="Search Spaces"
+ aria-label={t("spaces.main.search_label")}
value={query}
spellCheck={false}
onChange={(event) => setQuery(event.target.value)}
/>
</div>
- <nav className="dw-nav" aria-label="Sidebar">
+ <nav className="dw-nav" aria-label={t("spaces.main.nav_label")}>
{sidebar.thisMachine && (
<ul className="dw-nav-list" role="listbox" aria-label={sidebar.thisMachine.name}>
<SpaceRowItem
@@ -636,7 +639,7 @@ export function MainWindow({
{sidebar.emptyText && !sidebar.thisMachine && !sync.rosterError && (
<p className="dw-hint dw-nav-section">{sidebar.emptyText}</p>
)}
- <ul className="dw-nav-list" aria-label="Agents">
+ <ul className="dw-nav-list" aria-label={t("spaces.main.agents_label")}>
{(
[
['agents', 'Agents'],
@@ -663,7 +666,7 @@ export function MainWindow({
type="button"
className="dw-icon-btn"
aria-label={chrome.settingsLabel}
- title={`${chrome.settingsLabel} (${chrome.settingsShortcut})`}
+ title={t("spaces.main.settings_hint", { label: chrome.settingsLabel, shortcut: chrome.settingsShortcut })}
aria-pressed={view === 'settings'}
onClick={() => setView((v) => (v === 'settings' ? 'spaces' : 'settings'))}
>
@@ -806,7 +809,7 @@ export function MainWindow({
<button
type="button"
className="dw-icon-btn"
- aria-label="Dismiss"
+ aria-label={tc("common.action.dismiss")}
onClick={() => setBanner(null)}
>
<Sym name="xmark" size={12} />
@@ -880,7 +883,7 @@ export function MainWindow({
['linux', chrome.emptyAction, chrome.emptyLinuxDetail],
['macos', chrome.emptyMacosAction, chrome.emptyMacosDetail],
] as const).map(([os, name, detail]) => (
- <button key={os} type="button" className="wz-tile" aria-label={`${name}, ${detail}`} onClick={() => setWizard(os)}>
+ <button key={os} type="button" className="wz-tile" aria-label={t("spaces.main.os_tile_label", { name, detail })} onClick={() => setWizard(os)}>
<span className="wz-tile-icon"><OsIconMark id={`os-${os}`} size={24} /></span>
<span className="wz-tile-title">{name}</span>
<span className="wz-tile-desc">{detail}</span>
@@ -1139,6 +1142,7 @@ function SpaceDetail({
windowDrag: WindowDragBridge;
copyText?: WriteText;
}) {
+ const t = useT("spaces");
const [shot, setShot] = useState<string | null>(null);
const alive = useRef(true);
const reachable = Boolean(space.sdk?.reachable);
@@ -1209,7 +1213,7 @@ function SpaceDetail({
<div className="dw-content-inner">
<div className={shot ? 'dw-preview dw-preview-live' : 'dw-preview'}>
{shot ? (
- <img src={shot} alt={`${space.name} desktop`} />
+ <img src={shot} alt={t("spaces.detail.preview_alt", { name: space.name })} />
) : space.sdk ? (
<div className="dw-preview-empty">
<Sym name="desktopcomputer" />
diff --git a/apps/cua-spaces/src/components/desktop/NewSpaceWizard.tsx b/apps/cua-spaces/src/components/desktop/NewSpaceWizard.tsx
index 596031ec83..4c6b547c8e 100644
--- a/apps/cua-spaces/src/components/desktop/NewSpaceWizard.tsx
+++ b/apps/cua-spaces/src/components/desktop/NewSpaceWizard.tsx
@@ -13,6 +13,7 @@ import { telemetryBridge, type TelemetryBridge } from "../../native/telemetry";
import { hostOs } from "../../model/host";
import { ImageField, type ImageFieldView } from "./ImageField";
import { Sym } from "./Sym";
+import { useT } from "../../i18n";
/** What the wizard asks the app to create (the app core's `CreatePlan`). */
export interface CreatePlan {
@@ -271,6 +272,7 @@ export function NewSpaceWizard({
experiments,
onConnectCloud,
}: NewSpaceWizardProps) {
+ const t = useT("spaces");
const env = useMemo(
() => ({
defaultLocation,
@@ -340,7 +342,7 @@ export function NewSpaceWizard({
if (v.mode === "address") {
return (
- <div className="dw-sheet" role="dialog" aria-label="Connect by address">
+ <div className="dw-sheet" role="dialog" aria-label={t("spaces.wizard.connect_by_address")}>
<AddByAddress
view={v}
address={state.address as { url: string; token: string; name: string }}
@@ -353,9 +355,9 @@ export function NewSpaceWizard({
}
return (
- <div className="dw-sheet" role="dialog" aria-label="New Space">
+ <div className="dw-sheet" role="dialog" aria-label={t("spaces.wizard.label")}>
<div className="wz">
- <ol className="wz-steps" aria-label="Steps">
+ <ol className="wz-steps" aria-label={t("spaces.wizard.steps_label")}>
{v.steps.map((s, index) => (
<li
key={s.label}
@@ -482,12 +484,12 @@ export function NewSpaceWizard({
)}
{v.gpu && <GpuField row={v.gpu} dispatch={dispatch} onOpenExternal={onOpenExternal} />}
{v.price && (
- <p className="wz-price" aria-label="Cost">
+ <p className="wz-price" aria-label={t("spaces.wizard.cost_label")}>
{v.price}
</p>
)}
{v.resourceFacts.length > 0 && (
- <dl className="wz-summary" aria-label="Resources">
+ <dl className="wz-summary" aria-label={t("spaces.wizard.resources_label")}>
{v.resourceFacts.map((fact) => (
<Fragment key={fact.id}>
<dt>{fact.label}</dt>
@@ -550,7 +552,7 @@ export function NewSpaceWizard({
{step === 3 && (
<div className="wz-stack">
<h2 className="wz-title">{v.title}</h2>
- <dl className="wz-summary" aria-label="Summary">
+ <dl className="wz-summary" aria-label={t("spaces.wizard.summary_label")}>
{v.summary.map((fact) => (
<Fragment key={fact.label}>
<dt>{fact.label}</dt>
@@ -778,6 +780,7 @@ function AddByAddress({
onAdd: (url: string, token?: string, name?: string) => Promise<unknown>;
onDone: () => void;
}) {
+ const t = useT("spaces");
const a = view.address;
const submit = () => {
const call = a.submit;
@@ -829,7 +832,7 @@ function AddByAddress({
/>
</label>
{view.price && (
- <p className="wz-price" aria-label="Cost">
+ <p className="wz-price" aria-label={t("spaces.wizard.cost_label")}>
{view.price}
</p>
)}
diff --git a/apps/cua-spaces/src/i18n/locales/en/common.json b/apps/cua-spaces/src/i18n/locales/en/common.json
index 53d341c8bf..905beeb0cf 100644
--- a/apps/cua-spaces/src/i18n/locales/en/common.json
+++ b/apps/cua-spaces/src/i18n/locales/en/common.json
@@ -1,5 +1,6 @@
{
"common": {
"app_name": "Cua Spaces"
- }
+ },
+ "common.action.dismiss": "Dismiss"
}
diff --git a/apps/cua-spaces/src/i18n/locales/en/spaces.json b/apps/cua-spaces/src/i18n/locales/en/spaces.json
index 0967ef424b..4c363e67a9 100644
--- a/apps/cua-spaces/src/i18n/locales/en/spaces.json
+++ b/apps/cua-spaces/src/i18n/locales/en/spaces.json
@@ -1 +1,47 @@
-{}
+{
+ "spaces.tile.hotspot_badge": "Browsing through your network",
+ "spaces.tile.delete_label": "Delete {name}",
+ "spaces.tile.delete_hint": "Delete this Space",
+ "spaces.tile.power_label": "{action} {name}",
+ "spaces.tile.teleport_label": "Teleport an app to {name}",
+ "spaces.tile.teleport_hint": "Teleport an app to this sandbox",
+ "spaces.tile.pin_label": "Pin {name} as picture-in-picture",
+ "spaces.tile.pin_hint": "Pin as picture-in-picture",
+ "spaces.thumbnail.deleting": "Deleting…",
+ "spaces.brand.cua_spaces": "Cua Spaces",
+ "spaces.ambient.teleport": "Teleport to Cua",
+ "spaces.facts.label": "Details",
+ "spaces.windows.stream_label": "Stream",
+ "spaces.agents.list_label": "Agents in this Space",
+ "spaces.switcher.label": "Cua Spaces switcher",
+ "spaces.switcher.drop_hint": "Drop on a Space to Teleport",
+ "spaces.switcher.drop_hint_app": "Drop on a Space to Teleport {app}",
+ "spaces.switcher.search_hint": "Search Spaces",
+ "spaces.switcher.search_placeholder": "Search",
+ "spaces.switcher.search_label": "Filter Cua Spaces by name, OS, status, or location",
+ "spaces.switcher.list_label": "Spaces, most recent first",
+ "spaces.switcher.no_match": "No Spaces match “{query}”.",
+ "spaces.switcher.create_new": "Create a new Space",
+ "spaces.switcher.new_drop_label": "Drop here for a new Space",
+ "spaces.switcher.new_label": "New Space ({shortcut})",
+ "spaces.switcher.new_tile": "New",
+ "spaces.switcher.list_view_label": "List view",
+ "spaces.switcher.list_view_hint": "Open the Cua Spaces window",
+ "spaces.switcher.settings": "Settings",
+ "spaces.switcher.stop_hotspot_hint": "Stop sharing your network",
+ "spaces.switcher.stop_hotspot": "Stop sharing network",
+ "spaces.main.sidebar_label": "Spaces",
+ "spaces.main.search_label": "Search Spaces",
+ "spaces.main.nav_label": "Sidebar",
+ "spaces.main.agents_label": "Agents",
+ "spaces.main.new_hint": "{label} ({shortcut})",
+ "spaces.main.settings_hint": "{label} ({shortcut})",
+ "spaces.main.os_tile_label": "{name}, {detail}",
+ "spaces.detail.preview_alt": "{name} desktop",
+ "spaces.wizard.connect_by_address": "Connect by address",
+ "spaces.wizard.label": "New Space",
+ "spaces.wizard.steps_label": "Steps",
+ "spaces.wizard.cost_label": "Cost",
+ "spaces.wizard.resources_label": "Resources",
+ "spaces.wizard.summary_label": "Summary"
+}
diff --git a/apps/cua-spaces/src/i18n/noHardcodedStrings.test.ts b/apps/cua-spaces/src/i18n/noHardcodedStrings.test.ts
index 7c35c02997..123dad8a4a 100644
--- a/apps/cua-spaces/src/i18n/noHardcodedStrings.test.ts
+++ b/apps/cua-spaces/src/i18n/noHardcodedStrings.test.ts
@@ -19,6 +19,16 @@ export const MIGRATED: string[] = [
"components/Onboarding.tsx",
"components/InstallerFlow.tsx",
"components/desktop/OnboardingPage.tsx",
+ "components/SpaceTile.tsx",
+ "components/Thumbnail.tsx",
+ "components/SpacesStackMark.tsx",
+ "components/Ambient.tsx",
+ "components/FactList.tsx",
+ "components/SpaceWindowList.tsx",
+ "components/SpaceAgentList.tsx",
+ "components/Switcher.tsx",
+ "components/desktop/MainWindow.tsx",
+ "components/desktop/NewSpaceWizard.tsx",
];
/** JSX attributes whose string values the user sees or hears. */