Skip to content

A desktop coding agent with free access to frontier models.

TypeScript

fix: complete Simplified Chinese strings

ogsamrat44a2330fa0c9
diff --git a/apps/app/src/components/chat/message-list.tsx b/apps/app/src/components/chat/message-list.tsx
index 1e6b3075..6ca180dc 100644
--- a/apps/app/src/components/chat/message-list.tsx
+++ b/apps/app/src/components/chat/message-list.tsx
@@ -460,13 +460,13 @@ function FileMessage({ part, tone }: FileMessageProps) {
{downloadUrl ? (
<DropdownMenuItem onClick={handleDownload}>
<Download />
- Download
+ {t("message.download")}
</DropdownMenuItem>
) : null}
{canReveal ? (
<DropdownMenuItem onClick={handleReveal}>
<FolderOpen />
- Reveal in Finder
+ {t("message.reveal_in_folder")}
</DropdownMenuItem>
) : null}
</DropdownMenuContent>
@@ -503,11 +503,11 @@ function CopyMessageButton({ messages }: CopyMessageButtonProps) {
}
return (
- <MessageAction tooltip={copied ? "Copied!" : "Copy"}>
+ <MessageAction tooltip={copied ? t("message.copied") : t("message.copy_short")}>
<Button
variant="ghost"
size="icon"
- aria-label="Copy message"
+ aria-label={t("message.copy")}
onClick={() => void onCopy()}
>
{copied ? <Check /> : <Copy />}
@@ -792,32 +792,32 @@ const UserMessage = React.memo(
<MessageTimestamp message={message} className="mr-1.5" />
<CopyMessageButton messages={[message]} />
{messageText ? (
- <MessageAction tooltip="Edit message">
+ <MessageAction tooltip={t("message.edit")}>
<Button
variant="ghost"
size="icon"
- aria-label="Edit message"
+ aria-label={t("message.edit")}
onClick={() => onEditUserMessage(message.id, messageText)}
>
<Pencil />
</Button>
</MessageAction>
) : null}
- <MessageAction tooltip="Branch in new chat">
+ <MessageAction tooltip={t("message.branch")}>
<Button
variant="ghost"
size="icon"
- aria-label="Branch in new chat"
+ aria-label={t("message.branch")}
onClick={() => onForkAtMessage(message.id)}
>
<Split className="rotate-90" />
</Button>
</MessageAction>
- <MessageAction tooltip="Revert">
+ <MessageAction tooltip={t("session.revert_label")}>
<Button
variant="ghost"
size="icon"
- aria-label="Revert"
+ aria-label={t("session.revert_label")}
onClick={() => onRevertToUserMessage(message.id)}
>
<Undo2 />
@@ -832,22 +832,22 @@ const UserMessage = React.memo(
{messageText ? (
<ContextMenuItem onClick={() => onEditUserMessage(message.id, messageText)}>
<Pencil className="size-4" />
- Edit message
+ {t("message.edit")}
</ContextMenuItem>
) : null}
{messageText ? (
<ContextMenuItem onClick={() => void navigator.clipboard.writeText(messageText)}>
<Copy className="size-4" />
- Copy
+ {t("message.copy_short")}
</ContextMenuItem>
) : null}
<ContextMenuItem onClick={() => onForkAtMessage(message.id)}>
<Split className="size-4 rotate-90" />
- Branch in new chat
+ {t("message.branch")}
</ContextMenuItem>
<ContextMenuItem onClick={() => onRevertToUserMessage(message.id)}>
<Undo2 className="size-4" />
- Revert
+ {t("session.revert_label")}
</ContextMenuItem>
</ContextMenuContent>
</ContextMenu>
@@ -957,8 +957,8 @@ const ReconnectingMessage = React.memo(({ lastConfirmedAt }: { lastConfirmedAt:
>
<WifiOff aria-hidden="true" className="size-4 shrink-0" />
<span className="min-w-0 truncate">
- Connection lost — reconnecting…
- {lastConfirmedLabel ? ` · last update ${lastConfirmedLabel}` : ""}
+ {t("message.reconnecting")}
+ {lastConfirmedLabel ? ` · ${t("message.last_update", { time: lastConfirmedLabel })}` : ""}
</span>
</div>
</Message>
@@ -1036,7 +1036,7 @@ function SessionErrorTechnicalDetails({ details, tone }: { details: string; tone
className="flex w-fit cursor-pointer items-center gap-1 text-[11px] text-muted-foreground transition-colors hover:text-foreground"
>
{copied ? <Check aria-hidden="true" className="size-3" /> : <Copy aria-hidden="true" className="size-3" />}
- {copied ? "Copied" : "Copy details"}
+ {copied ? t("config.copied") : t("message.copy_details")}
</button>
</div>
) : null}
@@ -1169,7 +1169,7 @@ const RetryMessage = React.memo(({ status }: RetryMessageProps) => {
<LoaderCircle size={16} className="mt-0.5 shrink-0 animate-spin text-warning" />
<div className="min-w-0 space-y-1">
<p className="whitespace-pre-wrap text-sm font-medium text-amber-12">
- {freeModelLimit ? "The free starter model is busy right now" : status.message}
+ {freeModelLimit ? t("message.free_model_busy") : status.message}
</p>
<p className="text-xs text-amber-12/80">{info}</p>
</div>
@@ -1177,18 +1177,18 @@ const RetryMessage = React.memo(({ status }: RetryMessageProps) => {
{action ? (
<div className="ml-6 space-y-1 border-t border-warning/20 pt-2">
<p className="text-xs font-medium text-amber-12">
- {freeModelLimit ? "Free model limit reached" : action.title}
+ {freeModelLimit ? t("message.free_model_limit") : action.title}
</p>
<p className="text-xs text-amber-12/80">
{freeModelLimit
? isProviderLocked()
- ? "omnirush.ai will keep retrying."
- : "omnirush.ai will keep retrying. To keep working now, connect your own model provider."
+ ? t("message.will_keep_retrying")
+ : t("message.will_keep_retrying_connect")
: action.message}
</p>
{freeModelLimit && !isProviderLocked() ? (
<RetryActionButton
- label="Connect a model provider"
+ label={t("message.connect_provider")}
onClick={() => dispatchAction({ target: "settings", action: "open", section: "providers" })}
/>
) : action.link ? (
@@ -1462,11 +1462,11 @@ function MessageGroup({
<CopyMessageButton messages={renderableItems.map((item) => item.message)} />
{lastRealItem ? (
<>
- <MessageAction tooltip="Branch in new chat">
+ <MessageAction tooltip={t("message.branch")}>
<Button
variant="ghost"
size="icon"
- aria-label="Branch in new chat"
+ aria-label={t("message.branch")}
onClick={() => onForkAtMessage(lastRealItem.message.id)}
>
<Split className="rotate-90" />
diff --git a/apps/app/src/components/model-select.tsx b/apps/app/src/components/model-select.tsx
index acb28763..bc056a4c 100644
--- a/apps/app/src/components/model-select.tsx
+++ b/apps/app/src/components/model-select.tsx
@@ -3,6 +3,7 @@
import { useProviderLock } from "@/app/lib/provider-lock";
import * as React from "react";
import { Check, ChevronDown, ChevronLeft, ChevronRight, Settings2, Star } from "lucide-react";
+import { t } from "@/i18n";
import type { ModelBehaviorOption, ModelOption, ModelRef } from "@/app/types";
import { getModelBehaviorSummary } from "@/app/lib/model-behavior";
@@ -351,14 +352,14 @@ export function ModelSelect({
const quickGroups: ModelSelectGroup[] = [];
if (favoriteOptions.length > 0) {
quickGroups.push({
- value: "Favorites",
+ value: t("model_select.favorites"),
rank: -2,
items: favoriteOptions.map((option) => ({ id: `favorite:${modelRefKey(option)}`, option })),
});
}
if (recentOptions.length > 0) {
quickGroups.push({
- value: "Recent",
+ value: t("model_select.recent"),
rank: -1,
items: recentOptions.map((option) => ({ id: `recent:${modelRefKey(option)}`, option })),
});
@@ -453,7 +454,7 @@ export function ModelSelect({
<PopoverTrigger
type="button"
disabled={disabled}
- aria-label="Change model"
+ aria-label={t("model_select.change_model")}
aria-keyshortcuts="Meta+Alt+/"
data-testid="model-select-trigger"
// Shrinks (truncating the model name) before it would push into
@@ -465,7 +466,7 @@ export function ModelSelect({
<span className="flex min-w-0 max-w-64 items-center gap-1.5">
<span className="min-w-0 truncate">
{selectedValueHidden || !value.modelID
- ? "Select model"
+ ? t("model_select.select_model")
: selectedModelTitle}
</span>
{!selectedValueHidden && value.modelID && selectedProviderTitle ? (
@@ -478,7 +479,7 @@ export function ModelSelect({
<ChevronDown className="h-3 w-3 shrink-0" />
</TooltipTrigger>
<TooltipContent>
- Change model · Cycle thinking ({shortcutLabel} forward, {reverseShortcutLabel} back)
+ {t("model_select.trigger_tooltip", { forward: shortcutLabel, back: reverseShortcutLabel })}
</TooltipContent>
</Tooltip>
<PopoverContent
@@ -498,9 +499,9 @@ export function ModelSelect({
setPane("effort");
}}
>
- <span className="min-w-0 flex-1 font-medium text-foreground">Effort</span>
+ <span className="min-w-0 flex-1 font-medium text-foreground">{t("model_select.effort")}</span>
<span className="max-w-24 truncate text-muted-foreground">
- {selectedThinkingOptions.length > 0 ? effectiveBehaviorLabel : "Unavailable"}
+ {selectedThinkingOptions.length > 0 ? effectiveBehaviorLabel : t("config.unavailable")}
</span>
<kbd className="hidden shrink-0 rounded border border-border/70 bg-muted/40 px-1.5 py-0.5 font-sans text-[10px] leading-none text-muted-foreground sm:inline-flex">
{shortcutLabel}
@@ -513,9 +514,9 @@ export function ModelSelect({
className="flex w-full cursor-pointer items-center gap-3 rounded-xl px-2.5 py-2 text-left text-sm transition-colors hover:bg-accent disabled:cursor-default disabled:opacity-50"
onClick={() => setPane("favorites")}
>
- <span className="min-w-0 flex-1 font-medium text-foreground">Favorites</span>
+ <span className="min-w-0 flex-1 font-medium text-foreground">{t("model_select.favorites")}</span>
<span className="max-w-36 truncate text-muted-foreground">
- {currentFavorite?.title ?? "None"}
+ {currentFavorite?.title ?? t("connect.diagnostics_none")}
</span>
<kbd className="hidden shrink-0 rounded border border-border/70 bg-muted/40 px-1.5 py-0.5 font-sans text-[10px] leading-none text-muted-foreground sm:inline-flex">
{favoriteShortcutLabel}
@@ -527,7 +528,7 @@ export function ModelSelect({
className="flex w-full cursor-pointer items-center gap-3 rounded-xl px-2.5 py-2 text-left text-sm transition-colors hover:bg-accent"
onClick={() => setPane("model")}
>
- <span className="min-w-0 flex-1 font-medium text-foreground">Model</span>
+ <span className="min-w-0 flex-1 font-medium text-foreground">{t("extensions.detail_fact_model")}</span>
<span className="max-w-36 truncate text-muted-foreground">
{selectedOption?.title ?? resolveModelDisplayName(value.modelID)}
</span>
@@ -543,7 +544,7 @@ export function ModelSelect({
onClick={() => setPane("root")}
>
<ChevronLeft className="size-4 shrink-0 text-muted-foreground" />
- <span className="text-sm font-medium">Favorites</span>
+ <span className="text-sm font-medium">{t("model_select.favorites")}</span>
</button>
<button
type="button"
@@ -581,7 +582,7 @@ export function ModelSelect({
>
<ChevronLeft className="size-4 shrink-0 text-muted-foreground" />
<span className="min-w-0">
- <span className="block truncate text-sm font-medium">Effort</span>
+ <span className="block truncate text-sm font-medium">{t("model_select.effort")}</span>
<span className="block truncate text-xs text-muted-foreground">{thinkingFor.title}</span>
</span>
</button>
@@ -614,15 +615,15 @@ export function ModelSelect({
}}
>
<ChevronLeft className="size-4 shrink-0 text-muted-foreground" />
- <span className="text-sm font-medium">Model</span>
+ <span className="text-sm font-medium">{t("extensions.detail_fact_model")}</span>
</button>
<Command items={groups} value={search} onValueChange={setSearch}>
<div className="flex min-h-0 flex-1 flex-col">
<CommandHeader className="p-1.5 pb-1">
- <CommandInput ref={searchInputRef} placeholder="Search models..." className="h-9 text-sm" />
+ <CommandInput ref={searchInputRef} placeholder={t("model_select.search_placeholder")} className="h-9 text-sm" />
</CommandHeader>
<CommandPanel className="h-0 min-h-0 flex-1 overflow-y-auto overscroll-y-contain">
- <CommandEmpty>No models found.</CommandEmpty>
+ <CommandEmpty>{t("model_select.no_models")}</CommandEmpty>
<CommandList className="not-empty:scroll-py-1 not-empty:p-1">
{(group: ModelSelectGroup) => (
<CommandGroup key={group.value} items={group.items} className="[[role=group]+&]:mt-1">
@@ -648,7 +649,7 @@ export function ModelSelect({
<button
type="button"
className="cursor-pointer rounded-md p-1 text-muted-foreground transition-colors hover:bg-muted hover:text-foreground"
- aria-label={favorite ? `Remove ${option.title} from favorites` : `Add ${option.title} to favorites`}
+ aria-label={favorite ? t("model_select.remove_favorite", { name: option.title }) : t("model_select.add_favorite", { name: option.title })}
onPointerDown={(event) => {
event.preventDefault();
event.stopPropagation();
@@ -673,7 +674,7 @@ export function ModelSelect({
{canAddProviders ? (
<div className="border-t border-border px-2 py-1">
<button type="button" className="flex w-full cursor-pointer items-center gap-2 rounded-md px-2 py-1 text-xs text-muted-foreground transition-colors hover:bg-accent hover:text-accent-foreground" onClick={handleConnectProvider}>
- Connect more providers
+ {t("model_select.connect_more")}
</button>
</div>
) : null}
@@ -689,7 +690,7 @@ export function ModelSelect({
}}
>
<Settings2 className="size-3.5" />
- All models
+ {t("model_select.all_models")}
</button>
</div>
</div>
diff --git a/apps/app/src/components/ui/sidebar.tsx b/apps/app/src/components/ui/sidebar.tsx
index a2f71b16..ab469995 100644
--- a/apps/app/src/components/ui/sidebar.tsx
+++ b/apps/app/src/components/ui/sidebar.tsx
@@ -24,6 +24,7 @@ import {
TooltipTrigger,
} from "@/components/ui/tooltip"
import { PanelLeftIcon } from "lucide-react"
+import { t } from "@/i18n";
const SIDEBAR_COOKIE_NAME = "sidebar_state"
const SIDEBAR_COOKIE_MAX_AGE = 60 * 60 * 24 * 7
@@ -273,7 +274,7 @@ function SidebarTrigger({
{...props}
>
<PanelLeftIcon className="rtl:rotate-180 size-3.5" />
- <span className="sr-only">Toggle Sidebar</span>
+ <span className="sr-only">{t("sidebar.toggle")}</span>
</Button>
)
}
@@ -285,10 +286,10 @@ function SidebarRail({ className, ...props }: React.ComponentProps<"button">) {
<button
data-sidebar="rail"
data-slot="sidebar-rail"
- aria-label="Toggle Sidebar"
+ aria-label={t("sidebar.toggle")}
tabIndex={-1}
onClick={toggleSidebar}
- title="Toggle Sidebar"
+ title={t("sidebar.toggle")}
className={cn(
"absolute inset-y-0 z-20 hidden w-4 transition-all ease-linear group-data-[side=left]:-right-4 group-data-[side=right]:left-0 after:absolute after:inset-y-0 after:inset-s-1/2 after:w-[2px] hover:after:bg-sidebar-border sm:flex ltr:-translate-x-1/2 rtl:-translate-x-1/2",
"in-data-[side=left]:cursor-w-resize rtl:in-data-[side=left]:cursor-e-resize in-data-[side=right]:cursor-e-resize rtl:in-data-[side=right]:cursor-w-resize",
diff --git a/apps/app/src/i18n/locales/en.ts b/apps/app/src/i18n/locales/en.ts
index 85045021..9b67e522 100644
--- a/apps/app/src/i18n/locales/en.ts
+++ b/apps/app/src/i18n/locales/en.ts
@@ -69,6 +69,7 @@ export default {
"common.edit": "Edit",
"common.hide": "Hide",
"common.navigate": "navigate",
+ "common.loading": "Loading…",
"common.next": "Next",
"common.off": "Off",
"common.on": "On",
@@ -2170,4 +2171,502 @@ export default {
"whats_new.close": "Close",
"whats_new.palette_detail": "Release notes for {version} and earlier",
"whats_new.unseen": "New",
+ "settings.tab_ai": "AI Providers",
+ "settings.tab_preferences": "Preferences",
+ "settings.tab_permissions": "Permissions",
+ "settings.tab_editor": "Editor",
+ "settings.tab_voice": "Voice",
+ "settings.tab_description_ai": "Connect services that provide AI models",
+ "settings.tab_description_preferences": "Default model, reasoning, and compaction",
+ "settings.tab_description_permissions": "Authorized folders and file access",
+ "settings.tab_description_editor": "Code editor: text, saving, language features and keys",
+ "settings.tab_description_voice": "Dictation, microphone, and hotkey",
+ "settings.tab_description_overview": "Overview of all settings",
+ "settings.card_preferences_desc": "Default model, reasoning, and compaction.",
+ "settings.card_permissions_desc": "Authorized folders and file access.",
+ "settings.card_advanced_desc": "Runtime, engine, recovery, and developer options.",
+ "settings.card_ai_desc": "Connect services that provide AI models.",
+ "settings.card_appearance_desc": "Theme, font size, and display.",
+ "settings.card_editor_desc": "Code editor text, saving, and keys.",
+ "settings.card_voice_desc": "Dictation, microphone, and hotkey.",
+ "settings.card_environment_desc": "Environment variables and paths.",
+ "settings.card_updates_desc": "App version and update channel.",
+ "settings.best_practices_title": "Best practices",
+ "settings.best_practices_help": "Built-in guides help the agent plan, build, test, and fix your work. On by default. Saved on this server.",
+ "settings.agent_assist.forced": "Set by the app's environment.",
+ "settings.agent_assist.selfCheck_title": "Check work before finishing",
+ "settings.agent_assist.selfCheck_help": "After changing code, the agent runs the project's tests, linter or type check and fixes what fails (at most 3 rounds). Say \"skip the tests\" to skip it once.",
+ "settings.agent_assist.projectNotes_title": "Project notes (AGENTS.md)",
+ "settings.agent_assist.projectNotes_help": "/init writes AGENTS.md with the build, test and run commands and conventions; the app offers to add what a session found. Your own lines are never removed without asking.",
+ "settings.agent_assist.diagnostics_title": "Code diagnostics",
+ "settings.agent_assist.diagnostics_help": "Language servers for TypeScript/JavaScript, Python, Go and Rust tell the agent about errors right after each edit.",
+ "settings.agent_assist.compaction_title": "Detailed summaries",
+ "settings.agent_assist.compaction_help": "When a long chat is summarized, keep your preferences, decisions, open to-dos, commands that worked and the files changed.",
+ "settings.power_title": "Power",
+ "settings.keep_awake_title": "Keep this computer awake while the agent works",
+ "settings.keep_awake_help": "Your computer won't go to sleep while a turn runs, or while the app finishes up as it quits. The screen can still turn off and lock.",
+ "settings.keep_awake_forced_off": "Off for this launch: OMNIRUSH_KEEP_AWAKE=0 is set.",
+ "settings.keep_awake_unavailable": "Not available in this session (remote login or CI).",
+ "settings.account_approve_in_browser": "Approve the device link in your browser…",
+ "settings.account_connected_ready": "Account connected. omnirush.ai models are ready.",
+ "settings.account_connect_failed": "The account could not be connected.",
+ "settings.account_sign_out_failed": "The account could not be signed out.",
+ "settings.account_sign_in_title": "Sign in to your account",
+ "settings.account_models_ready": "omnirush.ai models are ready on this Mac.",
+ "settings.account_keyring_unavailable": "Your system keyring is not available right now. Sign in again to continue.",
+ "settings.account_session_expired": "Your session expired. Sign in again to continue.",
+ "settings.account_sign_in_hint": "Sign in in your browser, then return here.",
+ "settings.account_not_configured": "The omnirush.ai account service has not been configured for this build.",
+ "settings.account_file_storage": "Signed in. No system keyring is available, so the sign-in is kept in a private file on this computer.",
+ "settings.account_usage_percent": "{percent}% used",
+ "settings.account_waiting": "Waiting…",
+ "settings.account_sign_in": "Sign in",
+ "settings.section_workspace": "Workspace",
+ "settings.section_global": "Global",
+ "home.greeting_night_title": "what would you like to work on?",
+ "home.greeting_night_subtitle": "describe the outcome you need",
+ "home.greeting_morning_title": "good morning. how can I help?",
+ "home.greeting_afternoon_title": "good afternoon. how can I help?",
+ "home.greeting_evening_title": "good evening. how can I help?",
+ "home.greeting_subtitle": "what are we getting done?",
+ "home.greeting_afternoon_subtitle": "what should we tackle?",
+ "home.connect_provider_title": "connect a model provider",
+ "home.connect_provider_body": "add an api key for openai, anthropic, google, or openrouter so tasks can run.",
+ "home.recent_chats": "Recent chats",
+ "home.continue": "Continue",
+ "home.continue_chat": "Continue {title} in {workspace}",
+ "home.search_chats": "Search chats ({shortcut})",
+ "home.search": "Search",
+ "quality.spin_ready": "Spin, {count} ready",
+ "quality.how_to_earn_spins": "How to earn spins",
+ "quality.ready_count": "{count} ready",
+ "quality.next_spin": "Next spin {progress}",
+ "sidebar.your_account": "Your account",
+ "sidebar.sign_in_lower": "sign in to omnirush.ai",
+ "sidebar.connected_to": "connected to {host}",
+ "sidebar.models_ready": "omnirush.ai models ready",
+ "sidebar.sign_in_again": "Sign in again to continue",
+ "sidebar.use_models_with_account": "Use omnirush.ai models with your account",
+ "sidebar.sign_in": "Sign in to omnirush.ai",
+ "sidebar.account_label": "{name} account",
+ "sidebar.account_tools": "Account tools",
+ "sidebar.org_logo": "Organization logo",
+ "sidebar.history_controls": "Conversation history controls",
+ "sidebar.history_back": "Back in conversation history",
+ "sidebar.history_forward": "Forward in conversation history",
+ "sidebar.tools": "Sidebar tools",
+ "sidebar.audit_trail": "Audit trail",
+ "sidebar.audit_trail_hint": ": a local activity record reconstructed from this task and workspace. Integrity verification is not enabled in this version.",
+ "sidebar.audit_trail_failed": "Audit trail has a failure",
+ "sidebar.audit_trail_waiting": "Audit trail is waiting for approval",
+ "sidebar.workflows": "Workflows",
+ "sidebar.workflows_hint": "Workflows: build sequential workflows and choose connected models for each step",
+ "sidebar.dashboard": "Dashboard",
+ "sidebar.parallel_tasks": "Parallel tasks",
+ "sidebar.parallel_tasks_running": "Parallel tasks ({count} running)",
+ "sidebar.running_count": "{count} running",
+ "sidebar.automations": "Automations",
+ "sidebar.automation_attention": "An Automation needs attention",
+ "session.pane_unavailable": "{name} is unavailable",
+ "session.retry_connection": "Retry connection",
+ "session.close_pane": "Close pane",
+ "session.remote_workspace_unavailable": "Remote workspace unavailable",
+ "session.runtime_unavailable": "omnirush.ai unavailable",
+ "session.back_to": "Back to {title}",
+ "session.parent_chat": "parent chat",
+ "session.back_to_parent": "Back to parent chat",
+ "session.find_in_conversation": "Find in conversation",
+ "session.close_side_panel": "Close side panel",
+ "session.open_side_panel": "Open side panel",
+ "session.more_actions": "More actions",
+ "session.switch_to_chat_layout": "Switch to Chat layout",
+ "session.switch_to_ide_layout": "Switch to IDE layout",
+ "session.hide_chat": "Hide chat",
+ "session.undo_last_turn": "Undo last turn",
+ "session.redo": "Redo",
+ "session.status": "Status",
+ "session.changes": "Changes",
+ "session.review_changes": "Review changes",
+ "session.files": "Files",
+ "session.show_chat": "Show chat",
+ "session.resize_handle_hint": "Drag to resize; double-click to reset",
+ "session.open_ide_layout": "Open the IDE layout",
+ "session.browser": "Browser",
+ "session.browser_unavailable": "Browser opens when a page is available",
+ "ide.layout": "Layout",
+ "ide.layout_chat": "Chat",
+ "ide.switch_layout": "Switch layout",
+ "ide.switch_workspace": "Switch workspace",
+ "ide.needs_approval": "Needs approval",
+ "ide.running": "Running",
+ "ide.switch_chat": "Switch chat",
+ "ide.another_chat_running": "Another chat is running",
+ "ide.new_chat": "New chat",
+ "ide.rail_more_label": "More: parallel tasks, workflows, library",
+ "ide.rail_more_title": "Parallel tasks, workflows, library and more",
+ "ide.rail_chat_layout": "Audit trail and workflows (Chat layout)",
+ "message.copy": "Copy message",
+ "message.copy_short": "Copy",
+ "message.copied": "Copied!",
+ "message.edit": "Edit message",
+ "message.branch": "Branch in new chat",
+ "message.reveal_in_folder": "Reveal in Finder",
+ "message.download": "Download",
+ "message.reconnecting": "Connection lost — reconnecting…",
+ "message.last_update": "last update {time}",
+ "message.copy_details": "Copy details",
+ "message.free_model_busy": "The free starter model is busy right now",
+ "message.free_model_limit": "Free model limit reached",
+ "message.will_keep_retrying": "omnirush.ai will keep retrying.",
+ "message.will_keep_retrying_connect": "omnirush.ai will keep retrying. To keep working now, connect your own model provider.",
+ "message.connect_provider": "Connect a model provider",
+ "model_select.favorites": "Favorites",
+ "model_select.recent": "Recent",
+ "model_select.change_model": "Change model",
+ "model_select.select_model": "Select model",
+ "model_select.trigger_tooltip": "Change model · Cycle thinking ({forward} forward, {back} back)",
+ "model_select.effort": "Effort",
+ "model_select.search_placeholder": "Search models...",
+ "model_select.no_models": "No models found.",
+ "model_select.remove_favorite": "Remove {name} from favorites",
+ "model_select.add_favorite": "Add {name} to favorites",
+ "model_select.connect_more": "Connect more providers",
+ "model_select.all_models": "All models",
+ "subagent.same_as_main": "Same as main agent",
+ "subagent.main_model": "Main model",
+ "subagent.saved": "Sub-agents: {summary}. Applies to new tasks.",
+ "subagent.save_failed": "The sub-agent setting could not be saved.",
+ "subagent.chip_label": "Sub-agents: {summary}",
+ "subagent.unavailable_suffix": " (not available, sub-agents use the main model)",
+ "subagent.title": "Sub-agents",
+ "subagent.model_label": "Sub-agents: model",
+ "subagent.not_available": "(not available)",
+ "subagent.effort_label": "Sub-agent effort",
+ "subagent.model_help": "Sub-agents are the helpers the main agent starts with the task tool, at every nesting layer. The main agent keeps its own model and effort. If the picked model is not available to your account or omnirush.ai refuses it, sub-agents run on the main agent's model and the session says so.",
+ "subagent.effort_help": "How hard sub-agents think. \"Same as main agent\" uses the main agent's effort, mapped to the nearest level the sub-agent model offers.",
+ "subagent.policy_lock": "Locked by your organisation: its policy does not allow changing app settings.",
+ "voice.sign_in_required": "Sign in to omnirush.ai to use voice input.",
+ "voice.not_available": "Voice input isn't available on your account yet.",
+ "voice.partial_lost": "Part of the dictation was lost: {message}",
+ "find.no_matches": "No matches",
+ "find.previous": "Previous match",
+ "find.next": "Next match",
+ "find.close": "Close find",
+ "scroll.jump_to_start": "Jump to start",
+ "scroll.jump_to_latest": "Jump to latest",
+ "session.choose_another_folder": "Choose another folder",
+ "session.use_model": "Use {model}",
+ "session.dismiss_error": "Dismiss error",
+ "sandbox.chip_off_for_project": "Linux sandbox: off for this project",
+ "sandbox.chip_off": "Sandbox off",
+ "sandbox.chip_use": "Use sandbox",
+ "sandbox.chip_offer_hint": "Your omnirush.ai server recommends running this project's commands in a Linux sandbox. Click to turn it on.",
+ "sandbox.not_now": "Not now",
+ "sandbox.chip_label": "Linux sandbox: {state}",
+ "sandbox.chip": "Sandbox",
+ "subagent.sign_in_hint": "Sign in to omnirush.ai to pick a model for sub-agents.",
+ "subagent.model_unavailable": "This model is not available to your account right now: sub-agents run on the main agent's model.",
+ "settings.ai.title": "Choose how models run",
+ "settings.ai.desc_locked": "Models run through the omnirush.ai inference proxy. Model names are always shown exactly as reported by their provider.",
+ "settings.ai.desc": "Use the omnirush.ai internal proxy or connect a major AI provider. Model names are always shown exactly as reported by their provider.",
+ "settings.ai.internal_title": "Internal models",
+ "settings.ai.internal_desc": "Use the omnirush.ai inference proxy and models managed by your organization.",
+ "settings.ai.providers_title": "Provider connections",
+ "settings.ai.providers_desc": "Connect OpenAI, Anthropic, Google, or OpenRouter without changing model identities.",
+ "settings.updates.current_version": "Current version",
+ "settings.updates.release_channel_desc": "Stable gets fully tested releases. Alpha includes the very latest changes but may be less polished.",
+ "settings.ai.optional": "Optional",
+ "settings.appearance.mode_desc": "System follows your computer's light or dark setting.",
+ "settings.appearance.presets_desc": "Each preset has a light and a dark version (Midnight is dark only); the mode above picks which one you see.",
+ "settings.appearance.light_dark": "Light / Dark",
+ "settings.appearance.dark_only": "Dark only",
+ "settings.appearance.light_only": "Light only",
+ "settings.appearance.new_custom_theme": "New custom theme",
+ "settings.appearance.midnight_note": "Midnight is dark only. Choosing it while Mode is Light switches Mode to Dark.",
+ "settings.appearance.accent_title": "Accent colour",
+ "settings.appearance.accent_desc": "Colours buttons, selection, focus rings and links in every theme. Checked for contrast against the current theme.",
+ "settings.appearance.theme_accent": "Theme accent",
+ "settings.appearance.custom_colour": "Custom colour",
+ "settings.appearance.pick_accent": "Pick a custom accent colour",
+ "settings.appearance.links_readable": "Links already use a readable shade.",
+ "settings.appearance.fonts_title": "Fonts and text",
+ "settings.appearance.fonts_desc": "Pick the interface and code fonts separately. Named code fonts are used when installed on this computer.",
+ "settings.appearance.code_font": "Code font",
+ "settings.appearance.text_size": "Text size",
+ "settings.appearance.layout_desc": "Spacing and how rounded panels, buttons and cards are.",
+ "settings.appearance.density": "Density",
+ "settings.appearance.corner_radius": "Corner radius",
+ "settings.appearance.wallpaper_desc": "Put a picture of your own behind the workspace. It stays on this computer.",
+ "settings.appearance.change_image": "Change image…",
+ "settings.appearance.choose_image": "Choose image…",
+ "settings.appearance.image_types": "PNG, JPEG, WebP, AVIF or GIF, up to 8 MB.",
+ "settings.appearance.dim_picture": "Dim picture",
+ "settings.appearance.panel_opacity": "Panel opacity",
+ "settings.appearance.sidebar_blur": "Sidebar blur",
+ "settings.appearance.reduced_transparency": "Your system asks for less transparency, so panels stay solid and nothing is blurred.",
+ "settings.appearance.menu_bar": "Display menu bar",
+ "settings.appearance.menu_bar_desc": "Show the native desktop menu bar.",
+ "settings.updates.release_channel": "Release channel",
+ "settings.appearance.interface_font": "Interface font",
+ "settings.ai.connected_count": "{count} connected",
+ "settings.appearance.theme_default": "Theme default",
+ "settings.appearance.density_compact": "compact",
+ "settings.appearance.density_comfortable": "comfortable",
+ "settings.appearance.wallpaper": "Wallpaper",
+ "settings.appearance.mode": "Mode",
+ "settings.appearance.max_custom_themes": "Up to {count} custom themes",
+ "settings.appearance.edit_theme": "Edit {name}",
+ "settings.appearance.delete_theme": "Delete {name}",
+ "settings.theme_share.keep": "Keep theme",
+ "settings.theme_share.edit_first": "Edit first",
+ "settings.theme_share.fix_in_editor": "Fix in editor",
+ "settings.theme_share.title": "Share and import",
+ "settings.theme_share.desc": "A theme code holds the whole custom theme: both versions, corner radius and font size. Nothing else from your settings is included.",
+ "settings.theme_share.code": "Theme code",
+ "settings.theme_share.no_code": "Create a custom theme to get a code.",
+ "settings.theme_share.copy": "Copy theme code",
+ "settings.theme_share.save_file": "Save file…",
+ "settings.theme_share.paste": "Paste a theme code",
+ "settings.theme_share.preview": "Preview",
+ "settings.theme_share.open_file": "Open file…",
+ "settings.theme_share.rules_title": "What a theme code can contain",
+ "settings.theme_share.rule_prefix": "Starts with omnirush-theme:1: (version 1)",
+ "settings.theme_share.rule_colours": "Colours are #rrggbb hex only",
+ "settings.theme_share.rule_keys": "Unknown keys are rejected, nothing is guessed",
+ "settings.theme_share.rule_size": "At most 8 KB once decoded",
+ "settings.theme_share.rule_ranges": "Corner radius 0–16 px, font size 12–16 px",
+ "settings.theme_share.rule_modes": "One or both modes, listed in modes",
+ "settings.theme_share.preview_confirm": "Preview, then confirm",
+ "settings.theme_share.preview_hint": "Paste a code or open a file. The theme shows in the whole window before you decide to keep it.",
+ "settings.theme_share.discord_share": "Share your theme in #showcase on Discord",
+ "settings.theme_share.not_member": "Not a member yet?",
+ "settings.theme_share.join_discord": "Join our Discord",
+ "settings.theme_share.invalid": "This isn't a valid theme:",
+ "settings.theme_share.invalid_detail": "{error}. Nothing was changed.",
+ "settings.editor.formatter_no_project": "Open a project to see its formatter.",
+ "settings.editor.formatter_loading": "Looking for the project's formatter…",
+ "settings.editor.formatter_none": "This project: none found. Files are saved as they are.",
+ "settings.editor.text": "Text",
+ "settings.editor.text_desc": "The code editor in the IDE layout, for every project on this computer.",
+ "settings.editor.font_size": "Font size",
+ "settings.editor.font_size_desc": "Text size in the editor.",
+ "settings.editor.tab_size": "Tab size",
+ "settings.editor.tab_size_desc": "For files without indentation of their own; others keep theirs.",
+ "settings.editor.word_wrap": "Word wrap",
+ "settings.editor.word_wrap_desc": "Long lines wrap at the editor's edge.",
+ "settings.editor.minimap": "Minimap",
+ "settings.editor.minimap_desc": "A small overview of the file at the right edge.",
+ "settings.editor.sticky_scroll": "Sticky scroll",
+ "settings.editor.sticky_scroll_desc": "The first lines of the block you are in stay at the top while you scroll.",
+ "settings.editor.saving": "Saving",
+ "settings.editor.saving_desc": "Automatic saves count as your own edits, like Cmd/Ctrl+S. A file the agent changed is never overwritten.",
+ "settings.editor.auto_save": "Auto save",
+ "settings.editor.auto_save_desc": "After a delay: one second after you stop typing (waits while an agent is working). When focus leaves: when you click away from the editor.",
+ "settings.editor.after_delay": "After a delay",
+ "settings.editor.on_focus_change": "When focus leaves",
+ "settings.editor.format_on_save": "Format on save",
+ "settings.editor.format_on_save_desc": "Runs the project's own formatter (Prettier, gofmt, Ruff, …) when you save with Cmd/Ctrl+S or leave the editor; never a built-in one. It is the project's code: the first time in each project you are shown the exact command and asked (again whenever it changes). With the sandbox on, it runs in the sandbox.",
+ "settings.editor.language_features": "Language features",
+ "settings.editor.language_features_title": "Problems, hover, go to definition, rename and outline",
+ "settings.editor.language_features_desc": "From the project's language servers. They start once a file has been open a moment. Same switch as in the Problems panel.",
+ "settings.editor.keys": "Keys",
+ "settings.editor.keyboard_shortcuts": "Keyboard shortcuts",
+ "settings.editor.keyboard_shortcuts_desc": "VS Code's defaults: Cmd/Ctrl+P, Cmd/Ctrl+Shift+F, F12, F2, Cmd/Ctrl+\\ and more.",
+ "settings.editor.show_all": "Show all",
+ "settings.editor.shortcuts_title": "Editor shortcuts",
+ "settings.editor.shortcuts_desc": "VS Code's defaults. On macOS use Cmd, elsewhere Ctrl.",
+ "settings.editor.search_shortcuts": "Search shortcuts",
+ "settings.editor.shortcuts": "Shortcuts",
+ "settings.editor.no_shortcut_matches": "No shortcut matches.",
+ "settings.editor.formatter_found": "This project: {list}.",
+ "voice.title": "Voice input",
+ "voice.desc": "Dictate prompts instead of typing. Your words appear in the composer, where you can edit them before sending.",
+ "voice.dictation": "Dictation",
+ "voice.dictation_desc": "Show the microphone button in the composer and listen for the hotkey.",
+ "voice.hotkey": "Hotkey",
+ "voice.hotkey_desc": "Works whenever the OmniRush.ai window is focused.",
+ "voice.press_shortcut": "Press a shortcut…",
+ "voice.mode_both": "Hold or tap",
+ "voice.mode_desc": "Hold the hotkey while you talk, or tap it to start and tap again to stop. Esc cancels and restores your prompt.",
+ "voice.input_device": "Input device",
+ "voice.input_device_desc": "The microphone used for dictation.",
+ "voice.input_device_missing": "The chosen microphone is not connected; the system default is used.",
+ "voice.system_default": "System default",
+ "voice.language_desc": "The language you speak. Automatic detection works for most people.",
+ "voice.dictation_language": "Dictation language",
+ "voice.auto_send": "Send after dictation",
+ "voice.auto_send_desc": "Send the prompt as soon as you stop talking (at least three words). Off: review and edit first.",
+ "voice.mic_permission": "Microphone permission",
+ "voice.mic_permission_desc": "If dictation says the microphone is off, allow OmniRush.ai in your system's privacy settings.",
+ "voice.open_privacy": "Open privacy settings",
+ "voice.mic_level": "Microphone level",
+ "voice.test": "Test",
+ "voice.mode_hold": "Hold to talk",
+ "voice.mode_tap": "Tap to start and stop",
+ "voice.detect_automatically": "Detect automatically",
+ "voice.privacy_retention": "omnirush.ai doesn't store your audio; the provider keeps a copy for up to {days} days.",
+ "voice.privacy_no_store": "omnirush.ai doesn't store your audio.",
+ "voice.privacy_note": "Voice is transcribed by our cloud speech provider. {provider} Nothing is saved on this computer, and only the text you send becomes part of your prompt.",
+ "sandbox.progress_mb": "{done} of {total} MB · {percent}%",
+ "sandbox.progress_parts": "{done} of {total} parts · {percent}%",
+ "sandbox.download_starting": "Starting the download…",
+ "sandbox.turning_on": "Turning on…",
+ "sandbox.runs_here_until_ready": "Commands run on this computer until the sandbox is ready.",
+ "sandbox.turning_off": "Turning off…",
+ "sandbox.resetting": "Resetting the sandbox…",
+ "sandbox.resetting_detail": "Removing its container and installs.",
+ "sandbox.trying_again": "Trying again…",
+ "sandbox.setting_up": "Setting up the sandbox…",
+ "sandbox.off_for_app": "Off for this app",
+ "sandbox.off_for_app_detail": "Set by OMNIRUSH_BOX where the app is launched.",
+ "sandbox.runs_on_computer": "Runs on this computer",
+ "sandbox.off_for_project": "Off for this project",
+ "sandbox.runs_here": "Commands run on this computer.",
+ "sandbox.downloading": "Downloading the sandbox (once)",
+ "sandbox.runs_here_until_it_ready": "Commands run on this computer until it is ready.",
+ "sandbox.starting": "Starting the sandbox…",
+ "sandbox.starting_using": "Using {backend}. This takes a few seconds.",
+ "sandbox.starting_detail": "This takes a few seconds.",
+ "sandbox.runs_in_container_using": "Commands run in a Linux container ({backend}).",
+ "sandbox.runs_in_container": "Commands run in a Linux container.",
+ "sandbox.could_not_start": "The sandbox could not start",
+ "sandbox.runs_here_for_now": "Commands run on this computer for now.",
+ "sandbox.try_again": "Try again",
+ "sandbox.backend_off": "The backend is set to Off",
+ "sandbox.backend_off_detail": "Commands run on this computer. Choose Automatic to use the sandbox.",
+ "sandbox.use_automatic": "Use automatic",
+ "sandbox.not_running": "The sandbox is not running",
+ "sandbox.check_again": "Check again",
+ "sandbox.backend_summary_off": "Set to Off: commands run on this computer.",
+ "sandbox.backend_summary_none": "No backend works on this computer yet.",
+ "sandbox.backend_summary_env": "Using {backend} (set by OMNIRUSH_BOX_BACKEND).",
+ "sandbox.backend_summary_auto": "Using {backend}, picked automatically.",
+ "sandbox.backend_summary_using": "Using {backend}.",
+ "sandbox.automatic_recommended": "Automatic (recommended)",
+ "sandbox.step_allow": "Allow the sandbox on this computer",
+ "sandbox.step_allow_detail": "Ubuntu blocks it until an admin allows it once. Run this in a terminal (OmniRush CLI), then check again.",
+ "sandbox.step_docker_group": "Let this user run Docker",
+ "sandbox.step_docker_group_detail": "Run this in a terminal, log out and back in, then check again.",
+ "sandbox.step_wsl": "Turn on WSL 2",
+ "sandbox.step_wsl_detail": "Run this in PowerShell as administrator, restart the computer, then check again.",
+ "sandbox.step_wsl_update": "Update WSL",
+ "sandbox.step_wsl_update_detail": "Run this in PowerShell, then check again.",
+ "sandbox.step_podman": "Start the Podman machine",
+ "sandbox.step_run_terminal": "Run this in a terminal, then check again.",
+ "sandbox.step_bwrap": "Install bubblewrap",
+ "sandbox.step_run_terminal_pkg": "Run this in a terminal (or use your system's package), then check again.",
+ "sandbox.step_container_app": "Start your container app",
+ "sandbox.step_container_app_detail": "Open Docker Desktop, OrbStack or colima, wait until it is running, then check again.",
+ "sandbox.step_container_other_account": "Docker here belongs to another account on this Mac. Open Docker Desktop, OrbStack or colima in this account, then check again.",
+ "sandbox.step_start_docker": "Start Docker",
+ "sandbox.step_wsl_detail_alt": "Run this in PowerShell as administrator, restart the computer, then check again. Docker Desktop or Podman work too.",
+ "sandbox.step_install_container": "Install a container app",
+ "sandbox.step_install_container_detail": "colima is free and installs with Homebrew; OrbStack and Docker Desktop work too. Then check again.",
+ "sandbox.step_install_podman": "Install Podman or Docker",
+ "sandbox.step_none": "No sandbox backend works here",
+ "sandbox.step_none_detail": "No container runtime was found on this computer.",
+ "sandbox.copy_command": "Copy command",
+ "sandbox.hide_details": "Hide details",
+ "sandbox.show_details": "Show details",
+ "sandbox.download_label": "Sandbox download",
+ "sandbox.backend": "Backend",
+ "sandbox.backend_label": "Sandbox backend",
+ "sandbox.other_backends": "Other backends on this computer",
+ "sandbox.available": "available",
+ "sandbox.not_available": "not available",
+ "sandbox.reset_title": "Reset sandbox",
+ "sandbox.reset_desc": "Removes this project's container and everything installed in it. Your project files are not touched.",
+ "sandbox.reset_nothing": "Nothing to reset: this project has no sandbox yet.",
+ "sandbox.reset_button": "Reset…",
+ "sandbox.reset_confirm_title": "Reset the sandbox?",
+ "sandbox.reset_confirm_message": "This removes the project's Linux container and everything installed in it. Your project files stay as they are. The next command starts a fresh sandbox.",
+ "sandbox.section_title": "Linux sandbox",
+ "sandbox.run_in_sandbox": "Run commands in a Linux sandbox",
+ "sandbox.help": "Commands run in a Linux container for this project. Your files stay in this folder; installs are kept per project.",
+ "sandbox.server_recommends": "Your omnirush.ai server recommends the sandbox for this project.",
+ "sandbox.turn_on": "Turn on",
+ "browser_logins.desc": "Keep selected sites signed in by reading one browser profile. omnirush.ai never changes the source browser, and sync starts only after you choose sites and enable it.",
+ "browser_logins.org_unavailable": "Browser login sync is not yet available on organization-managed Desktop. No browser login data is read.",
+ "browser_logins.nothing_read": "Nothing is read until you choose a profile and exact sites, then confirm continuing sync.",
+ "browser_logins.choose_sites": "Choose sites",
+ "browser_logins.none_signed_in": "The built-in browser is not signed in to any site.",
+ "context_panel.add_folder": "Add folder",
+ "browser_logins.title": "Browser login sync",
+ "settings.account_server_fallback": "the account server",
+ "settings.signout_revoked": "Signed out on this device and revoked its device session on {host}.",
+ "settings.signout_already_revoked": "Signed out on this device. {host} had already revoked this device session.",
+ "settings.signout_endpoint_missing": "Signed out on this device. {host} has no remote sign-out endpoint, so the device session was not revoked there.",
+ "settings.signout_unreachable": "Signed out on this device. {host} could not be reached, so the device session was not revoked there.",
+ "settings.signout_not_revoked": "Signed out on this device. The device session on {host} could not be revoked.",
+ "settings.account_connected_to": "Connected to {host}",
+ "settings.account_server": "Account server: {host}",
+ "sidebar.toggle": "Toggle Sidebar",
+ "editor.filter_files": "Filter files",
+ "editor.refresh_files": "Refresh files",
+ "editor.project_files": "Project files",
+ "editor.last_turn": "Last turn",
+ "editor.all_turns": "All turns",
+ "editor.refresh_changes": "Refresh changes",
+ "editor.done": "Done",
+ "editor.accept_all": "Accept all",
+ "editor.reject_all": "Reject all",
+ "editor.refresh_git": "Refresh git status",
+ "editor.commit_placeholder": "Commit message (Cmd/Ctrl+Enter)",
+ "editor.stage_to_commit": "Stage changes to commit",
+ "editor.commit_message": "Commit message",
+ "editor.unstage_all": "Unstage all",
+ "editor.stage_all": "Stage all",
+ "editor.no_changes": "No changes.",
+ "editor.move_to_other_group": "Move to other group",
+ "editor.open_in_other_group": "Open in other group",
+ "editor.open_preview_side": "Open preview to the side",
+ "editor.split": "Split editor",
+ "editor.split_hint": "Widen the window or hide the file tree to split",
+ "editor.close_group": "Close group",
+ "editor.close_group_hint": "Close group (its tabs close; unsaved text stays until you reopen the file)",
+ "editor.resize_groups": "Resize editor groups (double-click: equal widths)",
+ "editor.views": "Editor views",
+ "editor.agent_changes": "Agent changes",
+ "editor.search_in_files": "Search in files",
+ "editor.go_to_file": "Go to file",
+ "editor.hide_side_bar": "Hide side bar",
+ "editor.show_side_bar": "Show side bar",
+ "editor.hide_terminal": "Hide terminal",
+ "editor.show_terminal": "Show terminal",
+ "editor.close_panel": "Close panel",
+ "editor.format_prompt_title": "Run this project's formatter?",
+ "editor.allow_once": "Allow once",
+ "editor.always_for_project": "Always for this project",
+ "editor.replace_all_confirm": "Replace all?",
+ "editor.replace_all": "Replace all",
+ "editor.hide_replace": "Hide replace",
+ "editor.show_replace": "Show replace",
+ "editor.match_case": "Match case",
+ "editor.whole_word": "Whole word",
+ "editor.regex": "Regular expression",
+ "editor.replace_with": "Replace with",
+ "editor.hide_file_filters": "Hide file filters",
+ "editor.file_filters": "Files to include / exclude",
+ "editor.errors_only": "Errors only",
+ "editor.refresh_problems": "Refresh problems",
+ "editor.go_to_file_placeholder": "Go to file…",
+ "editor.staged_count": "Staged ({count})",
+ "editor.changes_count": "Changes ({count})",
+ "editor.left_count": "{count} left",
+ "session.undo_stop_first": "Stop the turn first (Esc), then undo",
+ "session.undo_confirm": "Undo the last turn? Its messages are hidden and its file changes taken back. Redo or Restore brings them back.",
+ "session.redo_turn": "Redo the undone turn",
+ "voice.privacy": "Privacy",
+ "editor.outline": "Outline",
+ "editor.outline_no_file": "Open a file to see its symbols.",
+ "editor.outline_lang_off": "Language features in the editor are off.",
+ "editor.outline_loading": "Loading symbols…",
+ "editor.outline_wait": "Symbols show once the file has been open a moment.",
+ "editor.outline_none": "No symbols (no language server for this file, or none found).",
+ "editor.empty_before": "Open a file from the tree, or press ",
+ "editor.empty_after": " to find one.",
+ "settings.appearance.system_monospace": "System monospace",
+ "settings.appearance.same_as_code_font": "Same as code font",
+ "settings.appearance.preset_default": "Default",
+ "settings.appearance.preset_high_contrast": "High contrast",
} as const;
diff --git a/apps/app/src/i18n/locales/zh.ts b/apps/app/src/i18n/locales/zh.ts
index 9330da31..7e92a63b 100644
--- a/apps/app/src/i18n/locales/zh.ts
+++ b/apps/app/src/i18n/locales/zh.ts
@@ -1,65 +1,77 @@
/**
- * 中文(简体)翻译
- * 产品名称保留英文:OpenCode、OpenPackage、omnirush.ai
- * Skills:标题用"Skills(技能)",正文用"skills"
- * MCP:协议名称保留英文,不翻译为"应用"
- * 翻译的术语:命令(Commands)、插件(Plugins)、会话(Sessions)、应用(Apps)
+ * 简体中文翻译
+ * 术语表(保持一致):
+ * session / chat → 会话;task → 任务;workspace / worker → 工作区;sandbox / box → 沙盒
+ * agent → 智能体;sub-agent → 子智能体;skill → 技能;plugin → 插件;command → 命令
+ * provider → 提供商;model → 模型;Library → 资源库;connection → 连接;org → 组织
+ * approval → 批准/审批;permission → 权限;effort → 推理强度;compact → 压缩
+ * computer use → 电脑操控;sign in / out → 登录 / 退出登录;token(凭据)→ 令牌
+ * 保留英文:OmniRush、omnirush.ai、omnirush.ai Cloud、Connect、Den、MCP、Git、IDE、API、URL、OAuth
+ * 排版:中英文、数字、占位符之间加空格;全角标点;省略号用“…”。
*/
export default {
- "app.compact_command_desc": "压缩此会话以减少上下文大小。",
+ "account.mcp_connected_one": "{count} 个 MCP 服务器",
+ "account.mcp_connected_other": "{count} 个 MCP 服务器",
+ "account.providers_connected_one": "{count} 个模型提供商",
+ "account.providers_connected_other": "{count} 个模型提供商",
+ "app.compact_command_desc": "总结此会话以缩减上下文。",
"app.error_audit_load": "加载审计日志失败。",
"app.error_auth_failed": "认证失败",
- "app.error_command_not_resolved": "命令未解析。",
+ "app.error_command_not_resolved": "命令未能解析。",
"app.error_compact_empty": "暂无可压缩的内容。",
- "app.error_compact_no_session": "请先选择一个有消息的会话再运行/compact。",
+ "app.error_compact_no_session": "请先选择一个有消息的会话,再运行 /compact。",
"app.error_compact_no_session_id": "请先选择一个会话再压缩。",
- "app.error_connect_first": "请先连接到此工作区再应用运行时更改。",
+ "app.error_connect_first": "请先连接到此工作区,再应用运行时更改。",
"app.error_not_connected": "未连接到服务器",
"app.error_rate_limit": "请求频率超限",
"app.error_remote_access": "更新远程访问失败。",
"app.error_request_failed": "请求失败",
- "app.error_restart_local_worker": "使用更新的共享设置重启本地工作区失败。",
+ "app.error_restart_local_worker": "无法使用新的共享设置重启本地工作区。",
"app.error_session_name_required": "会话名称为必填项",
- "app.local_disabled_reason": "本地工作区需在桌面应用中创建。远程和共享工作区仍可正常使用。",
+ "app.local_disabled_reason": "本地工作区需在桌面应用中创建。远程和共享工作区仍可在此使用。",
"app.model_behavior_title": "模型行为",
- "app.plugins_hint_readonly": "omnirush.ai服务器对插件为只读模式。",
+ "app.plugins_hint_readonly": "omnirush.ai 服务器上的插件为只读。",
"app.reload_later": "稍后",
"app.reload_now": "立即重新加载",
"app.reload_stop_tasks": "重新加载并停止任务",
- "app.skills_hint_readonly": "omnirush.ai服务器对skills为只读模式。请在高级设置中添加主机令牌以启用安装。",
+ "app.skills_hint_readonly": "omnirush.ai 服务器上的技能为只读。请在“高级”中添加主机令牌以启用安装。",
+ "action.remove": "移除",
"app.unknown_error": "未知错误",
"blueprint.automation_body": "从可复用的工作流开始,或在下方输入你的任务。",
"blueprint.automation_title": "你想自动化什么?",
- "blueprint.csv_session_assistant": "我可以帮你生成、清洗、合并和汇总CSV文件。你想自动化哪种CSV工作?",
- "blueprint.csv_session_title": "CSV工作流创意",
- "blueprint.csv_session_user": "我想把多个工具的导出合并成一个整洁的CSV。",
+ "blueprint.csv_session_assistant": "我可以帮你生成、清洗、合并和汇总 CSV 文件。你想自动化哪类 CSV 工作?",
+ "blueprint.csv_session_title": "CSV 工作流灵感",
+ "blueprint.csv_session_user": "我想把多个工具导出的数据合并成一个干净的 CSV。",
"blueprint.empty_body": "选择一个起点,或直接在下方输入。",
"blueprint.empty_title": "你想做什么?",
- "blueprint.minimal_body": "询问关于此工作区的问题,或使用启动提示词。",
+ "blueprint.minimal_body": "就此工作区提问,或使用一个入门提示词。",
"blueprint.minimal_title": "从一个任务开始",
- "blueprint.starter_blueprint_desc": "设计一个包含skills、命令和交接步骤的可复用工作流。",
- "blueprint.starter_blueprint_prompt": "帮我为此工作区设计一个可复用的自动化蓝图。先问我想标准化什么,然后提出工作流方案。",
- "blueprint.starter_blueprint_title": "规划自动化蓝图",
- "blueprint.starter_chrome_desc": "立即开始浏览器自动化对话。",
+ "blueprint.starter_blueprint_desc": "设计一个包含技能、命令和交接步骤的可复用工作流。",
+ "blueprint.starter_blueprint_prompt": "帮我为此工作区设计一个可复用的自动化方案。先问我哪些环节需要标准化,再给出工作流。",
+ "blueprint.starter_blueprint_title": "规划自动化方案",
+ "blueprint.starter_chrome_desc": "立即开始一个浏览器自动化会话。",
"blueprint.starter_chrome_prompt": "使用内置浏览器自动化一个重复性网页任务。",
"blueprint.starter_chrome_title": "浏览器自动化",
"blueprint.starter_command_desc": "将重复的工作流转化为此工作区的斜杠命令。",
- "blueprint.starter_command_prompt": "帮我为此工作区创建一个可复用的/command。先问我想自动化什么工作流,然后起草命令。",
+ "blueprint.starter_command_prompt": "帮我为此工作区创建一个可复用的 /命令。先问我想自动化哪个工作流,再起草命令。",
"blueprint.starter_command_title": "创建可复用命令",
- "blueprint.starter_connect_openai_desc": "添加OpenAI提供商,让ChatGPT模型在新会话中即可使用。",
- "blueprint.starter_connect_openai_title": "连接ChatGPT",
- "blueprint.starter_csv_desc": "清洗或生成电子表格数据。",
- "blueprint.starter_csv_prompt": "帮我在这台电脑上创建或编辑CSV文件。",
- "blueprint.starter_csv_title": "处理CSV",
- "blueprint.starter_explore_desc": "汇总文件并建议最适合先处理的任务。",
- "blueprint.starter_explore_prompt": "汇总此工作区,指出最重要的文件,并建议最适合先处理的任务。",
+ "blueprint.starter_connect_openai_desc": "添加 OpenAI 提供商,新会话即可使用 ChatGPT 模型。",
+ "blueprint.starter_connect_openai_title": "连接 ChatGPT",
+ "blueprint.starter_csv_desc": "清理或生成表格数据。",
+ "blueprint.starter_csv_prompt": "帮我在这台电脑上创建或编辑 CSV 文件。",
+ "blueprint.starter_csv_title": "处理 CSV",
+ "blueprint.starter_explore_desc": "总结文件内容,并建议最适合先做的任务。",
+ "blueprint.starter_explore_prompt": "总结此工作区,指出最重要的文件,并建议最适合先做的任务。",
"blueprint.starter_explore_title": "探索此工作区",
- "blueprint.welcome_message": "你好,欢迎使用omnirush.ai!\n\n大家用omnirush.ai在电脑上编写CSV文件、自动化浏览器任务,以及将联系人同步到Notion。\n\n但唯一的限制是你的想象力。\n\n你想做什么?",
- "blueprint.welcome_title": "欢迎使用omnirush.ai",
+ "blueprint.welcome_message": "你好,欢迎使用 omnirush.ai!\n\n大家用它在电脑上编写 .csv 文件、自动化浏览器任务、把联系人同步到 Notion。\n\n能做什么,只取决于你的想象力。\n\n你想做点什么?",
+ "blueprint.welcome_title": "欢迎使用 omnirush.ai",
"common.add": "添加",
"common.cancel": "取消",
+ "common.back": "返回",
+ "common.beta": "测试版",
"common.close": "关闭",
+ "common.confirm": "确认",
"common.default_parens": "(默认)",
"common.edit": "编辑",
"common.hide": "隐藏",
@@ -72,77 +84,356 @@ export default {
"common.refresh": "刷新",
"common.remove": "移除",
"common.reset": "重置",
+ "common.retry": "重试",
"common.save": "保存",
"common.select": "选择",
"common.show": "显示",
- "common.something_went_wrong": "出了点问题",
+ "common.something_went_wrong": "出错了",
"common.submit": "提交",
+ "common.undo": "撤销",
"common.unknown": "未知",
+ "common.view": "查看",
"composer.agent_label": "智能体",
- "composer.any_file_type_supported": "支持任何文件类型。",
+ "composer.agent_selected": "已将智能体设为 {agent}。",
+ "composer.agent_selected_default": "已将智能体恢复为默认。",
+ "composer.agents_label": "智能体",
+ "composer.app_kind": "应用 · 电脑操控",
+ "composer.computer_use_permissions_missing": "电脑操控需要先获得 macOS 权限,才能控制 {app}。",
+ "composer.computer_use_permissions_setup": "去设置",
+ "composer.any_file_type_supported": "支持任意文件类型。",
"composer.attach_files": "附加文件",
- "composer.attachments_unavailable": "附件功能不可用。",
+ "composer.attachments_unavailable": "附件不可用。",
"composer.behavior_label": "行为",
"composer.configure": "配置",
+ "composer.connect_skill_prompt": "使用“{marketplace}”市场中的“{name}”技能。先用 omnirush-cloud_search_capabilities 找到它,再用准确的能力名称“{capability}”调用 omnirush-cloud_execute_capability,按返回的技能内容执行,并用它来 ",
"composer.default_agent": "默认智能体",
"composer.file_kind": "文件",
"composer.image_kind": "图片",
"composer.inserted_links_unsupported": "已为不支持的文件插入链接。",
"composer.loading_commands": "正在加载命令…",
"composer.mcps_label": "MCP",
+ "composer.connections_mcps_label": "连接(MCP)",
+ "composer.source_local": "本地",
"composer.no_commands": "未找到命令。",
+ "composer.no_mcps": "此工作区没有 MCP 服务器。",
+ "composer.no_connections": "没有可用的连接。",
+ "composer.no_connections_mcps": "还没有连接或 MCP 服务器。",
+ "composer.no_plugins": "资源库中还没有插件。",
+ "composer.no_plugin_files": "此插件还没有技能或命令。",
+ "composer.plugin_files_unavailable": "插件文件不可用。",
"composer.placeholder": "描述你的任务…",
- "composer.remote_worker_paste_warning": "这是远程工作区。沙箱也是远程的。要共享文件,请上传到侧边栏的共享文件夹。",
+ "composer.remote_worker_paste_warning": "这是远程工作区,沙盒也在远端。如需共享文件,请上传到侧边栏的“共享”文件夹。",
"composer.run_task": "运行任务",
- "composer.skill_source": "Skill",
+ "composer.steer": "发送",
+ "composer.steer_hint": "立即发送,智能体会在任务中途调整",
+ "composer.queue": "等智能体完成后发送",
+ "composer.queue_hint": "等智能体完成当前任务后再发送",
+ "composer.send_options": "更多发送选项",
+ "composer.queued_attachments_only": "{count} 个附件",
+ "composer.queued_count": "{count} 条排队中",
+ "composer.queued_send_now": "立即发送",
+ "composer.queued_send_now_hint": "立即发送此消息,不等智能体完成",
+ "composer.queued_reorder": "拖动以排序",
+ "composer.queued_edit": "编辑排队的消息",
+ "composer.escape_to_stop": "再按一次 Esc 停止智能体",
+ "composer.skill_source": "技能",
"composer.stop": "停止",
- "composer.tools_label": "命令、技能和MCP",
+ "composer.tools_label": "智能体、命令、技能、插件和连接",
"composer.upload_to_shared_folder": "上传到共享文件夹",
- "composer.uploaded_multiple_files": "已上传{count}个文件到共享文件夹并插入链接。",
- "composer.uploaded_single_file": "已上传{name}到共享文件夹并插入链接。",
- "config.collaborator_token_disabled_hint": "已预存用于远程共享,但远程访问当前已禁用。",
+ "composer.uploaded_multiple_files": "已上传 {count} 个文件到共享文件夹,并插入了链接。",
+ "composer.uploaded_single_file": "已上传 {name} 到共享文件夹,并插入了链接。",
+ "connect.connected_to_cloud": "已连接到 omnirush.ai Cloud",
+ "connect.connected_to_org": "已连接到 {name}",
+ "connect.diagnostics_action_label": "建议操作",
+ "connect.diagnostics_agent_description": "来自服务器计算的 omnirush.ai 智能体配置意图的脱敏证据。未观察到引擎的实际生效状态。",
+ "connect.diagnostics_agent_description_effective": "来自引擎实际解析的 omnirush.ai 智能体及其上下文标记的脱敏证据。",
+ "connect.diagnostics_agent_disabled": "智能体已停用",
+ "connect.diagnostics_agent_title": "智能体上下文",
+ "connect.diagnostics_branch_cloud_active": "云端可用",
+ "connect.diagnostics_branch_cloud_disconnected": "云端不可用",
+ "connect.diagnostics_branch_extensions_only": "仅资源库",
+ "connect.diagnostics_check_agent_connect_tool_permissions": "智能体工具权限(未观察)",
+ "connect.diagnostics_check_agent_connect_tool_permissions_effective": "实际生效的智能体工具权限",
+ "connect.diagnostics_check_agent_prompt_markers": "智能体上下文标记",
+ "connect.diagnostics_check_agent_prompt_markers_effective": "实际生效的智能体上下文标记",
+ "connect.diagnostics_check_agent_resolution": "omnirush.ai 智能体配置意图",
+ "connect.diagnostics_check_agent_resolution_effective": "实际生效的 omnirush.ai 智能体解析",
+ "connect.diagnostics_check_cloud_endpoint_differential": "运行时探测与引擎判定对比",
+ "connect.diagnostics_check_cloud_endpoint_transport": "omnirush.ai Cloud 端点传输",
+ "connect.diagnostics_check_cloud_tool_catalog": "omnirush.ai Cloud 工具目录",
+ "connect.diagnostics_check_connect_steering_scope": "Connect 引导范围",
+ "connect.diagnostics_check_engine_agent": "实际生效的引擎智能体(未查询)",
+ "connect.diagnostics_check_engine_agent_effective": "实际生效的引擎智能体",
+ "connect.diagnostics_check_engine_config": "实际生效的引擎配置(未查询)",
+ "connect.diagnostics_check_engine_config_effective": "实际生效的引擎配置",
+ "connect.diagnostics_check_engine_mcp_status": "引擎 MCP 状态(未查询)",
+ "connect.diagnostics_check_engine_mcp_sync": "托管 MCP 注册证据",
+ "connect.diagnostics_check_engine_plugin_tools": "逐请求的 Connect 上下文执行",
+ "connect.diagnostics_check_mcp_inventory": "已配置的 MCP 清单",
+ "connect.diagnostics_check_mcp_inventory_effective": "引擎配置 + 运行时托管的 MCP 清单",
+ "connect.diagnostics_check_organization_connections": "组织连接",
+ "connect.diagnostics_check_plugin_registration": "Connect 插件注册",
+ "connect.diagnostics_check_plugin_registration_effective": "实际生效的 Connect 插件配置",
+ "connect.diagnostics_check_report_safety": "报告安全性",
+ "connect.diagnostics_check_request_safety": "诊断请求安全性",
+ "connect.diagnostics_check_workspace_runtime": "工作区运行时",
+ "connect.diagnostics_checks_description": "每项检查都注明了证据范围、负责方和建议的下一步操作。",
+ "connect.diagnostics_checks_title": "验证检查",
+ "connect.diagnostics_cloud_description": "仅当运行时托管的 omnirush.ai Cloud MCP 当前已连接注册,且所选引擎的实际策略未拒绝任一候选扁平工具 ID 时,才会执行有界的 MCP initialize 与 tools/list 握手。仅凭策略检查无法证明工具确实在线;此处不会调用任何能力或提供商工具。",
+ "connect.diagnostics_cloud_not_observed": "未观察到实时云端目录。",
+ "connect.diagnostics_cloud_title": "omnirush.ai Cloud 目录",
+ "connect.diagnostics_connect_enabled": "Connect 已启用",
+ "connect.diagnostics_connect_policy": "Connect 策略",
+ "connect.diagnostics_connect_title": "Connect 路由证据",
+ "connect.diagnostics_connection_not_ready": "未就绪",
+ "connect.diagnostics_connection_ready": "已就绪",
+ "connect.diagnostics_connection_reconnect": "需要重新连接",
+ "connect.diagnostics_connection_signin": "需要你登录",
+ "connect.diagnostics_complete": "智能体诊断完成:{status}",
+ "connect.diagnostics_copied": "已复制",
+ "connect.diagnostics_copy": "复制报告",
+ "connect.diagnostics_copy_failed": "无法复制脱敏后的报告。",
+ "connect.diagnostics_copy_succeeded": "已复制脱敏后的智能体诊断报告。",
+ "connect.diagnostics_credentials_redacted": "已配置请求头 · 值已脱敏",
+ "connect.diagnostics_cross_workspace_drift": "跨工作区引导偏差",
+ "connect.diagnostics_default_agent_configured": "已配置的默认智能体意图",
+ "connect.diagnostics_default_agent_effective": "实际生效的默认智能体",
+ "connect.diagnostics_disabled_by_tools": "已被工具策略停用",
+ "connect.diagnostics_duration_ms": "{count} 毫秒",
+ "connect.diagnostics_duration_seconds": "{count} 秒",
+ "connect.diagnostics_configured_disabled": "配置为停用",
+ "connect.diagnostics_configured_enabled": "配置为启用",
+ "connect.diagnostics_effective_disabled": "实际已停用",
+ "connect.diagnostics_effective_enabled": "实际已启用",
+ "connect.diagnostics_evidence_client_observed": "客户端观察",
+ "connect.diagnostics_evidence_derived": "推导",
+ "connect.diagnostics_evidence_expected": "预期",
+ "connect.diagnostics_evidence_observed": "已观察",
+ "connect.diagnostics_evidence_unavailable": "不可用",
+ "connect.diagnostics_execute_permission": "execute_capability 权限",
+ "connect.diagnostics_expected_branch": "预期分支",
+ "connect.diagnostics_expected_endpoint_label": "所需终端路径",
+ "connect.diagnostics_effective_endpoint_label": "实际终端路径证据",
+ "connect.diagnostics_expected_tools": "预期工具",
+ "connect.diagnostics_first_failure": "首个失败的检查",
+ "connect.diagnostics_global_cloud_mcp": "全局 omnirush.ai Cloud MCP",
+ "connect.diagnostics_legacy_google_workspace": "已配置旧版 Google Workspace",
+ "connect.diagnostics_mcp_description": "来自所报告来源的有界配置意图,包括启用状态、上次注册结果,以及是否配置了请求头(不含密钥值)。未观察到引擎的实际生效配置。",
+ "connect.diagnostics_mcp_description_effective": "分别展示引擎合并后的配置与 omnirush.ai 托管的动态注入意图。运行时行包含确切的注册结果;这不是完整的实时工具注册表快照。",
+ "connect.diagnostics_mcp_empty": "未观察到 MCP 配置项。",
+ "connect.diagnostics_mcp_config_effective": "已观察到实际生效的配置",
+ "connect.diagnostics_mcp_status_unavailable": "未查询实时连接状态",
+ "connect.diagnostics_mcp_title": "MCP 清单",
+ "connect.diagnostics_artifacts_marker": "产物标记",
+ "connect.diagnostics_missing_features": "缺少 {count} 项功能",
+ "connect.diagnostics_no": "否",
+ "connect.diagnostics_no_headers": "未配置请求头",
+ "connect.diagnostics_none": "无",
+ "connect.diagnostics_not_observed": "未观察",
+ "connect.diagnostics_observation_label": "观察结果",
+ "connect.diagnostics_configured_endpoint_label": "已配置的终端路径证据",
+ "connect.diagnostics_runtime_endpoint_label": "运行时托管的终端路径证据",
+ "connect.diagnostics_observed_tools": "已观察到的工具",
+ "connect.diagnostics_org_description": "这些连接运行在单一的 omnirush.ai Cloud 元 MCP 之后,不会作为独立的引擎 MCP 注入。",
+ "connect.diagnostics_org_count": "已报告 {count}/{total}",
+ "connect.diagnostics_org_empty": "未观察到组织连接列表。",
+ "connect.diagnostics_org_per_member": "使用每位成员自己的账号",
+ "connect.diagnostics_org_shared": "组织共享凭据",
+ "connect.diagnostics_org_title": "组织连接",
+ "connect.diagnostics_owner_label": "负责方",
+ "connect.diagnostics_owner_member": "成员",
+ "connect.diagnostics_owner_member_and_organization_admin": "成员和组织管理员",
+ "connect.diagnostics_owner_network_admin": "网络管理员",
+ "connect.diagnostics_owner_opencode_engine": "omnirush.ai 引擎",
+ "connect.diagnostics_owner_omnirush_client": "omnirush.ai 客户端",
+ "connect.diagnostics_owner_omnirush_server": "omnirush.ai 服务器",
+ "connect.diagnostics_owner_omnirush_support": "omnirush.ai 支持团队",
+ "connect.diagnostics_owner_organization_admin": "组织管理员",
+ "connect.diagnostics_plugin_tools_empty": "未启动 LLM 轮次,因此不声称已观察到 Connect 插件的逐请求上下文转换和完整工具注册表。",
+ "connect.diagnostics_plugin_tools_description": "插件的规范配置与逐请求执行分开验证。",
+ "connect.diagnostics_plugin_tools_title": "逐请求的 Connect 执行",
+ "connect.diagnostics_permission_allowed": "允许",
+ "connect.diagnostics_permission_approval_required": "需要批准",
+ "connect.diagnostics_permission_denied": "拒绝",
+ "connect.diagnostics_permission_unspecified": "未观察",
+ "connect.diagnostics_probe_code_list_failed": "列出失败",
+ "connect.diagnostics_probe_code_not_attempted": "未尝试",
+ "connect.diagnostics_probe_code_remote_workspace_privacy": "为保护远程工作区隐私已省略",
+ "connect.diagnostics_probe_code_signed_out": "已退出登录",
+ "connect.diagnostics_probe_status_observed": "已观察",
+ "connect.diagnostics_probe_status_skipped": "已跳过",
+ "connect.diagnostics_probe_status_unavailable": "不可用",
+ "connect.diagnostics_prompt_length": "提示词长度",
+ "connect.diagnostics_prompt_redacted": "不包含原始提示词文本,仅报告其长度、SHA-256 摘要以及必需标记是否存在。",
+ "connect.diagnostics_prompt_sha": "提示词 SHA-256",
+ "connect.diagnostics_read_only_notice": "诊断本身不会直接请求任何配置修改、提供商操作或能力调用。读取引擎时可能会初始化冷启动的引擎,并执行已配置的引导或插件钩子,其副作用不在检查范围内。经过认证的请求和符合条件的云端目录请求可能会记录正常的会话或可观测性活动。",
+ "connect.diagnostics_preflight_notice": "此操作会读取所选引擎的配置和智能体 API。引擎冷启动时,可能会初始化已配置的插件或引导钩子,它们各有副作用。诊断本身不会直接请求任何配置修改、提供商操作、能力调用或非云端 MCP 拉取;符合条件的有界 omnirush.ai Cloud initialize 与 tools/list 握手会产生经过认证的出站请求。",
+ "connect.diagnostics_registered_plugins": "已配置的插件标签",
+ "connect.diagnostics_effective_plugins": "实际生效的插件标签",
+ "connect.diagnostics_report_title": "智能体诊断报告",
+ "connect.diagnostics_configured_agent": "已配置的 omnirush.ai 智能体",
+ "connect.diagnostics_effective_agent": "实际生效的 omnirush.ai 智能体",
+ "connect.diagnostics_agent_state": "omnirush.ai 智能体状态",
+ "connect.diagnostics_agent_state_configured_disabled": "配置为停用",
+ "connect.diagnostics_agent_state_missing": "缺失",
+ "connect.diagnostics_agent_state_present": "存在",
+ "connect.diagnostics_run": "运行智能体诊断",
+ "connect.diagnostics_run_failed": "智能体诊断未能完成。请检查所选工作区的连接后重试。",
+ "connect.diagnostics_run_id": "运行 ID",
+ "connect.diagnostics_running": "正在运行诊断…",
+ "connect.diagnostics_safety_mutation": "未直接请求修改配置",
+ "connect.diagnostics_safety_non_cloud_fetch": "未直接拉取非云端 MCP",
+ "connect.diagnostics_safety_authorization_values": "已排除 Authorization 请求头的值",
+ "connect.diagnostics_safety_credential_values": "已排除凭据值",
+ "connect.diagnostics_safety_engine_api_read_performed": "已读取引擎配置和智能体",
+ "connect.diagnostics_safety_engine_bootstrap": "引擎引导可能已运行",
+ "connect.diagnostics_safety_engine_bootstrap_inspected": "已检查引擎引导的副作用",
+ "connect.diagnostics_safety_ephemeral_mint": "未直接签发临时凭据",
+ "connect.diagnostics_safety_prompts": "已排除原始提示词",
+ "connect.diagnostics_safety_provider_responses": "已排除提供商响应",
+ "connect.diagnostics_safety_raw_engine_errors": "已排除原始引擎错误",
+ "connect.diagnostics_safety_workspace_runtime_read_only": "诊断对运行时配置的读取为只读",
+ "connect.diagnostics_safety_provider_operation": "未直接请求提供商操作",
+ "connect.diagnostics_safety_auth_activity": "可能记录正常的认证/会话活动",
+ "connect.diagnostics_safety_secret_urls": "已排除含密钥的 URL",
+ "connect.diagnostics_safety_stack_traces": "已排除堆栈跟踪",
+ "connect.diagnostics_safety_token_values": "已排除令牌值",
+ "connect.diagnostics_safety_tool_call": "未直接调用 MCP 工具",
+ "connect.diagnostics_safety_tools_list": "已执行云端 tools/list",
+ "connect.diagnostics_safety_input_validated": "输入已严格校验",
+ "connect.diagnostics_search_permission": "search_capabilities 权限",
+ "connect.diagnostics_status_failed": "失败",
+ "connect.diagnostics_status_passed": "通过",
+ "connect.diagnostics_status_skipped": "已跳过",
+ "connect.diagnostics_status_warning": "警告",
+ "connect.diagnostics_sync_label": "注册记录",
+ "connect.diagnostics_sync_status_connected": "已连接",
+ "connect.diagnostics_sync_status_disabled": "已停用",
+ "connect.diagnostics_sync_status_failed": "失败",
+ "connect.diagnostics_sync_status_needs_auth": "需要认证",
+ "connect.diagnostics_sync_status_needs_client_registration": "需要注册客户端",
+ "connect.diagnostics_sync_status_not_applicable": "不适用",
+ "connect.diagnostics_sync_status_not_recorded": "未记录请求",
+ "connect.diagnostics_unknown": "未知",
+ "connect.diagnostics_unavailable_direct_opencode": "出于隐私考虑,直连的远程 omnirush.ai 工作区不提供智能体诊断。请改用远程 omnirush.ai 工作区运行此报告。",
+ "connect.diagnostics_workspace_cloud_mcp": "所选工作区的 omnirush.ai Cloud MCP",
+ "connect.diagnostics_yes": "是",
+ "connect.empty_body": "你的组织可以在 Den 网页版发布 MCP 连接。",
+ "connect.empty_title": "还没有团队连接",
+ "connect.header_description": "使用 omnirush.ai Den 共享的、经团队批准的云端连接。",
+ "connect.header_title": "团队版 Connect",
+ "connect.loading": "正在加载 Connect…",
+ "connect.manage_in_den_web": "在 Den 网页版中管理",
+ "connect.marketplace_active_cloud_label": "已启用 · 在云端运行",
+ "connect.marketplace_empty": "此组织尚未发布任何市场内容。",
+ "connect.marketplace_local_copy_badge": "已安装本地副本",
+ "connect.marketplace_local_copy_note": "已安装本地副本,仍可使用,在本机运行。",
+ "connect.marketplace_no_components": "未列出组件",
+ "connect.marketplace_no_description": "未提供描述。",
+ "connect.marketplace_resource_count": "{count} 个{type}",
+ "connect.marketplace_resource_type_command_one": "命令",
+ "connect.marketplace_resource_type_command_other": "命令",
+ "connect.marketplace_resource_type_mcp_one": "MCP",
+ "connect.marketplace_resource_type_mcp_other": "MCP",
+ "connect.marketplace_resource_type_skill_one": "技能",
+ "connect.marketplace_resource_type_skill_other": "技能",
+ "connect.marketplace_resource_type_tool_one": "工具",
+ "connect.marketplace_resource_type_tool_other": "工具",
+ "connect.marketplace_section_description": "市场内容通过 Connect 提供给此组织,并在云端运行。",
+ "connect.marketplace_section_title": "来自你的市场",
+ "connect.pitch_body": "请联系组织管理员启用 Connect(测试版)后开始使用。",
+ "connect.pitch_title": "Connect 是 omnirush.ai 与团队共享工作流的新方式。",
+ "connect.group_needs_admin_setup": "需要管理员设置",
+ "connect.group_needs_signin": "需要你登录",
+ "connect.group_ready": "可以使用",
+ "connect.organization_empty": "此组织尚未发布可在云端运行的内容。",
+ "connect.organization_no_matches": "没有与搜索匹配的组织能力。",
+ "connect.organization_search_placeholder": "搜索组织能力…",
+ "connect.organization_section_description": "可在云端运行的插件和团队连接会显示在这里。",
+ "connect.organization_section_title": "来自你的组织",
+ "connect.row_action_connect": "连接",
+ "connect.row_action_set_up_connection": "设置连接 →",
+ "connect.row_chip_ready": "已就绪",
+ "connect.row_component_agent_one": "智能体",
+ "connect.row_component_agent_other": "智能体",
+ "connect.row_component_command_one": "命令",
+ "connect.row_component_command_other": "命令",
+ "connect.row_component_context_one": "上下文",
+ "connect.row_component_context_other": "上下文",
+ "connect.row_component_count": "{count} 个{type}",
+ "connect.row_component_custom_one": "自定义项",
+ "connect.row_component_custom_other": "自定义项",
+ "connect.row_component_hook_one": "钩子",
+ "connect.row_component_hook_other": "钩子",
+ "connect.row_component_mcp_one": "MCP",
+ "connect.row_component_mcp_other": "MCP",
+ "connect.row_component_skill_one": "技能",
+ "connect.row_component_skill_other": "技能",
+ "connect.row_component_tool_one": "工具",
+ "connect.row_component_tool_other": "工具",
+ "connect.row_meta_instructional_needs_setup": "技能已可用 · 应用需要设置",
+ "connect.row_meta_list_separator": "、",
+ "connect.row_meta_managed_by_org": "由你的组织管理",
+ "connect.row_meta_needs_setup_names": "需要 {names}",
+ "connect.row_meta_no_components": "由你的组织管理",
+ "connect.row_meta_separator": " · ",
+ "connect.row_meta_your_account": "使用你的账号",
+ "connect.state_disabled_action": "请联系组织管理员启用 Connect。",
+ "connect.state_disabled_label": "已停用",
+ "connect.state_disabled_stage": "已被组织策略停用",
+ "connect.state_not_configured_action": "登录 omnirush.ai Cloud 以完成设置。",
+ "connect.state_not_configured_label": "未配置",
+ "connect.state_not_configured_stage": "Connect 尚未完成设置",
+ "connect.state_ready_action": "无需操作。",
+ "connect.state_ready_label": "已就绪",
+ "connect.state_ready_stage": "Connect 已启用",
+ "connect.state_unavailable_action": "请重启 omnirush.ai。如果问题仍然存在,请运行诊断。",
+ "connect.state_unavailable_label": "需要处理",
+ "connect.state_unavailable_stage": "Connect 设置不可用",
+ "connect.waiting_for_browser": "正在等待浏览器…",
+ "config.collaborator_token_disabled_hint": "已预先保存用于远程共享,但远程访问当前已关闭。",
"config.collaborator_token_label": "协作者令牌",
- "config.collaborator_token_remote_hint": "手机或笔记本连接此服务器时的日常远程访问。",
+ "config.collaborator_token_remote_hint": "手机或笔记本电脑连接此服务器时的日常远程访问。",
"config.connection_failed": "连接失败。",
- "config.connection_failed_check": "连接失败。请检查主机URL和令牌。",
+ "config.connection_failed_check": "连接失败。请检查主机 URL 和令牌。",
"config.connection_status_updated": "连接状态已更新。",
"config.connection_successful": "连接成功。",
"config.copied": "已复制",
"config.copy": "复制",
"config.desktop_only_hint": "部分配置功能(本地服务器共享)需要桌面应用。",
- "config.diagnostics_desc": "复制脱敏的运行时状态用于调试。",
+ "config.diagnostics_desc": "复制脱敏后的运行时状态,用于调试。",
"config.diagnostics_title": "诊断包",
- "config.engine_reload_desc": "重启此工作区的OpenCode服务器。",
- "config.engine_reload_title": "引擎重新加载",
- "config.host_admin_token_hint": "仅限主机内部使用的令牌,用于审批CLI和管理API。请勿在远程应用连接流程中使用。",
+ "config.engine_reload_desc": "重启此工作区的 omnirush.ai 服务器。",
+ "config.engine_reload_title": "重新加载引擎",
+ "config.host_admin_token_hint": "仅限主机内部使用的令牌,用于审批 CLI 和管理 API。请勿在远程应用的连接流程中使用。",
"config.host_admin_token_label": "主机管理员令牌",
"config.host_local_only": "仅限本地",
"config.host_offline": "离线",
"config.host_remote_enabled": "已启用远程",
- "config.local_ip_hint": "在同一Wi-Fi下使用本地IP可获得最快连接。",
- "config.mdns_hint": ".local名称更易记忆,但可能无法在所有网络上解析。",
+ "config.local_ip_hint": "在同一 Wi-Fi 下使用本地 IP,连接速度最快。",
+ "config.mdns_hint": ".local 名称更好记,但不一定能在所有网络中解析。",
"config.not_set": "未设置",
- "config.owner_token_disabled_hint": "仅在启用此工作区的远程访问后才有效。",
+ "config.owner_token_disabled_hint": "仅在为此工作区开启远程访问后才需要。",
"config.owner_token_label": "所有者令牌",
- "config.owner_token_remote_hint": "远程客户端需要回答权限提示或执行所有者操作时使用。",
- "config.reload_active_tasks_warning": "重新加载将停止活动任务。",
- "config.reload_availability_hint": "仅本地工作区或已连接的omnirush.ai服务器支持重新加载。",
+ "config.owner_token_remote_hint": "当远程客户端需要回应权限请求或执行仅限所有者的操作时使用。",
+ "config.reload_active_tasks_warning": "重新加载会停止正在运行的任务。",
+ "config.reload_availability_hint": "仅本地工作区或已连接的 omnirush.ai 服务器支持重新加载。",
"config.reload_connect_hint": "连接此工作区后才能重新加载。",
"config.reload_engine": "重新加载引擎",
"config.reload_now_desc": "应用配置更新并重新连接会话。",
"config.reload_now_title": "立即重新加载",
"config.reloading": "正在重新加载…",
- "config.remote_access_off_hint": "远程访问已关闭。请先通过分享工作区启用远程访问,然后再从其他设备连接。",
- "config.resolved_worker_url": "解析后的工作区URL:",
- "config.server_needed_hint": "需要连接omnirush.ai服务器以同步skills、插件和命令。",
- "config.server_section_desc": "连接omnirush.ai服务器。使用URL加服务器管理员提供的协作者或所有者令牌。",
- "config.server_section_title": "omnirush.ai服务器",
- "config.server_sharing_desc": "将这些详情分享给受信任的设备。保持服务器在同一网络以获得最快设置。",
- "config.server_sharing_menu_hint": "如需每个工作区的分享链接,请使用工作区菜单中的分享…",
- "config.server_sharing_title": "omnirush.ai服务器共享",
- "config.server_url_hint": "使用omnirush.ai服务器提供的URL。本地桌面工作区使用48000-51000范围内的持久高端口。",
- "config.server_url_input_label": "omnirush.ai服务器URL",
- "config.server_url_label": "omnirush.ai服务器URL",
+ "config.remote_access_off_hint": "远程访问已关闭。请先通过“共享工作区”开启,再从其他设备连接。",
+ "config.resolved_worker_url": "解析后的工作区 URL:",
+ "config.server_needed_hint": "需要连接 omnirush.ai 服务器才能同步技能、插件和命令。",
+ "config.server_section_desc": "连接 omnirush.ai 服务器。请使用服务器管理员提供的 URL,以及协作者令牌或所有者令牌。",
+ "config.server_section_title": "omnirush.ai 服务器",
+ "config.server_sharing_desc": "将这些信息分享给受信任的设备。服务器与设备处于同一网络时,设置最快。",
+ "config.server_sharing_menu_hint": "如需单个工作区的共享链接,请使用工作区菜单中的“共享…”。",
+ "config.server_sharing_title": "omnirush.ai 服务器共享",
+ "config.server_url_hint": "使用 omnirush.ai 服务器提供的 URL。本地桌面工作区会固定使用 48000–51000 范围内的某个高位端口。",
+ "config.server_url_input_label": "omnirush.ai 服务器 URL",
+ "config.server_url_label": "omnirush.ai 服务器 URL",
"config.starting_server": "正在启动服务器…",
"config.status_connected": "已连接",
"config.status_limited": "受限",
@@ -150,116 +441,172 @@ export default {
"config.test_connection": "测试连接",
"config.testing": "正在测试…",
"config.testing_connection": "正在测试连接…",
- "config.token_hint": "可选。粘贴协作者令牌用于日常访问,或在此客户端需要回答权限提示时粘贴所有者令牌。",
+ "config.token_hint": "可选。日常访问请粘贴协作者令牌;如果此客户端需要回应权限请求,请粘贴所有者令牌。",
"config.token_label": "协作者或所有者令牌",
"config.token_placeholder": "粘贴你的令牌",
"config.unavailable": "不可用",
- "config.worker_id": "工作区ID:",
- "config.workspace_config_desc": "这些设置影响所选工作区。仅运行时操作适用于当前连接的工作区。",
+ "config.worker_id": "工作区 ID:",
+ "config.workspace_config_desc": "这些设置作用于所选工作区。仅运行时操作作用于当前已连接的工作区。",
"config.workspace_config_title": "工作区配置",
"config.workspace_id_prefix": "工作区:",
"context_panel.add_button": "添加",
- "context_panel.add_folder_hint": "添加文件夹以允许此工作区读写其根目录以外的文件。",
- "context_panel.adding_button": "添加中…",
- "context_panel.always_available": "Workspace root folder can't be removed",
+ "context_panel.add_folder_hint": "添加文件夹后,此工作区即可读写其根目录以外的文件。",
+ "context_panel.adding_button": "正在添加…",
+ "context_panel.always_available": "工作区根目录不能移除",
"context_panel.authorized_folders": "已授权文件夹",
- "context_panel.authorized_folders_desc": "授予此工作区访问权限,以读取和编辑根目录之外的文件夹。",
- "context_panel.authorized_folders_no_access": "连接可写的omnirush.ai服务器工作区以编辑已授权文件夹。",
+ "context_panel.authorized_folders_desc": "允许此工作区读取和编辑其根目录以外的文件夹中的文件。",
+ "context_panel.authorized_folders_no_access": "连接可写的 omnirush.ai 服务器工作区后,才能编辑已授权文件夹。",
+ "context_panel.effective_permissions": "智能体在此的运行方式",
+ "context_panel.effective_permissions_desc": "引擎在此工作区中执行哪些操作前会先询问你,以及由哪个配置决定。信息直接读取自引擎。",
+ "context_panel.effective_permissions_agent": "智能体:{agent}",
+ "context_panel.effective_permissions_loading": "正在读取引擎的权限规则…",
+ "context_panel.effective_permissions_unavailable": "连接到引擎正在运行的 omnirush.ai 服务器工作区,即可查看智能体在此的运行方式。",
+ "context_panel.effective_permissions_exceptions": "{count} 条更细的规则",
+ "context_panel.effective_permission_shell": "Shell 命令",
+ "context_panel.effective_permission_edit": "编辑文件",
+ "context_panel.effective_permission_web": "网页抓取",
+ "context_panel.effective_permission_mcp": "MCP 工具",
+ "context_panel.effective_permission_outside_folders": "已授权文件夹以外的文件",
+ "context_panel.effective_permission_env_files": ".env 文件",
+ "context_panel.effective_permission_doom_loop": "重复相同的调用",
+ "context_panel.permission_action_allow": "直接运行",
+ "context_panel.permission_action_ask": "先询问你",
+ "context_panel.permission_action_deny": "已阻止",
+ "context_panel.permission_source_engine": "引擎默认",
+ "context_panel.permission_source_global": "你的全局引擎配置",
+ "context_panel.permission_source_omnirush": "omnirush.ai",
+ "context_panel.permission_source_workspace": "此工作区的引擎配置",
"context_panel.browse_button": "浏览",
- "context_panel.config_access_unavailable": "此工作区无法访问omnirush.ai服务器配置。",
- "context_panel.config_read_only": "omnirush.ai服务器对工作区配置为只读连接。",
+ "context_panel.config_access_unavailable": "此工作区无法访问 omnirush.ai 服务器配置。",
+ "context_panel.config_read_only": "omnirush.ai 服务器以只读方式连接工作区配置。",
"context_panel.folder_already_authorized": "文件夹已授权。",
"context_panel.folders_updated": "已授权文件夹已更新。",
"context_panel.input_placeholder": "输入要授权的文件夹路径…",
+ "context_panel.manage_folders_from_workspace": "文件夹由工作区管理。你仍可在此查看和移除文件夹。",
"context_panel.no_external_folders": "暂无已授权的外部文件夹",
- "context_panel.no_mcp": "未加载MCP服务器。",
+ "context_panel.no_mcp": "未加载 MCP 服务器。",
"context_panel.no_server_workspace": "未选择活动的服务器工作区。",
- "context_panel.no_skills": "未加载skills。",
- "context_panel.preserving_entries": "保留{count}条非文件夹权限条目。",
- "context_panel.preserving_entry": "保留1条非文件夹权限条目。",
- "context_panel.remove_folder": "移除{name}",
+ "context_panel.no_skills": "未加载技能。",
+ "context_panel.preserving_entries": "将保留 {count} 条非文件夹权限条目。",
+ "context_panel.preserving_entry": "将保留 1 条非文件夹权限条目。",
+ "context_panel.remove_folder": "移除 {name}",
"context_panel.saving_folders": "正在保存已授权文件夹…",
- "context_panel.server_disconnected": "omnirush.ai服务器已断开连接。",
+ "context_panel.server_disconnected": "omnirush.ai 服务器已断开连接。",
"context_panel.workspace_root_available": "工作区根目录已可用。",
"context_panel.workspace_root_badge": "工作区根目录",
- "context_panel.writable_workspace_required": "需要可写的omnirush.ai服务器工作区才能更新已授权文件夹。",
+ "context_panel.writable_workspace_required": "需要可写的 omnirush.ai 服务器工作区,才能更新已授权文件夹。",
"dashboard.change": "更改",
"dashboard.choose_folder": "选择文件夹",
- "dashboard.choose_folder_continue": "选择文件夹以继续。",
- "dashboard.chooser_local_desc": "在此设备上创建工作区,可选择从团队模板开始。",
- "dashboard.chooser_remote_desc": "使用URL和访问令牌连接自托管的omnirush.ai工作区。",
+ "dashboard.choose_folder_continue": "请选择一个文件夹以继续。",
+ "dashboard.chooser_local_desc": "在此设备上创建工作区。",
+ "dashboard.chooser_remote_desc": "通过 URL 和访问令牌连接自托管的 omnirush.ai 工作区。",
+ "dashboard.back_to_app": "返回应用",
"dashboard.close_settings": "关闭设置",
"dashboard.commands": "命令",
"dashboard.connect_remote_button": "连接远程",
"dashboard.connected": "已连接",
"dashboard.connecting": "正在连接…",
- "dashboard.create_local_workspace_subtitle": "在此设备上创建工作区,可选择从团队模板开始。",
+ "dashboard.create_local_workspace_subtitle": "在此设备上创建工作区。",
"dashboard.create_local_workspace_title": "本地工作区",
- "dashboard.create_remote_custom_subtitle": "连接自托管的omnirush.ai工作区。",
- "dashboard.create_remote_custom_title": "连接自定义远程",
+ "dashboard.create_remote_custom_subtitle": "连接自托管的 omnirush.ai 工作区。",
+ "dashboard.create_remote_custom_title": "连接自定义远程工作区",
"dashboard.create_remote_workspace_confirm": "添加工作区",
- "dashboard.create_remote_workspace_subtitle": "保存omnirush.ai服务器为工作区。",
+ "dashboard.create_remote_workspace_subtitle": "将 omnirush.ai 服务器保存为工作区。",
"dashboard.create_remote_workspace_title": "添加远程工作区",
- "dashboard.create_sandbox_confirm": "创建为沙箱",
+ "dashboard.create_sandbox_confirm": "创建为沙盒",
"dashboard.create_workspace_confirm": "创建工作区",
- "dashboard.create_workspace_subtitle": "初始化新的基于文件夹的工作区。",
+ "dashboard.create_workspace_subtitle": "初始化一个基于文件夹的新工作区。",
"dashboard.create_workspace_title": "创建工作区",
"dashboard.desktop_badge": "桌面版",
"dashboard.edit_remote_workspace_confirm": "保存连接",
- "dashboard.edit_remote_workspace_subtitle": "更新此工作区的omnirush.ai服务器信息。",
+ "dashboard.edit_remote_workspace_subtitle": "更新此工作区的 omnirush.ai 服务器信息。",
"dashboard.edit_remote_workspace_title": "编辑远程连接",
- "dashboard.error_choose_org": "请先选择组织再打开工作区。",
- "dashboard.error_connect_worker": "连接{name}失败。",
+ "dashboard.error_choose_org": "请先选择组织,再打开工作区。",
+ "dashboard.error_connect_worker": "无法连接到 {name}。",
"dashboard.error_load_orgs": "加载组织失败。",
"dashboard.error_load_shared_workspaces": "加载共享工作区失败。",
- "dashboard.error_workspace_not_ready": "工作区尚未就绪。请稍后重试。",
+ "dashboard.error_workspace_not_ready": "工作区尚未就绪,请稍后重试。",
"dashboard.import_config": "导入配置",
"dashboard.importing": "正在导入…",
"dashboard.modal_back": "返回",
- "dashboard.modal_close": "关闭添加工作区弹窗",
+ "dashboard.modal_close": "关闭“添加工作区”窗口",
"dashboard.remote": "远程",
- "dashboard.remote_base_url_required": "请先填写服务器地址。",
- "dashboard.remote_server_details_hint": "连接自托管的omnirush.ai工作区。",
+ "dashboard.remote_base_url_required": "请先填写服务器 URL。",
+ "dashboard.remote_server_details_hint": "连接自托管的 omnirush.ai 工作区。",
"dashboard.remote_server_details_title": "远程服务器详情",
- "dashboard.sandbox_checking_docker": "正在检查Docker...",
- "dashboard.sandbox_get_ready_title": "沙箱需要Docker",
- "dashboard.skills": "Skills(技能)",
+ "dashboard.sandbox_checking_docker": "正在检查 Docker…",
+ "dashboard.sandbox_get_ready_title": "沙盒需要 Docker",
+ "dashboard.skills": "技能",
+ "connect.verifying_title": "正在检查连接链接…",
+ "connect.verifying_body": "在做任何更改之前,先检查组织和服务器。",
+ "connect.confirm_title": "为 {org} 设置 {appName}?",
+ "connect.contact_body": "此设置链接未经本应用信任的服务器签名。继续操作会将其中的一次性代码发送到 {host} 以查询组织。目前尚未做任何更改;仅当管理员向你发送了此链接时才继续。",
+ "connect.contact_cta": "继续",
+ "connect.contact_title": "联系 {host}?",
+ "connect.confirm_body": "本应用将使用 {host} 作为组织服务器。目前尚未做任何更改。",
+ "connect.confirm_switch_body": "本应用当前连接的是 {current}。确认后将切换到 {host}。",
+ "connect.confirm_server_label": "服务器",
+ "connect.confirm_expires_label": "链接有效期至",
+ "connect.confirm_signin_note": "此链接只用于配置应用,不会让你登录。接下来你将使用组织账号登录。",
+ "connect.confirm_cta": "连接",
+ "connect.applying": "正在连接…",
+ "connect.error_title": "此链接无法使用",
+ "connect.error_expired": "连接链接已过期。请返回组织的下载页面,再次点击“打开”。",
+ "connect.error_unknown_kid": "此链接使用了比本应用更新的密钥签名。请更新 omnirush.ai 后重试。",
+ "connect.error_replayed": "此连接链接已被使用过。请返回组织的下载页面,再次点击“打开”。",
+ "connect.error_insecure_url": "该链接指向的服务器未启用 HTTPS,已被拒绝。",
+ "connect.error_unavailable": "组织服务器无法验证此链接。请检查网络连接后重试。",
+ "connect.error_invalid": "链接验证失败,已被拒绝。",
+ "connect.error_untouched": "本应用未做任何更改。",
"den.active_org_title": "当前组织",
- "den.auto_reconnect_hint": "在浏览器中完成认证后,omnirush.ai将自动重新连接。",
+ "den.auto_reconnect_hint": "在浏览器中完成认证后,omnirush.ai 会自动在此重新连接。",
+ "den.browser_open_failed_hint": "复制登录链接并在任意浏览器中打开,然后通过“粘贴登录码”完成登录。",
"den.checking_session": "正在检查会话",
"den.choose_org_for_providers": "选择一个组织以查看云端提供商。",
- "den.cloud_account_hint": "管理已连接的账户和组织。",
- "den.cloud_account_title": "Cloud账户",
+ "den.cloud_account_hint": "管理已连接的账号和组织。",
+ "den.cloud_account_title": "云端账号",
+ "den.cloud_control_plane_clear": "清除服务器配置",
+ "den.cloud_control_plane_clear_confirm": "再次点击以清除",
+ "den.cloud_control_plane_clear_confirm_hint": "这只会从此设备移除桌面引导配置。",
+ "den.cloud_control_plane_clear_hint": "移除此设备上的托管服务器配置,不会删除工作区。",
"den.cloud_control_plane_open": "在浏览器中打开",
"den.cloud_control_plane_reset": "重置",
- "den.cloud_control_plane_save": "保存URL",
- "den.cloud_control_plane_url_hint": "仅限开发者模式。用于连接本地或自托管的Cloud控制平面。更改后将退出登录以重新连接新的控制平面。",
- "den.cloud_control_plane_url_label": "Cloud控制平面URL",
- "den.cloud_provider_detail": "{count}个模型 · {source}提供商",
- "den.cloud_provider_blocked": "此桌面端不可用",
+ "den.cloud_control_plane_save": "保存 URL",
+ "den.cloud_control_plane_url_hint": "仅限开发者模式。用于连接本地或自托管的 Cloud 控制平面。更改后会退出登录,以便应用重新连接到新的控制平面。",
+ "den.cloud_control_plane_url_label": "Cloud 控制平面 URL",
+ "den.cloud_provider_detail": "{count} 个模型 · {source} 提供商",
+ "den.cloud_provider_blocked": "在此桌面端不可用",
"den.cloud_provider_conflict": "冲突",
"den.cloud_provider_connected": "已连接",
"den.cloud_provider_error": "同步错误",
"den.cloud_provider_imports_unavailable": "此工作区无法导入",
"den.cloud_provider_needs_credential": "需要组织凭据",
- "den.cloud_provider_needs_server": "需要omnirush.ai服务器",
+ "den.cloud_provider_needs_server": "需要 omnirush.ai 服务器",
"den.cloud_provider_retry": "重试",
"den.cloud_provider_syncing": "同步中",
- "den.cloud_provider_removed_detail": "此导入的提供商不再存在于云端。请卸载本地的{providerId}配置。",
- "den.cloud_provider_sync_detail": "云端提供商已变更。将{count}个模型的{source}配置同步到opencode.jsonc。",
- "den.cloud_providers_hint": "组织授予的提供商会自动同步。可在此查看其状态。",
+ "den.cloud_provider_removed_detail": "此导入的提供商已不在云端。请卸载本地的 {providerId} 配置。",
+ "den.cloud_provider_sync_detail": "云端提供商已变更。请将 {count} 个模型的 {source} 配置同步到此工作区。",
+ "den.cloud_providers_hint": "组织授予的提供商会自动同步,可在此查看状态。",
"den.cloud_providers_title": "云端提供商",
- "den.cloud_section_desc": "登录、选择组织,打开Cloud工作区或团队模板。",
+ "den.cloud_section_desc": "登录并选择组织,即可使用 omnirush.ai Cloud。",
"den.cloud_section_title": "omnirush.ai Cloud",
- "den.cloud_sleep_hint": "登录omnirush.ai Cloud,即使电脑进入睡眠状态也能保持任务运行。",
- "den.create_account": "创建账户",
+ "den.cloud_sleep_hint": "登录 omnirush.ai Cloud,即使电脑进入睡眠,任务也能继续运行。",
+ "den.cloud_signed_in_desc": "你已登录,可以开始使用 omnirush.ai Cloud。",
+ "den.open_dashboard": "打开 Den 控制台",
+ "den.cloud_unavailable_body": "本地工作不受影响,正在自动重新连接。",
+ "den.cloud_unavailable_title": "omnirush.ai Cloud 暂时不可用。",
+ "den.copy_signin_link": "复制登录链接",
+ "den.create_account": "创建账号",
"den.credentials_ready_badge": "凭据就绪",
- "den.error_base_url": "请输入有效的http:// 或https:// Cloud控制平面URL。",
+ "den.error_base_url": "请输入有效的 http:// 或 https:// Cloud 控制平面 URL。",
+ "den.error_browser_open_failed": "无法自动打开浏览器。",
"den.error_load_orgs": "加载组织失败。",
- "den.error_no_session": "未找到有效的Cloud会话。",
- "den.error_no_token": "桌面登录已完成,但omnirush.ai Cloud未返回会话令牌。",
- "den.error_paste_valid_code": "请粘贴有效的omnirush.ai登录链接或一次性登录码。",
- "den.error_signin_failed": "完成omnirush.ai Cloud登录失败。",
+ "den.error_no_session": "未找到有效的 Cloud 会话。",
+ "den.error_no_token": "桌面登录已完成,但 omnirush.ai Cloud 没有返回会话令牌。",
+ "den.error_paste_valid_code": "请粘贴有效的 omnirush.ai 登录链接或一次性登录码。",
+ "den.error_signin_failed": "未能完成 omnirush.ai Cloud 登录。",
+ "den.error_signin_link_other_server": "此登录链接属于 {origin}。请先将工作区地址更新为该服务器,再重新粘贴登录码。",
+ "den.error_signout_failed": "无法退出 omnirush.ai Cloud,请重试。",
"den.finish_signin": "完成登录",
"den.finishing": "正在完成…",
"den.hide_signin_code": "隐藏登录码",
@@ -267,123 +614,339 @@ export default {
"den.import_provider": "导入",
"den.imported_badge": "已导入",
"den.importing_plugin": "正在导入插件…",
- "den.needs_attention": "需要关注",
+ "den.needs_attention": "需要处理",
"den.no_cloud_providers": "此组织暂无可用的云端提供商。",
"den.no_org_selected": "未选择组织",
"den.open": "打开",
"den.opening": "正在打开…",
"den.org_member_suffix": "(成员)",
"den.org_owner_suffix": "(所有者)",
- "den.org_switched": "已切换到{name}。",
- "den.out_of_sync_badge": "不同步",
+ "den.org_switched": "已切换到 {name}。",
+ "den.out_of_sync_badge": "未同步",
+ "den.private_badge": "私有",
"den.paste_signin_code": "粘贴登录码",
"den.refresh": "刷新",
- "den.reload_workspace": "重新加载工作区以应用配置变更。",
- "den.remove_provider_failed": "移除{name}失败。",
+ "den.reload_workspace": "重新加载工作区以应用配置更改。",
+ "den.remove_provider_failed": "无法移除 {name}。",
"den.removed_from_cloud_badge": "已从云端移除",
- "den.removed_provider": "已移除{name}。",
- "den.removing": "移除中…",
+ "den.removed_provider": "已移除 {name}。",
+ "den.removing": "正在移除…",
"den.sign_out": "退出登录",
- "den.signed_out": "已退出",
+ "den.signed_out": "已退出登录",
"den.signin_button": "登录",
- "den.signin_code_note": "支持omnirush://den-auth链接或一次性授权码。",
- "den.signin_link_hint": "如果浏览器未自动跳回omnirush.ai,请在此粘贴omnirush.ai Cloud的登录链接或一次性登录码。",
+ "den.signin_code_note": "支持 omnirush://den-auth 链接或原始的一次性授权码。",
+ "den.signin_link_blocked_body": "此登录链接指向 {host},此设备并未配置该服务器,因此已忽略。如果你的组织使用该服务器,请先通过管理员发送的链接连接它。",
+ "den.signin_link_blocked_title": "登录链接未被接受",
+ "den.signin_link_confirm_body": "有登录链接请求让本应用登录到 {host}。仅当你刚刚发起登录时才继续。",
+ "den.signin_link_confirm_cta": "登录",
+ "den.signin_link_confirm_title": "登录到 {host}?",
+ "den.signin_link_copied": "已复制",
+ "den.signin_link_hint": "如果浏览器没有自动跳回 omnirush.ai,请在此粘贴 omnirush.ai Cloud 的登录链接或一次性登录码。",
"den.signin_link_label": "登录链接或一次性登录码",
- "den.signin_link_placeholder": "omnirush://den-auth?...或粘贴登录码",
- "den.signin_title": "登录omnirush.ai Cloud",
- "den.signing_in": "正在完成omnirush.ai Cloud登录…",
+ "den.signin_link_no_server": "无服务器",
+ "den.signin_link_placeholder": "omnirush://den-auth?… 或粘贴的登录码",
+ "den.signin_title": "登录 omnirush.ai Cloud",
+ "den.signing_in": "正在完成 omnirush.ai Cloud 登录…",
"den.signing_out": "正在退出…",
- "den.status_base_url_updated": "已更新Cloud控制平面URL。请重新登录以继续。",
- "den.status_browser_signin": "请在浏览器中完成登录以连接omnirush.ai。",
- "den.status_browser_signup": "请在浏览器中完成账户创建以连接omnirush.ai。",
- "den.status_cloud_signed_in_as": "已作为{email}连接omnirush.ai Cloud。",
- "den.status_cloud_signin_done": "已连接omnirush.ai Cloud。",
- "den.status_loaded_orgs": "已加载{count}个组织。",
- "den.status_signed_in_as": "已登录为{email}。",
- "den.status_signed_out": "已退出登录并清除此设备上的omnirush.ai Cloud会话。",
+ "den.status_base_url_updated": "已更新 Cloud 控制平面 URL。请重新登录以继续。",
+ "den.status_browser_signin": "请在浏览器中完成登录,以连接 omnirush.ai。",
+ "den.status_browser_signin_paste": "请在浏览器中登录,复制 omnirush.ai 链接,然后粘贴到下方。",
+ "den.status_browser_signup": "请在浏览器中完成账号创建,以连接 omnirush.ai。",
+ "den.status_browser_signup_paste": "请在浏览器中创建账号,复制 omnirush.ai 链接,然后粘贴到下方。",
+ "den.status_cloud_signed_in_as": "已以 {email} 的身份连接 omnirush.ai Cloud。",
+ "den.status_cloud_signin_done": "已连接 omnirush.ai Cloud。",
+ "den.status_loaded_orgs_one": "已连接 {count} 个组织。",
+ "den.status_loaded_orgs_other": "已连接 {count} 个组织。",
+ "den.status_loaded_workers_one": "已为 {name} 加载 {count} 个工作区。",
+ "den.status_loaded_workers_other": "已为 {name} 加载 {count} 个工作区。",
+ "den.status_signed_in_as": "已以 {email} 的身份登录。",
+ "den.status_signed_out": "已退出登录,并清除了此设备上的 omnirush.ai Cloud 会话。",
+ "den.status_server_config_cleared": "已清除桌面服务器配置。omnirush.ai 正在使用默认的 Cloud 控制平面。",
+ "den.switch_server_body": "此登录链接对应 {newHost},而此设备配置的是 {currentHost}。",
+ "den.switch_server_confirm": "切换并登录",
+ "den.switch_server_title": "切换组织服务器?",
"den.sync": "同步",
"den.sync_now": "立即同步",
- "den.sync_provider_failed": "同步{name}失败。",
- "den.synced_provider": "已同步{name}。",
- "den.syncing": "同步中…",
+ "den.sync_provider_failed": "无法同步 {name}。",
+ "den.synced_provider": "已同步 {name}。",
+ "den.syncing": "正在同步…",
+ "den.installed_name_badge": "本地:{name}",
"den.uninstall": "卸载",
- "extensions.inventory_description": "智能体可使用的技能、连接和工具。",
"extensions.apps_mcp_header": "应用(MCP)",
+ "extensions.connect_marketplace_hint": "市场内容现已移至资源库。",
+ "extensions.disabled_by_organization": "已被组织停用",
+ "extensions.inventory_description": "智能体可使用的技能、命令、智能体、连接和工具。",
+ "extensions.connect_marketplace_split_hint": "可在云端运行的市场应用位于资源库。此“市场”标签页现在只显示安装到本机的项目。",
+ "extensions.badge_app": "应用",
+ "extensions.badge_connection": "连接",
+ "extensions.badge_mcp": "MCP",
+ "extensions.badge_plugin": "插件",
+ "extensions.badge_skill": "技能",
+ "extensions.badge_command": "命令",
+ "extensions.badge_agent": "智能体",
+ "extensions.add_skill": "添加技能",
+ "extensions.add_command": "添加命令",
+ "extensions.add_agent": "添加智能体",
+ "extensions.add_mcp": "添加组织 MCP",
+ "extensions.add_workspace_mcp": "添加工作区 MCP",
+ "extensions.add_plugin": "添加插件",
+ "extensions.add_connection": "添加连接",
+ "extensions.add_picker_title": "添加到资源库",
+ "extensions.add_picker_hint": "在 omnirush.ai 中创建内容、通过 URL 添加 MCP 服务器,或在 Den 中管理托管服务连接。",
+ "extensions.add_picker_make": "你要创建什么",
+ "extensions.add_picker_connect": "或连接其他内容",
+ "extensions.add_picker_footer": "创建时选择访问权限。托管连接在 Den 中继续设置。",
+ "extensions.add_picker_continue": "继续",
+ "extensions.kind_skill": "技能",
+ "extensions.kind_skill_hint": "智能体会自动采用的一种工作方式。",
+ "extensions.kind_command": "命令",
+ "extensions.kind_command_hint": "在输入框中按名称触发的快捷方式。",
+ "extensions.kind_agent": "智能体",
+ "extensions.kind_agent_hint": "可将整项工作交给它的专家。",
+ "extensions.kind_plugin": "插件",
+ "extensions.kind_plugin_hint": "打包在一起的技能、命令和服务器。",
+ "extensions.kind_mcp": "组织 MCP",
+ "extensions.kind_mcp_hint": "向组织资源库添加远程 MCP 服务器。",
+ "extensions.kind_workspace_mcp": "本地 MCP",
+ "extensions.kind_workspace_mcp_hint": "在此工作区中连接 MCP 服务器。",
+ "extensions.kind_connection": "连接",
+ "extensions.kind_connection_hint": "在 omnirush.ai Den 中浏览托管服务,并为此组织管理设置。",
+ "extensions.kind_connection_badge": "打开 Den",
+ "extensions.add_access_label": "谁可以使用",
+ "extensions.add_access_just_me": "仅我自己",
+ "extensions.add_access_just_me_hint": "保留在你的资源库中,组织内其他人看不到。",
+ "extensions.add_access_everyone": "组织内所有人",
+ "extensions.add_access_everyone_hint": "会出现在他们的资源库中,并标注为由你共享。",
+ "extensions.add_create": "创建",
+ "extensions.create_skill_title": "创建技能",
+ "extensions.create_command_title": "创建命令",
+ "extensions.create_agent_title": "创建智能体",
+ "extensions.create_plugin_title": "创建插件",
+ "extensions.create_skill_hint": "保存到组织资源库。智能体可以从 omnirush.ai Cloud 加载这些说明。",
+ "extensions.create_command_hint": "作为斜杠命令保存到组织资源库。",
+ "extensions.create_agent_hint": "作为具名智能体保存到组织资源库。",
+ "extensions.create_plugin_hint": "在组织资源库中打包技能、命令和 MCP 服务器。",
+ "extensions.create_mcp_title": "添加 MCP 服务器",
+ "extensions.create_mcp_hint": "作为远程 MCP 连接保存到组织资源库。",
+ "extensions.create_mcp_submit": "添加 MCP",
+ "extensions.add_mcp_url_label": "服务器 URL",
+ "extensions.add_mcp_url_hint": "远程 MCP 服务器的 HTTPS URL。",
+ "extensions.add_mcp_url_required": "必须填写 MCP 服务器 URL。",
+ "extensions.add_mcp_connection_hint": "说明它的认证方式(与“连接器”中的设置相同),保存后即可使用。",
+ "extensions.add_mcp_auth_label": "认证方式",
+ "extensions.add_mcp_auth_oauth": "OAuth",
+ "extensions.add_mcp_auth_apikey": "API 密钥",
+ "extensions.add_mcp_auth_none": "无",
+ "extensions.add_mcp_api_key_label": "API 密钥",
+ "extensions.add_mcp_api_key_hint": "作为一项组织凭据加密存储。",
+ "extensions.add_mcp_api_key_required": "请输入 MCP 服务器的 API 密钥。",
+ "extensions.add_mcp_account_label": "AI 使用谁的账号?",
+ "extensions.add_mcp_account_per_member": "个人账号",
+ "extensions.add_mcp_account_per_member_hint": "每个人都在“你的连接”中用自己的账号登录。AI 以本人的身份和权限操作。",
+ "extensions.add_mcp_account_shared": "一个组织账号",
+ "extensions.add_mcp_account_shared_hint": "你用一个账号登录一次,所有获准访问的人都以该账号的身份操作。适合机器人或服务账号。",
+ "extensions.add_mcp_oauth_app_toggle": "改用预先注册的 OAuth 应用",
+ "extensions.add_mcp_oauth_app_hint": "先在提供商处注册此 Den 实例的重定向 URL,再在此添加其凭据。",
+ "extensions.add_mcp_oauth_client_id_label": "客户端 ID(暂时可选)",
+ "extensions.add_mcp_oauth_client_secret_label": "客户端密钥(暂时可选)",
+ "extensions.add_name_hint_mcp": "显示在资源库和输入框中",
+ "extensions.add_sign_in_required": "登录 omnirush.ai Cloud 后才能向资源库添加内容。",
+ "extensions.create_skill_submit": "创建技能",
+ "extensions.create_plugin_submit": "创建插件",
+ "extensions.add_modal_hint": "保存在此工作区,可在输入框中使用。",
+ "extensions.add_modal_hint_cloud": "保存到组织资源库,可在输入框中使用。",
+ "extensions.add_name_label": "名称",
+ "extensions.add_plugin_name_label": "插件名称",
+ "extensions.add_plugin_name_placeholder": "例如:销售电话准备",
+ "extensions.add_plugin_description_placeholder": "这个插件能帮大家做什么?",
+ "extensions.add_plugin_inside": "包含内容",
+ "extensions.add_plugin_inside_empty": "添加一个技能、命令或 MCP 服务器即可开始。插件至少需要一个组件。",
+ "extensions.add_plugin_share": "共享",
+ "extensions.add_plugin_share_org": "与组织内所有人共享",
+ "extensions.add_plugin_share_org_hint": "成员可以查看和安装此插件。取消勾选则在你迭代期间仅自己可见。",
+ "extensions.add_plugin_collection": "合集",
+ "extensions.add_plugin_collection_none": "暂不发布",
+ "extensions.add_plugin_collection_hint": "发布后,插件会加入合集,成员可以在 omnirush.ai 应用中找到它。",
+ "extensions.add_plugin_component_required": "请至少添加一个技能、命令或 MCP 服务器。",
+ "extensions.add_plugin_component_incomplete": "每个组件都需要名称和内容。",
+ "extensions.add_component_description_placeholder": "一句话描述:智能体应在什么时候使用它?",
+ "extensions.add_description_label": "描述",
+ "extensions.add_instructions_label": "说明",
+ "extensions.add_skill_body_label": "技能正文",
+ "extensions.add_skill_body_hint": "Markdown 会完整保存和显示。",
+ "extensions.add_skill_body_placeholder": "# 说明\n\n描述完整的工作流程…",
+ "extensions.add_skill_description_hint": "说明智能体应在什么时候加载此技能。",
+ "extensions.add_skill_description_placeholder": "智能体应在什么时候使用此技能?",
+ "extensions.add_skill_description_too_long": "描述不能超过 1024 个字符。",
+ "extensions.create_workspace_skill_hint": "保存在此工作区的 skills 文件夹中。重新加载后,引擎会在此工作区的每个会话中加载它。",
+ "extensions.add_skill_name_invalid": "名称只能使用小写字母、数字和单个连字符。",
+ "extensions.add_command_body_label": "命令",
+ "extensions.add_command_body_placeholder": "写下有人运行此命令时它应该做什么…",
+ "extensions.add_agent_body_label": "智能体提示词",
+ "extensions.add_unauthorized": "你的 omnirush.ai Cloud 登录已过期。请重新登录,然后再创建技能。",
+ "extensions.add_name_hint_skill": "小写短横线格式,例如 briefing-notes",
+ "extensions.add_name_hint_command": "用作斜杠命令,例如 /release",
+ "extensions.add_name_hint_agent": "显示在输入框的智能体列表中",
+ "extensions.add_name_hint_plugin": "为你的组织收纳技能、命令和 MCP 服务器",
+ "extensions.add_name_required": "必须填写名称。",
+ "extensions.add_description_required": "必须填写描述。",
+ "extensions.add_instructions_required": "必须填写说明。",
+ "extensions.add_slug_preview": "将保存为 {slug}",
+ "extensions.empty_title": "你的资源库是空的。",
+ "extensions.empty_hint": "所有可在会话中使用的内容都会显示在这里。",
+ "extensions.empty_filtered_title": "没有符合筛选条件的资源库项目。",
+ "extensions.empty_filtered_hint": "试试更改搜索词或筛选条件。",
+ "extensions.empty_connections": "{org} 还没有与你共享任何连接。管理员可以在 omnirush.ai Cloud 控制台中添加。",
+ "extensions.empty_connections_signed_out": "连接由你的组织共享。请在“账号”中登录 omnirush.ai Cloud 查看你的连接。",
"extensions.filter_all": "全部",
"extensions.filter_apps": "应用",
+ "extensions.filter_connections": "连接",
+ "extensions.filter_mcps": "MCP",
"extensions.filter_plugins": "插件",
- "extensions.plugin_count": "{count}个插件",
+ "extensions.filter_skills": "技能",
+ "extensions.filter_commands": "命令",
+ "extensions.filter_agents": "智能体",
+ "extensions.detail_ready": "已就绪",
+ "extensions.detail_triggers": "触发方式",
+ "extensions.detail_triggers_skill_hint": "你无需点名使用这个技能",
+ "extensions.detail_triggers_command_hint": "在输入框中输入这个",
+ "extensions.detail_triggers_agent_hint": "在输入框中选择这个智能体",
+ "extensions.detail_instructions": "说明",
+ "extensions.detail_instructions_skill_hint": "此技能匹配时智能体读取的内容",
+ "extensions.detail_instructions_command_hint": "调用此命令时运行的内容",
+ "extensions.detail_instructions_agent_hint": "此智能体在会话开始时读取的内容",
+ "extensions.detail_how_it_runs": "运行方式",
+ "extensions.detail_contents": "包含内容",
+ "extensions.detail_contents_empty": "此插件还没有技能、命令或连接。",
+ "extensions.detail_loading": "正在加载此资源库项目…",
+ "extensions.detail_unavailable": "此资源库项目在当前工作区不可用。",
+ "extensions.detail_fact_plugin": "插件",
+ "extensions.detail_fact_collection": "合集",
+ "extensions.detail_fact_capabilities": "能力",
+ "extensions.detail_fact_account": "账号",
+ "extensions.detail_open_file": "打开文件",
+ "extensions.detail_open_skill": "打开 SKILL.md",
+ "extensions.detail_fact_slash": "斜杠命令",
+ "extensions.detail_fact_agent": "智能体",
+ "extensions.detail_fact_model": "模型",
+ "extensions.detail_fact_mode": "模式",
+ "extensions.detail_fact_origin": "来源",
+ "extensions.detail_native_agent": "内置",
+ "extensions.detail_workspace_agent": "此工作区",
+ "extensions.detail_agent_trigger": "为会话选择此智能体",
+ "extensions.detail_source_composer": "可在输入框中使用",
+ "extensions.group_ready_to_set_up": "可以设置",
+ "extensions.layout_grid": "卡片视图",
+ "extensions.layout_list": "列表视图",
+ "extensions.mcp_servers_section": "在此配置的 MCP 服务器",
+ "extensions.group_ready_to_set_up_hint": "需要时再开启",
+ "extensions.from_org": "来自 {org}",
+ "extensions.marketplace_active_cloud_label": "已启用 · 在云端运行",
+ "extensions.marketplace_description": "浏览 omnirush.ai 内置扩展和组织市场扩展。内置扩展在本地运行;组织市场扩展通过 omnirush.ai Cloud 运行,而从 GitHub 和 Claude 导入的插件位于本地资源库。",
+ "extensions.marketplace_local_description": "仅限桌面端和未同步的市场项目可在此安装。可在云端运行的应用列在资源库中。",
+ "extensions.marketplace_local_title": "来自你的市场:安装到本机",
+ "extensions.marketplace_runs_in_cloud": "在云端运行",
+ "extensions.marketplace_tab": "市场",
+ "extensions.marketplace_title": "扩展市场",
+ "extensions.my_extensions_tab": "我的扩展",
+ "extensions.open_connect": "打开资源库",
+ "extensions.surface_cloud": "omnirush.ai Cloud",
+ "extensions.surface_this_device": "此设备",
+ "extensions.plugin_count_one": "{count} 个插件",
+ "extensions.plugin_count_other": "{count} 个插件",
+ "extensions.skill_count_one": "{count} 个技能",
+ "extensions.skill_count_other": "{count} 个技能",
"extensions.plugins_opencode_header": "插件(omnirush.ai)",
+ "extensions.remove_from_workspace_button": "从工作区移除",
+ "extensions.removed_upstream_notice": "{name} 已不在你的组织市场中。",
+ "extensions.state_all": "全部",
+ "extensions.state_needs_admin_setup": "需要管理员设置",
+ "extensions.state_needs_admin_setup_caption": "这些来自 {org},需要管理员完成设置。",
+ "extensions.state_needs_signin": "需要你登录",
+ "extensions.state_needs_signin_caption": "这些来自 {org},连接你自己的账号后即可使用。",
"extensions.subtitle": "智能体可使用的技能、连接和工具。",
"extensions.open_in_den": "在 Den 中打开",
- "extensions.title": "资料库",
- "mcp.add_modal_subtitle": "通过URL或本地命令连接自定义MCP服务器。",
- "mcp.add_modal_title": "添加自定义应用",
+ "extensions.title": "资源库",
+ "extensions.update_all_button": "全部更新",
+ "extensions.update_all_progress": "正在更新第 {current}/{total} 个…",
+ "extensions.update_available": "有可用更新",
+ "extensions.update_button": "更新",
+ "extensions.updating": "正在更新…",
+ "extensions.view_in_extensions": "在资源库中查看",
+ "mcp.disable_app": "停用",
+ "mcp.enable_app": "启用",
+ "mcp.reloading_status": "正在重新加载 MCP 服务器…",
+ "mcp.toggle_failed": "无法更新 MCP 的启用状态。",
+ "mcp.toggle_requires_server": "连接 omnirush.ai 服务器后才能启用或停用 MCP。",
+ "mcp.action_reconnect": "重新连接",
+ "mcp.add_modal_subtitle": "为此工作区连接自定义 MCP。此设置与 omnirush.ai Connect 中由组织管理的服务相互独立。",
+ "mcp.add_modal_title": "添加工作区 MCP",
"mcp.add_server_button": "添加应用",
"mcp.advanced": "高级",
"mcp.advanced_settings": "高级设置",
- "mcp.advanced_settings_hint": "编辑配置文件和手动管理连接。",
- "mcp.apps_subtitle": "连接常用工具,让omnirush.ai代你使用。",
+ "mcp.advanced_settings_hint": "编辑配置文件并手动管理连接。",
+ "mcp.apps_subtitle": "连接常用工具,让 omnirush.ai 代你使用。",
"mcp.apps_title": "应用",
"mcp.auth.already_connected": "已连接",
- "mcp.auth.already_connected_description": "{server}已通过身份验证,可以正常使用。",
- "mcp.auth.applying_changes_body": "我们正在重启worker,以便新MCP可以开始认证。",
- "mcp.auth.applying_changes_title": "正在登录前应用更改",
+ "mcp.auth.already_connected_description": "{server} 已通过认证,可以使用。",
+ "mcp.auth.applying_changes_body": "正在重启工作区运行时,以便新的 MCP 可以开始认证。",
+ "mcp.auth.applying_changes_title": "登录前正在应用更改",
"mcp.auth.authorization_link": "授权链接",
- "mcp.auth.authorization_still_required": "仍需要授权。请重试以重新启动流程。",
- "mcp.auth.callback_invalid": "请粘贴回调URL或code参数以完成OAuth。",
- "mcp.auth.callback_label": "回调URL或授权码",
- "mcp.auth.callback_placeholder": "http://127.0.0.1:19876/mcp/oauth/callback?code=...",
+ "mcp.auth.authorization_still_required": "仍需授权。请重试以重新开始流程。",
+ "mcp.auth.callback_invalid": "请粘贴回调 URL 或 code 参数以完成 OAuth。",
+ "mcp.auth.callback_label": "回调 URL 或授权码",
+ "mcp.auth.callback_placeholder": "http://127.0.0.1:19876/mcp/oauth/callback?code=…",
"mcp.auth.cancel": "取消",
- "mcp.auth.client_registration_required": "在继续OAuth之前需要先注册客户端。",
+ "mcp.auth.client_registration_required": "需要先注册客户端,才能继续 OAuth。",
"mcp.auth.complete_connection": "完成连接",
- "mcp.auth.configured_previously": "该MCP可能在全局或之前的会话中已配置。你可以关闭此弹窗,立即开始使用MCP工具。",
- "mcp.auth.connect_server": "连接{server}",
+ "mcp.auth.configured_previously": "此 MCP 可能已在全局或之前的会话中配置。你可以关闭此窗口,直接开始使用 MCP 工具。",
+ "mcp.auth.connect_server": "连接 {server}",
"mcp.auth.copied": "已复制",
"mcp.auth.copy_link": "复制链接",
"mcp.auth.done": "完成",
- "mcp.auth.failed_to_start_oauth": "启动OAuth流程失败",
+ "mcp.auth.failed_to_start_oauth": "无法启动 OAuth 流程",
"mcp.auth.follow_browser_steps": "请在浏览器中完成授权步骤。",
"mcp.auth.force_stop": "强制停止",
- "mcp.auth.force_stopping": "正在停止...",
+ "mcp.auth.force_stopping": "正在停止…",
"mcp.auth.im_done": "我已完成",
- "mcp.auth.invalid_refresh_token": "OAuth刷新令牌无效或已过期。请重新授权。",
- "mcp.auth.manual_finish_hint": "粘贴回调URL(localhost:19876)或授权码以完成连接。",
+ "mcp.auth.invalid_refresh_token": "OAuth 刷新令牌无效或已过期。请重新授权以继续。",
+ "mcp.auth.manual_finish_hint": "粘贴回调 URL(localhost:19876)或授权码即可完成连接。",
"mcp.auth.manual_finish_title": "远程服务器?",
- "mcp.auth.oauth_completed_reload": "OAuth已完成。重新加载引擎以激活MCP。",
- "mcp.auth.oauth_failed": "OAuth身份验证失败。",
- "mcp.auth.oauth_not_supported_hint": "这可能意味着:\n• MCP服务器未声明OAuth功能\n• 引擎需要重新加载以发现服务器功能\n• 尝试:从CLI运行opencode mcp auth {server}",
- "mcp.auth.open_browser_signin": "我们将打开你的浏览器完成登录。",
- "mcp.auth.port_forward_hint": "提示:如需转发回调端口:ssh -L 19876:127.0.0.1:19876 user@host",
- "mcp.auth.reauth_action": "重新授权OAuth",
- "mcp.auth.reauth_cli_hint": "运行:opencode mcp auth {server}",
+ "mcp.auth.oauth_completed_reload": "OAuth 已完成。重新加载引擎即可启用此 MCP。",
+ "mcp.auth.oauth_failed": "OAuth 认证失败。",
+ "mcp.auth.oauth_not_supported_hint": "可能的原因:\n• MCP 服务器未声明支持 OAuth\n• 引擎需要重新加载以发现服务器能力\n• 请在 MCP 设置中重新连接 {server}",
+ "mcp.auth.open_browser_signin": "我们会打开浏览器以完成登录。",
+ "mcp.auth.port_forward_hint": "提示:如有需要,可转发回调端口:ssh -L 19876:127.0.0.1:19876 user@host",
+ "mcp.auth.reauth_action": "重新授权 OAuth",
+ "mcp.auth.reauth_cli_hint": "请在 MCP 设置中重新连接 {server}。",
"mcp.auth.reauth_failed": "重新授权失败。",
- "mcp.auth.reauth_remote_hint": "请在运行该工作区的设备上重新授权。",
- "mcp.auth.reauth_running": "正在重新授权...",
- "mcp.auth.reload_blocked": "会话运行中,暂时无法刷新。请先停止运行后再完成设置。",
+ "mcp.auth.reauth_remote_hint": "请在运行此工作区的电脑上重新授权。",
+ "mcp.auth.reauth_running": "正在重新授权…",
+ "mcp.auth.reload_blocked": "会话运行期间暂停重新加载。请停止运行以完成设置。",
"mcp.auth.reload_engine_retry": "应用更改并重试",
- "mcp.auth.reload_failed": "登录前重启worker失败。",
- "mcp.auth.reload_notice": "要使更改生效,omnirush.ai需要刷新worker服务。这可能会中断正在运行的会话。",
- "mcp.auth.reload_remote_confirm": "要使更改生效,omnirush.ai需要刷新worker服务。这可能会停止你正在运行的会话。是否继续?",
- "mcp.auth.reopen_browser_link": "点击这里重新打开浏览器",
+ "mcp.auth.reload_failed": "登录前无法重新加载工作区运行时。",
+ "mcp.auth.reload_notice": "要使更改生效,omnirush.ai 需要刷新工作区服务,这可能会中断正在运行的会话。",
+ "mcp.auth.reload_remote_confirm": "要使更改生效,omnirush.ai 需要刷新工作区服务,这可能会停止正在运行的会话。是否继续?",
+ "mcp.auth.reopen_browser_link": "点击此处重新打开浏览器",
"mcp.auth.request_timed_out": "请求超时。",
"mcp.auth.retry": "重试",
"mcp.auth.retry_now": "立即重试",
- "mcp.auth.server_disabled": "此MCP服务器已禁用。请启用它后重试。",
- "mcp.auth.step1_description": "我们将自动启动{server}的登录流程。",
+ "mcp.auth.server_disabled": "此 MCP 服务器已停用。请启用后重试。",
+ "mcp.auth.slack_client_registration_required": "Slack 不支持为 MCP 自动注册 OAuth 客户端。请让 Slack 管理员为 MCP 创建或批准一个 Slack 应用,然后使用该应用的 OAuth 客户端 ID 和客户端密钥配置此 MCP。请勿在会话或源代码管理中泄露客户端密钥。保存凭据后,重新加载引擎并重试。",
+ "mcp.auth.step1_description": "我们会自动启动 {server} 的登录流程。",
"mcp.auth.step1_title": "正在打开你的浏览器",
"mcp.auth.step2_description": "登录并在提示时批准访问权限。",
- "mcp.auth.step2_title": "授权omnirush.ai",
- "mcp.auth.step3_description": "授权完成后我们将立即完成连接。",
+ "mcp.auth.step2_title": "授权 omnirush.ai",
+ "mcp.auth.step3_description": "授权完成后,我们会立即完成连接。",
"mcp.auth.step3_title": "完成后返回此处",
- "mcp.auth.try_reload_engine": "{message}。请尝试先重新加载引擎。",
- "mcp.auth.waiting_authorization": "正在等待你在浏览器中完成授权...",
- "mcp.auth.waiting_for_conversation_body": "一旦可以开始认证,我们会立即为你跳转。",
- "mcp.auth.waiting_for_conversation_title": "正在等待对话完成",
- "mcp.auth.waiting_for_session": "正在等待{session}完成工作",
+ "mcp.auth.try_reload_engine": "{message}。请先尝试重新加载引擎。",
+ "mcp.auth.waiting_authorization": "正在等待你在浏览器中完成授权…",
+ "mcp.auth.waiting_for_conversation_body": "可以开始认证时,我们会立即为你跳转。",
+ "mcp.auth.waiting_for_conversation_title": "正在等待会话完成",
+ "mcp.auth.waiting_for_session": "正在等待 {session} 完成工作",
"mcp.available_apps": "可用应用",
- "mcp.cap_signin": "账户登录",
- "mcp.cap_tools": "AI工具",
+ "mcp.cap_signin": "账号登录",
+ "mcp.cap_tools": "AI 工具",
"mcp.config_file": "配置文件",
"mcp.config_load_failed": "无法加载配置文件",
"mcp.config_not_loaded": "尚未加载",
@@ -392,41 +955,64 @@ export default {
"mcp.connect_server_first": "请先连接服务器。",
"mcp.connected": "已连接",
"mcp.connected_badge": "已连接",
- "mcp.connection_failed": "连接异常 — 请重试",
+ "mcp.connection_failed": "连接异常,请重试",
"mcp.connection_type": "连接方式",
- "mcp.custom_app_cta_hint": "连接你的MCP服务器、内部工具或托管应用。",
- "mcp.desktop_required": "应用需要桌面应用。",
+ "mcp.custom_app_cta_hint": "手动连接 MCP 服务器:你自己的、内部工具或托管服务均可。",
+ "mcp.desktop_required": "应用功能需要桌面应用。",
"mcp.docs_link": "了解更多",
"mcp.file_not_found": "配置文件尚未创建",
"mcp.friendly_status_issue": "异常",
"mcp.friendly_status_needs_signin": "需要登录",
"mcp.friendly_status_offline": "离线",
"mcp.friendly_status_paused": "已暂停",
- "mcp.friendly_status_ready": "就绪",
+ "mcp.friendly_status_ready": "已就绪",
+ "mcp.friendly_status_reconnect_required": "需要重新连接",
"mcp.last_synced": "已同步",
"mcp.login_action": "登录",
- "mcp.login_hint": "连接你的账户以完成此应用的设置。",
- "mcp.login_unavailable": "此应用不支持从omnirush.ai发起登录。",
+ "mcp.login_hint": "连接你的账号以完成此应用的设置。",
+ "mcp.login_unavailable": "此应用不支持从 omnirush.ai 发起登录。",
"mcp.logout_action": "退出登录",
"mcp.logout_failed": "退出登录失败。",
- "mcp.logout_hint": "将删除已保存的OAuth凭据。之后需要重新登录。",
+ "mcp.logout_hint": "将删除已保存的 OAuth 凭据,之后需要重新登录。",
"mcp.logout_label": "OAuth",
- "mcp.logout_modal_message": "这将删除{server}的OAuth凭据。之后需要重新登录才能使用该应用。",
- "mcp.logout_modal_title": "退出登录?",
- "mcp.logout_success": "{server}已退出登录。",
- "mcp.logout_working": "正在退出...",
+ "mcp.logout_modal_message": "这将删除 {server} 已保存的 OAuth 凭据。之后需要重新登录才能使用此应用。",
+ "mcp.logout_modal_title": "退出此应用的登录?",
+ "mcp.logout_success": "已退出 {server} 的登录。",
+ "mcp.logout_working": "正在退出…",
+ "mcp.managed_oauth_unavailable": "此设备上的安全存储不可用,因此已暂停由 omnirush.ai 管理的登录。",
"mcp.name_required": "请输入服务器名称。",
- "mcp.no_apps_hint": "连接上方的应用开始使用。",
- "mcp.no_apps_yet": "暂无已连接的应用",
+ "mcp.name_reserved_omnirush_connect": "此名称已保留给 omnirush.ai Connect。请为工作区 MCP 换一个名称。",
+ "mcp.no_apps_hint": "在上方连接一个应用即可开始。",
+ "mcp.no_apps_yet": "还没有已连接的应用",
"mcp.oauth": "登录",
- "mcp.org_connection_disconnect_action": "断开连接",
- "mcp.org_connection_disconnecting_action": "正在断开...",
- "mcp.org_connection_desc_per_member_reconnect": "重新连接你的账户以授予新请求的权限。",
- "mcp.org_connection_reconnect_action": "重新连接",
- "mcp.oauth_autodetect_hint": "如果此应用需要登录,添加后浏览器将打开以连接你的账户。",
+ "mcp.oauth_advanced_hint": "此桌面端负责登录和令牌刷新,并将 OAuth 凭据加密保存在此设备受保护的应用存储中。这与 omnirush.ai Connect 相互独立,不会连接其他设备。",
+ "mcp.oauth_advanced_title": "此设备上的 OAuth",
+ "mcp.oauth_autodetect_hint": "如果此服务器需要 OAuth,请在添加前展开“此设备上的 OAuth”。",
+ "mcp.oauth_client_id": "OAuth 客户端 ID",
+ "mcp.oauth_client_id_placeholder": "粘贴 OAuth 客户端 ID",
+ "mcp.oauth_client_id_required": "添加客户端密钥或权限范围时,必须填写 OAuth 客户端 ID。",
+ "mcp.oauth_client_secret": "OAuth 客户端密钥",
+ "mcp.oauth_client_secret_placeholder": "粘贴 OAuth 客户端密钥",
+ "mcp.oauth_scope": "OAuth 权限范围",
+ "mcp.oauth_scope_placeholder": "可选,多个范围用空格分隔",
+ "mcp.oauth_secret_warning": "omnirush.ai 会将这些凭据加密保存在本地应用数据中,不会写入你的工作区或 omnirush.ai 配置。请勿在会话或源代码管理中泄露客户端密钥。",
"mcp.one_click_connect": "一键连接",
"mcp.open_file": "打开文件",
- "mcp.opening_label": "正在打开",
+ "mcp.opening_label": "正在打开…",
+ "mcp.org_connection_connect_action": "连接你的账号",
+ "mcp.org_connection_connected_label": "已连接",
+ "mcp.org_connection_disconnect_action": "断开连接",
+ "mcp.org_connection_disconnecting_action": "正在断开…",
+ "mcp.org_connection_waiting_browser": "正在等待浏览器…",
+ "mcp.org_connection_desc_per_member": "由你的组织提供。连接你自己的账号后即可使用。",
+ "mcp.org_connection_desc_per_member_connected": "已使用你自己的账号连接。",
+ "mcp.org_connection_desc_per_member_reconnect": "重新连接你的账号以授予新请求的权限。",
+ "mcp.org_connection_desc_shared": "由组织管理的统一账号,AI 以该账号的身份操作。",
+ "mcp.org_connection_managed_label": "由你的组织管理",
+ "mcp.org_connection_reconnect_action": "重新连接",
+ "mcp.org_connections_connected_badge": "已连接",
+ "mcp.org_connections_subtitle": "由管理员共享",
+ "mcp.org_connections_title": "来自你的组织",
"mcp.pick_workspace_error": "请先选择工作区文件夹。",
"mcp.pick_workspace_first": "请先选择工作区文件夹。",
"mcp.quick_connect_context7_desc": "以更丰富的上下文搜索产品文档。",
@@ -435,80 +1021,158 @@ export default {
"mcp.quick_connect_linear_title": "Linear",
"mcp.quick_connect_notion_desc": "同步页面、数据库和项目文档。",
"mcp.quick_connect_notion_title": "Notion",
+ "mcp.quick_connect_omnirush_cloud_desc": "在会话中管理你的组织、工作区、技能、提供商和团队配置。试试:“列出我组织中的所有工作区”或“把这个技能推送给团队”。",
+ "mcp.quick_connect_omnirush_cloud_title": "omnirush.ai Cloud 控制",
+ "mcp.quick_connect_omnirush_ui_desc": "让智能体查看并操作 omnirush.ai 应用:切换会话、在输入框中输入、打开设置。试试:“截取我当前看到的画面”或“新建一个会话并输入 hello”。",
+ "mcp.quick_connect_omnirush_ui_title": "omnirush.ai 界面控制",
"mcp.quick_connect_sentry_desc": "追踪发布并解决生产错误。",
"mcp.quick_connect_sentry_title": "Sentry",
"mcp.quick_connect_stripe_desc": "查看支付、发票和订阅。",
"mcp.quick_connect_stripe_title": "Stripe",
- "mcp.reload_banner_blocked_hint": "停止正在运行的任务以激活。",
- "mcp.remote_workspace_url_hint": "远程工作区建议优先使用URL类型的MCP服务器。",
+ "mcp.reload_banner_blocked_hint": "停止正在运行的任务即可启用。",
+ "mcp.remote_workspace_url_hint": "远程工作区使用基于 URL 的 MCP 服务器连接最快。",
"mcp.remove_app": "移除",
"mcp.remove_failed": "无法移除应用。",
- "mcp.remove_modal_message": "确定要移除{server}吗?你可以随时重新添加。",
+ "mcp.remove_modal_message": "确定要移除 {server} 吗?你可以随时重新添加。",
"mcp.remove_modal_title": "移除应用",
"mcp.reveal_config_failed": "无法打开配置文件",
- "mcp.reveal_in_finder": "在文件管理器中显示",
+ "mcp.reveal_in_finder": "在文件夹中显示",
"mcp.scope_global": "所有工作区",
"mcp.scope_project": "此工作区",
"mcp.server_command": "命令",
- "mcp.server_command_hint": "启动服务器的shell命令。",
+ "mcp.server_command_hint": "用于启动服务器的 Shell 命令。",
"mcp.server_command_placeholder": "npx -y @modelcontextprotocol/server-sequential-thinking",
"mcp.server_name": "应用名称",
"mcp.server_name_placeholder": "github-copilot",
"mcp.server_type": "类型",
- "mcp.server_url": "服务器URL",
+ "mcp.server_url": "服务器 URL",
"mcp.server_url_placeholder": "https://api.githubcopilot.com/mcp/",
"mcp.tap_to_connect": "点击连接",
"mcp.technical_details": "技术详情",
- "mcp.type_cloud": "Cloud(使用账户登录)",
- "mcp.type_local": "本地(在此设备运行)",
- "mcp.type_local_cmd": "本地(命令)",
- "mcp.type_remote": "远程(URL)",
- "mcp.url_or_command_required": "远程服务器需要URL,本地服务器需要命令。",
+ "mcp.type_cloud": "云端(使用你的账号登录)",
+ "mcp.type_local": "本地(在此设备上运行)",
+ "mcp.type_local_cmd": "本地进程(命令)",
+ "mcp.type_remote": "远程服务器(URL)",
+ "mcp.url_or_command_required": "远程服务器请填写 URL,本地服务器请填写命令。",
"mcp.your_apps": "你的应用",
- "model_behavior.desc_builtin": "此模型自行决定推理路径,不在此处提供配置。",
- "model_behavior.desc_generic": "使用{label}配置。",
+ "model_behavior.desc_builtin": "此模型自行决定推理方式,此处不提供可选档位。",
+ "model_behavior.desc_generic": "使用“{label}”档位。",
"model_behavior.desc_high": "回答前花更多时间推理。",
- "model_behavior.desc_high_anthropic": "使用标准扩展思考预算。",
- "model_behavior.desc_low": "回答前使用较轻的推理过程。",
- "model_behavior.desc_low_google": "使用较轻的推理预算以更快响应。",
- "model_behavior.desc_max": "使用提供商最深层的推理配置。",
- "model_behavior.desc_max_anthropic": "使用最大的扩展思考预算。",
- "model_behavior.desc_medium": "平衡速度和推理深度。",
- "model_behavior.desc_minimal": "使用极少量的推理。",
- "model_behavior.desc_none": "以最轻量的推理路径优先保证速度。",
+ "model_behavior.desc_high_anthropic": "使用标准的扩展思考预算。",
+ "model_behavior.desc_low": "回答前进行较轻量的推理。",
+ "model_behavior.desc_low_google": "使用较少的推理预算,响应更快。",
+ "model_behavior.desc_max": "使用提供商最深入的推理档位。",
+ "model_behavior.desc_max_anthropic": "使用可用的最大扩展思考预算。",
+ "model_behavior.desc_medium": "兼顾速度与推理深度。",
+ "model_behavior.desc_minimal": "只进行极少量推理。",
+ "model_behavior.desc_none": "优先速度,采用最轻量的推理。",
"model_behavior.desc_standard": "此模型不提供额外的推理控制。",
"model_behavior.label_balanced": "均衡",
"model_behavior.label_builtin": "内置",
"model_behavior.label_deep": "深度",
"model_behavior.label_extended": "扩展",
- "model_behavior.label_fast": "快速",
+ "model_behavior.label_fast": "极速",
"model_behavior.label_light": "轻量",
"model_behavior.label_maximum": "最大",
- "model_behavior.label_quick": "迅速",
+ "model_behavior.label_quick": "快速",
"model_behavior.label_standard": "标准",
"model_behavior.title_builtin_reasoning": "内置推理",
"model_behavior.title_extended_thinking": "扩展思考",
"model_behavior.title_reasoning_budget": "推理预算",
- "model_behavior.title_reasoning_effort": "推理力度",
+ "model_behavior.title_reasoning_effort": "推理强度",
"model_behavior.title_standard_generation": "标准生成",
- "model_picker.chat_model_desc": "选择此对话的模型。如果模型支持推理配置,可在其卡片上进行设置。",
- "model_picker.chat_model_title": "对话模型",
- "model_picker.connect_provider_hint": "连接此提供商以浏览和保存模型",
- "model_picker.default_model_desc": "选择新对话的默认模型,然后在其卡片上微调推理配置后点击完成。",
+ "model_picker.chat_model_desc": "选择此会话使用的模型。如果模型支持推理档位,可在其卡片上设置。",
+ "model_picker.chat_model_title": "会话模型",
+ "model_picker.connect_provider_hint": "连接此提供商后即可浏览和保存模型",
+ "model_picker.default_model_desc": "选择新会话的默认模型,并在卡片上调整推理档位,然后点击“完成”。",
"model_picker.default_model_title": "默认模型",
- "model_picker.model_count": "{count}个模型",
+ "model_picker.model_count_one": "{count} 个模型",
+ "model_picker.model_count_other": "{count} 个模型",
"model_picker.more_providers": "更多提供商",
- "model_picker.no_results": "没有匹配的模型。",
+ "model_picker.no_results": "没有与搜索匹配的模型。",
"model_picker.other_connected_models": "其他已连接的模型",
- "model_picker.recommended": "推荐",
+ "model_picker.recommended": "最近使用",
+ "notifications.clear_all": "全部清除",
+ "notifications.empty": "暂无通知",
+ "notifications.empty_hint": "来自 omnirush.ai Cloud 和你的工作区的动态会显示在这里。",
+ "notifications.engine_reloaded": "更新已应用",
+ "notifications.just_now": "刚刚",
+ "notifications.reconnect_failed": "无法重新连接 omnirush.ai 服务器",
+ "notifications.refresh_failed": "无法刷新工作区状态",
+ "notifications.reload_pending_body": "正在运行的任务结束后,配置更改会自动生效。",
+ "notifications.reload_pending_title": "更新待生效",
+ "notifications.select_model": "选择模型",
+ "notifications.summary_one": "{count} 条新通知",
+ "notifications.summary_other": "{count} 条新通知",
+ "notifications.title": "通知",
+ "notifications.updater_error": "检查更新失败",
+ "notifications.view": "查看",
"onboarding.authorize_folder": "授权文件夹",
+ "welcome.title": "欢迎使用 omnirush.ai",
+ "welcome.subtitle": "你的电脑,为你工作。",
+ "welcome.creating_workspace": "正在创建工作区…",
+ "welcome.get_started": "开始使用",
+ "welcome.sign_in_cloud": "登录 omnirush.ai Cloud",
+ "welcome.use_without_cloud": "不使用云端",
+ "welcome.join_org": "加入你的组织",
+ "welcome.join_org_subtitle": "粘贴邀请链接、安装链接或服务器 URL",
+ "welcome.local_only": "不登录,直接继续",
+ "welcome.organization_server_change": "更改",
+ "welcome.organization_server_connected": "已连接到 {host}",
+ "welcome.organization_server_dialog_desc": "粘贴 IT 团队提供的服务器 URL。omnirush.ai 会在登录和使用云端功能之前先使用它。",
+ "welcome.organization_server_dialog_title": "连接到你的组织服务器",
+ "welcome.organization_server_error": "请输入有效的 http:// 或 https:// omnirush.ai 服务器 URL。",
+ "welcome.organization_server_link": "在本地部署中使用 omnirush.ai?",
+ "welcome.organization_server_url_label": "组织服务器 URL",
+ "welcome.organization_server_url_placeholder": "https://omnirush.yourcompany.com",
+ "welcome.team_signin": "要加入团队?请登录",
+ "welcome.use_cloud": "使用 omnirush.ai Cloud",
+ "welcome.use_cloud_subtitle": "登录以使用托管版 omnirush.ai 和团队功能",
+ "welcome.pick_folder": "选择一个文件夹开始",
+ "welcome.capability_spreadsheets": "编辑电子表格",
+ "welcome.capability_spreadsheets_desc": "创建、清理和转换 CSV 与 Excel 文件。",
+ "welcome.capability_browser": "控制浏览器",
+ "welcome.capability_browser_desc": "用内置浏览器自动完成重复性的网页任务。",
+ "welcome.capability_files": "整理文件",
+ "welcome.capability_files_desc": "读取、写入和管理文件及文件夹。",
+ "welcome.capability_automate": "自动化任务",
+ "welcome.capability_automate_desc": "用技能和命令搭建可复用的工作流。",
+ "welcome.capability_content": "生成内容",
+ "welcome.capability_content_desc": "起草文档、邮件和报告。",
+ "welcome.capability_apis": "连接 API",
+ "welcome.capability_apis_desc": "通过 MCP 接入外部服务和工具。",
+ "welcome.folder_title": "选择文件夹",
+ "welcome.folder_explanation": "这个文件夹将成为你的工作区。omnirush.ai 将能够:",
+ "welcome.folder_read": "读取你放入其中的文件",
+ "welcome.folder_write": "为你创建和编辑文件",
+ "welcome.folder_anything": "处理电子表格、文档、图片等文件夹中的任何内容",
+ "welcome.folder_drop_hint": "随时把文件拖进来,omnirush.ai 都能读取。",
+ "join_org.connect_button": "连接",
+ "join_org.connecting": "正在连接到 {clientName}({host})…",
+ "join_org.connecting_button": "正在连接…",
+ "join_org.confirm_invite_body": "仅在你信任 {host} 时才继续。omnirush.ai 会将其用作你的组织服务器,并在浏览器中打开邀请。",
+ "join_org.confirm_invite_cta": "信任并打开邀请",
+ "join_org.confirm_invite_title": "信任此组织服务器?",
+ "join_org.description": "粘贴管理员发给你的邀请链接、安装链接、服务器 URL 或登录码。",
+ "join_org.error_expired": "此链接已过期或已被替换。请向管理员索取新链接。",
+ "join_org.error_invalid": "这看起来不是 omnirush.ai 的邀请链接、安装链接、服务器 URL 或登录码。",
+ "join_org.error_invalid_config": "链接已打开,但其中没有有效的 omnirush.ai 组织设置。请向管理员索取新链接。",
+ "join_org.error_network": "omnirush.ai 无法连接到该组织服务器。请检查网络或 VPN 后重试。",
+ "join_org.input_hint": "支持:邀请链接、安装链接、服务器 URL、“服务器令牌”、omnirush://den-auth 链接或原始登录码。",
+ "join_org.input_label": "邀请链接、安装链接或服务器 URL",
+ "join_org.input_placeholder": "https://your-company.example/install?token=…",
+ "join_org.invite_opened": "邀请已在浏览器中打开,请在那里完成加入。omnirush.ai 现已指向 {host},你回来时即可使用。",
+ "join_org.omnirush_cloud": "omnirush.ai Cloud",
+ "join_org.server_saved": "已连接到 {host}。请登录以继续。",
+ "join_org.success": "已连接到 {clientName}({host})。请继续登录以完成设置。",
+ "join_org.title": "加入你的组织",
"plugins.add": "添加",
- "plugins.add_hint": "添加npm包名称,例如opencode-wakatime",
+ "plugins.add_hint": "添加 npm 包名,例如 @scope/plugin",
"plugins.add_label": "添加插件",
"plugins.added": "已添加",
"plugins.config": "配置",
"plugins.config_label": "配置",
- "plugins.desc": "管理项目或全局OpenCode插件的`opencode.json`。",
+ "plugins.desc": "管理此项目或全局引擎配置中的插件。",
"plugins.empty": "尚未配置插件。",
"plugins.enabled": "已启用",
"plugins.hide_setup": "隐藏设置",
@@ -520,71 +1184,131 @@ export default {
"plugins.setup": "设置",
"plugins.suggested": "建议的插件",
"plugins.suggested_heading": "建议的插件",
- "plugins.title": "OpenCode插件",
- "providers.api_key_label": "API密钥",
- "providers.api_key_required": "API密钥为必填项",
+ "plugins.title": "omnirush.ai 插件",
+ "models.connect_provider": "连接提供商",
+ "models.done": "完成",
+ "models.manage_organization_models": "管理组织模型",
+ "models.model_unavailable_short": "模型已不可用",
+ "models.switched_unavailable": "由于 {provider} 不可用,已切换到 {model}。",
+ "models.no_models_available": "没有可用的模型。连接一个提供商即可开始。",
+ "models.no_models_locked": "还没有 OmniRush 模型。请在“设置”中登录 omnirush.ai 后使用。",
+ "models.no_models_match_search": "没有与搜索匹配的模型。",
+ "models.organization_models_empty": "你的组织还没有为你发布任何模型。",
+ "models.refresh_organization_models": "刷新组织模型",
+ "models.refresh_organization_models_failed": "无法刷新组织模型,请重试。",
+ "models.refreshing_organization_models": "正在刷新…",
+ "models.retry_organization_models": "重试",
+ "models.search_placeholder": "搜索提供商和模型…",
+ "models.title": "模型",
+ "providers.api_key_label": "API 密钥",
+ "providers.api_key_required": "必须填写 API 密钥",
"providers.auth_failed": "认证失败",
"providers.connect_failed": "连接提供商失败",
- "providers.disabled_in_config_suffix": "并已在OpenCode配置中禁用。",
+ "providers.custom_providers_disabled": "你的组织已禁用自定义提供商。",
+ "providers.disabled_in_config_suffix": "并已在 omnirush.ai 配置中停用。",
"providers.disconnect_failed": "断开提供商失败",
"providers.disconnected_prefix": "已断开",
"providers.load_failed": "加载提供商失败",
- "providers.no_oauth_prefix": "没有可用的OAuth流程:",
+ "providers.no_oauth_prefix": "没有可用的 OAuth 流程:",
"providers.no_providers_available": "没有可用的提供商",
"providers.not_connected": "未连接到服务器",
- "providers.not_oauth_flow_prefix": "所选认证方式不是OAuth流程:",
- "providers.oauth_failed": "完成OAuth失败",
- "providers.oauth_method_required": "OAuth方式为必填项",
+ "providers.not_oauth_flow_prefix": "所选认证方式不是以下提供商的 OAuth 流程:",
+ "providers.oauth_failed": "未能完成 OAuth",
+ "providers.oauth_method_required": "必须选择 OAuth 方式",
"providers.provider_error": "提供商错误({provider})",
- "providers.provider_id_required": "提供商ID为必填项",
+ "providers.provider_id_required": "必须填写提供商 ID",
"providers.rate_limit_exceeded": "请求频率超限",
"providers.removal_unsupported": "此客户端不支持移除提供商认证。",
"providers.request_failed": "请求失败",
- "providers.save_api_key_failed": "保存API密钥失败",
- "providers.still_connected_suffix": ",但工作区仍报告为已连接。请清除残留的API密钥或OAuth凭据,然后重启工作区以完全断开。",
+ "providers.save_api_key_failed": "无法保存 API 密钥",
+ "providers.still_connected_suffix": ",但工作区仍报告其为已连接。请清除残留的 API 密钥或 OAuth 凭据,然后重启工作区以彻底断开。",
"providers.unknown_provider": "未知提供商",
- "providers.use_api_key_suffix": "请改用API密钥。",
+ "providers.use_api_key_suffix": "请改用 API 密钥。",
"question_modal.custom_answer_label": "或输入自定义回答",
"question_modal.custom_answer_placeholder": "在此输入你的回答…",
- "question_modal.question_counter": "问题{current} / {total}",
- "session.allow_for_session": "在会话期间允许",
- "session.allow_once": "允许一次",
+ "question_modal.custom_answer_send": "发送",
+ "question_modal.question_counter": "第 {current}/{total} 个问题",
+ "restrictions.add_custom_providers_disabled_message": "组织管理员已禁止添加自定义提供商。",
+ "restrictions.add_custom_providers_disabled_title": "已禁止添加自定义提供商",
+ "session.permission_confirm_always": "在本会话剩余时间内都允许?按 Y(或 Enter)确认,按 N 或 Esc 取消。",
+ "session.allow_for_session": "本会话内允许",
+ "session.allow_once": "仅允许一次",
+ "session.cmd_agent_active": "当前",
+ "session.cmd_agent_default_detail": "使用引擎的默认智能体",
+ "session.cmd_agents_detail": "选择由哪个智能体运行你的提示词",
+ "session.cmd_agents_title": "切换智能体",
"session.cmd_current_workspace": "当前工作区",
- "session.cmd_new_session_detail": "在当前工作区开始新任务",
+ "session.cmd_new_session_detail": "在当前工作区开始一个新任务",
"session.cmd_new_session_meta": "创建",
"session.cmd_new_session_title": "新建会话",
- "session.cmd_sessions_detail": "{count}个可用,跨工作区",
+ "session.cmd_session_id_meta": "复制",
+ "session.cmd_session_id_title": "会话 ID",
+ "session.cmd_diagnostics_copy_title": "复制诊断信息",
+ "session.cmd_diagnostics_copy_detail": "复制脱敏后的诊断包,出问题时可以分享",
+ "session.cmd_diagnostics_export_title": "导出诊断信息",
+ "session.cmd_diagnostics_export_detail": "将脱敏后的诊断包保存为 JSON 文件",
+ "session.cmd_reload_config_title": "重新加载 omnirush.ai 配置",
+ "session.cmd_reload_config_detail": "无需重启,重新读取提供商、MCP 服务器和模型配置",
+ "session.cmd_sessions_detail": "跨工作区共 {count} 个",
"session.cmd_sessions_meta": "跳转",
"session.cmd_sessions_title": "搜索会话",
+ "session.cmd_settings_meta": "打开",
"session.cmd_switch": "切换",
+ "session.palette_no_matches": "无匹配项。",
+ "session.palette_placeholder_agents": "搜索智能体…",
"session.create_or_connect_workspace": "创建或连接工作区",
"session.default_agent": "默认智能体",
+ "session.default_model": "选择模型",
+ "session.diagnostics_copied": "诊断信息已复制,请粘贴到你的问题反馈或支持帖中",
+ "session.diagnostics_exported": "诊断信息已导出",
+ "session.diagnostics_failed": "无法准备诊断信息",
+ "session.resume_interrupted": "继续",
+ "session.admission_outcome_unknown": "任务已被接收,但没有返回结果",
+ "session.stop_failed": "无法停止运行:引擎报告没有中止任何正在运行的任务。请重试。",
+ "session.missing_chat_title": "该会话已不可用",
+ "session.missing_chat_description": "它已被删除,或未迁移到当前引擎,已从侧边栏中移除。",
+ "session.missing_chat_inline": "此会话已不可用。",
+ "session.revert_failed": "无法撤销会话。请在当前运行结束后重试。",
+ "session.branch_failed": "无法从此处分支会话,请重试。",
"session.default_title": "新建会话",
+ "session.title_generation_failed_body": "你的会话内容是安全的。我们会保留生成的临时标题,你可以在任务菜单中重命名。",
+ "session.title_generation_failed_title": "自动生成任务标题未完成",
"session.delete": "删除",
- "session.delete_named_session_message": "这将永久删除「{title}」及其消息。",
+ "session.delete_failed": "无法删除会话",
+ "session.delete_named_session_message": "这将永久删除“{title}”及其消息。",
"session.delete_session_generic": "这将永久删除所选会话及其消息。",
"session.delete_session_title": "删除会话?",
+ "session.delete_unavailable": "工作区的本地服务器尚未连接,请稍后重试。",
"session.deleting": "正在删除…",
"session.deny": "拒绝",
"session.details": "详情",
"session.details_label": "详情",
"session.doom_loop_label": "死循环",
- "session.doom_loop_message": "OpenCode检测到使用相同输入的重复工具调用,正在询问是否在多次失败后继续。",
- "session.doom_loop_note": "拒绝以停止循环,或允许以让智能体继续尝试。",
+ "session.doom_loop_message": "omnirush.ai 检测到使用相同输入的重复工具调用,正在询问多次失败后是否继续。",
+ "session.doom_loop_note": "拒绝以停止循环;如果希望智能体继续尝试,请允许。",
"session.doom_loop_repeated_call_label": "重复调用",
"session.doom_loop_repeated_tool_call": "重复的工具调用",
"session.doom_loop_title": "检测到死循环",
"session.doom_loop_tool_label": "工具",
"session.export_already_running": "导出正在进行中。",
"session.export_desktop_only": "导出功能在桌面应用中可用。",
- "session.export_desktop_only_local": "导出功能在桌面应用中适用于本地工作区。",
+ "session.export_desktop_only_local": "导出功能仅适用于桌面应用中的本地工作区。",
"session.export_local_only": "导出仅支持本地工作区。",
+ "session.engine_catching_up_title": "omnirush.ai 正在同步",
+ "session.engine_catching_up_detail": "引擎未及时响应,正在重试({attempt}/{total})…",
+ "session.still_loading_title": "仍在加载…",
+ "session.still_loading_detail": "正在准备你的工作区,可能需要一点时间。",
+ "session.engine_not_responding_title": "omnirush.ai 无响应",
+ "session.engine_not_responding_detail": "引擎在 {attempts} 次尝试后仍未响应,可能正在重启或负载过高。",
+ "session.engine_unavailable_title": "omnirush.ai 不可用",
+ "session.engine_reload_action": "重新加载引擎",
"session.loading_detail": "正在拉取此任务的最新消息。",
+ "session.preparing_workspace": "正在准备工作区",
"session.model": "模型",
- "session.new_task": "新建任务",
+ "session.new_task": "新建会话",
"session.open": "打开",
- "session.palette_hint_navigate": "方向键导航",
- "session.palette_hint_run": "回车执行 · Esc关闭",
+ "session.palette_hint_navigate": "用方向键导航",
+ "session.palette_hint_run": "Enter 执行 · Esc 关闭",
"session.palette_placeholder_actions": "搜索操作",
"session.palette_placeholder_sessions": "按会话标题或工作区搜索",
"session.palette_title_actions": "快捷操作",
@@ -594,9 +1318,9 @@ export default {
"session.permission_detail_cwd": "工作目录",
"session.permission_detail_description": "说明",
"session.permission_detail_diff": "差异",
- "session.permission_detail_file": "文件",
"session.permission_detail_files": "文件",
- "session.permission_detail_agent": "Agent",
+ "session.permission_detail_file": "文件",
+ "session.permission_detail_agent": "智能体",
"session.permission_detail_parent_directory": "父目录",
"session.permission_detail_path": "路径",
"session.permission_detail_query": "查询",
@@ -609,482 +1333,673 @@ export default {
"session.permission_kind_read": "文件读取",
"session.permission_kind_skill": "技能",
"session.permission_kind_task": "子任务",
- "session.permission_kind_todowrite": "Todo写入",
- "session.permission_message": "OpenCode正在请求权限以继续。",
- "session.permission_message_bash": "允许OpenCode继续前,请先检查命令影响范围。",
- "session.permission_message_edit": "允许OpenCode修改前,请先检查文件和差异。",
- "session.permission_message_external_directory": "允许访问工作区外部前,请先检查目标文件夹。",
- "session.permission_message_read": "允许访问前,请先检查请求的文件范围。",
- "session.permission_message_task": "允许启动前,请先检查请求的子任务。",
+ "session.permission_kind_todowrite": "写入待办",
+ "session.permission_message": "omnirush.ai 正在请求权限以继续。",
+ "session.permission_message_bash": "允许 omnirush.ai 继续之前,请先检查命令的影响范围。",
+ "session.permission_message_edit": "允许 omnirush.ai 修改之前,请先检查文件和差异。",
+ "session.permission_message_external_directory": "允许访问工作区以外的位置之前,请先检查目标文件夹。",
+ "session.permission_message_read": "允许访问之前,请先检查请求的文件范围。",
+ "session.permission_message_task": "允许启动之前,请先检查请求的子任务。",
+ "session.permission_requested_by": "由 {session} 请求",
"session.permission_metadata_unavailable": "无法显示元数据。",
- "session.permission_review_label": "检查",
+ "session.permission_review_label": "审查",
"session.permission_scope_empty": "未提供具体范围。",
- "session.permission_title_bash": "运行 shell 命令?",
+ "session.permission_title_bash": "运行 Shell 命令?",
"session.permission_title_edit": "修改文件?",
"session.permission_title_external_directory": "访问外部文件夹?",
"session.permission_title_generic": "批准 {permission}?",
"session.permission_title_read": "读取文件?",
"session.permission_title_task": "启动子任务?",
- "session.permission_decision_hint": "仅信任本次请求时选择允许一次;信任这个范围时可在会话期间允许。",
+ "session.subagent_permission_needed": "需要权限",
+ "session.subagent_task": "子智能体任务",
+ "session.permission_decision_hint": "只信任这一次请求时选择“仅允许一次”;信任这个范围时选择“本会话内允许”。",
"session.redo_aria_label": "重做上一条撤销的消息",
"session.redo_label": "重做",
"session.redo_title": "重做上一条撤销的消息",
- "session.reverted_messages_hidden": "{count} 条较早的消息已隐藏",
+ "session.reverted_messages_hidden": "后面的 {count} 条消息已隐藏,其文件更改已撤销。点击“恢复”可还原。",
"session.restore": "恢复",
- "session.restoring": "正在恢复...",
+ "session.restoring": "正在恢复…",
"session.restore_failed": "无法恢复隐藏的消息,请重试。",
- "session.rename_description": "更新此会话名称。",
+ "session.rename_description": "更新此会话的名称。",
"session.rename_label": "会话名称",
"session.rename_placeholder": "输入新的名称",
"session.rename_title": "重命名会话",
"session.resize_workspace_column": "调整工作区列宽",
"session.revert_label": "撤销",
"session.scope_label": "范围",
- "session.share_collaborator_hint": "日常远程访问,不需要所有者权限时使用。",
- "session.share_collaborator_host_hint": "日常远程访问此主机,无需所有者权限。",
+ "session.connect_model_to_start": "连接一个模型即可开始",
+ "session.select_or_create_session": "选择或新建一个会话即可开始。",
+ "session.share_collaborator_hint": "日常远程访问,不需要执行仅限所有者的操作时使用。",
+ "session.share_collaborator_host_hint": "日常远程访问此主机,不包含仅限所有者的操作。",
"session.share_collaborator_label": "协作者令牌",
"session.share_connected_with_hint": "此工作区当前使用此密码连接。",
"session.share_desktop_app_required": "需要桌面应用",
- "session.share_local_host_not_ready": "本地omnirush.ai主机尚未就绪。",
- "session.share_missing_host_url": "缺少omnirush.ai主机URL。",
- "session.share_missing_token": "缺少omnirush.ai令牌。",
- "session.share_note_direct_runtime": "引擎运行时设置为直连模式。切换本地工作区可能会重启主机并断开客户端连接。令牌可能在重启后变更。",
- "session.share_opencode_base_url": "OpenCode基础URL",
- "session.share_omnirush_workers_only": "分享服务链接仅适用于omnirush.ai工作区。",
- "session.share_owner_permission_hint": "远程客户端需要回答权限提示时使用。",
+ "session.share_local_host_not_ready": "本地 omnirush.ai 主机尚未就绪。",
+ "session.share_missing_host_url": "缺少 omnirush.ai 主机 URL。",
+ "session.share_missing_token": "缺少 omnirush.ai 令牌。",
+ "session.share_note_direct_runtime": "远程访问共享的是当前正在运行的本地工作区。如果之后切换了本地文件夹,请重新打开此面板确认 URL 和密码。",
+ "session.share_opencode_base_url": "omnirush.ai 基础 URL",
+ "session.share_omnirush_workers_only": "共享服务链接仅适用于 omnirush.ai 工作区。",
+ "session.share_owner_permission_hint": "当远程客户端需要回应权限请求时使用。",
"session.share_password": "密码",
"session.share_select_workspace": "请先选择工作区。",
"session.share_set_token_hint": "在工作区设置中设置令牌",
"session.share_starting_server": "正在启动服务器…",
- "session.share_worker_url": "工作区URL",
- "session.share_worker_url_phones_hint": "在手机或笔记本上连接此工作区时使用。",
- "session.share_worker_url_resolving_hint": "工作区URL正在解析,当前显示主机URL。",
- "session.assistant_empty_response": "代理未返回任何内容。请重试。",
+ "session.share_worker_url": "工作区 URL",
+ "session.share_worker_url_phones_hint": "在手机或笔记本电脑上连接此工作区时使用。",
+ "session.share_worker_url_resolving_hint": "正在解析工作区 URL,暂时显示主机 URL。",
+ "session.assistant_empty_response": "智能体没有返回任何内容,请重试。",
+ "session.assistant_compacting": "正在压缩",
+ "session.assistant_error": "错误",
+ "session.compact_context": "压缩上下文",
+ "session.compact_context_running": "正在压缩上下文…",
+ "session.assistant_idle": "空闲",
"session.assistant_responding": "正在回复",
"session.assistant_thinking": "正在思考",
- "session.todo_progress": "已完成{completed} / {total}个任务",
+ "session.assistant_waiting": "等待中",
+ "session.run_status_working": "正在处理你的任务",
+ "session.run_status_working_detail": "智能体可能正在思考、使用工具或编辑文件。你可以随时停止。",
+ "session.run_status_preparing": "正在准备你的任务",
+ "session.run_status_preparing_detail": "正在连接工具并发送你的消息。",
+ "session.run_status_responding": "正在撰写回复",
+ "session.run_status_responding_detail": "智能体正在完成当前步骤。你可以继续观察,也可以停止运行。",
+ "session.run_status_waiting": "等待你的输入",
+ "session.run_status_waiting_detail": "回答下方的问题或批准请求,任务即可继续。",
+ "session.run_status_compacting": "正在为任务腾出空间",
+ "session.run_status_compacting_detail": "正在总结会话内容。你的文件和消息都是安全的。",
+ "session.run_status_retrying": "正在重试请求",
+ "session.run_status_acceptance_title": "需要确认上一条消息",
+ "session.run_status_acceptance_detail": "无法确认它是否已开始,为避免重复,已暂停发送。",
+ "session.run_status_check_action": "检查消息",
+ "session.run_status_stopping_action": "正在停止…",
+ "session.run_status_queued": "{count} 条后续消息将在本次运行结束后发送。",
+ "session.support_docs": "打开文档",
+ "session.support_feedback": "发送反馈",
+ "session.todo_label": "任务",
+ "session.todo_progress": "已完成 {completed}/{total} 个任务",
+ "session.todo_progress_label": "进度",
"session.undo_label": "撤销",
"session.undo_title": "撤销上一条消息",
+ "session.untitled": "未命名",
"session.workspace_fallback": "工作区",
- "settings.api_keys_info": "API密钥由OpenCode存储在本地。环境变量提供商需在工作区环境中修改后重新加载。",
- "settings.appearance_hint": "匹配系统或强制浅色/深色模式。",
+ "settings.audit_actor_host": "主机",
+ "settings.audit_actor_remote": "远程",
+ "settings.api_keys_info": "API 密钥由 omnirush.ai 保存在本地。通过环境变量提供的提供商,需要在工作区环境中修改后重新加载。",
+ "settings.appearance_hint": "跟随系统,或固定使用浅色/深色模式。",
"settings.appearance_title": "外观",
"settings.audit_log_title": "审计日志",
- "settings.auto_compact": "自动上下文压缩",
- "settings.auto_compact_desc": "控制此工作区的OpenCode compaction.auto。更改后请重载引擎。",
- "settings.auto_update_desc": "自动下载更新(安装前会提示)",
- "settings.auto_update_title": "自动更新",
- "settings.background_checks_desc": "omnirush.ai启动时始终检查。同时每天检查一次。",
- "settings.background_checks_title": "后台检查",
- "settings.cache_repair_requires_desktop": "缓存修复需要桌面应用",
+ "settings.auto_compact": "自动压缩上下文",
+ "settings.auto_compact_desc": "控制此工作区的 omnirush.ai compaction.auto。更改后请重新加载引擎。",
+ "settings.auto_compact_unavailable": "自动压缩上下文暂不可用。",
+ "settings.auto_update_desc": "在后台下载新版本,退出时安装。你也可以在方便时重启。",
+ "settings.auto_update_title": "自动下载",
+ "settings.background_checks_desc": "在后台检查新版本。",
+ "settings.background_checks_title": "自动检查",
+ "settings.cache_repair_requires_desktop": "仅在桌面应用中可用",
"settings.cap_browser_tools": "浏览器工具:{value}",
"settings.cap_commands": "命令:{value}",
"settings.cap_config": "配置:{value}",
"settings.cap_file_tools": "文件工具:{value}",
- "settings.cap_inbox_off": "收件箱关闭",
- "settings.cap_inbox_on": "收件箱开启",
+ "settings.cap_inbox_off": "收件箱已关闭",
+ "settings.cap_inbox_on": "收件箱已开启",
"settings.cap_mcp": "MCP:{value}",
- "settings.cap_outbox_off": "发件箱关闭",
- "settings.cap_outbox_on": "发件箱开启",
+ "settings.cap_outbox_off": "发件箱已关闭",
+ "settings.cap_outbox_on": "发件箱已开启",
"settings.cap_plugins": "插件:{value}",
"settings.cap_read": "读取",
- "settings.cap_sandbox": "沙箱:{value}",
- "settings.cap_skills": "Skills:{value}",
+ "settings.cap_read_only": "只读",
+ "settings.cap_read_write": "读写",
+ "settings.cap_sandbox": "沙盒:{value}",
+ "settings.cap_skills": "技能:{value}",
"settings.cap_write": "写入",
- "settings.capabilities_title": "omnirush.ai服务器功能",
- "settings.capabilities_unavailable": "功能不可用。请使用客户端令牌连接。",
+ "settings.cap_write_only": "只写",
+ "settings.capabilities_title": "omnirush.ai 服务器能力",
+ "settings.capabilities_unavailable": "能力信息不可用。请使用客户端令牌连接。",
"settings.change": "更改",
"settings.choose": "选择",
"settings.clear": "清除",
+ "settings.config_updated": "配置已更新。如果更改影响 omnirush.ai,请重新加载引擎。",
"settings.configure": "配置",
"settings.connect_provider": "连接提供商",
"settings.connection": "连接",
"settings.connection_failed": "连接失败",
"settings.connection_title": "连接",
- "settings.copied_debug_report": "已复制运行时报告JSON。",
- "settings.copy_json": "复制JSON",
- "settings.custom_binary_hint": "用于将omnirush.ai指向本地的OpenCode构建",
- "settings.custom_binary_label": "自定义OpenCode二进制文件",
+ "settings.copied_debug_report": "已复制运行时报告 JSON。",
+ "settings.copy_json": "复制 JSON",
+ "settings.custom_binary_hint": "用于让 omnirush.ai 指向本地的 omnirush.ai 构建",
+ "settings.custom_binary_label": "自定义 omnirush.ai 二进制文件",
+ "settings.debug_base_url": "基础 URL:{url}",
"settings.debug_commit": "提交:{sha}",
+ "settings.debug_connect_url": "连接 URL:{url}",
+ "settings.debug_deeplink_unavailable": "调试深层链接暂不可用。",
"settings.debug_desktop_app": "桌面应用:{version}",
+ "settings.debug_hostname": "主机名:{hostname}",
+ "settings.debug_log_file": "服务器日志:{path}",
+ "settings.debug_lan_url": "局域网 URL:{url}",
+ "settings.debug_mdns_url": "mDNS URL:{url}",
"settings.debug_opencode_version": "omnirush.ai:{version}",
- "settings.debug_omnirush_server_version": "omnirush.ai服务器:{version}",
- "settings.deeplink_hint": "接受 omnirush:// 或 omnirush-dev:// 链接。",
- "settings.delete_containers": "正在移除容器…",
- "settings.delete_local_config": "正在移除本地状态…",
+ "settings.debug_omnirush_server_version": "omnirush.ai 服务器:{version}",
+ "settings.debug_pid": "PID:{pid}",
+ "settings.debug_port": "端口:{port}",
+ "settings.debug_project_dir": "项目目录:{path}",
+ "settings.debug_remote_access": "远程访问:{value}",
+ "settings.debug_runtime": "运行时:{runtime}",
+ "settings.runtime_config_ownership_title": "运行时配置归属",
+ "settings.runtime_config_one_writer_rule": "omnirush.ai 只写入托管的运行时配置文件;用户自己的 omnirush.ai 配置仍归用户所有。",
+ "settings.runtime_config_managed_file_path": "托管文件:{path}",
+ "settings.runtime_config_last_rebuilt": "上次重建:{time}",
+ "settings.runtime_config_missing": "缺失",
+ "settings.runtime_config_redacted_content": "已脱敏的托管文件",
+ "settings.runtime_config_content_unavailable": "托管运行时配置的内容不可用。",
+ "settings.runtime_config_legacy_cleanup_title": "旧版清理",
+ "settings.runtime_config_cleanup_pending": "等待清理。",
+ "settings.runtime_config_cleanup_no_files": "未找到旧版 omnirush.ai 配置文件。",
+ "settings.runtime_config_removed_keys": "已移除:{keys}",
+ "settings.runtime_config_no_removed_keys": "未移除 omnirush.ai 托管的配置项。",
+ "settings.runtime_config_backup_path": "备份:{path}",
+ "settings.runtime_config_no_backup": "无需备份。",
+ "settings.error": "错误",
+ "settings.idle": "空闲",
+ "settings.loading": "加载中",
+ "settings.deeplink_hint": "支持 omnirush:// 或 omnirush-dev:// 链接。",
+ "settings.default_label": "默认",
+ "settings.desktop_notifications.all": "全部",
+ "settings.desktop_notifications.important": "重要",
+ "settings.desktop_notifications.mode": "通知我",
+ "settings.desktop_notifications.mode_desc": "选择应用在后台时,哪些 omnirush.ai 事件可以显示为系统通知。“全部”包括已完成的任务和审批请求。",
+ "settings.desktop_notifications.off": "关闭",
+ "settings.desktop_notifications.section_desc": "桌面应用发出的系统通知,与应用内的通知铃铛相互独立。",
+ "settings.desktop_notifications.title": "桌面通知",
+ "settings.delete_containers": "全部移除",
+ "settings.delete_local_config": "彻底清除并重新开始",
"settings.dev_mode_badge": "开发模式",
"settings.developer": "开发者",
"settings.developer_mode_desc": "启用调试工具、诊断信息和开发者标签页。",
"settings.developer_mode_title": "开发者模式",
- "settings.developer_panel_disabled": "开发者面板已禁用。",
+ "settings.developer_panel_disabled": "开发者面板已启用。",
"settings.developer_panel_enabled": "开发者面板已启用。",
- "settings.diag_approval": "审批:{mode}({ms}ms)",
+ "settings.diag_approval": "审批:{mode}({ms} 毫秒)",
"settings.diag_config_path": "配置路径:{path}",
"settings.diag_default": "默认",
"settings.diag_host_token_source": "主机令牌来源:{source}",
- "settings.diag_opencode_binary": "OpenCode二进制文件:{binary}",
+ "settings.diag_opencode_binary": "omnirush.ai 二进制文件:{binary}",
"settings.diag_read_only": "只读:{value}",
"settings.diag_runtime_workspace": "运行时工作区:{id}",
"settings.diag_selected_workspace": "已选工作区:{id}",
"settings.diag_started": "已启动:{time}",
"settings.diag_token_source": "令牌来源:{source}",
"settings.diag_workspaces": "工作区:{count}",
+ "settings.agent_diagnostics_desc": "对智能体实际收到的内容进行有限且脱敏的检查:实际生效的智能体、上下文标记、MCP 清单和 Cloud 工具访问。",
+ "settings.agent_diagnostics_title": "智能体上下文诊断",
+ "settings.diagnostics_card_desc": "出现问题时分享一份脱敏报告。令牌会被隐去,也不包含会话内容。日志文件夹中有 omnirush-server.log。",
+ "settings.diagnostics_card_title": "报告问题",
+ "settings.diagnostics_failed": "无法准备诊断信息",
+ "settings.diagnostics_open_logs": "打开日志文件夹",
+ "settings.diagnostics_open_logs_done": "已打开日志文件夹",
+ "settings.diagnostics_open_logs_failed": "无法打开日志文件夹",
+ "settings.diagnostics_section_title": "诊断",
+ "settings.free_space_section_title": "存储",
+ "settings.free_space_card_title": "释放空间",
+ "settings.free_space_card_desc": "移除应用不再需要的内容:已安装的更新下载、中断的下载、旧日志和崩溃报告,以及临时文件。“恢复到上一版本”所需的安装程序会保留。会话、项目、设置以及尚未上传的内容都不会被动到。更新后也会自动执行一次。",
+ "settings.free_space_check": "检查",
+ "settings.free_space_clean": "释放空间",
+ "settings.free_space_found": "可释放 {size}({count} 项)",
+ "settings.free_space_done": "已释放 {size}",
+ "settings.free_space_nothing": "没有可移除的内容",
+ "settings.free_space_in_use": "正在使用,已保留",
+ "settings.free_space_busy": "已有清理在进行中,请稍后重试。",
+ "settings.free_space_update_pending": "有更新正在下载或等待安装,请在安装完成后重试。",
+ "settings.free_space_failed": "无法释放空间",
"settings.diagnostics_unavailable": "诊断不可用。",
"settings.disable_developer_mode": "禁用开发者模式",
"settings.disabled": "已禁用",
"settings.disconnect": "断开连接",
"settings.disconnect_server": "断开服务器",
"settings.disconnecting": "正在断开…",
- "settings.docker_containers_desc": "强制移除omnirush.ai启动的Docker容器",
- "settings.docker_containers_title": "omnirush.ai Docker容器",
- "settings.docker_requires_desktop": "Docker清理需要桌面应用",
+ "settings.docker_containers_desc": "清理任务结束后遗留的 Docker 容器。",
+ "settings.docker_containers_title": "Docker 容器",
+ "settings.docker_requires_desktop": "仅在桌面应用中可用",
"settings.done": "完成",
"settings.enable_developer_mode": "启用开发者模式",
"settings.engine_bundled": "内置(推荐)",
- "settings.engine_bundled_hint": "内置引擎是最可靠的选项。使用系统",
+ "settings.engine_bundled_hint": "内置引擎最可靠。使用系统",
"settings.engine_custom_binary": "自定义二进制文件",
- "settings.engine_desc": "选择OpenCode在本地运行的方式。",
+ "settings.engine_desc": "选择 omnirush.ai 在本地的运行方式。",
"settings.engine_source": "引擎来源",
"settings.engine_source_debug": "引擎来源",
"settings.engine_system_path": "系统安装(PATH)",
"settings.engine_title": "引擎",
- "settings.environment.add_button": "新增变量",
- "settings.environment.add_title": "新增环境变量",
- "settings.environment.cancel": "取消",
- "settings.environment.click_to_edit": "点击编辑",
- "settings.environment.confirm_delete": "确定要删除 {key} 吗?应用更改后,agent 将不再看到这个变量。",
- "settings.environment.close_editor": "关闭编辑器",
- "settings.environment.delete": "删除",
- "settings.environment.delete_title": "删除环境变量",
- "settings.environment.delete_variable": "删除 {key}",
- "settings.environment.deleting": "删除中……",
- "settings.environment.description": "保存本机 agents、skills 和 MCP servers 使用的 API keys 与 tokens。Secret 只保留在这台设备上;应用更改后即可使用。",
- "settings.environment.edit_title": "编辑环境变量",
- "settings.environment.empty_body": "添加 ANTHROPIC_API_KEY、GOOGLE_API_KEY、ELEVENLABS_API_KEY、GITHUB_TOKEN 等服务凭证,供 agents 和 MCP servers 使用。",
- "settings.environment.empty_title": "还没有环境变量",
- "settings.environment.empty_value": "(空)",
- "settings.environment.footer_hint": "OMNIRUSH_ 和 OPENCODE_ 键名保留给应用/运行时使用。OpenCode 运行时设置请通过 shell 配置。",
- "settings.environment.override_hint": "omnirush.ai 启动前已经存在的环境变量,会优先于这里保存的值。",
- "settings.environment.hide": "隐藏",
- "settings.environment.hide_value": "隐藏 {key} 的值",
- "settings.environment.key_hint": "仅允许字母、数字和下划线;不能以数字开头。",
- "settings.environment.key_label": "名称",
- "settings.environment.loading": "加载中……",
- "settings.environment.remote_workspace_hint": "当前工作区是远程工作区。这里不会显示或编辑本机环境变量;请使用云端 LLM Providers,或直接配置 worker 所在主机。",
- "settings.environment.apply_button": "应用更改",
- "settings.environment.apply_blocked_active_tasks": "应用环境更改前,请先停止正在运行的任务。",
- "settings.environment.apply_confirm_body": "omnirush.ai 会重启本机 agents,让它们使用最新环境变量。正在运行的本机任务可能会停止。",
- "settings.environment.apply_no_local_workspace": "omnirush.ai 尚未连接到本机工作区。",
- "settings.environment.apply_pending_body": "应用更改会重启本机 agents,并让最新值可用。",
- "settings.environment.apply_pending_body_manual": "重启本机 agents 后,最新值才会可用。",
- "settings.environment.apply_pending_title": "更改已保存,但尚未生效",
- "settings.environment.apply_refresh_failed": "更改已生效,但 omnirush.ai 状态没有刷新。如果界面看起来过期,请重新打开应用。",
- "settings.environment.apply_success": "环境变量更改已生效。",
- "settings.environment.apply_title": "应用环境变量更改?",
- "settings.environment.apply_unavailable": "只有桌面应用可以直接应用更改。",
- "settings.environment.applying": "应用中……",
- "settings.environment.reveal": "查看",
- "settings.environment.reveal_value": "查看 {key} 的值",
- "settings.environment.save": "保存",
- "settings.environment.saving": "保存中……",
- "settings.environment.title": "环境变量",
- "settings.environment.validation_duplicate": "已经存在同名变量。",
- "settings.environment.validation_empty": "必须填写名称。",
- "settings.environment.validation_reserved": "OMNIRUSH_ 和 OPENCODE_ 名称由 omnirush.ai/OpenCode 管理。",
- "settings.environment.validation_shape": "请使用字母、数字和下划线,且不能以数字开头。",
- "settings.environment.value_label": "值",
"settings.export": "导出",
- "settings.exported_debug_report": "已导出运行时报告JSON。",
- "settings.feedback_badge": "我们阅读每条反馈",
+ "settings.exported_debug_report": "已导出运行时报告 JSON。",
+ "settings.feedback_badge": "每条反馈我们都会阅读",
"settings.feedback_desc": "告诉我们哪里体验流畅、哪里需要改进。反馈直达团队,帮助我们确定下一步优先级。",
- "settings.feedback_title": "帮助塑造omnirush.ai",
- "settings.group_cloud": "Cloud",
+ "settings.feedback_title": "一起打磨 omnirush.ai",
+ "settings.group_cloud": "云端",
"settings.group_global": "全局",
"settings.group_workspace": "工作区",
"settings.hide_titlebar": "隐藏标题栏",
- "settings.hide_titlebar_desc": "隐藏窗口标题栏。适用于平铺式窗口管理器。",
- "settings.join_discord": "加入Discord",
+ "settings.hide_titlebar_desc": "隐藏窗口标题栏,适合平铺式窗口管理器",
+ "settings.join_discord": "加入 Discord",
"settings.language": "语言",
- "settings.language.description": "选择你的首选语言",
- "settings.last_error": "最后错误",
- "settings.last_stderr": "最后stderr",
- "settings.last_stdout": "最后stdout",
+ "settings.language.description": "选择你偏好的语言",
+ "settings.last_error": "最近的错误",
+ "settings.last_stderr": "最近的 stderr",
+ "settings.last_stdout": "最近的 stdout",
"settings.loading_providers": "正在加载提供商…",
"settings.managed_by_env": "由环境变量管理",
"settings.model": "模型",
"settings.model_behavior": "模型行为",
- "settings.model_behavior_desc": "打开默认模型选择器,选择可用的推理配置。",
- "settings.model_section_desc": "选择默认对话模型并查看其推理方式。",
+ "settings.model_behavior_desc": "打开默认模型选择器,在可用时选择推理档位。",
+ "settings.model_behavior_unavailable": "模型行为配置暂不可用。",
+ "settings.model_section_desc": "选择默认的会话模型,并查看它的推理方式。",
"settings.model_title": "模型",
"settings.no_active_workspace": "没有活动的本地工作区。",
+ "settings.no_providers_connected": "还没有连接任何提供商。",
"settings.no_audit_entries": "暂无审计记录。",
"settings.no_custom_path_set": "未设置自定义路径",
- "settings.nuke_hint": "仅在需要完全重置桌面应用及其OpenCode运行时状态时使用。",
+ "settings.nuke_hint": "仅在需要彻底重置桌面应用及其 omnirush.ai 运行时状态时使用。",
+ "settings.nuke_cancel": "取消",
+ "settings.nuke_bootstrap_delete_desc": "会将 {path} 加入删除列表。此设备将忘记其组织服务器,需要重新连接。如需保持连接,请不要勾选。",
+ "settings.nuke_bootstrap_delete_label": "同时删除引导配置 / 组织服务器",
+ "settings.nuke_confirmation_hint": "omnirush.ai 会尽力撤销你的云端会话,清除本地状态,然后重新启动。",
+ "settings.nuke_confirmation_label": "输入 NUKE 以确认",
+ "settings.nuke_confirmation_placeholder": "输入 NUKE",
+ "settings.nuke_confirm_button": "清除并重新启动",
+ "settings.nuke_deleted_empty": "没有报告本地路径。",
+ "settings.nuke_deleted_title": "将删除",
+ "settings.nuke_dialog_desc": "这会移除此设备上的本地 omnirush.ai、浏览器、令牌、运行时、缓存及旧版运行时状态。",
+ "settings.nuke_dialog_title": "清除本地状态并重新开始?",
+ "settings.nuke_no_bootstrap_path": "未检测到引导配置文件",
+ "settings.nuke_partitions": "已清除 Chromium 存储:{partitions}",
+ "settings.nuke_previewing": "正在准备清除…",
+ "settings.nuke_survives_app": "已安装的 omnirush.ai 应用和协议注册会保留。",
+ "settings.nuke_survives_bootstrap": "引导配置 / 组织服务器:{path}",
+ "settings.nuke_survives_title": "将保留",
+ "settings.nuke_survives_workspaces": "工作区文件夹及其中的文件不受影响,但每个工作区的应用状态会被移除。",
"settings.off": "关闭",
"settings.on": "开启",
"settings.open_deeplink_action": "正在打开…",
"settings.open_deeplink_button": "隐藏",
- "settings.open_deeplink_desc": "粘贴omnirush.ai深度链接或共享URL以打开。",
+ "settings.open_deeplink_desc": "粘贴 omnirush.ai 深层链接或分享 URL 以打开。",
+ "settings.open_deeplink_failed": "无法打开深层链接",
"settings.open_deeplink_title": "打开深层链接",
- "settings.opencode_cache": "OpenCode缓存",
- "settings.opencode_cache_description": "修复用于启动引擎的缓存数据。可放心执行。",
+ "settings.organization_server_current": "当前组织服务器:{url}",
+ "settings.organization_server_default": "正在使用标准的 omnirush.ai Cloud。",
+ "settings.organization_server_desc": "让 omnirush.ai 指向你的组织托管的服务器。无需开启开发者模式。",
+ "settings.organization_server_title": "组织服务器",
+ "settings.organization_server_url_hint": "粘贴你的组织的 omnirush.ai 服务器 URL。保存后会退出登录,以便 omnirush.ai 重新连接到该服务器。",
+ "settings.organization_server_url_label": "组织服务器 URL",
+ "settings.opencode_cache": "本地缓存",
+ "settings.opencode_cache_description": "修复因本地数据过期导致的启动问题。",
"settings.opencode_engine_desc": "用于智能体、工具和模型提供商的本地运行时。",
- "settings.opencode_engine_label": "OpenCode引擎",
- "settings.opencode_engine_sidecar_desc": "本地执行sidecar。",
- "settings.opencode_sdk_desc": "UI连接诊断。",
- "settings.opencode_sdk_title": "OpenCode引擎",
+ "settings.opencode_engine_label": "omnirush.ai 引擎",
+ "settings.opencode_engine_sidecar": "omnirush.ai 引擎",
+ "settings.opencode_engine_sidecar_desc": "由 omnirush.ai 管理的本地 omnirush.ai 进程。",
+ "settings.opencode_sdk_desc": "浏览器 → 引擎的连接。",
+ "settings.opencode_sdk_title": "omnirush.ai SDK 连接",
"settings.opening": "打开深层链接",
- "settings.omnirush_config_sidecar_desc": "配置和审批sidecar。",
- "settings.omnirush_diagnostics_title": "omnirush.ai服务器诊断",
- "settings.omnirush_server_desc": "用于应用同步、工作者和远程连接的会话控制平面。",
- "settings.omnirush_server_label": "omnirush.ai服务器",
+ "settings.omnirush_config_sidecar_desc": "本地 omnirush.ai 服务器(Bun),负责审批、审计和 omnirush.ai 生命周期。",
+ "settings.omnirush_diagnostics_title": "omnirush.ai 服务器诊断",
+ "settings.omnirush_server_desc": "用于应用同步、工作区和远程连接的会话控制平面",
+ "settings.omnirush_server_label": "omnirush.ai 服务器",
"settings.pending_permissions": "待处理的权限",
"settings.production_mode_badge": "生产模式",
"settings.provider_default_desc": "使用模型内置的默认推理行为。",
"settings.provider_default_label": "提供商默认",
+ "settings.provider_source_api": "你的密钥",
"settings.provider_source_config": "配置",
"settings.provider_source_custom": "自定义",
"settings.provider_source_env": "环境变量",
+ "settings.provider_source_organization": "组织",
"settings.providers_desc": "连接用于模型和工具的服务。",
"settings.providers_title": "提供商",
- "settings.quit_hint": "omnirush.ai在清理后立即退出,以便下次启动时从此模式的全新本地状态开始。",
+ "settings.quit_hint": "清理完成后 omnirush.ai 会立即退出,下次启动时此模式将从全新的本地状态开始。",
"settings.recent_events": "最近的事件",
- "settings.reconnect_failed": "重新连接失败。请检查服务器URL/令牌后重试。",
+ "settings.reconnect_failed": "重新连接失败。请检查服务器 URL 或令牌后重试。",
"settings.reconnect_server": "正在重新连接…",
- "settings.reconnect_server_failed": "重新连接omnirush.ai服务器失败。",
- "settings.reconnected": "已重新连接omnirush.ai服务器。",
+ "settings.reconnect_server_failed": "无法重新连接 omnirush.ai 服务器。",
+ "settings.reconnected": "已重新连接 omnirush.ai 服务器。",
"settings.reconnecting": "正在重新连接…",
"settings.removing_containers": "正在移除容器…",
"settings.removing_local_state": "正在移除本地状态…",
"settings.repair_cache": "修复缓存",
- "settings.repairing_cache": "正在修复缓存",
+ "settings.repairing_cache": "正在修复…",
"settings.report_issue": "报告问题",
"settings.reset": "重置",
"settings.reset_app_data": "重置应用数据",
- "settings.reset_app_data_description": "更彻底的方式。清除omnirush.ai缓存和应用数据。",
+ "settings.reset_app_data_description": "更彻底:清除 omnirush.ai 缓存和应用数据。",
"settings.reset_app_data_title": "重置应用数据",
- "settings.reset_app_data_warning": "清除此设备上的omnirush.ai缓存和应用数据。",
+ "settings.reset_app_data_warning": "清除此设备上的 omnirush.ai 缓存和应用数据。",
"settings.reset_button": "重置",
"settings.reset_cancel": "取消",
- "settings.reset_config_defaults": "正在重置…",
+ "settings.reset_config_defaults": "恢复默认设置",
"settings.reset_confirm_button": "重置并重启",
- "settings.reset_confirmation_hint": "输入 {resetWord} 以确认。omnirush.ai将重启。",
+ "settings.reset_confirmation_hint": "输入 {resetWord} 以确认。omnirush.ai 将重启。",
"settings.reset_confirmation_label": "确认",
- "settings.reset_confirmation_placeholder": "输入RESET",
- "settings.reset_onboarding": "重置入门",
- "settings.reset_onboarding_description": "清除omnirush.ai偏好设置并重启应用。",
- "settings.reset_onboarding_title": "重置入门",
- "settings.reset_onboarding_warning": "清除omnirush.ai本地偏好设置和工作区入门标记。",
- "settings.reset_omnirush_desc_dev": "在开发模式下,仅清除omnirush-dev-data中的隔离OpenCode开发状态。",
- "settings.reset_omnirush_desc_prod": "在开发模式下,仅清除omnirush-dev-data中的隔离OpenCode开发状态。",
- "settings.reset_omnirush_title": "重置omnirush.ai + OpenCode状态",
- "settings.reset_requires_confirm": "需要输入RESET,应用将重启。",
+ "settings.reset_confirmation_placeholder": "输入 RESET",
+ "settings.reset_onboarding": "重置新手引导",
+ "settings.reset_onboarding_description": "清除 omnirush.ai 偏好设置并重启应用。",
+ "settings.reset_onboarding_title": "重置新手引导",
+ "settings.reset_onboarding_warning": "清除 omnirush.ai 本地偏好设置和工作区的新手引导标记。",
+ "settings.reset_omnirush_desc_dev": "开发模式下,只会清除 omnirush-dev-data 中隔离的 omnirush.ai 开发状态。",
+ "settings.reset_omnirush_desc_prod": "开发模式下,只会清除 omnirush-dev-data 中隔离的 omnirush.ai 开发状态。",
+ "settings.reset_omnirush_title": "重置 omnirush.ai 状态",
+ "settings.reset_requires_confirm": "需要输入 RESET,应用将重启。",
"settings.reset_startup": "重置默认启动模式",
"settings.reset_startup_pref": "重置启动偏好",
- "settings.reset_stop_active_runs": "重置前停止活动运行。",
+ "settings.reset_stop_active_runs": "重置前请先停止正在运行的任务。",
"settings.resetting": "正在重置…",
- "settings.restart_blocked_message": "omnirush.ai需要重启以完成此更新。为避免中断当前工作,安装已暂停,直到你的活动运行完成或你手动停止它们。",
+ "settings.restart_blocked_message": "更新已就绪,omnirush.ai 会等你正在运行的任务结束后再重启。你也可以手动停止它们。",
"settings.restart_failed": "重启失败。请检查日志后重试。",
- "settings.restart_opencode": "正在重启…",
- "settings.restart_omnirush_server": "正在重启…",
- "settings.restart_server_failed": "重启本地服务器失败。",
+ "settings.restart_opencode": "重启 omnirush.ai",
+ "settings.restart_omnirush_server": "重启 omnirush.ai 服务器",
+ "settings.restart_server_failed": "无法重启本地服务器。",
"settings.restarted": "本地服务器已重启。",
"settings.restarting": "正在重启…",
- "settings.reveal_config": "显示配置",
- "settings.reveal_config_requires_desktop": "显示配置需要桌面应用",
- "settings.server_endpoints_api": "API endpoint",
- "settings.server_endpoints_bootstrap_hint": "Bootstrap file: {path}",
- "settings.server_endpoints_cloud_mcp": "Cloud agent (MCP)",
- "settings.server_endpoints_desc": "Read-only view of the URLs omnirush.ai will use after local overrides and bootstrap files are applied.",
- "settings.server_endpoints_local_dev": "Local dev server",
- "settings.server_endpoints_mismatch": "Doesn't match API endpoint",
- "settings.server_endpoints_not_configured": "No omnirush-cloud MCP entry configured",
- "settings.server_endpoints_org": "Organization server",
- "settings.server_endpoints_source_bootstrap": "From bootstrap file",
- "settings.server_endpoints_source_custom": "Custom",
- "settings.server_endpoints_source_default": "Default",
- "settings.server_endpoints_title": "Server endpoints",
- "settings.run_sandbox_probe": "正在运行探测…",
+ "settings.restart_succeeded_template": "已重启 {service}。",
+ "settings.restart_failed_template": "无法重启 {service}。",
+ "settings.copy_logs": "复制日志",
+ "settings.copied_service_logs": "已复制 {service} 的日志。",
+ "settings.no_logs_captured": "尚未捕获日志。",
+ "settings.exported_developer_log": "已导出开发者日志。",
+ "settings.developer_log_title": "开发者日志流",
+ "settings.developer_log_desc": "开发者模式开启期间捕获的应用、工作区、会话和性能事件。",
+ "settings.developer_log_count": "显示最近保留的 {count} 条记录。",
+ "settings.developer_log_empty": "尚未捕获开发者日志。",
+ "settings.services_section_title": "服务",
+ "settings.services_section_desc": "支撑此 omnirush.ai 会话的本地服务,每个服务都可单独重启和查看日志。",
+ "settings.activity_section_title": "活动",
+ "settings.activity_section_desc": "审计记录和最近的运行时事件。",
+ "settings.tools_section_title": "工具",
+ "settings.tools_section_desc": "用于诊断本地执行的探测工具和二进制文件选择器。",
+ "settings.recovery_section_title": "重置与恢复",
+ "settings.recovery_section_desc": "无需退出 omnirush.ai 即可回滚状态。",
+ "settings.danger_section_title": "危险操作",
+ "settings.danger_section_desc": "不可撤销的操作。请在了解后果后再使用。",
+ "settings.clear_button": "清除",
+ "settings.copy_log_button": "复制日志",
+ "settings.export_log_button": "导出 .log",
+ "settings.reveal_config": "显示文件",
+ "settings.recovery_cache_repair_unavailable": "缓存修复暂不可用。",
+ "settings.recovery_docker_cleanup_unavailable": "容器清理暂不可用。",
+ "settings.recovery_reset_config_unavailable": "重置配置暂不可用。",
+ "settings.recovery_requires_desktop": "这些操作需要桌面应用。",
+ "settings.recovery_requires_desktop_title": "需要桌面应用",
+ "settings.reveal_config_requires_desktop": "仅在桌面应用中可用",
+ "settings.scheduler_plugin_unavailable": "定时任务插件暂时无法安装。",
+ "settings.server_endpoints_api": "API 端点",
+ "settings.server_endpoints_bootstrap_hint": "引导配置文件:{path}",
+ "settings.server_endpoints_cloud_mcp": "云端智能体(MCP)",
+ "settings.server_endpoints_desc": "应用本地覆盖设置和引导配置文件后,omnirush.ai 将使用的 URL(只读)。",
+ "settings.server_endpoints_local_dev": "本地开发服务器",
+ "settings.server_endpoints_mismatch": "与 API 端点不一致",
+ "settings.server_endpoints_not_configured": "未配置 omnirush-cloud MCP 条目",
+ "settings.server_endpoints_org": "组织服务器",
+ "settings.server_endpoints_source_bootstrap": "来自引导配置文件",
+ "settings.server_endpoints_source_custom": "自定义",
+ "settings.server_endpoints_source_default": "默认",
+ "settings.server_endpoints_title": "服务器端点",
+ "settings.run_sandbox_probe": "运行探测",
"settings.running_probe": "正在运行探测…",
"settings.runtime_debug_desc": "可读的诊断快照,支持一键导出。",
"settings.runtime_debug_title": "运行时调试报告",
- "settings.runtime_desc": "本地引擎和omnirush.ai服务器的状态。",
+ "settings.runtime_desc": "本地引擎和 omnirush.ai 服务器的状态。",
"settings.runtime_title": "运行时",
"settings.sandbox_error": "错误",
- "settings.sandbox_export_hint": "使用上方运行时调试报告中的导出功能",
- "settings.sandbox_probe_desc": "运行临时Docker沙箱启动检查并",
- "settings.sandbox_probe_success": "沙箱探测成功。导出调试报告以获取支持。",
- "settings.sandbox_probe_title": "沙箱探测",
- "settings.sandbox_ready": "就绪",
- "settings.sandbox_requires_desktop": "沙箱探测需要桌面应用",
+ "settings.sandbox_export_hint": "使用上方“运行时调试报告”中的“导出”来",
+ "settings.sandbox_probe_desc": "运行一次临时的 Docker 沙盒启动检查,并",
+ "settings.sandbox_probe_success": "沙盒探测成功。可导出调试报告提供给支持人员。",
+ "settings.sandbox_probe_title": "沙盒探测",
+ "settings.sandbox_ready": "已就绪",
+ "settings.sandbox_requires_desktop": "沙盒探测需要桌面应用",
"settings.sandbox_result": "结果:{status}",
- "settings.sandbox_run_id": "运行ID:{id}",
- "settings.sandbox_stop_runs_hint": "探测前请停止活动运行",
+ "settings.sandbox_run_id": "运行 ID:{id}",
+ "settings.sandbox_stop_runs_hint": "探测前请先停止正在运行的任务",
"settings.search_models": "搜索模型…",
"settings.send_feedback": "发送反馈",
"settings.show_model_reasoning": "显示模型推理",
"settings.show_model_reasoning_desc": "当模型提供推理过程时,在界面中展开推理轨迹。",
- "settings.showing_models": "显示{count} / {total}",
+ "settings.showing_models": "显示 {count}/{total}",
"settings.startup": "启动",
"settings.startup_remote_warning": "启动偏好当前为远程。引擎设置",
"settings.startup_reset_hint": "这将清除你保存的偏好并显示连接",
"settings.startup_title": "启动",
"settings.stop_local_server": "停止本地服务器",
- "settings.stop_runs_before_cleanup": "清理前请停止活动运行",
- "settings.stop_runs_before_reset_config": "重置配置前请停止活动运行",
- "settings.stop_runs_to_reset": "停止活动运行以重置",
+ "settings.stop_runs_before_cleanup": "请先停止正在运行的任务",
+ "settings.stop_runs_before_reset_config": "请先停止正在运行的任务",
+ "settings.stop_runs_to_reset": "停止正在运行的任务后才能重置",
"settings.switch": "切换",
"settings.tab_advanced": "高级",
"settings.tab_appearance": "外观",
- "settings.tab_cloud_account": "Account",
+ "settings.tab_cloud_account": "账号",
+ "settings.tab_connect": "omnirush.ai Connect",
"settings.tab_cloud_marketplaces": "合集",
- "settings.tab_cloud_providers": "Cloud Providers",
+ "settings.tab_cloud_providers": "云端提供商",
+ "settings.desktop_policy_active_title": "组织策略已生效",
+ "settings.desktop_policy_active_body": "部分功能和外观设置由组织管理员管理。",
"settings.tab_debug": "调试",
"settings.tab_description_advanced": "检查运行时健康状态、连接状态和面向开发者的控制项。",
- "settings.tab_description_appearance": "调整omnirush.ai在桌面、系统主题和应用外观方面的显示效果。",
- "settings.tab_description_debug": "查看运行时诊断信息、日志和底层调试工具。",
- "settings.tab_description_cloud_account": "Sign in, manage your organization, and configure your cloud connection.",
+ "settings.tab_description_appearance": "调整 omnirush.ai 在桌面、系统主题和应用窗口方面的外观。",
+ "settings.tab_description_cloud_account": "登录、管理你的组织,并配置云端连接。",
+ "settings.tab_description_connect": "使用组织共享的、由云端管理的 MCP 连接。",
"settings.tab_description_cloud_marketplaces": "浏览组织的插件合集并将其导入工作区。",
- "settings.tab_description_cloud_providers": "查看组织LLM提供商的同步状态。",
+ "settings.tab_description_cloud_providers": "查看组织 LLM 提供商的同步状态。",
+ "settings.tab_description_debug": "查看运行时诊断信息、日志和底层调试工具。",
"settings.tab_description_extensions": "智能体可使用的技能、连接和工具。",
- "settings.tab_description_general": "连接提供商、选择默认模型、授权文件夹,以及控制所选omnirush.ai工作区和运行时连接。",
- "settings.tab_description_environment": "保存本机 agents、skills 和 MCP servers 使用的 API keys 与 tokens。Secret 只保留在这台设备上。",
- "settings.tab_description_recovery": "修复迁移状态、重置工作区默认值和恢复本地设置。",
- "settings.tab_description_skills": "在设置中浏览、编辑和安装skills。",
- "settings.tab_description_updates": "通过静默后台检查和安装控制保持应用为最新版本。",
- "settings.tab_environment": "环境变量",
- "settings.tab_extensions": "资料库",
+ "settings.tab_description_general": "连接提供商、选择默认模型、授权文件夹,并管理所选 omnirush.ai 工作区及其运行时连接。",
+ "settings.environment.add_button": "添加变量",
+ "settings.environment.add_title": "添加环境变量",
+ "settings.environment.cancel": "取消",
+ "settings.environment.click_to_edit": "点击编辑",
+ "settings.environment.confirm_delete": "确定删除 {key}?应用更改后,智能体将无法再读取此变量。",
+ "settings.environment.close_editor": "关闭编辑器",
+ "settings.environment.delete": "删除",
+ "settings.environment.delete_title": "删除环境变量",
+ "settings.environment.delete_variable": "删除 {key}",
+ "settings.environment.deleting": "正在删除…",
+ "settings.environment.description": "保存本机智能体、技能和 MCP 服务器使用的 API 密钥和令牌。密钥只保存在此设备上,应用更改后即可使用。",
+ "settings.environment.edit_title": "编辑环境变量",
+ "settings.environment.empty_body": "添加 ANTHROPIC_API_KEY、GOOGLE_API_KEY、ELEVENLABS_API_KEY 或 GITHUB_TOKEN 等密钥,供智能体和 MCP 服务器访问所需的服务。",
+ "settings.environment.empty_title": "还没有环境变量",
+ "settings.environment.empty_value": "(空)",
+ "settings.environment.footer_hint": "应用和引擎的环境变量名保留给运行时使用。引擎设置请在 Shell 中配置。",
+ "settings.environment.override_hint": "在 omnirush.ai 启动前设置的环境变量,优先于此处保存的值。",
+ "settings.environment.hide": "隐藏",
+ "settings.environment.hide_value": "隐藏 {key} 的值",
+ "settings.environment.key_hint": "只能使用字母、数字和下划线,且不能以数字开头。",
+ "settings.environment.key_label": "名称",
+ "settings.environment.loading": "正在加载…",
+ "settings.environment.remote_workspace_hint": "此工作区是远程工作区,此处不显示本机环境变量。请使用云端 LLM 提供商,或直接在工作区主机上配置。",
+ "settings.environment.apply_button": "应用更改",
+ "settings.environment.apply_blocked_active_tasks": "应用环境更改前,请先停止正在运行的任务。",
+ "settings.environment.apply_confirm_body": "omnirush.ai 会重启本机智能体,使其使用最新的环境变量。正在运行的本地任务可能会停止。",
+ "settings.environment.apply_no_local_workspace": "omnirush.ai 尚未连接到本地工作区。",
+ "settings.environment.apply_pending_body": "应用更改会重启本机智能体,使最新的值生效。",
+ "settings.environment.apply_pending_body_manual": "重启本机智能体后,最新的值才会生效。",
+ "settings.environment.apply_pending_title": "更改已保存,但尚未生效",
+ "settings.environment.apply_refresh_failed": "更改已生效,但 omnirush.ai 的状态没有刷新。如果界面显示过时,请重新打开应用。",
+ "settings.environment.apply_success": "环境变量更改已生效。",
+ "settings.environment.apply_title": "应用环境变量更改?",
+ "settings.environment.apply_unavailable": "只有桌面应用可以应用更改。",
+ "settings.environment.applying": "正在应用…",
+ "settings.environment.reveal": "显示",
+ "settings.environment.reveal_value": "显示 {key} 的值",
+ "settings.environment.save": "保存",
+ "settings.environment.saving": "正在保存…",
+ "settings.environment.title": "环境变量",
+ "settings.environment.validation_duplicate": "已经存在同名变量。",
+ "settings.environment.validation_empty": "必须填写名称。",
+ "settings.environment.validation_reserved": "应用和引擎的环境变量名由 omnirush.ai 管理。",
+ "settings.environment.validation_shape": "请使用字母、数字和下划线,且不能以数字开头。",
+ "settings.environment.value_label": "值",
+ "settings.environment.table_actions": "操作",
+ "settings.environment.updated_at": "更新于 {date}",
+ "settings.tab_description_environment": "保存本机智能体、技能和 MCP 服务器使用的 API 密钥和令牌。密钥只保存在此设备上。",
+ "settings.tab_description_recovery": "修复常见问题、重置工作区设置或清理残留数据。",
+ "settings.tab_description_skills": "在设置中浏览、编辑和安装技能。",
+ "settings.tab_description_updates": "通过安静的后台检查和安装选项,让应用保持最新。",
+ "settings.tab_environment": "环境",
+ "settings.tab_extensions": "资源库",
"settings.tab_general": "设置",
"settings.tab_recovery": "恢复",
- "settings.tab_skills": "Skills(技能)",
+ "settings.tab_skills": "技能",
"settings.tab_updates": "更新",
"settings.theme_dark": "深色",
"settings.theme_light": "浅色",
- "settings.theme_system": "系统",
- "settings.theme_system_hint": "系统模式自动跟随你的操作系统偏好。",
+ "settings.theme_system": "跟随系统",
+ "settings.theme_system_hint": "“跟随系统”会自动匹配操作系统的设置。",
+ "settings.theme_title": "主题",
"settings.update": "更新",
- "settings.update_available": "可用更新:v",
- "settings.update_available_version": "可用更新:v{version}",
- "settings.update_check_button": "检查",
- "settings.update_check_failed": "更新检查失败",
- "settings.update_checking": "检查中...",
+ "settings.update_available": "有可用更新:v",
+ "settings.update_available_version": "有可用更新:v{version}",
+ "settings.update_blocked_version": "有可用更新:v{version}",
+ "settings.update_blocked_org": "omnirush.ai {version} 已发布,但你的组织尚未批准此版本。请联系组织管理员启用。",
+ "settings.update_blocked_policy": "omnirush.ai {version} 已发布,但此安装暂不符合更新条件。",
+ "settings.update_check_button": "立即检查",
+ "settings.update_check_failed": "无法检查更新",
+ "settings.update_checking": "正在检查更新…",
"settings.update_download_button": "下载",
- "settings.update_downloading": "下载中...",
+ "settings.update_download_package_button": "下载 {kind}",
+ "settings.update_copy_command_button": "复制安装命令",
+ "settings.update_open_download_page_button": "打开下载页面",
+ "settings.update_install_version_button": "安装 {version}",
+ "settings.update_package_title": "安装版本 {version}",
+ "settings.update_package_hint": "此副本是通过包管理器安装的,因此也需用同样的方式更新。请在终端中运行此命令,然后重新打开应用。",
+ "settings.update_download_failed": "无法下载更新",
+ "settings.update_downloading": "正在下载更新…",
+ "settings.update_restart_button": "重启以更新",
+ "settings.update_on_quit_hint": "退出时会自动安装。",
+ "settings.update_keep_working": "继续工作",
+ "settings.update_restart_confirm_action": "重启并更新",
+ "settings.update_restart_now_title": "重启 {appName}?",
+ "settings.update_restart_now_message": "{appName} 将关闭并以最新版本重新打开。符合条件的运行中任务会在重启后逐步恢复;等待输入或结果不确定的任务会保持暂停。你也可以继续工作,退出时会自动安装更新。",
"settings.update_install_button": "安装并重启",
"settings.update_open_installer_button": "打开安装程序",
"settings.update_installer_opened": "安装程序已打开。将 omnirush.ai 拖入“应用程序”文件夹以替换旧版本,然后重新打开。",
- "settings.update_manual_install_hint": "此构建未使用 Developer ID 签名,无法自行替换。安装程序将打开,omnirush.ai 将退出。",
+ "settings.update_manual_install_hint": "此副本从只读位置运行(从“下载”文件夹打开),无法自行替换。将打开安装程序,omnirush.ai 会退出。",
"settings.update_open_installer_now_title": "要打开安装程序吗?",
"settings.update_open_installer_now_message": "{appName} 将退出并打开安装程序。将 omnirush.ai 拖入“应用程序”文件夹以替换旧版本,然后重新打开。",
- "settings.update_last_checked": "上次检查{time}",
- "settings.update_published": "发布时间{date}",
- "settings.update_ready": "准备安装:v",
- "settings.update_ready_version": "准备安装:v{version}",
- "settings.update_uptodate": "已是最新",
+ "settings.update_install_failed": "无法安装更新",
+ "settings.update_last_checked": "上次检查:{time}",
+ "settings.update_published": "发布于 {date}",
+ "settings.update_ready": "可以安装:v",
+ "settings.update_ready_version": "可以安装:v{version}",
+ "settings.update_restart_active_tasks": "你有正在运行的任务。安装更新会重启 omnirush.ai 并中断这些任务。",
+ "settings.update_restart_confirm_title": "在有任务运行时重启?",
+ "settings.update_restart_confirm_message": "安装更新会立即重启 omnirush.ai 并中断正在运行的任务。更新后你可能需要重新继续这些任务。",
+ "settings.update_uptodate": "已是最新版本",
"settings.updates": "更新",
- "settings.updates_desc": "保持omnirush.ai为最新版本。",
+ "settings.updates_desc": "让 omnirush.ai 保持最新。",
"settings.updates_desktop_only": "更新仅在桌面应用中可用。",
"settings.updates_not_supported": "此环境不支持更新。",
"settings.updates_title": "更新",
"settings.window_appearance_desc": "自定义窗口外观。",
- "settings.worker_id_label": "工作区{id}",
- "settings.worker_unresolved": "工作区{runtimeWorkspaceId}",
- "settings.workspace_config_desc": ".opencode/omnirush.json",
+ "settings.window_title": "窗口外观",
+ "settings.worker_id_label": "工作区 {id}",
+ "settings.worker_unresolved": "工作区 {runtimeWorkspaceId}",
+ "settings.workspace_config_desc": "查看或重置此工作区的设置文件。",
"settings.workspace_config_title": "工作区配置",
"settings.workspace_debug_events_label": "工作区调试事件",
- "share.back_hint": "返回分享选项",
- "share.chooser_subtitle": "选择分享此工作区的方式。",
+ "share.back_hint": "返回共享选项",
+ "share.chooser_subtitle": "选择共享此工作区的方式。",
"share.close_hint": "关闭",
- "share.option_access_desc": "显示从其他设备访问此运行中工作区所需的实时连接详情。",
+ "share.option_access_desc": "显示从其他电脑访问这个正在运行的工作区所需的实时连接信息。",
"share.option_access_title": "远程访问工作区",
- "share.subtitle_access": "显示从其他设备访问此工作区所需的实时连接详情。",
- "share.title": "分享工作区",
+ "share.subtitle_access": "显示从其他电脑访问此工作区所需的实时连接信息。",
+ "share.title": "共享工作区",
"share.view_access": "远程访问工作区",
"share.workspace_fallback": "工作区",
- "share_skill_destination.add_to_workspace": "添加到工作区",
- "share_skill_destination.adding": "正在添加…",
+ "share_skill_destination.add_to_workspace": "将技能添加到工作区",
+ "share_skill_destination.adding": "正在添加技能…",
"share_skill_destination.connect_remote": "连接远程工作区",
- "share_skill_destination.connect_remote_hint": "连接远程工作区以导入skill",
+ "share_skill_destination.connect_remote_hint": "连接一台 omnirush.ai 主机,然后从列表中选择它来导入此技能。",
"share_skill_destination.create_worker": "新建工作区",
- "share_skill_destination.create_worker_hint": "创建新工作区以导入skill",
+ "share_skill_destination.create_worker_hint": "打开工作区设置流程,新工作区就绪后再添加此技能。",
"share_skill_destination.current_badge": "当前",
"share_skill_destination.existing_workers": "现有工作区",
- "share_skill_destination.fallback_skill_name": "共享skill",
+ "share_skill_destination.fallback_skill_name": "共享的技能",
"share_skill_destination.local_badge": "本地",
"share_skill_destination.more_options": "更多选项",
- "share_skill_destination.no_workers": "暂无就绪的工作区。请创建或连接远程工作区以安装此skill。",
+ "share_skill_destination.no_workers": "还没有就绪的工作区。请新建一个工作区或连接远程工作区来安装此技能。",
"share_skill_destination.remote_badge": "远程",
- "share_skill_destination.sandbox_badge": "沙箱",
+ "share_skill_destination.sandbox_badge": "沙盒",
"share_skill_destination.selected_badge": "已选择",
- "share_skill_destination.selected_hint": "已选择。请确认下方的目标后提交。",
- "share_skill_destination.skill_label": "共享skill",
- "share_skill_destination.subtitle": "选择现有工作区或新建一个,然后导入此共享skill。",
- "share_skill_destination.title": "这个skill放在哪里?",
- "share_skill_destination.trigger_label": "触发器",
+ "share_skill_destination.selected_hint": "已选择。请检查下方的目标位置,然后确认。",
+ "share_skill_destination.skill_label": "共享的技能",
+ "share_skill_destination.subtitle": "导入此共享技能之前,请选择现有工作区或新建一个。",
+ "share_skill_destination.title": "这个技能放到哪里?",
+ "share_skill_destination.trigger_label": "触发条件",
"sidebar.collapse": "收起",
"sidebar.expand": "展开",
"skills.catalog_search_placeholder": "搜索已安装的技能",
- "skills.create_in_chat": "在聊天中创建skill",
- "skills.desktop_required": "Skills管理需要桌面应用。",
- "skills.enter_plugin_name": "输入插件包名称。",
- "skills.failed_load_active": "加载活动插件失败。",
- "skills.failed_load_opencode": "加载opencode.json失败",
- "skills.failed_parse_opencode": "解析opencode.json失败",
- "skills.failed_to_load": "加载skills失败",
- "skills.failed_update_opencode": "更新opencode.json失败",
+ "skills.create_in_chat": "在会话中创建技能",
+ "skills.desktop_required": "技能管理需要桌面应用。",
+ "skills.enter_plugin_name": "请输入插件包名。",
+ "skills.failed_load_active": "无法加载已启用的插件。",
+ "skills.failed_load_opencode": "无法加载引擎配置",
+ "skills.failed_parse_opencode": "无法解析引擎配置",
+ "skills.failed_to_load": "无法加载技能",
+ "skills.failed_update_opencode": "无法更新引擎配置",
"skills.filter_all": "全部",
"skills.filter_installed": "已安装",
"skills.host_mode_only": "仅本地工作区",
- "skills.host_only_error": "Skills管理需要本地工作区或已连接的omnirush.ai服务器。",
+ "skills.host_only_error": "技能管理需要本地工作区或已连接的 omnirush.ai 服务器。",
"skills.import": "导入",
"skills.import_failed": "导入失败({status})",
- "skills.import_local": "导入本地skill",
- "skills.import_local_skill": "导入本地skill",
+ "skills.import_local": "导入本地技能",
+ "skills.import_local_skill": "导入本地技能",
"skills.imported": "已导入。",
"skills.install": "安装",
- "skills.install_failed": "Skills安装失败。",
- "skills.installed": "已安装的skills",
- "skills.installed_desc": "已安装的skills存储在此工作区中,可以编辑或分享。",
+ "skills.install_failed": "技能安装失败。",
+ "skills.installed": "已安装的技能",
+ "skills.installed_desc": "已安装的技能保存在此工作区中,可在本地编辑。",
"skills.installed_status": "已安装",
- "skills.installing_skill_creator": "正在安装skill creator...",
+ "skills.installing_skill_creator": "正在安装技能创建器…",
"skills.loading": "正在加载…",
"skills.no_description": "暂无描述。",
- "skills.no_opencode_found": "尚未找到opencode.json。添加插件以创建一个。",
- "skills.no_opencode_workspace": "此工作区中还没有opencode.json。",
- "skills.no_skills": "在`.opencode/skills`、`.claude/skills`或`~/.agents/skills`中未检测到skills。",
- "skills.no_skills_found": "还没有找到skills。",
- "skills.pick_project_first": "先选择一个项目文件夹。",
- "skills.pick_project_for_active": "选择项目文件夹以加载活动插件。",
+ "skills.no_opencode_found": "尚未找到引擎配置。添加一个插件即可创建。",
+ "skills.no_opencode_workspace": "此工作区还没有引擎配置。",
+ "skills.no_skills": "在工作区或用户的技能文件夹中未检测到技能。",
+ "skills.no_skills_found": "还没有找到技能。",
+ "skills.pick_project_first": "请先选择项目文件夹。",
+ "skills.pick_project_for_active": "选择项目文件夹以加载已启用的插件。",
"skills.pick_project_for_plugins": "选择项目文件夹以管理项目插件。",
- "skills.pick_workspace_first": "先选择一个工作区文件夹。",
- "skills.plugin_already_listed": "插件已在opencode.json中列出。",
+ "skills.pick_workspace_first": "请先选择工作区文件夹。",
+ "skills.plugin_already_listed": "插件已在引擎配置中列出。",
"skills.plugin_management_host_only": "插件管理需要桌面应用。",
"skills.plugins_host_only": "插件仅在桌面应用中可用。",
"skills.refresh": "刷新",
- "skills.reveal_failed": "打开skills文件夹失败。",
- "skills.reveal_folder": "打开skills文件夹",
- "skills.select_skill_folder": "选择skill文件夹",
+ "skills.reveal_failed": "无法打开技能文件夹。",
+ "skills.reveal_folder": "打开技能文件夹",
+ "skills.select_skill_folder": "选择技能文件夹",
"skills.share_done": "完成",
- "skills.share_option_team_desc": "将此skill添加到当前omnirush.ai Cloud组织。",
- "skills.share_option_team_title": "与团队分享",
- "skills.share_subtitle_team": "保存在组织中供队友使用。",
- "skills.share_team_choose_org": "请先在设置 → Cloud中选择组织。",
- "skills.share_team_org_fallback": "当前Cloud组织",
- "skills.share_team_sign_in": "登录后与团队分享",
- "skills.share_team_sign_in_hint": "浏览器将打开omnirush.ai Cloud。登录后返回此处。",
- "skills.share_title": "分享skill",
- "skills.shown_count": "显示{count}个",
- "skills.skill_creator_already_installed": "Skill creator已经安装过了。",
- "skills.skill_creator_installed": "Skill creator已安装。",
- "skills.skill_load_failed": "加载skill失败。",
- "skills.title": "Skills(技能)",
+ "skills.share_option_team_desc": "将此技能添加到当前的 omnirush.ai Cloud 组织。",
+ "skills.share_option_team_title": "与团队共享",
+ "skills.share_subtitle_team": "保存在组织中,供团队成员使用。",
+ "skills.share_team_choose_org": "与团队共享前,请先在“设置 → 云端”中选择组织。",
+ "skills.share_team_permissions_intro": "将此技能上传到当前的 omnirush.ai Cloud 组织,并决定谁可以查看。",
+ "skills.share_team_permissions_label": "共享权限",
+ "skills.share_team_permission_org": "发布到组织市场",
+ "skills.share_team_permission_private": "仅自己可见",
+ "skills.share_team_org_fallback": "当前云端组织",
+ "skills.share_team_upload_and_save": "上传并保存",
+ "skills.share_team_uploading": "正在上传…",
+ "skills.share_team_sign_in": "登录后与团队共享",
+ "skills.share_team_sign_in_hint": "omnirush.ai Cloud 会在浏览器中打开,登录后请回到这里。",
+ "skills.share_team_uploaded_success": "已上传到 {org},稍后会出现在“合集”中。",
+ "skills.share_title": "共享技能",
+ "skills.shown_count": "显示 {count} 个",
+ "skills.skill_creator_already_installed": "技能创建器已安装。",
+ "skills.skill_creator_installed": "技能创建器安装完成。",
+ "skills.skill_load_failed": "无法加载技能。",
+ "skills.title": "技能",
"skills.uninstall": "卸载",
- "skills.uninstall_failed": "卸载skill失败。",
- "skills.uninstall_title": "卸载skill?",
- "skills.uninstall_warning": "这将永久从工作区删除`{name}` skill。",
- "skills.uninstalled": "Skill已删除。",
+ "skills.uninstall_failed": "无法卸载技能。",
+ "skills.uninstall_title": "卸载技能?",
+ "skills.uninstall_warning": "这将从你的工作区永久删除技能 `{name}`。",
+ "skills.uninstalled": "技能已移除。",
"skills.unknown_error": "未知错误",
- "skills.worker_profile_desc": "技能是此 worker 的核心能力。管理已安装的技能,并直接在聊天中创建新的技能。",
+ "skills.worker_profile_desc": "技能是此工作区的核心能力。在此管理已安装的技能,也可以直接在会话中创建新技能。",
"status.back": "返回上一页",
"status.connected": "已连接",
"status.connecting": "正在连接",
@@ -1094,80 +2009,671 @@ export default {
"status.disconnected_hint": "打开设置以重新连接",
"status.disconnected_label": "已断开",
"status.docs": "文档",
- "status.feedback": "反馈",
- "status.limited_hint": "重新连接以恢复完整omnirush.ai功能",
- "status.limited_mcp_hint": "{count}个MCP已连接 · 重新连接以恢复完整功能",
+ "status.feedback": "发送反馈",
+ "status.limited_hint": "重新连接以恢复 omnirush.ai 的全部功能",
+ "status.limited_mcp_hint": "已连接 {count} 个 MCP · 重新连接以使用全部功能",
"status.limited_mode": "受限模式",
"status.loading_session": "正在加载会话",
- "status.mcp_connected": "{count}个MCP已连接",
+ "status.mcp_connected": "已连接 {count} 个 MCP",
"status.open_docs": "打开文档",
- "status.omnirush_ready": "omnirush.ai就绪",
- "status.providers_connected": "{count}个提供商已连接",
- "status.ready_for_tasks": "可接受新任务",
+ "status.omnirush_ready": "omnirush.ai 已就绪",
+ "status.providers_connected_one": "已连接 {count} 个提供商",
+ "status.providers_connected_other": "已连接 {count} 个提供商",
+ "status.ready_for_tasks": "可以开始新任务",
+ "status.reloading_config": "正在重新加载 omnirush.ai 配置",
"status.running": "运行中",
"status.send_feedback": "发送反馈",
"status.settings": "设置",
- "system.reload_body_agents": "OpenCode在启动时加载Agent。重新加载引擎以使更新的Agent可用。",
- "system.reload_body_commands": "OpenCode在启动时加载命令。重新加载引擎以使更新的命令可用。",
- "system.reload_body_config": "OpenCode在启动时读取opencode.json。重新加载引擎以应用配置变更。",
- "system.reload_body_default": "omnirush.ai检测到需要重新加载OpenCode实例的变更。",
- "system.reload_body_mcp": "OpenCode在启动时加载MCP服务器。重新加载引擎以激活新连接。",
- "system.reload_body_mixed": "omnirush.ai检测到OpenCode配置变更。重新加载引擎以应用。",
- "system.reload_body_plugins": "OpenCode在启动时加载npm插件。重新加载引擎以应用opencode.json变更。",
- "system.reload_body_skills": "OpenCode会缓存技能发现/状态。重新加载引擎以使新安装的技能可用。",
- "system.reload_failed": "重新加载引擎失败。",
+ "system.reload_body_agents": "omnirush.ai 在启动时加载智能体。重新加载引擎即可使用更新后的智能体。",
+ "system.reload_body_commands": "omnirush.ai 在启动时加载命令。重新加载引擎即可使用更新后的命令。",
+ "system.reload_body_config": "引擎在启动时读取配置。重新加载即可应用更改。",
+ "system.reload_body_default": "omnirush.ai 检测到需要重新加载 omnirush.ai 实例的更改。",
+ "system.reload_body_mcp": "omnirush.ai 在启动时加载 MCP 服务器。重新加载引擎即可启用新连接。",
+ "system.reload_body_mixed": "omnirush.ai 检测到 omnirush.ai 配置有更改。重新加载引擎即可应用。",
+ "system.reload_body_plugins": "引擎在启动时加载 npm 插件。重新加载即可应用配置更改。",
+ "system.reload_body_skills": "omnirush.ai 可能缓存了技能的发现结果和状态。重新加载引擎即可使用新安装的技能。",
+ "system.reload_failed": "无法重新加载引擎。",
"system.reload_required": "需要重新加载",
"system.reload_unavailable": "此工作区不支持重新加载。",
- "system.stop_active_runs_before_reset": "请先停止活跃的运行再重置。",
- "time.hours_ago": "{count}小时前",
+ "system.stop_active_runs_before_reset": "重置前请先停止正在运行的任务。",
+ "time.hours_ago": "{count} 小时前",
"time.just_now": "刚刚",
- "time.minutes_ago": "{count}分钟前",
- "time.seconds_ago": "{count}秒前",
+ "time.minutes_ago": "{count} 分钟前",
+ "time.seconds_ago": "{count} 秒前",
+ "workspace.create_workspace": "创建工作区",
+ "workspace.empty_state_body": "创建或连接一个工作区即可开始。",
+ "workspace.connected_no_tasks": "已连接,此远程工作区中没有任务。",
"workspace.loading_tasks": "正在加载任务…",
"workspace.local_badge": "本地",
"workspace.new_task_inline": "+ 新建任务",
"workspace.no_tasks": "暂无任务。",
+ "workspace.tasks_load_failed": "无法加载任务",
+ "workspace.tasks_load_retry": "重试",
"workspace.remote_badge": "远程",
"workspace.rename_description": "更新侧边栏中显示的名称。",
"workspace.rename_label": "工作区名称",
"workspace.rename_placeholder": "设计团队工作区",
"workspace.rename_title": "编辑工作区名称",
- "workspace.sandbox_badge": "沙箱",
+ "workspace.sandbox_badge": "沙盒",
"workspace.selected": "已选择",
"workspace_list.add_workspace": "添加工作区",
+ "workspace_list.choose_project": "选择项目",
+ "workspace_list.open_folder": "打开文件夹…",
+ "workspace_list.project_picker": "项目:{name}",
+ "workspace_list.connected": "已连接",
+ "workspace_list.connected_loaded_tasks_one": "已连接,已加载 {count} 个任务。",
+ "workspace_list.connected_loaded_tasks_other": "已连接,已加载 {count} 个任务。",
"workspace_list.connecting": "正在连接…",
"workspace_list.delete_session": "删除会话",
"workspace_list.edit_connection": "编辑连接",
"workspace_list.edit_name": "编辑名称",
+ "workspace_list.edit_avatar": "编辑工作区图标",
+ "workspace_list.avatar_color": "颜色",
+ "workspace_list.avatar_use_color": "使用此颜色",
+ "workspace_list.avatar_choose_photo": "选择图片",
+ "workspace_list.avatar_reset": "恢复为自动",
"workspace_list.hide_child_sessions": "隐藏子会话",
"workspace_list.recover": "恢复",
+ "workspace_list.remove_confirm": "从侧边栏移除此工作区?磁盘上的会话和文件会保留。",
+ "workspace_list.remove_failed": "无法移除工作区",
"workspace_list.remove_workspace": "移除工作区",
"workspace_list.rename_session": "重命名会话",
"workspace_list.remote_worker_unavailable": "远程工作区不可用",
- "workspace_list.remote_worker_unavailable_hint": "连接修复前,omnirush.ai 无法从这个远程工作区加载任务。",
+ "workspace_list.remote_worker_unavailable_hint": "在连接修复之前,omnirush.ai 无法从此工作区加载任务。",
"workspace_list.reveal_explorer": "在资源管理器中显示",
- "workspace_list.reveal_finder": "在Finder中显示",
+ "workspace_list.reveal_file_manager": "在文件管理器中显示",
+ "workspace_list.reveal_finder": "在访达中显示",
"workspace_list.session_actions": "会话操作",
- "workspace_list.share": "分享…",
+ "workspace_list.title": "工作区",
+ "workspace_list.session_active": "会话进行中",
+ "workspace_list.session_needs_attention": "需要你处理",
+ "workspace_list.session_unread": "有未读结果",
+ "workspace_list.session_streaming": "会话输出中",
+ "workspace_list.search_sessions": "搜索会话",
+ "workspace_list.share": "共享…",
"workspace_list.show_child_sessions": "显示子会话",
- "workspace_list.show_more": "显示更多{count}个",
+ "workspace_list.show_more": "再显示 {count} 个",
"workspace_list.show_more_fallback": "显示更多",
+ "workspace_list.loading_remote_tasks": "正在从远程工作区加载任务…",
"workspace_list.test_connection": "测试连接",
"workspace_list.unavailable": "不可用",
"workspace_list.workspace_fallback": "工作区",
"workspace_list.workspace_options": "工作区选项",
- "settings.runtime_config_ownership_title": "Runtime config ownership",
- "settings.runtime_config_one_writer_rule": "omnirush.ai writes only the managed runtime config file; user omnirush.ai config stays user-owned.",
- "settings.runtime_config_managed_file_path": "Managed file: {path}",
- "settings.runtime_config_last_rebuilt": "Last rebuilt: {time}",
- "settings.runtime_config_missing": "missing",
- "settings.runtime_config_redacted_content": "Redacted managed file",
- "settings.runtime_config_content_unavailable": "Managed runtime config content is unavailable.",
- "settings.runtime_config_legacy_cleanup_title": "Legacy cleanup",
- "settings.runtime_config_cleanup_pending": "Cleanup pending.",
- "settings.runtime_config_cleanup_no_files": "No legacy omnirush.ai config files found.",
- "settings.runtime_config_removed_keys": "Removed: {keys}",
- "settings.runtime_config_no_removed_keys": "No omnirush.ai-managed keys removed.",
- "settings.runtime_config_backup_path": "Backup: {path}",
- "settings.runtime_config_no_backup": "No backup needed.",
+ "session_management.pin_session": "置顶会话",
+ "session_management.unpin_session": "取消置顶",
+ "session_management.copy_session_id": "复制会话 ID",
+ "session_management.session_id_copied": "已复制会话 ID",
+ "session_management.session_id_copy_failed": "无法复制会话 ID",
+ "session_management.open_in_split_view": "作为侧边会话打开",
+ "session_management.new_split": "打开侧边会话",
+ "session_management.close_split_view": "关闭侧边会话",
+ "session_management.split_view": "侧边会话",
+ "session_management.main_chat": "主会话",
+ "session_management.open_chats": "已打开的会话",
+ "session_management.selected_chat": "已选择",
+ "session_management.second_chat_title": "就在这里,开始一个新会话",
+ "session_management.second_chat_description": "在保持主会话打开的同时问点别的。主会话中的消息不会带到这里。",
+ "session_management.second_chat_saved": "回到单个会话时,两个会话都会保留。",
+ "session_management.message_main": "发送到主会话",
+ "session_management.message_second": "发送到第二个会话",
+ "session_management.expand_side_chat": "作为主会话打开",
+ "session_management.side_chat_hint": "在当前会话旁边开始一个独立的会话。",
+ "session_management.pinned": "已置顶",
+ "session_management.archive_session": "归档会话",
+ "session_management.unarchive_session": "取消归档",
+ "session_management.archive_failed": "无法归档会话",
+ "session_management.unarchive_failed": "无法取消归档会话",
+ "session_management.session_archived": "会话已归档",
+ "session_management.session_unarchived": "会话已取消归档",
+ "session_management.archived_count_one": "已归档({count})",
+ "session_management.archived_count_other": "已归档({count})",
+ "session_management.move_to_group": "移到分组",
+ "session_management.no_group": "无分组",
+ "session_management.no_groups_yet": "还没有分组",
+ "session_management.new_group": "新建分组…",
+ "session_management.new_group_prompt": "为分组命名(例如:已完成、进行中):",
+ "session_management.remove_group": "移除分组",
+ "session_management.group_actions": "分组操作",
+ "session_management.new_session_in_group": "在分组中新建会话",
+ "session_management.rename_group": "重命名分组",
+ "session_management.delete_group": "删除分组",
+ "session_management.group_name": "分组名称",
+ "session_management.move_sessions_to": "将会话移到",
+ "session_management.empty_group": "没有会话",
+ "session_management.ungrouped": "未分组",
+ "session_management.archived_label": "已归档",
+ "permissions.title": "权限",
+ "permissions.mode.careful": "谨慎",
+ "permissions.mode.careful_summary": "每次修改文件和运行命令前都会询问。读取和搜索可直接进行。",
+ "permissions.mode.normal": "常规",
+ "permissions.mode.normal_summary": "只在有风险的操作前询问:递归删除、sudo、git push 或硬重置、修改项目以外的内容、读取密钥、把下载内容直接交给 Shell 执行、发布软件包。电脑操控不会询问:智能体在自己的独立显示器上工作。",
+ "permissions.mode.auto": "自动",
+ "permissions.mode.auto_summary": "从不询问。智能体决定运行的一切都会直接运行。",
+ "permissions.status_mode": "{mode}模式。",
+ "permissions.status_reloaded": "引擎已重新加载。",
+ "permissions.status_reload_needed": "重新加载引擎即可生效。",
+ "permissions.status_reload_failed": "引擎重新加载失败:{reason} 请在“设置”中使用“重新加载”使其生效。",
+ "permissions.status_switching": "正在切换到{mode}…",
+ "permissions.menu_label": "智能体执行操作前多久询问你一次?",
+ "permissions.menu_footer": "适用于所有会话。组织策略仍然有效。",
+ "permissions.trigger_label": "权限:{mode}",
+ "permissions.loading": "正在加载权限模式…",
+ "permissions.policy_lock": "已被你的组织锁定:其策略不允许更改应用设置。",
+ "permissions.card_desc": "智能体执行操作前多久停下来询问你一次。",
+ "permissions.shortcut_hint": "快捷键:Y 仅允许一次,A 本会话内允许,N 或 Esc 拒绝。",
+ "settings.desktop_notifications.all_desc": "已完成的任务、审批请求和问题",
+ "settings.desktop_notifications.important_desc": "审批请求、问题和失败",
+ "settings.desktop_notifications.off_desc": "不显示桌面通知",
+ "whats_new.title": "新功能",
+ "whats_new.subtitle": "OmniRush 桌面版 · 当前版本 {version}",
+ "whats_new.current": "当前",
+ "whats_new.group_new": "新增",
+ "whats_new.group_improved": "改进",
+ "whats_new.group_fixed": "修复",
+ "whats_new.all_releases": "全部版本",
+ "whats_new.release_count": "共 {count} 个版本 · 最新在前",
+ "whats_new.updated_title": "已更新到 {version}",
+ "whats_new.later": "稍后",
+ "whats_new.close": "关闭",
+ "whats_new.palette_detail": "{version} 及更早版本的更新说明",
+ "whats_new.unseen": "新",
+ "settings.tab_ai": "AI 提供商",
+ "settings.tab_preferences": "偏好设置",
+ "settings.tab_permissions": "权限",
+ "settings.tab_editor": "编辑器",
+ "settings.tab_voice": "语音",
+ "settings.tab_description_ai": "连接提供 AI 模型的服务",
+ "settings.tab_description_preferences": "默认模型、推理和上下文压缩",
+ "settings.tab_description_permissions": "授权文件夹和文件访问",
+ "settings.tab_description_editor": "代码编辑器:文本、保存、语言功能和快捷键",
+ "settings.tab_description_voice": "听写、麦克风和快捷键",
+ "settings.tab_description_overview": "全部设置一览",
+ "settings.card_preferences_desc": "默认模型、推理和上下文压缩。",
+ "settings.card_permissions_desc": "授权文件夹和文件访问。",
+ "settings.card_advanced_desc": "运行时、引擎、恢复和开发者选项。",
+ "settings.card_ai_desc": "连接提供 AI 模型的服务。",
+ "settings.card_appearance_desc": "主题、字号和显示。",
+ "settings.card_editor_desc": "代码编辑器的文本、保存和快捷键。",
+ "settings.card_voice_desc": "听写、麦克风和快捷键。",
+ "settings.card_environment_desc": "环境变量和路径。",
+ "settings.card_updates_desc": "应用版本和更新渠道。",
+ "settings.best_practices_title": "最佳实践",
+ "settings.best_practices_help": "内置指南帮助智能体规划、构建、测试和修复你的工作。默认开启,保存在此服务器上。",
+ "settings.agent_assist.forced": "由应用的环境变量设定。",
+ "settings.agent_assist.selfCheck_title": "完成前检查工作",
+ "settings.agent_assist.selfCheck_help": "改完代码后,智能体会运行项目的测试、Lint 或类型检查,并修复失败项(最多 3 轮)。说一句“跳过测试”即可跳过一次。",
+ "settings.agent_assist.projectNotes_title": "项目说明(AGENTS.md)",
+ "settings.agent_assist.projectNotes_help": "/init 会把构建、测试和运行命令及项目约定写入 AGENTS.md;会话中发现的新内容,应用会提议补充进去。你自己写的内容不会在未经询问的情况下被删除。",
+ "settings.agent_assist.diagnostics_title": "代码诊断",
+ "settings.agent_assist.diagnostics_help": "TypeScript/JavaScript、Python、Go 和 Rust 的语言服务器会在每次编辑后立即把错误告诉智能体。",
+ "settings.agent_assist.compaction_title": "详细摘要",
+ "settings.agent_assist.compaction_help": "长会话被压缩为摘要时,保留你的偏好、决定、未完成的待办、有效的命令和改动过的文件。",
+ "settings.power_title": "电源",
+ "settings.keep_awake_title": "智能体工作时保持电脑唤醒",
+ "settings.keep_awake_help": "在一轮任务运行期间,以及应用退出前收尾时,电脑不会进入睡眠。屏幕仍可关闭和锁定。",
+ "settings.keep_awake_forced_off": "本次启动已关闭:设置了 OMNIRUSH_KEEP_AWAKE=0。",
+ "settings.keep_awake_unavailable": "当前会话不可用(远程登录或 CI)。",
+ "settings.account_approve_in_browser": "请在浏览器中批准设备关联…",
+ "settings.account_connected_ready": "账号已连接,omnirush.ai 模型已就绪。",
+ "settings.account_connect_failed": "无法连接账号。",
+ "settings.account_sign_out_failed": "无法退出账号。",
+ "settings.account_sign_in_title": "登录你的账号",
+ "settings.account_models_ready": "omnirush.ai 模型已在此电脑上就绪。",
+ "settings.account_keyring_unavailable": "系统钥匙串暂时不可用。请重新登录以继续。",
+ "settings.account_session_expired": "登录已过期。请重新登录以继续。",
+ "settings.account_sign_in_hint": "请在浏览器中登录,然后回到这里。",
+ "settings.account_not_configured": "此版本未配置 omnirush.ai 账号服务。",
+ "settings.account_file_storage": "已登录。系统钥匙串不可用,登录信息保存在此电脑上的一个私有文件中。",
+ "settings.account_usage_percent": "已用 {percent}%",
+ "settings.account_waiting": "等待中…",
+ "settings.account_sign_in": "登录",
+ "settings.section_workspace": "工作区",
+ "settings.section_global": "全局",
+ "home.greeting_night_title": "想做点什么?",
+ "home.greeting_night_subtitle": "说说你想要的结果",
+ "home.greeting_morning_title": "早上好,有什么可以帮你?",
+ "home.greeting_afternoon_title": "下午好,有什么可以帮你?",
+ "home.greeting_evening_title": "晚上好,有什么可以帮你?",
+ "home.greeting_subtitle": "今天要完成什么?",
+ "home.greeting_afternoon_subtitle": "先解决哪件事?",
+ "home.connect_provider_title": "连接模型提供商",
+ "home.connect_provider_body": "添加 OpenAI、Anthropic、Google 或 OpenRouter 的 API 密钥,即可开始运行任务。",
+ "home.recent_chats": "最近的会话",
+ "home.continue": "继续",
+ "home.continue_chat": "在 {workspace} 中继续“{title}”",
+ "home.search_chats": "搜索会话({shortcut})",
+ "home.search": "搜索",
+ "quality.spin_ready": "抽奖,{count} 次可用",
+ "quality.how_to_earn_spins": "如何获得抽奖次数",
+ "quality.ready_count": "{count} 次可用",
+ "quality.next_spin": "下次抽奖 {progress}",
+ "sidebar.your_account": "你的账号",
+ "sidebar.sign_in_lower": "登录 omnirush.ai",
+ "sidebar.connected_to": "已连接到 {host}",
+ "sidebar.models_ready": "omnirush.ai 模型已就绪",
+ "sidebar.sign_in_again": "请重新登录以继续",
+ "sidebar.use_models_with_account": "登录账号即可使用 omnirush.ai 模型",
+ "sidebar.sign_in": "登录 omnirush.ai",
+ "sidebar.account_label": "{name} 的账号",
+ "sidebar.account_tools": "账号工具",
+ "sidebar.org_logo": "组织标志",
+ "sidebar.history_controls": "会话历史导航",
+ "sidebar.history_back": "在会话历史中后退",
+ "sidebar.history_forward": "在会话历史中前进",
+ "sidebar.tools": "侧边栏工具",
+ "sidebar.audit_trail": "审计记录",
+ "sidebar.audit_trail_hint": ":根据此任务和工作区重建的本地活动记录。此版本未启用完整性校验。",
+ "sidebar.audit_trail_failed": "审计记录中有失败项",
+ "sidebar.audit_trail_waiting": "审计记录正在等待批准",
+ "sidebar.workflows": "工作流",
+ "sidebar.workflows_hint": "工作流:搭建按顺序执行的工作流,并为每一步选择已连接的模型",
+ "sidebar.dashboard": "仪表盘",
+ "sidebar.parallel_tasks": "并行任务",
+ "sidebar.parallel_tasks_running": "并行任务({count} 个运行中)",
+ "sidebar.running_count": "{count} 个运行中",
+ "sidebar.automations": "自动化",
+ "sidebar.automation_attention": "有自动化任务需要处理",
+ "session.pane_unavailable": "{name} 不可用",
+ "session.retry_connection": "重新连接",
+ "session.close_pane": "关闭窗格",
+ "session.remote_workspace_unavailable": "远程工作区不可用",
+ "session.runtime_unavailable": "omnirush.ai 不可用",
+ "session.back_to": "返回“{title}”",
+ "session.parent_chat": "上级会话",
+ "session.back_to_parent": "返回上级会话",
+ "session.find_in_conversation": "在会话中查找",
+ "session.close_side_panel": "关闭侧边面板",
+ "session.open_side_panel": "打开侧边面板",
+ "session.more_actions": "更多操作",
+ "session.switch_to_chat_layout": "切换到会话布局",
+ "session.switch_to_ide_layout": "切换到 IDE 布局",
+ "session.hide_chat": "隐藏会话",
+ "session.undo_last_turn": "撤销上一轮",
+ "session.redo": "重做",
+ "session.status": "状态",
+ "session.changes": "更改",
+ "session.review_changes": "审查更改",
+ "session.files": "文件",
+ "session.show_chat": "显示会话",
+ "session.resize_handle_hint": "拖动调整大小,双击恢复默认",
+ "session.open_ide_layout": "打开 IDE 布局",
+ "session.browser": "浏览器",
+ "session.browser_unavailable": "有网页可打开时,浏览器才可用",
+ "ide.layout": "布局",
+ "ide.layout_chat": "会话",
+ "ide.switch_layout": "切换布局",
+ "ide.switch_workspace": "切换工作区",
+ "ide.needs_approval": "需要批准",
+ "ide.running": "运行中",
+ "ide.switch_chat": "切换会话",
+ "ide.another_chat_running": "另一个会话正在运行",
+ "ide.new_chat": "新建会话",
+ "ide.rail_more_label": "更多:并行任务、工作流、资源库",
+ "ide.rail_more_title": "并行任务、工作流、资源库等",
+ "ide.rail_chat_layout": "审计记录和工作流(会话布局)",
+ "message.copy": "复制消息",
+ "message.copy_short": "复制",
+ "message.copied": "已复制!",
+ "message.edit": "编辑消息",
+ "message.branch": "在新会话中分支",
+ "message.reveal_in_folder": "在文件夹中显示",
+ "message.download": "下载",
+ "message.reconnecting": "连接已断开,正在重新连接…",
+ "message.last_update": "上次更新于 {time}",
+ "message.copy_details": "复制详情",
+ "message.free_model_busy": "免费入门模型当前繁忙",
+ "message.free_model_limit": "已达到免费模型的用量上限",
+ "message.will_keep_retrying": "omnirush.ai 会继续重试。",
+ "message.will_keep_retrying_connect": "omnirush.ai 会继续重试。如需立即继续,请连接你自己的模型提供商。",
+ "message.connect_provider": "连接模型提供商",
+ "model_select.favorites": "收藏",
+ "model_select.recent": "最近使用",
+ "model_select.change_model": "切换模型",
+ "model_select.select_model": "选择模型",
+ "model_select.trigger_tooltip": "切换模型 · 切换推理强度({forward} 下一个,{back} 上一个)",
+ "model_select.effort": "推理强度",
+ "model_select.search_placeholder": "搜索模型…",
+ "model_select.no_models": "未找到模型。",
+ "model_select.remove_favorite": "从收藏中移除 {name}",
+ "model_select.add_favorite": "将 {name} 加入收藏",
+ "model_select.connect_more": "连接更多提供商",
+ "model_select.all_models": "全部模型",
+ "subagent.same_as_main": "与主智能体相同",
+ "subagent.main_model": "主模型",
+ "subagent.saved": "子智能体:{summary}。对新任务生效。",
+ "subagent.save_failed": "无法保存子智能体设置。",
+ "subagent.chip_label": "子智能体:{summary}",
+ "subagent.unavailable_suffix": "(不可用,子智能体将使用主模型)",
+ "subagent.title": "子智能体",
+ "subagent.model_label": "子智能体:模型",
+ "subagent.not_available": "(不可用)",
+ "subagent.effort_label": "子智能体推理强度",
+ "subagent.model_help": "子智能体是主智能体通过 task 工具启动的助手(任意嵌套层级)。主智能体保留自己的模型和推理强度。如果所选模型对你的账号不可用,或被 omnirush.ai 拒绝,子智能体会改用主智能体的模型,会话中也会注明。",
+ "subagent.effort_help": "子智能体的推理强度。“与主智能体相同”会沿用主智能体的强度,并映射到子智能体模型支持的最接近档位。",
+ "subagent.policy_lock": "已被你的组织锁定:其策略不允许更改应用设置。",
+ "voice.sign_in_required": "登录 omnirush.ai 后即可使用语音输入。",
+ "voice.not_available": "你的账号暂不支持语音输入。",
+ "voice.partial_lost": "部分听写内容丢失:{message}",
+ "find.no_matches": "无匹配",
+ "find.previous": "上一个匹配",
+ "find.next": "下一个匹配",
+ "find.close": "关闭查找",
+ "scroll.jump_to_start": "跳到开头",
+ "scroll.jump_to_latest": "跳到最新",
+ "session.choose_another_folder": "选择其他文件夹",
+ "session.use_model": "使用 {model}",
+ "session.dismiss_error": "关闭错误提示",
+ "sandbox.chip_off_for_project": "Linux 沙盒:此项目已关闭",
+ "sandbox.chip_off": "沙盒已关闭",
+ "sandbox.chip_use": "使用沙盒",
+ "sandbox.chip_offer_hint": "你的 omnirush.ai 服务器建议在 Linux 沙盒中运行此项目的命令。点击即可开启。",
+ "sandbox.not_now": "暂不",
+ "sandbox.chip_label": "Linux 沙盒:{state}",
+ "sandbox.chip": "沙盒",
+ "subagent.sign_in_hint": "登录 omnirush.ai 后即可为子智能体选择模型。",
+ "subagent.model_unavailable": "此模型暂时对你的账号不可用:子智能体将使用主智能体的模型。",
+ "settings.ai.title": "选择模型的运行方式",
+ "settings.ai.desc_locked": "模型通过 omnirush.ai 推理代理运行。模型名称始终与提供商报告的完全一致。",
+ "settings.ai.desc": "使用 omnirush.ai 内部代理,或连接主流 AI 提供商。模型名称始终与提供商报告的完全一致。",
+ "settings.ai.internal_title": "内部模型",
+ "settings.ai.internal_desc": "使用 omnirush.ai 推理代理和你的组织管理的模型。",
+ "settings.ai.providers_title": "提供商连接",
+ "settings.ai.providers_desc": "连接 OpenAI、Anthropic、Google 或 OpenRouter,不改变模型身份。",
+ "settings.updates.current_version": "当前版本",
+ "settings.updates.release_channel_desc": "稳定版提供经过完整测试的版本;Alpha 版包含最新改动,但可能不够完善。",
+ "settings.ai.optional": "可选",
+ "settings.appearance.mode_desc": "“跟随系统”会使用电脑的浅色或深色设置。",
+ "settings.appearance.presets_desc": "每个预设都有浅色和深色版本(Midnight 仅有深色);由上方的模式决定显示哪一个。",
+ "settings.appearance.light_dark": "浅色 / 深色",
+ "settings.appearance.dark_only": "仅深色",
+ "settings.appearance.light_only": "仅浅色",
+ "settings.appearance.new_custom_theme": "新建自定义主题",
+ "settings.appearance.midnight_note": "Midnight 仅有深色版本。在浅色模式下选择它会将模式切换为深色。",
+ "settings.appearance.accent_title": "强调色",
+ "settings.appearance.accent_desc": "用于所有主题中的按钮、选中项、焦点环和链接,并会对照当前主题检查对比度。",
+ "settings.appearance.theme_accent": "主题强调色",
+ "settings.appearance.custom_colour": "自定义颜色",
+ "settings.appearance.pick_accent": "选择自定义强调色",
+ "settings.appearance.links_readable": "链接已使用易读的色调。",
+ "settings.appearance.fonts_title": "字体和文本",
+ "settings.appearance.fonts_desc": "分别选择界面字体和代码字体。指定的代码字体需已安装在此电脑上才会生效。",
+ "settings.appearance.code_font": "代码字体",
+ "settings.appearance.text_size": "文字大小",
+ "settings.appearance.layout_desc": "间距,以及面板、按钮和卡片的圆角程度。",
+ "settings.appearance.density": "密度",
+ "settings.appearance.corner_radius": "圆角",
+ "settings.appearance.wallpaper_desc": "在工作区背后放一张你自己的图片。图片只保存在此电脑上。",
+ "settings.appearance.change_image": "更换图片…",
+ "settings.appearance.choose_image": "选择图片…",
+ "settings.appearance.image_types": "支持 PNG、JPEG、WebP、AVIF 或 GIF,最大 8 MB。",
+ "settings.appearance.dim_picture": "图片暗度",
+ "settings.appearance.panel_opacity": "面板不透明度",
+ "settings.appearance.sidebar_blur": "侧边栏模糊",
+ "settings.appearance.reduced_transparency": "系统已开启“降低透明度”,面板将保持不透明,也不会模糊。",
+ "settings.appearance.menu_bar": "显示菜单栏",
+ "settings.appearance.menu_bar_desc": "显示系统原生的桌面菜单栏。",
+ "settings.updates.release_channel": "发布渠道",
+ "settings.appearance.interface_font": "界面字体",
+ "settings.ai.connected_count": "已连接 {count} 个",
+ "settings.appearance.theme_default": "主题默认",
+ "settings.appearance.density_compact": "紧凑",
+ "settings.appearance.density_comfortable": "舒适",
+ "settings.appearance.wallpaper": "壁纸",
+ "settings.appearance.mode": "模式",
+ "settings.appearance.max_custom_themes": "最多 {count} 个自定义主题",
+ "settings.appearance.edit_theme": "编辑 {name}",
+ "settings.appearance.delete_theme": "删除 {name}",
+ "settings.theme_share.keep": "保留主题",
+ "settings.theme_share.edit_first": "先编辑",
+ "settings.theme_share.fix_in_editor": "在编辑器中修复",
+ "settings.theme_share.title": "分享和导入",
+ "settings.theme_share.desc": "主题代码包含完整的自定义主题:浅色和深色两个版本、圆角和字号,不包含你的其他任何设置。",
+ "settings.theme_share.code": "主题代码",
+ "settings.theme_share.no_code": "创建自定义主题后即可获得代码。",
+ "settings.theme_share.copy": "复制主题代码",
+ "settings.theme_share.save_file": "保存文件…",
+ "settings.theme_share.paste": "粘贴主题代码",
+ "settings.theme_share.preview": "预览",
+ "settings.theme_share.open_file": "打开文件…",
+ "settings.theme_share.rules_title": "主题代码的规则",
+ "settings.theme_share.rule_prefix": "以 omnirush-theme:1: 开头(版本 1)",
+ "settings.theme_share.rule_colours": "颜色仅支持 #rrggbb 十六进制",
+ "settings.theme_share.rule_keys": "未知字段会被拒绝,不做任何猜测",
+ "settings.theme_share.rule_size": "解码后最大 8 KB",
+ "settings.theme_share.rule_ranges": "圆角 0–16 px,字号 12–16 px",
+ "settings.theme_share.rule_modes": "包含一种或两种模式,列在 modes 中",
+ "settings.theme_share.preview_confirm": "预览后确认",
+ "settings.theme_share.preview_hint": "粘贴代码或打开文件。决定保留之前,主题会先在整个窗口中预览。",
+ "settings.theme_share.discord_share": "在 Discord 的 #showcase 频道分享你的主题",
+ "settings.theme_share.not_member": "还不是成员?",
+ "settings.theme_share.join_discord": "加入我们的 Discord",
+ "settings.theme_share.invalid": "这不是有效的主题:",
+ "settings.theme_share.invalid_detail": "{error}。未做任何更改。",
+ "settings.editor.formatter_no_project": "打开项目后即可查看它的格式化工具。",
+ "settings.editor.formatter_loading": "正在查找项目的格式化工具…",
+ "settings.editor.formatter_none": "此项目:未找到。文件将按原样保存。",
+ "settings.editor.text": "文本",
+ "settings.editor.text_desc": "IDE 布局中的代码编辑器,适用于此电脑上的所有项目。",
+ "settings.editor.font_size": "字号",
+ "settings.editor.font_size_desc": "编辑器中的文字大小。",
+ "settings.editor.tab_size": "制表符宽度",
+ "settings.editor.tab_size_desc": "用于没有自身缩进设置的文件;其他文件保持原有缩进。",
+ "settings.editor.word_wrap": "自动换行",
+ "settings.editor.word_wrap_desc": "长行在编辑器边缘自动换行。",
+ "settings.editor.minimap": "缩略图",
+ "settings.editor.minimap_desc": "在右侧边缘显示文件的缩略概览。",
+ "settings.editor.sticky_scroll": "粘性滚动",
+ "settings.editor.sticky_scroll_desc": "滚动时,当前代码块的开头几行会固定在顶部。",
+ "settings.editor.saving": "保存",
+ "settings.editor.saving_desc": "自动保存视同你自己的编辑,与 Cmd/Ctrl+S 相同。智能体修改过的文件不会被覆盖。",
+ "settings.editor.auto_save": "自动保存",
+ "settings.editor.auto_save_desc": "“延迟后”:停止输入一秒后保存(智能体工作时会等待)。“失去焦点时”:点击编辑器以外的地方时保存。",
+ "settings.editor.after_delay": "延迟后",
+ "settings.editor.on_focus_change": "失去焦点时",
+ "settings.editor.format_on_save": "保存时格式化",
+ "settings.editor.format_on_save_desc": "使用 Cmd/Ctrl+S 保存或离开编辑器时,运行项目自己的格式化工具(Prettier、gofmt、Ruff 等),从不使用内置工具。由于这是项目的代码,在每个项目中首次运行前会显示具体命令并征求你的同意(命令变化时会再次询问)。开启沙盒时,它在沙盒中运行。",
+ "settings.editor.language_features": "语言功能",
+ "settings.editor.language_features_title": "问题、悬停提示、转到定义、重命名和大纲",
+ "settings.editor.language_features_desc": "来自项目的语言服务器,文件打开片刻后启动。与“问题”面板中的开关相同。",
+ "settings.editor.keys": "快捷键",
+ "settings.editor.keyboard_shortcuts": "键盘快捷键",
+ "settings.editor.keyboard_shortcuts_desc": "VS Code 默认快捷键:Cmd/Ctrl+P、Cmd/Ctrl+Shift+F、F12、F2、Cmd/Ctrl+\\ 等。",
+ "settings.editor.show_all": "查看全部",
+ "settings.editor.shortcuts_title": "编辑器快捷键",
+ "settings.editor.shortcuts_desc": "VS Code 默认快捷键。macOS 上使用 Cmd,其他系统使用 Ctrl。",
+ "settings.editor.search_shortcuts": "搜索快捷键",
+ "settings.editor.shortcuts": "快捷键列表",
+ "settings.editor.no_shortcut_matches": "没有匹配的快捷键。",
+ "settings.editor.formatter_found": "此项目:{list}。",
+ "voice.title": "语音输入",
+ "voice.desc": "用说话代替打字输入提示词。识别出的文字会出现在输入框中,发送前可以编辑。",
+ "voice.dictation": "听写",
+ "voice.dictation_desc": "在输入框中显示麦克风按钮,并监听快捷键。",
+ "voice.hotkey": "快捷键",
+ "voice.hotkey_desc": "只要 OmniRush.ai 窗口处于焦点即可使用。",
+ "voice.press_shortcut": "请按下快捷键…",
+ "voice.mode_both": "按住或轻点",
+ "voice.mode_desc": "说话时按住快捷键,或轻点一次开始、再点一次停止。按 Esc 取消并恢复原来的提示词。",
+ "voice.input_device": "输入设备",
+ "voice.input_device_desc": "用于听写的麦克风。",
+ "voice.input_device_missing": "所选麦克风未连接,将使用系统默认设备。",
+ "voice.system_default": "系统默认",
+ "voice.language_desc": "你说话使用的语言。大多数情况下自动检测即可。",
+ "voice.dictation_language": "听写语言",
+ "voice.auto_send": "听写后自动发送",
+ "voice.auto_send_desc": "停止说话后立即发送提示词(至少三个词)。关闭时可先检查和编辑。",
+ "voice.mic_permission": "麦克风权限",
+ "voice.mic_permission_desc": "如果听写提示麦克风已关闭,请在系统的隐私设置中允许 OmniRush.ai 使用麦克风。",
+ "voice.open_privacy": "打开隐私设置",
+ "voice.mic_level": "麦克风音量",
+ "voice.test": "测试",
+ "voice.mode_hold": "按住说话",
+ "voice.mode_tap": "轻点开始和停止",
+ "voice.detect_automatically": "自动检测",
+ "voice.privacy_retention": "omnirush.ai 不保存你的音频;服务商最多保留 {days} 天副本。",
+ "voice.privacy_no_store": "omnirush.ai 不保存你的音频。",
+ "voice.privacy_note": "语音由我们的云端语音服务商转写。{provider} 此电脑上不保存任何内容,只有你发送的文字会成为提示词的一部分。",
+ "sandbox.progress_mb": "{done}/{total} MB · {percent}%",
+ "sandbox.progress_parts": "{done}/{total} 部分 · {percent}%",
+ "sandbox.download_starting": "正在开始下载…",
+ "sandbox.turning_on": "正在开启…",
+ "sandbox.runs_here_until_ready": "沙盒就绪前,命令在此电脑上运行。",
+ "sandbox.turning_off": "正在关闭…",
+ "sandbox.resetting": "正在重置沙盒…",
+ "sandbox.resetting_detail": "正在移除它的容器和已安装的内容。",
+ "sandbox.trying_again": "正在重试…",
+ "sandbox.setting_up": "正在设置沙盒…",
+ "sandbox.off_for_app": "已对此应用关闭",
+ "sandbox.off_for_app_detail": "由启动应用时的 OMNIRUSH_BOX 设置。",
+ "sandbox.runs_on_computer": "在此电脑上运行",
+ "sandbox.off_for_project": "此项目已关闭",
+ "sandbox.runs_here": "命令在此电脑上运行。",
+ "sandbox.downloading": "正在下载沙盒(仅首次)",
+ "sandbox.runs_here_until_it_ready": "就绪前,命令在此电脑上运行。",
+ "sandbox.starting": "正在启动沙盒…",
+ "sandbox.starting_using": "使用 {backend},需要几秒钟。",
+ "sandbox.starting_detail": "需要几秒钟。",
+ "sandbox.runs_in_container_using": "命令在 Linux 容器中运行({backend})。",
+ "sandbox.runs_in_container": "命令在 Linux 容器中运行。",
+ "sandbox.could_not_start": "沙盒无法启动",
+ "sandbox.runs_here_for_now": "命令暂时在此电脑上运行。",
+ "sandbox.try_again": "重试",
+ "sandbox.backend_off": "后端已设为“关闭”",
+ "sandbox.backend_off_detail": "命令在此电脑上运行。选择“自动”即可使用沙盒。",
+ "sandbox.use_automatic": "使用自动",
+ "sandbox.not_running": "沙盒未运行",
+ "sandbox.check_again": "再次检查",
+ "sandbox.backend_summary_off": "已设为“关闭”:命令在此电脑上运行。",
+ "sandbox.backend_summary_none": "此电脑上暂无可用的后端。",
+ "sandbox.backend_summary_env": "使用 {backend}(由 OMNIRUSH_BOX_BACKEND 设置)。",
+ "sandbox.backend_summary_auto": "使用 {backend}(自动选择)。",
+ "sandbox.backend_summary_using": "使用 {backend}。",
+ "sandbox.automatic_recommended": "自动(推荐)",
+ "sandbox.step_allow": "允许在此电脑上使用沙盒",
+ "sandbox.step_allow_detail": "Ubuntu 会阻止它运行,需要管理员允许一次。请在终端(OmniRush CLI)中运行以下命令,然后再次检查。",
+ "sandbox.step_docker_group": "允许此用户运行 Docker",
+ "sandbox.step_docker_group_detail": "在终端中运行以下命令,注销并重新登录,然后再次检查。",
+ "sandbox.step_wsl": "开启 WSL 2",
+ "sandbox.step_wsl_detail": "以管理员身份在 PowerShell 中运行以下命令,重启电脑,然后再次检查。",
+ "sandbox.step_wsl_update": "更新 WSL",
+ "sandbox.step_wsl_update_detail": "在 PowerShell 中运行以下命令,然后再次检查。",
+ "sandbox.step_podman": "启动 Podman 虚拟机",
+ "sandbox.step_run_terminal": "在终端中运行以下命令,然后再次检查。",
+ "sandbox.step_bwrap": "安装 bubblewrap",
+ "sandbox.step_run_terminal_pkg": "在终端中运行以下命令(或使用系统的软件包),然后再次检查。",
+ "sandbox.step_container_app": "启动你的容器应用",
+ "sandbox.step_container_app_detail": "打开 Docker Desktop、OrbStack 或 colima,等待其运行后再次检查。",
+ "sandbox.step_container_other_account": "此处的 Docker 属于这台 Mac 上的另一个账户。请在当前账户中打开 Docker Desktop、OrbStack 或 colima,然后再次检查。",
+ "sandbox.step_start_docker": "启动 Docker",
+ "sandbox.step_wsl_detail_alt": "以管理员身份在 PowerShell 中运行以下命令,重启电脑,然后再次检查。也可以使用 Docker Desktop 或 Podman。",
+ "sandbox.step_install_container": "安装容器应用",
+ "sandbox.step_install_container_detail": "colima 免费,可通过 Homebrew 安装;也可以使用 OrbStack 或 Docker Desktop。安装后再次检查。",
+ "sandbox.step_install_podman": "安装 Podman 或 Docker",
+ "sandbox.step_none": "此处没有可用的沙盒后端",
+ "sandbox.step_none_detail": "此电脑上未找到容器运行时。",
+ "sandbox.copy_command": "复制命令",
+ "sandbox.hide_details": "隐藏详情",
+ "sandbox.show_details": "显示详情",
+ "sandbox.download_label": "沙盒下载",
+ "sandbox.backend": "后端",
+ "sandbox.backend_label": "沙盒后端",
+ "sandbox.other_backends": "此电脑上的其他后端",
+ "sandbox.available": "可用",
+ "sandbox.not_available": "不可用",
+ "sandbox.reset_title": "重置沙盒",
+ "sandbox.reset_desc": "移除此项目的容器及其中安装的所有内容。你的项目文件不受影响。",
+ "sandbox.reset_nothing": "无需重置:此项目还没有沙盒。",
+ "sandbox.reset_button": "重置…",
+ "sandbox.reset_confirm_title": "重置沙盒?",
+ "sandbox.reset_confirm_message": "这将移除项目的 Linux 容器及其中安装的所有内容。你的项目文件保持不变。下一条命令会启动一个全新的沙盒。",
+ "sandbox.section_title": "Linux 沙盒",
+ "sandbox.run_in_sandbox": "在 Linux 沙盒中运行命令",
+ "sandbox.help": "命令在此项目专属的 Linux 容器中运行。文件仍保存在此文件夹中,安装的依赖按项目保留。",
+ "sandbox.server_recommends": "你的 omnirush.ai 服务器建议此项目使用沙盒。",
+ "sandbox.turn_on": "开启",
+ "browser_logins.desc": "通过读取一个浏览器配置文件,让所选网站保持登录。omnirush.ai 不会修改源浏览器,只有在你选择网站并启用后才会开始同步。",
+ "browser_logins.org_unavailable": "组织管理的桌面版暂不支持浏览器登录同步,不会读取任何浏览器登录数据。",
+ "browser_logins.nothing_read": "在你选择配置文件和具体网站并确认持续同步之前,不会读取任何内容。",
+ "browser_logins.choose_sites": "选择网站",
+ "browser_logins.none_signed_in": "内置浏览器尚未登录任何网站。",
+ "context_panel.add_folder": "添加文件夹",
+ "browser_logins.title": "浏览器登录同步",
+ "settings.account_server_fallback": "账号服务器",
+ "settings.signout_revoked": "已在此设备上退出登录,并已在 {host} 上撤销此设备的会话。",
+ "settings.signout_already_revoked": "已在此设备上退出登录。{host} 此前已撤销此设备的会话。",
+ "settings.signout_endpoint_missing": "已在此设备上退出登录。{host} 没有远程退出接口,因此未在该处撤销设备会话。",
+ "settings.signout_unreachable": "已在此设备上退出登录。无法连接 {host},因此未在该处撤销设备会话。",
+ "settings.signout_not_revoked": "已在此设备上退出登录。无法撤销 {host} 上的设备会话。",
+ "settings.account_connected_to": "已连接到 {host}",
+ "settings.account_server": "账号服务器:{host}",
+ "sidebar.toggle": "显示/隐藏侧边栏",
+ "editor.filter_files": "筛选文件",
+ "editor.refresh_files": "刷新文件",
+ "editor.project_files": "项目文件",
+ "editor.last_turn": "上一轮",
+ "editor.all_turns": "所有轮次",
+ "editor.refresh_changes": "刷新更改",
+ "editor.done": "已完成",
+ "editor.accept_all": "全部接受",
+ "editor.reject_all": "全部拒绝",
+ "editor.refresh_git": "刷新 Git 状态",
+ "editor.commit_placeholder": "提交信息(Cmd/Ctrl+Enter)",
+ "editor.stage_to_commit": "暂存更改后即可提交",
+ "editor.commit_message": "提交信息",
+ "editor.unstage_all": "全部取消暂存",
+ "editor.stage_all": "全部暂存",
+ "editor.no_changes": "没有更改。",
+ "editor.move_to_other_group": "移到另一组",
+ "editor.open_in_other_group": "在另一组中打开",
+ "editor.open_preview_side": "在侧边打开预览",
+ "editor.split": "拆分编辑器",
+ "editor.split_hint": "加宽窗口或隐藏文件树后即可拆分",
+ "editor.close_group": "关闭编辑器组",
+ "editor.close_group_hint": "关闭编辑器组(其中的标签页会关闭;未保存的内容会保留,直到你重新打开该文件)",
+ "editor.resize_groups": "调整编辑器组大小(双击:等宽)",
+ "editor.views": "编辑器视图",
+ "editor.agent_changes": "智能体更改",
+ "editor.search_in_files": "在文件中搜索",
+ "editor.go_to_file": "转到文件",
+ "editor.hide_side_bar": "隐藏侧栏",
+ "editor.show_side_bar": "显示侧栏",
+ "editor.hide_terminal": "隐藏终端",
+ "editor.show_terminal": "显示终端",
+ "editor.close_panel": "关闭面板",
+ "editor.format_prompt_title": "运行此项目的格式化工具?",
+ "editor.allow_once": "仅允许一次",
+ "editor.always_for_project": "此项目始终允许",
+ "editor.replace_all_confirm": "全部替换?",
+ "editor.replace_all": "全部替换",
+ "editor.hide_replace": "隐藏替换",
+ "editor.show_replace": "显示替换",
+ "editor.match_case": "区分大小写",
+ "editor.whole_word": "全字匹配",
+ "editor.regex": "正则表达式",
+ "editor.replace_with": "替换为",
+ "editor.hide_file_filters": "隐藏文件筛选",
+ "editor.file_filters": "包含 / 排除的文件",
+ "editor.errors_only": "仅错误",
+ "editor.refresh_problems": "刷新问题",
+ "editor.go_to_file_placeholder": "转到文件…",
+ "editor.staged_count": "已暂存({count})",
+ "editor.changes_count": "更改({count})",
+ "editor.left_count": "剩余 {count} 个",
+ "session.undo_stop_first": "请先停止本轮(Esc),再撤销",
+ "session.undo_confirm": "撤销上一轮?其消息会被隐藏,文件更改会被撤回。可通过“重做”或“恢复”找回。",
+ "session.redo_turn": "重做已撤销的一轮",
+ "voice.privacy": "隐私",
+ "editor.outline": "大纲",
+ "editor.outline_no_file": "打开文件即可查看其符号。",
+ "editor.outline_lang_off": "编辑器的语言功能已关闭。",
+ "editor.outline_loading": "正在加载符号…",
+ "editor.outline_wait": "文件打开片刻后会显示符号。",
+ "editor.outline_none": "没有符号(此文件没有语言服务器,或未找到符号)。",
+ "editor.empty_before": "从文件树中打开文件,或按 ",
+ "editor.empty_after": " 查找文件。",
+ "common.loading": "正在加载…",
+ "settings.appearance.system_monospace": "系统等宽字体",
+ "settings.appearance.same_as_code_font": "与代码字体相同",
+ "settings.appearance.preset_default": "默认",
+ "settings.appearance.preset_high_contrast": "高对比度",
} as const;
diff --git a/apps/app/src/react-app/domains/browser-logins/browser-logins-panel.tsx b/apps/app/src/react-app/domains/browser-logins/browser-logins-panel.tsx
index 92399844..687ee7bd 100644
--- a/apps/app/src/react-app/domains/browser-logins/browser-logins-panel.tsx
+++ b/apps/app/src/react-app/domains/browser-logins/browser-logins-panel.tsx
@@ -14,6 +14,7 @@ import {
} from "../settings/settings-layout";
import { LoginSyncDialog } from "./login-sync-dialog";
import { getBrowserLoginsBridge, useBrowserLoginSync } from "./use-browser-login-sync";
+import { t } from "@/i18n";
const STATUS_LABELS: Record<BrowserLoginSyncState["status"], string> = {
policy_off: "Permission off",
@@ -94,16 +95,16 @@ export function BrowserLoginsPanel() {
<SettingsSection>
<LayoutSectionItem>
<LayoutSectionItemHeader>
- <LayoutSectionItemTitle>Browser login sync</LayoutSectionItemTitle>
+ <LayoutSectionItemTitle>{t("browser_logins.title")}</LayoutSectionItemTitle>
<LayoutSectionItemDescription>
- Keep selected sites signed in by reading one browser profile. omnirush.ai never changes the source browser, and sync starts only after you choose sites and enable it.
+ {t("browser_logins.desc")}
</LayoutSectionItemDescription>
</LayoutSectionItemHeader>
<LayoutSectionItemContent className="gap-3">
<SettingsNotice>
{loginSync.managedByOrg
- ? "Browser login sync is not yet available on organization-managed Desktop. No browser login data is read."
- : "Nothing is read until you choose a profile and exact sites, then confirm continuing sync."}
+ ? t("browser_logins.org_unavailable")
+ : t("browser_logins.nothing_read")}
</SettingsNotice>
{error ? <SettingsNotice tone="error">{error}</SettingsNotice> : null}
@@ -113,7 +114,7 @@ export function BrowserLoginsPanel() {
) : !syncState.configured ? (
loginSync.policyAllowed ? (
<div>
- <Button size="sm" onClick={() => setDialogOpen(true)} data-testid="login-sync-setup">Choose sites</Button>
+ <Button size="sm" onClick={() => setDialogOpen(true)} data-testid="login-sync-setup">{t("browser_logins.choose_sites")}</Button>
</div>
) : null
) : (
@@ -260,7 +261,7 @@ export function BrowserLoginsPanel() {
</ul>
</div>
) : signedInSites ? (
- <p className="text-xs text-muted-foreground">The built-in browser is not signed in to any site.</p>
+ <p className="text-xs text-muted-foreground">{t("browser_logins.none_signed_in")}</p>
) : null}
</LayoutSectionItemContent>
</LayoutSectionItem>
diff --git a/apps/app/src/react-app/domains/browser-logins/login-sync-card.tsx b/apps/app/src/react-app/domains/browser-logins/login-sync-card.tsx
index f90f7934..baad9920 100644
--- a/apps/app/src/react-app/domains/browser-logins/login-sync-card.tsx
+++ b/apps/app/src/react-app/domains/browser-logins/login-sync-card.tsx
@@ -5,6 +5,7 @@ import { Button } from "@/components/ui/button";
import { LoginSyncDialog } from "./login-sync-dialog";
import { useBrowserLoginSync } from "./use-browser-login-sync";
+import { t } from "@/i18n";
/** One-time offer shown after browser login sync becomes available. */
export function LoginSyncCard() {
@@ -35,7 +36,7 @@ export function LoginSyncCard() {
</div>
<div className="flex shrink-0 items-center gap-1">
<Button size="sm" variant="ghost" onClick={loginSync.dismissPrompt} data-testid="login-sync-not-now">Not now</Button>
- <Button size="sm" onClick={() => setDialogOpen(true)} data-testid="login-sync-open">Choose sites</Button>
+ <Button size="sm" onClick={() => setDialogOpen(true)} data-testid="login-sync-open">{t("browser_logins.choose_sites")}</Button>
</div>
</div>
) : null}
diff --git a/apps/app/src/react-app/domains/session/chat/session-empty-hero.tsx b/apps/app/src/react-app/domains/session/chat/session-empty-hero.tsx
index b3ae30af..e64cb11e 100644
--- a/apps/app/src/react-app/domains/session/chat/session-empty-hero.tsx
+++ b/apps/app/src/react-app/domains/session/chat/session-empty-hero.tsx
@@ -3,6 +3,8 @@ import { useProviderLock } from "@/app/lib/provider-lock";
import { useEffect, useState } from "react";
import { Zap } from "lucide-react";
+import { t } from "@/i18n";
+
import type { ComposerAttachment } from "@/app/types";
import { useCheckDesktopRestriction } from "@/react-app/domains/cloud/desktop-config-provider";
import { BuildathonPromoCard } from "@/react-app/domains/buildathon/buildathon-promo";
@@ -22,35 +24,35 @@ type TimeGreeting = {
export function greetingForLocalHour(hour: number): TimeGreeting {
if (hour < 5) {
return {
- title: "what would you like to work on?",
- subtitle: "describe the outcome you need",
+ title: t("home.greeting_night_title"),
+ subtitle: t("home.greeting_night_subtitle"),
};
}
if (hour < 12) {
return {
- title: "good morning. how can I help?",
- subtitle: "what are we getting done?",
+ title: t("home.greeting_morning_title"),
+ subtitle: t("home.greeting_subtitle"),
};
}
if (hour < 17) {
return {
- title: "good afternoon. how can I help?",
- subtitle: "what should we tackle?",
+ title: t("home.greeting_afternoon_title"),
+ subtitle: t("home.greeting_afternoon_subtitle"),
};
}
if (hour < 22) {
return {
- title: "good evening. how can I help?",
- subtitle: "what are we getting done?",
+ title: t("home.greeting_evening_title"),
+ subtitle: t("home.greeting_subtitle"),
};
}
return {
- title: "what would you like to work on?",
- subtitle: "describe the outcome you need",
+ title: t("home.greeting_night_title"),
+ subtitle: t("home.greeting_night_subtitle"),
};
}
@@ -108,7 +110,7 @@ export function SessionEmptyHero(props: SessionEmptyHeroProps) {
return (
<div className="mx-auto w-full max-w-[640px] space-y-4 px-4 max-lg:px-4 sm:px-6">
<div className="space-y-1.5 text-center">
- <h2 className="text-[24px] font-semibold leading-[30px] tracking-[-0.02em] text-foreground">
+ <h2 className="text-balance break-keep text-[24px] font-semibold leading-[30px] tracking-[-0.02em] text-foreground">
{greeting.title}
</h2>
<p className="text-[13px] text-muted-foreground">{greeting.subtitle}</p>
@@ -130,9 +132,9 @@ export function SessionEmptyHero(props: SessionEmptyHeroProps) {
>
<Zap className="mt-0.5 size-4 shrink-0 text-blue-10" />
<div>
- <div className="text-[13px] font-medium text-foreground">connect a model provider</div>
+ <div className="text-[13px] font-medium text-foreground">{t("home.connect_provider_title")}</div>
<div className="mt-0.5 text-[12px] text-muted-foreground">
- add an api key for openai, anthropic, google, or openrouter so tasks can run.
+ {t("home.connect_provider_body")}
</div>
</div>
</button>
diff --git a/apps/app/src/react-app/domains/session/chat/session-page.tsx b/apps/app/src/react-app/domains/session/chat/session-page.tsx
index 037a9f7d..ba12aa0c 100644
--- a/apps/app/src/react-app/domains/session/chat/session-page.tsx
+++ b/apps/app/src/react-app/domains/session/chat/session-page.tsx
@@ -387,12 +387,12 @@ function UnavailableWorkbenchPane(props: {
>
<div className="flex max-w-sm flex-col gap-3 text-center">
<div>
- <h2 className="text-sm font-medium text-foreground">{props.workspaceTitle} is unavailable</h2>
+ <h2 className="text-sm font-medium text-foreground">{t("session.pane_unavailable", { name: props.workspaceTitle })}</h2>
<p className="mt-1 text-xs leading-5 text-muted-foreground">{props.message}</p>
</div>
<div className="flex justify-center gap-2">
- <Button variant="outline" size="sm" onClick={props.onRetry}>Retry connection</Button>
- <Button variant="ghost" size="sm" onClick={props.onClose}>Close pane</Button>
+ <Button variant="outline" size="sm" onClick={props.onRetry}>{t("session.retry_connection")}</Button>
+ <Button variant="ghost" size="sm" onClick={props.onClose}>{t("session.close_pane")}</Button>
</div>
</div>
</div>
@@ -1127,8 +1127,8 @@ export function SessionPage(props: SessionPageProps) {
const showSelectedWorkspaceError = Boolean(selectedWorkspaceErrorMessage);
const selectedWorkspaceErrorTitle =
props.selectedWorkspaceDisplay.workspaceType === "remote"
- ? "Remote workspace unavailable"
- : "omnirush.ai unavailable";
+ ? t("session.remote_workspace_unavailable")
+ : t("session.runtime_unavailable");
const reactSessionBaseUrl = props.opencodeBaseUrl?.trim() ?? "";
const reactSessionToken =
@@ -1497,12 +1497,12 @@ export function SessionPage(props: SessionPageProps) {
// IDE mode hides the sessions sidebar: its destinations move to the foot of the activity rail.
const railDestinations: RailDestination[] = [
- ...(props.sidebar.onOpenTasks ? [{ id: "tasks", label: "Parallel tasks", icon: <Layers className="size-4" />, badge: props.sidebar.tasksRunningCount || undefined, onSelect: props.sidebar.onOpenTasks }] : []),
- ...(props.sidebar.onOpenSessionSearch ? [{ id: "search", label: "Search sessions", icon: <TextSearch className="size-4" />, onSelect: props.sidebar.onOpenSessionSearch }] : []),
- ...(props.sidebar.onOpenAutomations ? [{ id: "automations", label: "Automations", icon: <Zap className="size-4" />, badge: props.sidebar.automationsNeedAttention ? 1 : undefined, onSelect: props.sidebar.onOpenAutomations }] : []),
- ...(props.sidebar.onOpenDashboard ? [{ id: "dashboard", label: "Dashboard", icon: <LayoutGrid className="size-4" />, onSelect: props.sidebar.onOpenDashboard }] : []),
- { id: "library", label: "Library", icon: <Library className="size-4" />, onSelect: props.onOpenExtensions },
- { id: "chat-layout", label: "Audit trail and workflows (Chat layout)", icon: <PanelLeft className="size-4" />, onSelect: () => setLayoutMode("chat") },
+ ...(props.sidebar.onOpenTasks ? [{ id: "tasks", label: t("sidebar.parallel_tasks"), icon: <Layers className="size-4" />, badge: props.sidebar.tasksRunningCount || undefined, onSelect: props.sidebar.onOpenTasks }] : []),
+ ...(props.sidebar.onOpenSessionSearch ? [{ id: "search", label: t("workspace_list.search_sessions"), icon: <TextSearch className="size-4" />, onSelect: props.sidebar.onOpenSessionSearch }] : []),
+ ...(props.sidebar.onOpenAutomations ? [{ id: "automations", label: t("sidebar.automations"), icon: <Zap className="size-4" />, badge: props.sidebar.automationsNeedAttention ? 1 : undefined, onSelect: props.sidebar.onOpenAutomations }] : []),
+ ...(props.sidebar.onOpenDashboard ? [{ id: "dashboard", label: t("sidebar.dashboard"), icon: <LayoutGrid className="size-4" />, onSelect: props.sidebar.onOpenDashboard }] : []),
+ { id: "library", label: t("settings.tab_extensions"), icon: <Library className="size-4" />, onSelect: props.onOpenExtensions },
+ { id: "chat-layout", label: t("ide.rail_chat_layout"), icon: <PanelLeft className="size-4" />, onSelect: () => setLayoutMode("chat") },
];
// The chat itself: beside the sessions sidebar in Chat mode, docked on the right in IDE mode.
@@ -1537,7 +1537,7 @@ export function SessionPage(props: SessionPageProps) {
size="sm"
className="h-6 shrink-0 cursor-pointer gap-1 rounded-lg px-1.5 text-[12px] text-gray-10 transition-colors hover:bg-muted hover:text-foreground mac:titlebar-no-drag"
data-parent-session-back={parentSessionLink.sessionId}
- aria-label={`Back to ${parentSessionLink.title || "parent chat"}`}
+ aria-label={t("session.back_to", { title: parentSessionLink.title || t("session.parent_chat") })}
onClick={() => openSessionTab(parentSessionLink.workspaceId, parentSessionLink.sessionId)}
>
<ArrowLeft size={14} />
@@ -1547,7 +1547,7 @@ export function SessionPage(props: SessionPageProps) {
</Button>
}
/>
- <TooltipContent>Back to parent chat</TooltipContent>
+ <TooltipContent>{t("session.back_to_parent")}</TooltipContent>
</Tooltip>
) : null}
<h1 className={cn("min-w-0 truncate text-[13px] font-medium text-dls-text", ideMode && "sr-only")}>
@@ -1615,14 +1615,14 @@ export function SessionPage(props: SessionPageProps) {
variant="ghost"
size="icon-sm"
className="hidden rounded-xl text-gray-10 transition-colors hover:bg-muted hover:text-foreground @min-[40rem]/titlebar:inline-flex"
- aria-label="Find in conversation"
+ aria-label={t("session.find_in_conversation")}
onClick={() => useSessionFindStore.getState().openFind({ sessionId: findButtonSessionId })}
>
<TextSearch size={16} />
</Button>
}
/>
- <TooltipContent>Find in conversation (⌘F)</TooltipContent>
+ <TooltipContent>{t("session.find_in_conversation")} (⌘F)</TooltipContent>
</Tooltip>
) : null}
<Tooltip>
@@ -1635,7 +1635,7 @@ export function SessionPage(props: SessionPageProps) {
"hidden rounded-xl text-gray-10 transition-colors hover:bg-muted hover:text-foreground @min-[40rem]/titlebar:inline-flex",
sidePanelOpen && "bg-primary/10 text-link hover:bg-primary/15 hover:text-link",
)}
- aria-label={sidePanelOpen ? "Close side panel" : "Open side panel"}
+ aria-label={sidePanelOpen ? t("session.close_side_panel") : t("session.open_side_panel")}
aria-pressed={sidePanelOpen}
onClick={() => {
if (sidePanelOpen) {
@@ -1649,7 +1649,7 @@ export function SessionPage(props: SessionPageProps) {
</Button>
}
/>
- <TooltipContent>{sidePanelOpen ? "Close side panel" : "Open side panel"}</TooltipContent>
+ <TooltipContent>{sidePanelOpen ? t("session.close_side_panel") : t("session.open_side_panel")}</TooltipContent>
</Tooltip>
{showCloudSignIn ? (
<Button
@@ -1671,7 +1671,7 @@ export function SessionPage(props: SessionPageProps) {
variant="ghost"
size="icon-sm"
className={cn("rounded-xl text-gray-10 transition-colors hover:bg-muted hover:text-foreground", !ideMode && !buildathonMenu.visible && "@min-[40rem]/titlebar:hidden")}
- aria-label="More actions"
+ aria-label={t("session.more_actions")}
>
<MoreHorizontal size={18} />
</Button>
@@ -1681,14 +1681,14 @@ export function SessionPage(props: SessionPageProps) {
{editorAvailable && !isMobile ? (
<DropdownMenuItem onClick={() => setLayoutMode(ideMode ? "chat" : "ide")} data-menu-layout-toggle>
{ideMode ? <MessageSquare className="size-4" /> : <Code2 className="size-4" />}
- <span className="flex-1">{ideMode ? "Switch to Chat layout" : "Switch to IDE layout"}</span>
+ <span className="flex-1">{ideMode ? t("session.switch_to_chat_layout") : t("session.switch_to_ide_layout")}</span>
<span className="text-[11px] text-muted-foreground">{shortcutLabel("Y")}</span>
</DropdownMenuItem>
) : null}
{ideMode ? (
<DropdownMenuItem onClick={() => useEditorStore.getState().setIdeChatCollapsed(true)}>
<MessageSquareOff className="size-4" />
- <span className="flex-1">Hide chat</span>
+ <span className="flex-1">{t("session.hide_chat")}</span>
<span className="text-[11px] text-muted-foreground">{shortcutLabel("H")}</span>
</DropdownMenuItem>
) : null}
@@ -1697,31 +1697,31 @@ export function SessionPage(props: SessionPageProps) {
onClick={() => useSessionFindStore.getState().openFind({ sessionId: findButtonSessionId })}
>
<TextSearch className="size-4" />
- Find in conversation
+ {t("session.find_in_conversation")}
</DropdownMenuItem>
) : null}
{commandSessionId && headerActions ? (
<DropdownMenuItem disabled={!headerActions.canUndo} onClick={() => void headerActions.undo()}>
<Undo2 className="size-4" />
- Undo last turn
+ {t("session.undo_last_turn")}
</DropdownMenuItem>
) : null}
{commandSessionId && headerActions?.canRedo ? (
<DropdownMenuItem onClick={() => void headerActions.redo()}>
<Redo2 className="size-4" />
- Redo
+ {t("session.redo")}
</DropdownMenuItem>
) : null}
{commandSessionId ? (
<DropdownMenuItem onClick={() => openStatusDialog(commandSessionId)}>
<Gauge className="size-4" />
- Status
+ {t("session.status")}
</DropdownMenuItem>
) : null}
{commandSessionId ? (
<DropdownMenuItem onClick={() => openChangesPanel(commandSessionId)}>
<FileDiff className="size-4" />
- Changes
+ {t("session.changes")}
</DropdownMenuItem>
) : null}
{commandSessionId ? (
@@ -1730,12 +1730,12 @@ export function SessionPage(props: SessionPageProps) {
onClick={() => void commandBridge?.runCommand("/review")}
>
<ListChecks className="size-4" />
- Review changes
+ {t("session.review_changes")}
</DropdownMenuItem>
) : null}
<DropdownMenuItem onClick={openArtifactRailPane}>
<FileText className="size-4" />
- Files{artifactTargetCount > 0 ? ` (${artifactTargetCount})` : ""}
+ {t("session.files")}{artifactTargetCount > 0 ? ` (${artifactTargetCount})` : ""}
</DropdownMenuItem>
{buildathonMenu.visible ? (
<DropdownMenuItem onClick={buildathonMenu.open} data-menu-buildathon>
@@ -2264,8 +2264,8 @@ export function SessionPage(props: SessionPageProps) {
// The folded chat: a thin strip on the right edge brings it back.
<button
type="button"
- aria-label="Show chat"
- title={`Show chat (${shortcutLabel("H")})`}
+ aria-label={t("session.show_chat")}
+ title={`${t("session.show_chat")} (${shortcutLabel("H")})`}
data-chat-strip
onClick={() => useEditorStore.getState().setIdeChatCollapsed(false)}
className={cn(
@@ -2280,7 +2280,7 @@ export function SessionPage(props: SessionPageProps) {
ideChatPanelRef.current?.resize(`${DEFAULT_IDE_CHAT_WIDTH}px`);
useEditorStore.getState().setIdeChatWidth(DEFAULT_IDE_CHAT_WIDTH);
}}
- title="Drag to resize; double-click to reset"
+ title={t("session.resize_handle_hint")}
/>
<ResizablePanel
panelRef={ideChatPanelRef}
@@ -2340,8 +2340,8 @@ export function SessionPage(props: SessionPageProps) {
size="icon-sm"
className="rounded-xl transition-colors hover:bg-muted hover:text-foreground"
onClick={() => setLayoutMode("ide")}
- title={`Open the IDE layout (${shortcutLabel("Y")})`}
- aria-label="Open the IDE layout"
+ title={`${t("session.open_ide_layout")} (${shortcutLabel("Y")})`}
+ aria-label={t("session.open_ide_layout")}
data-editor-rail
>
<Code2 size={15} />
@@ -2356,8 +2356,8 @@ export function SessionPage(props: SessionPageProps) {
panelRailActive && hasBrowserTabs && "bg-primary/10 text-link hover:bg-primary/15 hover:text-link",
)}
onClick={openBrowserRailPane}
- title={hasBrowserTabs ? "Browser" : "Browser opens when a page is available"}
- aria-label={hasBrowserTabs ? "Browser" : "Browser opens when a page is available"}
+ title={hasBrowserTabs ? t("session.browser") : t("session.browser_unavailable")}
+ aria-label={hasBrowserTabs ? t("session.browser") : t("session.browser_unavailable")}
aria-pressed={panelRailActive && hasBrowserTabs}
disabled={!hasBrowserTabs}
>
@@ -2372,8 +2372,8 @@ export function SessionPage(props: SessionPageProps) {
panelRailActive && "bg-primary/10 text-link hover:bg-primary/15 hover:text-link",
)}
onClick={panelRailActive ? closeRightPane : openArtifactRailPane}
- title={`Files (${artifactTargetCount})`}
- aria-label={`Files (${artifactTargetCount})`}
+ title={`${t("session.files")} (${artifactTargetCount})`}
+ aria-label={`${t("session.files")} (${artifactTargetCount})`}
aria-pressed={panelRailActive}
>
<FileText size={15} />
diff --git a/apps/app/src/react-app/domains/session/commands/session-command-controls.tsx b/apps/app/src/react-app/domains/session/commands/session-command-controls.tsx
index fb574df2..cfeec865 100644
--- a/apps/app/src/react-app/domains/session/commands/session-command-controls.tsx
+++ b/apps/app/src/react-app/domains/session/commands/session-command-controls.tsx
@@ -23,6 +23,7 @@ import { contextUse, sandboxLabel, uploadsLine } from "./context-usage";
import { useSessionCommandsStore } from "./session-commands-store";
import { chatUndoKey } from "./undo-key";
import { useCachedQueryData, useUndoRedo, visibleMessages, type SessionCommandTarget } from "./use-session-commands";
+import { t } from "@/i18n";
export type SessionCommandModelProps = {
selectedModel: ModelRef;
@@ -73,11 +74,11 @@ export function SessionCommandControls(props: SessionCommandControlsProps) {
event.stopPropagation();
// The keyboard never stops a turn (a stray Ctrl+Z must not cut the agent off).
if (running) {
- toast.info("Stop the turn first (Esc), then undo", { duration: 4000 });
+ toast.info(t("session.undo_stop_first"), { duration: 4000 });
return;
}
// A key press is easy to make by accident: the undo (the turn and its file changes) asks first.
- if (action === "undo" && !window.confirm("Undo the last turn? Its messages are hidden and its file changes taken back. Redo or Restore brings them back.")) return;
+ if (action === "undo" && !window.confirm(t("session.undo_confirm"))) return;
void (action === "undo" ? undo() : redo());
};
window.addEventListener("keydown", onKey, true);
@@ -94,7 +95,7 @@ export function SessionCommandControls(props: SessionCommandControlsProps) {
variant="ghost"
size="icon-sm"
className={iconButton}
- aria-label="Undo last turn"
+ aria-label={t("session.undo_last_turn")}
data-testid="session-undo"
disabled={!canUndo}
onClick={() => void undo()}
@@ -103,7 +104,7 @@ export function SessionCommandControls(props: SessionCommandControlsProps) {
</Button>
}
/>
- <TooltipContent>Undo last turn ({mod}Z)</TooltipContent>
+ <TooltipContent>{t("session.undo_last_turn")} ({mod}Z)</TooltipContent>
</Tooltip>
{canRedo || commands.busyAction === "redo" ? (
<Tooltip>
@@ -113,7 +114,7 @@ export function SessionCommandControls(props: SessionCommandControlsProps) {
variant="ghost"
size="icon-sm"
className={iconButton}
- aria-label="Redo"
+ aria-label={t("session.redo")}
data-testid="session-redo"
disabled={!canRedo}
onClick={() => void redo()}
@@ -122,7 +123,7 @@ export function SessionCommandControls(props: SessionCommandControlsProps) {
</Button>
}
/>
- <TooltipContent>Redo the undone turn ({mod}{isMac() ? "⇧Z" : "Shift+Z"})</TooltipContent>
+ <TooltipContent>{t("session.redo_turn")} ({mod}{isMac() ? "⇧Z" : "Shift+Z"})</TooltipContent>
</Tooltip>
) : null}
<Tooltip>
@@ -132,7 +133,7 @@ export function SessionCommandControls(props: SessionCommandControlsProps) {
variant="ghost"
size="icon-sm"
className={iconButton}
- aria-label="Changes"
+ aria-label={t("session.changes")}
data-testid="session-changes"
onClick={() => openChanges(props.sessionId)}
>
@@ -140,7 +141,7 @@ export function SessionCommandControls(props: SessionCommandControlsProps) {
</Button>
}
/>
- <TooltipContent>Changes</TooltipContent>
+ <TooltipContent>{t("session.changes")}</TooltipContent>
</Tooltip>
<StatusPopover {...props} />
<StatusDialog {...props} />
@@ -162,7 +163,7 @@ function StatusDialog(props: SessionCommandControlsProps) {
return (
<Dialog open={open} onOpenChange={(next) => { if (!next) closeStatus(); }}>
<DialogContent className="max-w-sm gap-0 p-0" data-testid="session-status-dialog">
- <DialogTitle className="sr-only">Status</DialogTitle>
+ <DialogTitle className="sr-only">{t("session.status")}</DialogTitle>
{open ? <StatusRows {...props} /> : null}
</DialogContent>
</Dialog>
@@ -182,7 +183,7 @@ function StatusPopover(props: SessionCommandControlsProps) {
variant="ghost"
size="icon-sm"
className={cn(iconButton, open && "bg-primary/10 text-link")}
- aria-label="Status"
+ aria-label={t("session.status")}
data-testid="session-status"
>
<Gauge size={16} />
@@ -191,7 +192,7 @@ function StatusPopover(props: SessionCommandControlsProps) {
/>
}
/>
- <TooltipContent>Status</TooltipContent>
+ <TooltipContent>{t("session.status")}</TooltipContent>
</Tooltip>
<PopoverContent align="end" className="w-[22rem] gap-0 rounded-2xl p-0" data-testid="session-status-popover">
{open ? <StatusRows {...props} /> : null}
diff --git a/apps/app/src/react-app/domains/session/editor/editor-panel.tsx b/apps/app/src/react-app/domains/session/editor/editor-panel.tsx
index b41c2a9a..1c5827fc 100644
--- a/apps/app/src/react-app/domains/session/editor/editor-panel.tsx
+++ b/apps/app/src/react-app/domains/session/editor/editor-panel.tsx
@@ -82,6 +82,7 @@ import { openDesktopUrl } from "@/app/lib/desktop";
import { useGroupRef } from "react-resizable-panels";
import { ContextMenu, ContextMenuContent, ContextMenuItem, ContextMenuTrigger } from "@/components/ui/context-menu";
import { Dialog, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle } from "@/components/ui/dialog";
+import { t } from "@/i18n";
/** What the main group shows: a text file or diff (Monaco), a Markdown preview, or an image. */
type PanelSurface = SurfaceDoc | { kind: "preview"; key: string; doc: FileDoc } | { kind: "image"; key: string; path: string };
@@ -320,8 +321,8 @@ function FilesView(props: {
<InputGroup className="h-7 min-w-0 flex-1 bg-background">
<InputGroupAddon align="inline-start"><Search /></InputGroupAddon>
<InputGroupInput
- aria-label="Filter files"
- placeholder="Filter files"
+ aria-label={t("editor.filter_files")}
+ placeholder={t("editor.filter_files")}
value={search.value}
onChange={(event) => {
const value = event.target.value;
@@ -330,7 +331,7 @@ function FilesView(props: {
}}
/>
</InputGroup>
- <Button variant="ghost" size="icon-xs" aria-label="Refresh files" onClick={props.onRefresh}>
+ <Button variant="ghost" size="icon-xs" aria-label={t("editor.refresh_files")} onClick={props.onRefresh}>
<RefreshCw className={cn(props.loading && "animate-spin")} />
</Button>
</div>
@@ -339,7 +340,7 @@ function FilesView(props: {
) : (
<FileTree
model={model}
- aria-label="Project files"
+ aria-label={t("editor.project_files")}
className="min-h-0 flex-1 overflow-hidden"
style={{ ["--trees-fg-override" as string]: "var(--foreground)" }}
/>
@@ -378,12 +379,12 @@ function ChangesView(props: {
onClick={() => props.onScope(scope)}
className={cn("whitespace-nowrap rounded-md px-1.5 py-0.5", props.scope === scope ? "bg-background text-foreground shadow-sm" : "text-muted-foreground")}
>
- {scope === "turn" ? "Last turn" : "All turns"}
+ {scope === "turn" ? t("editor.last_turn") : t("editor.all_turns")}
</button>
))}
</div>
<span className="flex-1" />
- <Button variant="ghost" size="icon-xs" aria-label="Refresh changes" onClick={props.onRefresh}>
+ <Button variant="ghost" size="icon-xs" aria-label={t("editor.refresh_changes")} onClick={props.onRefresh}>
<RefreshCw className={cn(props.loading && "animate-spin")} />
</Button>
</div>
@@ -424,9 +425,9 @@ function ChangesView(props: {
})}
</div>
<div className="flex shrink-0 items-center gap-1.5 border-t border-border p-2">
- <span className="min-w-0 flex-1 truncate whitespace-nowrap text-muted-foreground">{pending.length ? `${pending.length} left` : "Done"}</span>
- <Button size="xs" disabled={pending.length === 0} onClick={() => props.onAcceptAll(pending)}>Accept all</Button>
- <Button size="xs" variant="outline" disabled={pending.length === 0} onClick={() => props.onRejectAll(pending)}>Reject all</Button>
+ <span className="min-w-0 flex-1 truncate whitespace-nowrap text-muted-foreground">{pending.length ? t("editor.left_count", { count: pending.length }) : t("editor.done")}</span>
+ <Button size="xs" disabled={pending.length === 0} onClick={() => props.onAcceptAll(pending)}>{t("editor.accept_all")}</Button>
+ <Button size="xs" variant="outline" disabled={pending.length === 0} onClick={() => props.onRejectAll(pending)}>{t("editor.reject_all")}</Button>
</div>
</>
)}
@@ -498,7 +499,7 @@ function GitView(props: {
<GitBranch className="size-3.5 text-muted-foreground" />
<span className="min-w-0 flex-1 truncate font-medium" data-editor-branch>{status.branch ?? "detached HEAD"}</span>
{status.ahead || status.behind ? <span className="text-muted-foreground">↑{status.ahead} ↓{status.behind}</span> : null}
- <Button variant="ghost" size="icon-xs" aria-label="Refresh git status" onClick={props.onRefresh}>
+ <Button variant="ghost" size="icon-xs" aria-label={t("editor.refresh_git")} onClick={props.onRefresh}>
<RefreshCw className={cn(props.loading && "animate-spin")} />
</Button>
</div>
@@ -512,8 +513,8 @@ function GitView(props: {
void commit();
}
}}
- placeholder={staged.length ? "Commit message (Cmd/Ctrl+Enter)" : "Stage changes to commit"}
- aria-label="Commit message"
+ placeholder={staged.length ? t("editor.commit_placeholder") : t("editor.stage_to_commit")}
+ aria-label={t("editor.commit_message")}
rows={2}
className="w-full resize-none rounded-lg border border-border bg-background px-2 py-1.5 text-xs outline-none focus-visible:ring-1 focus-visible:ring-ring"
/>
@@ -523,16 +524,16 @@ function GitView(props: {
</div>
<div className="min-h-0 flex-1 overflow-y-auto px-1 pb-2">
<div className="flex items-center px-2 pt-1 pb-0.5 text-[10.5px] font-medium uppercase tracking-wide text-muted-foreground">
- <span className="flex-1">Staged ({staged.length})</span>
- {staged.length ? <button type="button" className="hover:text-foreground" onClick={() => props.onStage(staged.flatMap((file) => (file.from ? [file.path, file.from] : [file.path])), false)}>Unstage all</button> : null}
+ <span className="flex-1">{t("editor.staged_count", { count: staged.length })}</span>
+ {staged.length ? <button type="button" className="hover:text-foreground" onClick={() => props.onStage(staged.flatMap((file) => (file.from ? [file.path, file.from] : [file.path])), false)}>{t("editor.unstage_all")}</button> : null}
</div>
{staged.map((file) => row(file, true))}
<div className="flex items-center px-2 pt-2 pb-0.5 text-[10.5px] font-medium uppercase tracking-wide text-muted-foreground">
- <span className="flex-1">Changes ({unstaged.length})</span>
- {unstaged.length ? <button type="button" className="hover:text-foreground" onClick={() => props.onStage(unstaged.map((file) => file.path), true)}>Stage all</button> : null}
+ <span className="flex-1">{t("editor.changes_count", { count: unstaged.length })}</span>
+ {unstaged.length ? <button type="button" className="hover:text-foreground" onClick={() => props.onStage(unstaged.map((file) => file.path), true)}>{t("editor.stage_all")}</button> : null}
</div>
{unstaged.map((file) => row(file, false))}
- {staged.length === 0 && unstaged.length === 0 ? <p className="px-2 py-1 text-muted-foreground">No changes.</p> : null}
+ {staged.length === 0 && unstaged.length === 0 ? <p className="px-2 py-1 text-muted-foreground">{t("editor.no_changes")}</p> : null}
</div>
</div>
);
@@ -1536,10 +1537,10 @@ export default function EditorPanel(props: EditorPanelProps) {
</div>
</ContextMenuTrigger>
<ContextMenuContent>
- <ContextMenuItem disabled={!canMove} onClick={() => moveToOtherGroup(tab, group, false)}>Move to other group</ContextMenuItem>
- <ContextMenuItem disabled={!canMove} onClick={() => moveToOtherGroup(tab, group, true)}>Open in other group</ContextMenuItem>
+ <ContextMenuItem disabled={!canMove} onClick={() => moveToOtherGroup(tab, group, false)}>{t("editor.move_to_other_group")}</ContextMenuItem>
+ <ContextMenuItem disabled={!canMove} onClick={() => moveToOtherGroup(tab, group, true)}>{t("editor.open_in_other_group")}</ContextMenuItem>
{isMarkdownPath(tab.path) && tab.kind === "file" ? (
- <ContextMenuItem onClick={() => openPreview("side")}>Open preview to the side</ContextMenuItem>
+ <ContextMenuItem onClick={() => openPreview("side")}>{t("editor.open_preview_side")}</ContextMenuItem>
) : null}
<ContextMenuItem onClick={close}>Close</ContextMenuItem>
</ContextMenuContent>
@@ -1552,7 +1553,7 @@ export default function EditorPanel(props: EditorPanelProps) {
<div className="ms-auto flex shrink-0 items-center gap-0.5 px-1" data-editor-tools>
{focusedTab && focusedTab.kind === "file" && isMarkdownPath(focusedTab.path) ? (
<Tooltip>
- <TooltipTrigger render={<Button variant="ghost" size="icon-xs" aria-label="Open preview to the side" onClick={() => openPreview("side")} data-editor-preview-button><Eye /></Button>} />
+ <TooltipTrigger render={<Button variant="ghost" size="icon-xs" aria-label={t("editor.open_preview_side")} onClick={() => openPreview("side")} data-editor-preview-button><Eye /></Button>} />
<TooltipContent>Open preview to the side ({mac ? "⌘⇧V" : "Ctrl+Shift+V"})</TooltipContent>
</Tooltip>
) : null}
@@ -1562,7 +1563,7 @@ export default function EditorPanel(props: EditorPanelProps) {
<Button
variant="ghost"
size="icon-xs"
- aria-label="Split editor"
+ aria-label={t("editor.split")}
aria-disabled={!splitAllowed}
className={cn(!splitAllowed && "opacity-50")}
onClick={splitEditor}
@@ -1572,7 +1573,7 @@ export default function EditorPanel(props: EditorPanelProps) {
</Button>
)}
/>
- <TooltipContent>{splitAllowed ? `Split editor (${mac ? "⌘\\" : "Ctrl+\\"})` : "Widen the window or hide the file tree to split"}</TooltipContent>
+ <TooltipContent>{splitAllowed ? `${t("editor.split")} (${mac ? "⌘\\" : "Ctrl+\\"})` : t("editor.split_hint")}</TooltipContent>
</Tooltip>
</div>
);
@@ -1621,7 +1622,7 @@ export default function EditorPanel(props: EditorPanelProps) {
{state.tabs.length === 0 ? (
<div className="flex min-h-0 flex-1 flex-col items-center justify-center gap-2 p-6 text-center text-sm text-muted-foreground" data-editor-empty>
<FileCode2 className="size-8 opacity-40" />
- <p>Open a file from the tree, or press <kbd className="rounded border border-border px-1 text-xs">{/Mac/i.test(navigator.platform) ? "⌘" : "Ctrl"} P</kbd> to find one.</p>
+ <p>{t("editor.empty_before")}<kbd className="rounded border border-border px-1 text-xs">{/Mac/i.test(navigator.platform) ? "⌘" : "Ctrl"} P</kbd>{t("editor.empty_after")}</p>
{pendingCount ? (
<Button size="sm" variant="outline" onClick={() => useEditorStore.getState().setView(workspaceId, "changes")}>Review {pendingCount} changed file{pendingCount === 1 ? "" : "s"}</Button>
) : null}
@@ -1677,7 +1678,7 @@ export default function EditorPanel(props: EditorPanelProps) {
variant="ghost"
size="icon-xs"
className="my-auto me-1 shrink-0"
- aria-label="Close group"
+ aria-label={t("editor.close_group")}
onClick={() => {
for (const tab of group2.tabs) useEditorStore.getState().closeTab2(workspaceId, tab.id);
}}
@@ -1687,7 +1688,7 @@ export default function EditorPanel(props: EditorPanelProps) {
</Button>
)}
/>
- <TooltipContent>Close group (its tabs close; unsaved text stays until you reopen the file)</TooltipContent>
+ <TooltipContent>{t("editor.close_group_hint")}</TooltipContent>
</Tooltip>
</div>
{group2Error ? <div className="flex min-h-0 flex-1 items-center justify-center p-6 text-center text-sm text-muted-foreground">{group2Error}</div> : null}
@@ -1732,7 +1733,7 @@ export default function EditorPanel(props: EditorPanelProps) {
{group2View && splitAllowed ? (
<>
<ResizableHandle
- aria-label="Resize editor groups (double-click: equal widths)"
+ aria-label={t("editor.resize_groups")}
onDoubleClick={() => splitGroupRef.current?.setLayout({ "editor-group-1": 50, "editor-group-2": 50 })}
/>
<ResizablePanel id="editor-group-2" minSize={`${MIN_GROUP_PX}px`} className="min-h-0 min-w-0">{group2View}</ResizablePanel>
@@ -1796,11 +1797,11 @@ export default function EditorPanel(props: EditorPanelProps) {
return (
<div ref={panelRef} className="relative flex h-full min-h-0 bg-background" data-editor-panel data-editor-layout="ide">
{/* The activity rail: the side views, quick open, and the app's own destinations at its foot. */}
- <nav aria-label="Editor views" className="flex w-12 shrink-0 flex-col items-center gap-1 border-e border-border py-2 mac:pt-10" data-editor-rail-views>
- {railItem("files", "Files", <Files />, mac ? "⌘⇧E" : "Ctrl+Shift+E")}
- {railItem("changes", "Agent changes", <FileDiff />, null, pendingCount)}
+ <nav aria-label={t("editor.views")} className="flex w-12 shrink-0 flex-col items-center gap-1 border-e border-border py-2 mac:pt-10" data-editor-rail-views>
+ {railItem("files", t("session.files"), <Files />, mac ? "⌘⇧E" : "Ctrl+Shift+E")}
+ {railItem("changes", t("editor.agent_changes"), <FileDiff />, null, pendingCount)}
{railItem("git", "Git", <GitBranch />, null, gitQuery.data?.repo ? gitQuery.data.files.length : undefined)}
- {railItem("search", "Search in files", <Search />, mac ? "⌘⇧F" : "Ctrl+Shift+F")}
+ {railItem("search", t("editor.search_in_files"), <Search />, mac ? "⌘⇧F" : "Ctrl+Shift+F")}
<span className="flex-1" />
{props.railFoot}
</nav>
@@ -1811,7 +1812,7 @@ export default function EditorPanel(props: EditorPanelProps) {
<Tooltip>
<TooltipTrigger
render={(
- <Button variant="ghost" size="icon-sm" aria-label="Go to file" onClick={() => useEditorStore.getState().setQuickOpen(true)}>
+ <Button variant="ghost" size="icon-sm" aria-label={t("editor.go_to_file")} onClick={() => useEditorStore.getState().setQuickOpen(true)}>
<FileCode2 />
</Button>
)}
@@ -1821,12 +1822,12 @@ export default function EditorPanel(props: EditorPanelProps) {
<Tooltip>
<TooltipTrigger
render={(
- <Button variant="ghost" size="icon-sm" aria-label={sideOpen ? "Hide side bar" : "Show side bar"} onClick={() => useEditorStore.getState().setSideOpen(!sideOpen)}>
+ <Button variant="ghost" size="icon-sm" aria-label={sideOpen ? t("editor.hide_side_bar") : t("editor.show_side_bar")} onClick={() => useEditorStore.getState().setSideOpen(!sideOpen)}>
{sideOpen ? <PanelLeftClose /> : <PanelLeftOpen />}
</Button>
)}
/>
- <TooltipContent>{sideOpen ? "Hide side bar" : "Show side bar"}</TooltipContent>
+ <TooltipContent>{sideOpen ? t("editor.hide_side_bar") : t("editor.show_side_bar")}</TooltipContent>
</Tooltip>
<Tooltip>
<TooltipTrigger
@@ -1834,7 +1835,7 @@ export default function EditorPanel(props: EditorPanelProps) {
<Button
variant="ghost"
size="icon-sm"
- aria-label={props.terminalOpen ? "Hide terminal" : "Show terminal"}
+ aria-label={props.terminalOpen ? t("editor.hide_terminal") : t("editor.show_terminal")}
aria-pressed={props.terminalOpen}
className={cn(props.terminalOpen && "bg-muted text-foreground")}
onClick={props.onToggleTerminal}
@@ -1899,7 +1900,7 @@ export default function EditorPanel(props: EditorPanelProps) {
<Button
variant="ghost"
size="icon-xs"
- aria-label="Close panel"
+ aria-label={t("editor.close_panel")}
onClick={() => {
useEditorStore.getState().setProblemsOpen(false);
if (props.terminalOpen) props.onToggleTerminal();
@@ -1931,7 +1932,7 @@ export default function EditorPanel(props: EditorPanelProps) {
<Dialog open={Boolean(formatPrompt)} onOpenChange={(open) => !open && formatPrompt?.answer(null)}>
<DialogContent className="max-w-lg" data-editor-format-trust>
<DialogHeader>
- <DialogTitle>Run this project's formatter?</DialogTitle>
+ <DialogTitle>{t("editor.format_prompt_title")}</DialogTitle>
<DialogDescription>
Format on save would run {formatPrompt?.formatter} from this project{formatPrompt?.sandbox ? ", in the project's sandbox" : " on this computer"}. It is the
project's own code (and its settings and plugins), so only allow it for projects you trust.
@@ -1941,8 +1942,8 @@ export default function EditorPanel(props: EditorPanelProps) {
<p className="text-xs text-muted-foreground">You are asked again if the formatter or its settings change.</p>
<DialogFooter>
<Button variant="outline" onClick={() => formatPrompt?.answer("never")}>No</Button>
- <Button variant="outline" onClick={() => formatPrompt?.answer("once")}>Allow once</Button>
- <Button onClick={() => formatPrompt?.answer("always")}>Always for this project</Button>
+ <Button variant="outline" onClick={() => formatPrompt?.answer("once")}>{t("editor.allow_once")}</Button>
+ <Button onClick={() => formatPrompt?.answer("always")}>{t("editor.always_for_project")}</Button>
</DialogFooter>
</DialogContent>
</Dialog>
diff --git a/apps/app/src/react-app/domains/session/editor/ide-chrome.tsx b/apps/app/src/react-app/domains/session/editor/ide-chrome.tsx
index 5fb0f6b7..5509d1b4 100644
--- a/apps/app/src/react-app/domains/session/editor/ide-chrome.tsx
+++ b/apps/app/src/react-app/domains/session/editor/ide-chrome.tsx
@@ -56,16 +56,16 @@ export function LayoutModeToggle(props: { mode: LayoutMode; onChange: (mode: Lay
render={(
<div
role="radiogroup"
- aria-label="Layout"
+ aria-label={t("ide.layout")}
data-layout-mode={props.mode}
className={cn("flex shrink-0 items-center gap-0.5 rounded-lg bg-muted p-0.5 mac:titlebar-no-drag", props.className)}
/>
)}
>
- {option("chat", "Chat", <MessageSquare />)}
+ {option("chat", t("ide.layout_chat"), <MessageSquare />)}
{option("ide", "IDE", <Code2 />)}
</TooltipTrigger>
- <TooltipContent>Switch layout ({shortcutLabel("Y")})</TooltipContent>
+ <TooltipContent>{t("ide.switch_layout")} ({shortcutLabel("Y")})</TooltipContent>
</Tooltip>
);
}
@@ -79,9 +79,9 @@ export function WorkspaceSwitcher(props: { workspaces: SwitcherWorkspace[]; sele
<DropdownMenu>
<DropdownMenuTrigger
render={(
- <Button variant="ghost" size="sm" className="h-7 min-w-0 max-w-56 gap-1.5 rounded-lg px-2 text-[12.5px] font-medium" data-workspace-switcher aria-label="Switch workspace">
+ <Button variant="ghost" size="sm" className="h-7 min-w-0 max-w-56 gap-1.5 rounded-lg px-2 text-[12.5px] font-medium" data-workspace-switcher aria-label={t("ide.switch_workspace")}>
<Folder className="size-3.5 shrink-0 text-muted-foreground" />
- <span className="truncate">{current?.name ?? "Workspace"}</span>
+ <span className="truncate">{current?.name ?? t("settings.section_workspace")}</span>
<ChevronDown className="size-3.5 shrink-0 text-muted-foreground" />
</Button>
)}
@@ -108,7 +108,7 @@ function StatusDot(props: { status: SwitcherChat["status"] }) {
if (props.status === "idle") return null;
return (
<span
- aria-label={props.status === "approval" ? "Needs approval" : "Running"}
+ aria-label={props.status === "approval" ? t("ide.needs_approval") : t("ide.running")}
className={cn("size-1.5 shrink-0 rounded-full", props.status === "approval" ? "bg-amber-9" : "animate-pulse bg-primary")}
/>
);
@@ -129,11 +129,11 @@ export function ChatSwitcher(props: {
<DropdownMenu>
<DropdownMenuTrigger
render={(
- <Button variant="ghost" size="sm" className="h-7 min-w-0 max-w-64 shrink gap-1.5 rounded-lg px-2 text-[13px] font-medium" data-chat-switcher aria-label="Switch chat">
+ <Button variant="ghost" size="sm" className="h-7 min-w-0 max-w-64 shrink gap-1.5 rounded-lg px-2 text-[13px] font-medium" data-chat-switcher aria-label={t("ide.switch_chat")}>
<MessageSquare className="size-3.5 shrink-0 text-muted-foreground" />
<span className="truncate">{props.title}</span>
{props.chats.length > 1 ? <span className="shrink-0 text-[11px] font-normal text-muted-foreground">{props.chats.length}</span> : null}
- {running ? <span className="size-1.5 shrink-0 animate-pulse rounded-full bg-primary" aria-label="Another chat is running" /> : null}
+ {running ? <span className="size-1.5 shrink-0 animate-pulse rounded-full bg-primary" aria-label={t("ide.another_chat_running")} /> : null}
<ChevronDown className="size-3.5 shrink-0 text-muted-foreground" />
</Button>
)}
@@ -141,7 +141,7 @@ export function ChatSwitcher(props: {
<DropdownMenuContent align="start" className="max-h-[60vh] w-72 overflow-y-auto">
<DropdownMenuItem onClick={props.onNew} disabled={props.newDisabled} data-chat-switch-new>
<Plus className="size-4" />
- New chat
+ {t("ide.new_chat")}
</DropdownMenuItem>
{props.chats.length ? <DropdownMenuSeparator /> : null}
{props.chats.map((chat) => (
@@ -156,12 +156,12 @@ export function ChatSwitcher(props: {
<Tooltip>
<TooltipTrigger
render={(
- <Button variant="ghost" size="icon-sm" aria-label="New chat" onClick={props.onNew} disabled={props.newDisabled} className="rounded-lg text-muted-foreground">
+ <Button variant="ghost" size="icon-sm" aria-label={t("ide.new_chat")} onClick={props.onNew} disabled={props.newDisabled} className="rounded-lg text-muted-foreground">
<Plus />
</Button>
)}
/>
- <TooltipContent>New chat</TooltipContent>
+ <TooltipContent>{t("ide.new_chat")}</TooltipContent>
</Tooltip>
</div>
);
@@ -176,7 +176,7 @@ export function ChatPanelButton(props: { open: boolean; attention: "approval" |
<Button
variant="ghost"
size="icon-sm"
- aria-label={props.open ? "Hide chat" : "Show chat"}
+ aria-label={props.open ? t("session.hide_chat") : t("session.show_chat")}
aria-pressed={props.open}
data-chat-panel-toggle
onClick={props.onToggle}
@@ -192,7 +192,7 @@ export function ChatPanelButton(props: { open: boolean; attention: "approval" |
</Button>
)}
/>
- <TooltipContent>{props.open ? "Hide chat" : "Show chat"} ({shortcutLabel("H")})</TooltipContent>
+ <TooltipContent>{props.open ? t("session.hide_chat") : t("session.show_chat")} ({shortcutLabel("H")})</TooltipContent>
</Tooltip>
);
}
@@ -211,8 +211,8 @@ export function RailDestinations(props: { destinations: RailDestination[]; onOpe
render={(
<button
type="button"
- aria-label="More: parallel tasks, workflows, library"
- title="Parallel tasks, workflows, library and more"
+ aria-label={t("ide.rail_more_label")}
+ title={t("ide.rail_more_title")}
data-rail-more
className="relative flex size-9 items-center justify-center rounded-lg text-muted-foreground transition-colors hover:bg-muted hover:text-foreground [&_svg]:size-[18px]"
>
@@ -253,7 +253,7 @@ export function RailDestinations(props: { destinations: RailDestination[]; onOpe
render={(
<button
type="button"
- aria-label="Settings"
+ aria-label={t("settings.tab_general")}
onClick={props.onOpenSettings}
className="flex size-9 items-center justify-center rounded-lg text-muted-foreground transition-colors hover:bg-muted hover:text-foreground [&_svg]:size-[18px]"
>
@@ -261,7 +261,7 @@ export function RailDestinations(props: { destinations: RailDestination[]; onOpe
</button>
)}
/>
- <TooltipContent side="right">Settings</TooltipContent>
+ <TooltipContent side="right">{t("settings.tab_general")}</TooltipContent>
</Tooltip>
</>
);
diff --git a/apps/app/src/react-app/domains/session/editor/outline-view.tsx b/apps/app/src/react-app/domains/session/editor/outline-view.tsx
index 8045a507..68c107d3 100644
--- a/apps/app/src/react-app/domains/session/editor/outline-view.tsx
+++ b/apps/app/src/react-app/domains/session/editor/outline-view.tsx
@@ -7,6 +7,7 @@ import type * as MonacoApi from "monaco-editor/editor/editor.api.js";
import { cn } from "@/lib/utils";
import { useEditorStore } from "./editor-store";
import { documentSymbols, useIsLspActive } from "./lsp";
+import { t } from "@/i18n";
// Monaco SymbolKind (0-based): a short mark per kind.
const KIND_MARK: Record<number, { mark: string; className: string }> = {
@@ -87,15 +88,15 @@ export function OutlineView(props: { model: MonacoApi.editor.ITextModel | null;
<div className={cn("flex min-h-0 flex-col border-t border-border text-xs", open ? "max-h-[45%]" : "")} data-editor-outline>
<button type="button" className="flex h-7 shrink-0 items-center gap-1 px-2 text-[10.5px] font-medium uppercase tracking-wide text-muted-foreground hover:text-foreground" onClick={() => setOpen((value) => !value)} aria-expanded={open}>
{open ? <ChevronDown className="size-3" /> : <ChevronRight className="size-3" />}
- Outline
+ {t("editor.outline")}
{props.path ? <span className="truncate normal-case tracking-normal">· {props.path.split("/").pop()}</span> : null}
</button>
{open ? (
<div className="min-h-0 overflow-y-auto px-1 pb-2">
- {!props.model ? <p className="px-2 text-muted-foreground">Open a file to see its symbols.</p>
- : !languageFeatures ? <p className="px-2 text-muted-foreground">Language features in the editor are off.</p>
- : symbols === null ? <p className="px-2 text-muted-foreground">{active ? "Loading symbols…" : "Symbols show once the file has been open a moment."}</p>
- : symbols.length === 0 ? <p className="px-2 text-muted-foreground">No symbols (no language server for this file, or none found).</p>
+ {!props.model ? <p className="px-2 text-muted-foreground">{t("editor.outline_no_file")}</p>
+ : !languageFeatures ? <p className="px-2 text-muted-foreground">{t("editor.outline_lang_off")}</p>
+ : symbols === null ? <p className="px-2 text-muted-foreground">{active ? t("editor.outline_loading") : t("editor.outline_wait")}</p>
+ : symbols.length === 0 ? <p className="px-2 text-muted-foreground">{t("editor.outline_none")}</p>
: symbols.map((symbol, index) => <SymbolRow key={`${symbol.name}:${index}`} symbol={symbol} depth={0} onReveal={props.onReveal} />)}
</div>
) : null}
diff --git a/apps/app/src/react-app/domains/session/editor/problems-view.tsx b/apps/app/src/react-app/domains/session/editor/problems-view.tsx
index fec8fa10..78bfd02e 100644
--- a/apps/app/src/react-app/domains/session/editor/problems-view.tsx
+++ b/apps/app/src/react-app/domains/session/editor/problems-view.tsx
@@ -12,6 +12,7 @@ import { Button } from "@/components/ui/button";
import { cn } from "@/lib/utils";
import { useEditorStore } from "./editor-store";
import { diagnosticCode, problemCounts, useProblemsStore, type LspDiagnostic } from "./lsp";
+import { t } from "@/i18n";
const EMPTY: never[] = [];
@@ -44,13 +45,13 @@ export function ProblemsView(props: {
<span className="flex-1" />
<label className="flex items-center gap-1" title="Problems, hover, go to definition, rename and outline from the project's language servers">
<input type="checkbox" checked={languageFeatures} onChange={(event) => setLanguageFeatures(event.target.checked)} data-editor-language-features />
- Language features
+ {t("settings.editor.language_features")}
</label>
<label className="flex items-center gap-1">
<input type="checkbox" checked={errorsOnly} onChange={(event) => setErrorsOnly(event.target.checked)} />
- Errors only
+ {t("editor.errors_only")}
</label>
- <Button variant="ghost" size="icon-xs" aria-label="Refresh problems" onClick={props.onRefresh}>
+ <Button variant="ghost" size="icon-xs" aria-label={t("editor.refresh_problems")} onClick={props.onRefresh}>
<RefreshCw className={cn(props.loading && "animate-spin")} />
</Button>
</div>
diff --git a/apps/app/src/react-app/domains/session/editor/quick-open.tsx b/apps/app/src/react-app/domains/session/editor/quick-open.tsx
index 27c9f235..33e2bc79 100644
--- a/apps/app/src/react-app/domains/session/editor/quick-open.tsx
+++ b/apps/app/src/react-app/domains/session/editor/quick-open.tsx
@@ -4,6 +4,7 @@ import { FileText } from "lucide-react";
import { cn } from "@/lib/utils";
import { rankPaths } from "./quick-open-rank";
+import { t } from "@/i18n";
type QuickOpenProps = {
files: readonly string[];
@@ -66,8 +67,8 @@ export function QuickOpen({ files, recent, onOpen, onClose }: QuickOpenProps) {
if (path) onOpen(path, event.metaKey || event.ctrlKey);
}
}}
- placeholder="Go to file…"
- aria-label="Go to file"
+ placeholder={t("editor.go_to_file_placeholder")}
+ aria-label={t("editor.go_to_file")}
className="h-11 w-full border-b border-border bg-transparent px-4 text-sm outline-none placeholder:text-muted-foreground"
/>
<div ref={listRef} role="listbox" className="min-h-0 flex-1 overflow-y-auto py-1">
diff --git a/apps/app/src/react-app/domains/session/editor/search-view.tsx b/apps/app/src/react-app/domains/session/editor/search-view.tsx
index 6556e223..7eb2687b 100644
--- a/apps/app/src/react-app/domains/session/editor/search-view.tsx
+++ b/apps/app/src/react-app/domains/session/editor/search-view.tsx
@@ -14,6 +14,7 @@ import { toast } from "@/components/ui/sonner";
import { cn } from "@/lib/utils";
import { ConfirmModal } from "@/react-app/design-system/modals/confirm-modal";
import type { EditorDocuments } from "./editor-models";
+import { t } from "@/i18n";
type Flags = { regex: boolean; caseSensitive: boolean; wholeWord: boolean };
@@ -220,9 +221,9 @@ export function SearchView(props: {
<div className="flex h-full min-h-0 flex-col text-xs" data-editor-search>
<ConfirmModal
open={confirming}
- title="Replace all?"
+ title={t("editor.replace_all_confirm")}
message={`Replace ${total} match${total === 1 ? "" : "es"} in ${visible.length} file${visible.length === 1 ? "" : "s"} with "${replace}"? The files are saved; each one can be undone in the editor.`}
- confirmLabel="Replace all"
+ confirmLabel={t("editor.replace_all")}
cancelLabel="Cancel"
onConfirm={confirmReplaceAll}
onCancel={() => setConfirming(false)}
@@ -231,7 +232,7 @@ export function SearchView(props: {
<div className="flex items-start gap-1">
<button
type="button"
- aria-label={showReplace ? "Hide replace" : "Show replace"}
+ aria-label={showReplace ? t("editor.hide_replace") : t("editor.show_replace")}
onClick={() => setShowReplace((value) => !value)}
className="mt-1 text-muted-foreground hover:text-foreground"
>
@@ -244,7 +245,7 @@ export function SearchView(props: {
value={query}
onChange={(event) => setQuery(event.target.value)}
placeholder="Search"
- aria-label="Search in files"
+ aria-label={t("editor.search_in_files")}
className="min-w-0 flex-1 bg-transparent px-2 outline-none placeholder:text-muted-foreground"
onKeyDown={(event) => {
if (event.altKey && event.key.toLowerCase() === "c") setFlags((value) => ({ ...value, caseSensitive: !value.caseSensitive }));
@@ -252,9 +253,9 @@ export function SearchView(props: {
if (event.altKey && event.key.toLowerCase() === "r") setFlags((value) => ({ ...value, regex: !value.regex }));
}}
/>
- {toggle("caseSensitive", "Match case", <CaseSensitive />, mac ? "⌥C" : "Alt+C")}
- {toggle("wholeWord", "Whole word", <WholeWord />, mac ? "⌥W" : "Alt+W")}
- {toggle("regex", "Regular expression", <Regex />, mac ? "⌥R" : "Alt+R")}
+ {toggle("caseSensitive", t("editor.match_case"), <CaseSensitive />, mac ? "⌥C" : "Alt+C")}
+ {toggle("wholeWord", t("editor.whole_word"), <WholeWord />, mac ? "⌥W" : "Alt+W")}
+ {toggle("regex", t("editor.regex"), <Regex />, mac ? "⌥R" : "Alt+R")}
</div>
{showReplace ? (
<div className="flex items-center gap-1">
@@ -262,10 +263,10 @@ export function SearchView(props: {
value={replace}
onChange={(event) => setReplace(event.target.value)}
placeholder="Replace"
- aria-label="Replace with"
+ aria-label={t("editor.replace_with")}
className="h-7 min-w-0 flex-1 rounded-md border border-border bg-background px-2 outline-none focus-visible:ring-1 focus-visible:ring-ring"
/>
- <Button variant="ghost" size="icon-xs" aria-label="Replace all" title="Replace all" disabled={!total} onClick={replaceAll}>
+ <Button variant="ghost" size="icon-xs" aria-label={t("editor.replace_all")} title={t("editor.replace_all")} disabled={!total} onClick={replaceAll}>
<ReplaceAll />
</Button>
</div>
@@ -273,7 +274,7 @@ export function SearchView(props: {
</div>
</div>
<button type="button" className="self-end text-[11px] text-muted-foreground hover:text-foreground" onClick={() => setShowFilters((value) => !value)}>
- {showFilters ? "Hide file filters" : "Files to include / exclude"}
+ {showFilters ? t("editor.hide_file_filters") : t("editor.file_filters")}
</button>
{showFilters ? (
<>
diff --git a/apps/app/src/react-app/domains/session/home/home-recent.tsx b/apps/app/src/react-app/domains/session/home/home-recent.tsx
index 8e685955..ab80076f 100644
--- a/apps/app/src/react-app/domains/session/home/home-recent.tsx
+++ b/apps/app/src/react-app/domains/session/home/home-recent.tsx
@@ -3,6 +3,7 @@ import { useLayoutEffect, useMemo, useRef, useState } from "react";
import { Search } from "lucide-react";
import { formatRelativeTime } from "@/app/utils";
+import { t } from "@/i18n";
import type { SearchableSession } from "@/react-app/domains/session/search/session-search";
import { homeChatTitle, recentChats, type HomeWorkspace } from "./home-view-model";
@@ -65,8 +66,8 @@ export function HomeContinue({ context }: { context: HomeViewContext }) {
if (!chats.length) return null;
return (
- <nav aria-label="Recent chats" className="-mt-2 flex h-6 items-center gap-2 pb-1 text-[12px] text-muted-foreground" data-testid="home-continue">
- <span className="shrink-0">Continue</span>
+ <nav aria-label={t("home.recent_chats")} className="-mt-2 flex h-6 items-center gap-2 pb-1 text-[12px] text-muted-foreground" data-testid="home-continue">
+ <span className="shrink-0">{t("home.continue")}</span>
<div ref={listRef} className="flex min-w-0 flex-1 items-center gap-0.5 overflow-hidden">
{chats.map((session, index) => {
const title = homeChatTitle(session.title);
@@ -78,7 +79,7 @@ export function HomeContinue({ context }: { context: HomeViewContext }) {
className={`group inline-flex h-6 max-w-[180px] shrink-0 items-center gap-1 rounded-md px-2 transition-colors hover:bg-accent focus-visible:bg-accent focus-visible:outline-none ${index < fits ? "" : "invisible absolute"}`}
onClick={() => context.onOpenSession(session.workspaceId, session.sessionId)}
title={`${title} \u2014 ${session.workspaceTitle} \u00b7 ${formatRelativeTime(session.updatedAt)}`}
- aria-label={`Continue ${title} in ${session.workspaceTitle}`}
+ aria-label={t("home.continue_chat", { title, workspace: session.workspaceTitle })}
aria-hidden={index < fits ? undefined : true}
tabIndex={index < fits ? undefined : -1}
data-testid="home-chat"
@@ -95,12 +96,12 @@ export function HomeContinue({ context }: { context: HomeViewContext }) {
type="button"
className="-mr-2 inline-flex h-6 shrink-0 items-center gap-1 rounded-md px-2 transition-colors hover:bg-accent hover:text-foreground focus-visible:bg-accent focus-visible:outline-none"
onClick={context.onOpenSearch}
- aria-label={`Search chats (${searchShortcut()})`}
- title={`Search chats (${searchShortcut()})`}
+ aria-label={t("home.search_chats", { shortcut: searchShortcut() })}
+ title={t("home.search_chats", { shortcut: searchShortcut() })}
data-testid="home-search"
>
<Search className="size-3" aria-hidden="true" />
- <span>Search</span>
+ <span>{t("home.search")}</span>
{/* The short Mac hint only: Ctrl+Shift+F would take a pill's room (it shows on hover). */}
{isMacPlatform() ? <span className="ml-1.5 text-[11px] opacity-60">⇧⌘F</span> : null}
</button>
diff --git a/apps/app/src/react-app/domains/session/sidebar/app-sidebar.tsx b/apps/app/src/react-app/domains/session/sidebar/app-sidebar.tsx
index 7bec101b..f947b329 100644
--- a/apps/app/src/react-app/domains/session/sidebar/app-sidebar.tsx
+++ b/apps/app/src/react-app/domains/session/sidebar/app-sidebar.tsx
@@ -1057,21 +1057,21 @@ function QualitySpinButtons({ quality }: { quality: AccountQuality }) {
<span className="flex items-center gap-0.5" data-testid="quality-footer-strip">
<SidebarIconButton
icon={Gift}
- label={ready > 0 ? `Spin, ${ready} ready` : "How to earn spins"}
+ label={ready > 0 ? t("quality.spin_ready", { count: ready }) : t("quality.how_to_earn_spins")}
title={spinRowTitle(quality)}
onClick={ready > 0 ? openSpin : openPanel}
data-testid="quality-spin-button"
data-spins={ready}
data-client-spins={stars}
className={cn(ready > 0 && "text-sidebar-foreground")}
- badge={ready > 0 ? <IconCount value={ready} label={`${ready} ready`} /> : null}
+ badge={ready > 0 ? <IconCount value={ready} label={t("quality.ready_count", { count: ready })} /> : null}
/>
{progress ? (
<button
type="button"
onClick={openPanel}
title={goodSessionWording(hint?.text ?? quality.nextTierHint ?? "Quality rewards")}
- aria-label={`Next spin ${progress}`}
+ aria-label={t("quality.next_spin", { progress })}
data-testid="quality-footer-next"
className="flex h-7 items-center gap-1 rounded-md px-1 text-[11px] text-muted-foreground tabular-nums transition hover:bg-sidebar-accent hover:text-foreground"
>
@@ -1113,8 +1113,8 @@ function NativeAccountFooter({ onOpenAccountSettings }: { onOpenAccountSettings:
const connected = status?.connected === true;
const accountLabel = connected
- ? status?.displayName?.trim() || status?.email?.trim() || "Your account"
- : "sign in to omnirush.ai";
+ ? status?.displayName?.trim() || status?.email?.trim() || t("sidebar.your_account")
+ : t("sidebar.sign_in_lower");
const usage = connected && status?.usage ? omnirushUsageSummary(status.usage) : null;
const quality = connected ? status?.quality ?? null : null;
// The account server label ("omnirush.ai", "localhost:8090 (local API)")
@@ -1124,16 +1124,16 @@ function NativeAccountFooter({ onOpenAccountSettings }: { onOpenAccountSettings:
? `${usage.short}${serverHost ? ` · ${serverHost}` : ""}`
: connected
? serverHost
- ? `connected to ${serverHost}`
- : "omnirush.ai models ready"
+ ? t("sidebar.connected_to", { host: serverHost })
+ : t("sidebar.models_ready")
: status?.reauthorizationRequired
- ? "Sign in again to continue"
- : "Use omnirush.ai models with your account";
+ ? t("sidebar.sign_in_again")
+ : t("sidebar.use_models_with_account");
const accountTooltip = connected
? serverHost
? `${accountLabel} · ${serverHost}`
: accountLabel
- : "Sign in to omnirush.ai";
+ : t("sidebar.sign_in");
return (
<SidebarFooter className="border-t border-sidebar-border/60 p-1.5 pe-0">
@@ -1144,7 +1144,7 @@ function NativeAccountFooter({ onOpenAccountSettings }: { onOpenAccountSettings:
className={cn("h-auto min-h-12 py-1.5", usage && "pe-7")}
onClick={onOpenAccountSettings}
tooltip={accountTooltip}
- aria-label={connected ? `${accountLabel} account` : "Sign in to omnirush.ai"}
+ aria-label={connected ? t("sidebar.account_label", { name: accountLabel }) : t("sidebar.sign_in")}
data-testid="native-account-profile"
data-account-server={serverHost ?? undefined}
>
@@ -1187,19 +1187,19 @@ function NativeAccountFooter({ onOpenAccountSettings }: { onOpenAccountSettings:
</SidebarMenuItem>
</SidebarMenu>
{/* Rewards on the left, feedback, release notes and Settings on the right: one row. */}
- <div role="group" aria-label="Account tools" data-testid="sidebar-footer-tools" className="flex items-center gap-0.5 pe-1.5">
+ <div role="group" aria-label={t("sidebar.account_tools")} data-testid="sidebar-footer-tools" className="flex items-center gap-0.5 pe-1.5">
{quality ? <QualitySpinButtons quality={quality} /> : null}
<span className="flex-1" />
{shellConfig.feedbackButton ? (
<SidebarIconButton
icon={MessageCircleMore}
- label="Send feedback"
+ label={t("session.support_feedback")}
onClick={() => openFeedbackDialog({ trigger: "menu" })}
data-testid="sidebar-send-feedback"
/>
) : null}
<WhatsNewIconButton />
- <SidebarIconButton icon={Settings} label="Settings" onClick={onOpenAccountSettings} data-testid="sidebar-settings" />
+ <SidebarIconButton icon={Settings} label={t("settings.tab_general")} onClick={onOpenAccountSettings} data-testid="sidebar-settings" />
</div>
</SidebarFooter>
);
@@ -1394,7 +1394,7 @@ export function AppSidebar(props: AppSidebarProps) {
>
<img
src={brandLogoUrl}
- alt="Organization logo"
+ alt={t("sidebar.org_logo")}
className="max-h-9 w-auto max-w-[140px] object-contain object-left"
/>
</div>
@@ -1412,14 +1412,14 @@ export function AppSidebar(props: AppSidebarProps) {
<div
className="absolute end-1.5 top-2.5 z-50 flex items-center gap-0.5 max-lg:hidden mac:top-[7px] mac:titlebar-no-drag"
role="group"
- aria-label="Conversation history controls"
+ aria-label={t("sidebar.history_controls")}
>
<Button
variant="ghost"
size="icon-xs"
className="rounded-lg text-sidebar-foreground/60 transition-colors hover:text-sidebar-foreground disabled:opacity-40"
- aria-label="Back in conversation history"
- title="Back in conversation history"
+ aria-label={t("sidebar.history_back")}
+ title={t("sidebar.history_back")}
data-conversation-history-control="back"
disabled={!props.conversationHistory.canGoBack}
onClick={() => props.conversationHistory?.onNavigate("back")}
@@ -1430,8 +1430,8 @@ export function AppSidebar(props: AppSidebarProps) {
variant="ghost"
size="icon-xs"
className="rounded-lg text-sidebar-foreground/60 transition-colors hover:text-sidebar-foreground disabled:opacity-40"
- aria-label="Forward in conversation history"
- title="Forward in conversation history"
+ aria-label={t("sidebar.history_forward")}
+ title={t("sidebar.history_forward")}
data-conversation-history-control="forward"
disabled={!props.conversationHistory.canGoForward}
onClick={() => props.conversationHistory?.onNavigate("forward")}
@@ -1469,56 +1469,56 @@ export function AppSidebar(props: AppSidebarProps) {
</SidebarMenuItem>
</SidebarMenu>
{/* One row of icons for the places opened now and then, so the chat list keeps the height. */}
- <div role="group" aria-label="Sidebar tools" data-testid="sidebar-tools" className="flex items-center gap-0.5">
+ <div role="group" aria-label={t("sidebar.tools")} data-testid="sidebar-tools" className="flex items-center gap-0.5">
<SidebarIconButton
icon={ShieldCheck}
- label="Audit trail"
+ label={t("sidebar.audit_trail")}
data-testid="audit-trail-toggle"
active={auditOpen}
aria-expanded={auditOpen}
- title={`Audit trail${props.selectedWorkspaceId && auditSummary.records.length > 0 ? ` (${auditSummary.records.length})` : ""}: a local activity record reconstructed from this task and workspace. Integrity verification is not enabled in this version.`}
+ title={`${t("sidebar.audit_trail")}${props.selectedWorkspaceId && auditSummary.records.length > 0 ? ` (${auditSummary.records.length})` : ""}${t("sidebar.audit_trail_hint")}`}
onClick={() => setAuditOpen((value) => !value)}
badge={auditSummary.records.some((record) => record.status === "failed")
- ? <IconDot className="bg-destructive" label="Audit trail has a failure" />
+ ? <IconDot className="bg-destructive" label={t("sidebar.audit_trail_failed")} />
: auditSummary.records.some((record) => record.status === "waiting")
- ? <IconDot className="bg-warning" label="Audit trail is waiting for approval" />
+ ? <IconDot className="bg-warning" label={t("sidebar.audit_trail_waiting")} />
: null}
/>
<SidebarIconButton
icon={Workflow}
- label="Workflows"
+ label={t("sidebar.workflows")}
data-testid="local-workflows-toggle"
aria-expanded={localWorkflowsOpen}
- title="Workflows: build sequential workflows and choose connected models for each step"
+ title={t("sidebar.workflows_hint")}
onClick={() => setLocalWorkflowsOpen(true)}
/>
{props.onOpenDashboard ? (
- <SidebarIconButton icon={Blocks} label="Dashboard" active={props.dashboardActive === true} onClick={props.onOpenDashboard} />
+ <SidebarIconButton icon={Blocks} label={t("sidebar.dashboard")} active={props.dashboardActive === true} onClick={props.onOpenDashboard} />
) : null}
{props.onOpenTasks ? (
<SidebarIconButton
icon={Layers}
- label="Parallel tasks"
+ label={t("sidebar.parallel_tasks")}
data-testid="sidebar-tasks"
active={props.tasksActive === true}
onClick={props.onOpenTasks}
- title={props.tasksRunningCount ? `Parallel tasks (${props.tasksRunningCount} running)` : "Parallel tasks"}
+ title={props.tasksRunningCount ? t("sidebar.parallel_tasks_running", { count: props.tasksRunningCount }) : t("sidebar.parallel_tasks")}
badge={props.tasksRunningCount ? (
- <IconCount value={props.tasksRunningCount} label={`${props.tasksRunningCount} running`} data-testid="sidebar-tasks-running" />
+ <IconCount value={props.tasksRunningCount} label={t("sidebar.running_count", { count: props.tasksRunningCount })} data-testid="sidebar-tasks-running" />
) : null}
/>
) : null}
{props.onOpenAutomations ? (
<SidebarIconButton
icon={Clock3}
- label="Automations"
+ label={t("sidebar.automations")}
active={props.automationsActive === true}
onClick={props.onOpenAutomations}
badge={props.automationsNeedAttention ? (
<AlertTriangle
data-automations-attention-indicator
className="absolute -end-0.5 -top-0.5 size-3! text-warning"
- aria-label="An Automation needs attention"
+ aria-label={t("sidebar.automation_attention")}
/>
) : null}
/>
diff --git a/apps/app/src/react-app/domains/session/surface/composer/sandbox-status-chip.tsx b/apps/app/src/react-app/domains/session/surface/composer/sandbox-status-chip.tsx
index 2ebcc6a1..50dbd6e1 100644
--- a/apps/app/src/react-app/domains/session/surface/composer/sandbox-status-chip.tsx
+++ b/apps/app/src/react-app/domains/session/surface/composer/sandbox-status-chip.tsx
@@ -3,6 +3,7 @@ import { useState } from "react";
import { Box, X } from "lucide-react";
import { Tooltip, TooltipContent, TooltipTrigger } from "@/components/ui/tooltip";
+import { t } from "@/i18n";
import { linuxSandboxView, useLinuxSandbox, type LinuxSandboxClient, type LinuxSandboxView } from "@/react-app/domains/settings/linux-sandbox";
type Props = {
@@ -46,17 +47,17 @@ function SandboxChip(props: { client: LinuxSandboxClient; workspaceId: string; o
return (
<Tooltip>
<TooltipTrigger
- render={<button type="button" aria-label="Linux sandbox: off for this project" data-testid="sandbox-host-builds-chip" className={chip} onClick={props.onOpenSettings} />}
+ render={<button type="button" aria-label={t("sandbox.chip_off_for_project")} data-testid="sandbox-host-builds-chip" className={chip} onClick={props.onOpenSettings} />}
>
<span className="relative">
<Box className="size-4" aria-hidden />
<span aria-hidden className={`absolute -right-0.5 -bottom-0.5 size-2 rounded-full ring-2 ring-dls-surface ${DOT.off}`} />
</span>
- <span className="hidden whitespace-nowrap @min-[760px]/composer:inline">Sandbox off</span>
+ <span className="hidden whitespace-nowrap @min-[760px]/composer:inline">{t("sandbox.chip_off")}</span>
</TooltipTrigger>
<TooltipContent>
<div className="flex max-w-64 flex-col">
- <span className="font-medium">Linux sandbox: off for this project</span>
+ <span className="font-medium">{t("sandbox.chip_off_for_project")}</span>
<span>{offWhy}</span>
</div>
</TooltipContent>
@@ -73,11 +74,11 @@ function SandboxChip(props: { client: LinuxSandboxClient; workspaceId: string; o
}
>
<Box className="size-4" aria-hidden />
- <span className="whitespace-nowrap">Use sandbox</span>
+ <span className="whitespace-nowrap">{t("sandbox.chip_use")}</span>
</TooltipTrigger>
- <TooltipContent>Your omnirush.ai server recommends running this project's commands in a Linux sandbox. Click to turn it on.</TooltipContent>
+ <TooltipContent>{t("sandbox.chip_offer_hint")}</TooltipContent>
</Tooltip>
- <button type="button" aria-label="Not now" className="mr-1 flex size-6 items-center justify-center rounded text-gray-9 hover:bg-gray-3 hover:text-gray-12" onClick={() => setOfferDismissed(true)}>
+ <button type="button" aria-label={t("sandbox.not_now")} className="mr-1 flex size-6 items-center justify-center rounded text-gray-9 hover:bg-gray-3 hover:text-gray-12" onClick={() => setOfferDismissed(true)}>
<X className="size-3.5" aria-hidden />
</button>
</div>
@@ -91,7 +92,7 @@ function SandboxChip(props: { client: LinuxSandboxClient; workspaceId: string; o
render={
<button
type="button"
- aria-label={`Linux sandbox: ${view.title}`}
+ aria-label={t("sandbox.chip_label", { state: view.title })}
data-testid="sandbox-status-chip"
data-tone={view.tone}
className={chip}
@@ -104,11 +105,11 @@ function SandboxChip(props: { client: LinuxSandboxClient; workspaceId: string; o
<span aria-hidden className={`absolute -right-0.5 -bottom-0.5 size-2 rounded-full ring-2 ring-dls-surface ${DOT[view.tone]}`} />
</span>
{/* An icon (its state in the tooltip and aria-label) until the composer is wide enough. */}
- <span className="hidden whitespace-nowrap @min-[760px]/composer:inline">Sandbox</span>
+ <span className="hidden whitespace-nowrap @min-[760px]/composer:inline">{t("sandbox.chip")}</span>
</TooltipTrigger>
<TooltipContent>
<div className="flex max-w-64 flex-col">
- <span className="font-medium">Linux sandbox: {view.title}</span>
+ <span className="font-medium">{t("sandbox.chip_label", { state: view.title })}</span>
{view.progress ? <span>{view.progress.label}</span> : view.detail ? <span>{view.detail}</span> : null}
{box.required && box.requiredText ? <span className="mt-1 text-gray-9">{box.requiredText.line}</span> : null}
</div>
diff --git a/apps/app/src/react-app/domains/session/surface/composer/subagent-model-menu.tsx b/apps/app/src/react-app/domains/session/surface/composer/subagent-model-menu.tsx
index 51c48bb6..36dcb0e8 100644
--- a/apps/app/src/react-app/domains/session/surface/composer/subagent-model-menu.tsx
+++ b/apps/app/src/react-app/domains/session/surface/composer/subagent-model-menu.tsx
@@ -3,6 +3,7 @@ import { useState } from "react";
import { LoaderCircle, Users } from "lucide-react";
import { toast } from "@/components/ui/sonner";
+import { t } from "@/i18n";
import {
DropdownMenu,
DropdownMenuContent,
@@ -15,8 +16,7 @@ import {
} from "@/components/ui/dropdown-menu";
import { useDesktopRestriction } from "@/react-app/domains/cloud/desktop-config-provider";
import {
- SAME_AS_MAIN_LABEL,
- SUBAGENT_MODEL_HELP,
+
subagentEffortLabel,
subagentEffortOptions,
subagentModelName,
@@ -55,16 +55,16 @@ function SubagentModelPicker(props: { client: SubagentModelClient; policyLocked:
const save = (next: { model?: string | null; effort?: string | null }) => {
if (locked) return;
void change(next)
- .then((saved) => toast.success(`Sub-agents: ${subagentSummary(state, saved)}. Applies to new tasks.`))
- .catch((reason: unknown) => toast.error(reason instanceof Error ? reason.message : "The sub-agent setting could not be saved."));
+ .then((saved) => toast.success(t("subagent.saved", { summary: subagentSummary(state, saved) })))
+ .catch((reason: unknown) => toast.error(reason instanceof Error ? reason.message : t("subagent.save_failed")));
};
return (
<DropdownMenu open={open} onOpenChange={(next) => { setOpen(next); if (next) void refetch(); }}>
<DropdownMenuTrigger
data-testid="subagent-model-trigger"
- aria-label={`Sub-agents: ${summary}`}
- title={props.policyLocked ? SUBAGENT_MENU_POLICY_LOCK : `Sub-agents: ${summary}${unavailable ? " (not available, sub-agents use the main model)" : ""}`}
+ aria-label={t("subagent.chip_label", { summary })}
+ title={props.policyLocked ? t("subagent.policy_lock") : `${t("subagent.chip_label", { summary })}${unavailable ? t("subagent.unavailable_suffix") : ""}`}
// An icon (the summary in its tooltip) until the composer is wide
// enough for the label, so it never squeezes the model selector.
className={`flex h-9 max-h-9 min-w-9 max-w-64 shrink-[4] items-center justify-center gap-1.5 overflow-hidden rounded-md px-2.5 text-sm transition-colors hover:bg-gray-3 @min-[720px]/composer:justify-start ${
@@ -72,15 +72,15 @@ function SubagentModelPicker(props: { client: SubagentModelClient; policyLocked:
}`}
>
{saving ? <LoaderCircle className="size-4 shrink-0 animate-spin" /> : <Users className="size-4 shrink-0" />}
- <span data-testid="subagent-model-label" className="hidden min-w-0 truncate whitespace-nowrap @min-[720px]/composer:inline">{custom ? summary : "Sub-agents"}</span>
+ <span data-testid="subagent-model-label" className="hidden min-w-0 truncate whitespace-nowrap @min-[720px]/composer:inline">{custom ? summary : t("subagent.title")}</span>
</DropdownMenuTrigger>
{/* Capped to the room the positioner measured, so a long menu scrolls inside the viewport instead of running off it. */}
<DropdownMenuContent side="top" sideOffset={10} className="max-h-[min(560px,var(--available-height))] w-[min(340px,calc(100vw-32px))] overflow-y-auto p-2">
<DropdownMenuGroup>
- <DropdownMenuLabel className="px-3 text-sm">Sub-agents: model</DropdownMenuLabel>
+ <DropdownMenuLabel className="px-3 text-sm">{t("subagent.model_label")}</DropdownMenuLabel>
<DropdownMenuRadioGroup value={setting.model ?? SAME}>
<DropdownMenuRadioItem value={SAME} disabled={locked} data-testid="subagent-model-same" onClick={() => save({ model: null })}>
- {SAME_AS_MAIN_LABEL}
+ {t("subagent.same_as_main")}
</DropdownMenuRadioItem>
{state.models.map((model) => (
<DropdownMenuRadioItem
@@ -100,17 +100,17 @@ function SubagentModelPicker(props: { client: SubagentModelClient; policyLocked:
))}
{setting.model && unavailable ? (
<DropdownMenuRadioItem value={setting.model} disabled>
- {subagentModelName(state, setting.model)} (not available)
+ {subagentModelName(state, setting.model)} {t("subagent.not_available")}
</DropdownMenuRadioItem>
) : null}
</DropdownMenuRadioGroup>
</DropdownMenuGroup>
<DropdownMenuSeparator />
<DropdownMenuGroup>
- <DropdownMenuLabel className="px-3 text-sm">Sub-agent effort</DropdownMenuLabel>
+ <DropdownMenuLabel className="px-3 text-sm">{t("subagent.effort_label")}</DropdownMenuLabel>
<DropdownMenuRadioGroup value={setting.effort ?? SAME}>
<DropdownMenuRadioItem value={SAME} disabled={locked} data-testid="subagent-effort-same" onClick={() => save({ effort: null })}>
- {SAME_AS_MAIN_LABEL}
+ {t("subagent.same_as_main")}
</DropdownMenuRadioItem>
{efforts.map((effort) => (
<DropdownMenuRadioItem
@@ -126,8 +126,8 @@ function SubagentModelPicker(props: { client: SubagentModelClient; policyLocked:
</DropdownMenuRadioGroup>
</DropdownMenuGroup>
<DropdownMenuSeparator />
- <p className="px-3 py-2 text-xs text-muted-foreground">{SUBAGENT_MODEL_HELP}</p>
- {props.policyLocked ? <p role="status" className="px-3 pb-2 text-xs text-muted-foreground">{SUBAGENT_MENU_POLICY_LOCK}</p> : null}
+ <p className="px-3 py-2 text-xs text-muted-foreground">{t("subagent.model_help")}</p>
+ {props.policyLocked ? <p role="status" className="px-3 pb-2 text-xs text-muted-foreground">{t("subagent.policy_lock")}</p> : null}
{error ? <p role="alert" className="px-3 pb-2 text-xs text-destructive">{error}</p> : null}
</DropdownMenuContent>
</DropdownMenu>
diff --git a/apps/app/src/react-app/domains/session/surface/find-bar.tsx b/apps/app/src/react-app/domains/session/surface/find-bar.tsx
index 1adbd07d..6a0ba88f 100644
--- a/apps/app/src/react-app/domains/session/surface/find-bar.tsx
+++ b/apps/app/src/react-app/domains/session/surface/find-bar.tsx
@@ -2,6 +2,7 @@ import { useCallback, useEffect, useRef, useState, type RefObject } from "react"
import { ChevronDown, ChevronUp, Search, X } from "lucide-react";
import { Button } from "@/components/ui/button";
+import { t } from "@/i18n";
import { Tooltip, TooltipContent, TooltipTrigger } from "@/components/ui/tooltip";
import { cn } from "@/lib/utils";
import { useSessionFindStore } from "./find-store";
@@ -288,7 +289,7 @@ export function SessionFindBar({
const counterText = activeQuery.length < MIN_QUERY_LENGTH
? ""
: totalMatches === 0
- ? "No matches"
+ ? t("find.no_matches")
: `${activeIndex + 1}/${totalMatches}`;
return (
@@ -316,12 +317,12 @@ export function SessionFindBar({
}
}}
className="h-7 w-48 bg-transparent px-1 text-sm text-dls-text outline-none placeholder:text-dls-secondary sm:h-8 sm:w-56"
- placeholder="Find in conversation"
- aria-label="Find in conversation"
+ placeholder={t("session.find_in_conversation")}
+ aria-label={t("session.find_in_conversation")}
/>
<span className={cn(
"min-w-14 text-right text-xs tabular-nums text-muted-foreground",
- counterText === "No matches" && "min-w-20",
+ counterText === t("find.no_matches") && "min-w-20",
)} aria-live="polite">
{counterText}
</span>
@@ -332,7 +333,7 @@ export function SessionFindBar({
type="button"
variant="ghost"
size="icon-xs"
- aria-label="Previous match"
+ aria-label={t("find.previous")}
disabled={totalMatches === 0}
onMouseDown={(event) => event.preventDefault()}
onClick={jumpToPrevious}
@@ -341,7 +342,7 @@ export function SessionFindBar({
</Button>
}
/>
- <TooltipContent>Previous match (⇧↵)</TooltipContent>
+ <TooltipContent>{t("find.previous")} (⇧↵)</TooltipContent>
</Tooltip>
<Tooltip>
<TooltipTrigger
@@ -350,7 +351,7 @@ export function SessionFindBar({
type="button"
variant="ghost"
size="icon-xs"
- aria-label="Next match"
+ aria-label={t("find.next")}
disabled={totalMatches === 0}
onMouseDown={(event) => event.preventDefault()}
onClick={jumpToNext}
@@ -359,7 +360,7 @@ export function SessionFindBar({
</Button>
}
/>
- <TooltipContent>Next match (↵)</TooltipContent>
+ <TooltipContent>{t("find.next")} (↵)</TooltipContent>
</Tooltip>
<Tooltip>
<TooltipTrigger
@@ -368,7 +369,7 @@ export function SessionFindBar({
type="button"
variant="ghost"
size="icon-xs"
- aria-label="Close find"
+ aria-label={t("find.close")}
onMouseDown={(event) => event.preventDefault()}
onClick={closeFind}
>
@@ -376,7 +377,7 @@ export function SessionFindBar({
</Button>
}
/>
- <TooltipContent>Close (Esc)</TooltipContent>
+ <TooltipContent>{t("common.close")} (Esc)</TooltipContent>
</Tooltip>
</div>
</div>
diff --git a/apps/app/src/react-app/domains/session/surface/scroll-overlay.tsx b/apps/app/src/react-app/domains/session/surface/scroll-overlay.tsx
index 475e85b6..4d64fcb0 100644
--- a/apps/app/src/react-app/domains/session/surface/scroll-overlay.tsx
+++ b/apps/app/src/react-app/domains/session/surface/scroll-overlay.tsx
@@ -1,5 +1,6 @@
import { memo, useCallback } from "react";
import { ArrowDown, ArrowUp } from "lucide-react";
+import { t } from "@/i18n";
import {
selectSessionIsStickyBottom,
@@ -30,8 +31,8 @@ const JumpToStartButton = memo(function JumpToStartButton({
type="button"
className="flex items-center gap-1 rounded-full px-3 py-1.5 text-xs text-dls-text transition-colors hover:bg-dls-hover @max-[34rem]/chatpane:p-1.5"
onClick={handleClick}
- aria-label="Jump to start"
- title="Jump to start"
+ aria-label={t("scroll.jump_to_start")}
+ title={t("scroll.jump_to_start")}
>
<ArrowUp className="hidden size-4 @max-[34rem]/chatpane:block" aria-hidden="true" />
<span className="@max-[34rem]/chatpane:hidden">Jump to start</span>
@@ -55,8 +56,8 @@ const JumpToLatestButton = memo(function JumpToLatestButton({
type="button"
className="flex items-center gap-1 rounded-full px-3 py-1.5 text-xs text-dls-text transition-colors hover:bg-dls-hover @max-[34rem]/chatpane:p-1.5"
onClick={handleClick}
- aria-label="Jump to latest"
- title="Jump to latest"
+ aria-label={t("scroll.jump_to_latest")}
+ title={t("scroll.jump_to_latest")}
>
<ArrowDown className="hidden size-4 @max-[34rem]/chatpane:block" aria-hidden="true" />
<span className="@max-[34rem]/chatpane:hidden">Jump to latest</span>
diff --git a/apps/app/src/react-app/domains/session/surface/session-surface.tsx b/apps/app/src/react-app/domains/session/surface/session-surface.tsx
index 935560d5..8edf36ff 100644
--- a/apps/app/src/react-app/domains/session/surface/session-surface.tsx
+++ b/apps/app/src/react-app/domains/session/surface/session-surface.tsx
@@ -1059,7 +1059,7 @@ function SessionErrorCard({ error, developerMode, onDismiss, onChangeModel, onOp
onDismiss();
}}
>
- Choose another folder
+ {t("session.choose_another_folder")}
</button>
</div>
) : null}
@@ -1076,7 +1076,7 @@ function SessionErrorCard({ error, developerMode, onDismiss, onChangeModel, onOp
onDismiss();
}}
>
- Use {s.providerID}/{s.modelID}
+ {t("session.use_model", { model: `${s.providerID}/${s.modelID}` })}
</button>
))
) : null}
@@ -1088,7 +1088,7 @@ function SessionErrorCard({ error, developerMode, onDismiss, onChangeModel, onOp
onDismiss();
}}
>
- Change model
+ {t("model_select.change_model")}
</button>
</div>
) : null}
@@ -1097,7 +1097,7 @@ function SessionErrorCard({ error, developerMode, onDismiss, onChangeModel, onOp
type="button"
className="shrink-0 rounded-full p-1 text-red-10 transition-colors hover:bg-red-3 hover:text-red-11"
onClick={onDismiss}
- aria-label="Dismiss error"
+ aria-label={t("session.dismiss_error")}
>
<svg width="14" height="14" viewBox="0 0 14 14" fill="none"><path d="M3.5 3.5l7 7M10.5 3.5l-7 7" stroke="currentColor" strokeWidth="1.5" strokeLinecap="round" /></svg>
</button>
diff --git a/apps/app/src/react-app/domains/settings/appearance/customise-sections.tsx b/apps/app/src/react-app/domains/settings/appearance/customise-sections.tsx
index 7c8c7161..e039d000 100644
--- a/apps/app/src/react-app/domains/settings/appearance/customise-sections.tsx
+++ b/apps/app/src/react-app/domains/settings/appearance/customise-sections.tsx
@@ -30,6 +30,7 @@ import {
LayoutSectionItemTitle,
} from "../settings-layout";
import { useActiveTheme, useAppearancePrefs } from "./theme-state";
+import { t } from "@/i18n";
type SectionProps = { busy: boolean };
@@ -58,6 +59,14 @@ function Row(props: { label: string; htmlFor?: string; children: ReactNode }) {
);
}
+/** Descriptive font choices are translated; named fonts keep their names. */
+function fontLabel(option: { id: string; label: string }): string {
+ if (option.label === "System default") return t("voice.system_default");
+ if (option.label === "System monospace") return t("settings.appearance.system_monospace");
+ if (option.label === "Same as code font") return t("settings.appearance.same_as_code_font");
+ return option.label;
+}
+
/** A range input with its value and an optional "Theme default" reset. */
function Slider(props: {
label: string;
@@ -91,7 +100,7 @@ function Slider(props: {
</span>
{props.onReset ? (
<Button variant="ghost" size="sm" onClick={props.onReset} disabled={props.disabled}>
- {props.resetLabel ?? "Reset"}
+ {props.resetLabel ?? t("common.reset")}
</Button>
) : null}
</Row>
@@ -139,19 +148,19 @@ export function AccentSection(props: SectionProps) {
return (
<Section
- title="Accent colour"
- description="Colours buttons, selection, focus rings and links in every theme. Checked for contrast against the current theme."
+ title={t("settings.appearance.accent_title")}
+ description={t("settings.appearance.accent_desc")}
testId="appearance-accent"
>
<div role="radiogroup" aria-label="Accent colour" className="flex flex-wrap items-center gap-2 py-1">
- {swatch("Theme accent", null, themeAccent)}
+ {swatch(t("settings.appearance.theme_accent"), null, themeAccent)}
{ACCENT_SWATCHES.map((item) => swatch(item.name, item.hex, item.hex))}
</div>
- <Row label="Custom colour" htmlFor={inputId}>
+ <Row label={t("settings.appearance.custom_colour")} htmlFor={inputId}>
<label className="relative size-7 shrink-0 overflow-hidden rounded-md border border-border" style={{ background: pickerValue }}>
<input
type="color"
- aria-label="Pick a custom accent colour"
+ aria-label={t("settings.appearance.pick_accent")}
value={pickerValue}
disabled={props.busy}
onChange={(event) => setAccent(event.target.value.toLowerCase())}
@@ -183,7 +192,7 @@ export function AccentSection(props: SectionProps) {
<span className="min-w-0 flex-1 text-foreground">
{check.uiRatio < 3 ? `Hard to see on this theme: ${ratio(check.uiRatio)} (needs 3:1). ` : ""}
{check.textRatio < 4.5 ? `Button text on it is ${ratio(check.textRatio)} (needs 4.5:1). ` : ""}
- Links already use a readable shade.
+ {t("settings.appearance.links_readable")}
</span>
{check.suggestion ? (
<Button size="sm" variant="outline" onClick={() => setAccent(check.suggestion)} data-testid="accent-use-suggestion">
@@ -206,7 +215,7 @@ function FontSelect(props: {
onChange: (id: string) => void;
testId: string;
}) {
- const items = props.options.map((option) => ({ value: option.id, label: option.label }));
+ const items = props.options.map((option) => ({ value: option.id, label: fontLabel(option) }));
return (
<Row label={props.label}>
<div className="w-64 max-w-full">
@@ -218,7 +227,7 @@ function FontSelect(props: {
<SelectGroup>
{props.options.map((option) => (
<SelectItem key={option.id} value={option.id} style={{ fontFamily: props.stackOf(option.id) }}>
- {option.label}
+ {fontLabel(option)}
</SelectItem>
))}
</SelectGroup>
@@ -236,12 +245,12 @@ export function FontsSection(props: SectionProps) {
const set = (patch: Partial<AppearancePrefs>) => setAppearancePrefs(patch);
return (
<Section
- title="Fonts and text"
- description="Pick the interface and code fonts separately. Named code fonts are used when installed on this computer."
+ title={t("settings.appearance.fonts_title")}
+ description={t("settings.appearance.fonts_desc")}
testId="appearance-fonts"
>
<FontSelect
- label="Interface font"
+ label={t("settings.appearance.interface_font")}
value={prefs.uiFont}
options={UI_FONTS}
stackOf={(id) => uiFontStack({ uiFont: id as AppearancePrefs["uiFont"], codeFont: prefs.codeFont }) ?? undefined}
@@ -250,7 +259,7 @@ export function FontsSection(props: SectionProps) {
testId="appearance-ui-font"
/>
<FontSelect
- label="Code font"
+ label={t("settings.appearance.code_font")}
value={prefs.codeFont}
options={CODE_FONTS}
stackOf={(id) => codeFontStack({ codeFont: id as AppearancePrefs["codeFont"] })}
@@ -259,14 +268,14 @@ export function FontsSection(props: SectionProps) {
testId="appearance-code-font"
/>
<Slider
- label="Text size"
+ label={t("settings.appearance.text_size")}
value={prefs.fontSizePx ?? active.fontSizePx}
range={FONT_SIZE_RANGE}
unit=" px"
disabled={props.busy}
onChange={(fontSizePx) => set({ fontSizePx })}
onReset={prefs.fontSizePx === null ? undefined : () => set({ fontSizePx: null })}
- resetLabel="Theme default"
+ resetLabel={t("settings.appearance.theme_default")}
testId="appearance-text-size"
/>
<p className="rounded-lg border border-border bg-muted/30 px-3 py-2 text-sm text-foreground" data-testid="appearance-font-sample">
@@ -281,8 +290,8 @@ export function LayoutLookSection(props: SectionProps) {
const prefs = useAppearancePrefs();
const active = useActiveTheme();
return (
- <Section title="Layout" description="Spacing and how rounded panels, buttons and cards are." testId="appearance-layout">
- <Row label="Density">
+ <Section title={t("ide.layout")} description={t("settings.appearance.layout_desc")} testId="appearance-layout">
+ <Row label={t("settings.appearance.density")}>
<ToggleGroup
value={[prefs.density]}
onValueChange={(value) => value[0] && setAppearancePrefs({ density: value[0] as AppearancePrefs["density"] })}
@@ -297,20 +306,20 @@ export function LayoutLookSection(props: SectionProps) {
data-testid={`appearance-density-${value}`}
className="h-7 rounded-md border border-transparent px-3 text-sm text-muted-foreground capitalize aria-pressed:border-foreground/70 aria-pressed:bg-background aria-pressed:font-medium aria-pressed:text-foreground aria-pressed:shadow-xs"
>
- {value}
+ {value === "compact" ? t("settings.appearance.density_compact") : t("settings.appearance.density_comfortable")}
</ToggleGroupItem>
))}
</ToggleGroup>
</Row>
<Slider
- label="Corner radius"
+ label={t("settings.appearance.corner_radius")}
value={prefs.radiusPx ?? active.radiusPx}
range={RADIUS_RANGE}
unit=" px"
disabled={props.busy}
onChange={(radiusPx) => setAppearancePrefs({ radiusPx })}
onReset={prefs.radiusPx === null ? undefined : () => setAppearancePrefs({ radiusPx: null })}
- resetLabel="Theme default"
+ resetLabel={t("settings.appearance.theme_default")}
testId="appearance-radius"
/>
</Section>
@@ -354,8 +363,8 @@ export function WallpaperSection(props: SectionProps) {
return (
<Section
- title="Wallpaper"
- description="Put a picture of your own behind the workspace. It stays on this computer."
+ title={t("settings.appearance.wallpaper")}
+ description={t("settings.appearance.wallpaper_desc")}
testId="appearance-wallpaper"
>
<div className="flex flex-wrap items-center gap-2 py-1">
@@ -369,15 +378,15 @@ export function WallpaperSection(props: SectionProps) {
/>
<Button size="sm" variant="outline" disabled={props.busy || working} onClick={() => fileRef.current?.click()} data-testid="wallpaper-choose">
<ImagePlus className="size-3.5" />
- {prefs.wallpaper ? "Change image…" : "Choose image…"}
+ {prefs.wallpaper ? t("settings.appearance.change_image") : t("settings.appearance.choose_image")}
</Button>
{prefs.wallpaper ? (
<Button size="sm" variant="ghost" disabled={props.busy || working} onClick={() => void removeWallpaper()} data-testid="wallpaper-remove">
<Trash2 className="size-3.5" />
- Remove
+ {t("common.remove")}
</Button>
) : (
- <span className="text-xs text-muted-foreground">PNG, JPEG, WebP, AVIF or GIF, up to 8 MB.</span>
+ <span className="text-xs text-muted-foreground">{t("settings.appearance.image_types")}</span>
)}
</div>
{error ? (
@@ -388,7 +397,7 @@ export function WallpaperSection(props: SectionProps) {
{prefs.wallpaper ? (
<>
<Slider
- label="Dim picture"
+ label={t("settings.appearance.dim_picture")}
value={prefs.wallpaperDim}
range={WALLPAPER_DIM_RANGE}
unit="%"
@@ -397,7 +406,7 @@ export function WallpaperSection(props: SectionProps) {
testId="wallpaper-dim"
/>
<Slider
- label="Panel opacity"
+ label={t("settings.appearance.panel_opacity")}
value={reduced ? 100 : prefs.panelOpacity}
range={PANEL_OPACITY_RANGE}
unit="%"
@@ -406,7 +415,7 @@ export function WallpaperSection(props: SectionProps) {
testId="wallpaper-opacity"
/>
<Slider
- label="Sidebar blur"
+ label={t("settings.appearance.sidebar_blur")}
value={reduced ? 0 : prefs.panelBlur}
range={PANEL_BLUR_RANGE}
unit=" px"
@@ -416,7 +425,7 @@ export function WallpaperSection(props: SectionProps) {
/>
{reduced ? (
<p className="text-xs text-muted-foreground" data-testid="wallpaper-reduced">
- Your system asks for less transparency, so panels stay solid and nothing is blurred.
+ {t("settings.appearance.reduced_transparency")}
</p>
) : null}
</>
diff --git a/apps/app/src/react-app/domains/settings/appearance/language-section.tsx b/apps/app/src/react-app/domains/settings/appearance/language-section.tsx
index d2c53364..8001d790 100644
--- a/apps/app/src/react-app/domains/settings/appearance/language-section.tsx
+++ b/apps/app/src/react-app/domains/settings/appearance/language-section.tsx
@@ -30,7 +30,7 @@ export function LanguageSection(props: LanguageSectionProps) {
<div className="w-64 max-w-full">
<Select
value={props.language}
- items={LANGUAGE_OPTIONS}
+ items={LANGUAGE_OPTIONS.map((option) => ({ value: option.value, label: option.nativeName }))}
onValueChange={(value) => {
if (value) props.setLanguage(value);
}}
diff --git a/apps/app/src/react-app/domains/settings/appearance/theme-presets-section.tsx b/apps/app/src/react-app/domains/settings/appearance/theme-presets-section.tsx
index ec20b09f..eb72e54d 100644
--- a/apps/app/src/react-app/domains/settings/appearance/theme-presets-section.tsx
+++ b/apps/app/src/react-app/domains/settings/appearance/theme-presets-section.tsx
@@ -13,6 +13,7 @@ import {
LayoutSectionItemTitle,
} from "../settings-layout";
import { ThemeVariantThumb } from "./theme-preview";
+import { t } from "@/i18n";
type Props = {
busy: boolean;
@@ -29,7 +30,7 @@ type Props = {
};
const modesLabel = (modes: readonly string[]) =>
- modes.length === 2 ? "Light / Dark" : modes[0] === "dark" ? "Dark only" : "Light only";
+ modes.length === 2 ? t("settings.appearance.light_dark") : modes[0] === "dark" ? t("settings.appearance.dark_only") : t("settings.appearance.light_only");
function swatchesOf(v: ThemeVariant) {
return [v.accent, v.surface, v.code.string, v.code.function];
@@ -90,18 +91,18 @@ export function ThemePresetsSection(props: Props) {
return (
<LayoutSectionItem>
<LayoutSectionItemHeader className="w-full">
- <LayoutSectionItemTitle>Theme</LayoutSectionItemTitle>
+ <LayoutSectionItemTitle>{t("settings.theme_title")}</LayoutSectionItemTitle>
<LayoutSectionItemDescription>
- Each preset has a light and a dark version (Midnight is dark only); the mode above picks which one you see.
+ {t("settings.appearance.presets_desc")}
</LayoutSectionItemDescription>
</LayoutSectionItemHeader>
- <div role="radiogroup" aria-label="Theme" className="grid grid-cols-2 gap-3 @xl/settings:grid-cols-3 @3xl/settings:grid-cols-4">
+ <div role="radiogroup" aria-label={t("settings.theme_title")} className="grid grid-cols-2 gap-3 @xl/settings:grid-cols-3 @3xl/settings:grid-cols-4">
{THEME_PRESETS.map((preset) => (
<Card
key={preset.id}
testId={`theme-preset-${preset.id}`}
selected={props.selectedId === preset.id}
- label={preset.name}
+ label={preset.id === "default" ? t("settings.appearance.preset_default") : preset.id === "high-contrast" ? t("settings.appearance.preset_high_contrast") : preset.name}
meta={modesLabel(presetModes(preset))}
disabled={props.busy}
onClick={() => props.onPickPreset(preset.id)}
@@ -123,7 +124,7 @@ export function ThemePresetsSection(props: Props) {
<button
type="button"
onClick={() => props.onEditCustom(id)}
- aria-label={`Edit ${theme.name}`}
+ aria-label={t("settings.appearance.edit_theme", { name: theme.name })}
data-testid={`theme-edit-${id}`}
className="flex size-6 items-center justify-center rounded-md border border-border bg-popover text-foreground shadow-xs outline-none hover:bg-muted focus-visible:ring-2 focus-visible:ring-ring"
>
@@ -132,7 +133,7 @@ export function ThemePresetsSection(props: Props) {
<button
type="button"
onClick={() => props.onDeleteCustom(id)}
- aria-label={`Delete ${theme.name}`}
+ aria-label={t("settings.appearance.delete_theme", { name: theme.name })}
data-testid={`theme-delete-${id}`}
className="flex size-6 items-center justify-center rounded-md border border-border bg-popover text-foreground shadow-xs outline-none hover:bg-muted focus-visible:ring-2 focus-visible:ring-ring"
>
@@ -155,13 +156,13 @@ export function ThemePresetsSection(props: Props) {
<Plus className="size-4" />
</span>
<span className="px-1 pb-0.5 font-medium">
- {props.customThemes.length >= props.maxCustomThemes ? `Up to ${props.maxCustomThemes} custom themes` : "New custom theme"}
+ {props.customThemes.length >= props.maxCustomThemes ? t("settings.appearance.max_custom_themes", { count: props.maxCustomThemes }) : t("settings.appearance.new_custom_theme")}
</span>
</button>
</div>
<p className="flex items-center gap-1.5 text-xs text-muted-foreground" data-testid="theme-mode-note" role="status">
<Moon className="size-3 shrink-0" />
- {props.note ?? "Midnight is dark only. Choosing it while Mode is Light switches Mode to Dark."}
+ {props.note ?? t("settings.appearance.midnight_note")}
</p>
</LayoutSectionItem>
);
diff --git a/apps/app/src/react-app/domains/settings/appearance/theme-section.tsx b/apps/app/src/react-app/domains/settings/appearance/theme-section.tsx
index e2e0b0f5..3f14faea 100644
--- a/apps/app/src/react-app/domains/settings/appearance/theme-section.tsx
+++ b/apps/app/src/react-app/domains/settings/appearance/theme-section.tsx
@@ -25,8 +25,8 @@ export function ThemeSection(props: ThemeSectionProps) {
return (
<LayoutSectionItem>
<LayoutSectionItemHeader className="w-full">
- <LayoutSectionItemTitle>Mode</LayoutSectionItemTitle>
- <LayoutSectionItemDescription>System follows your computer's light or dark setting.</LayoutSectionItemDescription>
+ <LayoutSectionItemTitle>{t("settings.appearance.mode")}</LayoutSectionItemTitle>
+ <LayoutSectionItemDescription>{t("settings.appearance.mode_desc")}</LayoutSectionItemDescription>
</LayoutSectionItemHeader>
<ToggleGroup
value={[props.themeMode]}
@@ -35,7 +35,7 @@ export function ThemeSection(props: ThemeSectionProps) {
props.setThemeMode(value[0] as ThemeMode);
}}
disabled={props.busy}
- aria-label="Mode"
+ aria-label={t("settings.appearance.mode")}
className="w-fit gap-0.5 rounded-lg border border-border bg-muted/40 p-0.5"
>
{items.map((item) => (
diff --git a/apps/app/src/react-app/domains/settings/appearance/theme-share-section.tsx b/apps/app/src/react-app/domains/settings/appearance/theme-share-section.tsx
index 20f2f4a0..eef8387e 100644
--- a/apps/app/src/react-app/domains/settings/appearance/theme-share-section.tsx
+++ b/apps/app/src/react-app/domains/settings/appearance/theme-share-section.tsx
@@ -22,6 +22,7 @@ import {
LayoutSectionItemTitle,
} from "../settings-layout";
import { ThemeVariantThumb } from "./theme-preview";
+import { t } from "@/i18n";
export const DISCORD_SHOWCASE_URL = "https://discord.com/channels/1554572994326827069/1556709953916641280";
export const DISCORD_INVITE_URL = "https://discord.gg/9nu5rMQTDP";
@@ -94,19 +95,19 @@ function ImportPreviewCard(props: Pick<Props, "onKeep" | "onEditFirst" | "onCanc
{summary.failing.length === 0 ? (
<>
<Button size="sm" onClick={props.onKeep} data-testid="theme-import-keep">
- Keep theme
+ {t("settings.theme_share.keep")}
</Button>
<Button size="sm" variant="outline" onClick={props.onEditFirst} data-testid="theme-import-edit">
- Edit first
+ {t("settings.theme_share.edit_first")}
</Button>
</>
) : (
<Button size="sm" onClick={props.onEditFirst} data-testid="theme-import-edit">
- Fix in editor
+ {t("settings.theme_share.fix_in_editor")}
</Button>
)}
<Button size="sm" variant="ghost" onClick={props.onCancelImport} data-testid="theme-import-cancel">
- Cancel
+ {t("common.cancel")}
</Button>
</div>
<p className="text-xs text-muted-foreground">Keeping it adds it to your custom themes.</p>
@@ -168,26 +169,25 @@ export function ThemeShareSection(props: Props) {
return (
<LayoutSectionItem>
<LayoutSectionItemHeader className="w-full">
- <LayoutSectionItemTitle>Share and import</LayoutSectionItemTitle>
+ <LayoutSectionItemTitle>{t("settings.theme_share.title")}</LayoutSectionItemTitle>
<LayoutSectionItemDescription>
- A theme code holds the whole custom theme: both versions, corner radius and font size. Nothing else from your
- settings is included.
+ {t("settings.theme_share.desc")}
</LayoutSectionItemDescription>
</LayoutSectionItemHeader>
<div className="flex flex-wrap items-center gap-2 rounded-xl border border-border p-3">
- <span className="w-14 text-sm font-medium text-foreground">Export</span>
+ <span className="w-14 text-sm font-medium text-foreground">{t("settings.export")}</span>
<input
readOnly
- aria-label="Theme code"
- value={code || "Create a custom theme to get a code."}
+ aria-label={t("settings.theme_share.code")}
+ value={code || t("settings.theme_share.no_code")}
onFocus={(event) => event.currentTarget.select()}
className="min-w-0 flex-1 truncate rounded-lg border border-border bg-background px-2 py-1.5 font-mono text-xs text-muted-foreground outline-none"
data-testid="theme-export-code"
/>
<Button size="sm" disabled={!code} onClick={() => void copy()} data-testid="theme-copy-code">
{copied ? <Check /> : <Copy />}
- {copied ? "Copied" : "Copy theme code"}
+ {copied ? t("config.copied") : t("settings.theme_share.copy")}
</Button>
<Button
size="sm"
@@ -201,13 +201,13 @@ export function ThemeShareSection(props: Props) {
data-testid="theme-save-file"
>
<Download />
- Save file…
+ {t("settings.theme_share.save_file")}
</Button>
</div>
<div className="grid gap-3 @2xl/settings:grid-cols-2">
<div className="flex flex-col gap-2 rounded-xl border border-border p-3">
- <span className="text-sm font-medium text-foreground">Import</span>
+ <span className="text-sm font-medium text-foreground">{t("den.import_provider")}</span>
<form
className="flex gap-2"
onSubmit={(event) => {
@@ -216,7 +216,7 @@ export function ThemeShareSection(props: Props) {
}}
>
<input
- aria-label="Paste a theme code"
+ aria-label={t("settings.theme_share.paste")}
placeholder="omnirush-theme:1:…"
value={input}
onChange={(event) => {
@@ -228,14 +228,14 @@ export function ThemeShareSection(props: Props) {
data-testid="theme-import-input"
/>
<Button size="sm" variant="outline" type="submit" disabled={!input.trim()} data-testid="theme-import-preview-button">
- Preview
+{t("settings.theme_share.preview")}
</Button>
</form>
{error ? (
<p className="flex items-start gap-1.5 text-xs text-destructive" role="alert" data-testid="theme-import-error">
<AlertTriangle className="mt-0.5 size-3 shrink-0" />
<span>
- <b>This isn't a valid theme:</b> {error}. Nothing was changed.
+ <b>{t("settings.theme_share.invalid")}</b> {t("settings.theme_share.invalid_detail", { error })}
</span>
</p>
) : null}
@@ -253,23 +253,23 @@ export function ThemeShareSection(props: Props) {
/>
<Button size="sm" variant="outline" onClick={() => fileRef.current?.click()}>
<Upload />
- Open file…
+ {t("settings.theme_share.open_file")}
</Button>
</div>
<div className="text-xs text-muted-foreground">
- <b className="text-foreground">What a theme code can contain</b>
+ <b className="text-foreground">{t("settings.theme_share.rules_title")}</b>
<ul className="mt-1 list-disc pl-5">
- <li>Starts with omnirush-theme:1: (version 1)</li>
- <li>Colours are #rrggbb hex only</li>
- <li>Unknown keys are rejected, nothing is guessed</li>
- <li>At most 8 KB once decoded</li>
- <li>Corner radius 0–16 px, font size 12–16 px</li>
- <li>One or both modes, listed in modes</li>
+ <li>{t("settings.theme_share.rule_prefix")}</li>
+ <li>{t("settings.theme_share.rule_colours")}</li>
+ <li>{t("settings.theme_share.rule_keys")}</li>
+ <li>{t("settings.theme_share.rule_size")}</li>
+ <li>{t("settings.theme_share.rule_ranges")}</li>
+ <li>{t("settings.theme_share.rule_modes")}</li>
</ul>
</div>
</div>
<div className="flex flex-col gap-2 rounded-xl border border-border p-3">
- <span className="text-sm font-medium text-foreground">Preview, then confirm</span>
+ <span className="text-sm font-medium text-foreground">{t("settings.theme_share.preview_confirm")}</span>
{props.importing ? (
<ImportPreviewCard
theme={props.importing.theme}
@@ -280,7 +280,7 @@ export function ThemeShareSection(props: Props) {
/>
) : (
<p className="text-xs text-muted-foreground">
- Paste a code or open a file. The theme shows in the whole window before you decide to keep it.
+ {t("settings.theme_share.preview_hint")}
</p>
)}
</div>
@@ -295,19 +295,19 @@ export function ThemeShareSection(props: Props) {
onClick={() => platform.openLink(DISCORD_SHOWCASE_URL)}
data-testid="theme-discord-showcase"
>
- Share your theme in #showcase on Discord
+ {t("settings.theme_share.discord_share")}
</button>
<ExternalLink className="size-3" />
</span>
<span>
- Not a member yet?{" "}
+ {t("settings.theme_share.not_member")}{" "}
<button
type="button"
className="text-foreground underline underline-offset-2"
onClick={() => platform.openLink(DISCORD_INVITE_URL)}
data-testid="theme-discord-join"
>
- Join our Discord
+ {t("settings.theme_share.join_discord")}
</button>
</span>
</p>
diff --git a/apps/app/src/react-app/domains/settings/appearance/window-section.tsx b/apps/app/src/react-app/domains/settings/appearance/window-section.tsx
index 5267eb54..c191a13d 100644
--- a/apps/app/src/react-app/domains/settings/appearance/window-section.tsx
+++ b/apps/app/src/react-app/domains/settings/appearance/window-section.tsx
@@ -45,11 +45,11 @@ export function WindowSection(props: WindowSectionProps) {
<LayoutSectionItem className="hidden windows:flex linux:flex">
<LayoutSectionItemHeader>
- <LayoutSectionItemTitle>Display menu bar</LayoutSectionItemTitle>
- <LayoutSectionItemDescription>Show the native desktop menu bar.</LayoutSectionItemDescription>
+ <LayoutSectionItemTitle>{t("settings.appearance.menu_bar")}</LayoutSectionItemTitle>
+ <LayoutSectionItemDescription>{t("settings.appearance.menu_bar_desc")}</LayoutSectionItemDescription>
<LayoutSectionItemHeaderActions>
<Switch
- aria-label="Display menu bar"
+ aria-label={t("settings.appearance.menu_bar")}
checked={applicationMenuVisible}
disabled={props.busy}
onCheckedChange={setApplicationMenuVisible}
diff --git a/apps/app/src/react-app/domains/settings/linux-sandbox-card.tsx b/apps/app/src/react-app/domains/settings/linux-sandbox-card.tsx
index 744a5e3d..9bde65a5 100644
--- a/apps/app/src/react-app/domains/settings/linux-sandbox-card.tsx
+++ b/apps/app/src/react-app/domains/settings/linux-sandbox-card.tsx
@@ -12,7 +12,6 @@ import { Switch } from "@/components/ui/switch";
import { ConfirmModal } from "@/react-app/design-system/modals/confirm-modal";
import {
- LINUX_SANDBOX_HELP,
linuxSandboxBackendChoices,
linuxSandboxBackendSummary,
linuxSandboxView,
@@ -21,6 +20,7 @@ import {
type LinuxSandboxProblem,
type LinuxSandboxView,
} from "./linux-sandbox";
+import { t } from "@/i18n";
export type LinuxSandboxCardProps = {
box: OmniRushWorkspaceBox | null;
@@ -72,7 +72,7 @@ function CopyCommand({ command }: { command: string }) {
<Button
variant="ghost"
size="icon-xs"
- aria-label={copied ? "Copied" : "Copy command"}
+ aria-label={copied ? t("config.copied") : t("sandbox.copy_command")}
onClick={() => void navigator.clipboard?.writeText(command).then(() => setCopied(true)).catch(() => undefined)}
>
{copied ? <Check aria-hidden /> : <Copy aria-hidden />}
@@ -96,7 +96,7 @@ function Details({ text }: { text: string }) {
<Collapsible open={open} onOpenChange={setOpen}>
<CollapsibleTrigger className="mt-1 inline-flex items-center gap-0.5 rounded text-[11px] text-dls-secondary underline-offset-2 hover:text-dls-text hover:underline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-dls-border">
<ChevronRight aria-hidden className={`size-3 motion-safe:transition-transform ${open ? "rotate-90" : ""}`} />
- {open ? "Hide details" : "Show details"}
+ {open ? t("sandbox.hide_details") : t("sandbox.show_details")}
</CollapsibleTrigger>
<CollapsibleContent>
<pre className="mt-1 max-h-32 overflow-auto whitespace-pre-wrap break-words rounded-lg border border-dls-border bg-dls-hover p-2 font-mono text-[11px] text-dls-secondary" data-testid="linux-sandbox-error-detail">{text}</pre>
@@ -117,7 +117,7 @@ function StatusRow(props: { view: LinuxSandboxView; busy: boolean; onAction: ()
{view.progress ? (
<ProgressPrimitive.Root
value={view.progress.value}
- aria-label="Sandbox download"
+ aria-label={t("sandbox.download_label")}
getAriaValueText={() => view.progress?.label ?? ""}
className="flex h-[18px] items-center gap-2"
data-testid="linux-sandbox-progress"
@@ -159,14 +159,14 @@ function Advanced(props: { box: OmniRushWorkspaceBox; busy: boolean; defaultOpen
<Collapsible open={open} onOpenChange={setOpen} className="border-t border-dls-border">
<CollapsibleTrigger className="flex w-full items-center gap-1.5 rounded-b-2xl px-4 py-2.5 text-left text-[12px] text-dls-secondary hover:text-dls-text focus-visible:outline-2 focus-visible:-outline-offset-2 focus-visible:outline-dls-border" data-testid="linux-sandbox-advanced">
<ChevronRight aria-hidden className={`size-3.5 motion-safe:transition-transform ${open ? "rotate-90" : ""}`} />
- <span className="font-medium">Advanced</span>
+ <span className="font-medium">{t("mcp.advanced")}</span>
<span className={`ml-auto truncate text-[11px] ${open ? "invisible" : ""}`}>{choices.find((choice) => choice.value === box.backendSetting.value)?.label ?? box.backendSetting.value}</span>
</CollapsibleTrigger>
<CollapsibleContent>
<div className="space-y-4 px-4 pb-4 pt-1">
<div className="flex flex-wrap items-center gap-x-4 gap-y-2">
<div className="min-w-0 flex-1">
- <label htmlFor={selectId} className="text-[12px] font-medium text-dls-text">Backend</label>
+ <label htmlFor={selectId} className="text-[12px] font-medium text-dls-text">{t("sandbox.backend")}</label>
<div className="text-[11px] text-dls-secondary" data-testid="linux-sandbox-backend">{linuxSandboxBackendSummary(box)}</div>
</div>
{props.onBackend ? (
@@ -179,8 +179,8 @@ function Advanced(props: { box: OmniRushWorkspaceBox; busy: boolean; defaultOpen
}}
disabled={props.busy || lockedByEnv}
>
- <SelectTrigger id={selectId} className="w-full" aria-label="Sandbox backend">
- <SelectValue placeholder="Automatic (recommended)" />
+ <SelectTrigger id={selectId} className="w-full" aria-label={t("sandbox.backend_label")}>
+ <SelectValue placeholder={t("sandbox.automatic_recommended")} />
</SelectTrigger>
<SelectContent>
<SelectGroup>
@@ -196,13 +196,13 @@ function Advanced(props: { box: OmniRushWorkspaceBox; busy: boolean; defaultOpen
{required ? <div className="-mt-2 text-[11px] text-dls-secondary" data-testid="linux-sandbox-backend-required">“Off (this computer)”: {box.requiredText?.optOut}</div> : null}
{others.length ? (
<div>
- <div className="text-[11px] font-medium text-dls-secondary">Other backends on this computer</div>
+ <div className="text-[11px] font-medium text-dls-secondary">{t("sandbox.other_backends")}</div>
<ul className="mt-1 space-y-0.5" data-testid="linux-sandbox-others">
{others.map((alt) => (
<li key={alt.id} className="flex min-w-0 items-baseline gap-2 text-[11px]">
<span aria-hidden className={`size-1.5 shrink-0 translate-y-[-1px] rounded-full ${alt.ok ? "bg-green-9" : "bg-gray-7"}`} />
<span className="shrink-0 text-dls-text">{alt.label}</span>
- <span className="min-w-0 truncate text-dls-secondary" title={alt.reason ?? undefined}>{alt.ok ? "available" : alt.reason ?? "not available"}</span>
+ <span className="min-w-0 truncate text-dls-secondary" title={alt.reason ?? undefined}>{alt.ok ? t("sandbox.available") : alt.reason ?? t("sandbox.not_available")}</span>
</li>
))}
</ul>
@@ -210,22 +210,22 @@ function Advanced(props: { box: OmniRushWorkspaceBox; busy: boolean; defaultOpen
) : null}
<div className="flex flex-wrap items-center gap-x-4 gap-y-2">
<div className="min-w-0 flex-1">
- <div className="text-[12px] font-medium text-dls-text">Reset sandbox</div>
+ <div className="text-[12px] font-medium text-dls-text">{t("sandbox.reset_title")}</div>
<div className="text-[11px] text-dls-secondary">
- {canReset ? "Removes this project's container and everything installed in it. Your project files are not touched." : "Nothing to reset: this project has no sandbox yet."}
+ {canReset ? t("sandbox.reset_desc") : t("sandbox.reset_nothing")}
</div>
</div>
- <Button variant="destructive" size="xs" disabled={props.busy || !canReset} onClick={() => setConfirmReset(true)}>Reset…</Button>
+ <Button variant="destructive" size="xs" disabled={props.busy || !canReset} onClick={() => setConfirmReset(true)}>{t("sandbox.reset_button")}</Button>
</div>
</div>
</CollapsibleContent>
<ConfirmModal
open={confirmReset}
variant="danger"
- title="Reset the sandbox?"
- message="This removes the project's Linux container and everything installed in it. Your project files stay as they are. The next command starts a fresh sandbox."
- confirmLabel="Reset sandbox"
- cancelLabel="Cancel"
+ title={t("sandbox.reset_confirm_title")}
+ message={t("sandbox.reset_confirm_message")}
+ confirmLabel={t("sandbox.reset_title")}
+ cancelLabel={t("common.cancel")}
onCancel={() => setConfirmReset(false)}
onConfirm={() => {
setConfirmReset(false);
@@ -263,7 +263,7 @@ export function LinuxSandboxCard(props: LinuxSandboxCardProps) {
};
return (
<section ref={sectionRef} className="scroll-mt-6 space-y-3" id="linux-sandbox" aria-labelledby={`${switchId}-heading`} data-testid="linux-sandbox-card">
- <div id={`${switchId}-heading`} className="text-[11px] font-semibold uppercase tracking-[0.15em] text-dls-secondary">Linux sandbox</div>
+ <div id={`${switchId}-heading`} className="text-[11px] font-semibold uppercase tracking-[0.15em] text-dls-secondary">{t("sandbox.section_title")}</div>
<div className="rounded-2xl border border-dls-border bg-dls-surface">
<div className="flex items-center gap-4 p-4">
<div className="flex h-10 w-10 shrink-0 items-center justify-center rounded-xl border border-dls-border bg-dls-hover">
@@ -271,10 +271,10 @@ export function LinuxSandboxCard(props: LinuxSandboxCardProps) {
</div>
<div className="min-w-0 flex-1">
<div className="flex items-center gap-2">
- <label htmlFor={switchId} className="text-[13px] font-medium text-dls-text">Run commands in a Linux sandbox</label>
- <span className="rounded-full border border-dls-border px-1.5 py-px text-[10px] font-medium uppercase tracking-wide text-dls-secondary">Beta</span>
+ <label htmlFor={switchId} className="text-[13px] font-medium text-dls-text">{t("sandbox.run_in_sandbox")}</label>
+ <span className="rounded-full border border-dls-border px-1.5 py-px text-[10px] font-medium uppercase tracking-wide text-dls-secondary">{t("common.beta")}</span>
</div>
- <div id="linux-sandbox-help" className="text-[11px] text-dls-secondary">{LINUX_SANDBOX_HELP}</div>
+ <div id="linux-sandbox-help" className="text-[11px] text-dls-secondary">{t("sandbox.help")}</div>
{box?.required ? (
<div className="mt-1 text-[11px] font-medium text-dls-text" data-testid="linux-sandbox-required">{box.requiredText?.optOut}</div>
) : null}
@@ -283,7 +283,7 @@ export function LinuxSandboxCard(props: LinuxSandboxCardProps) {
</div>
<Switch
id={switchId}
- aria-label="Run commands in a Linux sandbox"
+ aria-label={t("sandbox.run_in_sandbox")}
aria-describedby="linux-sandbox-help"
aria-busy={busy || undefined}
checked={checked}
@@ -294,10 +294,10 @@ export function LinuxSandboxCard(props: LinuxSandboxCardProps) {
{showOffer ? (
<div className="mx-4 mb-3 flex flex-wrap items-center gap-x-3 gap-y-2 rounded-xl border border-dls-border bg-dls-hover px-3 py-2" data-testid="linux-sandbox-offer">
- <div className="min-w-0 flex-1 text-[11px] text-dls-text">Your omnirush.ai server recommends the sandbox for this project.</div>
+ <div className="min-w-0 flex-1 text-[11px] text-dls-text">{t("sandbox.server_recommends")}</div>
<div className="flex items-center gap-1.5">
- <Button size="xs" onClick={() => props.onToggle(true)}>Turn on</Button>
- <Button size="xs" variant="ghost" onClick={() => setOfferDismissed(true)}>Not now</Button>
+ <Button size="xs" onClick={() => props.onToggle(true)}>{t("sandbox.turn_on")}</Button>
+ <Button size="xs" variant="ghost" onClick={() => setOfferDismissed(true)}>{t("sandbox.not_now")}</Button>
</div>
</div>
) : null}
diff --git a/apps/app/src/react-app/domains/settings/linux-sandbox.ts b/apps/app/src/react-app/domains/settings/linux-sandbox.ts
index 7f2406b2..06365dba 100644
--- a/apps/app/src/react-app/domains/settings/linux-sandbox.ts
+++ b/apps/app/src/react-app/domains/settings/linux-sandbox.ts
@@ -2,6 +2,7 @@ import { useCallback, useEffect, useRef, useState } from "react";
import { captureAnalyticsEvent, type AnalyticsProperties } from "@/app/lib/analytics";
import type { OmniRushServerClient, OmniRushWorkspaceBox, OmniRushWorkspaceBoxProgress, OmniRushWorkspaceBoxSetupAction } from "@/app/lib/omnirush-server";
+import { t } from "@/i18n";
export type LinuxSandboxClient = Pick<OmniRushServerClient, "getWorkspaceBox" | "setWorkspaceBox" | "setWorkspaceBoxBackend" | "resetWorkspaceBox" | "retryWorkspaceBox"> & Partial<Pick<OmniRushServerClient, "setupWorkspaceBox">>;
@@ -27,7 +28,6 @@ export type LinuxSandboxView = {
/** A change the user made that the server has not answered yet (the switch already shows it). */
export type LinuxSandboxPending = "on" | "off" | "backend" | "reset" | "retry" | "setup" | null;
-const RUNS_HERE = "Commands run on this computer for now.";
const LOAD_FAILED = "The sandbox status could not be loaded.";
function runtimeLabel(box: OmniRushWorkspaceBox): string | null {
@@ -46,13 +46,13 @@ function megabytes(bytes: number): string {
export function linuxSandboxProgress(progress: OmniRushWorkspaceBoxProgress | null | undefined): { value: number | null; label: string } {
if (progress?.bytesTotal && progress.bytesDone !== null) {
const value = Math.min(100, Math.round((progress.bytesDone / progress.bytesTotal) * 100));
- return { value, label: `${megabytes(progress.bytesDone)} of ${megabytes(progress.bytesTotal)} MB · ${value}%` };
+ return { value, label: t("sandbox.progress_mb", { done: megabytes(progress.bytesDone), total: megabytes(progress.bytesTotal), percent: value }) };
}
if (progress && progress.layersTotal > 0) {
const value = Math.min(100, Math.round((progress.layersDone / progress.layersTotal) * 100));
- return { value, label: `${progress.layersDone} of ${progress.layersTotal} parts · ${value}%` };
+ return { value, label: t("sandbox.progress_parts", { done: progress.layersDone, total: progress.layersTotal, percent: value }) };
}
- return { value: null, label: "Starting the download…" };
+ return { value: null, label: t("sandbox.download_starting") };
}
function commandIn(reason: string | null | undefined): string | null {
@@ -62,19 +62,19 @@ function commandIn(reason: string | null | undefined): string | null {
/** A short title for a reason the backend probe gave (with its command, when it names one). */
function stepFor(reason: string, platform: string | undefined): LinuxSandboxNextStep | null {
const command = commandIn(reason);
- if (/sandbox enable/.test(reason)) return { title: "Allow the sandbox on this computer", detail: "Ubuntu blocks it until an admin allows it once. Run this in a terminal (OmniRush CLI), then check again.", command };
- if (/usermod -aG docker/.test(reason)) return { title: "Let this user run Docker", detail: "Run this in a terminal, log out and back in, then check again.", command };
- if (/wsl --install/.test(reason)) return { title: "Turn on WSL 2", detail: "Run this in PowerShell as administrator, restart the computer, then check again.", command: "wsl --install --no-distribution" };
- if (/wsl --update/.test(reason)) return { title: "Update WSL", detail: "Run this in PowerShell, then check again.", command };
- if (/podman machine start/.test(reason)) return { title: "Start the Podman machine", detail: "Run this in a terminal, then check again.", command };
- if (/apt install bubblewrap/.test(reason)) return { title: "Install bubblewrap", detail: "Run this in a terminal (or use your system's package), then check again.", command };
+ if (/sandbox enable/.test(reason)) return { title: t("sandbox.step_allow"), detail: t("sandbox.step_allow_detail"), command };
+ if (/usermod -aG docker/.test(reason)) return { title: t("sandbox.step_docker_group"), detail: t("sandbox.step_docker_group_detail"), command };
+ if (/wsl --install/.test(reason)) return { title: t("sandbox.step_wsl"), detail: t("sandbox.step_wsl_detail"), command: "wsl --install --no-distribution" };
+ if (/wsl --update/.test(reason)) return { title: t("sandbox.step_wsl_update"), detail: t("sandbox.step_wsl_update_detail"), command };
+ if (/podman machine start/.test(reason)) return { title: t("sandbox.step_podman"), detail: t("sandbox.step_run_terminal"), command };
+ if (/apt install bubblewrap/.test(reason)) return { title: t("sandbox.step_bwrap"), detail: t("sandbox.step_run_terminal_pkg"), command };
if (/Docker Desktop is installed but not running|Docker is installed but not running/.test(reason)) {
- return { title: "Start your container app", detail: "Open Docker Desktop, OrbStack or colima, wait until it is running, then check again.", command: null };
+ return { title: t("sandbox.step_container_app"), detail: t("sandbox.step_container_app_detail"), command: null };
}
if (/another macOS user/.test(reason)) {
- return { title: "Start your container app", detail: "Docker here belongs to another account on this Mac. Open Docker Desktop, OrbStack or colima in this account, then check again.", command: null };
+ return { title: t("sandbox.step_container_app"), detail: t("sandbox.step_container_other_account"), command: null };
}
- if (/Docker daemon is not running/.test(reason)) return { title: "Start Docker", detail: "Run this in a terminal, then check again.", command: "sudo systemctl start docker" };
+ if (/Docker daemon is not running/.test(reason)) return { title: t("sandbox.step_start_docker"), detail: t("sandbox.step_run_terminal"), command: "sudo systemctl start docker" };
return null;
}
@@ -90,10 +90,10 @@ export function linuxSandboxNextStep(box: OmniRushWorkspaceBox): LinuxSandboxNex
const step = stepFor(reason, platform);
if (step) return step;
}
- if (platform === "win32") return { title: "Turn on WSL 2", detail: "Run this in PowerShell as administrator, restart the computer, then check again. Docker Desktop or Podman work too.", command: "wsl --install --no-distribution" };
- if (platform === "darwin") return { title: "Install a container app", detail: "colima is free and installs with Homebrew; OrbStack and Docker Desktop work too. Then check again.", command: "brew install colima docker && colima start" };
- if (platform === "linux") return { title: "Install Podman or Docker", detail: "Run this in a terminal (or use your system's package), then check again.", command: "sudo apt install podman" };
- return { title: "No sandbox backend works here", detail: box.runtime?.reason ?? "No container runtime was found on this computer.", command: null };
+ if (platform === "win32") return { title: t("sandbox.step_wsl"), detail: t("sandbox.step_wsl_detail_alt"), command: "wsl --install --no-distribution" };
+ if (platform === "darwin") return { title: t("sandbox.step_install_container"), detail: t("sandbox.step_install_container_detail"), command: "brew install colima docker && colima start" };
+ if (platform === "linux") return { title: t("sandbox.step_install_podman"), detail: t("sandbox.step_run_terminal_pkg"), command: "sudo apt install podman" };
+ return { title: t("sandbox.step_none"), detail: box.runtime?.reason ?? t("sandbox.step_none_detail"), command: null };
}
/** A ready box's detail, then one line per server in it open on this computer (Docker/Podman boxes). */
@@ -105,60 +105,60 @@ function withPorts(detail: string, box: OmniRushWorkspaceBox): string {
/** The status row: what the sandbox is doing now, or why it is not used and what to do. */
export function linuxSandboxView(box: OmniRushWorkspaceBox, pending: LinuxSandboxPending = null): LinuxSandboxView {
const base = { progress: null, step: null, action: null, errorDetail: null };
- if (pending === "on") return { ...base, tone: "busy", title: "Turning on…", detail: RUNS_HERE.replace(" for now", " until the sandbox is ready") };
- if (pending === "off") return { ...base, tone: "busy", title: "Turning off…", detail: null };
- if (pending === "reset") return { ...base, tone: "busy", title: "Resetting the sandbox…", detail: "Removing its container and installs." };
- if (pending === "retry") return { ...base, tone: "busy", title: "Trying again…", detail: null };
- if (pending === "setup") return { ...base, tone: "busy", title: "Setting up the sandbox…", detail: null };
+ if (pending === "on") return { ...base, tone: "busy", title: t("sandbox.turning_on"), detail: t("sandbox.runs_here_until_ready") };
+ if (pending === "off") return { ...base, tone: "busy", title: t("sandbox.turning_off"), detail: null };
+ if (pending === "reset") return { ...base, tone: "busy", title: t("sandbox.resetting"), detail: t("sandbox.resetting_detail") };
+ if (pending === "retry") return { ...base, tone: "busy", title: t("sandbox.trying_again"), detail: null };
+ if (pending === "setup") return { ...base, tone: "busy", title: t("sandbox.setting_up"), detail: null };
if (!box.on) {
- if (box.source === "env") return { ...base, tone: "off", title: "Off for this app", detail: "Set by OMNIRUSH_BOX where the app is launched." };
+ if (box.source === "env") return { ...base, tone: "off", title: t("sandbox.off_for_app"), detail: t("sandbox.off_for_app_detail") };
// Required, but the project only builds on this OS: its chats run here.
- if (box.source === "host-only" && box.hostOnly) return { ...base, tone: "attention", title: "Runs on this computer", detail: box.hostOnly.notice };
- if (box.hostBuilds?.native) return { ...base, tone: "attention", title: "Off for this project", detail: box.hostBuilds.notice };
+ if (box.source === "host-only" && box.hostOnly) return { ...base, tone: "attention", title: t("sandbox.runs_on_computer"), detail: box.hostOnly.notice };
+ if (box.hostBuilds?.native) return { ...base, tone: "attention", title: t("sandbox.off_for_project"), detail: box.hostBuilds.notice };
// A buildathon project: turned off here (less reproducible), or the event offers the sandbox.
- if (box.notice) return { ...base, tone: "attention", title: box.source === "project" ? "Off for this project" : "Off", detail: box.notice };
- return { ...base, tone: "off", title: "Off", detail: "Commands run on this computer." };
+ if (box.notice) return { ...base, tone: "attention", title: box.source === "project" ? t("sandbox.off_for_project") : t("common.off"), detail: box.notice };
+ return { ...base, tone: "off", title: t("common.off"), detail: t("sandbox.runs_here") };
}
const using = runtimeLabel(box);
switch (box.state) {
case "downloading":
- return { ...base, tone: "busy", title: "Downloading the sandbox (once)", detail: RUNS_HERE.replace(" for now", " until it is ready"), progress: linuxSandboxProgress(box.progress) };
+ return { ...base, tone: "busy", title: t("sandbox.downloading"), detail: t("sandbox.runs_here_until_it_ready"), progress: linuxSandboxProgress(box.progress) };
case "starting":
- return { ...base, tone: "busy", title: "Starting the sandbox…", detail: using ? `Using ${using}. This takes a few seconds.` : "This takes a few seconds." };
+ return { ...base, tone: "busy", title: t("sandbox.starting"), detail: using ? t("sandbox.starting_using", { backend: using }) : t("sandbox.starting_detail") };
case "ready":
// On by choice in a folder with this computer's builds: the warning; on macOS / Windows: that chats run in Linux.
- if (box.hostBuilds && !box.hostBuilds.native) return { ...base, tone: "attention", title: "Ready", detail: withPorts(box.hostBuilds.notice, box) };
- return { ...base, tone: "ready", title: "Ready", detail: withPorts(box.boxNotice ?? (using ? `Commands run in a Linux container (${using}).` : "Commands run in a Linux container."), box) };
+ if (box.hostBuilds && !box.hostBuilds.native) return { ...base, tone: "attention", title: t("connect.diagnostics_connection_ready"), detail: withPorts(box.hostBuilds.notice, box) };
+ return { ...base, tone: "ready", title: t("connect.diagnostics_connection_ready"), detail: withPorts(box.boxNotice ?? (using ? t("sandbox.runs_in_container_using", { backend: using }) : t("sandbox.runs_in_container")), box) };
case "failed":
- return { ...base, tone: "error", title: "The sandbox could not start", detail: RUNS_HERE, action: { kind: "retry", label: "Try again" }, errorDetail: box.error ?? box.notice };
+ return { ...base, tone: "error", title: t("sandbox.could_not_start"), detail: t("sandbox.runs_here_for_now"), action: { kind: "retry", label: t("sandbox.try_again") }, errorDetail: box.error ?? box.notice };
case "unavailable": {
if (box.backendSetting.value === "native") {
- return { ...base, tone: "attention", title: "The backend is set to Off", detail: "Commands run on this computer. Choose Automatic to use the sandbox.", action: { kind: "auto-backend", label: "Use automatic" } };
+ return { ...base, tone: "attention", title: t("sandbox.backend_off"), detail: t("sandbox.backend_off_detail"), action: { kind: "auto-backend", label: t("sandbox.use_automatic") } };
}
if (box.runtime?.ok) {
// A backend works, but this project went on without the box (its helpers, a start that timed out).
- return { ...base, tone: "attention", title: "The sandbox is not running", detail: RUNS_HERE, action: { kind: "retry", label: "Try again" }, errorDetail: box.notice?.replace(/^Sandbox off for now: /, "").replace(/\.$/, "") ?? box.error };
+ return { ...base, tone: "attention", title: t("sandbox.not_running"), detail: t("sandbox.runs_here_for_now"), action: { kind: "retry", label: t("sandbox.try_again") }, errorDetail: box.notice?.replace(/^Sandbox off for now: /, "").replace(/\.$/, "") ?? box.error };
}
const step = linuxSandboxNextStep(box);
- return { ...base, tone: "attention", title: step.title, detail: RUNS_HERE, step, action: { kind: "check", label: "Check again" }, errorDetail: box.runtime?.reason ?? null };
+ return { ...base, tone: "attention", title: step.title, detail: t("sandbox.runs_here_for_now"), step, action: { kind: "check", label: t("sandbox.check_again") }, errorDetail: box.runtime?.reason ?? null };
}
case "off":
- return { ...base, tone: "off", title: "Off", detail: box.notice ?? "Commands run on this computer." };
+ return { ...base, tone: "off", title: t("common.off"), detail: box.notice ?? t("sandbox.runs_here") };
}
}
/** The backend in use and how it was picked, for the Advanced section. */
export function linuxSandboxBackendSummary(box: OmniRushWorkspaceBox): string {
- if (box.backendSetting.value === "native") return "Set to Off: commands run on this computer.";
+ if (box.backendSetting.value === "native") return t("sandbox.backend_summary_off");
const using = runtimeLabel(box);
- if (!using) return "No backend works on this computer yet.";
- if (box.backendSetting.source === "env") return `Using ${using} (set by OMNIRUSH_BOX_BACKEND).`;
- return box.backendSetting.value === "auto" ? `Using ${using}, picked automatically.` : `Using ${using}.`;
+ if (!using) return t("sandbox.backend_summary_none");
+ if (box.backendSetting.source === "env") return t("sandbox.backend_summary_env", { backend: using });
+ return box.backendSetting.value === "auto" ? t("sandbox.backend_summary_auto", { backend: using }) : t("sandbox.backend_summary_using", { backend: using });
}
/** The backend choices for the picker: "Automatic (recommended)" first. */
export function linuxSandboxBackendChoices(box: OmniRushWorkspaceBox): Array<{ value: string; label: string }> {
- return box.backendSetting.choices.map((choice) => ({ value: choice.id, label: choice.id === "auto" ? "Automatic (recommended)" : choice.label }));
+ return box.backendSetting.choices.map((choice) => ({ value: choice.id, label: choice.id === "auto" ? t("sandbox.automatic_recommended") : choice.label }));
}
/** States that change on their own: asked about again quickly while they last. */
diff --git a/apps/app/src/react-app/domains/settings/pages/ai-view.tsx b/apps/app/src/react-app/domains/settings/pages/ai-view.tsx
index 85e71a71..568c0bba 100644
--- a/apps/app/src/react-app/domains/settings/pages/ai-view.tsx
+++ b/apps/app/src/react-app/domains/settings/pages/ai-view.tsx
@@ -82,31 +82,31 @@ export function AiSettingsView(props: AiSettingsViewProps) {
<LayoutStack>
<LayoutSection>
<LayoutSectionHeader>
- <LayoutSectionTitle>Choose how models run</LayoutSectionTitle>
+ <LayoutSectionTitle>{t("settings.ai.title")}</LayoutSectionTitle>
<LayoutSectionDescription>
{providerLock.locked
- ? "Models run through the omnirush.ai inference proxy. Model names are always shown exactly as reported by their provider."
- : "Use the omnirush.ai internal proxy or connect a major AI provider. Model names are always shown exactly as reported by their provider."}
+ ? t("settings.ai.desc_locked")
+ : t("settings.ai.desc")}
</LayoutSectionDescription>
</LayoutSectionHeader>
<div className={providerLock.locked ? "grid gap-3" : "grid gap-3 lg:grid-cols-2"}>
<ModelAccessCard
icon={<ShieldCheck className="size-4" />}
- title="Internal models"
- description="Use the omnirush.ai inference proxy and models managed by your organization."
- status={internalModelsReady ? "Ready" : "Unavailable"}
+ title={t("settings.ai.internal_title")}
+ description={t("settings.ai.internal_desc")}
+ status={internalModelsReady ? t("connect.diagnostics_connection_ready") : t("config.unavailable")}
tone={internalModelsReady ? "ready" : "neutral"}
/>
{providerLock.locked ? null : <ModelAccessCard
icon={<KeyRound className="size-4" />}
- title="Provider connections"
- description="Connect OpenAI, Anthropic, Google, or OpenRouter without changing model identities."
- status={externalProviderCount > 0 ? `${externalProviderCount} connected` : "Optional"}
+ title={t("settings.ai.providers_title")}
+ description={t("settings.ai.providers_desc")}
+ status={externalProviderCount > 0 ? t("settings.ai.connected_count", { count: externalProviderCount }) : t("settings.ai.optional")}
tone={externalProviderCount > 0 ? "ready" : "neutral"}
action={props.canAddProviders ? (
<Button variant="outline" size="sm" onClick={() => void props.onOpenProviderAuth()}>
- Connect
+ {t("connect.row_action_connect")}
</Button>
) : null}
/>}
diff --git a/apps/app/src/react-app/domains/settings/pages/editor-settings-view.tsx b/apps/app/src/react-app/domains/settings/pages/editor-settings-view.tsx
index a3d4dab9..c00a7ef0 100644
--- a/apps/app/src/react-app/domains/settings/pages/editor-settings-view.tsx
+++ b/apps/app/src/react-app/domains/settings/pages/editor-settings-view.tsx
@@ -28,6 +28,7 @@ import {
LayoutSectionTitle,
LayoutStack,
} from "../settings-layout";
+import { t } from "@/i18n";
const SEGMENT =
"h-7 rounded-md border border-transparent px-3 text-sm text-muted-foreground outline-none focus-visible:ring-2 focus-visible:ring-ring aria-checked:border-foreground/70 aria-checked:bg-background aria-checked:font-medium aria-checked:text-foreground aria-checked:shadow-xs";
@@ -121,26 +122,26 @@ export function EditorSettingsView(props: { client: OmniRushServerClient | null;
}, [filter]);
const formatterNote = !props.workspaceId
- ? "Open a project to see its formatter."
+ ? t("settings.editor.formatter_no_project")
: formatters === null
- ? "Looking for the project's formatter…"
+ ? t("settings.editor.formatter_loading")
: formatters.length
- ? `This project: ${formatters.join(", ")}.`
- : "This project: none found. Files are saved as they are.";
+ ? t("settings.editor.formatter_found", { list: formatters.join(", ") })
+ : t("settings.editor.formatter_none");
return (
<LayoutStack>
<LayoutSection>
<LayoutSectionHeader>
- <LayoutSectionTitle>Text</LayoutSectionTitle>
- <LayoutSectionDescription>The code editor in the IDE layout, for every project on this computer.</LayoutSectionDescription>
+ <LayoutSectionTitle>{t("settings.editor.text")}</LayoutSectionTitle>
+ <LayoutSectionDescription>{t("settings.editor.text_desc")}</LayoutSectionDescription>
</LayoutSectionHeader>
<LayoutSectionItem>
<LayoutSectionItemHeader>
<LayoutSectionItemTitle>
- <label htmlFor="editor-font-size">Font size</label>
+ <label htmlFor="editor-font-size">{t("settings.editor.font_size")}</label>
</LayoutSectionItemTitle>
- <LayoutSectionItemDescription>Text size in the editor.</LayoutSectionItemDescription>
+ <LayoutSectionItemDescription>{t("settings.editor.font_size_desc")}</LayoutSectionItemDescription>
<LayoutSectionItemHeaderActions>
<select
id="editor-font-size"
@@ -156,47 +157,47 @@ export function EditorSettingsView(props: { client: OmniRushServerClient | null;
</LayoutSectionItem>
<LayoutSectionItem>
<LayoutSectionItemHeader className="w-full">
- <LayoutSectionItemTitle>Tab size</LayoutSectionItemTitle>
- <LayoutSectionItemDescription>For files without indentation of their own; others keep theirs.</LayoutSectionItemDescription>
+ <LayoutSectionItemTitle>{t("settings.editor.tab_size")}</LayoutSectionItemTitle>
+ <LayoutSectionItemDescription>{t("settings.editor.tab_size_desc")}</LayoutSectionItemDescription>
</LayoutSectionItemHeader>
<SegmentedRadio
- label="Tab size"
+ label={t("settings.editor.tab_size")}
value={String(settings.tabSize) as "2" | "4" | "8"}
options={[{ value: "2", label: "2" }, { value: "4", label: "4" }, { value: "8", label: "8" }]}
onChange={(value) => set("tabSize", Number(value) as EditorSettings["tabSize"])}
/>
</LayoutSectionItem>
- <SwitchRow id="editor-word-wrap" title="Word wrap" description="Long lines wrap at the editor's edge." checked={settings.wordWrap} onChange={(value) => set("wordWrap", value)} />
- <SwitchRow id="editor-minimap" title="Minimap" description="A small overview of the file at the right edge." checked={settings.minimap} onChange={(value) => set("minimap", value)} />
- <SwitchRow id="editor-sticky-scroll" title="Sticky scroll" description="The first lines of the block you are in stay at the top while you scroll." checked={settings.stickyScroll} onChange={(value) => set("stickyScroll", value)} />
+ <SwitchRow id="editor-word-wrap" title={t("settings.editor.word_wrap")} description={t("settings.editor.word_wrap_desc")} checked={settings.wordWrap} onChange={(value) => set("wordWrap", value)} />
+ <SwitchRow id="editor-minimap" title={t("settings.editor.minimap")} description={t("settings.editor.minimap_desc")} checked={settings.minimap} onChange={(value) => set("minimap", value)} />
+ <SwitchRow id="editor-sticky-scroll" title={t("settings.editor.sticky_scroll")} description={t("settings.editor.sticky_scroll_desc")} checked={settings.stickyScroll} onChange={(value) => set("stickyScroll", value)} />
</LayoutSection>
<Separator />
<LayoutSection>
<LayoutSectionHeader>
- <LayoutSectionTitle>Saving</LayoutSectionTitle>
- <LayoutSectionDescription>Automatic saves count as your own edits, like Cmd/Ctrl+S. A file the agent changed is never overwritten.</LayoutSectionDescription>
+ <LayoutSectionTitle>{t("settings.editor.saving")}</LayoutSectionTitle>
+ <LayoutSectionDescription>{t("settings.editor.saving_desc")}</LayoutSectionDescription>
</LayoutSectionHeader>
<LayoutSectionItem>
<LayoutSectionItemHeader className="w-full">
- <LayoutSectionItemTitle>Auto save</LayoutSectionItemTitle>
- <LayoutSectionItemDescription>After a delay: one second after you stop typing (waits while an agent is working). When focus leaves: when you click away from the editor.</LayoutSectionItemDescription>
+ <LayoutSectionItemTitle>{t("settings.editor.auto_save")}</LayoutSectionItemTitle>
+ <LayoutSectionItemDescription>{t("settings.editor.auto_save_desc")}</LayoutSectionItemDescription>
</LayoutSectionItemHeader>
<SegmentedRadio<AutoSave>
- label="Auto save"
+ label={t("settings.editor.auto_save")}
value={settings.autoSave}
- options={[{ value: "off", label: "Off" }, { value: "afterDelay", label: "After a delay" }, { value: "onFocusChange", label: "When focus leaves" }]}
+ options={[{ value: "off", label: t("common.off") }, { value: "afterDelay", label: t("settings.editor.after_delay") }, { value: "onFocusChange", label: t("settings.editor.on_focus_change") }]}
onChange={(value) => set("autoSave", value)}
/>
</LayoutSectionItem>
<LayoutSectionItem>
<LayoutSectionItemHeader>
<LayoutSectionItemTitle>
- <label htmlFor="editor-format-on-save">Format on save</label>
+ <label htmlFor="editor-format-on-save">{t("settings.editor.format_on_save")}</label>
</LayoutSectionItemTitle>
<LayoutSectionItemDescription>
- Runs the project's own formatter (Prettier, gofmt, Ruff, …) when you save with Cmd/Ctrl+S or leave the editor; never a built-in one. It is the project's code: the first time in each project you are shown the exact command and asked (again whenever it changes). With the sandbox on, it runs in the sandbox.
+ {t("settings.editor.format_on_save_desc")}
{" "}<span data-editor-formatter>{formatterNote}</span>
</LayoutSectionItemDescription>
<LayoutSectionItemHeaderActions>
@@ -210,12 +211,12 @@ export function EditorSettingsView(props: { client: OmniRushServerClient | null;
<LayoutSection>
<LayoutSectionHeader>
- <LayoutSectionTitle>Language features</LayoutSectionTitle>
+ <LayoutSectionTitle>{t("settings.editor.language_features")}</LayoutSectionTitle>
</LayoutSectionHeader>
<SwitchRow
id="editor-language-features"
- title="Problems, hover, go to definition, rename and outline"
- description="From the project's language servers. They start once a file has been open a moment. Same switch as in the Problems panel."
+ title={t("settings.editor.language_features_title")}
+ description={t("settings.editor.language_features_desc")}
checked={languageFeatures}
onChange={setLanguageFeatures}
/>
@@ -225,14 +226,14 @@ export function EditorSettingsView(props: { client: OmniRushServerClient | null;
<LayoutSection>
<LayoutSectionHeader>
- <LayoutSectionTitle>Keys</LayoutSectionTitle>
+ <LayoutSectionTitle>{t("settings.editor.keys")}</LayoutSectionTitle>
</LayoutSectionHeader>
<LayoutSectionItem>
<LayoutSectionItemHeader>
- <LayoutSectionItemTitle>Keyboard shortcuts</LayoutSectionItemTitle>
- <LayoutSectionItemDescription>VS Code's defaults: Cmd/Ctrl+P, Cmd/Ctrl+Shift+F, F12, F2, Cmd/Ctrl+\ and more.</LayoutSectionItemDescription>
+ <LayoutSectionItemTitle>{t("settings.editor.keyboard_shortcuts")}</LayoutSectionItemTitle>
+ <LayoutSectionItemDescription>{t("settings.editor.keyboard_shortcuts_desc")}</LayoutSectionItemDescription>
<LayoutSectionItemHeaderActions>
- <Button variant="outline" size="sm" onClick={() => setKeysOpen(true)} data-editor-shortcuts-open>Show all</Button>
+ <Button variant="outline" size="sm" onClick={() => setKeysOpen(true)} data-editor-shortcuts-open>{t("settings.editor.show_all")}</Button>
</LayoutSectionItemHeaderActions>
</LayoutSectionItemHeader>
</LayoutSectionItem>
@@ -241,18 +242,18 @@ export function EditorSettingsView(props: { client: OmniRushServerClient | null;
<Dialog open={keysOpen} onOpenChange={setKeysOpen}>
<DialogContent className="max-w-lg">
<DialogHeader>
- <DialogTitle>Editor shortcuts</DialogTitle>
- <DialogDescription>VS Code's defaults. On macOS use Cmd, elsewhere Ctrl.</DialogDescription>
+ <DialogTitle>{t("settings.editor.shortcuts_title")}</DialogTitle>
+ <DialogDescription>{t("settings.editor.shortcuts_desc")}</DialogDescription>
</DialogHeader>
- <Input value={filter} onChange={(event) => setFilter(event.target.value)} placeholder="Search shortcuts" aria-label="Search shortcuts" />
- <ul className="max-h-80 overflow-y-auto text-sm" aria-label="Shortcuts">
+ <Input value={filter} onChange={(event) => setFilter(event.target.value)} placeholder={t("settings.editor.search_shortcuts")} aria-label={t("settings.editor.search_shortcuts")} />
+ <ul className="max-h-80 overflow-y-auto text-sm" aria-label={t("settings.editor.shortcuts")}>
{shortcuts.map((item) => (
<li key={item.keys} className="flex items-center justify-between gap-4 border-b border-border py-1.5 last:border-0">
<span>{item.action}</span>
<kbd className="rounded border border-border bg-muted px-1.5 py-0.5 font-mono text-xs text-muted-foreground">{item.keys}</kbd>
</li>
))}
- {!shortcuts.length ? <li className="py-2 text-muted-foreground">No shortcut matches.</li> : null}
+ {!shortcuts.length ? <li className="py-2 text-muted-foreground">{t("settings.editor.no_shortcut_matches")}</li> : null}
</ul>
</DialogContent>
</Dialog>
diff --git a/apps/app/src/react-app/domains/settings/pages/general-view.tsx b/apps/app/src/react-app/domains/settings/pages/general-view.tsx
index dca6fbc8..e15c9815 100644
--- a/apps/app/src/react-app/domains/settings/pages/general-view.tsx
+++ b/apps/app/src/react-app/domains/settings/pages/general-view.tsx
@@ -45,7 +45,7 @@ import {
import { DiagnosticsSection } from "./diagnostics-section";
import { FreeSpaceSection } from "./free-space-section";
import { keptPendingLine, sendPendingBeforeSignOut } from "../sign-out-uploads";
-import { BEST_PRACTICES_HELP, useBestPractices, type BestPracticesClient } from "../best-practices";
+import { useBestPractices, type BestPracticesClient } from "../best-practices";
import { AGENT_ASSIST_ITEMS, useAgentAssist, type AgentAssistClient } from "../agent-assist";
import type { OmniRushAgentAssist, OmniRushAgentAssistFeature } from "../../../../app/lib/omnirush-server";
import { useLinuxSandbox, type LinuxSandboxClient } from "../linux-sandbox";
@@ -80,18 +80,18 @@ type SettingsCardDefinition = { tab: SettingsTab; icon: typeof Sparkles } & (
);
const workspaceCards: SettingsCardDefinition[] = [
- { tab: "preferences", icon: Cog, title: "Preferences", desc: "Default model, reasoning, and compaction." },
- { tab: "permissions", icon: FolderLock, title: "Permissions", desc: "Authorized folders and file access." },
- { tab: "advanced", icon: Wrench, title: "Advanced", desc: "Runtime, engine, recovery, and developer options." },
+ { tab: "preferences", icon: Cog, titleKey: "settings.tab_preferences", descKey: "settings.card_preferences_desc" },
+ { tab: "permissions", icon: FolderLock, titleKey: "settings.tab_permissions", descKey: "settings.card_permissions_desc" },
+ { tab: "advanced", icon: Wrench, titleKey: "settings.tab_advanced", descKey: "settings.card_advanced_desc" },
];
const globalCards: SettingsCardDefinition[] = [
- { tab: "ai", icon: Sparkles, title: "AI Providers", desc: "Connect services that provide AI models." },
- { tab: "appearance", icon: Paintbrush, title: "Appearance", desc: "Theme, font size, and display." },
- { tab: "editor", icon: Code2, title: "Editor", desc: "Code editor text, saving, and keys." },
- { tab: "voice", icon: Mic, title: "Voice", desc: "Dictation, microphone, and hotkey." },
- { tab: "environment", icon: Terminal, title: "Environment", desc: "Environment variables and paths." },
- { tab: "updates", icon: RefreshCcw, title: "Updates", desc: "App version and update channel." },
+ { tab: "ai", icon: Sparkles, titleKey: "settings.tab_ai", descKey: "settings.card_ai_desc" },
+ { tab: "appearance", icon: Paintbrush, titleKey: "settings.tab_appearance", descKey: "settings.card_appearance_desc" },
+ { tab: "editor", icon: Code2, titleKey: "settings.tab_editor", descKey: "settings.card_editor_desc" },
+ { tab: "voice", icon: Mic, titleKey: "settings.tab_voice", descKey: "settings.card_voice_desc" },
+ { tab: "environment", icon: Terminal, titleKey: "settings.tab_environment", descKey: "settings.card_environment_desc" },
+ { tab: "updates", icon: RefreshCcw, titleKey: "settings.tab_updates", descKey: "settings.card_updates_desc" },
];
function cardTitle(card: SettingsCardDefinition) {
@@ -137,20 +137,20 @@ export type AccountSignOutOutcome = {
* says exactly what happened to the remote device session.
*/
export function accountSignOutMessage(outcome: AccountSignOutOutcome, server?: string | null): string {
- const host = server?.trim() || "the account server";
+ const host = server?.trim() || t("settings.account_server_fallback");
switch (outcome.reason) {
case "revoked":
- return `Signed out on this device and revoked its device session on ${host}.`;
+ return t("settings.signout_revoked", { host });
case "already_revoked":
- return `Signed out on this device. ${host} had already revoked this device session.`;
+ return t("settings.signout_already_revoked", { host });
case "endpoint_missing":
- return `Signed out on this device. ${host} has no remote sign-out endpoint, so the device session was not revoked there.`;
+ return t("settings.signout_endpoint_missing", { host });
case "unreachable":
- return `Signed out on this device. ${host} could not be reached, so the device session was not revoked there.`;
+ return t("settings.signout_unreachable", { host });
default:
return outcome.remoteRevoked
- ? `Signed out on this device and revoked its device session on ${host}.`
- : `Signed out on this device. The device session on ${host} could not be revoked.`;
+ ? t("settings.signout_revoked", { host })
+ : t("settings.signout_not_revoked", { host });
}
}
@@ -158,7 +158,7 @@ export function accountSignOutMessage(outcome: AccountSignOutOutcome, server?: s
export function accountServerLine(account: Pick<NativeAccountStatus, "connected" | "gatewayHost">): string | null {
const host = account.gatewayHost?.trim();
if (!host) return null;
- return account.connected ? `Connected to ${host}` : `Account server: ${host}`;
+ return account.connected ? t("settings.account_connected_to", { host }) : t("settings.account_server", { host });
}
/**
@@ -247,20 +247,20 @@ export function BestPracticesCard(props: {
}) {
return (
<div className="space-y-3">
- <div className="text-[11px] font-semibold uppercase tracking-[0.15em] text-dls-secondary">Best practices</div>
+ <div className="text-[11px] font-semibold uppercase tracking-[0.15em] text-dls-secondary">{t("settings.best_practices_title")}</div>
<div className="flex items-center gap-4 rounded-2xl border border-dls-border bg-dls-surface p-4">
<div className="flex h-10 w-10 shrink-0 items-center justify-center rounded-xl border border-dls-border bg-dls-hover">
<Sparkles size={17} className="text-dls-secondary" />
</div>
<div className="min-w-0 flex-1">
- <div className="text-[13px] font-medium text-dls-text">Best practices</div>
- <div id="best-practices-help" className="text-[11px] text-dls-secondary">{BEST_PRACTICES_HELP}</div>
+ <div className="text-[13px] font-medium text-dls-text">{t("settings.best_practices_title")}</div>
+ <div id="best-practices-help" className="text-[11px] text-dls-secondary">{t("settings.best_practices_help")}</div>
{props.status ? (
<div className="mt-0.5 text-[11px] text-dls-secondary" role="status" data-testid="best-practices-status">{props.status}</div>
) : null}
</div>
<Switch
- aria-label="Best practices"
+ aria-label={t("settings.best_practices_title")}
aria-describedby="best-practices-help"
checked={props.enabled === true}
disabled={props.busy || props.enabled === null}
@@ -271,6 +271,19 @@ export function BestPracticesCard(props: {
);
}
+function agentAssistText(key: OmniRushAgentAssistFeature): { title: string; help: string } {
+ switch (key) {
+ case "selfCheck":
+ return { title: t("settings.agent_assist.selfCheck_title"), help: t("settings.agent_assist.selfCheck_help") };
+ case "projectNotes":
+ return { title: t("settings.agent_assist.projectNotes_title"), help: t("settings.agent_assist.projectNotes_help") };
+ case "diagnostics":
+ return { title: t("settings.agent_assist.diagnostics_title"), help: t("settings.agent_assist.diagnostics_help") };
+ case "compaction":
+ return { title: t("settings.agent_assist.compaction_title"), help: t("settings.agent_assist.compaction_help") };
+ }
+}
+
/** Settings > General > Agent: what the agent does on its own (agent-assist-config.ts on the server). */
export function AgentAssistCard(props: {
setting: OmniRushAgentAssist | null;
@@ -280,7 +293,7 @@ export function AgentAssistCard(props: {
}) {
return (
<div className="space-y-3">
- <div className="text-[11px] font-semibold uppercase tracking-[0.15em] text-dls-secondary">Agent</div>
+ <div className="text-[11px] font-semibold uppercase tracking-[0.15em] text-dls-secondary">{t("composer.agent_label")}</div>
<div className="rounded-2xl border border-dls-border bg-dls-surface" data-testid="agent-assist-card">
{AGENT_ASSIST_ITEMS.map((item, index) => {
const forced = props.setting?.forced.includes(item.key) ?? false;
@@ -294,14 +307,14 @@ export function AgentAssistCard(props: {
<div className="h-10 w-10 shrink-0" aria-hidden="true" />
)}
<div className="min-w-0 flex-1">
- <div className="text-[13px] font-medium text-dls-text">{item.title}</div>
+ <div className="text-[13px] font-medium text-dls-text">{agentAssistText(item.key).title}</div>
<div id={`agent-assist-${item.key}-help`} className="text-[11px] text-dls-secondary">
- {item.help}
- {forced ? " Set by the app's environment." : ""}
+ {agentAssistText(item.key).help}
+ {forced ? ` ${t("settings.agent_assist.forced")}` : ""}
</div>
</div>
<Switch
- aria-label={item.title}
+ aria-label={agentAssistText(item.key).title}
aria-describedby={`agent-assist-${item.key}-help`}
checked={props.setting?.features[item.key] === true}
disabled={props.busy || props.setting === null || forced}
@@ -328,26 +341,26 @@ export function KeepAwakeCard(props: {
onToggle: (enabled: boolean) => void;
}) {
const hint = props.state?.forcedOff
- ? "Off for this launch: OMNIRUSH_KEEP_AWAKE=0 is set."
+ ? t("settings.keep_awake_forced_off")
: props.state && !props.state.available
- ? "Not available in this session (remote login or CI)."
+ ? t("settings.keep_awake_unavailable")
: null;
return (
<div className="space-y-3">
- <div className="text-[11px] font-semibold uppercase tracking-[0.15em] text-dls-secondary">Power</div>
+ <div className="text-[11px] font-semibold uppercase tracking-[0.15em] text-dls-secondary">{t("settings.power_title")}</div>
<div className="flex items-center gap-4 rounded-2xl border border-dls-border bg-dls-surface p-4">
<div className="flex h-10 w-10 shrink-0 items-center justify-center rounded-xl border border-dls-border bg-dls-hover">
<Coffee size={17} className="text-dls-secondary" />
</div>
<div className="min-w-0 flex-1">
- <div className="text-[13px] font-medium text-dls-text">{KEEP_AWAKE_TITLE}</div>
- <div id="keep-awake-help" className="text-[11px] text-dls-secondary">{KEEP_AWAKE_HELP}</div>
+ <div className="text-[13px] font-medium text-dls-text">{t("settings.keep_awake_title")}</div>
+ <div id="keep-awake-help" className="text-[11px] text-dls-secondary">{t("settings.keep_awake_help")}</div>
{hint ? (
<div className="mt-0.5 text-[11px] text-dls-secondary" role="status" data-testid="keep-awake-status">{hint}</div>
) : null}
</div>
<Switch
- aria-label={KEEP_AWAKE_TITLE}
+ aria-label={t("settings.keep_awake_title")}
aria-describedby="keep-awake-help"
checked={props.state?.enabled === true}
disabled={props.busy || props.state === null}
@@ -402,7 +415,7 @@ export function GeneralSettingsView(props: GeneralSettingsViewProps) {
async function connectAccount() {
setAccountBusy(true);
- setAccountMessage("Approve the device link in your browser…");
+ setAccountMessage(t("settings.account_approve_in_browser"));
try {
await omnirushAccountConnect();
captureAnalyticsEvent("device_approved", { method: "device_link" });
@@ -413,9 +426,9 @@ export function GeneralSettingsView(props: GeneralSettingsViewProps) {
syncAnalyticsAccount(next);
captureAnalyticsEvent("sign_in_completed", { method: "device_link" });
}
- setAccountMessage("Account connected. omnirush.ai models are ready.");
+ setAccountMessage(t("settings.account_connected_ready"));
} catch (error) {
- setAccountMessage(error instanceof Error ? error.message : "The account could not be connected.");
+ setAccountMessage(error instanceof Error ? error.message : t("settings.account_connect_failed"));
} finally {
setAccountBusy(false);
}
@@ -435,7 +448,7 @@ export function GeneralSettingsView(props: GeneralSettingsViewProps) {
setAccount(next ?? { connected: false, gatewayConfigured: account?.gatewayConfigured ?? false });
setAccountMessage(kept > 0 ? `${accountSignOutMessage(result, server)} ${keptPendingLine(kept)}` : accountSignOutMessage(result, server));
} catch (error) {
- setAccountMessage(error instanceof Error ? error.message : "The account could not be signed out.");
+ setAccountMessage(error instanceof Error ? error.message : t("settings.account_sign_out_failed"));
} finally {
setAccountBusy(false);
}
@@ -449,7 +462,7 @@ export function GeneralSettingsView(props: GeneralSettingsViewProps) {
{isElectronRuntime() && account && (
<div className="space-y-3">
<div className="text-[11px] font-semibold uppercase tracking-[0.15em] text-dls-secondary">
- Account
+ {t("settings.tab_cloud_account")}
</div>
<div className="flex items-center gap-4 rounded-2xl border border-dls-border bg-dls-surface p-4">
<div className="flex h-10 w-10 shrink-0 items-center justify-center rounded-xl border border-dls-border bg-dls-hover">
@@ -457,7 +470,7 @@ export function GeneralSettingsView(props: GeneralSettingsViewProps) {
</div>
<div className="min-w-0 flex-1">
<div className="text-[13px] font-medium text-dls-text">
- {account.connected ? account.displayName || account.email || "Connected" : "Sign in to your account"}
+ {account.connected ? account.displayName || account.email || t("config.status_connected") : t("settings.account_sign_in_title")}
</div>
{account.connected && account.email ? (
<div className="truncate text-[11px] text-dls-secondary">{account.email}</div>
@@ -471,22 +484,22 @@ export function GeneralSettingsView(props: GeneralSettingsViewProps) {
{accountMessage || (account.connected
? usage
? usage.line
- : "omnirush.ai models are ready on this Mac."
+ : t("settings.account_models_ready")
: account.gatewayConfigured
? account.reauthorizationRequired
? account.keyringUnavailable
- ? "Your system keyring is not available right now. Sign in again to continue."
- : "Your session expired. Sign in again to continue."
- : "Sign in in your browser, then return here."
- : "The omnirush.ai account service has not been configured for this build.")}
+ ? t("settings.account_keyring_unavailable")
+ : t("settings.account_session_expired")
+ : t("settings.account_sign_in_hint")
+ : t("settings.account_not_configured"))}
</div>
{account.connected && account.credentialStorage === "file" ? (
<div className="mt-0.5 text-[11px] text-dls-secondary" data-testid="account-credential-storage">
- Signed in. No system keyring is available, so the sign-in is kept in a private file on this computer.
+ {t("settings.account_file_storage")}
</div>
) : null}
{usage ? (
- <div className="mt-2 h-1.5 overflow-hidden rounded-full bg-dls-hover" aria-label={`${Math.round(usage.percent)}% used`}>
+ <div className="mt-2 h-1.5 overflow-hidden rounded-full bg-dls-hover" aria-label={t("settings.account_usage_percent", { percent: Math.round(usage.percent) })}>
<div
className="h-full rounded-full bg-highlight"
style={{ width: `${usage.percent}%` }}
@@ -499,11 +512,11 @@ export function GeneralSettingsView(props: GeneralSettingsViewProps) {
</div>
{account.connected ? (
<button type="button" disabled={accountBusy} onClick={() => void signOutAccount()} className="rounded-lg border border-dls-border px-3 py-2 text-[12px] text-dls-secondary hover:bg-dls-hover disabled:opacity-50">
- Sign out
+ {t("den.sign_out")}
</button>
) : (
<button type="button" disabled={accountBusy || !account.gatewayConfigured} onClick={() => void connectAccount()} className="rounded-lg bg-dls-text px-3 py-2 text-[12px] font-medium text-dls-background disabled:opacity-50">
- {accountBusy ? "Waiting…" : "Sign in"}
+ {accountBusy ? t("settings.account_waiting") : t("settings.account_sign_in")}
</button>
)}
</div>
@@ -512,7 +525,7 @@ export function GeneralSettingsView(props: GeneralSettingsViewProps) {
{/* Workspace settings */}
<div className="space-y-3">
<div className="text-[11px] font-semibold uppercase tracking-[0.15em] text-dls-secondary">
- Workspace
+ {t("settings.section_workspace")}
</div>
<div className="grid grid-cols-2 gap-2">
{workspaceCards.map((card) => (
@@ -530,7 +543,7 @@ export function GeneralSettingsView(props: GeneralSettingsViewProps) {
{/* Global settings */}
<div className="space-y-3">
<div className="text-[11px] font-semibold uppercase tracking-[0.15em] text-dls-secondary">
- Global
+ {t("settings.section_global")}
</div>
<div className="grid grid-cols-2 gap-2">
{globalCards.map((card) => (
diff --git a/apps/app/src/react-app/domains/settings/pages/preferences-view.tsx b/apps/app/src/react-app/domains/settings/pages/preferences-view.tsx
index 0e680737..429f1b72 100644
--- a/apps/app/src/react-app/domains/settings/pages/preferences-view.tsx
+++ b/apps/app/src/react-app/domains/settings/pages/preferences-view.tsx
@@ -55,6 +55,17 @@ function desktopNotificationPreferenceLabel(value: DesktopNotificationPreference
}
}
+function desktopNotificationPreferenceDescription(value: DesktopNotificationPreference) {
+ switch (value) {
+ case "important":
+ return t("settings.desktop_notifications.important_desc");
+ case "all":
+ return t("settings.desktop_notifications.all_desc");
+ case "off":
+ return t("settings.desktop_notifications.off_desc");
+ }
+}
+
export function PreferencesView(props: PreferencesViewProps) {
const desktopNotificationItems = DESKTOP_NOTIFICATION_PREFERENCE_VALUES.map((value) => ({
value,
@@ -136,7 +147,7 @@ export function PreferencesView(props: PreferencesViewProps) {
<SelectItem key={value} value={value} data-testid={`desktop-notifications-${value}`}>
<span className="flex flex-col">
<span>{desktopNotificationPreferenceLabel(value)}</span>
- <span className="text-xs text-muted-foreground">{t(`settings.desktop_notifications.${value}_desc`)}</span>
+ <span className="text-xs text-muted-foreground">{desktopNotificationPreferenceDescription(value)}</span>
</span>
</SelectItem>
))}
diff --git a/apps/app/src/react-app/domains/settings/pages/skill-files-panel.tsx b/apps/app/src/react-app/domains/settings/pages/skill-files-panel.tsx
index 0137be63..3d72f283 100644
--- a/apps/app/src/react-app/domains/settings/pages/skill-files-panel.tsx
+++ b/apps/app/src/react-app/domains/settings/pages/skill-files-panel.tsx
@@ -174,7 +174,7 @@ export function SkillFilesPanel(props: SkillFilesPanelProps) {
<div className="max-h-72 overflow-y-auto">
{!tree ? (
- <p className="px-4 py-3 text-sm text-muted-foreground">{t("common.loading") === "common.loading" ? "Loading…" : t("common.loading")}</p>
+ <p className="px-4 py-3 text-sm text-muted-foreground">{t("common.loading")}</p>
) : groups.map((group) => (
<div key={group.folder || "."}>
{group.folder ? (
diff --git a/apps/app/src/react-app/domains/settings/pages/updates-view.tsx b/apps/app/src/react-app/domains/settings/pages/updates-view.tsx
index 008b59c3..bce770b0 100644
--- a/apps/app/src/react-app/domains/settings/pages/updates-view.tsx
+++ b/apps/app/src/react-app/domains/settings/pages/updates-view.tsx
@@ -137,7 +137,7 @@ export function UpdatesView(props: UpdatesViewProps) {
{props.appVersion ? (
<LayoutSectionItem>
<LayoutSectionItemHeader>
- <LayoutSectionItemTitle>Current version</LayoutSectionItemTitle>
+ <LayoutSectionItemTitle>{t("settings.updates.current_version")}</LayoutSectionItemTitle>
<LayoutSectionItemDescription className="font-mono">v{props.appVersion}</LayoutSectionItemDescription>
</LayoutSectionItemHeader>
</LayoutSectionItem>
@@ -319,9 +319,9 @@ export function UpdatesView(props: UpdatesViewProps) {
{props.alphaChannelSupported && props.releaseChannel ? (
<LayoutSectionItem>
<LayoutSectionItemHeader>
- <LayoutSectionItemTitle>Release channel</LayoutSectionItemTitle>
+ <LayoutSectionItemTitle>{t("settings.updates.release_channel")}</LayoutSectionItemTitle>
<LayoutSectionItemDescription>
- Stable gets fully tested releases. Alpha includes the very latest changes but may be less polished.
+ {t("settings.updates.release_channel_desc")}
</LayoutSectionItemDescription>
<LayoutSectionItemHeaderActions>
<Select
@@ -334,7 +334,7 @@ export function UpdatesView(props: UpdatesViewProps) {
}}
disabled={!props.onReleaseChannelChange}
>
- <SelectTrigger aria-label="Release channel" className="w-48">
+ <SelectTrigger aria-label={t("settings.updates.release_channel")} className="w-48">
<SelectValue />
</SelectTrigger>
<SelectContent>
diff --git a/apps/app/src/react-app/domains/settings/panels/authorized-folders-panel.tsx b/apps/app/src/react-app/domains/settings/panels/authorized-folders-panel.tsx
index 29a1842f..c785c76d 100644
--- a/apps/app/src/react-app/domains/settings/panels/authorized-folders-panel.tsx
+++ b/apps/app/src/react-app/domains/settings/panels/authorized-folders-panel.tsx
@@ -284,7 +284,7 @@ export function AuthorizedFoldersPanel(props: AuthorizedFoldersPanelProps) {
disabled={authorizedFoldersLoading || authorizedFoldersSaving || !canPickAuthorizedFolder}
>
<Plus className="size-4" />
- Add folder
+ {t("context_panel.add_folder")}
</Button>
</LayoutSectionItemHeaderActions>
) : null}
@@ -333,7 +333,7 @@ export function AuthorizedFoldersPanel(props: AuthorizedFoldersPanelProps) {
disabled={authorizedFoldersLoading || authorizedFoldersSaving || !canPickAuthorizedFolder}
>
<Plus className="size-4" />
- Add folder
+ {t("context_panel.add_folder")}
</Button>
</EmptyContent>
) : null}
diff --git a/apps/app/src/react-app/domains/settings/shell/settings-page.tsx b/apps/app/src/react-app/domains/settings/shell/settings-page.tsx
index e99f5590..99099064 100644
--- a/apps/app/src/react-app/domains/settings/shell/settings-page.tsx
+++ b/apps/app/src/react-app/domains/settings/shell/settings-page.tsx
@@ -106,11 +106,11 @@ export function getSettingsTabIcon(tab: SettingsTab) {
export function getSettingsTabLabel(tab: SettingsTab) {
switch (tab) {
case "ai":
- return "AI Providers";
+ return t("settings.tab_ai");
case "preferences":
- return "Preferences";
+ return t("settings.tab_preferences");
case "permissions":
- return "Permissions";
+ return t("settings.tab_permissions");
case "cloud-account":
return t("settings.tab_cloud_account");
case "connect":
@@ -130,9 +130,9 @@ export function getSettingsTabLabel(tab: SettingsTab) {
case "appearance":
return t("settings.tab_appearance");
case "editor":
- return "Editor";
+ return t("settings.tab_editor");
case "voice":
- return "Voice";
+ return t("settings.tab_voice");
case "updates":
return t("settings.tab_updates");
case "recovery":
@@ -140,7 +140,7 @@ export function getSettingsTabLabel(tab: SettingsTab) {
case "debug":
return t("settings.tab_debug");
case "general":
- return "Settings";
+ return t("settings.tab_general");
default:
return t("settings.tab_general");
}
@@ -149,11 +149,11 @@ export function getSettingsTabLabel(tab: SettingsTab) {
export function getSettingsTabDescription(tab: SettingsTab) {
switch (tab) {
case "ai":
- return "Connect services that provide AI models";
+ return t("settings.tab_description_ai");
case "preferences":
- return "Default model, reasoning, and compaction";
+ return t("settings.tab_description_preferences");
case "permissions":
- return "Authorized folders and file access";
+ return t("settings.tab_description_permissions");
case "cloud-account":
return t("settings.tab_description_cloud_account");
case "connect":
@@ -173,9 +173,9 @@ export function getSettingsTabDescription(tab: SettingsTab) {
case "appearance":
return t("settings.tab_description_appearance");
case "editor":
- return "Code editor: text, saving, language features and keys";
+ return t("settings.tab_description_editor");
case "voice":
- return "Dictation, microphone, and hotkey";
+ return t("settings.tab_description_voice");
case "updates":
return t("settings.tab_description_updates");
case "recovery":
@@ -183,7 +183,7 @@ export function getSettingsTabDescription(tab: SettingsTab) {
case "debug":
return t("settings.tab_description_debug");
case "general":
- return "Overview of all settings";
+ return t("settings.tab_description_overview");
default:
return t("settings.tab_description_general");
}
diff --git a/apps/app/src/react-app/domains/settings/subagent-model-settings.tsx b/apps/app/src/react-app/domains/settings/subagent-model-settings.tsx
index 7f69d09f..ba9a587e 100644
--- a/apps/app/src/react-app/domains/settings/subagent-model-settings.tsx
+++ b/apps/app/src/react-app/domains/settings/subagent-model-settings.tsx
@@ -8,6 +8,7 @@ import {
SelectValue,
} from "@/components/ui/select";
import { toast } from "@/components/ui/sonner";
+import { t } from "@/i18n";
import { useDesktopRestriction } from "@/react-app/domains/cloud/desktop-config-provider";
import {
@@ -18,9 +19,6 @@ import {
LayoutSectionItemTitle,
} from "./settings-layout";
import {
- SAME_AS_MAIN_LABEL,
- SUBAGENT_EFFORT_HELP,
- SUBAGENT_MODEL_HELP,
subagentEffortLabel,
subagentEffortOptions,
subagentModelName,
@@ -44,36 +42,36 @@ export function SubagentModelSettings(props: { client: SubagentModelClient | nul
const unavailable = subagentModelUnavailable(state, setting);
const models = state?.models ?? [];
const modelItems = [
- { value: SAME, label: SAME_AS_MAIN_LABEL },
+ { value: SAME, label: t("subagent.same_as_main") },
...models.map((model) => ({ value: model.id, label: model.family && model.family !== "OpenAI" ? `${model.name} (${model.family})` : model.name })),
- ...(setting.model && unavailable ? [{ value: setting.model, label: `${subagentModelName(state, setting.model)} (not available)` }] : []),
+ ...(setting.model && unavailable ? [{ value: setting.model, label: `${subagentModelName(state, setting.model)} ${t("subagent.not_available")}` }] : []),
];
const effortItems = [
- { value: SAME, label: SAME_AS_MAIN_LABEL },
+ { value: SAME, label: t("subagent.same_as_main") },
...subagentEffortOptions(state, setting.model).map((effort) => ({ value: effort, label: subagentEffortLabel(effort) })),
];
const save = (next: { model?: string | null; effort?: string | null }) => {
void change(next)
- .then((saved) => toast.success(`Sub-agents: ${subagentSummary(state, saved)}. Applies to new tasks.`))
- .catch((reason: unknown) => toast.error(reason instanceof Error ? reason.message : "The sub-agent setting could not be saved."));
+ .then((saved) => toast.success(t("subagent.saved", { summary: subagentSummary(state, saved) })))
+ .catch((reason: unknown) => toast.error(reason instanceof Error ? reason.message : t("subagent.save_failed")));
};
const status = policyLocked
- ? "Locked by your organisation: its policy does not allow changing app settings."
+ ? t("subagent.policy_lock")
: state && !state.signedIn
- ? "Sign in to omnirush.ai to pick a model for sub-agents."
+ ? t("subagent.sign_in_hint")
: unavailable
- ? "This model is not available to your account right now: sub-agents run on the main agent's model."
+ ? t("subagent.model_unavailable")
: error;
return (
<>
<LayoutSectionItem>
<LayoutSectionItemHeader>
- <LayoutSectionItemTitle>Sub-agents: model</LayoutSectionItemTitle>
+ <LayoutSectionItemTitle>{t("subagent.model_label")}</LayoutSectionItemTitle>
<LayoutSectionItemDescription>
- {SUBAGENT_MODEL_HELP}
+ {t("subagent.model_help")}
{status ? <span className="mt-1 block" data-testid="subagent-model-status">{status}</span> : null}
</LayoutSectionItemDescription>
<LayoutSectionItemHeaderActions>
@@ -86,8 +84,8 @@ export function SubagentModelSettings(props: { client: SubagentModelClient | nul
}}
disabled={disabled || !state?.signedIn}
>
- <SelectTrigger className="w-full" aria-label="Sub-agents: model" data-testid="settings-subagent-model">
- <SelectValue placeholder={SAME_AS_MAIN_LABEL} />
+ <SelectTrigger className="w-full" aria-label={t("subagent.model_label")} data-testid="settings-subagent-model">
+ <SelectValue placeholder={t("subagent.same_as_main")} />
</SelectTrigger>
<SelectContent>
<SelectGroup>
@@ -103,8 +101,8 @@ export function SubagentModelSettings(props: { client: SubagentModelClient | nul
</LayoutSectionItem>
<LayoutSectionItem>
<LayoutSectionItemHeader>
- <LayoutSectionItemTitle>Sub-agent effort</LayoutSectionItemTitle>
- <LayoutSectionItemDescription>{SUBAGENT_EFFORT_HELP}</LayoutSectionItemDescription>
+ <LayoutSectionItemTitle>{t("subagent.effort_label")}</LayoutSectionItemTitle>
+ <LayoutSectionItemDescription>{t("subagent.effort_help")}</LayoutSectionItemDescription>
<LayoutSectionItemHeaderActions>
<div className="w-56 max-w-full">
<Select
@@ -115,8 +113,8 @@ export function SubagentModelSettings(props: { client: SubagentModelClient | nul
}}
disabled={disabled || !state?.signedIn}
>
- <SelectTrigger className="w-full" aria-label="Sub-agent effort" data-testid="settings-subagent-effort">
- <SelectValue placeholder={SAME_AS_MAIN_LABEL} />
+ <SelectTrigger className="w-full" aria-label={t("subagent.effort_label")} data-testid="settings-subagent-effort">
+ <SelectValue placeholder={t("subagent.same_as_main")} />
</SelectTrigger>
<SelectContent>
<SelectGroup>
diff --git a/apps/app/src/react-app/domains/settings/subagent-model.ts b/apps/app/src/react-app/domains/settings/subagent-model.ts
index 5c39f6f2..2fe225c9 100644
--- a/apps/app/src/react-app/domains/settings/subagent-model.ts
+++ b/apps/app/src/react-app/domains/settings/subagent-model.ts
@@ -13,6 +13,7 @@ import type {
} from "@/app/lib/omnirush-server";
import { OMNIRUSH_REASONING_EFFORTS } from "@/app/constants";
import { formatGenericBehaviorLabel } from "@/app/lib/model-behavior";
+import { t } from "@/i18n";
export type SubagentModelClient = Pick<OmniRushServerClient, "getSubagentModel" | "setSubagentModel"> & {
/** Keys the shared state; clients without one share a single entry. */
@@ -60,13 +61,13 @@ export function subagentModelName(state: OmniRushSubagentModelState | undefined,
}
export function subagentEffortLabel(effort: string | null): string {
- return effort ? formatGenericBehaviorLabel(effort) : SAME_AS_MAIN_LABEL;
+ return effort ? formatGenericBehaviorLabel(effort) : t("subagent.same_as_main");
}
/** "Same as main agent", "GPT 6 Sol", "GPT 6 Sol · High" or "Main model · Low". */
export function subagentSummary(state: OmniRushSubagentModelState | undefined, setting: OmniRushSubagentModelSetting): string {
- if (!setting.model && !setting.effort) return SAME_AS_MAIN_LABEL;
- const model = setting.model ? subagentModelName(state, setting.model) : "Main model";
+ if (!setting.model && !setting.effort) return t("subagent.same_as_main");
+ const model = setting.model ? subagentModelName(state, setting.model) : t("subagent.main_model");
return setting.effort ? `${model} · ${formatGenericBehaviorLabel(setting.effort)}` : model;
}
diff --git a/apps/app/src/react-app/domains/voice/use-voice-dictation.ts b/apps/app/src/react-app/domains/voice/use-voice-dictation.ts
index 2a61a213..d25e725c 100644
--- a/apps/app/src/react-app/domains/voice/use-voice-dictation.ts
+++ b/apps/app/src/react-app/domains/voice/use-voice-dictation.ts
@@ -1,6 +1,7 @@
import { useCallback, useEffect, useMemo, useRef, useState, type RefObject } from "react";
import { toast } from "@/components/ui/sonner";
+import { t } from "@/i18n";
import type { OmniRushServerClient, OmniRushVoiceStatus } from "@/app/lib/omnirush-server";
import {
CircuitBreaker,
@@ -41,9 +42,9 @@ const AUTO_SEND_MIN_WORDS = 3;
function availabilityFrom(enabled: boolean, client: VoiceClient | null, status: OmniRushVoiceStatus | null): VoiceAvailability {
if (!enabled || !client) return { state: "hidden" };
- if (status && !status.signedIn) return { state: "disabled", reason: "Sign in to omnirush.ai to use voice input." };
+ if (status && !status.signedIn) return { state: "disabled", reason: t("voice.sign_in_required") };
if (status?.available === false) {
- return { state: "disabled", reason: "Voice input isn't available on your account yet." };
+ return { state: "disabled", reason: t("voice.not_available") };
}
return { state: "ready" };
}
@@ -53,7 +54,7 @@ function errorToast(error: VoiceError, partial: boolean): void {
toast.info(error.message);
return;
}
- toast.error(partial ? `Part of the dictation was lost: ${error.message}` : error.message);
+ toast.error(partial ? t("voice.partial_lost", { message: error.message }) : error.message);
}
export type VoiceDictation = {
diff --git a/apps/app/src/react-app/domains/voice/voice-settings-view.tsx b/apps/app/src/react-app/domains/voice/voice-settings-view.tsx
index 7225fbd6..2541b047 100644
--- a/apps/app/src/react-app/domains/voice/voice-settings-view.tsx
+++ b/apps/app/src/react-app/domains/voice/voice-settings-view.tsx
@@ -23,11 +23,12 @@ import { MicrophoneSource, listMicrophones, microphoneSettingsUrl, openMicrophon
import type { VoiceClient } from "./use-voice-dictation";
import { useVoiceStatus } from "./voice-status";
import { VOICE_LANGUAGES, useVoiceSettings, voicePrivacyNote, type VoiceMode } from "./voice-settings";
+import { t } from "@/i18n";
-const MODES: ReadonlyArray<{ value: VoiceMode; label: string }> = [
- { value: "both", label: "Hold or tap" },
- { value: "hold", label: "Hold to talk" },
- { value: "tap", label: "Tap to start and stop" },
+const voiceModes = (): ReadonlyArray<{ value: VoiceMode; label: string }> => [
+ { value: "both", label: t("voice.mode_both") },
+ { value: "hold", label: t("voice.mode_hold") },
+ { value: "tap", label: t("voice.mode_tap") },
];
const SYSTEM_DEFAULT = "system-default";
@@ -58,11 +59,11 @@ function MicTest(props: { deviceId: string | null }) {
};
return (
<div className="flex items-center gap-3">
- <div className="h-2 w-32 overflow-hidden rounded-full bg-gray-4" aria-label="Microphone level" data-testid="voice-settings-meter">
+ <div className="h-2 w-32 overflow-hidden rounded-full bg-gray-4" aria-label={t("voice.mic_level")} data-testid="voice-settings-meter">
<div className="h-full rounded-full bg-green-9 transition-[width] duration-75" style={{ width: `${Math.round((level ?? 0) * 100)}%` }} />
</div>
<Button variant="outline" size="sm" onClick={() => (level === null ? void start() : stop())}>
- {level === null ? "Test" : "Stop"}
+ {level === null ? t("voice.test") : t("composer.stop")}
</Button>
{error ? <span className="text-xs text-red-11">{error}</span> : null}
</div>
@@ -104,9 +105,9 @@ export function VoiceSettingsView(props: { client: VoiceClient | null }) {
const availability = !props.client
? null
: status && !status.signedIn
- ? "Sign in to omnirush.ai to use voice input."
+ ? t("voice.sign_in_required")
: status?.available === false
- ? "Voice input isn't available on your account yet."
+ ? t("voice.not_available")
: null;
const deviceKnown = settings.deviceId === null || devices.some((device) => device.deviceId === settings.deviceId);
@@ -114,17 +115,17 @@ export function VoiceSettingsView(props: { client: VoiceClient | null }) {
<LayoutStack>
<LayoutSection>
<LayoutSectionHeader>
- <LayoutSectionTitle>Voice input</LayoutSectionTitle>
+ <LayoutSectionTitle>{t("voice.title")}</LayoutSectionTitle>
<LayoutSectionDescription>
- Dictate prompts instead of typing. Your words appear in the composer, where you can edit them before sending.
+ {t("voice.desc")}
</LayoutSectionDescription>
</LayoutSectionHeader>
<LayoutSectionItem>
<LayoutSectionItemHeader>
- <LayoutSectionItemTitle>Dictation</LayoutSectionItemTitle>
+ <LayoutSectionItemTitle>{t("voice.dictation")}</LayoutSectionItemTitle>
<LayoutSectionItemDescription>
- {availability ?? "Show the microphone button in the composer and listen for the hotkey."}
+ {availability ?? t("voice.dictation_desc")}
</LayoutSectionItemDescription>
<LayoutSectionItemHeaderActions>
<Switch
@@ -142,12 +143,12 @@ export function VoiceSettingsView(props: { client: VoiceClient | null }) {
<LayoutSectionItem>
<LayoutSectionItemHeader>
- <LayoutSectionItemTitle>Hotkey</LayoutSectionItemTitle>
- <LayoutSectionItemDescription>Works whenever the OmniRush.ai window is focused.</LayoutSectionItemDescription>
+ <LayoutSectionItemTitle>{t("voice.hotkey")}</LayoutSectionItemTitle>
+ <LayoutSectionItemDescription>{t("voice.hotkey_desc")}</LayoutSectionItemDescription>
<LayoutSectionItemHeaderActions>
<div className="flex items-center gap-2">
<Button variant="outline" size="sm" data-testid="voice-settings-hotkey" onClick={() => setRecording(true)}>
- {recording ? "Press a shortcut…" : formatHotkey(hotkey)}
+ {recording ? t("voice.press_shortcut") : formatHotkey(hotkey)}
</Button>
{settings.hotkey ? (
<Button variant="ghost" size="sm" onClick={() => settings.update({ hotkey: null })}>
@@ -161,19 +162,19 @@ export function VoiceSettingsView(props: { client: VoiceClient | null }) {
<LayoutSectionItem>
<LayoutSectionItemHeader>
- <LayoutSectionItemTitle>Hold or tap</LayoutSectionItemTitle>
+ <LayoutSectionItemTitle>{t("voice.mode_both")}</LayoutSectionItemTitle>
<LayoutSectionItemDescription>
- Hold the hotkey while you talk, or tap it to start and tap again to stop. Esc cancels and restores your prompt.
+ {t("voice.mode_desc")}
</LayoutSectionItemDescription>
<LayoutSectionItemHeaderActions>
<div className="w-56 max-w-full">
- <Select value={settings.mode} items={MODES} onValueChange={(value) => value && settings.update({ mode: value })}>
- <SelectTrigger className="w-full" aria-label="Hold or tap">
+ <Select value={settings.mode} items={voiceModes()} onValueChange={(value) => value && settings.update({ mode: value })}>
+ <SelectTrigger className="w-full" aria-label={t("voice.mode_both")}>
<SelectValue />
</SelectTrigger>
<SelectContent>
<SelectGroup>
- {MODES.map((mode) => (
+ {voiceModes().map((mode) => (
<SelectItem key={mode.value} value={mode.value}>{mode.label}</SelectItem>
))}
</SelectGroup>
@@ -186,27 +187,27 @@ export function VoiceSettingsView(props: { client: VoiceClient | null }) {
<LayoutSectionItem>
<LayoutSectionItemHeader>
- <LayoutSectionItemTitle>Input device</LayoutSectionItemTitle>
+ <LayoutSectionItemTitle>{t("voice.input_device")}</LayoutSectionItemTitle>
<LayoutSectionItemDescription>
- {deviceKnown ? "The microphone used for dictation." : "The chosen microphone is not connected; the system default is used."}
+ {deviceKnown ? t("voice.input_device_desc") : t("voice.input_device_missing")}
</LayoutSectionItemDescription>
<LayoutSectionItemHeaderActions>
<div className="flex flex-wrap items-center gap-3">
<div className="w-56 max-w-full">
<Select
value={settings.deviceId ?? SYSTEM_DEFAULT}
- items={[{ value: SYSTEM_DEFAULT, label: "System default" }, ...devices.map((device) => ({ value: device.deviceId, label: device.label }))]}
+ items={[{ value: SYSTEM_DEFAULT, label: t("voice.system_default") }, ...devices.map((device) => ({ value: device.deviceId, label: device.label }))]}
onValueChange={(value) => {
settings.update({ deviceId: !value || value === SYSTEM_DEFAULT ? null : value });
releaseMicrophone();
}}
>
- <SelectTrigger className="w-full" aria-label="Input device">
+ <SelectTrigger className="w-full" aria-label={t("voice.input_device")}>
<SelectValue />
</SelectTrigger>
<SelectContent>
<SelectGroup>
- <SelectItem value={SYSTEM_DEFAULT}>System default</SelectItem>
+ <SelectItem value={SYSTEM_DEFAULT}>{t("voice.system_default")}</SelectItem>
{devices.map((device) => (
<SelectItem key={device.deviceId} value={device.deviceId}>{device.label}</SelectItem>
))}
@@ -222,18 +223,18 @@ export function VoiceSettingsView(props: { client: VoiceClient | null }) {
<LayoutSectionItem>
<LayoutSectionItemHeader>
- <LayoutSectionItemTitle>Language</LayoutSectionItemTitle>
- <LayoutSectionItemDescription>The language you speak. Automatic detection works for most people.</LayoutSectionItemDescription>
+ <LayoutSectionItemTitle>{t("settings.language")}</LayoutSectionItemTitle>
+ <LayoutSectionItemDescription>{t("voice.language_desc")}</LayoutSectionItemDescription>
<LayoutSectionItemHeaderActions>
<div className="w-56 max-w-full">
- <Select value={settings.language} items={VOICE_LANGUAGES} onValueChange={(value) => value && settings.update({ language: value })}>
- <SelectTrigger className="w-full" aria-label="Dictation language">
+ <Select value={settings.language} items={VOICE_LANGUAGES.map((language) => (language.value === "auto" ? { ...language, label: t("voice.detect_automatically") } : language))} onValueChange={(value) => value && settings.update({ language: value })}>
+ <SelectTrigger className="w-full" aria-label={t("voice.dictation_language")}>
<SelectValue />
</SelectTrigger>
<SelectContent>
<SelectGroup>
{VOICE_LANGUAGES.map((language) => (
- <SelectItem key={language.value} value={language.value}>{language.label}</SelectItem>
+ <SelectItem key={language.value} value={language.value}>{language.value === "auto" ? t("voice.detect_automatically") : language.label}</SelectItem>
))}
</SelectGroup>
</SelectContent>
@@ -245,10 +246,10 @@ export function VoiceSettingsView(props: { client: VoiceClient | null }) {
<LayoutSectionItem>
<LayoutSectionItemHeader>
- <LayoutSectionItemTitle>Send after dictation</LayoutSectionItemTitle>
- <LayoutSectionItemDescription>Send the prompt as soon as you stop talking (at least three words). Off: review and edit first.</LayoutSectionItemDescription>
+ <LayoutSectionItemTitle>{t("voice.auto_send")}</LayoutSectionItemTitle>
+ <LayoutSectionItemDescription>{t("voice.auto_send_desc")}</LayoutSectionItemDescription>
<LayoutSectionItemHeaderActions>
- <Switch aria-label="Send after dictation" checked={settings.autoSend} onCheckedChange={(autoSend) => settings.update({ autoSend })} />
+ <Switch aria-label={t("voice.auto_send")} checked={settings.autoSend} onCheckedChange={(autoSend) => settings.update({ autoSend })} />
</LayoutSectionItemHeaderActions>
</LayoutSectionItemHeader>
</LayoutSectionItem>
@@ -258,16 +259,16 @@ export function VoiceSettingsView(props: { client: VoiceClient | null }) {
<LayoutSection>
<LayoutSectionHeader>
- <LayoutSectionTitle>Privacy</LayoutSectionTitle>
+ <LayoutSectionTitle>{t("voice.privacy")}</LayoutSectionTitle>
<LayoutSectionDescription data-testid="voice-privacy-note">{voicePrivacyNote(status?.providerRetentionDays)}</LayoutSectionDescription>
</LayoutSectionHeader>
{microphoneSettingsUrl() ? <LayoutSectionItem>
<LayoutSectionItemHeader>
- <LayoutSectionItemTitle>Microphone permission</LayoutSectionItemTitle>
- <LayoutSectionItemDescription>If dictation says the microphone is off, allow OmniRush.ai in your system's privacy settings.</LayoutSectionItemDescription>
+ <LayoutSectionItemTitle>{t("voice.mic_permission")}</LayoutSectionItemTitle>
+ <LayoutSectionItemDescription>{t("voice.mic_permission_desc")}</LayoutSectionItemDescription>
<LayoutSectionItemHeaderActions>
<Button variant="outline" size="sm" onClick={() => void openMicrophoneSettings()}>
- Open privacy settings
+ {t("voice.open_privacy")}
</Button>
</LayoutSectionItemHeaderActions>
</LayoutSectionItemHeader>
diff --git a/apps/app/src/react-app/domains/voice/voice-settings.ts b/apps/app/src/react-app/domains/voice/voice-settings.ts
index 31138db0..df08c4c8 100644
--- a/apps/app/src/react-app/domains/voice/voice-settings.ts
+++ b/apps/app/src/react-app/domains/voice/voice-settings.ts
@@ -1,5 +1,6 @@
import { create } from "zustand";
import { createJSONStorage, persist } from "zustand/middleware";
+import { t } from "@/i18n";
/** hold: talk while the hotkey is held. tap: press to start, press again to stop. both: a long press holds, a quick press taps. */
export type VoiceMode = "both" | "hold" | "tap";
@@ -51,9 +52,9 @@ export const useVoiceSettings = create<VoiceSettingsStore>()(
*/
export function voicePrivacyNote(providerRetentionDays?: number | null): string {
const provider = providerRetentionDays
- ? `omnirush.ai doesn't store your audio; the provider keeps a copy for up to ${providerRetentionDays} days.`
- : "omnirush.ai doesn't store your audio.";
- return `Voice is transcribed by our cloud speech provider. ${provider} Nothing is saved on this computer, and only the text you send becomes part of your prompt.`;
+ ? t("voice.privacy_retention", { days: providerRetentionDays })
+ : t("voice.privacy_no_store");
+ return t("voice.privacy_note", { provider });
}
/** Languages offered as a hint; the service detects the language on its own with "auto". */
diff --git a/apps/app/src/react-app/shell/settings-route.tsx b/apps/app/src/react-app/shell/settings-route.tsx
index 76ab0c10..0494b534 100644
--- a/apps/app/src/react-app/shell/settings-route.tsx
+++ b/apps/app/src/react-app/shell/settings-route.tsx
@@ -2578,7 +2578,12 @@ function SettingsRouteContent(props: SettingsSurfaceProps = {}) {
themeMode={themeMode}
setThemeMode={setThemeModeState}
language={currentLocale() as Language}
- setLanguage={setLocale}
+ setLanguage={(next) => {
+ if (next === currentLocale()) return;
+ setLocale(next);
+ // Labels are read at render time across the app; reload so every surface switches at once.
+ window.location.reload();
+ }}
hideTitlebar={hideTitlebar}
toggleHideTitlebar={() => setHideTitlebar((current) => !current)}
/>
diff --git a/apps/app/tests/sidebar-declutter.test.ts b/apps/app/tests/sidebar-declutter.test.ts
index 7e799c0d..98a3a4cf 100644
--- a/apps/app/tests/sidebar-declutter.test.ts
+++ b/apps/app/tests/sidebar-declutter.test.ts
@@ -29,10 +29,10 @@ describe("chat sidebar keeps the height for chats", () => {
for (const needle of [
'data-testid="audit-trail-toggle"',
'data-testid="local-workflows-toggle"',
- 'label="Dashboard"',
+ 'label={t("sidebar.dashboard")}',
'data-testid="sidebar-tasks"',
'data-testid="sidebar-tasks-running"',
- 'label="Automations"',
+ 'label={t("sidebar.automations")}',
"data-automations-attention-indicator",
't("settings.tab_extensions")',
'<NotificationBell variant="sidebar-icon" />',
@@ -41,7 +41,7 @@ describe("chat sidebar keeps the height for chats", () => {
test("the footer is the account row plus one row of rewards, feedback, what's new and Settings", () => {
const footer = between('data-testid="sidebar-footer-tools"', "</div>");
- for (const needle of ["<QualitySpinButtons", 'data-testid="sidebar-send-feedback"', "<WhatsNewIconButton />", 'label="Settings"']) {
+ for (const needle of ["<QualitySpinButtons", 'data-testid="sidebar-send-feedback"', "<WhatsNewIconButton />", 'label={t("settings.tab_general")}']) {
expect(footer).toContain(needle);
}
const spin = between("function QualitySpinButtons", "function WhatsNewIconButton");