feat(i18n): localize External MCP, Prompts, Voice Mode and Utility Agents (#2218)

Co-authored-by: Kandev Agent <agent@kandev.dev>
This commit is contained in:
João Salavisa
2026-08-03 21:45:37 +02:00
committed by GitHub
parent 76ac59238b
commit 59b92442cb
21 changed files with 1152 additions and 354 deletions
@@ -1,6 +1,7 @@
"use client";
import { useState } from "react";
import { useTranslation } from "react-i18next";
import { Button } from "@kandev/ui/button";
import { CardContent, CardHeader, CardTitle } from "@kandev/ui/card";
import { Label } from "@kandev/ui/label";
@@ -12,6 +13,7 @@ import { useSettingsSaveContributor } from "./settings-save-provider";
import { SettingsCard } from "./settings-card";
export function ChangelogNotificationCard() {
const { t } = useTranslation();
const userSettings = useAppStore((state) => state.userSettings);
const setUserSettings = useAppStore((state) => state.setUserSettings);
const storeApi = useAppStoreApi();
@@ -50,14 +52,16 @@ export function ChangelogNotificationCard() {
return (
<SettingsCard isDirty={draft !== saved}>
<CardHeader>
<CardTitle className="text-base">Topbar Release Notification</CardTitle>
<CardTitle className="text-base">{t("settings:changelogTopbarTitle")}</CardTitle>
</CardHeader>
<CardContent>
<div className="flex items-center justify-between">
<div className="space-y-0.5">
<Label htmlFor="release-notification-toggle">Show notification for new releases</Label>
<Label htmlFor="release-notification-toggle">
{t("settings:changelogTopbarLabel")}
</Label>
<p className="text-xs text-muted-foreground">
When enabled, a sparkle icon appears in the topbar when a new version is released
{t("settings:changelogTopbarDescription")}
</p>
</div>
<Switch
@@ -71,9 +75,9 @@ export function ChangelogNotificationCard() {
<Separator className="my-4" />
<div className="flex items-center justify-between">
<div className="space-y-0.5">
<Label>Reset seen releases</Label>
<Label>{t("settings:changelogResetSeenLabel")}</Label>
<p className="text-xs text-muted-foreground">
Clear your last seen version so the topbar notification appears again
{t("settings:changelogResetSeenDescription")}
</p>
</div>
<Button
@@ -83,7 +87,7 @@ export function ChangelogNotificationCard() {
disabled={isResetting || !userSettings.releaseNotesLastSeenVersion}
className="cursor-pointer"
>
Reset
{t("settings:reset")}
</Button>
</div>
</CardContent>
@@ -1,5 +1,6 @@
"use client";
import { useTranslation } from "react-i18next";
import { IconBell } from "@tabler/icons-react";
import { Separator } from "@kandev/ui/separator";
import { SettingsSection } from "@/components/settings/settings-section";
@@ -7,12 +8,13 @@ import { ChangelogNotificationCard } from "@/components/settings/changelog-notif
import { ChangelogList } from "@/components/settings/changelog-list";
export function ChangelogSettings() {
const { t } = useTranslation();
return (
<div className="space-y-8">
<div>
<h2 className="text-2xl font-bold">Changelog</h2>
<h2 className="text-2xl font-bold">{t("common:changelog")}</h2>
<p className="text-sm text-muted-foreground mt-1">
View all releases and manage notification preferences
{t("settings:changelogPageDescription")}
</p>
</div>
@@ -20,15 +22,18 @@ export function ChangelogSettings() {
<SettingsSection
icon={<IconBell className="h-5 w-5" />}
title="Notifications"
description="Control the release notes notification in the topbar"
title={t("settings:notifications")}
description={t("settings:changelogNotificationsDescription")}
>
<ChangelogNotificationCard />
</SettingsSection>
<Separator />
<SettingsSection title="Release History" description="All versions and their release notes">
<SettingsSection
title={t("settings:changelogReleaseHistory")}
description={t("settings:changelogReleaseHistoryDescription")}
>
<ChangelogList />
</SettingsSection>
</div>
@@ -1,6 +1,7 @@
"use client";
import { useEffect, useState } from "react";
import { useTranslation } from "react-i18next";
import { CardContent, CardHeader, CardTitle } from "@kandev/ui/card";
import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from "@kandev/ui/select";
import { useAppStore, useAppStoreApi } from "@/components/state-provider";
@@ -9,6 +10,7 @@ import { useSettingsSaveContributor } from "./settings-save-provider";
import { SettingsCard } from "./settings-card";
export function ConfigChatAgentSection() {
const { t } = useTranslation();
const workspace = useAppStore(
(s) => s.workspaces.items.find((w) => w.id === s.workspaces.activeId) ?? null,
);
@@ -62,23 +64,20 @@ export function ConfigChatAgentSection() {
<SettingsCard isDirty={isDirty} data-testid="config-chat-agent-card">
<CardHeader>
<CardTitle className="text-base">
<h3>Configuration Chat Agent</h3>
<h3>{t("settings:configChatAgentTitle")}</h3>
</CardTitle>
</CardHeader>
<CardContent className="space-y-4">
<p className="text-sm text-muted-foreground">
Choose which agent profile to use for the Configuration Chat. This agent can manage your
workflows, agent profiles, and MCP configuration.
</p>
<p className="text-sm text-muted-foreground">{t("settings:configChatAgentDescription")}</p>
<Select
value={draftProfileId || "none"}
onValueChange={(value) => setDraftProfileId(value === "none" ? "" : value)}
>
<SelectTrigger className="w-full max-w-sm cursor-pointer" data-settings-dirty={isDirty}>
<SelectValue placeholder="Choose an agent profile..." />
<SelectValue placeholder={t("settings:configChatAgentPlaceholder")} />
</SelectTrigger>
<SelectContent>
<SelectItem value="none">No default</SelectItem>
<SelectItem value="none">{t("settings:configChatAgentNoDefault")}</SelectItem>
{profiles.map((p) => (
<SelectItem key={p.id} value={p.id} className="cursor-pointer">
{p.label}
@@ -1,6 +1,7 @@
"use client";
import { useMemo, useState } from "react";
import { Trans, useTranslation } from "react-i18next";
import {
IconCheck,
IconChevronDown,
@@ -30,6 +31,7 @@ import {
import { EXTERNAL_MCP_TOOL_GROUPS, countExternalMcpTools } from "@/lib/settings/external-mcp-tools";
export function ExternalMcpSettings() {
const { t } = useTranslation();
const baseUrl = useMemo(() => getBackendConfig().apiBaseUrl.replace(/\/$/, ""), []);
const streamableUrl = `${baseUrl}/mcp`;
const sseUrl = `${baseUrl}/mcp/sse`;
@@ -47,13 +49,15 @@ export function ExternalMcpSettings() {
return (
<div className="space-y-8">
<div>
<h2 className="text-2xl font-bold">External MCP</h2>
<h2 className="text-2xl font-bold">{t("common:externalMcp")}</h2>
<p className="text-sm text-muted-foreground mt-1">
Use this if you want to manage Kandev from coding agents that run <strong>outside</strong>{" "}
Kandev (e.g. Claude Code, Cursor, or Codex on your host), or from{" "}
<strong>passthrough agents</strong> running inside Kandev. <br />
Agents launched inside Kandev in their normal mode already have the Kandev MCP wired in
automatically, no setup needed.
<Trans i18nKey="settings:externalMcpIntro">
Use this if you want to manage Kandev from coding agents that run{" "}
<strong>outside</strong> Kandev (e.g. Claude Code, Cursor, or Codex on your host), or
from <strong>passthrough agents</strong> running inside Kandev.
</Trans>{" "}
<br />
{t("settings:externalMcpIntroPassthrough")}
</p>
</div>
@@ -63,30 +67,28 @@ export function ExternalMcpSettings() {
<SettingsSection
icon={<IconPlugConnected className="h-5 w-5" />}
title="Endpoints"
description="Available on the same host and port as Kandev. Use localhost for same-machine agents, or the reachable Kandev URL for LAN, VPN, and reverse-proxy clients."
title={t("settings:externalMcpEndpoints")}
description={t("settings:externalMcpEndpointsDescription")}
>
<Card>
<CardHeader>
<CardTitle className="text-base">Streamable HTTP</CardTitle>
<CardTitle className="text-base">{t("settings:externalMcpStreamableHttp")}</CardTitle>
</CardHeader>
<CardContent>
<UrlRow url={streamableUrl} copied={copied} onCopy={handleCopy} />
<p className="text-xs text-muted-foreground mt-2">
Recommended for Claude Code, Cursor, and Codex.
{t("settings:externalMcpStreamableHttpHint")}
</p>
</CardContent>
</Card>
<Card>
<CardHeader>
<CardTitle className="text-base">Server-Sent Events (SSE)</CardTitle>
<CardTitle className="text-base">{t("settings:externalMcpSse")}</CardTitle>
</CardHeader>
<CardContent>
<UrlRow url={sseUrl} copied={copied} onCopy={handleCopy} />
<p className="text-xs text-muted-foreground mt-2">
Compatibility transport for older MCP clients.
</p>
<p className="text-xs text-muted-foreground mt-2">{t("settings:externalMcpSseHint")}</p>
</CardContent>
</Card>
</SettingsSection>
@@ -99,6 +101,7 @@ export function ExternalMcpSettings() {
}
function ToolsPreview() {
const { t } = useTranslation();
const [open, setOpen] = useState(false);
const total = countExternalMcpTools();
return (
@@ -110,10 +113,14 @@ function ToolsPreview() {
>
<IconTools className="h-4 w-4 text-muted-foreground shrink-0" />
<div className="flex-1 min-w-0">
<p className="text-sm font-medium">Available tools</p>
<p className="text-sm font-medium">{t("settings:externalMcpAvailableTools")}</p>
<p className="text-xs text-muted-foreground">
{total} tools across {EXTERNAL_MCP_TOOL_GROUPS.length} categories &mdash; expand to
preview what external agents can do.
{t("settings:externalMcpToolsSummary", {
tools: t("settings:externalMcpToolCount", { count: total }),
categories: t("settings:externalMcpCategoryCount", {
count: EXTERNAL_MCP_TOOL_GROUPS.length,
}),
})}
</p>
</div>
<IconChevronDown
@@ -125,18 +132,20 @@ function ToolsPreview() {
</CollapsibleTrigger>
<CollapsibleContent className="px-4 pb-4 pt-1 space-y-4">
{EXTERNAL_MCP_TOOL_GROUPS.map((group) => (
<div key={group.title} className="space-y-1.5">
<div key={group.titleKey} className="space-y-1.5">
<div>
<p className="text-xs font-semibold uppercase tracking-wide text-muted-foreground">
{group.title}
{t(group.titleKey)}
</p>
<p className="text-xs text-muted-foreground">{group.description}</p>
<p className="text-xs text-muted-foreground">{t(group.descriptionKey)}</p>
</div>
<ul className="space-y-1">
{group.tools.map((tool) => (
<li key={tool.name} className="flex gap-2 text-xs">
<code className="font-mono text-foreground shrink-0">{tool.name}</code>
<span className="text-muted-foreground">&mdash; {tool.description}</span>
<span className="text-muted-foreground">
&mdash; {t(tool.descriptionKey, tool.descriptionValues)}
</span>
</li>
))}
</ul>
@@ -147,6 +156,58 @@ function ToolsPreview() {
);
}
/**
* One card per external agent. `title` is a product name and every `path` is a
* config filename the user must find on disk, so both stay English in every
* locale — the surrounding sentence is the only copy, and it interpolates them
* so the pseudo-locale cannot turn them into dead pointers.
*/
const SNIPPET_CARDS: Array<{
title: string;
build: (streamableUrl: string) => string;
/** Rendered through `externalMcpConfigPath*`; omitted when `subtitleKey` is set. */
path?: string;
/** Overrides the derived subtitle when the path sentence needs its own message. */
subtitleKey?: string;
subtitleValues?: Record<string, string>;
buildCli?: (streamableUrl: string) => string;
/** File the one-liner writes to, as the user would recognise it. */
cliTarget?: string;
}> = [
{
title: "Claude Code",
path: "~/.claude.json",
build: buildClaudeCodeConfig,
buildCli: buildClaudeCodeCliCommand,
cliTarget: "~/.claude.json",
},
{ title: "Cursor", path: "~/.cursor/mcp.json", build: buildCursorConfig },
{
title: "Codex",
path: "~/.codex/config.toml",
build: buildCodexConfig,
buildCli: buildCodexCliCommand,
cliTarget: "~/.codex/config.toml",
},
{
title: "Auggie CLI",
path: "~/.augment/settings.json",
build: buildAuggieConfig,
buildCli: buildAuggieCliCommand,
cliTarget: "settings.json",
},
{
title: "OpenCode",
subtitleKey: "settings:externalMcpOpenCodePaths",
subtitleValues: {
projectPath: "opencode.json",
globalPath: "~/.config/opencode/opencode.json",
},
build: buildOpenCodeConfig,
},
{ title: "GitHub Copilot CLI", path: "~/.copilot/mcp-config.json", build: buildCopilotCliConfig },
];
function SnippetsSection({
streamableUrl,
copied,
@@ -156,60 +217,39 @@ function SnippetsSection({
copied: string | null;
onCopy: (text: string) => void;
}) {
const { t } = useTranslation();
const subtitleFor = (card: (typeof SNIPPET_CARDS)[number]) => {
if (card.subtitleKey) return t(card.subtitleKey, card.subtitleValues);
// A bare path is the whole subtitle here, and a path is not copy — render it
// directly rather than through a catalog message whose entire value is
// `{{path}}`. Such a message says nothing a translator can act on, and it
// is a shape worth avoiding generally: anything that compiles a message
// into a match pattern has to special-case it, since a placeholder-only
// message otherwise matches every string.
if (!card.buildCli) return card.path ?? "";
return t("settings:externalMcpConfigPathOrCli", { path: card.path });
};
return (
<SettingsSection
icon={<IconCode className="h-5 w-5" />}
title="Configuration snippets"
description="Paste these into your agent's global MCP configuration."
title={t("settings:externalMcpSnippets")}
description={t("settings:externalMcpSnippetsDescription")}
>
<SnippetCard
title="Claude Code"
subtitle="~/.claude.json — or run the CLI command below"
snippet={buildClaudeCodeConfig(streamableUrl)}
copied={copied}
onCopy={onCopy}
extraSnippet={buildClaudeCodeCliCommand(streamableUrl)}
extraSnippetLabel="One-liner (writes to ~/.claude.json)"
/>
<SnippetCard
title="Cursor"
subtitle="~/.cursor/mcp.json"
snippet={buildCursorConfig(streamableUrl)}
copied={copied}
onCopy={onCopy}
/>
<SnippetCard
title="Codex"
subtitle="~/.codex/config.toml — or run the CLI command below"
snippet={buildCodexConfig(streamableUrl)}
copied={copied}
onCopy={onCopy}
extraSnippet={buildCodexCliCommand(streamableUrl)}
extraSnippetLabel="One-liner (writes to ~/.codex/config.toml)"
/>
<SnippetCard
title="Auggie CLI"
subtitle="~/.augment/settings.json — or run the CLI command below"
snippet={buildAuggieConfig(streamableUrl)}
copied={copied}
onCopy={onCopy}
extraSnippet={buildAuggieCliCommand(streamableUrl)}
extraSnippetLabel="One-liner (writes to settings.json)"
/>
<SnippetCard
title="OpenCode"
subtitle="opencode.json (project) or ~/.config/opencode/opencode.json (global)"
snippet={buildOpenCodeConfig(streamableUrl)}
copied={copied}
onCopy={onCopy}
/>
<SnippetCard
title="GitHub Copilot CLI"
subtitle="~/.copilot/mcp-config.json"
snippet={buildCopilotCliConfig(streamableUrl)}
copied={copied}
onCopy={onCopy}
/>
{SNIPPET_CARDS.map((card) => (
<SnippetCard
key={card.title}
title={card.title}
subtitle={subtitleFor(card)}
snippet={card.build(streamableUrl)}
copied={copied}
onCopy={onCopy}
extraSnippet={card.buildCli?.(streamableUrl)}
extraSnippetLabel={
card.cliTarget ? t("settings:externalMcpOneLiner", { path: card.cliTarget }) : undefined
}
/>
))}
</SettingsSection>
);
}
@@ -223,6 +263,7 @@ function UrlRow({
copied: string | null;
onCopy: (text: string) => void;
}) {
const { t } = useTranslation();
const isCopied = copied === url;
return (
<div className="flex items-center gap-1 rounded-md bg-muted px-2 py-1.5 font-mono text-xs">
@@ -231,7 +272,7 @@ function UrlRow({
variant="ghost"
size="sm"
className="h-7 w-7 p-0 cursor-pointer shrink-0"
aria-label={isCopied ? "Copied" : "Copy URL"}
aria-label={isCopied ? t("settings:externalMcpCopied") : t("settings:externalMcpCopyUrl")}
onClick={() => onCopy(url)}
>
{isCopied ? (
@@ -291,6 +332,7 @@ function SnippetBlock({
copied: string | null;
onCopy: (text: string) => void;
}) {
const { t } = useTranslation();
const isCopied = copied === snippet;
return (
<div className="relative">
@@ -302,7 +344,7 @@ function SnippetBlock({
size="sm"
className="absolute right-2 top-2 cursor-pointer"
onClick={() => onCopy(snippet)}
title="Copy to clipboard"
title={t("settings:externalMcpCopyToClipboard")}
>
{isCopied ? (
<IconCheck className="h-4 w-4 text-green-500" />
@@ -1,6 +1,7 @@
"use client";
import { useState } from "react";
import { useTranslation } from "react-i18next";
import { IconRefresh } from "@tabler/icons-react";
import { Button } from "@kandev/ui/button";
import type { InferenceAgent, InferenceAgentStatus } from "@/lib/api/domains/utility-api";
@@ -28,27 +29,30 @@ type Props = {
onRefresh: () => Promise<unknown> | void;
};
type Note = { text: string; refreshable: boolean };
// This switch holds no JSX, so the literal guard never inspected it — the copy
// travels as a catalog key and the caller resolves it at render.
type Note = { key: string; refreshable: boolean };
function noteForStatus(status: InferenceAgentStatus | undefined, name: string): Note {
function noteForStatus(status: InferenceAgentStatus | undefined): Note {
switch (status) {
case "probing":
return { text: `Setting up ${name}…`, refreshable: true };
return { key: "settings:inferenceAgentProbing", refreshable: true };
case "auth_required":
return { text: `Sign in to ${name} to load models.`, refreshable: true };
return { key: "settings:inferenceAgentAuthRequired", refreshable: true };
case "not_installed":
return { text: `${name} CLI is not installed on this machine.`, refreshable: true };
return { key: "settings:inferenceAgentNotInstalled", refreshable: true };
case "not_configured":
return { text: `${name} is not configured for inference.`, refreshable: false };
return { key: "settings:inferenceAgentNotConfigured", refreshable: false };
case "failed":
return { text: `Probe failed for ${name}.`, refreshable: true };
return { key: "settings:inferenceAgentProbeFailed", refreshable: true };
case "ok":
default:
return { text: `${name} advertised no models.`, refreshable: true };
return { key: "settings:inferenceAgentNoModels", refreshable: true };
}
}
function RefreshButton({ onRefresh }: { onRefresh: () => Promise<unknown> | void }) {
const { t } = useTranslation();
const [refreshing, setRefreshing] = useState(false);
const handleClick = async () => {
if (refreshing) return;
@@ -70,7 +74,9 @@ function RefreshButton({ onRefresh }: { onRefresh: () => Promise<unknown> | void
data-testid="inference-agent-refresh"
>
<IconRefresh className={refreshing ? "h-3 w-3 animate-spin" : "h-3 w-3"} />
<span className="ml-1">{refreshing ? "Refreshing…" : "Refresh"}</span>
<span className="ml-1">
{refreshing ? t("settings:inferenceAgentRefreshing") : t("settings:inferenceAgentRefresh")}
</span>
</Button>
);
}
@@ -85,14 +91,17 @@ function isAgentHealthy(agent: InferenceAgent | null | undefined): boolean {
}
export function InferenceAgentStatusNote({ agent, fallbackName, onRefresh }: Props) {
const { t } = useTranslation();
if (isAgentHealthy(agent)) {
return null;
}
const name = agent?.display_name ?? fallbackName ?? "this agent";
// `display_name` and the agent id are wire values; only the last-resort
// fallback is copy.
const name = agent?.display_name ?? fallbackName ?? t("settings:inferenceAgentThisAgent");
const note: Note = agent
? noteForStatus(agent.status, name)
: { text: `${name} is no longer available.`, refreshable: true };
? noteForStatus(agent.status)
: { key: "settings:inferenceAgentUnavailable", refreshable: true };
const detail = agent?.status_message?.trim();
return (
@@ -101,7 +110,7 @@ export function InferenceAgentStatusNote({ agent, fallbackName, onRefresh }: Pro
data-testid="inference-agent-status-note"
>
<div className="space-y-0.5 min-w-0">
<p>{note.text}</p>
<p>{t(note.key, { name })}</p>
{detail && <p className="text-[11px] opacity-80 truncate">{detail}</p>}
</div>
{note.refreshable && <RefreshButton onRefresh={onRefresh} />}
+51 -24
View File
@@ -1,6 +1,7 @@
"use client";
import { useState } from "react";
import { useTranslation } from "react-i18next";
import { IconSelector } from "@tabler/icons-react";
import { Button } from "@kandev/ui/button";
import { Popover, PopoverContent, PopoverTrigger } from "@kandev/ui/popover";
@@ -23,6 +24,41 @@ type ModelComboboxProps = {
disabled?: boolean;
};
function copilotUsage(model: ModelEntry): string | undefined {
const raw = model.meta?.copilotUsage;
return typeof raw === "string" ? raw : undefined;
}
/** Selected-model summary shown on the closed trigger, or the placeholder. */
function TriggerLabel({
selectedModel,
currentModelId,
placeholderLabel,
}: {
selectedModel: ModelEntry | undefined;
currentModelId: string | undefined;
placeholderLabel: string;
}) {
const { t } = useTranslation();
if (!selectedModel) {
return <span className="text-muted-foreground">{placeholderLabel}</span>;
}
const usage = copilotUsage(selectedModel);
return (
<span className="flex items-center gap-2 truncate">
{selectedModel.name}
{selectedModel.id === currentModelId && (
<span className="text-muted-foreground">{t("agents:defaultSuffix")}</span>
)}
{usage && (
<span className="text-[10px] px-1.5 py-0.5 rounded bg-muted text-muted-foreground font-medium">
{usage}
</span>
)}
</span>
);
}
/**
* Searchable model picker. The user can only choose from the agent's
* advertised model list — custom model IDs are not allowed for ACP agents
@@ -33,18 +69,17 @@ export function ModelCombobox({
onChange,
models,
currentModelId,
placeholder = "Select a model",
placeholder,
disabled,
}: ModelComboboxProps) {
const { t } = useTranslation();
const [open, setOpen] = useState(false);
// A parameter default is evaluated before the component body, so `t` is not
// in scope there — resolve the fallback here instead.
const placeholderLabel = placeholder ?? t("agents:selectAModelShort");
const effectiveValue = value || currentModelId || "";
const selectedModel = models.find((m) => m.id === effectiveValue);
const copilotUsage = (model: ModelEntry): string | undefined => {
const raw = model.meta?.copilotUsage;
return typeof raw === "string" ? raw : undefined;
};
return (
<Popover open={open} onOpenChange={setOpen}>
<PopoverTrigger asChild>
@@ -56,21 +91,11 @@ export function ModelCombobox({
className="w-full justify-between font-normal cursor-pointer"
data-testid="profile-model-combobox-trigger"
>
{selectedModel ? (
<span className="flex items-center gap-2 truncate">
{selectedModel.name}
{selectedModel.id === currentModelId && (
<span className="text-muted-foreground">(default)</span>
)}
{copilotUsage(selectedModel) && (
<span className="text-[10px] px-1.5 py-0.5 rounded bg-muted text-muted-foreground font-medium">
{copilotUsage(selectedModel)}
</span>
)}
</span>
) : (
<span className="text-muted-foreground">{placeholder}</span>
)}
<TriggerLabel
selectedModel={selectedModel}
currentModelId={currentModelId}
placeholderLabel={placeholderLabel}
/>
<IconSelector className="ml-2 h-4 w-4 shrink-0 opacity-50" />
</Button>
</PopoverTrigger>
@@ -80,12 +105,12 @@ export function ModelCombobox({
onWheel={(e) => e.stopPropagation()}
>
<Command>
<CommandInput placeholder="Search models..." />
<CommandInput placeholder={t("agents:searchModels")} />
<CommandList
className="max-h-[min(60vh,24rem)] overflow-y-auto overscroll-contain"
onWheel={(e) => e.stopPropagation()}
>
<CommandEmpty>No model found.</CommandEmpty>
<CommandEmpty>{t("agents:noModelFound")}</CommandEmpty>
<CommandGroup>
{models.map((model) => {
const usage = copilotUsage(model);
@@ -104,7 +129,9 @@ export function ModelCombobox({
<div className="flex items-center gap-2 truncate">
<span className="truncate">{model.name}</span>
{model.id === currentModelId && (
<span className="text-muted-foreground text-xs">(default)</span>
<span className="text-muted-foreground text-xs">
{t("agents:defaultSuffix")}
</span>
)}
</div>
{model.description && model.description !== model.name && (
@@ -1,6 +1,7 @@
"use client";
import { useCallback, useMemo, useRef, useState, useEffect } from "react";
import { Trans, useTranslation } from "react-i18next";
import { IconEdit, IconTrash, IconLock } from "@tabler/icons-react";
import { Button } from "@kandev/ui/button";
import { Badge } from "@kandev/ui/badge";
@@ -20,6 +21,7 @@ import { useCustomPrompts } from "@/hooks/domains/settings/use-custom-prompts";
import { useAppStore } from "@/components/state-provider";
import { createPrompt, deletePrompt, updatePrompt } from "@/lib/api";
import { useRequest } from "@/lib/http/use-request";
import { t } from "@/lib/i18n";
import type { CustomPrompt } from "@/lib/types/http";
const defaultFormState = {
@@ -27,8 +29,13 @@ const defaultFormState = {
content: "",
};
/** The sigil the chat input matches on. Typed verbatim, so never translated. */
const PROMPT_MENTION_TOKEN = "@name";
function errorMessage(error: unknown): string {
return error instanceof Error ? error.message : "Request failed";
// A thrown Error carries the backend's diagnostic, which stays English by
// design; only the missing-payload fallback is copy.
return error instanceof Error ? error.message : t("common:requestFailed");
}
async function runPromptSave(
@@ -53,6 +60,7 @@ type PromptCreateFormProps = {
};
function PromptCreateForm({ formState, onFormChange, onCancel, isBusy }: PromptCreateFormProps) {
const { t } = useTranslation();
const nameIsDirty = formState.name !== defaultFormState.name;
const contentIsDirty = formState.content !== defaultFormState.content;
return (
@@ -62,11 +70,11 @@ function PromptCreateForm({ formState, onFormChange, onCancel, isBusy }: PromptC
data-settings-dirty="true"
data-settings-dirty-level="container"
>
<div className="text-sm font-medium text-foreground">Add prompt</div>
<div className="text-sm font-medium text-foreground">{t("settings:promptAdd")}</div>
<Input
value={formState.name}
onChange={(event) => onFormChange({ name: event.target.value })}
placeholder="Prompt name"
placeholder={t("settings:promptNamePlaceholder")}
data-testid="prompt-name-input"
disabled={isBusy}
data-settings-dirty={nameIsDirty}
@@ -74,7 +82,7 @@ function PromptCreateForm({ formState, onFormChange, onCancel, isBusy }: PromptC
<Textarea
value={formState.content}
onChange={(event) => onFormChange({ content: event.target.value })}
placeholder="Prompt content"
placeholder={t("settings:promptContentPlaceholder")}
rows={5}
className="resize-y max-h-60 overflow-auto"
data-testid="prompt-content-input"
@@ -83,7 +91,7 @@ function PromptCreateForm({ formState, onFormChange, onCancel, isBusy }: PromptC
/>
<div className="flex items-center gap-2">
<Button variant="ghost" onClick={onCancel} disabled={isBusy}>
Cancel
{t("settings:cancel")}
</Button>
</div>
</div>
@@ -115,6 +123,7 @@ function PromptListItem({
isBusy,
showCreate,
}: PromptListItemProps) {
const { t } = useTranslation();
const getPromptPreview = (content: string) => {
return content.split(/\r?\n/)[0] ?? "";
};
@@ -135,7 +144,7 @@ function PromptListItem({
{prompt.builtin && (
<Badge variant="secondary" className="text-xs">
<IconLock className="h-3 w-3 mr-1" />
Built-in
{t("settings:builtIn")}
</Badge>
)}
</div>
@@ -166,7 +175,7 @@ function PromptListItem({
<Input
value={formState.name}
onChange={(event) => onFormChange({ name: event.target.value })}
placeholder="Prompt name"
placeholder={t("settings:promptNamePlaceholder")}
data-testid="prompt-name-input"
disabled={isBusy}
data-settings-dirty={nameIsDirty}
@@ -174,7 +183,7 @@ function PromptListItem({
<Textarea
value={formState.content}
onChange={(event) => onFormChange({ content: event.target.value })}
placeholder="Prompt content"
placeholder={t("settings:promptContentPlaceholder")}
rows={5}
className="resize-y max-h-60 overflow-auto"
data-testid="prompt-content-input"
@@ -183,7 +192,7 @@ function PromptListItem({
/>
<div className="flex items-center gap-2">
<Button variant="ghost" onClick={onCancel} disabled={isBusy}>
Cancel
{t("settings:cancel")}
</Button>
</div>
</div>
@@ -223,17 +232,18 @@ function PromptListContent({
isBusy,
showCreate,
}: PromptListContentProps) {
const { t } = useTranslation();
if (!promptsLoaded) {
return (
<div className="rounded-lg border border-dashed border-border/70 p-6 text-sm text-muted-foreground">
Loading prompts…
{t("settings:promptsLoading")}
</div>
);
}
if (prompts.length === 0) {
return (
<div className="rounded-lg border border-dashed border-border/70 p-6 text-sm text-muted-foreground">
No prompts yet. Add your first prompt to get started.
{t("settings:promptsEmpty")}
</div>
);
}
@@ -266,6 +276,9 @@ type DeletePromptDialogProps = {
};
function DeletePromptDialog({ deleteTarget, onClose, onConfirm, isBusy }: DeletePromptDialogProps) {
const { t } = useTranslation();
// The prompt's own name is user data; only the no-target fallback is copy.
const targetLabel = deleteTarget ? `@${deleteTarget.name}` : t("settings:promptDeleteThisPrompt");
return (
<Dialog
open={Boolean(deleteTarget)}
@@ -277,21 +290,21 @@ function DeletePromptDialog({ deleteTarget, onClose, onConfirm, isBusy }: Delete
>
<DialogContent>
<DialogHeader>
<DialogTitle>Delete prompt</DialogTitle>
<DialogTitle>{t("settings:promptDelete")}</DialogTitle>
<DialogDescription>
This will permanently remove{" "}
<span className="font-medium text-foreground">
{deleteTarget ? `@${deleteTarget.name}` : "this prompt"}
</span>
. This action cannot be undone.
<Trans i18nKey="settings:promptDeleteDescription" values={{ name: targetLabel }}>
This will permanently remove{" "}
<span className="font-medium text-foreground">{targetLabel}</span>. This action cannot
be undone.
</Trans>
</DialogDescription>
</DialogHeader>
<DialogFooter>
<Button type="button" variant="outline" onClick={onClose}>
Cancel
{t("settings:cancel")}
</Button>
<Button type="button" variant="destructive" onClick={onConfirm} disabled={isBusy}>
Delete prompt
{t("settings:promptDelete")}
</Button>
</DialogFooter>
</DialogContent>
@@ -324,26 +337,13 @@ function usePromptsState() {
};
}
function usePromptsActions(state: ReturnType<typeof usePromptsState>) {
const {
prompts,
setPrompts,
editingId,
setEditingId,
setShowCreate,
setFormState,
setDeleteTarget,
deleteTarget,
formState,
} = state;
const { toast } = useToast();
const resetForm = useCallback(() => {
setEditingId(null);
setShowCreate(false);
setFormState(defaultFormState);
}, [setEditingId, setShowCreate, setFormState]);
/** The three prompt mutations, sharing the post-write list refresh and reset. */
function usePromptRequests(
prompts: CustomPrompt[],
setPrompts: (next: CustomPrompt[]) => void,
editingId: string | null,
resetForm: () => void,
) {
const applyPrompts = useCallback(
(next: CustomPrompt[]) => {
setPrompts([...next].sort((a, b) => a.name.localeCompare(b.name)));
@@ -351,11 +351,6 @@ function usePromptsActions(state: ReturnType<typeof usePromptsState>) {
[setPrompts],
);
const isValid = useMemo(
() => Boolean(formState.name.trim() && formState.content.trim()),
[formState],
);
const createRequest = useRequest(async (s: typeof defaultFormState) => {
const prompt = await createPrompt(
{ name: s.name.trim(), content: s.content.trim() },
@@ -381,18 +376,56 @@ function usePromptsActions(state: ReturnType<typeof usePromptsState>) {
if (editingId === id) resetForm();
});
return { createRequest, updateRequest, deleteRequest };
}
function usePromptsActions(state: ReturnType<typeof usePromptsState>) {
const {
prompts,
setPrompts,
editingId,
setEditingId,
setShowCreate,
setFormState,
setDeleteTarget,
deleteTarget,
formState,
} = state;
const { toast } = useToast();
const resetForm = useCallback(() => {
setEditingId(null);
setShowCreate(false);
setFormState(defaultFormState);
}, [setEditingId, setShowCreate, setFormState]);
const isValid = useMemo(
() => Boolean(formState.name.trim() && formState.content.trim()),
[formState],
);
const { createRequest, updateRequest, deleteRequest } = usePromptRequests(
prompts,
setPrompts,
editingId,
resetForm,
);
const isBusy = createRequest.isLoading || updateRequest.isLoading || deleteRequest.isLoading;
const toastError = (title: string) => (err: unknown) =>
toast({ title, description: errorMessage(err), variant: "error" });
const handleCreate = () => {
if (!isValid || isBusy) return;
return runPromptSave(() => createRequest.run(formState), toastError("Couldn't create prompt"));
return runPromptSave(
() => createRequest.run(formState),
toastError(t("settings:promptCreateFailed")),
);
};
const handleUpdate = () => {
if (!isValid || isBusy || !editingId) return;
return runPromptSave(
() => updateRequest.run(editingId, formState),
toastError("Couldn't save prompt"),
toastError(t("settings:promptSaveFailed")),
);
};
const startEditing = (prompt: CustomPrompt) => {
@@ -413,7 +446,7 @@ function usePromptsActions(state: ReturnType<typeof usePromptsState>) {
};
const confirmDelete = () => {
if (!deleteTarget) return;
deleteRequest.run(deleteTarget.id).catch(toastError("Couldn't delete prompt"));
deleteRequest.run(deleteTarget.id).catch(toastError(t("settings:promptDeleteFailed")));
closeDeleteDialog();
};
@@ -450,6 +483,7 @@ export function getPromptDraftMeta(
}
export function PromptsSettings() {
const { t } = useTranslation();
const state = usePromptsState();
const {
editingId,
@@ -483,32 +517,35 @@ export function PromptsSettings() {
return (
<SettingsPageTemplate
title="Prompts"
description="Create reusable prompt snippets for the chat input."
title={t("common:prompts")}
description={t("settings:promptsPageDescription")}
isDirty={draft.isDirty}
saveStatus="idle"
saveId="prompts-item-draft"
saveRevision={draft.revision}
canSave={!draft.isDirty || isValid}
invalidReason={
draft.isDirty && !isValid ? "Prompt name and content are required." : undefined
}
invalidReason={draft.isDirty && !isValid ? t("settings:promptsInvalidReason") : undefined}
onSave={showCreate ? handleCreate : handleUpdate}
onDiscard={resetForm}
>
<div className="rounded-lg border border-border/70 bg-muted/30 p-4 text-xs text-muted-foreground">
Use <span className="font-medium text-foreground">@name</span> in the chat input to insert a
prompt’s content. Prompts are matched by name and expanded in place.
<Trans i18nKey="settings:promptMentionHelp" values={{ token: PROMPT_MENTION_TOKEN }}>
Use <span className="font-medium text-foreground">{PROMPT_MENTION_TOKEN}</span> in the
chat input to insert a prompt’s content. Prompts are matched by name and expanded in
place.
</Trans>
</div>
<div className="space-y-6 mt-4">
<div className="flex items-center justify-between">
<div className="text-sm font-medium text-foreground">Custom prompts</div>
<div className="text-sm font-medium text-foreground">
{t("settings:promptsCustomHeading")}
</div>
<Button
onClick={startCreate}
disabled={isBusy || isEditing || showCreate}
data-testid="prompt-create-button"
>
Add prompt
{t("settings:promptAdd")}
</Button>
</div>
@@ -1,6 +1,7 @@
"use client";
import { useState, useEffect, useMemo } from "react";
import { Trans, useTranslation } from "react-i18next";
import { Dialog, DialogContent, DialogHeader, DialogTitle, DialogFooter } from "@kandev/ui/dialog";
import { Button } from "@kandev/ui/button";
import { Input } from "@kandev/ui/input";
@@ -37,6 +38,9 @@ type FormState = {
model: string;
};
/** Opening delimiter of the prompt-template placeholder syntax, typed verbatim. */
const PROMPT_VARIABLE_SIGIL = "{{";
const defaultFormState: FormState = {
name: "",
description: "",
@@ -75,14 +79,15 @@ function AgentModelSelect({
onModelChange,
onRefresh,
}: AgentModelSelectProps) {
const { t } = useTranslation();
return (
<div className="space-y-2">
<div className="grid grid-cols-2 gap-4">
<div className="space-y-2">
<Label>Agent</Label>
<Label>{t("settings:agent")}</Label>
<Select value={agentId} onValueChange={onAgentChange}>
<SelectTrigger className="cursor-pointer">
<SelectValue placeholder="Select agent..." />
<SelectValue placeholder={t("settings:utilitySelectAgent")} />
</SelectTrigger>
<SelectContent>
{inferenceAgents.map((ia) => (
@@ -94,13 +99,13 @@ function AgentModelSelect({
</Select>
</div>
<div className="space-y-2">
<Label>Model</Label>
<Label>{t("settings:model")}</Label>
<ModelCombobox
value={model}
onChange={onModelChange}
models={availableModels}
currentModelId={availableModels.find((m) => m.is_default)?.id}
placeholder="Select model..."
placeholder={t("settings:utilitySelectModel")}
disabled={availableModels.length === 0}
/>
</div>
@@ -135,25 +140,26 @@ function UtilityAgentForm({
placeholders,
onRefreshAgent,
}: UtilityAgentFormProps) {
const { t } = useTranslation();
return (
<div className="space-y-4 py-4">
<div className="space-y-2">
<Label htmlFor="name">Name</Label>
<Label htmlFor="name">{t("settings:name")}</Label>
<Input
id="name"
value={form.name}
onChange={(e) => setForm((f) => ({ ...f, name: e.target.value }))}
placeholder="e.g., commit-message"
placeholder={t("settings:utilityAgentNamePlaceholder")}
disabled={isBuiltin}
/>
</div>
<div className="space-y-2">
<Label htmlFor="description">Description</Label>
<Label htmlFor="description">{t("settings:utilityAgentDescriptionLabel")}</Label>
<Input
id="description"
value={form.description}
onChange={(e) => setForm((f) => ({ ...f, description: e.target.value }))}
placeholder="Brief description of what this agent does"
placeholder={t("settings:utilityAgentDescriptionPlaceholder")}
/>
</div>
<AgentModelSelect
@@ -167,7 +173,7 @@ function UtilityAgentForm({
onRefresh={onRefreshAgent}
/>
<div className="space-y-2">
<Label>Prompt Template</Label>
<Label>{t("settings:utilityAgentPromptTemplate")}</Label>
<div className="border rounded-md overflow-hidden">
<ScriptEditor
value={form.prompt}
@@ -179,7 +185,12 @@ function UtilityAgentForm({
/>
</div>
<p className="text-xs text-muted-foreground">
Type {"{{"} to see available variables with autocomplete
<Trans
i18nKey="settings:utilityAgentPromptHint"
values={{ sigil: PROMPT_VARIABLE_SIGIL }}
>
Type <code>{PROMPT_VARIABLE_SIGIL}</code> to see available variables with autocomplete
</Trans>
</p>
</div>
</div>
@@ -187,6 +198,7 @@ function UtilityAgentForm({
}
export function UtilityAgentDialog({ open, onOpenChange, agent, onSuccess }: Props) {
const { t } = useTranslation();
const [form, setForm] = useState<FormState>(defaultFormState);
const [saving, setSaving] = useState(false);
const [placeholders, setPlaceholders] = useState<ScriptPlaceholder[]>([]);
@@ -259,10 +271,12 @@ export function UtilityAgentDialog({ open, onOpenChange, agent, onSuccess }: Pro
}
};
const dialogTitle = isEdit ? "Edit Utility Agent" : "Create Utility Agent";
const dialogTitle = isEdit
? t("settings:utilityAgentDialogEditTitle")
: t("settings:utilityAgentDialogCreateTitle");
const getSubmitLabel = () => {
if (saving) return "Saving...";
return isEdit ? "Save Changes" : "Create Agent";
if (saving) return t("settings:saving");
return isEdit ? t("settings:utilityAgentDialogSave") : t("settings:utilityAgentDialogCreate");
};
return (
@@ -283,7 +297,7 @@ export function UtilityAgentDialog({ open, onOpenChange, agent, onSuccess }: Pro
/>
<DialogFooter>
<Button variant="outline" onClick={() => onOpenChange(false)} className="cursor-pointer">
Cancel
{t("settings:cancel")}
</Button>
<Button onClick={handleSubmit} disabled={saving || !form.name} className="cursor-pointer">
{getSubmitLabel()}
@@ -1,6 +1,7 @@
"use client";
import { useCallback, useEffect, useMemo, useState } from "react";
import { useTranslation } from "react-i18next";
import { IconWand } from "@tabler/icons-react";
import {
listUtilityAgents,
@@ -220,6 +221,7 @@ function useUtilityAgentsData() {
}
export function UtilityAgentsSection() {
const { t } = useTranslation();
const data = useUtilityAgentsData();
const {
agents,
@@ -280,8 +282,8 @@ export function UtilityAgentsSection() {
<>
<SettingsSection
icon={<IconWand className="h-5 w-5" />}
title="Utility Agents"
description="One-shot AI helpers for commits, PRs, and prompts."
title={t("settings:utilityAgents")}
description={t("settings:utilityAgentsPageDescription")}
>
<div className="space-y-4">
<DefaultModelSection
@@ -1,5 +1,6 @@
"use client";
import { useTranslation } from "react-i18next";
import { IconPencil, IconPlus, IconTrash } from "@tabler/icons-react";
import { Button } from "@kandev/ui/button";
import { Card, CardAction, CardContent, CardHeader, CardTitle } from "@kandev/ui/card";
@@ -73,6 +74,7 @@ export function DefaultModelSection({
onRefreshAgent,
isDirty,
}: DefaultModelSectionProps) {
const { t } = useTranslation();
const selectedAgent = inferenceAgents.find((a) => a.id === defaultAgentId);
const modelOptions = selectedAgent?.models ?? [];
const currentModelId = modelOptions.find((m) => m.is_default)?.id;
@@ -98,19 +100,21 @@ export function DefaultModelSection({
<SettingsCard isDirty={isDirty} data-testid="utility-default-model-card">
<CardHeader>
<CardTitle className="text-base">
<h3>Default utility agent model</h3>
<h3>{t("settings:utilityDefaultModelTitle")}</h3>
</CardTitle>
</CardHeader>
<CardContent className="space-y-3">
<p className="text-sm text-muted-foreground">
Select the default model used by all built-in utility actions.
{t("settings:utilityDefaultModelDescription")}
</p>
<div className="flex flex-col gap-2 sm:flex-row">
<div className="w-full sm:w-[180px]">
<Label className="text-xs text-muted-foreground mb-1 block">Agent</Label>
<Label className="text-xs text-muted-foreground mb-1 block">
{t("settings:agent")}
</Label>
<Select value={defaultAgentId} onValueChange={(v) => onDefaultChange(v, "")}>
<SelectTrigger className="cursor-pointer" data-settings-dirty={isDirty}>
<SelectValue placeholder="Select agent..." />
<SelectValue placeholder={t("settings:utilitySelectAgent")} />
</SelectTrigger>
<SelectContent>
{inferenceAgents.map((ia) => (
@@ -125,15 +129,17 @@ export function DefaultModelSection({
className="w-full rounded-md border border-transparent sm:w-[280px]"
data-settings-dirty={isDirty}
>
<Label className="text-xs text-muted-foreground mb-1 block">Model</Label>
<Label className="text-xs text-muted-foreground mb-1 block">
{t("settings:model")}
</Label>
<ModelConfigSelector
modelOptions={selectorModels}
currentModel={selectedModel}
configOptions={selectedConfigOptions}
onModelChange={(v) => onDefaultChange(defaultAgentId, v)}
disabled={!defaultAgentId}
placeholder="Select model..."
ariaLabel="Default utility model settings"
placeholder={t("settings:utilitySelectModel")}
ariaLabel={t("settings:utilityDefaultModelAriaLabel")}
/>
</div>
</div>
@@ -226,6 +232,7 @@ type CustomAgentRowProps = {
};
export function CustomAgentRow({ agent, onEdit, onDelete }: CustomAgentRowProps) {
const { t } = useTranslation();
return (
<div className="flex items-center justify-between py-3 px-3 rounded hover:bg-muted/50">
<div className="min-w-0 flex-1">
@@ -233,7 +240,9 @@ export function CustomAgentRow({ agent, onEdit, onDelete }: CustomAgentRowProps)
<p className="text-xs text-muted-foreground truncate">{agent.description}</p>
</div>
<div className="flex items-center gap-2">
<span className="text-xs text-muted-foreground">{agent.model || "Not configured"}</span>
<span className="text-xs text-muted-foreground">
{agent.model || t("settings:utilityModelNotConfigured")}
</span>
<Button
variant="ghost"
size="sm"
@@ -273,9 +282,14 @@ export function PerActionOverridesSection({
onEdit,
savedBuiltins,
}: PerActionOverridesSectionProps) {
const { t } = useTranslation();
if (builtins.length === 0) return null;
const defaultLabel = defaultModel ? `Default (${defaultModel})` : "Default";
// The model id is a wire value the user picked, so it is interpolated rather
// than written into the catalog.
const defaultLabel = defaultModel
? t("settings:utilityDefaultWithModel", { model: defaultModel })
: t("settings:default");
return (
<SettingsCard
@@ -289,7 +303,7 @@ export function PerActionOverridesSection({
>
<CardHeader>
<CardTitle className="text-base">
<h3>Actions</h3>
<h3>{t("settings:utilityActionsTitle")}</h3>
</CardTitle>
</CardHeader>
<CardContent className="space-y-0">
@@ -321,25 +335,28 @@ type CustomAgentsSectionProps = {
};
export function CustomAgentsSection({ agents, onAdd, onEdit, onDelete }: CustomAgentsSectionProps) {
const { t } = useTranslation();
return (
<Card data-testid="utility-custom-agents-card">
<CardHeader>
<CardTitle className="text-base">
<h3>Custom utility agents</h3>
<h3>{t("settings:utilityCustomAgentsTitle")}</h3>
</CardTitle>
<CardAction>
<Button onClick={onAdd} size="sm" className="cursor-pointer">
<IconPlus className="h-4 w-4 mr-1" />
Add
{t("settings:utilityAddCustomAgent")}
</Button>
</CardAction>
</CardHeader>
<CardContent className="space-y-4">
<p className="text-sm text-muted-foreground">
Create your own utility agents with custom prompts.
{t("settings:utilityCustomAgentsDescription")}
</p>
{agents.length === 0 && (
<p className="text-sm text-muted-foreground py-4">No custom utility agents.</p>
<p className="text-sm text-muted-foreground py-4">
{t("settings:utilityCustomAgentsEmpty")}
</p>
)}
{agents.length > 0 && (
<div className="space-y-2">
@@ -1,6 +1,7 @@
"use client";
import { createContext, useCallback, useContext, useMemo, useState, type ReactNode } from "react";
import { useTranslation } from "react-i18next";
import { IconAlertTriangle, IconMicrophone } from "@tabler/icons-react";
import { Badge } from "@kandev/ui/badge";
import { CardContent, CardHeader, CardTitle } from "@kandev/ui/card";
@@ -39,30 +40,49 @@ import { SettingsCard } from "./settings-card";
// Single source of truth for the language options. Web Speech reads `lang`,
// Whisper engines treat it as a hint. "auto" defers to the browser locale.
const LANGUAGE_OPTIONS: Array<{ value: string; label: string }> = [
{ value: "auto", label: "Auto-detect (browser language)" },
{ value: "en-US", label: "English (United States)" },
{ value: "en-GB", label: "English (United Kingdom)" },
{ value: "es-ES", label: "Spanish (Spain)" },
{ value: "es-MX", label: "Spanish (Mexico)" },
{ value: "pt-PT", label: "Portuguese (Portugal)" },
{ value: "pt-BR", label: "Portuguese (Brazil)" },
{ value: "fr-FR", label: "French" },
{ value: "de-DE", label: "German" },
{ value: "it-IT", label: "Italian" },
{ value: "ja-JP", label: "Japanese" },
{ value: "zh-CN", label: "Chinese (Simplified)" },
// `value` is the BCP-47 tag handed to the engine, so it is never translated;
// the labels travel as catalog keys and resolve at render.
const LANGUAGE_OPTIONS: Array<{ value: string; labelKey: string }> = [
{ value: "auto", labelKey: "settings:voiceLanguageAuto" },
{ value: "en-US", labelKey: "settings:voiceLanguageEnUs" },
{ value: "en-GB", labelKey: "settings:voiceLanguageEnGb" },
{ value: "es-ES", labelKey: "settings:voiceLanguageEsEs" },
{ value: "es-MX", labelKey: "settings:voiceLanguageEsMx" },
{ value: "pt-PT", labelKey: "settings:voiceLanguagePtPt" },
{ value: "pt-BR", labelKey: "settings:voiceLanguagePtBr" },
{ value: "fr-FR", labelKey: "settings:voiceLanguageFrFr" },
{ value: "de-DE", labelKey: "settings:voiceLanguageDeDe" },
{ value: "it-IT", labelKey: "settings:voiceLanguageItIt" },
{ value: "ja-JP", labelKey: "settings:voiceLanguageJaJp" },
{ value: "zh-CN", labelKey: "settings:voiceLanguageZhCn" },
];
// `value` is the persisted `WhisperWebModelSize` enum and `size` is a download
// size in binary units, neither of which is prose. Label and hint are copy.
const WHISPER_MODELS: Array<{
value: WhisperWebModelSize;
label: string;
labelKey: string;
size: string;
hint: string;
hintKey: string;
}> = [
{ value: "tiny", label: "Tiny", size: "~40 MB", hint: "Fastest, lower accuracy" },
{ value: "base", label: "Base", size: "~75 MB", hint: "Balanced default" },
{ value: "small", label: "Small", size: "~240 MB", hint: "Best accuracy, slower load" },
{
value: "tiny",
labelKey: "settings:voiceWhisperTiny",
size: "~40 MB",
hintKey: "settings:voiceWhisperTinyHint",
},
{
value: "base",
labelKey: "settings:voiceWhisperBase",
size: "~75 MB",
hintKey: "settings:voiceWhisperBaseHint",
},
{
value: "small",
labelKey: "settings:voiceWhisperSmall",
size: "~240 MB",
hintKey: "settings:voiceWhisperSmallHint",
},
];
function toWire(state: VoiceModeState): VoiceModeWire {
@@ -183,51 +203,57 @@ function useVoiceModeSaver() {
// ── Engine card ──────────────────────────────────────────────────────────
// `value` is the persisted `VoiceInputEngine` enum; everything else is copy and
// travels as a catalog key, because this builder holds no JSX and is therefore
// invisible to the literal guard.
type EngineOption = {
value: VoiceInputEngine;
label: string;
description: string;
badge?: string;
labelKey: string;
descriptionKey: string;
badgeKey?: string;
disabled?: boolean;
};
const ENGINE_UNSUPPORTED_KEY = "settings:voiceEngineUnsupported";
function buildEngineOptions(caps: VoiceCapabilities): EngineOption[] {
return [
{
value: "auto",
label: "Automatic",
description: "Use the best engine available in this browser.",
labelKey: "settings:voiceEngineAuto",
descriptionKey: "settings:voiceEngineAutoDescription",
},
{
value: "webSpeech",
label: "Web Speech (in-browser)",
description: caps.webSpeech
? "Free, instant, uses your browser's built-in speech recognition."
: "Not supported in this browser.",
labelKey: "settings:voiceEngineWebSpeech",
descriptionKey: caps.webSpeech
? "settings:voiceEngineWebSpeechDescription"
: ENGINE_UNSUPPORTED_KEY,
disabled: !caps.webSpeech,
},
{
value: "whisperWeb",
label: "Whisper Web (private, in-browser)",
description: caps.whisperWeb
? "Runs OpenAI Whisper entirely on this device. First use downloads the model (40–240 MB)."
: "Not supported in this browser.",
badge: "Local",
labelKey: "settings:voiceEngineWhisperWeb",
descriptionKey: caps.whisperWeb
? "settings:voiceEngineWhisperWebDescription"
: ENGINE_UNSUPPORTED_KEY,
badgeKey: "settings:voiceEngineBadgeLocal",
disabled: !caps.whisperWeb,
},
{
value: "whisperServer",
label: "Whisper Server (OpenAI)",
description: caps.audioCapture
? "Sends audio to the backend, which forwards it to OpenAI's Whisper API. Requires a configured API key on the server."
: "Not supported in this browser.",
badge: "Server",
labelKey: "settings:voiceEngineWhisperServer",
descriptionKey: caps.audioCapture
? "settings:voiceEngineWhisperServerDescription"
: ENGINE_UNSUPPORTED_KEY,
badgeKey: "settings:voiceEngineBadgeServer",
disabled: !caps.audioCapture,
},
];
}
function EngineCard({ caps }: { caps: VoiceCapabilities }) {
const { t } = useTranslation();
const { voiceMode, savedVoiceMode } = useVoiceDraft();
const { save, saving } = useVoiceModeSaver();
const options = useMemo(() => buildEngineOptions(caps), [caps]);
@@ -235,7 +261,7 @@ function EngineCard({ caps }: { caps: VoiceCapabilities }) {
return (
<SettingsCard isDirty={voiceMode.engine !== savedVoiceMode.engine}>
<CardHeader>
<CardTitle className="text-base">Transcription Engine</CardTitle>
<CardTitle className="text-base">{t("settings:voiceEngineTitle")}</CardTitle>
</CardHeader>
<CardContent>
<RadioGroup
@@ -263,10 +289,10 @@ function EngineCard({ caps }: { caps: VoiceCapabilities }) {
/>
<div className="space-y-1">
<div className="flex items-center gap-2 text-sm font-medium">
{opt.label}
{opt.badge && <Badge variant="secondary">{opt.badge}</Badge>}
{t(opt.labelKey)}
{opt.badgeKey && <Badge variant="secondary">{t(opt.badgeKey)}</Badge>}
</div>
<p className="text-xs text-muted-foreground">{opt.description}</p>
<p className="text-xs text-muted-foreground">{t(opt.descriptionKey)}</p>
</div>
</Label>
))}
@@ -279,11 +305,12 @@ function EngineCard({ caps }: { caps: VoiceCapabilities }) {
// ── Behavior card (language + mode + auto-send) ──────────────────────────
function LanguageRow() {
const { t } = useTranslation();
const { voiceMode, savedVoiceMode } = useVoiceDraft();
const { save, saving } = useVoiceModeSaver();
return (
<div className="space-y-2">
<Label htmlFor="voice-language">Language</Label>
<Label htmlFor="voice-language">{t("settings:language")}</Label>
<Select
value={voiceMode.language}
onValueChange={(v) => save({ language: v })}
@@ -297,29 +324,27 @@ function LanguageRow() {
</SelectTrigger>
<SelectContent>
<SelectGroup>
<SelectLabel>Languages</SelectLabel>
<SelectLabel>{t("settings:voiceLanguagesGroup")}</SelectLabel>
{LANGUAGE_OPTIONS.map((l) => (
<SelectItem key={l.value} value={l.value}>
{l.label}
{t(l.labelKey)}
</SelectItem>
))}
</SelectGroup>
</SelectContent>
</Select>
<p className="text-xs text-muted-foreground">
Recognition quality drops sharply when the language doesn&apos;t match what you&apos;re
speaking.
</p>
<p className="text-xs text-muted-foreground">{t("settings:voiceLanguageHint")}</p>
</div>
);
}
function ModeRow() {
const { t } = useTranslation();
const { voiceMode, savedVoiceMode } = useVoiceDraft();
const { save, saving } = useVoiceModeSaver();
return (
<div className="space-y-2">
<Label>Activation</Label>
<Label>{t("settings:voiceActivation")}</Label>
<RadioGroup
value={voiceMode.mode}
onValueChange={(v) => save({ mode: v as VoiceInputActivationMode })}
@@ -329,11 +354,11 @@ function ModeRow() {
>
<Label htmlFor="voice-mode-toggle" className="flex items-center gap-2 cursor-pointer">
<RadioGroupItem id="voice-mode-toggle" value="toggle" />
<span className="text-sm">Click to start / stop</span>
<span className="text-sm">{t("settings:voiceActivationToggle")}</span>
</Label>
<Label htmlFor="voice-mode-hold" className="flex items-center gap-2 cursor-pointer">
<RadioGroupItem id="voice-mode-hold" value="hold" />
<span className="text-sm">Hold to talk</span>
<span className="text-sm">{t("settings:voiceActivationHold")}</span>
</Label>
</RadioGroup>
</div>
@@ -341,17 +366,16 @@ function ModeRow() {
}
function AutoSendRow() {
const { t } = useTranslation();
const { voiceMode, savedVoiceMode } = useVoiceDraft();
const { save, saving } = useVoiceModeSaver();
return (
<div className="flex items-center justify-between">
<div className="space-y-1">
<Label htmlFor="voice-auto-send" className="cursor-pointer">
Auto-send after transcription
{t("settings:voiceAutoSend")}
</Label>
<p className="text-xs text-muted-foreground">
Submit the message as soon as the transcript is inserted.
</p>
<p className="text-xs text-muted-foreground">{t("settings:voiceAutoSendDescription")}</p>
</div>
<Switch
id="voice-auto-send"
@@ -365,6 +389,7 @@ function AutoSendRow() {
}
function BehaviorCard() {
const { t } = useTranslation();
const { voiceMode, savedVoiceMode } = useVoiceDraft();
const isDirty =
voiceMode.language !== savedVoiceMode.language ||
@@ -373,7 +398,7 @@ function BehaviorCard() {
return (
<SettingsCard isDirty={isDirty}>
<CardHeader>
<CardTitle className="text-base">Behavior</CardTitle>
<CardTitle className="text-base">{t("settings:voiceBehavior")}</CardTitle>
</CardHeader>
<CardContent className="space-y-5">
<LanguageRow />
@@ -387,13 +412,14 @@ function BehaviorCard() {
// ── Whisper Web model card ───────────────────────────────────────────────
function WhisperModelCard() {
const { t } = useTranslation();
const { voiceMode, savedVoiceMode } = useVoiceDraft();
const { save, saving } = useVoiceModeSaver();
return (
<SettingsCard isDirty={voiceMode.whisperWebModel !== savedVoiceMode.whisperWebModel}>
<CardHeader>
<CardTitle className="text-base">Whisper Web Model</CardTitle>
<CardTitle className="text-base">{t("settings:voiceWhisperModelTitle")}</CardTitle>
</CardHeader>
<CardContent>
<RadioGroup
@@ -415,17 +441,15 @@ function WhisperModelCard() {
<RadioGroupItem id={`whisper-model-${m.value}`} value={m.value} className="mt-0.5" />
<div>
<div className="text-sm font-medium">
{m.label} <span className="text-muted-foreground font-normal">· {m.size}</span>
{t(m.labelKey)}{" "}
<span className="text-muted-foreground font-normal">· {m.size}</span>
</div>
<p className="text-xs text-muted-foreground">{m.hint}</p>
<p className="text-xs text-muted-foreground">{t(m.hintKey)}</p>
</div>
</Label>
))}
</RadioGroup>
<p className="text-xs text-muted-foreground mt-3">
The model downloads on first use and is cached in your browser. Switching models triggers
another download next time you record.
</p>
<p className="text-xs text-muted-foreground mt-3">{t("settings:voiceWhisperModelHint")}</p>
</CardContent>
</SettingsCard>
);
@@ -434,6 +458,7 @@ function WhisperModelCard() {
// ── Enable card (top-level on/off) ───────────────────────────────────────
function EnableCard() {
const { t } = useTranslation();
const { voiceMode, savedVoiceMode } = useVoiceDraft();
const { save, saving } = useVoiceModeSaver();
return (
@@ -442,18 +467,15 @@ function EnableCard() {
data-testid="voice-enable-card"
>
<CardHeader>
<CardTitle className="text-base">Enable Voice Input</CardTitle>
<CardTitle className="text-base">{t("settings:voiceEnableTitle")}</CardTitle>
</CardHeader>
<CardContent>
<div className="flex items-center justify-between">
<div className="space-y-1">
<Label htmlFor="voice-enabled" className="cursor-pointer">
Show the mic button on the chat composer
{t("settings:voiceEnableLabel")}
</Label>
<p className="text-xs text-muted-foreground">
When off, the voice button is hidden entirely and no voice-related code runs. Settings
below are preserved and re-applied when you turn it back on.
</p>
<p className="text-xs text-muted-foreground">{t("settings:voiceEnableDescription")}</p>
</div>
<Switch
id="voice-enabled"
@@ -471,6 +493,7 @@ function EnableCard() {
// ── Availability banner ──────────────────────────────────────────────────
function AvailabilityBanner({ caps }: { caps: VoiceCapabilities }) {
const { t } = useTranslation();
if (caps.webSpeech || caps.whisperWeb || caps.audioCapture) return null;
// Secure-context requirement is the most common reason capability detection
// returns all-false on mobile (when reaching the dev server over LAN HTTP).
@@ -480,11 +503,11 @@ function AvailabilityBanner({ caps }: { caps: VoiceCapabilities }) {
<div className="flex items-start gap-3 rounded-md border border-orange-500/40 bg-orange-500/5 p-3">
<IconAlertTriangle className="h-5 w-5 text-orange-500 shrink-0 mt-0.5" />
<div className="space-y-1 text-sm">
<p className="font-medium">Voice input is unavailable in this browser.</p>
<p className="font-medium">{t("settings:voiceUnavailableTitle")}</p>
<p className="text-xs text-muted-foreground">
{insecure
? "Microphone APIs require HTTPS or localhost. You appear to be on an insecure HTTP origin — load this page over HTTPS (or http://localhost) to enable voice input."
: "Your browser doesn't expose either the Web Speech API or MediaRecorder. Try Chrome, Edge, or Safari 14.5+."}
? t("settings:voiceUnavailableInsecure")
: t("settings:voiceUnavailableUnsupported")}
</p>
</div>
</div>
@@ -498,6 +521,7 @@ function useShortcutSaver() {
}
function VoiceShortcutCard() {
const { t } = useTranslation();
const { keyboardShortcuts: overrides, savedKeyboardShortcuts } = useVoiceDraft();
const persist = useShortcutSaver();
const current = getShortcut("VOICE_INPUT_TOGGLE", overrides);
@@ -519,7 +543,11 @@ function VoiceShortcutCard() {
<SettingsCard isDirty={isDirty}>
<CardHeader>
<CardTitle className="text-base">
{CONFIGURABLE_SHORTCUTS.VOICE_INPUT_TOGGLE.label} Shortcut
{/* The shortcut's own label comes from the shared keyboard registry,
which is still English — see the guard comment for this route. */}
{t("settings:voiceShortcutTitle", {
shortcut: CONFIGURABLE_SHORTCUTS.VOICE_INPUT_TOGGLE.label,
})}
</CardTitle>
</CardHeader>
<CardContent>
@@ -532,10 +560,7 @@ function VoiceShortcutCard() {
onReset={handleReset}
isDirty={isDirty}
/>
<p className="text-xs text-muted-foreground mt-2">
Click the shortcut to record a new key combination. All keyboard shortcuts can also be
edited in General Settings.
</p>
<p className="text-xs text-muted-foreground mt-2">{t("settings:voiceShortcutHint")}</p>
</CardContent>
</SettingsCard>
);
@@ -544,14 +569,15 @@ function VoiceShortcutCard() {
// ── Page ─────────────────────────────────────────────────────────────────
function VoiceModeSettingsContent() {
const { t } = useTranslation();
const caps = useMemo(() => detectVoiceCapabilities(), []);
const { voiceMode } = useVoiceDraft();
const enabled = voiceMode.enabled;
return (
<SettingsSection
icon={<IconMicrophone className="h-5 w-5" />}
title="Voice Mode"
description="Configure how voice input works on the chat composer."
title={t("settings:voiceMode")}
description={t("settings:voiceModePageDescription")}
>
<div className="space-y-4">
<EnableCard />
@@ -185,6 +185,35 @@ const SCREENS: Array<{ name: string; url: string; allow?: string[] }> = [
// ("Authenticated", "· checked <relative>") and `@kandev/ui`'s built-in dialog
// "Close" label — both shared, both out of scope for a per-integration PR.
//
// NOT YET: "settings — external mcp", "… prompts", "… voice mode",
// "… utility agents". All four pages' own copy is fully migrated and was
// verified by running this oracle against each of them — every string those
// routes own renders accented, including the 43 in the MCP tool catalog
// (`lib/settings/external-mcp-tools.ts`), which is a `.ts` module no lint rule
// inspects. The collapsed tools preview, the utility agent dialog and the
// inference status note were scanned separately, since this spec only sees
// what a route renders on load.
//
// #2214 migrated the settings nav, which was the original blocker, and these
// four now come back clean of it. What still stops them being entries here is
// copy none of them owns:
// - `aria-label="breadcrumb"` from `@kandev/ui`'s Breadcrumb primitive, and
// Sonner's `Notifications alt+T` toast-region label. Both are the shared-UI
// case docs/i18n.md describes: they need a strings-provider seam in the
// package, not a per-route fix.
// - `Configuration Chat` from `components/config-chat/`, not yet migrated.
// Allowlisting either here would hide misses belonging to whoever owns them,
// which is the failure this list's own comment warns about. The workspace
// names these routes also surfaced are no longer among them: #2220 derives
// them from the boot payload and makes them ineligible, which is the right
// fix — they are user data, and listing them by value would have fixed the
// fixture and left every developer's own instance broken.
//
// Each route also renders data that is correctly English and would need an
// `allow` entry: the built-in prompts' names and bodies and the built-in
// utility agents' names and descriptions (both backend-authored), the agent
// product names and config paths on External MCP, and `Ctrl+Shift+M`.
//
// NOT YET: "settings — workspace workflows"
// (`/settings/workspace/:id/workflows`). The workflow editor's own copy is
// fully migrated and was verified with this oracle against a live instance,
+145
View File
@@ -933,4 +933,149 @@ export const i18nGuardFiles = [
"components/settings/repository-custom-scripts.tsx",
"components/settings/repository-delete-dialog.tsx",
"components/settings/unsaved-indicator.tsx",
// Settings → External MCP, Prompts, Voice Mode and Utility Agents, plus the
// two Changelog cards. Four small routes in one entry group because none of
// them owns enough copy to be worth its own migration, and they share the
// `settings` namespace: two of the four already had their page title there
// (`settings:voiceMode`, `settings:utilityAgents`) and the other two in
// `common` (`common:externalMcp`, `common:prompts`), all of which are reused
// rather than twinned — `SEGMENT_LABEL_KEYS` in `settings-layout-client.tsx`
// renders the same words as the breadcrumb on these very routes.
//
// `lib/settings/external-mcp-tools.ts` is the load-bearing entry: a `.ts`
// catalog of 7 groups and 29 tools that `mode: "jsx-only"` never inspects, so
// its 43 strings were invisible to every previous sweep. Titles and
// descriptions now travel as `titleKey` / `descriptionKey` and resolve at
// render; the tool `name`s stay literal because they are the protocol
// identifiers an external agent calls. Two unit tests pin the keys to the
// catalog, because nothing else can.
//
// Three more shapes here held copy no lint rule could see, all now migrated:
// `buildEngineOptions` in `voice-mode-settings.tsx` (a plain builder
// returning label/description object literals), `noteForStatus` in
// `inference-agent-status.tsx` (a non-JSX switch over the probe status), and
// the `placeholder = "Select a model"` parameter default in
// `model-combobox.tsx`, which had to move into the component body — a
// parameter list is evaluated before `useTranslation()` is in scope.
//
// `model-combobox.tsx` and `inference-agent-status.tsx` were listed for the
// Settings → Agents migration and correctly left there, being absent from
// that route's import closure. They belong here: the combobox is reached from
// Utility Agents and from the task-side CLI profile editor
// (`components/agent/cli-profile-editor.tsx`, not yet migrated — the guard is
// per-file, so that surface is unaffected), and the status note only from
// Utility Agents. `mode-combobox.tsx`, `pty-terminal-dialog.tsx` and
// `changelog-list.tsx` are already listed above and were left alone.
//
// Five files here are DEAD TWINS — see "an existing key is not automatically
// the right key" in docs/i18n.md, which is the shape that silently rewrote
// English on a shipping System page. None of these had drifted, because none
// of them holds any copy at all, but the next migration should not have to
// rediscover which ones are live:
//
// - `app/settings/prompts/page.tsx` and `app/settings/voice-mode/page.tsx`
// are unreferenced. `SETTINGS_ROUTES` in `src/settings-routes.tsx` renders
// `<PromptsSettings />` and `<VoiceModeSettings />` directly, so the SSR
// prefetch in those pages never runs. `external-mcp` and `utility-agents`
// go through their page, and are live.
// - `app/settings/changelog/page.tsx` is likewise unreferenced; the route
// table has its own `SettingsRedirect` to `/settings/system/updates`.
// - `changelog-settings.tsx` and `changelog-notification-card.tsx` are
// migrated but unreachable: nothing imports `ChangelogSettings`, and it is
// the only importer of `ChangelogNotificationCard`. The pseudo-locale
// therefore cannot verify either from any route — they were read by eye.
//
// That makes the whole changelog surface — the release-history list and the
// topbar-notification card — currently unreachable, which is worth stating
// plainly because it is easy to get wrong. `/settings/system/updates` renders
// `renderUpdatesRoute` from the route table, which mounts `UpdatesCard` and
// nothing else; it has never mounted `ChangelogList`. The
// `app/settings/system/updates/page.tsx` that did was itself a dead twin, and
// #2219 deleted it along with the other eight. So `changelog-list.tsx`, which
// #2202 allowlisted as part of that route, has no live consumer either. It is
// left listed here — an allowlist entry on unreachable code costs nothing and
// removing one is the thing this file must never do.
//
// Deleting the five is a correctness change, not tidiness, and belongs in its
// own PR rather than inside a copy-only migration.
//
// `use-inference-agents.ts` and `utility-dirty.ts` hold no JSX and no copy;
// the entries record that the review happened. `external-mcp-snippets.ts` is
// absent rather than noted: it is JSON/TOML config and CLI commands end to
// end, with no prose at all.
//
// Deliberately left in English, none of it copy:
// - Every MCP tool `name` (`create_task_kandev`, …), the `parent_id`
// request field, and the `open, in_progress, complete, blocked,
// cancelled` task-state enum. The last two are interpolated as values so
// the pseudo-locale cannot turn them into dead pointers.
// - The agent product names and config paths in `SNIPPET_CARDS`
// (`Claude Code`, `~/.claude.json`, `~/.codex/config.toml`, …) and the
// whole of every generated snippet. All interpolated as values.
// - The `{{` prompt-template sigil and the `@name` chat mention token —
// both typed verbatim by the user, both interpolated.
// - Wire values: the voice `engine` / `mode` / `whisper_web_model` unions
// and the BCP-47 `language` tags, the `InferenceAgentStatus` probe
// states, the `USE_DEFAULT` sentinel, and every agent/model id. Only
// their labels are copy, and those travel as catalog keys.
// - `~40 MB` / `~75 MB` / `~240 MB` in `WHISPER_MODELS`: download sizes in
// binary units, not prose — the same call `storage-units.ts` made.
// - Utility agent `name`, `description` and `prompt`, and custom prompt
// `name` / `content`. The builtins' text is authored by the backend and
// the rest is user data; a prompt body is also sent to the agent verbatim.
// - `new Error("Voice settings require VoiceDraftProvider")`, a programming
// error that can only fire in a broken render tree.
//
// Every key added here was audited against all 15 en catalogs for English that
// already exists under another key. Twelve matched. Ten are the established
// per-namespace pattern the repo already runs on — `Refresh`, `Add`,
// `Actions`, `Copied`, `Copy to clipboard`, `Tasks`, `Model`, `No default`,
// `Not configured` each already exist in two to eight namespaces, because a
// namespace is the unit a translator works in. Two needed a decision, both
// because they appear in `OWNED_BY_ANOTHER_NAMESPACE` in
// `settings-nav-copy.test.ts` and both because the nav renders the same word
// on the same screen:
//
// - `externalMcpGroupAgents` = "Agents" vs `common:agents`
// - `externalMcpGroupExecutors` = "Executors" vs `common:executors`
//
// These are kept separate, and that guard does not fire on them because it
// scans `sidebar.json` only. The rule it encodes is that a nav label and the
// page title of the destination it links to must share one key — same words,
// same destination. These are not that: they are headings for MCP tool
// categories mirroring the backend's grouping in
// `apps/backend/internal/mcp/server`, not the settings routes. Reusing
// `common:agents` would couple the tool catalog to the nav, so renaming the
// Agents settings route would silently retitle a group of MCP tools.
//
// `promptDeleteDescription` also duplicates `thisWillPermanentlyRemoveSecret`
// inside this namespace, sentence and tag index alike. Kept separate because
// that key is named for the secrets dialog it belongs to; folding the prompts
// dialog into it would leave a key whose name contradicts half its callers.
//
// Still English and NOT ours: `CONFIGURABLE_SHORTCUTS.VOICE_INPUT_TOGGLE.label`
// ("Voice Input") from `lib/keyboard/shortcut-overrides.ts`, interpolated into
// the migrated `settings:voiceShortcutTitle` frame. It is the shared keyboard
// registry, owned by whoever migrates `lib/keyboard`; under the pseudo-locale
// it reads as an English word inside accented copy, which is the oracle's
// known weak spot rather than a miss here.
"app/settings/changelog/**/*.{ts,tsx}",
"app/settings/external-mcp/**/*.{ts,tsx}",
"app/settings/prompts/**/*.{ts,tsx}",
"app/settings/utility-agents/**/*.{ts,tsx}",
"app/settings/voice-mode/**/*.{ts,tsx}",
"components/settings/changelog-notification-card.tsx",
"components/settings/changelog-settings.tsx",
"components/settings/config-chat-agent-section.tsx",
"components/settings/external-mcp-settings.tsx",
"components/settings/inference-agent-status.tsx",
"components/settings/model-combobox.tsx",
"components/settings/prompts-settings.tsx",
"components/settings/use-inference-agents.ts",
"components/settings/utility-agent-dialog.tsx",
"components/settings/utility-agents-section.tsx",
"components/settings/utility-dirty.ts",
"components/settings/utility-sections.tsx",
"components/settings/voice-mode-settings.tsx",
"lib/settings/external-mcp-tools.ts",
];
@@ -1,10 +1,19 @@
import { describe, it, expect } from "vitest";
import { EXTERNAL_MCP_TOOL_GROUPS, countExternalMcpTools } from "./external-mcp-tools";
import enSettings from "@/src/locales/en/settings.json";
describe("external MCP tool catalog", () => {
it("matches the backend ModeExternal tool count (29 tools)", () => {
// Backend: 10 workflow + 4 agent + 4 mcp + 5 executor + 5 task + 1 create_task = 29.
// See apps/backend/internal/mcp/server/server.go (case ModeExternal).
// NOTE: this pins the CATALOG, which currently lags the backend. `ModeExternal`
// registers 32 tools (12 workflow + 4 agent + 4 mcp + 5 executor + 6 task +
// 1 create_task — see `TestServerModeExternal_ToolCount`), and this catalog
// lists 29: `list_repositories_kandev`, `import_workflow_kandev` and one task
// tool are missing, so the page under-advertises the endpoint by three.
//
// That drift predates this file's localization and is left alone here on
// purpose: adding the three means writing three new user-facing descriptions
// that have to be checked against the backend's own wording, which is a
// content change and not a copy migration. Update this number with them.
it("lists 29 tools, the catalog's current contents", () => {
expect(countExternalMcpTools()).toBe(29);
});
@@ -27,10 +36,41 @@ describe("external MCP tool catalog", () => {
expect(names).not.toContain("create_task_plan_kandev");
});
it("every group has at least one tool and a non-empty title", () => {
it("every group has at least one tool and a non-empty title key", () => {
for (const group of EXTERNAL_MCP_TOOL_GROUPS) {
expect(group.title.length).toBeGreaterThan(0);
expect(group.titleKey.length).toBeGreaterThan(0);
expect(group.tools.length).toBeGreaterThan(0);
}
});
// The catalog is a plain `.ts` module with no JSX, so `i18next/no-literal-string`
// never inspects it and a key that never made it into the catalog would render
// as the raw `settings:externalMcp…` string with nothing failing.
it("every title and description key resolves in the en catalog", () => {
const catalog = enSettings as Record<string, string>;
const keys = EXTERNAL_MCP_TOOL_GROUPS.flatMap((group) => [
group.titleKey,
group.descriptionKey,
...group.tools.map((tool) => tool.descriptionKey),
]);
// Derived, not a literal: this asserts every entry carries keys, and must
// not quietly re-pin the tool count the test above owns.
expect(keys).toHaveLength(EXTERNAL_MCP_TOOL_GROUPS.length * 2 + countExternalMcpTools());
for (const key of keys) {
const [ns, name] = key.split(":");
expect(ns).toBe("settings");
expect(catalog[name], `missing catalog entry for ${key}`).toBeTruthy();
}
});
// A message that interpolates a wire token renders a dead `{{placeholder}}`
// if the tool forgets to carry the value.
it("supplies a value for every interpolated description", () => {
const catalog = enSettings as Record<string, string>;
for (const tool of EXTERNAL_MCP_TOOL_GROUPS.flatMap((g) => g.tools)) {
const message = catalog[tool.descriptionKey.split(":")[1]];
const placeholders = [...message.matchAll(/\{\{(\w+)\}\}/g)].map((m) => m[1]);
expect(Object.keys(tool.descriptionValues ?? {}).sort()).toEqual(placeholders.sort());
}
});
});
+96 -52
View File
@@ -1,111 +1,155 @@
// Static catalog of MCP tools exposed by the Kandev backend's external endpoint.
// Mirrors apps/backend/internal/mcp/server (ModeExternal). Keep in sync when
// tools are added, removed, or renamed.
//
// KNOWN DRIFT: `ModeExternal` registers 32 tools, this lists 29 —
// `list_repositories_kandev`, `import_workflow_kandev` and one task tool are
// missing, so the settings page under-advertises the endpoint. See the note in
// `external-mcp-tools.test.ts`.
//
// The `name`s are the protocol identifiers an external agent calls, so they stay
// literal in every locale. Only the group titles and the human descriptions are
// copy, and they travel as catalog keys resolved at render — this module is
// evaluated at import, so a `t()` here would freeze at the boot locale.
export type ExternalMcpTool = { name: string; description: string };
export type ExternalMcpTool = {
name: string;
descriptionKey: string;
/** Interpolated into `descriptionKey`; wire tokens the user must type verbatim. */
descriptionValues?: Record<string, string>;
};
export type ExternalMcpToolGroup = {
title: string;
description: string;
titleKey: string;
descriptionKey: string;
tools: ExternalMcpTool[];
};
/** Task-state enum accepted by `update_task_state_kandev`, verbatim wire values. */
const TASK_STATES = "open, in_progress, complete, blocked, cancelled";
/** Request field on `create_task_kandev`, verbatim wire value. */
const PARENT_ID_PARAM = "parent_id";
export const EXTERNAL_MCP_TOOL_GROUPS: ExternalMcpToolGroup[] = [
{
title: "Workspaces & Workflows",
description: "Discover workspaces and CRUD workflows.",
titleKey: "settings:externalMcpGroupWorkspaces",
descriptionKey: "settings:externalMcpGroupWorkspacesDescription",
tools: [
{ name: "list_workspaces_kandev", description: "List all workspaces." },
{ name: "list_workflows_kandev", description: "List workflows in a workspace." },
{ name: "create_workflow_kandev", description: "Create a workflow." },
{ name: "update_workflow_kandev", description: "Rename or update a workflow." },
{
name: "delete_workflow_kandev",
description: "Delete a workflow and all its steps (destructive).",
},
{ name: "list_workspaces_kandev", descriptionKey: "settings:externalMcpToolListWorkspaces" },
{ name: "list_workflows_kandev", descriptionKey: "settings:externalMcpToolListWorkflows" },
{ name: "create_workflow_kandev", descriptionKey: "settings:externalMcpToolCreateWorkflow" },
{ name: "update_workflow_kandev", descriptionKey: "settings:externalMcpToolUpdateWorkflow" },
{ name: "delete_workflow_kandev", descriptionKey: "settings:externalMcpToolDeleteWorkflow" },
],
},
{
title: "Workflow steps (columns)",
description: "Manage the columns that make up a workflow.",
titleKey: "settings:externalMcpGroupWorkflowSteps",
descriptionKey: "settings:externalMcpGroupWorkflowStepsDescription",
tools: [
{ name: "list_workflow_steps_kandev", description: "List all steps in a workflow." },
{
name: "list_workflow_steps_kandev",
descriptionKey: "settings:externalMcpToolListWorkflowSteps",
},
{
name: "create_workflow_step_kandev",
description: "Add a new column with prompt, color, and event hooks.",
descriptionKey: "settings:externalMcpToolCreateWorkflowStep",
},
{
name: "update_workflow_step_kandev",
descriptionKey: "settings:externalMcpToolUpdateWorkflowStep",
},
{
name: "delete_workflow_step_kandev",
descriptionKey: "settings:externalMcpToolDeleteWorkflowStep",
},
{ name: "update_workflow_step_kandev", description: "Edit a step's settings or events." },
{ name: "delete_workflow_step_kandev", description: "Delete a step (destructive)." },
{
name: "reorder_workflow_steps_kandev",
description: "Set the full ordered list of step IDs.",
descriptionKey: "settings:externalMcpToolReorderWorkflowSteps",
},
],
},
{
title: "Agents",
description: "Inspect and configure the agent catalog.",
titleKey: "settings:externalMcpGroupAgents",
descriptionKey: "settings:externalMcpGroupAgentsDescription",
tools: [
{
name: "list_agents_kandev",
description: "List configured agents and their profiles.",
},
{ name: "update_agent_kandev", description: "Toggle MCP support or set the config path." },
{ name: "list_agents_kandev", descriptionKey: "settings:externalMcpToolListAgents" },
{ name: "update_agent_kandev", descriptionKey: "settings:externalMcpToolUpdateAgent" },
{
name: "create_agent_profile_kandev",
description: "Create a new agent profile (model, auto-approve).",
descriptionKey: "settings:externalMcpToolCreateAgentProfile",
},
{
name: "delete_agent_profile_kandev",
descriptionKey: "settings:externalMcpToolDeleteAgentProfile",
},
{ name: "delete_agent_profile_kandev", description: "Delete an agent profile." },
],
},
{
title: "Agent profiles & MCP config",
description: "Manage profile-level MCP server configuration.",
titleKey: "settings:externalMcpGroupAgentProfiles",
descriptionKey: "settings:externalMcpGroupAgentProfilesDescription",
tools: [
{ name: "list_agent_profiles_kandev", description: "List profiles for an agent." },
{ name: "update_agent_profile_kandev", description: "Update name, model, or auto-approve." },
{ name: "get_mcp_config_kandev", description: "Read the MCP server map for a profile." },
{
name: "list_agent_profiles_kandev",
descriptionKey: "settings:externalMcpToolListAgentProfiles",
},
{
name: "update_agent_profile_kandev",
descriptionKey: "settings:externalMcpToolUpdateAgentProfile",
},
{ name: "get_mcp_config_kandev", descriptionKey: "settings:externalMcpToolGetMcpConfig" },
{
name: "update_mcp_config_kandev",
description: "Replace the MCP server map for a profile.",
descriptionKey: "settings:externalMcpToolUpdateMcpConfig",
},
],
},
{
title: "Executors",
description: "CRUD executor profiles (Docker, standalone, Sprites...).",
titleKey: "settings:externalMcpGroupExecutors",
descriptionKey: "settings:externalMcpGroupExecutorsDescription",
tools: [
{ name: "list_executors_kandev", description: "List all executors." },
{ name: "list_executor_profiles_kandev", description: "List profiles for an executor." },
{ name: "list_executors_kandev", descriptionKey: "settings:externalMcpToolListExecutors" },
{
name: "list_executor_profiles_kandev",
descriptionKey: "settings:externalMcpToolListExecutorProfiles",
},
{
name: "create_executor_profile_kandev",
description: "Create a profile with config, prepare/cleanup scripts.",
descriptionKey: "settings:externalMcpToolCreateExecutorProfile",
},
{
name: "update_executor_profile_kandev",
descriptionKey: "settings:externalMcpToolUpdateExecutorProfile",
},
{
name: "delete_executor_profile_kandev",
descriptionKey: "settings:externalMcpToolDeleteExecutorProfile",
},
{ name: "update_executor_profile_kandev", description: "Update an executor profile." },
{ name: "delete_executor_profile_kandev", description: "Delete an executor profile." },
],
},
{
title: "Tasks",
description: "List, move, archive, and update task state.",
titleKey: "settings:externalMcpGroupTasks",
descriptionKey: "settings:externalMcpGroupTasksDescription",
tools: [
{ name: "list_tasks_kandev", description: "List tasks in a workflow." },
{ name: "move_task_kandev", description: "Move a task to a different step or position." },
{ name: "delete_task_kandev", description: "Delete a task permanently." },
{ name: "archive_task_kandev", description: "Archive a task." },
{ name: "list_tasks_kandev", descriptionKey: "settings:externalMcpToolListTasks" },
{ name: "move_task_kandev", descriptionKey: "settings:externalMcpToolMoveTask" },
{ name: "delete_task_kandev", descriptionKey: "settings:externalMcpToolDeleteTask" },
{ name: "archive_task_kandev", descriptionKey: "settings:externalMcpToolArchiveTask" },
{
name: "update_task_state_kandev",
description: "Set task state: open, in_progress, complete, blocked, cancelled.",
descriptionKey: "settings:externalMcpToolUpdateTaskState",
descriptionValues: { states: TASK_STATES },
},
],
},
{
title: "Task creation",
description: "Spawn new top-level tasks or subtasks from external agents.",
titleKey: "settings:externalMcpGroupTaskCreation",
descriptionKey: "settings:externalMcpGroupTaskCreationDescription",
tools: [
{
name: "create_task_kandev",
description: "Create a top-level task or a subtask under an explicit parent_id.",
descriptionKey: "settings:externalMcpToolCreateTask",
descriptionValues: { parentIdParam: PARENT_ID_PARAM },
},
],
},
+4 -1
View File
@@ -191,5 +191,8 @@
"watcherKindGithubIssue": "GitHub Issues",
"watcherKindGithubReview": "GitHub PR Reviews",
"watcherKindJira": "Jira",
"watcherKindLinear": "Linear"
"watcherKindLinear": "Linear",
"searchModels": "Search models...",
"noModelFound": "No model found.",
"selectAModelShort": "Select a model"
}
+1
View File
@@ -3,6 +3,7 @@
"agents": "Agents",
"automations": "Automations",
"cancel": "Cancel",
"changelog": "Changelog",
"commandAgentsSettings": "Agents Settings",
"commandAgentsSettingsKeywords": "agents, agent settings, agent profiles, installed agents, claude",
"commandConfigChatKeywords": "config chat, config mode, configure kandev, workflow configuration, mcp configuration",
+176 -1
View File
@@ -422,5 +422,180 @@
"diagnosticPreparingZip": "Preparing ZIP…",
"diagnosticZipDownloading": "Your diagnostic ZIP is downloading.",
"diagnosticPartialZipDownloading": "A partial ZIP is downloading: {{warnings}}",
"diagnosticPartialZipUnavailable": "A partial diagnostic ZIP is downloading; some frontend logs were unavailable."
"diagnosticPartialZipUnavailable": "A partial diagnostic ZIP is downloading; some frontend logs were unavailable.",
"externalMcpIntro": "Use this if you want to manage Kandev from coding agents that run <2>outside</2> Kandev (e.g. Claude Code, Cursor, or Codex on your host), or from <4>passthrough agents</4> running inside Kandev.",
"externalMcpIntroPassthrough": "Agents launched inside Kandev in their normal mode already have the Kandev MCP wired in automatically, no setup needed.",
"externalMcpEndpoints": "Endpoints",
"externalMcpEndpointsDescription": "Available on the same host and port as Kandev. Use localhost for same-machine agents, or the reachable Kandev URL for LAN, VPN, and reverse-proxy clients.",
"externalMcpStreamableHttp": "Streamable HTTP",
"externalMcpStreamableHttpHint": "Recommended for Claude Code, Cursor, and Codex.",
"externalMcpSse": "Server-Sent Events (SSE)",
"externalMcpSseHint": "Compatibility transport for older MCP clients.",
"externalMcpAvailableTools": "Available tools",
"externalMcpToolCount_one": "{{count}} tool",
"externalMcpToolCount_other": "{{count}} tools",
"externalMcpCategoryCount_one": "{{count}} category",
"externalMcpCategoryCount_other": "{{count}} categories",
"externalMcpToolsSummary": "{{tools}} across {{categories}} — expand to preview what external agents can do.",
"externalMcpSnippets": "Configuration snippets",
"externalMcpSnippetsDescription": "Paste these into your agent's global MCP configuration.",
"externalMcpConfigPathOrCli": "{{path}} — or run the CLI command below",
"externalMcpOpenCodePaths": "{{projectPath}} (project) or {{globalPath}} (global)",
"externalMcpOneLiner": "One-liner (writes to {{path}})",
"externalMcpCopied": "Copied",
"externalMcpCopyUrl": "Copy URL",
"externalMcpCopyToClipboard": "Copy to clipboard",
"externalMcpGroupWorkspaces": "Workspaces & Workflows",
"externalMcpGroupWorkspacesDescription": "Discover workspaces and CRUD workflows.",
"externalMcpGroupWorkflowSteps": "Workflow steps (columns)",
"externalMcpGroupWorkflowStepsDescription": "Manage the columns that make up a workflow.",
"externalMcpGroupAgents": "Agents",
"externalMcpGroupAgentsDescription": "Inspect and configure the agent catalog.",
"externalMcpGroupAgentProfiles": "Agent profiles & MCP config",
"externalMcpGroupAgentProfilesDescription": "Manage profile-level MCP server configuration.",
"externalMcpGroupExecutors": "Executors",
"externalMcpGroupExecutorsDescription": "CRUD executor profiles (Docker, standalone, Sprites...).",
"externalMcpGroupTasks": "Tasks",
"externalMcpGroupTasksDescription": "List, move, archive, and update task state.",
"externalMcpGroupTaskCreation": "Task creation",
"externalMcpGroupTaskCreationDescription": "Spawn new top-level tasks or subtasks from external agents.",
"externalMcpToolListWorkspaces": "List all workspaces.",
"externalMcpToolListWorkflows": "List workflows in a workspace.",
"externalMcpToolCreateWorkflow": "Create a workflow.",
"externalMcpToolUpdateWorkflow": "Rename or update a workflow.",
"externalMcpToolDeleteWorkflow": "Delete a workflow and all its steps (destructive).",
"externalMcpToolListWorkflowSteps": "List all steps in a workflow.",
"externalMcpToolCreateWorkflowStep": "Add a new column with prompt, color, and event hooks.",
"externalMcpToolUpdateWorkflowStep": "Edit a step's settings or events.",
"externalMcpToolDeleteWorkflowStep": "Delete a step (destructive).",
"externalMcpToolReorderWorkflowSteps": "Set the full ordered list of step IDs.",
"externalMcpToolListAgents": "List configured agents and their profiles.",
"externalMcpToolUpdateAgent": "Toggle MCP support or set the config path.",
"externalMcpToolCreateAgentProfile": "Create a new agent profile (model, auto-approve).",
"externalMcpToolDeleteAgentProfile": "Delete an agent profile.",
"externalMcpToolListAgentProfiles": "List profiles for an agent.",
"externalMcpToolUpdateAgentProfile": "Update name, model, or auto-approve.",
"externalMcpToolGetMcpConfig": "Read the MCP server map for a profile.",
"externalMcpToolUpdateMcpConfig": "Replace the MCP server map for a profile.",
"externalMcpToolListExecutors": "List all executors.",
"externalMcpToolListExecutorProfiles": "List profiles for an executor.",
"externalMcpToolCreateExecutorProfile": "Create a profile with config, prepare/cleanup scripts.",
"externalMcpToolUpdateExecutorProfile": "Update an executor profile.",
"externalMcpToolDeleteExecutorProfile": "Delete an executor profile.",
"externalMcpToolListTasks": "List tasks in a workflow.",
"externalMcpToolMoveTask": "Move a task to a different step or position.",
"externalMcpToolDeleteTask": "Delete a task permanently.",
"externalMcpToolArchiveTask": "Archive a task.",
"externalMcpToolUpdateTaskState": "Set task state: {{states}}.",
"externalMcpToolCreateTask": "Create a top-level task or a subtask under an explicit {{parentIdParam}}.",
"promptsPageDescription": "Create reusable prompt snippets for the chat input.",
"promptsInvalidReason": "Prompt name and content are required.",
"promptMentionHelp": "Use <1>{{token}}</1> in the chat input to insert a prompt’s content. Prompts are matched by name and expanded in place.",
"promptsCustomHeading": "Custom prompts",
"promptAdd": "Add prompt",
"promptNamePlaceholder": "Prompt name",
"promptContentPlaceholder": "Prompt content",
"promptsLoading": "Loading prompts…",
"promptsEmpty": "No prompts yet. Add your first prompt to get started.",
"promptDelete": "Delete prompt",
"promptDeleteThisPrompt": "this prompt",
"promptDeleteDescription": "This will permanently remove <2>{{name}}</2>. This action cannot be undone.",
"promptCreateFailed": "Couldn't create prompt",
"promptSaveFailed": "Couldn't save prompt",
"promptDeleteFailed": "Couldn't delete prompt",
"voiceModePageDescription": "Configure how voice input works on the chat composer.",
"voiceEnableTitle": "Enable Voice Input",
"voiceEnableLabel": "Show the mic button on the chat composer",
"voiceEnableDescription": "When off, the voice button is hidden entirely and no voice-related code runs. Settings below are preserved and re-applied when you turn it back on.",
"voiceUnavailableTitle": "Voice input is unavailable in this browser.",
"voiceUnavailableInsecure": "Microphone APIs require HTTPS or localhost. You appear to be on an insecure HTTP origin — load this page over HTTPS (or http://localhost) to enable voice input.",
"voiceUnavailableUnsupported": "Your browser doesn't expose either the Web Speech API or MediaRecorder. Try Chrome, Edge, or Safari 14.5+.",
"voiceEngineTitle": "Transcription Engine",
"voiceEngineUnsupported": "Not supported in this browser.",
"voiceEngineAuto": "Automatic",
"voiceEngineAutoDescription": "Use the best engine available in this browser.",
"voiceEngineWebSpeech": "Web Speech (in-browser)",
"voiceEngineWebSpeechDescription": "Free, instant, uses your browser's built-in speech recognition.",
"voiceEngineWhisperWeb": "Whisper Web (private, in-browser)",
"voiceEngineWhisperWebDescription": "Runs OpenAI Whisper entirely on this device. First use downloads the model (40–240 MB).",
"voiceEngineWhisperServer": "Whisper Server (OpenAI)",
"voiceEngineWhisperServerDescription": "Sends audio to the backend, which forwards it to OpenAI's Whisper API. Requires a configured API key on the server.",
"voiceEngineBadgeLocal": "Local",
"voiceEngineBadgeServer": "Server",
"voiceBehavior": "Behavior",
"voiceLanguagesGroup": "Languages",
"voiceLanguageHint": "Recognition quality drops sharply when the language doesn't match what you're speaking.",
"voiceLanguageAuto": "Auto-detect (browser language)",
"voiceLanguageEnUs": "English (United States)",
"voiceLanguageEnGb": "English (United Kingdom)",
"voiceLanguageEsEs": "Spanish (Spain)",
"voiceLanguageEsMx": "Spanish (Mexico)",
"voiceLanguagePtPt": "Portuguese (Portugal)",
"voiceLanguagePtBr": "Portuguese (Brazil)",
"voiceLanguageFrFr": "French",
"voiceLanguageDeDe": "German",
"voiceLanguageItIt": "Italian",
"voiceLanguageJaJp": "Japanese",
"voiceLanguageZhCn": "Chinese (Simplified)",
"voiceActivation": "Activation",
"voiceActivationToggle": "Click to start / stop",
"voiceActivationHold": "Hold to talk",
"voiceAutoSend": "Auto-send after transcription",
"voiceAutoSendDescription": "Submit the message as soon as the transcript is inserted.",
"voiceWhisperModelTitle": "Whisper Web Model",
"voiceWhisperModelHint": "The model downloads on first use and is cached in your browser. Switching models triggers another download next time you record.",
"voiceWhisperTiny": "Tiny",
"voiceWhisperTinyHint": "Fastest, lower accuracy",
"voiceWhisperBase": "Base",
"voiceWhisperBaseHint": "Balanced default",
"voiceWhisperSmall": "Small",
"voiceWhisperSmallHint": "Best accuracy, slower load",
"voiceShortcutTitle": "{{shortcut}} Shortcut",
"voiceShortcutHint": "Click the shortcut to record a new key combination. All keyboard shortcuts can also be edited in General Settings.",
"utilityAgentsPageDescription": "One-shot AI helpers for commits, PRs, and prompts.",
"model": "Model",
"utilityDefaultModelTitle": "Default utility agent model",
"utilityDefaultModelDescription": "Select the default model used by all built-in utility actions.",
"utilityDefaultModelAriaLabel": "Default utility model settings",
"utilitySelectAgent": "Select agent...",
"utilitySelectModel": "Select model...",
"utilityActionsTitle": "Actions",
"utilityDefaultWithModel": "Default ({{model}})",
"utilityModelNotConfigured": "Not configured",
"utilityCustomAgentsTitle": "Custom utility agents",
"utilityCustomAgentsDescription": "Create your own utility agents with custom prompts.",
"utilityCustomAgentsEmpty": "No custom utility agents.",
"utilityAddCustomAgent": "Add",
"utilityAgentDialogCreateTitle": "Create Utility Agent",
"utilityAgentDialogEditTitle": "Edit Utility Agent",
"utilityAgentDialogCreate": "Create Agent",
"utilityAgentDialogSave": "Save Changes",
"utilityAgentNamePlaceholder": "e.g., commit-message",
"utilityAgentDescriptionLabel": "Description",
"utilityAgentDescriptionPlaceholder": "Brief description of what this agent does",
"utilityAgentPromptTemplate": "Prompt Template",
"utilityAgentPromptHint": "Type <1>{{sigil}}</1> to see available variables with autocomplete",
"configChatAgentTitle": "Configuration Chat Agent",
"configChatAgentDescription": "Choose which agent profile to use for the Configuration Chat. This agent can manage your workflows, agent profiles, and MCP configuration.",
"configChatAgentPlaceholder": "Choose an agent profile...",
"configChatAgentNoDefault": "No default",
"inferenceAgentProbing": "Setting up {{name}}…",
"inferenceAgentAuthRequired": "Sign in to {{name}} to load models.",
"inferenceAgentNotInstalled": "{{name}} CLI is not installed on this machine.",
"inferenceAgentNotConfigured": "{{name}} is not configured for inference.",
"inferenceAgentProbeFailed": "Probe failed for {{name}}.",
"inferenceAgentNoModels": "{{name}} advertised no models.",
"inferenceAgentUnavailable": "{{name}} is no longer available.",
"inferenceAgentThisAgent": "this agent",
"inferenceAgentRefresh": "Refresh",
"inferenceAgentRefreshing": "Refreshing…",
"changelogPageDescription": "View all releases and manage notification preferences",
"changelogNotificationsDescription": "Control the release notes notification in the topbar",
"changelogReleaseHistory": "Release History",
"changelogReleaseHistoryDescription": "All versions and their release notes",
"changelogTopbarTitle": "Topbar Release Notification",
"changelogTopbarLabel": "Show notification for new releases",
"changelogTopbarDescription": "When enabled, a sparkle icon appears in the topbar when a new version is released",
"changelogResetSeenLabel": "Reset seen releases",
"changelogResetSeenDescription": "Clear your last seen version so the topbar notification appears again"
}
+4 -1
View File
@@ -191,5 +191,8 @@
"watcherKindGithubIssue": "ĜĩţĤũƀ Ĩśśũēś",
"watcherKindGithubReview": "ĜĩţĤũƀ ƤŔ Ŕēvĩēŵś",
"watcherKindJira": "Ĵĩŕà",
"watcherKindLinear": "Ĺĩńēàŕ"
"watcherKindLinear": "Ĺĩńēàŕ",
"searchModels": "Śēàŕćĥ ḿōďēĺś...",
"noModelFound": "Ńō ḿōďēĺ ƒōũńď.",
"selectAModelShort": "Śēĺēćţ à ḿōďēĺ"
}
+1
View File
@@ -3,6 +3,7 @@
"agents": "Àĝēńţś",
"automations": "Àũţōḿàţĩōńś",
"cancel": "Ćàńćēĺ",
"changelog": "Ćĥàńĝēĺōĝ",
"commandAgentsSettings": "Àĝēńţś Śēţţĩńĝś",
"commandAgentsSettingsKeywords": "àĝēńţś, àĝēńţ śēţţĩńĝś, àĝēńţ ƥŕōƒĩĺēś, ĩńśţàĺĺēď àĝēńţś, ćĺàũďē",
"commandConfigChatKeywords": "ćōńƒĩĝ ćĥàţ, ćōńƒĩĝ ḿōďē, ćōńƒĩĝũŕē ķàńďēv, ŵōŕķƒĺōŵ ćōńƒĩĝũŕàţĩōń, ḿćƥ ćōńƒĩĝũŕàţĩōń",
+176 -1
View File
@@ -422,5 +422,180 @@
"diagnosticPreparingZip": "Ƥŕēƥàŕĩńĝ ŹĨƤ…",
"diagnosticZipDownloading": "Ŷōũŕ ďĩàĝńōśţĩć ŹĨƤ ĩś ďōŵńĺōàďĩńĝ.",
"diagnosticPartialZipDownloading": "À ƥàŕţĩàĺ ŹĨƤ ĩś ďōŵńĺōàďĩńĝ: {{warnings}}",
"diagnosticPartialZipUnavailable": "À ƥàŕţĩàĺ ďĩàĝńōśţĩć ŹĨƤ ĩś ďōŵńĺōàďĩńĝ; śōḿē ƒŕōńţēńď ĺōĝś ŵēŕē ũńàvàĩĺàƀĺē."
"diagnosticPartialZipUnavailable": "À ƥàŕţĩàĺ ďĩàĝńōśţĩć ŹĨƤ ĩś ďōŵńĺōàďĩńĝ; śōḿē ƒŕōńţēńď ĺōĝś ŵēŕē ũńàvàĩĺàƀĺē.",
"externalMcpIntro": "Ũśē ţĥĩś ĩƒ ŷōũ ŵàńţ ţō ḿàńàĝē Ķàńďēv ƒŕōḿ ćōďĩńĝ àĝēńţś ţĥàţ ŕũń <2>ōũţśĩďē</2> Ķàńďēv (ē.ĝ. Ćĺàũďē Ćōďē, Ćũŕśōŕ, ōŕ Ćōďēx ōń ŷōũŕ ĥōśţ), ōŕ ƒŕōḿ <4>ƥàśśţĥŕōũĝĥ àĝēńţś</4> ŕũńńĩńĝ ĩńśĩďē Ķàńďēv.",
"externalMcpIntroPassthrough": "Àĝēńţś ĺàũńćĥēď ĩńśĩďē Ķàńďēv ĩń ţĥēĩŕ ńōŕḿàĺ ḿōďē àĺŕēàďŷ ĥàvē ţĥē Ķàńďēv ḾĆƤ ŵĩŕēď ĩń àũţōḿàţĩćàĺĺŷ, ńō śēţũƥ ńēēďēď.",
"externalMcpEndpoints": "Ēńďƥōĩńţś",
"externalMcpEndpointsDescription": "Àvàĩĺàƀĺē ōń ţĥē śàḿē ĥōśţ àńď ƥōŕţ àś Ķàńďēv. Ũśē ĺōćàĺĥōśţ ƒōŕ śàḿē-ḿàćĥĩńē àĝēńţś, ōŕ ţĥē ŕēàćĥàƀĺē Ķàńďēv ŨŔĹ ƒōŕ ĹÀŃ, VƤŃ, àńď ŕēvēŕśē-ƥŕōxŷ ćĺĩēńţś.",
"externalMcpStreamableHttp": "Śţŕēàḿàƀĺē ĤŢŢƤ",
"externalMcpStreamableHttpHint": "Ŕēćōḿḿēńďēď ƒōŕ Ćĺàũďē Ćōďē, Ćũŕśōŕ, àńď Ćōďēx.",
"externalMcpSse": "Śēŕvēŕ-Śēńţ Ēvēńţś (ŚŚĒ)",
"externalMcpSseHint": "Ćōḿƥàţĩƀĩĺĩţŷ ţŕàńśƥōŕţ ƒōŕ ōĺďēŕ ḾĆƤ ćĺĩēńţś.",
"externalMcpAvailableTools": "Àvàĩĺàƀĺē ţōōĺś",
"externalMcpToolCount_one": "{{count}} ţōōĺ",
"externalMcpToolCount_other": "{{count}} ţōōĺś",
"externalMcpCategoryCount_one": "{{count}} ćàţēĝōŕŷ",
"externalMcpCategoryCount_other": "{{count}} ćàţēĝōŕĩēś",
"externalMcpToolsSummary": "{{tools}} àćŕōśś {{categories}} — ēxƥàńď ţō ƥŕēvĩēŵ ŵĥàţ ēxţēŕńàĺ àĝēńţś ćàń ďō.",
"externalMcpSnippets": "Ćōńƒĩĝũŕàţĩōń śńĩƥƥēţś",
"externalMcpSnippetsDescription": "Ƥàśţē ţĥēśē ĩńţō ŷōũŕ àĝēńţ'ś ĝĺōƀàĺ ḾĆƤ ćōńƒĩĝũŕàţĩōń.",
"externalMcpConfigPathOrCli": "{{path}} — ōŕ ŕũń ţĥē ĆĹĨ ćōḿḿàńď ƀēĺōŵ",
"externalMcpOpenCodePaths": "{{projectPath}} (ƥŕōĵēćţ) ōŕ {{globalPath}} (ĝĺōƀàĺ)",
"externalMcpOneLiner": "Ōńē-ĺĩńēŕ (ŵŕĩţēś ţō {{path}})",
"externalMcpCopied": "Ćōƥĩēď",
"externalMcpCopyUrl": "Ćōƥŷ ŨŔĹ",
"externalMcpCopyToClipboard": "Ćōƥŷ ţō ćĺĩƥƀōàŕď",
"externalMcpGroupWorkspaces": "Ŵōŕķśƥàćēś & Ŵōŕķƒĺōŵś",
"externalMcpGroupWorkspacesDescription": "Ďĩśćōvēŕ ŵōŕķśƥàćēś àńď ĆŔŨĎ ŵōŕķƒĺōŵś.",
"externalMcpGroupWorkflowSteps": "Ŵōŕķƒĺōŵ śţēƥś (ćōĺũḿńś)",
"externalMcpGroupWorkflowStepsDescription": "Ḿàńàĝē ţĥē ćōĺũḿńś ţĥàţ ḿàķē ũƥ à ŵōŕķƒĺōŵ.",
"externalMcpGroupAgents": "Àĝēńţś",
"externalMcpGroupAgentsDescription": "Ĩńśƥēćţ àńď ćōńƒĩĝũŕē ţĥē àĝēńţ ćàţàĺōĝ.",
"externalMcpGroupAgentProfiles": "Àĝēńţ ƥŕōƒĩĺēś & ḾĆƤ ćōńƒĩĝ",
"externalMcpGroupAgentProfilesDescription": "Ḿàńàĝē ƥŕōƒĩĺē-ĺēvēĺ ḾĆƤ śēŕvēŕ ćōńƒĩĝũŕàţĩōń.",
"externalMcpGroupExecutors": "Ēxēćũţōŕś",
"externalMcpGroupExecutorsDescription": "ĆŔŨĎ ēxēćũţōŕ ƥŕōƒĩĺēś (Ďōćķēŕ, śţàńďàĺōńē, Śƥŕĩţēś...).",
"externalMcpGroupTasks": "Ţàśķś",
"externalMcpGroupTasksDescription": "Ĺĩśţ, ḿōvē, àŕćĥĩvē, àńď ũƥďàţē ţàśķ śţàţē.",
"externalMcpGroupTaskCreation": "Ţàśķ ćŕēàţĩōń",
"externalMcpGroupTaskCreationDescription": "Śƥàŵń ńēŵ ţōƥ-ĺēvēĺ ţàśķś ōŕ śũƀţàśķś ƒŕōḿ ēxţēŕńàĺ àĝēńţś.",
"externalMcpToolListWorkspaces": "Ĺĩśţ àĺĺ ŵōŕķśƥàćēś.",
"externalMcpToolListWorkflows": "Ĺĩśţ ŵōŕķƒĺōŵś ĩń à ŵōŕķśƥàćē.",
"externalMcpToolCreateWorkflow": "Ćŕēàţē à ŵōŕķƒĺōŵ.",
"externalMcpToolUpdateWorkflow": "Ŕēńàḿē ōŕ ũƥďàţē à ŵōŕķƒĺōŵ.",
"externalMcpToolDeleteWorkflow": "Ďēĺēţē à ŵōŕķƒĺōŵ àńď àĺĺ ĩţś śţēƥś (ďēśţŕũćţĩvē).",
"externalMcpToolListWorkflowSteps": "Ĺĩśţ àĺĺ śţēƥś ĩń à ŵōŕķƒĺōŵ.",
"externalMcpToolCreateWorkflowStep": "Àďď à ńēŵ ćōĺũḿń ŵĩţĥ ƥŕōḿƥţ, ćōĺōŕ, àńď ēvēńţ ĥōōķś.",
"externalMcpToolUpdateWorkflowStep": "Ēďĩţ à śţēƥ'ś śēţţĩńĝś ōŕ ēvēńţś.",
"externalMcpToolDeleteWorkflowStep": "Ďēĺēţē à śţēƥ (ďēśţŕũćţĩvē).",
"externalMcpToolReorderWorkflowSteps": "Śēţ ţĥē ƒũĺĺ ōŕďēŕēď ĺĩśţ ōƒ śţēƥ ĨĎś.",
"externalMcpToolListAgents": "Ĺĩśţ ćōńƒĩĝũŕēď àĝēńţś àńď ţĥēĩŕ ƥŕōƒĩĺēś.",
"externalMcpToolUpdateAgent": "Ţōĝĝĺē ḾĆƤ śũƥƥōŕţ ōŕ śēţ ţĥē ćōńƒĩĝ ƥàţĥ.",
"externalMcpToolCreateAgentProfile": "Ćŕēàţē à ńēŵ àĝēńţ ƥŕōƒĩĺē (ḿōďēĺ, àũţō-àƥƥŕōvē).",
"externalMcpToolDeleteAgentProfile": "Ďēĺēţē àń àĝēńţ ƥŕōƒĩĺē.",
"externalMcpToolListAgentProfiles": "Ĺĩśţ ƥŕōƒĩĺēś ƒōŕ àń àĝēńţ.",
"externalMcpToolUpdateAgentProfile": "Ũƥďàţē ńàḿē, ḿōďēĺ, ōŕ àũţō-àƥƥŕōvē.",
"externalMcpToolGetMcpConfig": "Ŕēàď ţĥē ḾĆƤ śēŕvēŕ ḿàƥ ƒōŕ à ƥŕōƒĩĺē.",
"externalMcpToolUpdateMcpConfig": "Ŕēƥĺàćē ţĥē ḾĆƤ śēŕvēŕ ḿàƥ ƒōŕ à ƥŕōƒĩĺē.",
"externalMcpToolListExecutors": "Ĺĩśţ àĺĺ ēxēćũţōŕś.",
"externalMcpToolListExecutorProfiles": "Ĺĩśţ ƥŕōƒĩĺēś ƒōŕ àń ēxēćũţōŕ.",
"externalMcpToolCreateExecutorProfile": "Ćŕēàţē à ƥŕōƒĩĺē ŵĩţĥ ćōńƒĩĝ, ƥŕēƥàŕē/ćĺēàńũƥ śćŕĩƥţś.",
"externalMcpToolUpdateExecutorProfile": "Ũƥďàţē àń ēxēćũţōŕ ƥŕōƒĩĺē.",
"externalMcpToolDeleteExecutorProfile": "Ďēĺēţē àń ēxēćũţōŕ ƥŕōƒĩĺē.",
"externalMcpToolListTasks": "Ĺĩśţ ţàśķś ĩń à ŵōŕķƒĺōŵ.",
"externalMcpToolMoveTask": "Ḿōvē à ţàśķ ţō à ďĩƒƒēŕēńţ śţēƥ ōŕ ƥōśĩţĩōń.",
"externalMcpToolDeleteTask": "Ďēĺēţē à ţàśķ ƥēŕḿàńēńţĺŷ.",
"externalMcpToolArchiveTask": "Àŕćĥĩvē à ţàśķ.",
"externalMcpToolUpdateTaskState": "Śēţ ţàśķ śţàţē: {{states}}.",
"externalMcpToolCreateTask": "Ćŕēàţē à ţōƥ-ĺēvēĺ ţàśķ ōŕ à śũƀţàśķ ũńďēŕ àń ēxƥĺĩćĩţ {{parentIdParam}}.",
"promptsPageDescription": "Ćŕēàţē ŕēũśàƀĺē ƥŕōḿƥţ śńĩƥƥēţś ƒōŕ ţĥē ćĥàţ ĩńƥũţ.",
"promptsInvalidReason": "Ƥŕōḿƥţ ńàḿē àńď ćōńţēńţ àŕē ŕēqũĩŕēď.",
"promptMentionHelp": "Ũśē <1>{{token}}</1> ĩń ţĥē ćĥàţ ĩńƥũţ ţō ĩńśēŕţ à ƥŕōḿƥţ’ś ćōńţēńţ. Ƥŕōḿƥţś àŕē ḿàţćĥēď ƀŷ ńàḿē àńď ēxƥàńďēď ĩń ƥĺàćē.",
"promptsCustomHeading": "Ćũśţōḿ ƥŕōḿƥţś",
"promptAdd": "Àďď ƥŕōḿƥţ",
"promptNamePlaceholder": "Ƥŕōḿƥţ ńàḿē",
"promptContentPlaceholder": "Ƥŕōḿƥţ ćōńţēńţ",
"promptsLoading": "Ĺōàďĩńĝ ƥŕōḿƥţś…",
"promptsEmpty": "Ńō ƥŕōḿƥţś ŷēţ. Àďď ŷōũŕ ƒĩŕśţ ƥŕōḿƥţ ţō ĝēţ śţàŕţēď.",
"promptDelete": "Ďēĺēţē ƥŕōḿƥţ",
"promptDeleteThisPrompt": "ţĥĩś ƥŕōḿƥţ",
"promptDeleteDescription": "Ţĥĩś ŵĩĺĺ ƥēŕḿàńēńţĺŷ ŕēḿōvē <2>{{name}}</2>. Ţĥĩś àćţĩōń ćàńńōţ ƀē ũńďōńē.",
"promptCreateFailed": "Ćōũĺďń'ţ ćŕēàţē ƥŕōḿƥţ",
"promptSaveFailed": "Ćōũĺďń'ţ śàvē ƥŕōḿƥţ",
"promptDeleteFailed": "Ćōũĺďń'ţ ďēĺēţē ƥŕōḿƥţ",
"voiceModePageDescription": "Ćōńƒĩĝũŕē ĥōŵ vōĩćē ĩńƥũţ ŵōŕķś ōń ţĥē ćĥàţ ćōḿƥōśēŕ.",
"voiceEnableTitle": "Ēńàƀĺē Vōĩćē Ĩńƥũţ",
"voiceEnableLabel": "Śĥōŵ ţĥē ḿĩć ƀũţţōń ōń ţĥē ćĥàţ ćōḿƥōśēŕ",
"voiceEnableDescription": "Ŵĥēń ōƒƒ, ţĥē vōĩćē ƀũţţōń ĩś ĥĩďďēń ēńţĩŕēĺŷ àńď ńō vōĩćē-ŕēĺàţēď ćōďē ŕũńś. Śēţţĩńĝś ƀēĺōŵ àŕē ƥŕēśēŕvēď àńď ŕē-àƥƥĺĩēď ŵĥēń ŷōũ ţũŕń ĩţ ƀàćķ ōń.",
"voiceUnavailableTitle": "Vōĩćē ĩńƥũţ ĩś ũńàvàĩĺàƀĺē ĩń ţĥĩś ƀŕōŵśēŕ.",
"voiceUnavailableInsecure": "Ḿĩćŕōƥĥōńē ÀƤĨś ŕēqũĩŕē ĤŢŢƤŚ ōŕ ĺōćàĺĥōśţ. Ŷōũ àƥƥēàŕ ţō ƀē ōń àń ĩńśēćũŕē ĤŢŢƤ ōŕĩĝĩń — ĺōàď ţĥĩś ƥàĝē ōvēŕ ĤŢŢƤŚ (ōŕ ĥţţƥ://ĺōćàĺĥōśţ) ţō ēńàƀĺē vōĩćē ĩńƥũţ.",
"voiceUnavailableUnsupported": "Ŷōũŕ ƀŕōŵśēŕ ďōēśń'ţ ēxƥōśē ēĩţĥēŕ ţĥē Ŵēƀ Śƥēēćĥ ÀƤĨ ōŕ ḾēďĩàŔēćōŕďēŕ. Ţŕŷ Ćĥŕōḿē, Ēďĝē, ōŕ Śàƒàŕĩ 14.5+.",
"voiceEngineTitle": "Ţŕàńśćŕĩƥţĩōń Ēńĝĩńē",
"voiceEngineUnsupported": "Ńōţ śũƥƥōŕţēď ĩń ţĥĩś ƀŕōŵśēŕ.",
"voiceEngineAuto": "Àũţōḿàţĩć",
"voiceEngineAutoDescription": "Ũśē ţĥē ƀēśţ ēńĝĩńē àvàĩĺàƀĺē ĩń ţĥĩś ƀŕōŵśēŕ.",
"voiceEngineWebSpeech": "Ŵēƀ Śƥēēćĥ (ĩń-ƀŕōŵśēŕ)",
"voiceEngineWebSpeechDescription": "Ƒŕēē, ĩńśţàńţ, ũśēś ŷōũŕ ƀŕōŵśēŕ'ś ƀũĩĺţ-ĩń śƥēēćĥ ŕēćōĝńĩţĩōń.",
"voiceEngineWhisperWeb": "Ŵĥĩśƥēŕ Ŵēƀ (ƥŕĩvàţē, ĩń-ƀŕōŵśēŕ)",
"voiceEngineWhisperWebDescription": "Ŕũńś ŌƥēńÀĨ Ŵĥĩśƥēŕ ēńţĩŕēĺŷ ōń ţĥĩś ďēvĩćē. Ƒĩŕśţ ũśē ďōŵńĺōàďś ţĥē ḿōďēĺ (40–240 ḾƁ).",
"voiceEngineWhisperServer": "Ŵĥĩśƥēŕ Śēŕvēŕ (ŌƥēńÀĨ)",
"voiceEngineWhisperServerDescription": "Śēńďś àũďĩō ţō ţĥē ƀàćķēńď, ŵĥĩćĥ ƒōŕŵàŕďś ĩţ ţō ŌƥēńÀĨ'ś Ŵĥĩśƥēŕ ÀƤĨ. Ŕēqũĩŕēś à ćōńƒĩĝũŕēď ÀƤĨ ķēŷ ōń ţĥē śēŕvēŕ.",
"voiceEngineBadgeLocal": "Ĺōćàĺ",
"voiceEngineBadgeServer": "Śēŕvēŕ",
"voiceBehavior": "Ɓēĥàvĩōŕ",
"voiceLanguagesGroup": "Ĺàńĝũàĝēś",
"voiceLanguageHint": "Ŕēćōĝńĩţĩōń qũàĺĩţŷ ďŕōƥś śĥàŕƥĺŷ ŵĥēń ţĥē ĺàńĝũàĝē ďōēśń'ţ ḿàţćĥ ŵĥàţ ŷōũ'ŕē śƥēàķĩńĝ.",
"voiceLanguageAuto": "Àũţō-ďēţēćţ (ƀŕōŵśēŕ ĺàńĝũàĝē)",
"voiceLanguageEnUs": "Ēńĝĺĩśĥ (Ũńĩţēď Śţàţēś)",
"voiceLanguageEnGb": "Ēńĝĺĩśĥ (Ũńĩţēď Ķĩńĝďōḿ)",
"voiceLanguageEsEs": "Śƥàńĩśĥ (Śƥàĩń)",
"voiceLanguageEsMx": "Śƥàńĩśĥ (Ḿēxĩćō)",
"voiceLanguagePtPt": "Ƥōŕţũĝũēśē (Ƥōŕţũĝàĺ)",
"voiceLanguagePtBr": "Ƥōŕţũĝũēśē (Ɓŕàźĩĺ)",
"voiceLanguageFrFr": "Ƒŕēńćĥ",
"voiceLanguageDeDe": "Ĝēŕḿàń",
"voiceLanguageItIt": "Ĩţàĺĩàń",
"voiceLanguageJaJp": "Ĵàƥàńēśē",
"voiceLanguageZhCn": "Ćĥĩńēśē (Śĩḿƥĺĩƒĩēď)",
"voiceActivation": "Àćţĩvàţĩōń",
"voiceActivationToggle": "Ćĺĩćķ ţō śţàŕţ / śţōƥ",
"voiceActivationHold": "Ĥōĺď ţō ţàĺķ",
"voiceAutoSend": "Àũţō-śēńď àƒţēŕ ţŕàńśćŕĩƥţĩōń",
"voiceAutoSendDescription": "Śũƀḿĩţ ţĥē ḿēśśàĝē àś śōōń àś ţĥē ţŕàńśćŕĩƥţ ĩś ĩńśēŕţēď.",
"voiceWhisperModelTitle": "Ŵĥĩśƥēŕ Ŵēƀ Ḿōďēĺ",
"voiceWhisperModelHint": "Ţĥē ḿōďēĺ ďōŵńĺōàďś ōń ƒĩŕśţ ũśē àńď ĩś ćàćĥēď ĩń ŷōũŕ ƀŕōŵśēŕ. Śŵĩţćĥĩńĝ ḿōďēĺś ţŕĩĝĝēŕś àńōţĥēŕ ďōŵńĺōàď ńēxţ ţĩḿē ŷōũ ŕēćōŕď.",
"voiceWhisperTiny": "Ţĩńŷ",
"voiceWhisperTinyHint": "Ƒàśţēśţ, ĺōŵēŕ àććũŕàćŷ",
"voiceWhisperBase": "Ɓàśē",
"voiceWhisperBaseHint": "Ɓàĺàńćēď ďēƒàũĺţ",
"voiceWhisperSmall": "Śḿàĺĺ",
"voiceWhisperSmallHint": "Ɓēśţ àććũŕàćŷ, śĺōŵēŕ ĺōàď",
"voiceShortcutTitle": "{{shortcut}} Śĥōŕţćũţ",
"voiceShortcutHint": "Ćĺĩćķ ţĥē śĥōŕţćũţ ţō ŕēćōŕď à ńēŵ ķēŷ ćōḿƀĩńàţĩōń. Àĺĺ ķēŷƀōàŕď śĥōŕţćũţś ćàń àĺśō ƀē ēďĩţēď ĩń Ĝēńēŕàĺ Śēţţĩńĝś.",
"utilityAgentsPageDescription": "Ōńē-śĥōţ ÀĨ ĥēĺƥēŕś ƒōŕ ćōḿḿĩţś, ƤŔś, àńď ƥŕōḿƥţś.",
"model": "Ḿōďēĺ",
"utilityDefaultModelTitle": "Ďēƒàũĺţ ũţĩĺĩţŷ àĝēńţ ḿōďēĺ",
"utilityDefaultModelDescription": "Śēĺēćţ ţĥē ďēƒàũĺţ ḿōďēĺ ũśēď ƀŷ àĺĺ ƀũĩĺţ-ĩń ũţĩĺĩţŷ àćţĩōńś.",
"utilityDefaultModelAriaLabel": "Ďēƒàũĺţ ũţĩĺĩţŷ ḿōďēĺ śēţţĩńĝś",
"utilitySelectAgent": "Śēĺēćţ àĝēńţ...",
"utilitySelectModel": "Śēĺēćţ ḿōďēĺ...",
"utilityActionsTitle": "Àćţĩōńś",
"utilityDefaultWithModel": "Ďēƒàũĺţ ({{model}})",
"utilityModelNotConfigured": "Ńōţ ćōńƒĩĝũŕēď",
"utilityCustomAgentsTitle": "Ćũśţōḿ ũţĩĺĩţŷ àĝēńţś",
"utilityCustomAgentsDescription": "Ćŕēàţē ŷōũŕ ōŵń ũţĩĺĩţŷ àĝēńţś ŵĩţĥ ćũśţōḿ ƥŕōḿƥţś.",
"utilityCustomAgentsEmpty": "Ńō ćũśţōḿ ũţĩĺĩţŷ àĝēńţś.",
"utilityAddCustomAgent": "Àďď",
"utilityAgentDialogCreateTitle": "Ćŕēàţē Ũţĩĺĩţŷ Àĝēńţ",
"utilityAgentDialogEditTitle": "Ēďĩţ Ũţĩĺĩţŷ Àĝēńţ",
"utilityAgentDialogCreate": "Ćŕēàţē Àĝēńţ",
"utilityAgentDialogSave": "Śàvē Ćĥàńĝēś",
"utilityAgentNamePlaceholder": "ē.ĝ., ćōḿḿĩţ-ḿēśśàĝē",
"utilityAgentDescriptionLabel": "Ďēśćŕĩƥţĩōń",
"utilityAgentDescriptionPlaceholder": "Ɓŕĩēƒ ďēśćŕĩƥţĩōń ōƒ ŵĥàţ ţĥĩś àĝēńţ ďōēś",
"utilityAgentPromptTemplate": "Ƥŕōḿƥţ Ţēḿƥĺàţē",
"utilityAgentPromptHint": "Ţŷƥē <1>{{sigil}}</1> ţō śēē àvàĩĺàƀĺē vàŕĩàƀĺēś ŵĩţĥ àũţōćōḿƥĺēţē",
"configChatAgentTitle": "Ćōńƒĩĝũŕàţĩōń Ćĥàţ Àĝēńţ",
"configChatAgentDescription": "Ćĥōōśē ŵĥĩćĥ àĝēńţ ƥŕōƒĩĺē ţō ũśē ƒōŕ ţĥē Ćōńƒĩĝũŕàţĩōń Ćĥàţ. Ţĥĩś àĝēńţ ćàń ḿàńàĝē ŷōũŕ ŵōŕķƒĺōŵś, àĝēńţ ƥŕōƒĩĺēś, àńď ḾĆƤ ćōńƒĩĝũŕàţĩōń.",
"configChatAgentPlaceholder": "Ćĥōōśē àń àĝēńţ ƥŕōƒĩĺē...",
"configChatAgentNoDefault": "Ńō ďēƒàũĺţ",
"inferenceAgentProbing": "Śēţţĩńĝ ũƥ {{name}}…",
"inferenceAgentAuthRequired": "Śĩĝń ĩń ţō {{name}} ţō ĺōàď ḿōďēĺś.",
"inferenceAgentNotInstalled": "{{name}} ĆĹĨ ĩś ńōţ ĩńśţàĺĺēď ōń ţĥĩś ḿàćĥĩńē.",
"inferenceAgentNotConfigured": "{{name}} ĩś ńōţ ćōńƒĩĝũŕēď ƒōŕ ĩńƒēŕēńćē.",
"inferenceAgentProbeFailed": "Ƥŕōƀē ƒàĩĺēď ƒōŕ {{name}}.",
"inferenceAgentNoModels": "{{name}} àďvēŕţĩśēď ńō ḿōďēĺś.",
"inferenceAgentUnavailable": "{{name}} ĩś ńō ĺōńĝēŕ àvàĩĺàƀĺē.",
"inferenceAgentThisAgent": "ţĥĩś àĝēńţ",
"inferenceAgentRefresh": "Ŕēƒŕēśĥ",
"inferenceAgentRefreshing": "Ŕēƒŕēśĥĩńĝ…",
"changelogPageDescription": "Vĩēŵ àĺĺ ŕēĺēàśēś àńď ḿàńàĝē ńōţĩƒĩćàţĩōń ƥŕēƒēŕēńćēś",
"changelogNotificationsDescription": "Ćōńţŕōĺ ţĥē ŕēĺēàśē ńōţēś ńōţĩƒĩćàţĩōń ĩń ţĥē ţōƥƀàŕ",
"changelogReleaseHistory": "Ŕēĺēàśē Ĥĩśţōŕŷ",
"changelogReleaseHistoryDescription": "Àĺĺ vēŕśĩōńś àńď ţĥēĩŕ ŕēĺēàśē ńōţēś",
"changelogTopbarTitle": "Ţōƥƀàŕ Ŕēĺēàśē Ńōţĩƒĩćàţĩōń",
"changelogTopbarLabel": "Śĥōŵ ńōţĩƒĩćàţĩōń ƒōŕ ńēŵ ŕēĺēàśēś",
"changelogTopbarDescription": "Ŵĥēń ēńàƀĺēď, à śƥàŕķĺē ĩćōń àƥƥēàŕś ĩń ţĥē ţōƥƀàŕ ŵĥēń à ńēŵ vēŕśĩōń ĩś ŕēĺēàśēď",
"changelogResetSeenLabel": "Ŕēśēţ śēēń ŕēĺēàśēś",
"changelogResetSeenDescription": "Ćĺēàŕ ŷōũŕ ĺàśţ śēēń vēŕśĩōń śō ţĥē ţōƥƀàŕ ńōţĩƒĩćàţĩōń àƥƥēàŕś àĝàĩń"
}