From 59b92442cbb989db249be2d9c8281b0b0d10ce68 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Salavisa?= Date: Mon, 3 Aug 2026 21:45:37 +0200 Subject: [PATCH] feat(i18n): localize External MCP, Prompts, Voice Mode and Utility Agents (#2218) Co-authored-by: Kandev Agent --- .../settings/changelog-notification-card.tsx | 16 +- .../settings/changelog-settings.tsx | 15 +- .../settings/config-chat-agent-section.tsx | 13 +- .../settings/external-mcp-settings.tsx | 188 +++++++++++------- .../settings/inference-agent-status.tsx | 35 ++-- .../components/settings/model-combobox.tsx | 75 ++++--- .../components/settings/prompts-settings.tsx | 149 ++++++++------ .../settings/utility-agent-dialog.tsx | 42 ++-- .../settings/utility-agents-section.tsx | 6 +- .../components/settings/utility-sections.tsx | 45 +++-- .../settings/voice-mode-settings.tsx | 184 +++++++++-------- .../e2e/tests/i18n/pseudo-coverage.spec.ts | 29 +++ apps/web/eslint.i18n.options.mjs | 145 ++++++++++++++ .../lib/settings/external-mcp-tools.test.ts | 50 ++++- apps/web/lib/settings/external-mcp-tools.ts | 148 +++++++++----- apps/web/src/locales/en/agents.json | 5 +- apps/web/src/locales/en/common.json | 1 + apps/web/src/locales/en/settings.json | 177 ++++++++++++++++- apps/web/src/locales/pseudo/agents.json | 5 +- apps/web/src/locales/pseudo/common.json | 1 + apps/web/src/locales/pseudo/settings.json | 177 ++++++++++++++++- 21 files changed, 1152 insertions(+), 354 deletions(-) diff --git a/apps/web/components/settings/changelog-notification-card.tsx b/apps/web/components/settings/changelog-notification-card.tsx index 106ca5859f..11ac7b4d96 100644 --- a/apps/web/components/settings/changelog-notification-card.tsx +++ b/apps/web/components/settings/changelog-notification-card.tsx @@ -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 ( - Topbar Release Notification + {t("settings:changelogTopbarTitle")}
- +

- When enabled, a sparkle icon appears in the topbar when a new version is released + {t("settings:changelogTopbarDescription")}

- +

- Clear your last seen version so the topbar notification appears again + {t("settings:changelogResetSeenDescription")}

diff --git a/apps/web/components/settings/changelog-settings.tsx b/apps/web/components/settings/changelog-settings.tsx index e6575a8b11..9fc2f74f96 100644 --- a/apps/web/components/settings/changelog-settings.tsx +++ b/apps/web/components/settings/changelog-settings.tsx @@ -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 (
-

Changelog

+

{t("common:changelog")}

- View all releases and manage notification preferences + {t("settings:changelogPageDescription")}

@@ -20,15 +22,18 @@ export function ChangelogSettings() { } - title="Notifications" - description="Control the release notes notification in the topbar" + title={t("settings:notifications")} + description={t("settings:changelogNotificationsDescription")} > - +
diff --git a/apps/web/components/settings/config-chat-agent-section.tsx b/apps/web/components/settings/config-chat-agent-section.tsx index 5b520be1af..2d7956e81f 100644 --- a/apps/web/components/settings/config-chat-agent-section.tsx +++ b/apps/web/components/settings/config-chat-agent-section.tsx @@ -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() { -

Configuration Chat Agent

+

{t("settings:configChatAgentTitle")}

-

- Choose which agent profile to use for the Configuration Chat. This agent can manage your - workflows, agent profiles, and MCP configuration. -

+

{t("settings:configChatAgentDescription")}

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