feat(i18n): localize Configuration Chat and the last shared aria-labels (#2223)
Co-authored-by: Kandev Agent <agent@kandev.dev> Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
import { useTranslation } from "react-i18next";
|
||||
|
||||
import { AppSidebar } from "@/components/app-sidebar/app-sidebar";
|
||||
import { AppStatusSurfaceProvider } from "@/components/app-status-bar/app-status-surface-provider";
|
||||
import { CommandPanel } from "@/components/command-panel";
|
||||
@@ -24,6 +26,26 @@ type AppShellProps = {
|
||||
children: React.ReactNode;
|
||||
};
|
||||
|
||||
/**
|
||||
* sonner names its toast region `Notifications alt+T` by default — copy a
|
||||
* screen-reader user hears on every screen, and the last un-migrated
|
||||
* `aria-label` the pseudo-coverage oracle reported.
|
||||
*
|
||||
* Deliberately its own component rather than a `t()` call in `AppShell`:
|
||||
* `<I18nProvider>` is mounted BY `AppShell`, so `AppShell`'s own render runs
|
||||
* outside the provider and would not re-render on a locale switch.
|
||||
*/
|
||||
function AppToaster() {
|
||||
const { t } = useTranslation();
|
||||
return (
|
||||
<SonnerToaster
|
||||
richColors
|
||||
position="top-right"
|
||||
containerAriaLabel={t("common:toastRegionLabel")}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
export function AppShell({ children }: AppShellProps) {
|
||||
return (
|
||||
<I18nProvider>
|
||||
@@ -31,7 +53,7 @@ export function AppShell({ children }: AppShellProps) {
|
||||
<DiffWorkerPoolProvider>
|
||||
<TooltipProvider>
|
||||
<ToastProvider>
|
||||
<SonnerToaster richColors position="top-right" />
|
||||
<AppToaster />
|
||||
<SessionFailureToastBridge />
|
||||
<TaskDeletedToastBridge />
|
||||
<UpdateAvailableToastBridge />
|
||||
|
||||
@@ -7,8 +7,8 @@
|
||||
"changelog": "Changelog",
|
||||
"commandAgentsSettings": "Agents Settings",
|
||||
"commandAgentsSettingsKeywords": "agents, agent settings, agent profiles, installed agents, claude",
|
||||
"breadcrumb": "breadcrumb",
|
||||
"commandConfigChatKeywords": "config chat, config mode, configure kandev, workflow configuration, mcp configuration",
|
||||
"commandConfigurationChat": "Configuration Chat",
|
||||
"commandExecutorsSettings": "Executors Settings",
|
||||
"commandExecutorsSettingsKeywords": "executors, executor profiles, execution environment, environment variables, runtime, compute",
|
||||
"commandGoToAllTasks": "Go to All Tasks",
|
||||
@@ -34,6 +34,7 @@
|
||||
"commandThemeKeywords": "theme, color theme, appearance",
|
||||
"commandWorkspaceSettings": "Workspace Settings",
|
||||
"commandWorkspaceSettingsKeywords": "workspace, workspaces",
|
||||
"configurationChat": "Configuration Chat",
|
||||
"contextCompactionCountHelp": "Kandev infers this count from observed context usage drops. Missing samples or provider resets can make it approximate.",
|
||||
"contextCompactions": "Compactions",
|
||||
"createAWorkspaceToConfigureThisIntegration": "Create a workspace to configure this integration.",
|
||||
@@ -77,6 +78,7 @@
|
||||
"taskUnavailable": "Task unavailable",
|
||||
"taskUnavailableDescription": "We could not load this task. It may have been deleted or you may not have access.",
|
||||
"title": "Title",
|
||||
"toastRegionLabel": "Notifications",
|
||||
"unsavedChanges": "Unsaved changes",
|
||||
"workspace": "Workspace",
|
||||
"workspaces": "Workspaces",
|
||||
|
||||
@@ -0,0 +1,21 @@
|
||||
{
|
||||
"agentProfileHeading": "Configuration agent profile",
|
||||
"agentProfileHelp": "Choose the agent with access to configuration tools. This becomes the workspace default.",
|
||||
"closePanel": "Close configuration chat",
|
||||
"dialogDescription": "Ask an agent to manage workflows, agent profiles, and MCP configuration.",
|
||||
"noAgentProfiles": "No agent profiles are available. Create one in Agent settings first.",
|
||||
"openInQuickChat": "Open in Quick Chat",
|
||||
"profileUnavailable": "The selected agent profile is not available yet. Try again shortly.",
|
||||
"promptHeading": "What would you like to configure?",
|
||||
"promptPlaceholder": "Ask anything about your configuration...",
|
||||
"startChat": "Start chat",
|
||||
"startChatAria": "Start configuration chat",
|
||||
"startingChat": "Starting chat...",
|
||||
"suggestionAddReviewStep": "Add a 'Code Review' step to my workflow",
|
||||
"suggestionCreateProfile": "Create a new agent profile with auto-approve enabled",
|
||||
"suggestionShowWorkflow": "Show me the current workflow configuration",
|
||||
"suggestionUpdateMcp": "Update the MCP servers for the default agent profile",
|
||||
"tagline": "Configure Kandev with natural language",
|
||||
"tryAsking": "Try asking",
|
||||
"unknownError": "Unknown error"
|
||||
}
|
||||
@@ -7,8 +7,8 @@
|
||||
"changelog": "Ćĥàńĝēĺōĝ",
|
||||
"commandAgentsSettings": "Àĝēńţś Śēţţĩńĝś",
|
||||
"commandAgentsSettingsKeywords": "àĝēńţś, àĝēńţ śēţţĩńĝś, àĝēńţ ƥŕōƒĩĺēś, ĩńśţàĺĺēď àĝēńţś, ćĺàũďē",
|
||||
"breadcrumb": "ƀŕēàďćŕũḿƀ",
|
||||
"commandConfigChatKeywords": "ćōńƒĩĝ ćĥàţ, ćōńƒĩĝ ḿōďē, ćōńƒĩĝũŕē ķàńďēv, ŵōŕķƒĺōŵ ćōńƒĩĝũŕàţĩōń, ḿćƥ ćōńƒĩĝũŕàţĩōń",
|
||||
"commandConfigurationChat": "Ćōńƒĩĝũŕàţĩōń Ćĥàţ",
|
||||
"commandExecutorsSettings": "Ēxēćũţōŕś Śēţţĩńĝś",
|
||||
"commandExecutorsSettingsKeywords": "ēxēćũţōŕś, ēxēćũţōŕ ƥŕōƒĩĺēś, ēxēćũţĩōń ēńvĩŕōńḿēńţ, ēńvĩŕōńḿēńţ vàŕĩàƀĺēś, ŕũńţĩḿē, ćōḿƥũţē",
|
||||
"commandGoToAllTasks": "Ĝō ţō Àĺĺ Ţàśķś",
|
||||
@@ -34,6 +34,7 @@
|
||||
"commandThemeKeywords": "ţĥēḿē, ćōĺōŕ ţĥēḿē, àƥƥēàŕàńćē",
|
||||
"commandWorkspaceSettings": "Ŵōŕķśƥàćē Śēţţĩńĝś",
|
||||
"commandWorkspaceSettingsKeywords": "ŵōŕķśƥàćē, ŵōŕķśƥàćēś",
|
||||
"configurationChat": "Ćōńƒĩĝũŕàţĩōń Ćĥàţ",
|
||||
"contextCompactionCountHelp": "Ķàńďēv ĩńƒēŕś ţĥĩś ćōũńţ ƒŕōḿ ōƀśēŕvēď ćōńţēxţ ũśàĝē ďŕōƥś. Ḿĩśśĩńĝ śàḿƥĺēś ōŕ ƥŕōvĩďēŕ ŕēśēţś ćàń ḿàķē ĩţ àƥƥŕōxĩḿàţē.",
|
||||
"contextCompactions": "Ćōḿƥàćţĩōńś",
|
||||
"createAWorkspaceToConfigureThisIntegration": "Ćŕēàţē à ŵōŕķśƥàćē ţō ćōńƒĩĝũŕē ţĥĩś ĩńţēĝŕàţĩōń.",
|
||||
@@ -77,6 +78,7 @@
|
||||
"taskUnavailable": "Ţàśķ ũńàvàĩĺàƀĺē",
|
||||
"taskUnavailableDescription": "Ŵē ćōũĺď ńōţ ĺōàď ţĥĩś ţàśķ. Ĩţ ḿàŷ ĥàvē ƀēēń ďēĺēţēď ōŕ ŷōũ ḿàŷ ńōţ ĥàvē àććēśś.",
|
||||
"title": "Ţĩţĺē",
|
||||
"toastRegionLabel": "Ńōţĩƒĩćàţĩōńś",
|
||||
"unsavedChanges": "Ũńśàvēď ćĥàńĝēś",
|
||||
"workspace": "Ŵōŕķśƥàćē",
|
||||
"workspaces": "Ŵōŕķśƥàćēś",
|
||||
|
||||
@@ -0,0 +1,21 @@
|
||||
{
|
||||
"agentProfileHeading": "Ćōńƒĩĝũŕàţĩōń àĝēńţ ƥŕōƒĩĺē",
|
||||
"agentProfileHelp": "Ćĥōōśē ţĥē àĝēńţ ŵĩţĥ àććēśś ţō ćōńƒĩĝũŕàţĩōń ţōōĺś. Ţĥĩś ƀēćōḿēś ţĥē ŵōŕķśƥàćē ďēƒàũĺţ.",
|
||||
"closePanel": "Ćĺōśē ćōńƒĩĝũŕàţĩōń ćĥàţ",
|
||||
"dialogDescription": "Àśķ àń àĝēńţ ţō ḿàńàĝē ŵōŕķƒĺōŵś, àĝēńţ ƥŕōƒĩĺēś, àńď ḾĆƤ ćōńƒĩĝũŕàţĩōń.",
|
||||
"noAgentProfiles": "Ńō àĝēńţ ƥŕōƒĩĺēś àŕē àvàĩĺàƀĺē. Ćŕēàţē ōńē ĩń Àĝēńţ śēţţĩńĝś ƒĩŕśţ.",
|
||||
"openInQuickChat": "Ōƥēń ĩń Qũĩćķ Ćĥàţ",
|
||||
"profileUnavailable": "Ţĥē śēĺēćţēď àĝēńţ ƥŕōƒĩĺē ĩś ńōţ àvàĩĺàƀĺē ŷēţ. Ţŕŷ àĝàĩń śĥōŕţĺŷ.",
|
||||
"promptHeading": "Ŵĥàţ ŵōũĺď ŷōũ ĺĩķē ţō ćōńƒĩĝũŕē?",
|
||||
"promptPlaceholder": "Àśķ àńŷţĥĩńĝ àƀōũţ ŷōũŕ ćōńƒĩĝũŕàţĩōń...",
|
||||
"startChat": "Śţàŕţ ćĥàţ",
|
||||
"startChatAria": "Śţàŕţ ćōńƒĩĝũŕàţĩōń ćĥàţ",
|
||||
"startingChat": "Śţàŕţĩńĝ ćĥàţ...",
|
||||
"suggestionAddReviewStep": "Àďď à 'Ćōďē Ŕēvĩēŵ' śţēƥ ţō ḿŷ ŵōŕķƒĺōŵ",
|
||||
"suggestionCreateProfile": "Ćŕēàţē à ńēŵ àĝēńţ ƥŕōƒĩĺē ŵĩţĥ àũţō-àƥƥŕōvē ēńàƀĺēď",
|
||||
"suggestionShowWorkflow": "Śĥōŵ ḿē ţĥē ćũŕŕēńţ ŵōŕķƒĺōŵ ćōńƒĩĝũŕàţĩōń",
|
||||
"suggestionUpdateMcp": "Ũƥďàţē ţĥē ḾĆƤ śēŕvēŕś ƒōŕ ţĥē ďēƒàũĺţ àĝēńţ ƥŕōƒĩĺē",
|
||||
"tagline": "Ćōńƒĩĝũŕē Ķàńďēv ŵĩţĥ ńàţũŕàĺ ĺàńĝũàĝē",
|
||||
"tryAsking": "Ţŕŷ àśķĩńĝ",
|
||||
"unknownError": "Ũńķńōŵń ēŕŕōŕ"
|
||||
}
|
||||
Reference in New Issue
Block a user