feat(i18n): localize task simple, mobile, share, filter and inspector panes (#2316)

Co-authored-by: Kandev Agent <agent@kandev.dev>
This commit is contained in:
João Salavisa
2026-08-06 12:39:20 +02:00
committed by GitHub
parent 6eaab90d9f
commit 2c15d409bc
69 changed files with 2029 additions and 699 deletions
@@ -10,13 +10,13 @@ export function hasActiveTaskSourceWork(
): boolean {
return taskSessionIds.some((sessionId) => Boolean(activeTurnBySession[sessionId]));
}
import { t } from "@/lib/i18n";
export function getAddSourcesDisabledReason({
isLoading,
hasActiveTurn,
}: AvailabilityInput): string | undefined {
if (isLoading) return "Wait for task sources to finish loading before adding sources.";
if (hasActiveTurn)
return "Wait for the active turn or tool call to finish before adding sources.";
if (isLoading) return t("task:waitForTaskSourcesToLoad");
if (hasActiveTurn) return t("task:waitForActiveTurnToFinish");
return undefined;
}
@@ -54,6 +54,8 @@ import { useWorkspaceRepositoryOptions } from "./use-workspace-repository-option
import { useWorkspaceSourceRows } from "./use-workspace-source-rows";
import { WorkspaceChangeConsequences } from "./workspace-change-consequences";
import { cn } from "@/lib/utils";
import { useTranslation } from "react-i18next";
import { t } from "@/lib/i18n";
type Props = {
open: boolean;
@@ -205,6 +207,7 @@ function AddWorkspaceSourcesSurface({
onCancel,
onSubmit,
}: AddWorkspaceSourcesSurfaceProps) {
const { t } = useTranslation();
const footer = (
<div className="flex justify-end gap-2">
<Button
@@ -214,7 +217,7 @@ function AddWorkspaceSourcesSurface({
disabled={submitting}
onClick={onCancel}
>
Cancel
{t("common:cancel")}
</Button>
<Button
type="button"
@@ -223,7 +226,7 @@ function AddWorkspaceSourcesSurface({
disabled={submitting || !canSubmit}
onClick={onSubmit}
>
{submitting ? "Adding…" : "Add to workspace"}
{submitting ? t("task:adding") : t("task:addToWorkspace")}
</Button>
</div>
);
@@ -244,10 +247,8 @@ function AddWorkspaceSourcesSurface({
className="h-dvh !max-h-dvh rounded-none flex flex-col overflow-hidden data-[vaul-drawer-direction=bottom]:!mt-0"
>
<DrawerHeader className="shrink-0 text-left">
<DrawerTitle>Add to workspace</DrawerTitle>
<DrawerDescription>
Choose repositories or folders to make available in this task.
</DrawerDescription>
<DrawerTitle>{t("task:addToWorkspace")}</DrawerTitle>
<DrawerDescription>{t("task:chooseRepositoriesOrFoldersToMake")}</DrawerDescription>
</DrawerHeader>
<div className="min-h-0 flex-1 overflow-y-auto overscroll-contain px-4">
{errorMessage}
@@ -268,10 +269,8 @@ function AddWorkspaceSourcesSurface({
onCloseAutoFocus={onCloseAutoFocus}
>
<DialogHeader className="shrink-0">
<DialogTitle>Add to workspace</DialogTitle>
<DialogDescription>
Choose repositories or folders to make available in this task.
</DialogDescription>
<DialogTitle>{t("task:addToWorkspace")}</DialogTitle>
<DialogDescription>{t("task:chooseRepositoriesOrFoldersToMake")}</DialogDescription>
</DialogHeader>
<div
data-testid="add-workspace-sources-dialog-scroll"
@@ -314,6 +313,7 @@ function SourceForm({
onUpdate: (key: string, patch: Partial<WorkspaceSourceRow>) => void;
isMobile: boolean;
}) {
const { t } = useTranslation();
return (
<div className="space-y-4 py-1" data-testid="add-workspace-sources-form">
<div className="flex flex-wrap items-center gap-2">
@@ -326,14 +326,13 @@ function SourceForm({
onClick={() => onAdd("folder")}
>
<IconFolderPlus className="h-4 w-4" />
Add folder
{t("task:addFolder")}
</Button>
)}
</div>
{capabilities.requiresCloneableLocalRepository && (
<p className="text-sm text-muted-foreground">
Saved and local Git repositories must have a cloneable origin for this executor. Local
folders are unavailable.
{t("task:savedAndLocalGitRepositoriesMust")}
</p>
)}
{rows.map((row) => (
@@ -362,6 +361,7 @@ function RepositorySourceMenu({
isMobile: boolean;
onAdd: (kind: "saved_repository" | "local_repository" | "remote_repository") => void;
}) {
const { t } = useTranslation();
const itemClass = cn("cursor-pointer items-start gap-3", isMobile ? "min-h-11" : "py-2");
return (
<DropdownMenu modal={!isMobile}>
@@ -372,28 +372,28 @@ function RepositorySourceMenu({
className={cn("cursor-pointer", isMobile ? "min-h-11" : "h-9 px-3")}
>
<IconPlus className="h-4 w-4" />
Add repository
{t("task:addRepository")}
<IconChevronDown className="h-3.5 w-3.5 text-muted-foreground" />
</Button>
</DropdownMenuTrigger>
<DropdownMenuContent align="start" className="w-80 max-w-[calc(100vw-2rem)]">
<RepositorySourceMenuItem
label="Workspace repository"
description="Choose from saved or discovered repositories."
label={t("task:workspaceRepository")}
description={t("task:chooseFromSavedOrDiscoveredRepositories")}
icon={<IconStack2 className="mt-0.5 h-4 w-4 text-muted-foreground" />}
className={itemClass}
onSelect={() => onAdd("saved_repository")}
/>
<RepositorySourceMenuItem
label="Local Git repository"
description="Use an existing checkout on this machine."
label={t("task:localGitRepository")}
description={t("task:useAnExistingCheckoutOnThis")}
icon={<IconGitBranch className="mt-0.5 h-4 w-4 text-muted-foreground" />}
className={itemClass}
onSelect={() => onAdd("local_repository")}
/>
<RepositorySourceMenuItem
label="Remote repository"
description="Clone from a provider or Git URL."
label={t("task:remoteRepository")}
description={t("task:cloneFromAProviderOrGit")}
icon={<IconCloudDownload className="mt-0.5 h-4 w-4 text-muted-foreground" />}
className={itemClass}
onSelect={() => onAdd("remote_repository")}
@@ -450,6 +450,7 @@ function SourceRow({
onRemove: (key: string) => void;
onUpdate: (key: string, patch: Partial<WorkspaceSourceRow>) => void;
}) {
const { t } = useTranslation();
const type = row.sourceType ?? (row.kind === "folder" ? "folder" : "saved_repository");
return (
<fieldset className="space-y-2 rounded border p-3" data-testid="workspace-source-row">
@@ -457,7 +458,7 @@ function SourceRow({
<legend className="text-sm font-medium">{labelFor(type)}</legend>
<button
type="button"
aria-label="Remove source"
aria-label={t("task:removeSource")}
className="min-h-11 min-w-11 cursor-pointer text-muted-foreground"
onClick={() => onRemove(row.key)}
>
@@ -479,7 +480,7 @@ function SourceRow({
{type === "local_repository" && (
<LocalPathRow
row={row}
label="Choose local Git repository"
label={t("task:chooseLocalGitRepository")}
requiresCloneableOrigin={capabilities.requiresCloneableLocalRepository}
onUpdate={onUpdate}
/>
@@ -488,7 +489,7 @@ function SourceRow({
<RemoteRepositoryRow row={row} workspaceId={workspaceId} onUpdate={onUpdate} />
)}
{type === "folder" && (
<LocalPathRow row={row} label="Choose local folder" onUpdate={onUpdate} />
<LocalPathRow row={row} label={t("task:chooseLocalFolder")} onUpdate={onUpdate} />
)}
{error && (
<p role="alert" className="text-xs text-destructive">
@@ -499,16 +500,18 @@ function SourceRow({
);
}
// Module-level `t` rather than a hook: this runs from render, after a locale is
// active. The `type` values are wire enums and stay in English.
function labelFor(type: NonNullable<WorkspaceSourceRow["sourceType"]>) {
switch (type) {
case "saved_repository":
return "Workspace repository";
return t("task:workspaceRepository");
case "local_repository":
return "Local Git repository";
return t("task:localGitRepository");
case "remote_repository":
return "Remote repository";
return t("task:remoteRepository");
case "folder":
return "Folder";
return t("task:folder");
}
}
@@ -523,6 +526,7 @@ function LocalPathRow({
requiresCloneableOrigin?: boolean;
onUpdate: (key: string, patch: Partial<WorkspaceSourceRow>) => void;
}) {
const { t } = useTranslation();
return (
<>
<FolderPicker
@@ -534,8 +538,8 @@ function LocalPathRow({
/>
{row.sourceType === "folder" && (
<Input
aria-label="Folder display name"
placeholder="Display name (optional)"
aria-label={t("task:folderDisplayName")}
placeholder={t("task:displayNameOptional")}
value={row.displayName ?? ""}
onChange={(event) => onUpdate(row.key, { displayName: event.target.value })}
/>
@@ -543,15 +547,15 @@ function LocalPathRow({
{row.sourceType === "local_repository" && (
<>
<Input
aria-label="Base branch"
placeholder="Base branch"
aria-label={t("task:baseBranch")}
placeholder={t("task:baseBranch")}
value={row.baseBranch ?? ""}
onChange={(event) => onUpdate(row.key, { baseBranch: event.target.value })}
/>
<p className="text-sm text-muted-foreground">
{requiresCloneableOrigin
? "This repository must have a cloneable origin; Kandev will verify it before adding."
: "Uses the current checkout. Kandev does not switch your local repository branch."}
? t("task:thisRepositoryMustHaveACloneable")
: t("task:usesTheCurrentCheckoutKandevDoes")}
</p>
</>
)}
@@ -1,5 +1,6 @@
import { useCallback, type Dispatch, type SetStateAction } from "react";
import { flushSync } from "react-dom";
import { t } from "@/lib/i18n";
import { attachTaskWorkspaceSources } from "@/lib/api/domains/kanban-api";
import {
buildWorkspaceSourcesPayload,
@@ -31,9 +32,8 @@ export function useSubmitWorkspaceSources({
}: Props) {
return useCallback(async () => {
if (submitting) return;
if (rows.length === 0) return setSubmitError("Add at least one source.");
if (Object.keys(errors).length)
return setSubmitError("Fix the marked sources before adding them.");
if (rows.length === 0) return setSubmitError(t("task:addAtLeastOneSource"));
if (Object.keys(errors).length) return setSubmitError(t("task:fixTheMarkedSources"));
setSubmitting(true);
setSubmitError(null);
@@ -45,11 +45,7 @@ export function useSubmitWorkspaceSources({
});
onOpenChange(false);
} catch (error) {
setSubmitError(
error instanceof Error
? error.message
: "Could not add sources. Your entries are still here to retry.",
);
setSubmitError(error instanceof Error ? error.message : t("task:couldNotAddSources"));
} finally {
setSubmitting(false);
}
@@ -63,5 +59,6 @@ export function useSubmitWorkspaceSources({
setSubmitError,
submitting,
taskId,
t,
]);
}
@@ -1,6 +1,8 @@
import { IconAlertTriangle } from "@tabler/icons-react";
import { Trans, useTranslation } from "react-i18next";
export function WorkspaceChangeConsequences({ restartsWorkspace }: { restartsWorkspace: boolean }) {
const { t } = useTranslation();
return (
<section
role="note"
@@ -17,29 +19,30 @@ export function WorkspaceChangeConsequences({ restartsWorkspace }: { restartsWor
<div className="space-y-1">
<h3 id="workspace-change-consequences-title" className="font-medium text-foreground">
{restartsWorkspace
? "This restarts the task workspace"
: "This updates the live task workspace"}
? t("task:thisRestartsTheTaskWorkspace")
: t("task:thisUpdatesTheLiveTaskWorkspace")}
</h3>
<p className="text-muted-foreground">
Review these changes before adding sources. The task must remain idle until the
operation finishes.
{t("task:reviewTheseChangesBeforeAddingSources")}
</p>
</div>
{restartsWorkspace ? <RestartSummary /> : <LiveUpdateSummary />}
<details className="group">
<summary className="flex min-h-11 cursor-pointer items-center font-medium text-foreground">
Full impact details
{t("task:fullImpactDetails")}
</summary>
<div className="pb-1">
{restartsWorkspace ? <RestartConsequences /> : <LiveUpdateConsequences />}
</div>
</details>
<p className="border-t border-amber-500/20 pt-2 text-muted-foreground">
<strong className="font-medium text-foreground">
Cancel leaves the workspace unchanged.
</strong>{" "}
If you continue, the batch is all-or-nothing: when any source fails, none of the new
sources are attached.
<Trans i18nKey="task:cancelLeavesWorkspaceUnchangedDetail">
<strong className="font-medium text-foreground">
Cancel leaves the workspace unchanged.
</strong>{" "}
If you continue, the batch is all-or-nothing: when any source fails, none of the new
sources are attached.
</Trans>
</p>
</div>
</div>
@@ -48,31 +51,21 @@ export function WorkspaceChangeConsequences({ restartsWorkspace }: { restartsWor
}
function RestartSummary() {
const { t } = useTranslation();
return (
<ul className="list-disc space-y-1.5 pl-4 text-muted-foreground">
<li>
The idle agent restarts at the task root. Existing files, Git changes, task and session
history, messages, plan, attached sources, model, and mode remain.
</li>
<li>
Provider-private context that Kandev did not record may not carry over. Open terminals, dev
servers, and other workspace processes stop, including the task editor server.
</li>
<li>{t("task:theIdleAgentRestartsAtThe")}</li>
<li>{t("task:providerPrivateContextThatKandevDid")}</li>
</ul>
);
}
function LiveUpdateSummary() {
const { t } = useTranslation();
return (
<ul className="list-disc space-y-1.5 pl-4 text-muted-foreground">
<li>
Repositories are added as top-level entries in the current remote workspace. The
agent&apos;s working directory does not change.
</li>
<li>
The agent and running workspace processes continue. Existing files, Git changes, and
recorded task and session context remain.
</li>
<li>{t("task:repositoriesAreAddedAsTopLevel")}</li>
<li>{t("task:theAgentAndRunningWorkspaceProcesses")}</li>
</ul>
);
}
@@ -81,23 +74,30 @@ function RestartConsequences() {
return (
<ul className="list-disc space-y-1.5 pl-4 text-muted-foreground">
<li>
<strong className="font-medium text-foreground">Workspace:</strong> The task root becomes
the agent&apos;s working directory. For a single-repository task, this moves the CWD up one
level and shows every source as a named top-level entry. Existing files and Git changes are
not moved or discarded.
<Trans i18nKey="task:restartConsequenceWorkspace">
<strong className="font-medium text-foreground">Workspace:</strong> The task root becomes
the agent&apos;s working directory. For a single-repository task, this moves the CWD up
one level and shows every source as a named top-level entry. Existing files and Git
changes are not moved or discarded.
</Trans>
</li>
<li>
<strong className="font-medium text-foreground">Session context:</strong> Kandev restarts
the idle agent while preserving the task, session, task state, messages, plan, attached
sources, and selected model and mode. Providers that support cross-directory resume keep
their native session. Other providers start a new session and receive Kandev&apos;s recorded
conversation with the next prompt. Provider-private context that Kandev did not record may
not carry over.
<Trans i18nKey="task:restartConsequenceSessionContext">
<strong className="font-medium text-foreground">Session context:</strong> Kandev restarts
the idle agent while preserving the task, session, task state, messages, plan, attached
sources, and selected model and mode. Providers that support cross-directory resume keep
their native session. Other providers start a new session and receive Kandev&apos;s
recorded conversation with the next prompt. Provider-private context that Kandev did not
record may not carry over.
</Trans>
</li>
<li>
<strong className="font-medium text-foreground">Running processes:</strong> Open terminals,
dev servers, and other workspace processes stop. This includes the task editor server. Save
unsaved work, then reopen or restart those processes after the sources are attached.
<Trans i18nKey="task:restartConsequenceRunningProcesses">
<strong className="font-medium text-foreground">Running processes:</strong> Open
terminals, dev servers, and other workspace processes stop. This includes the task editor
server. Save unsaved work, then reopen or restart those processes after the sources are
attached.
</Trans>
</li>
</ul>
);
@@ -107,14 +107,19 @@ function LiveUpdateConsequences() {
return (
<ul className="list-disc space-y-1.5 pl-4 text-muted-foreground">
<li>
<strong className="font-medium text-foreground">Workspace:</strong> Repositories are cloned
as named top-level entries under the current remote workspace. The agent&apos;s working
directory does not change, and existing files and Git changes are not moved or discarded.
<Trans i18nKey="task:liveUpdateConsequenceWorkspace">
<strong className="font-medium text-foreground">Workspace:</strong> Repositories are
cloned as named top-level entries under the current remote workspace. The agent&apos;s
working directory does not change, and existing files and Git changes are not moved or
discarded.
</Trans>
</li>
<li>
<strong className="font-medium text-foreground">Session and processes:</strong> The agent
and running workspace processes continue while Kandev rescans the workspace. The task,
session, task state, messages, plan, attached sources, model, and mode remain in place.
<Trans i18nKey="task:liveUpdateConsequenceSessionAndProcesses">
<strong className="font-medium text-foreground">Session and processes:</strong> The agent
and running workspace processes continue while Kandev rescans the workspace. The task,
session, task state, messages, plan, attached sources, model, and mode remain in place.
</Trans>
</li>
</ul>
);
@@ -5,12 +5,14 @@ import { IconLayoutSidebarLeftCollapse, IconLayoutSidebarRightCollapse } from "@
import { Button } from "@kandev/ui/button";
import { Tooltip, TooltipContent, TooltipTrigger } from "@kandev/ui/tooltip";
import { useLayoutStore } from "@/lib/state/layout-store";
import { useTranslation } from "react-i18next";
type DocumentControlsProps = {
activeSessionId: string | null;
};
export function DocumentControls({ activeSessionId }: DocumentControlsProps) {
const { t } = useTranslation();
const toggleColumn = useLayoutStore((state) => state.toggleColumn);
const showColumn = useLayoutStore((state) => state.showColumn);
const toggleRightPanel = useLayoutStore((state) => state.toggleRightPanel);
@@ -42,7 +44,7 @@ export function DocumentControls({ activeSessionId }: DocumentControlsProps) {
<IconLayoutSidebarLeftCollapse className="h-3 w-3" />
</Button>
</TooltipTrigger>
<TooltipContent>Show sidebar</TooltipContent>
<TooltipContent>{t("task:showSidebar")}</TooltipContent>
</Tooltip>
) : (
<Tooltip>
@@ -56,7 +58,7 @@ export function DocumentControls({ activeSessionId }: DocumentControlsProps) {
<IconLayoutSidebarLeftCollapse className="h-3 w-3" />
</Button>
</TooltipTrigger>
<TooltipContent>Hide sidebar</TooltipContent>
<TooltipContent>{t("task:hideSidebar")}</TooltipContent>
</Tooltip>
)}
{rightHidden ? (
@@ -71,7 +73,7 @@ export function DocumentControls({ activeSessionId }: DocumentControlsProps) {
<IconLayoutSidebarRightCollapse className="h-3 w-3" />
</Button>
</TooltipTrigger>
<TooltipContent>Show right panel</TooltipContent>
<TooltipContent>{t("task:showRightPanel")}</TooltipContent>
</Tooltip>
) : (
<Tooltip>
@@ -85,7 +87,7 @@ export function DocumentControls({ activeSessionId }: DocumentControlsProps) {
<IconLayoutSidebarRightCollapse className="h-3 w-3" />
</Button>
</TooltipTrigger>
<TooltipContent>Hide right panel</TooltipContent>
<TooltipContent>{t("task:hideRightPanel")}</TooltipContent>
</Tooltip>
)}
</div>
@@ -6,6 +6,8 @@ import { Button } from "@kandev/ui/button";
import type { Annotation } from "@/lib/preview-inspect-bridge";
import { formatAnnotations } from "@/lib/preview-inspect-bridge";
import { copyToClipboard } from "@/lib/utils/copy-to-clipboard";
import { useTranslation } from "react-i18next";
import { t } from "@/lib/i18n";
interface AnnotationsPanelProps {
annotations: Annotation[];
@@ -13,20 +15,25 @@ interface AnnotationsPanelProps {
onClear: () => void;
}
// Module-level `t` rather than a hook: this runs from render, after a locale is
// active. The `tag`/`#id`/`.class` suffix is inspected DOM data, never copy.
function describeAnnotation(a: Annotation): string {
if (a.kind === "pin") {
const el = a.element;
if (!el) return "Pin";
if (!el) return t("task:annotationPin");
let suffix = "";
if (el.id) suffix = `#${el.id}`;
else if (el.classes) suffix = `.${el.classes.split(/\s+/)[0]}`;
return `${el.tag}${suffix}`;
}
const r = a.rect;
return r ? `Area ${Math.round(r.w)}x${Math.round(r.h)}` : "Area";
return r
? t("task:annotationAreaSized", { w: Math.round(r.w), h: Math.round(r.h) })
: t("task:annotationArea");
}
export function AnnotationsPanel({ annotations, onRemove, onClear }: AnnotationsPanelProps) {
const { t } = useTranslation();
const [copied, setCopied] = useState(false);
if (annotations.length === 0) return null;
@@ -46,7 +53,7 @@ export function AnnotationsPanel({ annotations, onRemove, onClear }: Annotations
>
<div className="flex items-center justify-between gap-2">
<span className="text-xs text-muted-foreground">
{annotations.length} annotation{annotations.length === 1 ? "" : "s"}
{t("task:annotationCount", { count: annotations.length })}
</span>
<div className="flex items-center gap-1">
<Button
@@ -55,8 +62,8 @@ export function AnnotationsPanel({ annotations, onRemove, onClear }: Annotations
className="h-6 px-2 cursor-pointer"
onClick={handleCopy}
data-testid="preview-annotations-copy"
aria-label={copied ? "Copied" : "Copy annotations"}
title={copied ? "Copied" : "Copy annotations to clipboard"}
aria-label={copied ? t("task:copied2") : t("task:copyAnnotations")}
title={copied ? t("task:copied2") : t("task:copyAnnotationsToClipboard")}
>
{copied ? <IconCheck className="h-3 w-3" /> : <IconCopy className="h-3 w-3" />}
</Button>
@@ -66,8 +73,8 @@ export function AnnotationsPanel({ annotations, onRemove, onClear }: Annotations
className="h-6 px-2 cursor-pointer"
onClick={onClear}
data-testid="preview-annotations-clear"
aria-label="Clear all annotations"
title="Clear all annotations"
aria-label={t("task:clearAllAnnotations")}
title={t("task:clearAllAnnotations")}
>
<IconTrash className="h-3 w-3" />
</Button>
@@ -92,7 +99,7 @@ export function AnnotationsPanel({ annotations, onRemove, onClear }: Annotations
variant="ghost"
className="h-5 w-5 p-0 cursor-pointer shrink-0"
onClick={() => onRemove(a.id)}
aria-label={`Remove annotation ${a.number}`}
aria-label={t("task:removeAnnotation", { number: a.number })}
data-testid="preview-annotation-remove"
>
<IconX className="h-3 w-3" />
@@ -2,6 +2,7 @@
import { IconClick } from "@tabler/icons-react";
import { Button } from "@kandev/ui/button";
import { useTranslation } from "react-i18next";
interface InspectButtonProps {
active: boolean;
@@ -11,9 +12,8 @@ interface InspectButtonProps {
}
export function InspectButton({ active, disabled, count = 0, onToggle }: InspectButtonProps) {
const title = active
? "Inspecting - click to pin, drag to select an area, Esc to exit"
: "Inspect: click to pin or drag to select an area of the preview";
const { t } = useTranslation();
const title = active ? t("task:inspectingClickToPin") : t("task:inspectClickToPinOrDrag");
return (
<Button
size="sm"
@@ -23,7 +23,7 @@ export function InspectButton({ active, disabled, count = 0, onToggle }: Inspect
className="cursor-pointer relative"
data-testid="preview-inspect-button"
aria-pressed={active}
aria-label={active ? "Exit inspect mode" : "Enter inspect mode"}
aria-label={active ? t("task:exitInspectMode") : t("task:enterInspectMode")}
title={title}
>
<IconClick className="h-4 w-4" />
@@ -9,6 +9,8 @@ import { CommitDiffView } from "../commit-detail-panel";
import type { ReviewSource, SourceCounts } from "@/hooks/domains/session/use-review-sources";
import type { SelectedDiff } from "../task-layout";
import type { DiffSheetMode } from "../changes-diff-target";
import { useTranslation } from "react-i18next";
import { t } from "@/lib/i18n";
const MOBILE_DIFF_SOURCE_FILTER_KEY = "mobile-diff-source-filter";
@@ -74,20 +76,28 @@ type SourceTab = { key: ReviewSource; label: string; count: number };
function buildSourceTabs(sourceCounts: SourceCounts): SourceTab[] {
return [
{ key: "uncommitted" as ReviewSource, label: "Uncommitted", count: sourceCounts.uncommitted },
{ key: "committed" as ReviewSource, label: "Committed", count: sourceCounts.committed },
{
key: "uncommitted" as ReviewSource,
label: t("task:uncommitted"),
count: sourceCounts.uncommitted,
},
{ key: "committed" as ReviewSource, label: t("task:committed"), count: sourceCounts.committed },
{ key: "pr" as ReviewSource, label: "PR", count: sourceCounts.pr },
].filter((t) => t.count > 0);
}
// Module-level `t` rather than a hook: this runs from render, after a locale
// is active.
function deriveTitle(mode: DiffSheetMode | null, sourceTabs: SourceTab[]): string {
if (!mode) return "";
if (mode.kind === "all") {
if (sourceTabs.length === 1) return `${sourceTabs[0].label} Changes`;
return "All Changes";
if (sourceTabs.length === 1) {
return t("task:sourceChangesTitle", { source: sourceTabs[0].label });
}
return t("task:allChangesTitle");
}
if (mode.kind === "file") return "File Changes";
if (mode.kind === "commit") return "Commit Changes";
if (mode.kind === "file") return t("task:fileChangesTitle");
if (mode.kind === "commit") return t("task:commitChangesTitle");
return "";
}
@@ -102,6 +112,7 @@ function SheetHeader({
sourceLabel: string | null;
onClose: () => void;
}) {
const { t } = useTranslation();
return (
<DrawerHeader className="flex items-center justify-between py-2 px-4 border-b shrink-0">
<DrawerTitle className="text-base flex items-center gap-2">
@@ -122,7 +133,7 @@ function SheetHeader({
onClick={onClose}
data-testid="mobile-diff-sheet-close"
>
Close
{t("task:close")}
</Button>
</DrawerHeader>
);
@@ -196,6 +207,7 @@ export const MobileDiffSheet = memo(function MobileDiffSheet({
onClearSelected,
sourceCounts,
}: MobileDiffSheetProps) {
const { i18n } = useTranslation();
const [activeSource, setActiveSource] = useState<ReviewSource>(() => {
if (typeof window === "undefined") return "uncommitted";
const saved = localStorage.getItem(MOBILE_DIFF_SOURCE_FILTER_KEY);
@@ -212,12 +224,23 @@ export const MobileDiffSheet = memo(function MobileDiffSheet({
if (mode?.kind !== "all") return;
localStorage.setItem(MOBILE_DIFF_SOURCE_FILTER_KEY, activeSource);
}, [mode?.kind, activeSource]);
const sourceTabs = useMemo(() => buildSourceTabs(sourceCounts), [sourceCounts]);
// `buildSourceTabs` and `deriveTitle` resolve their labels through the
// module-level `t`, so the language has to be a dependency for them to follow
// a runtime locale switch.
const sourceTabs = useMemo(
() => buildSourceTabs(sourceCounts),
// eslint-disable-next-line react-hooks/exhaustive-deps -- i18n.language is the locale trigger
[sourceCounts, i18n.language],
);
const activeSourceLabel = useMemo(
() => sourceTabs.find((t) => t.key === activeSource)?.label ?? null,
[sourceTabs, activeSource],
);
const title = useMemo(() => deriveTitle(mode, sourceTabs), [mode, sourceTabs]);
const title = useMemo(
() => deriveTitle(mode, sourceTabs),
// eslint-disable-next-line react-hooks/exhaustive-deps -- i18n.language is the locale trigger
[mode, sourceTabs, i18n.language],
);
const panelContent = useMemo(
() => renderPanel(mode, activeSource, selectedDiff, onClearSelected, onOpenFile),
[mode, activeSource, selectedDiff, onClearSelected, onOpenFile],
@@ -16,6 +16,7 @@ import {
ExternalVcsFileLink,
useExternalVcsFileStatus,
} from "@/components/editors/external-vcs-file-link";
import { useTranslation } from "react-i18next";
type MobileFileViewerPanelProps = {
file: OpenFileTab;
@@ -88,6 +89,7 @@ export function MobileFileViewerPanel({
onClose,
initialMarkdownPreview = false,
}: MobileFileViewerPanelProps) {
const { t } = useTranslation();
const activeSession = useAppStore((state) =>
sessionId ? (state.taskSessions.items[sessionId] ?? null) : null,
);
@@ -134,13 +136,13 @@ export function MobileFileViewerPanel({
className="cursor-pointer px-2"
onClick={() => setMarkdownPreview(true)}
data-testid="markdown-preview-toggle"
aria-label="Open markdown preview"
aria-label={t("task:openMarkdownPreview")}
>
<IconEye className="h-4 w-4" />
</Button>
)}
<Button variant="ghost" size="sm" className="cursor-pointer px-2" onClick={onClose}>
Close
{t("task:close")}
</Button>
</div>
}
@@ -39,6 +39,8 @@ import { repositorySlug } from "@/lib/repository-slug";
import { useSessionPendingInput, type PendingInput } from "@/hooks/use-task-pending-input";
import type { ForegroundActivity, TaskSession, TaskSessionState } from "@/lib/types/http";
import type { AgentProfileOption } from "@/lib/state/slices";
import { useTranslation } from "react-i18next";
import { t } from "@/lib/i18n";
type SessionRow = {
id: string;
@@ -69,7 +71,7 @@ function buildSessionRows(
agentName: profile?.agent_name ?? null,
// User-supplied session name wins over the derived profile label,
// matching the desktop session tab title precedence.
agentLabel: s.name || labelParts[1] || labelParts[0] || profile?.label || "Agent",
agentLabel: s.name || labelParts[1] || labelParts[0] || profile?.label || t("task:agent"),
repositoryLabel: s.repository_id ? (repositoryLabelsById.get(s.repository_id) ?? null) : null,
state: (s.state as TaskSessionState | undefined) ?? null,
foregroundActivity: s.foreground_activity ?? null,
@@ -88,7 +90,8 @@ function buildSessionRows(
// grayscale scan. The label reinforces the distinction in words: while spawned
// background work runs, the row reads "Working in background" rather than the
// bare "Running", so background is never confused with generating.
const BACKGROUND_RUNNING_LABEL = "Working in background";
// A catalog key, not copy: `t()` at module scope would freeze at the boot locale.
const BACKGROUND_RUNNING_LABEL_KEY = "task:workingInBackground";
function sessionStateLabel(
state: TaskSessionState,
@@ -96,11 +99,13 @@ function sessionStateLabel(
pending: PendingInput,
): string {
const canRequestInput = state === "RUNNING" || state === "WAITING_FOR_INPUT";
if (canRequestInput && pending.permission) return "Permission requested";
if (canRequestInput && pending.permission) return t("task:permissionRequested");
if (canRequestInput && pending.clarification) {
return formatTaskSessionStateLabel("WAITING_FOR_INPUT");
}
if (canRequestInput && foregroundActivity === "background") return BACKGROUND_RUNNING_LABEL;
if (canRequestInput && foregroundActivity === "background") {
return t(BACKGROUND_RUNNING_LABEL_KEY);
}
return formatTaskSessionStateLabel(state);
}
@@ -155,6 +160,7 @@ function SessionActionsMenu({
onAskDelete: () => void;
onHandoffProfile: (profileId: string) => void;
}) {
const { t } = useTranslation();
const hasLifecycleAction =
!!state &&
(isSessionStoppable(state) || isSessionResumable(state) || isSessionDeletable(state));
@@ -167,7 +173,7 @@ function SessionActionsMenu({
size="icon-sm"
className="cursor-pointer h-7 w-7"
onClick={(e) => e.stopPropagation()}
aria-label="Session actions"
aria-label={t("task:sessionActions")}
>
<IconDotsVertical className="h-4 w-4" />
</Button>
@@ -178,17 +184,17 @@ function SessionActionsMenu({
onSelect={onSetPrimary}
disabled={isPrimary || !state}
>
Set as Primary
{t("task:setAsPrimary")}
</DropdownMenuItem>
<DropdownMenuSeparator />
{state && isSessionStoppable(state) && (
<DropdownMenuItem className="cursor-pointer" onSelect={onStop}>
Stop
{t("task:stop")}
</DropdownMenuItem>
)}
{state && isSessionResumable(state) && (
<DropdownMenuItem className="cursor-pointer" onSelect={onResume}>
Resume
{t("task:resume")}
</DropdownMenuItem>
)}
{state && isSessionDeletable(state) && (
@@ -196,7 +202,7 @@ function SessionActionsMenu({
className="cursor-pointer text-destructive focus:text-destructive"
onSelect={onAskDelete}
>
Delete
{t("task:delete")}
</DropdownMenuItem>
)}
{hasLifecycleAction && <DropdownMenuSeparator />}
@@ -219,27 +225,26 @@ function DeleteSessionConfirmDialog({
isOnlySession: boolean;
onConfirm: () => void;
}) {
const { t } = useTranslation();
return (
<AlertDialog open={open} onOpenChange={onOpenChange}>
<AlertDialogContent>
<AlertDialogHeader>
<AlertDialogTitle>Delete session?</AlertDialogTitle>
<AlertDialogTitle>{t("task:deleteSession")}</AlertDialogTitle>
<AlertDialogDescription asChild>
<div>
<p>This will permanently delete the conversation history with this session.</p>
<p>{t("task:thisWillPermanentlyDeleteTheConversation")}</p>
{isPrimary && !isOnlySession && (
<p className="mt-2 font-medium">
This is the primary session. Another session will be set as primary.
</p>
<p className="mt-2 font-medium">{t("task:thisIsThePrimarySessionAnother")}</p>
)}
{isOnlySession && (
<p className="mt-2 font-medium">This is the only session for this task.</p>
<p className="mt-2 font-medium">{t("task:thisIsTheOnlySessionFor")}</p>
)}
</div>
</AlertDialogDescription>
</AlertDialogHeader>
<AlertDialogFooter>
<AlertDialogCancel className="cursor-pointer">Cancel</AlertDialogCancel>
<AlertDialogCancel className="cursor-pointer">{t("common:cancel")}</AlertDialogCancel>
<AlertDialogAction
onClick={() => {
onOpenChange(false);
@@ -247,7 +252,7 @@ function DeleteSessionConfirmDialog({
}}
className="cursor-pointer bg-destructive text-destructive-foreground hover:bg-destructive/90"
>
Delete
{t("task:delete")}
</AlertDialogAction>
</AlertDialogFooter>
</AlertDialogContent>
@@ -366,6 +371,10 @@ function SessionRowItem({
}
function useSessionRows(taskId: string | null) {
// `buildSessionRows` resolves its agent-name fallback through the module-level
// `t`, so the language has to reach the memo below for that label to follow a
// runtime locale switch.
const { i18n } = useTranslation();
const agentProfiles = useAppStore((s) => s.agentProfiles.items);
const repositoriesByWorkspace = useAppStore((s) => s.repositories.itemsByWorkspaceId);
const primarySessionId = useAppStore((s) => {
@@ -389,7 +398,8 @@ function useSessionRows(taskId: string | null) {
}, [repositoriesByWorkspace, sessions]);
const rows = useMemo(
() => buildSessionRows(sessions, agentProfiles, primarySessionId, repositoryLabelsById),
[sessions, agentProfiles, primarySessionId, repositoryLabelsById],
// eslint-disable-next-line react-hooks/exhaustive-deps -- i18n.language is the locale trigger
[sessions, agentProfiles, primarySessionId, repositoryLabelsById, i18n.language],
);
return { rows, isLoading, primarySessionId };
}
@@ -403,6 +413,7 @@ const MobileSessionsList = memo(function MobileSessionsList({
activeSessionId: string | null;
onClose: () => void;
}) {
const { t } = useTranslation();
const setActiveSession = useAppStore((s) => s.setActiveSession);
const { rows, isLoading } = useSessionRows(taskId);
const [launchOpen, setLaunchOpen] = useState(false);
@@ -418,7 +429,9 @@ const MobileSessionsList = memo(function MobileSessionsList({
if (!taskId) {
return (
<div className="text-xs text-muted-foreground px-2 py-6 text-center">No active task</div>
<div className="text-xs text-muted-foreground px-2 py-6 text-center">
{t("task:noActiveTask")}
</div>
);
}
@@ -426,7 +439,7 @@ const MobileSessionsList = memo(function MobileSessionsList({
<div className="flex flex-col gap-2 px-1">
<div className="flex items-center justify-between px-1">
<span className="text-xs font-medium text-muted-foreground">
{rows.length} session{rows.length === 1 ? "" : "s"}
{t("task:sessionCount", { count: rows.length })}
</span>
<Button
size="sm"
@@ -436,18 +449,18 @@ const MobileSessionsList = memo(function MobileSessionsList({
data-testid="mobile-launch-session"
>
<IconPlus className="h-4 w-4" />
New session
{t("task:newSession")}
</Button>
</div>
<div className="flex flex-col gap-0.5">
{isLoading && rows.length === 0 && (
<div className="text-xs text-muted-foreground px-2 py-4 text-center">
Loading sessions…
{t("task:loadingSessions")}
</div>
)}
{!isLoading && rows.length === 0 && (
<div className="text-xs text-muted-foreground px-2 py-4 text-center">
No sessions yet. Launch one to get started.
{t("task:noSessionsYetLaunchOneTo")}
</div>
)}
{rows.map((row) => (
@@ -478,6 +491,7 @@ function useActiveSessionPillLabel(
effectiveSessionId: string | null;
ariaLabel: string;
} {
const { t } = useTranslation();
const storedActiveSessionId = useAppStore((s) => s.tasks.activeSessionId);
const { rows } = useSessionRows(taskId);
const effectiveSessionId = sessionId === undefined ? storedActiveSessionId : sessionId;
@@ -487,7 +501,7 @@ function useActiveSessionPillLabel(
let count: string | undefined;
if (total > 1 && idx) count = `${idx}/${total}`;
else if (total > 1) count = `${total}`;
const agentLabel = activeRow?.agentLabel ?? "Session";
const agentLabel = activeRow?.agentLabel ?? t("task:sessionFallbackLabel");
const repositoryLabel = activeRow?.repositoryLabel;
return {
label: repositoryLabel ? `${agentLabel} · ${repositoryLabel}` : agentLabel,
@@ -495,8 +509,8 @@ function useActiveSessionPillLabel(
agentName: activeRow?.agentName ?? null,
effectiveSessionId,
ariaLabel: repositoryLabel
? `Active session: ${agentLabel}. Repository: ${repositoryLabel}. Tap to switch.`
: `Active session: ${agentLabel}. Tap to switch.`,
? t("task:activeSessionRepositoryTapToSwitch", { agentLabel, repositoryLabel })
: t("task:activeSessionTapToSwitch", { agentLabel }),
};
}
@@ -511,6 +525,7 @@ export const MobileSessionsPicker = memo(function MobileSessionsPicker({
compact?: boolean;
fullWidth?: boolean;
}) {
const { t } = useTranslation();
const [open, setOpen] = useState(false);
const { label, count, agentName, effectiveSessionId, ariaLabel } = useActiveSessionPillLabel(
taskId,
@@ -540,7 +555,7 @@ export const MobileSessionsPicker = memo(function MobileSessionsPicker({
data-testid="mobile-sessions-pill"
ariaLabel={ariaLabel}
/>
<MobilePickerSheet open={open} onOpenChange={setOpen} title="Sessions">
<MobilePickerSheet open={open} onOpenChange={setOpen} title={t("task:sessions")}>
<MobileSessionsList
taskId={taskId}
activeSessionId={effectiveSessionId}
@@ -9,30 +9,34 @@ import { isActive } from "@/lib/terminal/shell-modifiers";
export type KeyDef = {
/** Stable id used for data-testid (e.g. `keybar-key-esc`). */
id: string;
/** Rendered button label. */
/** Rendered button label. A key cap or glyph, not translatable copy. */
label: ReactNode;
/** Accessible label. */
ariaLabel: string;
/**
* Catalog key for the accessible label. A key holds the spoken name, which a
* screen reader does read out, so it is copy — but this table is module
* scope, so a resolved `t()` here would freeze at the boot locale.
*/
ariaLabelKey: string;
/** Sequence emitted on tap. Ctrl/Shift transforms are applied downstream. */
seq: string;
};
export const KEYS: readonly KeyDef[] = [
{ id: "esc", label: "Esc", ariaLabel: "Escape", seq: KEY_SEQUENCES.esc },
{ id: "tab", label: "Tab", ariaLabel: "Tab", seq: KEY_SEQUENCES.tab },
{ id: "up", label: "↑", ariaLabel: "Arrow Up", seq: KEY_SEQUENCES.up },
{ id: "down", label: "↓", ariaLabel: "Arrow Down", seq: KEY_SEQUENCES.down },
{ id: "left", label: "←", ariaLabel: "Arrow Left", seq: KEY_SEQUENCES.left },
{ id: "right", label: "→", ariaLabel: "Arrow Right", seq: KEY_SEQUENCES.right },
{ id: "home", label: "Home", ariaLabel: "Home", seq: KEY_SEQUENCES.home },
{ id: "end", label: "End", ariaLabel: "End", seq: KEY_SEQUENCES.end },
{ id: "pageup", label: "PgUp", ariaLabel: "Page Up", seq: KEY_SEQUENCES.pageUp },
{ id: "pagedown", label: "PgDn", ariaLabel: "Page Down", seq: KEY_SEQUENCES.pageDown },
{ id: "pipe", label: "|", ariaLabel: "Pipe", seq: "|" },
{ id: "tilde", label: "~", ariaLabel: "Tilde", seq: "~" },
{ id: "slash", label: "/", ariaLabel: "Slash", seq: "/" },
{ id: "dash", label: "-", ariaLabel: "Dash", seq: "-" },
{ id: "underscore", label: "_", ariaLabel: "Underscore", seq: "_" },
{ id: "esc", label: "Esc", ariaLabelKey: "task:keyEscape", seq: KEY_SEQUENCES.esc },
{ id: "tab", label: "Tab", ariaLabelKey: "task:keyTab", seq: KEY_SEQUENCES.tab },
{ id: "up", label: "↑", ariaLabelKey: "task:keyArrowUp", seq: KEY_SEQUENCES.up },
{ id: "down", label: "↓", ariaLabelKey: "task:keyArrowDown", seq: KEY_SEQUENCES.down },
{ id: "left", label: "←", ariaLabelKey: "task:keyArrowLeft", seq: KEY_SEQUENCES.left },
{ id: "right", label: "→", ariaLabelKey: "task:keyArrowRight", seq: KEY_SEQUENCES.right },
{ id: "home", label: "Home", ariaLabelKey: "task:keyHome", seq: KEY_SEQUENCES.home },
{ id: "end", label: "End", ariaLabelKey: "task:keyEnd", seq: KEY_SEQUENCES.end },
{ id: "pageup", label: "PgUp", ariaLabelKey: "task:keyPageUp", seq: KEY_SEQUENCES.pageUp },
{ id: "pagedown", label: "PgDn", ariaLabelKey: "task:keyPageDown", seq: KEY_SEQUENCES.pageDown },
{ id: "pipe", label: "|", ariaLabelKey: "task:keyPipe", seq: "|" },
{ id: "tilde", label: "~", ariaLabelKey: "task:keyTilde", seq: "~" },
{ id: "slash", label: "/", ariaLabelKey: "task:keySlash", seq: "/" },
{ id: "dash", label: "-", ariaLabelKey: "task:keyDash", seq: "-" },
{ id: "underscore", label: "_", ariaLabelKey: "task:keyUnderscore", seq: "_" },
];
type KeybarButtonProps = {
@@ -7,6 +7,7 @@ import { useVisualViewportOffset } from "@/hooks/use-visual-viewport-offset";
import { refocusXtermTextarea } from "@/lib/terminal/refocus-xterm";
import { useShellModifiersStore } from "@/lib/terminal/shell-modifiers";
import { KEYS, KeybarButton, ModifierButton } from "./mobile-terminal-keybar-helpers";
import { useTranslation } from "react-i18next";
export type MobileTerminalKeybarProps = {
sessionId: string | null | undefined;
@@ -23,6 +24,7 @@ export function MobileTerminalKeybar({
visible,
baseBottomOffset,
}: MobileTerminalKeybarProps) {
const { t } = useTranslation();
const send = useShellKeySender(sessionId);
const { keyboardOpen, viewportBottom } = useVisualViewportOffset();
const ctrl = useShellModifiersStore((s) => s.ctrl);
@@ -59,30 +61,40 @@ export function MobileTerminalKeybar({
style={{ ...position, height: `${KEYBAR_HEIGHT_PX}px` }}
>
<div className="flex w-full gap-1 overflow-x-auto px-2 py-1.5">
<ModifierButton id="ctrl" label="Ctrl" ariaLabel="Control" state={ctrl} onTap={onCtrlTap} />
<ModifierButton
id="ctrl"
label={t("task:ctrl")}
ariaLabel={t("task:control")}
state={ctrl}
onTap={onCtrlTap}
/>
<ModifierButton
id="shift"
label="Shift"
ariaLabel="Shift"
label={t("task:shift")}
ariaLabel={t("task:shift")}
state={shift}
onTap={onShiftTap}
/>
<KeybarButton
id="ctrl-c"
ariaLabel="Control C"
ariaLabel={t("task:controlC")}
onTap={() => tapSend(KEY_SEQUENCES.ctrlC)}
variant="destructive"
>
^C
</KeybarButton>
<KeybarButton id="ctrl-d" ariaLabel="Control D" onTap={() => tapSend(KEY_SEQUENCES.ctrlD)}>
<KeybarButton
id="ctrl-d"
ariaLabel={t("task:controlD")}
onTap={() => tapSend(KEY_SEQUENCES.ctrlD)}
>
^D
</KeybarButton>
{KEYS.map((key) => (
<KeybarButton
key={key.id}
id={key.id}
ariaLabel={key.ariaLabel}
ariaLabel={t(key.ariaLabelKey)}
onTap={() => tapSend(key.seq)}
>
{key.label}
@@ -8,6 +8,7 @@ import { MobileTerminalsPicker } from "./mobile-terminals-section";
import { MobileTerminalsProvider, useMobileTerminalsContext } from "./mobile-terminals-context";
import type { Terminal as XtermTerminal } from "@xterm/xterm";
import type { Terminal } from "@/hooks/domains/session/use-terminals";
import { useTranslation } from "react-i18next";
function TerminalSlot({
terminal,
@@ -79,13 +80,14 @@ function TerminalSlot({
}
function MobileTerminalPaneInner({ sessionId }: { sessionId: string | null }) {
const { t } = useTranslation();
const { terminals, terminalTabValue, environmentId } = useMobileTerminalsContext();
const activeId = terminals.find((t) => t.id === terminalTabValue)?.id ?? terminals[0]?.id;
if (!sessionId || !environmentId) {
return (
<div className="flex-1 flex items-center justify-center text-xs text-muted-foreground">
Terminal unavailable — no active session.
{t("task:terminalUnavailableNoActiveSession")}
</div>
);
}
@@ -98,7 +100,7 @@ function MobileTerminalPaneInner({ sessionId }: { sessionId: string | null }) {
<div className="relative flex-1 min-h-0">
{terminals.length === 0 && (
<div className="absolute inset-0 flex items-center justify-center text-xs text-muted-foreground">
Starting terminal…
{t("task:startingTerminal")}
</div>
)}
{terminals.map((t) => (
@@ -13,6 +13,7 @@ import { MobilePillButton } from "./mobile-pill-button";
import { MobilePickerSheet } from "./mobile-picker-sheet";
import { useMobileTerminalsContext } from "./mobile-terminals-context";
import type { Terminal } from "@/hooks/domains/session/use-terminals";
import { useTranslation } from "react-i18next";
function TerminalRow({
terminal,
@@ -27,6 +28,7 @@ function TerminalRow({
onSelect: (id: string) => void;
onAskClose: (terminal: Terminal) => void;
}) {
const { t } = useTranslation();
return (
<div
role="button"
@@ -47,14 +49,14 @@ function TerminalRow({
<span className="text-sm truncate flex-1">{terminal.label}</span>
{isRunning && (
<span className="text-[10px] font-medium px-1.5 py-0.5 rounded bg-emerald-500/15 text-emerald-600 dark:text-emerald-400 leading-none">
running
{t("task:running")}
</span>
)}
{terminal.closable && (
<Button
variant="ghost"
size="icon-sm"
aria-label={`Close ${terminal.label}`}
aria-label={t("task:close2", { label: terminal.label })}
className="cursor-pointer h-7 w-7"
onClick={(e) => {
e.stopPropagation();
@@ -133,6 +135,7 @@ const MobileTerminalsList = memo(function MobileTerminalsList({
sessionId: string | null;
onClose: () => void;
}) {
const { t } = useTranslation();
const { terminals, terminalTabValue, addTerminal, removeTerminal, environmentId } =
useMobileTerminalsContext();
const setRightPanelActiveTab = useAppStore((s) => s.setRightPanelActiveTab);
@@ -179,7 +182,9 @@ const MobileTerminalsList = memo(function MobileTerminalsList({
if (!sessionId) {
return (
<div className="text-xs text-muted-foreground px-2 py-6 text-center">No active session</div>
<div className="text-xs text-muted-foreground px-2 py-6 text-center">
{t("task:noActiveSession")}
</div>
);
}
@@ -187,7 +192,7 @@ const MobileTerminalsList = memo(function MobileTerminalsList({
<div className="flex flex-col gap-2 px-1">
<div className="flex items-center justify-between px-1">
<span className="text-xs font-medium text-muted-foreground">
{terminals.length} terminal{terminals.length === 1 ? "" : "s"}
{t("task:terminalCount", { count: terminals.length })}
</span>
<Button
size="sm"
@@ -197,13 +202,13 @@ const MobileTerminalsList = memo(function MobileTerminalsList({
data-testid="mobile-add-terminal"
>
<IconPlus className="h-4 w-4" />
New terminal
{t("task:newTerminal")}
</Button>
</div>
<div className="flex flex-col gap-0.5">
{terminals.length === 0 && (
<div className="text-xs text-muted-foreground px-2 py-4 text-center">
No terminals yet.
{t("task:noTerminalsYet")}
</div>
)}
{terminals.map((t) => (
@@ -219,7 +224,7 @@ const MobileTerminalsList = memo(function MobileTerminalsList({
</div>
<CloseTerminalConfirmDialog
open={pendingClose !== null}
terminalName={pendingClose?.label || "Terminal"}
terminalName={pendingClose?.label || t("task:terminal")}
onOpenChange={(open) => {
if (!open) setPendingClose(null);
}}
@@ -230,6 +235,7 @@ const MobileTerminalsList = memo(function MobileTerminalsList({
});
function useActiveTerminalPillLabel(): { label: string; count: string | undefined } {
const { t } = useTranslation();
const { terminals, terminalTabValue } = useMobileTerminalsContext();
const activeIdx = terminals.findIndex((t) => t.id === terminalTabValue);
const idx = activeIdx >= 0 ? activeIdx : 0;
@@ -237,7 +243,7 @@ function useActiveTerminalPillLabel(): { label: string; count: string | undefine
const total = terminals.length;
let count: string | undefined;
if (total > 1) count = `${idx + 1}/${total}`;
return { label: active?.label ?? "Terminal", count };
return { label: active?.label ?? t("task:terminal"), count };
}
export const MobileTerminalsPicker = memo(function MobileTerminalsPicker({
@@ -249,6 +255,7 @@ export const MobileTerminalsPicker = memo(function MobileTerminalsPicker({
compact?: boolean;
fullWidth?: boolean;
}) {
const { t } = useTranslation();
const [open, setOpen] = useState(false);
const { label, count } = useActiveTerminalPillLabel();
if (!sessionId) return null;
@@ -262,9 +269,9 @@ export const MobileTerminalsPicker = memo(function MobileTerminalsPicker({
isOpen={open}
onClick={() => setOpen(true)}
data-testid="mobile-terminals-pill"
ariaLabel={`Active terminal: ${label}. Tap to switch.`}
ariaLabel={t("task:activeTerminalTapToSwitch", { label })}
/>
<MobilePickerSheet open={open} onOpenChange={setOpen} title="Terminals">
<MobilePickerSheet open={open} onOpenChange={setOpen} title={t("task:terminals")}>
<MobileTerminalsList sessionId={sessionId} onClose={() => setOpen(false)} />
</MobilePickerSheet>
</>
@@ -68,12 +68,12 @@ function buildMobileNavItems({
return [
{
panel: "chat",
label: "Chat",
label: t("task:chat"),
icon: <IconMessage className="h-5 w-5" />,
},
{
panel: "plan",
label: "Plan",
label: t("task:plan"),
icon: <IconListCheck className="h-5 w-5" />,
badge: planBadge ? (
<span className="absolute -top-0.5 -right-0.5 h-2 w-2 rounded-full bg-amber-500" />
@@ -81,7 +81,7 @@ function buildMobileNavItems({
},
{
panel: "changes",
label: "Changes",
label: t("task:changes"),
icon: <IconGitBranch className="h-5 w-5" />,
badge:
changesBadge > 0 ? (
@@ -95,21 +95,21 @@ function buildMobileNavItems({
},
{
panel: "files",
label: "Files",
label: t("task:files"),
icon: <IconFolder className="h-5 w-5" />,
},
...(hasReview
? [
{
panel: "review" as const,
label: "Review",
label: t("task:review"),
icon: <IconGitMerge className="h-5 w-5" />,
},
]
: []),
{
panel: "terminal",
label: "Terminal",
label: t("task:terminal"),
icon: <IconTerminal2 className="h-5 w-5" />,
},
...(hasMobilePluginPanels()
@@ -125,7 +125,7 @@ function buildMobileNavItems({
...(showStatus
? [
{
label: "Status",
label: t("task:status"),
icon: <IconActivity className="h-5 w-5" />,
onClick: onOpenStatus,
...(connectionIssueSeverity !== "none" && { connectionIssueSeverity }),
@@ -31,6 +31,7 @@ import { MRDetailPanelComponent, mrTaskKey } from "@/components/gitlab/mr-detail
import { PluginTaskPanel } from "../plugin-task-panel";
import { parsePluginPanelId } from "@/lib/state/layout-manager/plugin-panels";
import { useEffectiveMobilePanel, type MobileReviewSource } from "./mobile-plugin-panel-lifecycle";
import { useTranslation } from "react-i18next";
export { resolveMobilePluginPanel } from "./mobile-plugin-panel-lifecycle";
@@ -91,10 +92,11 @@ function MobileChatPanelContent({
effectiveSessionId: string | null;
onOpenFile: (path: string, repo?: string) => void;
}) {
const { t } = useTranslation();
if (!activeTaskId) {
return (
<div className="flex-1 flex items-center justify-center text-muted-foreground">
No task selected
{t("task:noTaskSelected")}
</div>
);
}
@@ -2,6 +2,7 @@
import { IconGitPullRequest, IconLoader2 } from "@tabler/icons-react";
import { Button } from "@kandev/ui/button";
import { Trans, useTranslation } from "react-i18next";
export function MobilePRBranchSummary({
displayBranch,
@@ -16,14 +17,24 @@ export function MobilePRBranchSummary({
<div className="text-sm text-muted-foreground">
{baseBranch ? (
<span>
Creating {terminology.shortName} from{" "}
<span className="font-medium text-foreground">{displayBranch}</span> to{" "}
<span className="font-medium text-foreground">{baseBranch}</span>
<Trans
i18nKey="task:creatingFromTo"
values={{ shortName: terminology.shortName, displayBranch, baseBranch }}
>
Creating {{ shortName: terminology.shortName }} from{" "}
<span className="font-medium text-foreground">{displayBranch}</span> to{" "}
<span className="font-medium text-foreground">{baseBranch}</span>
</Trans>
</span>
) : (
<span>
Creating {terminology.shortName} from{" "}
<span className="font-medium text-foreground">{displayBranch}</span>
<Trans
i18nKey="task:creatingFrom"
values={{ shortName: terminology.shortName, displayBranch }}
>
Creating {{ shortName: terminology.shortName }} from{" "}
<span className="font-medium text-foreground">{displayBranch}</span>
</Trans>
</span>
)}
</div>
@@ -39,11 +50,17 @@ export function CommitSummary({
uncommittedAdditions: number;
uncommittedDeletions: number;
}) {
if (uncommittedCount <= 0) return <span>No changes to commit</span>;
const { t } = useTranslation();
if (uncommittedCount <= 0) return <span>{t("task:noChangesToCommit")}</span>;
return (
<span>
<span className="font-medium text-foreground">{uncommittedCount}</span> file
{uncommittedCount !== 1 ? "s" : ""} changed
<Trans
i18nKey="task:filesChanged"
count={uncommittedCount}
values={{ count: uncommittedCount }}
>
<span className="font-medium text-foreground">{uncommittedCount}</span> files changed
</Trans>
{(uncommittedAdditions > 0 || uncommittedDeletions > 0) && (
<span className="ml-2">
(<span className="text-green-600">+{uncommittedAdditions}</span>
@@ -72,6 +89,7 @@ export function PRSubmitButton({
terminology: { shortName: string };
branchPushed: boolean;
}) {
const { t } = useTranslation();
return (
<Button
onClick={() => onCreatePR(prTitle.trim(), prBody.trim(), prDraft)}
@@ -81,12 +99,14 @@ export function PRSubmitButton({
{isGitLoading ? (
<>
<IconLoader2 className="h-4 w-4 animate-spin mr-2" />
Creating...
{t("task:creatingEllipsis")}
</>
) : (
<>
<IconGitPullRequest className="h-4 w-4 mr-2" />
{branchPushed ? "Retry" : "Create"} {terminology.shortName}
{branchPushed
? t("task:retryChangeRequest", { shortName: terminology.shortName })
: t("task:createChangeRequest", { shortName: terminology.shortName })}
</>
)}
</Button>
@@ -54,6 +54,10 @@ import {
MobilePRBranchSummary,
PRSubmitButton,
} from "./session-mobile-top-bar-dialog-parts";
import { useTranslation } from "react-i18next";
// A Git branch name, not copy: shown when the task has no recorded base branch.
const DEFAULT_BASE_BRANCH = "main";
export function computeUncommittedStats(files: Record<string, FileInfo> | undefined) {
let additions = 0;
@@ -70,6 +74,7 @@ export function computeUncommittedStats(files: Record<string, FileInfo> | undefi
type GitOperationRunner = () => Promise<{ success: boolean; output: string; error?: string }>;
function useGitToast() {
const { t } = useTranslation();
const { toast } = useToast();
return useCallback(
@@ -78,26 +83,27 @@ function useGitToast() {
const result = await operation();
if (result.success) {
toast({
title: `${operationName} successful`,
description: result.output.slice(0, 200) || `${operationName} completed successfully`,
title: t("task:successful", { operationName }),
description:
result.output.slice(0, 200) || t("task:completedSuccessfully", { operationName }),
variant: "success",
});
} else {
toast({
title: `${operationName} failed`,
description: result.error || "An error occurred",
title: t("task:failed2", { operationName }),
description: result.error || t("task:anErrorOccurred"),
variant: "error",
});
}
} catch (error) {
toast({
title: `${operationName} failed`,
description: error instanceof Error ? error.message : "An unexpected error occurred",
title: t("task:failed2", { operationName }),
description: error instanceof Error ? error.message : t("task:anUnexpectedErrorOccurred"),
variant: "error",
});
}
},
[toast],
[toast, t],
);
}
@@ -154,6 +160,7 @@ export function CommitDialog({
isGitLoading: boolean;
onCommit: (message: string, stageAll: boolean) => void;
}) {
const { t } = useTranslation();
const form = useCommitDialogForm(onOpenChange, onCommit);
return (
@@ -162,7 +169,7 @@ export function CommitDialog({
<DialogHeader>
<DialogTitle className="flex items-center gap-2">
<IconGitCommit className="h-5 w-5 text-amber-500" />
Commit Changes
{t("task:commitChanges")}
</DialogTitle>
</DialogHeader>
<div className="space-y-4 py-2">
@@ -175,19 +182,19 @@ export function CommitDialog({
</div>
<Input
data-testid="commit-title-input"
placeholder="Enter commit message..."
placeholder={t("task:enterCommitMessage")}
value={form.commitMessage}
onChange={(e) => form.setCommitMessage(e.target.value)}
autoFocus
/>
<div className="space-y-2">
<Label htmlFor="commit-body-mobile" className="text-sm">
Description
{t("task:description2")}
</Label>
<Textarea
id="commit-body-mobile"
data-testid="commit-body-input"
placeholder="Add details about this change..."
placeholder={t("task:addDetailsAboutThisChange")}
value={form.commitBody}
onChange={(e) => form.setCommitBody(e.target.value)}
rows={3}
@@ -204,14 +211,14 @@ export function CommitDialog({
htmlFor="stage-all-mobile"
className="text-sm text-muted-foreground cursor-pointer"
>
Stage all changes before committing
{t("task:stageAllChangesBeforeCommitting")}
</Label>
</div>
</div>
<DialogFooter>
<DialogClose asChild>
<Button type="button" variant="outline">
Cancel
{t("common:cancel")}
</Button>
</DialogClose>
<Button
@@ -222,12 +229,12 @@ export function CommitDialog({
{isGitLoading ? (
<>
<IconLoader2 className="h-4 w-4 animate-spin mr-2" />
Committing...
{t("task:committingEllipsis")}
</>
) : (
<>
<IconCheck className="h-4 w-4 mr-2" />
Commit
{t("task:commit")}
</>
)}
</Button>
@@ -260,6 +267,7 @@ export function PRDialog({
onCreatePR,
branchPushed,
}: PRDialogProps) {
const { t } = useTranslation();
const [prTitle, setPrTitle] = useState("");
const [prBody, setPrBody] = useState("");
const [prDraft, setPrDraft] = useState(true);
@@ -279,7 +287,7 @@ export function PRDialog({
<DialogHeader>
<DialogTitle className="flex items-center gap-2">
<IconGitPullRequest className="h-5 w-5 text-cyan-500" />
Create {terminology.longName}
{t("task:createChangeRequestLong", { longName: terminology.longName })}
</DialogTitle>
</DialogHeader>
<div className="space-y-4 py-2">
@@ -291,13 +299,13 @@ export function PRDialog({
/>
<div className="space-y-2">
<Label htmlFor="pr-title-mobile" className="text-sm">
Title
{t("common:title")}
</Label>
<input
id="pr-title-mobile"
type="text"
aria-label={`${terminology.longName} title`}
placeholder={`${terminology.longName} title...`}
aria-label={t("task:title2", { longName: terminology.longName })}
placeholder={t("task:title3", { longName: terminology.longName })}
value={prTitle}
onChange={(e) => setPrTitle(e.target.value)}
className="flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring"
@@ -306,11 +314,11 @@ export function PRDialog({
</div>
<div className="space-y-2">
<Label htmlFor="pr-body-mobile" className="text-sm">
Description
{t("task:description2")}
</Label>
<Textarea
id="pr-body-mobile"
placeholder="Describe your changes..."
placeholder={t("task:describeYourChanges")}
value={prBody}
onChange={(e) => setPrBody(e.target.value)}
rows={4}
@@ -324,14 +332,14 @@ export function PRDialog({
onCheckedChange={(checked) => setPrDraft(checked === true)}
/>
<Label htmlFor="pr-draft-mobile" className="text-sm cursor-pointer">
Create as draft
{t("task:createAsDraft")}
</Label>
</div>
</div>
<DialogFooter>
<DialogClose asChild>
<Button type="button" variant="outline">
Cancel
{t("common:cancel")}
</Button>
</DialogClose>
<PRSubmitButton
@@ -362,6 +370,73 @@ export type GitActionsDropdownProps = {
onMerge: () => void;
};
function PushSubmenu({
disabled,
onPush,
}: {
disabled: boolean;
onPush: (force: boolean) => void;
}) {
const { t } = useTranslation();
return (
<DropdownMenuSub>
<DropdownMenuSubTrigger className="cursor-pointer gap-3" disabled={disabled}>
<IconCloudUpload className="h-4 w-4 text-green-500" />
<span className="flex-1">{t("task:push")}</span>
</DropdownMenuSubTrigger>
<DropdownMenuSubContent>
<DropdownMenuItem
className="cursor-pointer gap-3"
onClick={() => onPush(false)}
disabled={disabled}
>
<IconCloudUpload className="h-4 w-4 text-green-500" />
<span>{t("task:push")}</span>
</DropdownMenuItem>
<DropdownMenuItem
className="cursor-pointer gap-3"
onClick={() => onPush(true)}
disabled={disabled}
>
<IconAlertTriangle className="h-4 w-4 text-orange-500" />
<span>{t("task:forcePush")}</span>
</DropdownMenuItem>
</DropdownMenuSubContent>
</DropdownMenuSub>
);
}
function RebaseMergeItems({
disabled,
baseBranch,
onRebase,
onMerge,
}: {
disabled: boolean;
baseBranch: string | undefined;
onRebase: () => void;
onMerge: () => void;
}) {
const { t } = useTranslation();
// `main` is the default branch name, not copy — it travels through as an
// interpolated value so it is never translated.
const branch = baseBranch || DEFAULT_BASE_BRANCH;
return (
<>
<DropdownMenuItem className="cursor-pointer gap-3" onClick={onRebase} disabled={disabled}>
<IconGitCherryPick className="h-4 w-4 text-orange-500" />
<span className="flex-1">{t("task:rebase")}</span>
<span className="text-xs text-muted-foreground">{t("task:ontoBranch", { branch })}</span>
</DropdownMenuItem>
<DropdownMenuItem className="cursor-pointer gap-3" onClick={onMerge} disabled={disabled}>
<IconGitMerge className="h-4 w-4 text-purple-500" />
<span className="flex-1">{t("task:merge")}</span>
<span className="text-xs text-muted-foreground">{t("task:fromBranch", { branch })}</span>
</DropdownMenuItem>
</>
);
}
export function GitActionsDropdown({
sessionId,
isGitLoading,
@@ -374,6 +449,7 @@ export function GitActionsDropdown({
onRebase,
onMerge,
}: GitActionsDropdownProps) {
const { t } = useTranslation();
const disabled = isGitLoading || !sessionId;
const terminology = useChangeRequestTerminology(sessionId);
return (
@@ -383,7 +459,7 @@ export function GitActionsDropdown({
size="icon-sm"
variant="ghost"
className="h-11 w-11 cursor-pointer"
aria-label="Git actions"
aria-label={t("task:gitActions")}
data-testid="mobile-git-actions"
>
{isGitLoading ? (
@@ -400,7 +476,7 @@ export function GitActionsDropdown({
disabled={disabled}
>
<IconGitCommit className={`h-4 w-4 ${uncommittedCount > 0 ? "text-amber-500" : ""}`} />
<span className="flex-1">Commit</span>
<span className="flex-1">{t("task:commit")}</span>
{uncommittedCount > 0 && (
<span className="rounded-full bg-amber-500/20 px-1.5 py-0.5 text-xs font-medium text-amber-600">
{uncommittedCount}
@@ -409,53 +485,43 @@ export function GitActionsDropdown({
</DropdownMenuItem>
<DropdownMenuItem className="cursor-pointer gap-3" onClick={onPRClick} disabled={disabled}>
<IconGitPullRequest className="h-4 w-4 text-cyan-500" />
<span className="flex-1">Create {terminology.shortName}</span>
<span className="flex-1">
{t("task:createChangeRequest", { shortName: terminology.shortName })}
</span>
</DropdownMenuItem>
<DropdownMenuSeparator />
<DropdownMenuItem className="cursor-pointer gap-3" onClick={onPull} disabled={disabled}>
<IconCloudDownload className="h-4 w-4 text-blue-500" />
<span className="flex-1">Pull</span>
<span className="flex-1">{t("task:pull")}</span>
</DropdownMenuItem>
<DropdownMenuSub>
<DropdownMenuSubTrigger className="cursor-pointer gap-3" disabled={disabled}>
<IconCloudUpload className="h-4 w-4 text-green-500" />
<span className="flex-1">Push</span>
</DropdownMenuSubTrigger>
<DropdownMenuSubContent>
<DropdownMenuItem
className="cursor-pointer gap-3"
onClick={() => onPush(false)}
disabled={disabled}
>
<IconCloudUpload className="h-4 w-4 text-green-500" />
<span>Push</span>
</DropdownMenuItem>
<DropdownMenuItem
className="cursor-pointer gap-3"
onClick={() => onPush(true)}
disabled={disabled}
>
<IconAlertTriangle className="h-4 w-4 text-orange-500" />
<span>Force Push</span>
</DropdownMenuItem>
</DropdownMenuSubContent>
</DropdownMenuSub>
<PushSubmenu disabled={disabled} onPush={onPush} />
<DropdownMenuSeparator />
<DropdownMenuItem className="cursor-pointer gap-3" onClick={onRebase} disabled={disabled}>
<IconGitCherryPick className="h-4 w-4 text-orange-500" />
<span className="flex-1">Rebase</span>
<span className="text-xs text-muted-foreground">onto {baseBranch || "main"}</span>
</DropdownMenuItem>
<DropdownMenuItem className="cursor-pointer gap-3" onClick={onMerge} disabled={disabled}>
<IconGitMerge className="h-4 w-4 text-purple-500" />
<span className="flex-1">Merge</span>
<span className="text-xs text-muted-foreground">from {baseBranch || "main"}</span>
</DropdownMenuItem>
<RebaseMergeItems
disabled={disabled}
baseBranch={baseBranch}
onRebase={onRebase}
onMerge={onMerge}
/>
</DropdownMenuContent>
</DropdownMenu>
);
}
/** The success toast for a created change request. Extracted to keep
* `useMobileGitActions` under the function-length cap. */
function createPrSuccessToast(
longName: string,
prUrl: string | undefined,
draft: boolean,
t: (key: string, opts?: Record<string, unknown>) => string,
) {
return {
title: draft ? t("task:draftCreated", { longName }) : t("task:created2", { longName }),
description: prUrl || t("task:createdSuccessfully", { longName }),
variant: "success" as const,
};
}
export function useMobileGitActions(
sessionId: string | null | undefined,
baseBranch: string | undefined,
@@ -463,6 +529,7 @@ export function useMobileGitActions(
setPrDialogOpen: (v: boolean) => void,
setPrBranchPushed: (v: boolean) => void,
) {
const { t } = useTranslation();
const { toast } = useToast();
const activeTaskId = useAppStore((state) => state.tasks.activeTaskId);
const setPendingPrUrlForTask = useAppStore((state) => state.setPendingPrUrlForTask);
@@ -475,29 +542,33 @@ export function useMobileGitActions(
const { commit } = useSessionGit(sessionId ?? null);
const handleGitOperation = useGitToast();
// Hoisted out of the two callbacks below so both share one expression.
const remoteTarget = baseBranch?.replace(/^origin\//, "") || DEFAULT_BASE_BRANCH;
const handlePull = useCallback(
() => handleGitOperation(() => pull(), "Pull"),
[handleGitOperation, pull],
() => handleGitOperation(() => pull(), t("task:pull")),
[handleGitOperation, pull, t],
);
const handlePush = useCallback(
(force = false) => handleGitOperation(() => push({ force }), force ? "Force Push" : "Push"),
[handleGitOperation, push],
(force = false) =>
handleGitOperation(() => push({ force }), force ? t("task:forcePush") : t("task:push")),
[handleGitOperation, push, t],
);
const handleRebase = useCallback(
() => handleGitOperation(() => rebase(remoteTarget), t("task:rebase")),
[handleGitOperation, rebase, remoteTarget, t],
);
const handleMerge = useCallback(
() => handleGitOperation(() => merge(remoteTarget), t("task:merge")),
[handleGitOperation, merge, remoteTarget, t],
);
const handleRebase = useCallback(() => {
const target = baseBranch?.replace(/^origin\//, "") || "main";
return handleGitOperation(() => rebase(target), "Rebase");
}, [handleGitOperation, rebase, baseBranch]);
const handleMerge = useCallback(() => {
const target = baseBranch?.replace(/^origin\//, "") || "main";
return handleGitOperation(() => merge(target), "Merge");
}, [handleGitOperation, merge, baseBranch]);
const handleCommit = useCallback(
async (message: string, stageAll: boolean) => {
setCommitDialogOpen(false);
await handleGitOperation(() => commit(message, stageAll), "Commit");
await handleGitOperation(() => commit(message, stageAll), t("task:commit"));
},
[handleGitOperation, commit, setCommitDialogOpen],
[handleGitOperation, commit, setCommitDialogOpen, t],
);
const handleCreatePR = useCallback(
@@ -507,11 +578,7 @@ export function useMobileGitActions(
const result = await createPR(title, body, baseBranch, draft);
if (result.success) {
const terms = resolveChangeRequestTerminology(result.provider, defaultTerminology);
toast({
title: draft ? `Draft ${terms.longName} created` : `${terms.longName} created`,
description: result.pr_url || `${terms.longName} created successfully`,
variant: "success",
});
toast(createPrSuccessToast(terms.longName, result.pr_url, draft, t));
if (result.pr_url) {
if (activeTaskId) {
setPendingPrUrlForTask(activeTaskId, "", result.pr_url);
@@ -530,8 +597,8 @@ export function useMobileGitActions(
setPrBranchPushed(false);
} catch (e) {
toast({
title: `Create ${defaultTerminology.shortName} failed`,
description: e instanceof Error ? e.message : "An error occurred",
title: t("task:createFailed", { shortName: defaultTerminology.shortName }),
description: e instanceof Error ? e.message : t("task:anErrorOccurred"),
variant: "error",
});
}
@@ -545,6 +612,7 @@ export function useMobileGitActions(
defaultTerminology,
activeTaskId,
setPendingPrUrlForTask,
t,
],
);
@@ -18,6 +18,7 @@ import {
import { TaskTopBarPluginActions } from "@/components/task/task-top-bar-plugin-actions";
import { MRTopbarButton } from "@/components/gitlab/mr-topbar-button";
import { linkToTaskOverview } from "@/lib/links";
import { useTranslation } from "react-i18next";
type SessionMobileTopBarProps = {
taskId?: string | null;
@@ -50,9 +51,10 @@ function MobileTaskTitle({
totalAdditions: number;
totalDeletions: number;
}) {
const { t } = useTranslation();
return (
<div className="flex flex-col min-w-0 flex-1">
<span className="text-sm font-medium truncate">{taskTitle ?? "Task details"}</span>
<span className="text-sm font-medium truncate">{taskTitle ?? t("task:taskDetails")}</span>
{displayBranch && (
<div className="flex items-center gap-1.5">
<IconGitBranch className="h-3 w-3 text-muted-foreground flex-shrink-0" />
@@ -104,6 +106,7 @@ function RemoteExecutorIndicator({
}
function ApproveButton({ onApprove }: { onApprove: () => void }) {
const { t } = useTranslation();
return (
<Button
size="sm"
@@ -111,7 +114,7 @@ function ApproveButton({ onApprove }: { onApprove: () => void }) {
onClick={onApprove}
>
<IconCheck className="h-3.5 w-3.5" />
Approve
{t("task:approve")}
</Button>
);
}
@@ -234,6 +237,7 @@ function MobileTopBarActions({
onMerge,
onMenuClick,
}: MobileTopBarActionsProps) {
const { t } = useTranslation();
return (
<div className="flex items-center gap-1" data-testid="mobile-topbar-actions">
<MRTopbarButton compact mobile />
@@ -276,7 +280,7 @@ function MobileTopBarActions({
className="cursor-pointer"
onClick={onMenuClick}
data-testid="mobile-session-menu"
aria-label="Open task switcher"
aria-label={t("task:openTaskSwitcher")}
>
<IconMenu2 className="h-4 w-4" />
</Button>
@@ -287,6 +291,7 @@ function MobileTopBarActions({
export const SessionMobileTopBar = memo(function SessionMobileTopBar(
props: SessionMobileTopBarProps,
) {
const { t } = useTranslation();
const [commitDialogOpen, setCommitDialogOpen] = useState(false);
const [prDialogOpen, setPrDialogOpen] = useState(false);
const [prBranchPushed, setPrBranchPushed] = useState(false);
@@ -322,7 +327,7 @@ export const SessionMobileTopBar = memo(function SessionMobileTopBar(
<Button variant="ghost" size="icon-sm" asChild>
<Link
href={linkToTaskOverview({ workspaceId: props.workspaceId ?? undefined })}
aria-label="Task overview"
aria-label={t("task:taskOverview")}
>
<IconArrowLeft className="h-4 w-4" />
</Link>
@@ -24,6 +24,7 @@ import { repositorySlug } from "@/lib/repository-slug";
import { statusSummaryActiveErrorPreview } from "@/lib/task-status-summary";
import { resolvePreferredSessionId } from "../task-select-helpers";
import { mapSnapshotToKanban, sortByUpdatedAtDesc } from "./session-task-switcher-sheet-helpers";
import { useTranslation } from "react-i18next";
type SheetItemCtx = {
repositoryPathsById: Map<string, string | undefined>;
@@ -466,6 +467,7 @@ function useSheetDeleteActions(
store: ReturnType<typeof useAppStoreApi>,
removeTaskFromBoard: ReturnType<typeof useTaskRemoval>["removeTaskFromBoard"],
) {
const { t } = useTranslation();
const { deleteTaskById } = useTaskActions();
const [deletingTask, setDeletingTask] = useState<{
id: string;
@@ -480,11 +482,11 @@ function useSheetDeleteActions(
const task = findSheetTask(state, taskId);
setDeletingTask({
id: taskId,
title: task?.title ?? "this task",
title: task?.title ?? t("task:thisTask"),
executorType: task?.primaryExecutorType,
});
},
[store],
[store, t],
);
const handleDeleteConfirm = useCallback(
@@ -522,6 +524,7 @@ function useSheetDeleteActions(
}
export function useSheetActions(workspaceId: string | null, onOpenChange: (open: boolean) => void) {
const { t } = useTranslation();
const setActiveTask = useAppStore((state) => state.setActiveTask);
const setActiveSession = useAppStore((state) => state.setActiveSession);
const store = useAppStoreApi();
@@ -577,11 +580,11 @@ export function useSheetActions(workspaceId: string | null, onOpenChange: (open:
const task = findSheetTask(state, taskId);
setArchivingTask({
id: taskId,
title: task?.title ?? "this task",
title: task?.title ?? t("task:thisTask"),
executorType: task?.primaryExecutorType,
});
},
[store],
[store, t],
);
const handleArchiveConfirm = useCallback(
@@ -186,13 +186,14 @@ function TaskSwitcherSurfaceHeader({
onNewTask: () => void;
presentation: "sheet" | "drawer";
}) {
const { t } = useTranslation();
const content = (
<>
<div className="flex items-center justify-between">
{presentation === "drawer" ? (
<DrawerTitle className="text-base">Tasks</DrawerTitle>
<DrawerTitle className="text-base">{t("task:tasks")}</DrawerTitle>
) : (
<SheetTitle className="text-base">Tasks</SheetTitle>
<SheetTitle className="text-base">{t("task:tasks")}</SheetTitle>
)}
<div className="flex items-center gap-2">
{workspaceId && (
@@ -204,7 +205,7 @@ function TaskSwitcherSurfaceHeader({
data-testid="mobile-sheet-quick-chat"
>
<IconMessageCircle className="h-4 w-4" />
Chat
{t("task:chat")}
</Button>
)}
<Button
@@ -214,7 +215,7 @@ function TaskSwitcherSurfaceHeader({
onClick={onNewTask}
>
<IconPlus className="h-4 w-4" />
New
{t("task:new")}
</Button>
</div>
</div>
@@ -3,8 +3,10 @@
import { useCallback, useState } from "react";
import { useTaskActions } from "@/hooks/use-task-actions";
import { useToast } from "@/components/toast-provider";
import { useTranslation } from "react-i18next";
export function useMobileTaskRename() {
const { t } = useTranslation();
const { renameTaskById } = useTaskActions();
const { toast } = useToast();
const [renamingTask, setRenamingTask] = useState<{ id: string; title: string } | null>(null);
@@ -21,15 +23,15 @@ export function useMobileTaskRename() {
} catch (error) {
console.error("Failed to rename task:", error);
toast({
title: "Failed to rename task",
description: error instanceof Error ? error.message : "Failed to rename task",
title: t("task:failedToRenameTask"),
description: error instanceof Error ? error.message : t("task:failedToRenameTask"),
variant: "error",
});
} finally {
setRenamingTask(null);
}
},
[renameTaskById, renamingTask, toast],
[renameTaskById, renamingTask, toast, t],
);
return { renamingTask, setRenamingTask, handleRenameTask, handleRenameSubmit };
@@ -7,6 +7,7 @@ import { Button } from "@kandev/ui/button";
import { Tooltip, TooltipContent, TooltipTrigger } from "@kandev/ui/tooltip";
import { ShareDialog } from "./share-dialog";
import { useTranslation } from "react-i18next";
type Props = {
taskId: string;
@@ -27,6 +28,7 @@ const TOP_BAR_BUTTON_CLASS =
* (rather than disabling it) for unshareable sessions.
*/
export function ShareButton({ taskId, sessionId, iconOnly = false }: Props) {
const { t } = useTranslation();
const [open, setOpen] = useState(false);
const button = iconOnly ? (
@@ -35,7 +37,7 @@ export function ShareButton({ taskId, sessionId, iconOnly = false }: Props) {
size="sm"
onClick={() => setOpen(true)}
className={TOP_BAR_BUTTON_CLASS}
aria-label="Share this task"
aria-label={t("task:shareThisTask")}
data-testid="share-task-button"
>
<IconShare className="h-3.5 w-3.5" />
@@ -46,11 +48,11 @@ export function ShareButton({ taskId, sessionId, iconOnly = false }: Props) {
size="sm"
onClick={() => setOpen(true)}
className="cursor-pointer"
aria-label="Share this task"
aria-label={t("task:shareThisTask")}
data-testid="share-task-button"
>
<IconShare className="h-3.5 w-3.5" />
<span className="ml-1">Share</span>
<span className="ml-1">{t("task:share")}</span>
</Button>
);
@@ -58,7 +60,7 @@ export function ShareButton({ taskId, sessionId, iconOnly = false }: Props) {
<>
<Tooltip>
<TooltipTrigger asChild>{button}</TooltipTrigger>
<TooltipContent>Share this task conversation as a public link</TooltipContent>
<TooltipContent>{t("task:shareThisTaskConversationAsA")}</TooltipContent>
</Tooltip>
<ShareDialog open={open} onOpenChange={setOpen} taskId={taskId} sessionId={sessionId} />
</>
+19 -23
View File
@@ -25,6 +25,7 @@ import { copyToClipboard } from "@/lib/utils/copy-to-clipboard";
import { ShareList } from "./share-list";
import { ShareSnapshotPreview } from "./share-snapshot-preview";
import { useTranslation } from "react-i18next";
type DialogState =
| { kind: "loading" }
@@ -41,6 +42,7 @@ type Props = {
};
export function ShareDialog({ open, onOpenChange, taskId, sessionId }: Props) {
const { t } = useTranslation();
const [state, setState] = useState<DialogState>({ kind: "loading" });
const { shares, refresh } = useShares(open ? taskId : null, open ? sessionId : null);
@@ -52,10 +54,10 @@ export function ShareDialog({ open, onOpenChange, taskId, sessionId }: Props) {
} catch (e) {
setState({
kind: "error",
message: e instanceof Error ? e.message : "Failed to load preview.",
message: e instanceof Error ? e.message : t("task:failedToLoadPreview"),
});
}
}, [taskId, sessionId]);
}, [taskId, sessionId, t]);
useEffect(() => {
if (!open) return;
@@ -74,22 +76,19 @@ export function ShareDialog({ open, onOpenChange, taskId, sessionId }: Props) {
} catch (e) {
setState({
kind: "error",
message: e instanceof Error ? e.message : "Failed to publish share.",
message: e instanceof Error ? e.message : t("task:failedToPublishShare"),
});
}
},
[taskId, sessionId, refresh],
[taskId, sessionId, refresh, t],
);
return (
<Dialog open={open} onOpenChange={onOpenChange}>
<DialogContent className="flex max-h-[85vh] w-full max-w-[min(640px,92vw)] flex-col gap-3 overflow-hidden sm:max-w-2xl">
<DialogHeader>
<DialogTitle>Share this task</DialogTitle>
<DialogDescription>
Publish a redacted snapshot of this completed task as a secret GitHub Gist on your
account.
</DialogDescription>
<DialogTitle>{t("task:shareThisTask")}</DialogTitle>
<DialogDescription>{t("task:publishARedactedSnapshotOfThis")}</DialogDescription>
</DialogHeader>
<DialogBody
state={state}
@@ -114,8 +113,9 @@ type BodyProps = {
};
function DialogBody({ state, shares, onPublish, onRevoked, onRetry, onClose }: BodyProps) {
const { t } = useTranslation();
if (state.kind === "loading") {
return <p className="text-sm text-muted-foreground">Building preview…</p>;
return <p className="text-sm text-muted-foreground">{t("task:buildingPreview")}</p>;
}
if (state.kind === "error") {
return (
@@ -125,10 +125,10 @@ function DialogBody({ state, shares, onPublish, onRevoked, onRetry, onClose }: B
</Alert>
<DialogFooter>
<Button variant="outline" onClick={onClose} className="cursor-pointer">
Close
{t("task:close")}
</Button>
<Button onClick={onRetry} className="cursor-pointer">
Try again
{t("task:tryAgain")}
</Button>
</DialogFooter>
</div>
@@ -145,10 +145,7 @@ function DialogBody({ state, shares, onPublish, onRevoked, onRetry, onClose }: B
<div className="flex min-w-0 flex-1 flex-col gap-3 overflow-hidden">
<Alert>
<IconAlertTriangle className="h-4 w-4" />
<AlertDescription>
Anyone with this link can view this conversation. Review the preview carefully before
publishing — once published, the snapshot is uploaded to GitHub Gist on your account.
</AlertDescription>
<AlertDescription>{t("task:anyoneWithThisLinkCanView")}</AlertDescription>
</Alert>
<div className="flex min-w-0 flex-1 flex-col gap-3 overflow-y-auto pr-1">
<ShareList shares={shares} onRevoked={onRevoked} />
@@ -161,14 +158,14 @@ function DialogBody({ state, shares, onPublish, onRevoked, onRetry, onClose }: B
disabled={isPublishing}
className="cursor-pointer"
>
Cancel
{t("common:cancel")}
</Button>
<Button
onClick={() => onPublish(snapshot)}
disabled={isPublishing}
className="cursor-pointer"
>
{isPublishing ? "Publishing…" : "Publish to GitHub Gist"}
{isPublishing ? t("task:publishing") : t("task:publishToGithubGist")}
</Button>
</DialogFooter>
</div>
@@ -186,6 +183,7 @@ function PublishedState({
onRevoked: () => void;
onClose: () => void;
}) {
const { t } = useTranslation();
const [copied, setCopied] = useState(false);
const handleCopy = async () => {
@@ -198,9 +196,7 @@ function PublishedState({
return (
<div className="flex min-w-0 flex-1 flex-col gap-3 overflow-hidden">
<Alert>
<AlertDescription>
Published. Anyone with this link can view the conversation.
</AlertDescription>
<AlertDescription>{t("task:publishedAnyoneWithThisLinkCan")}</AlertDescription>
</Alert>
<div className="flex min-w-0 items-center gap-2 rounded border bg-muted/30 p-2">
<a
@@ -221,7 +217,7 @@ function PublishedState({
className="flex-shrink-0 cursor-pointer"
>
<IconCopy className="h-3 w-3" />
{copied ? "Copied" : "Copy"}
{copied ? t("task:copied2") : t("task:copy")}
</Button>
</div>
<div className="min-w-0 flex-1 overflow-y-auto pr-1">
@@ -229,7 +225,7 @@ function PublishedState({
</div>
<DialogFooter>
<Button onClick={onClose} className="cursor-pointer">
Done
{t("task:done")}
</Button>
</DialogFooter>
</div>
@@ -6,6 +6,7 @@ import { IconExternalLink, IconTrash } from "@tabler/icons-react";
import { Button } from "@kandev/ui/button";
import { revokeShare, type Share } from "@/lib/api/domains/share-api";
import { useTranslation } from "react-i18next";
type Props = {
shares: Share[];
@@ -18,13 +19,14 @@ type Props = {
* onRevoked() so the parent can refresh from the source of truth.
*/
export function ShareList({ shares, onRevoked }: Props) {
const { t } = useTranslation();
const active = shares.filter((s) => !s.revoked_at);
if (active.length === 0) return null;
return (
<div className="flex flex-col gap-2 rounded border bg-muted/30 p-3">
<div className="text-xs font-medium text-muted-foreground">
Active shares for this session
{t("task:activeSharesForThisSession")}
</div>
<ul className="flex flex-col gap-1.5">
{active.map((share) => (
@@ -36,6 +38,7 @@ export function ShareList({ shares, onRevoked }: Props) {
}
function ShareRow({ share, onRevoked }: { share: Share; onRevoked: () => void }) {
const { t } = useTranslation();
const [busy, setBusy] = useState(false);
const [err, setErr] = useState<string | null>(null);
@@ -46,7 +49,7 @@ function ShareRow({ share, onRevoked }: { share: Share; onRevoked: () => void })
await revokeShare(share.id);
onRevoked();
} catch (e) {
setErr(e instanceof Error ? e.message : "Failed to revoke share.");
setErr(e instanceof Error ? e.message : t("task:failedToRevokeShare"));
} finally {
// Always clear busy — on success the row usually unmounts via the
// parent's refresh, but if it stays rendered (e.g. error path or a
@@ -75,10 +78,10 @@ function ShareRow({ share, onRevoked }: { share: Share; onRevoked: () => void })
onClick={handleRevoke}
disabled={busy}
className="flex-shrink-0 cursor-pointer"
aria-label="Revoke share"
aria-label={t("task:revokeShare")}
>
<IconTrash className="h-3 w-3" />
{busy ? "Revoking…" : "Revoke"}
{busy ? t("task:revoking") : t("task:revoke")}
</Button>
</div>
{err && <span className="text-xs text-destructive">{err}</span>}
@@ -6,6 +6,7 @@ import ReactMarkdown, { type Components } from "react-markdown";
import remarkGfm from "remark-gfm";
import type { SnapshotPreview, SnapshotPreviewMessage } from "@/lib/api/domains/share-api";
import { useTranslation } from "react-i18next";
type Props = {
snapshot: SnapshotPreview;
@@ -39,6 +40,7 @@ const previewMarkdownComponents: Components = {
* exactly what will be published" easy to verify at a glance.
*/
export function ShareSnapshotPreview({ snapshot }: Props) {
const { t } = useTranslation();
const slices = previewSlices(snapshot.messages);
return (
<div className="flex min-w-0 flex-col gap-2">
@@ -50,16 +52,19 @@ export function ShareSnapshotPreview({ snapshot }: Props) {
{snapshot.session.executor_type && (
<Badge variant="outline">{snapshot.session.executor_type}</Badge>
)}
<span>{snapshot.messages.length} messages</span>
<span>{t("task:snapshotMessageCount", { count: snapshot.messages.length })}</span>
{snapshot.redaction.applied_rules.length > 0 && (
<span>Redacted: {snapshot.redaction.applied_rules.join(", ")}</span>
// `applied_rules` are redaction-rule ids from the share API — data, not copy.
<span>
{t("task:redactedRules", { rules: snapshot.redaction.applied_rules.join(", ") })}
</span>
)}
</div>
<ScrollArea className="h-72 rounded border bg-muted/30">
<div className="flex flex-col gap-3 p-3">
{snapshot.messages.length === 0 && (
<p className="text-sm text-muted-foreground italic">
This conversation has no shareable content.
{t("task:thisConversationHasNoShareableContent")}
</p>
)}
{slices.head.map((msg, idx) => (
@@ -67,8 +72,7 @@ export function ShareSnapshotPreview({ snapshot }: Props) {
))}
{slices.hiddenCount > 0 && (
<p className="text-center text-xs text-muted-foreground italic py-1">
… {slices.hiddenCount} more message{slices.hiddenCount === 1 ? "" : "s"} hidden in
this preview (still included in the share) …
{t("task:hiddenMessagesInPreview", { count: slices.hiddenCount })}
</p>
)}
{slices.tail.map((msg, idx) => (
@@ -114,6 +118,7 @@ function PreviewMessage({ message }: { message: SnapshotPreviewMessage }) {
}
function PreviewBlock({ block }: { block: SnapshotPreviewMessage["blocks"][number] }) {
const { t } = useTranslation();
if (block.kind === "text") {
return (
<div className="markdown-body min-w-0 text-sm">
@@ -126,8 +131,8 @@ function PreviewBlock({ block }: { block: SnapshotPreviewMessage["blocks"][numbe
if (block.kind === "tool_call") {
return (
<div className="min-w-0 rounded bg-muted/60 p-1.5 text-xs">
<div className="truncate font-mono" title={block.tool_name || "tool"}>
{block.tool_name || "tool"}
<div className="truncate font-mono" title={block.tool_name || t("task:tool")}>
{block.tool_name || t("task:tool")}
</div>
{block.text && (
<p className="truncate text-muted-foreground" title={block.text}>
@@ -21,10 +21,16 @@ import type {
FilterOp,
FilterValue,
} from "@/lib/state/slices/ui/sidebar-view-types";
import { DIMENSION_METAS, getDimensionMeta, getOpLabel } from "./filter-dimension-registry";
import {
DIMENSION_METAS,
getDimensionEnumOptions,
getDimensionMeta,
getOpLabel,
} from "./filter-dimension-registry";
import { useFilterValueOptions } from "./use-filter-value-options";
import { FilterMultiSelect } from "./filter-multi-select";
import { buildOptionGroups, hasGroupedOptions } from "./filter-option-groups";
import { useTranslation } from "react-i18next";
type ValueOption = { value: string; label: string; color?: string; group?: string };
@@ -64,9 +70,10 @@ function normaliseValueForDimension(
}
export function FilterClauseEditor({ clause, onChange, onRemove }: Props) {
const { t } = useTranslation();
const meta = getDimensionMeta(clause.dimension);
const enumOptions = useFilterValueOptions(clause.dimension);
const availableOptions = meta.enumOptions ?? enumOptions;
const availableOptions = getDimensionEnumOptions(meta) ?? enumOptions;
function handleDimensionChange(next: FilterDimension) {
const nextMeta = getDimensionMeta(next);
@@ -110,7 +117,7 @@ export function FilterClauseEditor({ clause, onChange, onRemove }: Props) {
<SelectContent>
{DIMENSION_METAS.map((m) => (
<SelectItem key={m.dimension} value={m.dimension} className="text-xs">
{m.label}
{t(m.labelKey)}
</SelectItem>
))}
</SelectContent>
@@ -142,7 +149,7 @@ export function FilterClauseEditor({ clause, onChange, onRemove }: Props) {
className="h-6 w-6 cursor-pointer text-muted-foreground hover:text-foreground"
onClick={onRemove}
data-testid="filter-clause-remove"
aria-label="Remove filter"
aria-label={t("task:removeFilter")}
>
<IconX className="h-3.5 w-3.5" />
</Button>
@@ -159,6 +166,7 @@ function ValueInput({
options: ValueOption[];
onChange: (v: FilterValue) => void;
}) {
const { t } = useTranslation();
const meta = getDimensionMeta(clause.dimension);
if (meta.valueKind === "boolean") {
@@ -171,7 +179,7 @@ function ValueInput({
<Input
value={String(clause.value ?? "")}
onChange={(e) => onChange(e.target.value)}
placeholder={meta.placeholder ?? "Value"}
placeholder={meta.placeholderKey ? t(meta.placeholderKey) : t("task:value")}
className="h-7 min-w-0 flex-1 text-xs"
data-testid="filter-value-input"
/>
@@ -195,12 +203,12 @@ function ValueInput({
className="h-7 min-w-0 flex-1 text-xs"
data-testid="filter-value-select"
>
<SelectValue placeholder="Select value" />
<SelectValue placeholder={t("task:selectValue")} />
</SelectTrigger>
<SelectContent>
{options.length === 0 ? (
<SelectItem value="__empty__" disabled className="text-xs">
No options
{t("task:noOptions")}
</SelectItem>
) : (
<GroupedSelectItems options={options} />
@@ -1,5 +1,6 @@
import { describe, expect, it } from "vitest";
import { DIMENSION_METAS } from "./filter-dimension-registry";
import { afterAll, describe, expect, it } from "vitest";
import { activateLocale, i18n } from "@/lib/i18n";
import { DIMENSION_METAS, getDimensionEnumOptions, getOpLabel } from "./filter-dimension-registry";
describe("sidebar filter dimensions", () => {
it("offers the archived boolean dimension", () => {
@@ -13,3 +14,56 @@ describe("sidebar filter dimensions", () => {
});
});
});
/**
* The registry stores catalog KEYS, not resolved copy: it is module scope, so a
* resolved `t()` would freeze at the boot locale. These cover the two helpers
* that turn those keys into displayable labels, and assert that the persisted
* `value` / `dimension` side stays English across a locale switch.
*/
describe("localized dimension labels", () => {
afterAll(async () => {
if (i18n.language !== "en") await activateLocale("en");
});
it("resolves fixed enum options to labels while keeping their values English", async () => {
await activateLocale("en");
const state = DIMENSION_METAS.find((m) => m.dimension === "state")!;
const en = getDimensionEnumOptions(state)!;
expect(en).toEqual([
{ value: "review", label: "Review" },
{ value: "in_progress", label: "In progress" },
{ value: "backlog", label: "Backlog" },
]);
await activateLocale("pseudo");
const pseudo = getDimensionEnumOptions(state)!;
// Values are persisted in a saved view — they must not move.
expect(pseudo.map((o) => o.value)).toEqual(["review", "in_progress", "backlog"]);
expect(pseudo[0].label).not.toBe("Review");
expect(pseudo[0].label).toBe(i18n.t("task:filterStateReview"));
});
it("returns undefined for a dimension with no fixed options", () => {
const workflow = DIMENSION_METAS.find((m) => m.dimension === "workflow")!;
expect(getDimensionEnumOptions(workflow)).toBeUndefined();
});
it("uses Show/Hide for boolean dimensions and the plain verb otherwise", async () => {
await activateLocale("en");
expect(getOpLabel("is", "boolean")).toBe("Show");
expect(getOpLabel("is_not", "boolean")).toBe("Hide");
expect(getOpLabel("in", "boolean")).toBe("in");
expect(getOpLabel("is", "enum")).toBe("is");
expect(getOpLabel("is_not", "text")).toBe("is not");
expect(getOpLabel("matches", "text")).toBe("contains");
expect(getOpLabel("not_matches", "text")).toBe("does not contain");
});
it("follows a locale switch", async () => {
await activateLocale("pseudo");
expect(getOpLabel("is", "boolean")).toBe(i18n.t("task:filterOpShow"));
expect(getOpLabel("matches", "text")).toBe(i18n.t("task:filterOpContains"));
});
});
@@ -1,28 +1,32 @@
import { t } from "@/lib/i18n";
import type { FilterDimension, FilterOp } from "@/lib/state/slices/ui/sidebar-view-types";
export type DimensionValueKind = "boolean" | "enum" | "text";
// `labelKey` / `placeholderKey` hold catalog keys rather than copy: this table
// is module scope, so a resolved `t()` here would freeze at the boot locale.
// The `value` fields are persisted filter values and stay in English.
export type DimensionMeta = {
dimension: FilterDimension;
label: string;
labelKey: string;
valueKind: DimensionValueKind;
ops: FilterOp[];
enumOptions?: Array<{ value: string; label: string }>;
placeholder?: string;
enumOptions?: Array<{ value: string; labelKey: string }>;
placeholderKey?: string;
defaultOp: FilterOp;
defaultValue: string | string[] | boolean;
};
const STATE_OPTIONS = [
{ value: "review", label: "Review" },
{ value: "in_progress", label: "In progress" },
{ value: "backlog", label: "Backlog" },
{ value: "review", labelKey: "task:filterStateReview" },
{ value: "in_progress", labelKey: "task:filterStateInProgress" },
{ value: "backlog", labelKey: "task:filterStateBacklog" },
];
export const DIMENSION_METAS: DimensionMeta[] = [
{
dimension: "archived",
label: "Archived",
labelKey: "task:filterDimensionArchived",
valueKind: "boolean",
ops: ["is", "is_not"],
defaultOp: "is",
@@ -30,7 +34,7 @@ export const DIMENSION_METAS: DimensionMeta[] = [
},
{
dimension: "isPRReview",
label: "PR review",
labelKey: "task:filterDimensionPrReview",
valueKind: "boolean",
ops: ["is", "is_not"],
defaultOp: "is",
@@ -38,7 +42,7 @@ export const DIMENSION_METAS: DimensionMeta[] = [
},
{
dimension: "isIssueWatch",
label: "Issue watch",
labelKey: "task:filterDimensionIssueWatch",
valueKind: "boolean",
ops: ["is", "is_not"],
defaultOp: "is",
@@ -46,7 +50,7 @@ export const DIMENSION_METAS: DimensionMeta[] = [
},
{
dimension: "hasDiff",
label: "Has diff",
labelKey: "task:filterDimensionHasDiff",
valueKind: "boolean",
ops: ["is", "is_not"],
defaultOp: "is",
@@ -54,7 +58,7 @@ export const DIMENSION_METAS: DimensionMeta[] = [
},
{
dimension: "hasPR",
label: "Has PR",
labelKey: "task:filterDimensionHasPr",
valueKind: "boolean",
ops: ["is", "is_not"],
defaultOp: "is",
@@ -62,7 +66,7 @@ export const DIMENSION_METAS: DimensionMeta[] = [
},
{
dimension: "state",
label: "State",
labelKey: "task:filterDimensionState",
valueKind: "enum",
ops: ["in", "not_in", "is", "is_not"],
enumOptions: STATE_OPTIONS,
@@ -71,7 +75,7 @@ export const DIMENSION_METAS: DimensionMeta[] = [
},
{
dimension: "workflow",
label: "Workflow",
labelKey: "task:filterDimensionWorkflow",
valueKind: "enum",
ops: ["is", "is_not", "in", "not_in"],
defaultOp: "is",
@@ -79,7 +83,7 @@ export const DIMENSION_METAS: DimensionMeta[] = [
},
{
dimension: "workflowStep",
label: "Workflow step",
labelKey: "task:filterDimensionWorkflowStep",
valueKind: "enum",
ops: ["is", "is_not", "in", "not_in"],
defaultOp: "is",
@@ -87,7 +91,7 @@ export const DIMENSION_METAS: DimensionMeta[] = [
},
{
dimension: "executorType",
label: "Executor type",
labelKey: "task:filterDimensionExecutorType",
valueKind: "enum",
ops: ["is", "is_not", "in", "not_in"],
defaultOp: "is",
@@ -95,7 +99,7 @@ export const DIMENSION_METAS: DimensionMeta[] = [
},
{
dimension: "repository",
label: "Repository",
labelKey: "task:filterDimensionRepository",
valueKind: "enum",
ops: ["is", "is_not", "in", "not_in"],
defaultOp: "is",
@@ -103,10 +107,10 @@ export const DIMENSION_METAS: DimensionMeta[] = [
},
{
dimension: "titleMatch",
label: "Title",
labelKey: "task:filterDimensionTitle",
valueKind: "text",
ops: ["matches", "not_matches"],
placeholder: "Substring...",
placeholderKey: "task:filterTitlePlaceholder",
defaultOp: "matches",
defaultValue: "",
},
@@ -118,19 +122,27 @@ export function getDimensionMeta(dim: FilterDimension): DimensionMeta {
return meta;
}
export const OP_LABELS: Record<FilterOp, string> = {
is: "is",
is_not: "is not",
in: "in",
not_in: "not in",
matches: "contains",
not_matches: "does not contain",
const OP_LABEL_KEYS: Record<FilterOp, string> = {
is: "task:filterOpIs",
is_not: "task:filterOpIsNot",
in: "task:filterOpIn",
not_in: "task:filterOpNotIn",
matches: "task:filterOpContains",
not_matches: "task:filterOpDoesNotContain",
};
// Module-level `t` is fine here: these run from render, not at import.
export function getOpLabel(op: FilterOp, valueKind: DimensionValueKind): string {
if (valueKind === "boolean") {
if (op === "is") return "Show";
if (op === "is_not") return "Hide";
if (op === "is") return t("task:filterOpShow");
if (op === "is_not") return t("task:filterOpHide");
}
return OP_LABELS[op];
return t(OP_LABEL_KEYS[op]);
}
/** Resolves a dimension's fixed enum options to displayable labels. */
export function getDimensionEnumOptions(
meta: DimensionMeta,
): Array<{ value: string; label: string }> | undefined {
return meta.enumOptions?.map((o) => ({ value: o.value, label: t(o.labelKey) }));
}
@@ -14,6 +14,7 @@ import {
} from "@kandev/ui/command";
import { cn } from "@/lib/utils";
import { buildOptionGroups, hasGroupedOptions } from "./filter-option-groups";
import { useTranslation } from "react-i18next";
export type MultiSelectOption = { value: string; label: string; color?: string; group?: string };
@@ -29,9 +30,12 @@ export function FilterMultiSelect({
options,
selected,
onChange,
placeholder = "Select values",
searchPlaceholder = "Search…",
placeholder,
searchPlaceholder,
}: Props) {
const { t } = useTranslation();
const resolvedPlaceholder = placeholder ?? t("task:selectValues");
const resolvedSearchPlaceholder = searchPlaceholder ?? t("task:searchEllipsis");
const [open, setOpen] = useState(false);
const selectedSet = new Set(selected);
const labelByValue = new Map(options.map((o) => [o.value, o.label]));
@@ -56,7 +60,7 @@ export function FilterMultiSelect({
selected={selected}
labelByValue={labelByValue}
colorByValue={colorByValue}
placeholder={placeholder}
placeholder={resolvedPlaceholder}
/>
<IconChevronDown className="ml-auto h-3 w-3 shrink-0 opacity-50" />
</button>
@@ -67,9 +71,9 @@ export function FilterMultiSelect({
data-testid="filter-value-multi-popover"
>
<Command>
<CommandInput placeholder={searchPlaceholder} />
<CommandInput placeholder={resolvedSearchPlaceholder} />
<CommandList>
<CommandEmpty>No options.</CommandEmpty>
<CommandEmpty>{t("task:noOptions2")}</CommandEmpty>
<GroupedOptions options={options} selectedSet={selectedSet} onToggle={toggle} />
</CommandList>
</Command>
@@ -2,14 +2,18 @@
import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from "@kandev/ui/select";
import type { GroupKey } from "@/lib/state/slices/ui/sidebar-view-types";
import { useTranslation } from "react-i18next";
const GROUP_OPTIONS: Array<{ key: GroupKey; label: string }> = [
{ key: "none", label: "None" },
{ key: "repository", label: "Repository" },
{ key: "workflow", label: "Workflow" },
{ key: "workflowStep", label: "Workflow step" },
{ key: "executorType", label: "Executor type" },
{ key: "state", label: "State" },
// `labelKey` holds a catalog key, not copy: this table is module scope, so a
// resolved `t()` here would freeze at the boot locale. `key` is a persisted
// grouping value and stays in English.
const GROUP_OPTIONS: Array<{ key: GroupKey; labelKey: string }> = [
{ key: "none", labelKey: "task:groupNone" },
{ key: "repository", labelKey: "task:groupRepository" },
{ key: "workflow", labelKey: "task:groupWorkflow" },
{ key: "workflowStep", labelKey: "task:groupWorkflowStep" },
{ key: "executorType", labelKey: "task:groupExecutorType" },
{ key: "state", labelKey: "task:groupState" },
];
type Props = {
@@ -18,6 +22,7 @@ type Props = {
};
export function GroupPicker({ value, onChange }: Props) {
const { t } = useTranslation();
return (
<Select value={value} onValueChange={(v) => onChange(v as GroupKey)}>
<SelectTrigger size="sm" className="h-7 w-full text-xs" data-testid="group-key-select">
@@ -26,7 +31,7 @@ export function GroupPicker({ value, onChange }: Props) {
<SelectContent>
{GROUP_OPTIONS.map((opt) => (
<SelectItem key={opt.key} value={opt.key} className="text-xs">
{opt.label}
{t(opt.labelKey)}
</SelectItem>
))}
</SelectContent>
@@ -7,12 +7,47 @@ import { toast } from "@/lib/toast/sonner";
import { useAppStore } from "@/components/state-provider";
import { useRegisterCommands } from "@/hooks/use-register-commands";
import type { CommandItem } from "@/lib/commands/types";
import type { SidebarView } from "@/lib/state/slices/ui/sidebar-view-types";
import { cn } from "@/lib/utils";
import { SidebarViewChips } from "./sidebar-view-chips";
import { SidebarFilterPopover } from "./sidebar-filter-popover";
import { useSidebarViewPopover } from "./use-sidebar-view-popover";
import { useTranslation } from "react-i18next";
// `group` is the command-palette bucket shared with `components/session-commands.tsx`;
// it is grouping taxonomy rather than this surface's copy, so it migrates with
// that file. `keywords` are search tokens, not displayed copy.
function useSidebarCommands(
views: SidebarView[],
onOpenChange: (open: boolean) => void,
setActiveView: (id: string) => void,
): CommandItem[] {
const { t } = useTranslation();
return useMemo<CommandItem[]>(() => {
const list: CommandItem[] = [
{
id: "sidebar-open-filter",
label: t("task:openSidebarFilters"),
group: "Sidebar",
keywords: ["filter", "sort", "group", "view", "sidebar"],
action: () => onOpenChange(true),
},
];
for (const view of views) {
list.push({
id: `sidebar-switch-view-${view.id}`,
label: t("task:switchSidebarView", { name: view.name }),
group: "Sidebar",
keywords: ["view", "switch", "sidebar", view.name.toLowerCase()],
action: () => setActiveView(view.id),
});
}
return list;
}, [t, onOpenChange, views, setActiveView]);
}
export function SidebarFilterBar() {
const { t } = useTranslation();
const filterTriggerRef = useRef<HTMLButtonElement>(null);
const draft = useAppStore((s) => s.sidebarViews.draft);
const activeViewId = useAppStore((s) => s.sidebarViews.activeViewId);
@@ -28,28 +63,7 @@ export function SidebarFilterBar() {
newViewDisabledReason,
} = useSidebarViewPopover();
const commands = useMemo<CommandItem[]>(() => {
const list: CommandItem[] = [
{
id: "sidebar-open-filter",
label: "Open sidebar filters",
group: "Sidebar",
keywords: ["filter", "sort", "group", "view", "sidebar"],
action: () => onOpenChange(true),
},
];
for (const view of views) {
list.push({
id: `sidebar-switch-view-${view.id}`,
label: `Switch sidebar view: ${view.name}`,
group: "Sidebar",
keywords: ["view", "switch", "sidebar", view.name.toLowerCase()],
action: () => setActiveView(view.id),
});
}
return list;
}, [onOpenChange, views, setActiveView]);
useRegisterCommands(commands);
useRegisterCommands(useSidebarCommands(views, onOpenChange, setActiveView));
return (
<div
@@ -84,12 +98,14 @@ export function SidebarFilterBar() {
data-testid="sidebar-new-view"
data-disabled-reason={newViewDisabledReason ?? undefined}
aria-label={
newViewDisabledReason ? `New view unavailable. ${newViewDisabledReason}` : "New view"
newViewDisabledReason
? t("task:newViewUnavailable", { newViewDisabledReason })
: t("task:newView")
}
title={newViewDisabledReason ?? undefined}
>
<IconPlus className="h-3.5 w-3.5" />
New view
{t("task:newView")}
</Button>
<SidebarFilterPopover
open={open}
@@ -104,7 +120,7 @@ export function SidebarFilterBar() {
size="icon"
className="h-10 w-10 shrink-0 cursor-pointer md:h-6 md:w-6"
data-testid="sidebar-filter-gear"
aria-label="Sidebar filters"
aria-label={t("task:sidebarFilters")}
>
<IconAdjustments className="h-4 w-4" />
{hasDraft && (
@@ -17,6 +17,7 @@ import { FilterClauseEditor } from "./filter-clause-editor";
import { SortPicker } from "./sort-picker";
import { GroupPicker } from "./group-picker";
import { ViewHeaderRow } from "./view-manager";
import { useTranslation } from "react-i18next";
type Props = {
trigger: React.ReactNode;
@@ -52,6 +53,7 @@ export function SidebarFilterPopover({
renameRequestedViewId,
onRenameRequestHandled,
}: Props) {
const { t } = useTranslation();
const views = useAppStore((s) => s.sidebarViews.views);
const activeViewId = useAppStore((s) => s.sidebarViews.activeViewId);
const storedDraft = useAppStore((s) => s.sidebarViews.draft);
@@ -121,12 +123,12 @@ export function SidebarFilterPopover({
/>
<div className="border-b px-2 pt-0 pb-2">
<SectionLabel>Sort</SectionLabel>
<SectionLabel>{t("task:sort")}</SectionLabel>
<SortPicker value={current.sort} onChange={(sort) => updateDraft({ sort })} />
</div>
<div className="px-2 pt-0 pb-2">
<SectionLabel>Group by</SectionLabel>
<SectionLabel>{t("task:groupBy")}</SectionLabel>
<GroupPicker value={current.group} onChange={(group) => updateDraft({ group })} />
</div>
</PopoverContent>
@@ -152,10 +154,11 @@ function FilterSection({
onChange: (next: FilterClause) => void;
onRemove: (id: string) => void;
}) {
const { t } = useTranslation();
return (
<div className="border-b px-2 pt-0 pb-2">
<div className="-mt-1 mb-1 flex items-center justify-between">
<span className={SECTION_LABEL_CLASS}>Filters</span>
<span className={SECTION_LABEL_CLASS}>{t("task:filters")}</span>
<Button
type="button"
size="sm"
@@ -165,7 +168,7 @@ function FilterSection({
data-testid="filter-add-button"
>
<IconPlus className="mr-1 h-3 w-3" />
Add
{t("task:add")}
</Button>
</div>
{filters.length > 0 && (
@@ -4,13 +4,17 @@ import { IconArrowUp, IconArrowDown } from "@tabler/icons-react";
import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from "@kandev/ui/select";
import { Button } from "@kandev/ui/button";
import type { SortKey, SortSpec } from "@/lib/state/slices/ui/sidebar-view-types";
import { useTranslation } from "react-i18next";
const SORT_OPTIONS: Array<{ key: SortKey; label: string }> = [
{ key: "state", label: "Status" },
{ key: "updatedAt", label: "Updated" },
{ key: "createdAt", label: "Created" },
{ key: "title", label: "Title" },
{ key: "custom", label: "Custom" },
// `labelKey` holds a catalog key, not copy: this table is module scope, so a
// resolved `t()` here would freeze at the boot locale. `key` is a persisted
// sort value and stays in English.
const SORT_OPTIONS: Array<{ key: SortKey; labelKey: string }> = [
{ key: "state", labelKey: "task:sortStatus" },
{ key: "updatedAt", labelKey: "task:sortUpdated" },
{ key: "createdAt", labelKey: "task:sortCreated" },
{ key: "title", labelKey: "task:sortTitle" },
{ key: "custom", labelKey: "task:sortCustom" },
];
type Props = {
@@ -19,6 +23,7 @@ type Props = {
};
export function SortPicker({ value, onChange }: Props) {
const { t } = useTranslation();
// Direction has no meaning for the custom sort — its order is the user's
// drag, not an asc/desc field. Hide the toggle to avoid surprising flips.
const isCustom = value.key === "custom";
@@ -31,7 +36,7 @@ export function SortPicker({ value, onChange }: Props) {
<SelectContent>
{SORT_OPTIONS.map((opt) => (
<SelectItem key={opt.key} value={opt.key} className="text-xs">
{opt.label}
{t(opt.labelKey)}
</SelectItem>
))}
</SelectContent>
@@ -47,7 +52,7 @@ export function SortPicker({ value, onChange }: Props) {
}
data-testid="sort-direction-toggle"
data-direction={value.direction}
aria-label={`Sort direction ${value.direction}`}
aria-label={t("task:sortDirection", { direction: value.direction })}
>
{value.direction === "asc" ? (
<IconArrowUp className="h-3.5 w-3.5" />
@@ -3,11 +3,12 @@
import { useCallback, useEffect, useState } from "react";
import { useAppStore } from "@/components/state-provider";
import { MAX_SIDEBAR_VIEWS } from "@/lib/state/slices/ui/sidebar-view-builtins";
import { t } from "@/lib/i18n";
export function getNewViewDisabledReason(viewCount: number, hasDraft: boolean): string | null {
if (hasDraft) return "Save or discard changes before creating a new view.";
if (hasDraft) return t("task:saveOrDiscardBeforeNewView");
if (viewCount >= MAX_SIDEBAR_VIEWS) {
return `You can save up to ${MAX_SIDEBAR_VIEWS} views.`;
return t("task:viewLimitReached", { count: MAX_SIDEBAR_VIEWS });
}
return null;
}
@@ -4,6 +4,7 @@ import { useLayoutEffect, useRef, useState } from "react";
import { Input } from "@kandev/ui/input";
import { Button } from "@kandev/ui/button";
import type { SidebarView } from "@/lib/state/slices/ui/sidebar-view-types";
import { useTranslation } from "react-i18next";
type HeaderMode = "view" | "rename" | "saveAs";
@@ -21,6 +22,7 @@ type HeaderProps = {
};
export function ViewHeaderRow(props: HeaderProps) {
const { t } = useTranslation();
const [mode, setMode] = useState<HeaderMode>("view");
const [nameDraft, setNameDraft] = useState("");
const [editingViewId, setEditingViewId] = useState<string | null>(null);
@@ -71,7 +73,9 @@ export function ViewHeaderRow(props: HeaderProps) {
return (
<div className="flex items-center justify-between gap-2">
<div className="flex flex-1 items-center gap-2 text-xs">
<span className="text-muted-foreground">{mode === "saveAs" ? "Save as:" : "View:"}</span>
<span className="text-muted-foreground">
{mode === "saveAs" ? t("task:saveAs") : t("task:view")}
</span>
{isEditing ? (
<NameInput
mode={mode}
@@ -107,6 +111,7 @@ function NameDisplay({
activeView: SidebarView | undefined;
hasDraft: boolean;
}) {
const { t } = useTranslation();
return (
<>
<span className="font-medium" data-testid="sidebar-filter-active-view-name">
@@ -116,7 +121,7 @@ function NameDisplay({
<span
className="h-1.5 w-1.5 rounded-full bg-amber-500"
data-testid="sidebar-filter-dirty-indicator"
title="Unsaved changes"
title={t("common:unsavedChanges")}
/>
)}
</>
@@ -136,6 +141,7 @@ function NameInput({
onSubmit: () => void;
onCancel: () => void;
}) {
const { t } = useTranslation();
const inputRef = useRef<HTMLInputElement>(null);
useLayoutEffect(() => {
@@ -146,14 +152,14 @@ function NameInput({
return (
<Input
ref={inputRef}
aria-label={mode === "rename" ? "View name" : "New view name"}
aria-label={mode === "rename" ? t("task:viewName") : t("task:newViewName")}
value={value}
onChange={(e) => onChange(e.target.value)}
onKeyDown={(e) => {
if (e.key === "Enter") onSubmit();
if (e.key === "Escape") onCancel();
}}
placeholder={mode === "saveAs" ? "New view name" : undefined}
placeholder={mode === "saveAs" ? t("task:newViewName") : undefined}
className="h-6 flex-1 text-xs"
data-testid={mode === "rename" ? "view-rename-input" : "view-save-as-name-input"}
/>
@@ -171,6 +177,7 @@ function EditingActions({
onSubmit: () => void;
onCancel: () => void;
}) {
const { t } = useTranslation();
return (
<>
<Button
@@ -181,7 +188,7 @@ function EditingActions({
disabled={!canSubmit}
data-testid={mode === "rename" ? "view-rename-confirm" : "view-save-as-confirm"}
>
{mode === "rename" ? "Save" : "Create"}
{mode === "rename" ? t("common:save") : t("task:create")}
</Button>
<Button
type="button"
@@ -190,7 +197,7 @@ function EditingActions({
className="h-6 cursor-pointer text-xs"
onClick={onCancel}
>
Cancel
{t("common:cancel")}
</Button>
</>
);
@@ -215,6 +222,7 @@ function ViewActions({
onDiscard: () => void;
onDelete: () => void;
}) {
const { t } = useTranslation();
const canOverwrite = hasDraft && !!activeView;
return (
<>
@@ -227,7 +235,7 @@ function ViewActions({
onClick={onSaveOverwrite}
data-testid="view-save-button"
>
Save
{t("common:save")}
</Button>
)}
{hasDraft && (
@@ -239,7 +247,7 @@ function ViewActions({
onClick={onSaveAs}
data-testid="view-save-as-button"
>
Save as…
{t("task:saveAs2")}
</Button>
)}
{hasDraft && (
@@ -251,7 +259,7 @@ function ViewActions({
onClick={onDiscard}
data-testid="view-discard-button"
>
Discard
{t("task:discard")}
</Button>
)}
{!hasDraft && activeView && (
@@ -263,7 +271,7 @@ function ViewActions({
onClick={onRename}
data-testid="view-rename-button"
>
Rename
{t("task:rename")}
</Button>
)}
{!hasDraft && activeView && canDelete && (
@@ -275,7 +283,7 @@ function ViewActions({
onClick={onDelete}
data-testid="view-delete-button"
>
Delete
{t("task:delete")}
</Button>
)}
</>
@@ -105,7 +105,7 @@ function TaskBreadcrumb({ task }: { task: Task }) {
<BreadcrumbList className="text-sm">
<BreadcrumbItem>
<BreadcrumbLink asChild>
<Link href="/office/tasks">Tasks</Link>
<Link href="/office/tasks">{t("task:tasks")}</Link>
</BreadcrumbLink>
</BreadcrumbItem>
{task.parentIdentifier && (
@@ -128,13 +128,14 @@ function TaskBreadcrumb({ task }: { task: Task }) {
}
function TaskHeaderRow({ task, activeHold }: { task: Task; activeHold: TreeHold | null }) {
const { t } = useTranslation();
return (
<div className="flex items-center gap-2">
<StatusIcon status={task.status} />
<span className="text-sm font-mono text-muted-foreground">{task.identifier}</span>
{task.projectName && <Badge variant="outline">{task.projectName}</Badge>}
{activeHold?.mode === "pause" && <Badge variant="outline">Paused</Badge>}
{activeHold?.mode === "cancel" && <Badge variant="outline">Cancelled (tree)</Badge>}
{activeHold?.mode === "pause" && <Badge variant="outline">{t("task:paused")}</Badge>}
{activeHold?.mode === "cancel" && <Badge variant="outline">{t("task:cancelledTree")}</Badge>}
<div className="ml-auto">
<Tooltip>
<TooltipTrigger asChild>
@@ -147,7 +148,7 @@ function TaskHeaderRow({ task, activeHold }: { task: Task; activeHold: TreeHold
<IconCopy className="h-4 w-4" />
</Button>
</TooltipTrigger>
<TooltipContent>Copy identifier</TooltipContent>
<TooltipContent>{t("task:copyIdentifier")}</TooltipContent>
</Tooltip>
</div>
</div>
@@ -161,11 +162,12 @@ function ChildIssuesList({
items: Task["children"];
activeHold: TreeHold | null;
}) {
const { t } = useTranslation();
if (items.length === 0) return null;
const holdLabel = activeHold?.mode === "pause" ? "Paused" : "Cancelled (tree)";
const holdLabel = activeHold?.mode === "pause" ? t("task:paused") : t("task:cancelledTree");
return (
<div className="mt-8" data-testid="child-issues-list">
<h2 className="text-sm font-semibold mb-4">Sub-tasks</h2>
<h2 className="text-sm font-semibold mb-4">{t("task:subTasks")}</h2>
<div className="border border-border rounded-lg divide-y divide-border">
{items.map((child) => (
<Link
@@ -186,7 +188,9 @@ function ChildIssuesList({
);
}
type TreeActionRunner = (action: () => Promise<unknown>, message: string) => Promise<void>;
// Takes a catalog key rather than resolved copy: the call sites are plain
// click handlers, and the success toast has to resolve at click time.
type TreeActionRunner = (action: () => Promise<unknown>, messageKey: string) => Promise<void>;
function PauseResumeButton({
taskId,
@@ -201,6 +205,11 @@ function PauseResumeButton({
busy: boolean;
runAction: TreeActionRunner;
}) {
const { t } = useTranslation();
// The success-toast keys are hoisted out of JSX: they are catalog keys, not
// copy, and the literal guard only inspects JSX positions.
const handleResume = () => runAction(() => resumeTaskTree(taskId), "task:taskTreeResumed");
const handlePause = () => runAction(() => pauseTaskTree(taskId), "task:taskTreePaused");
if (activeHold?.mode === "pause") {
return (
<Button
@@ -208,9 +217,9 @@ function PauseResumeButton({
size="sm"
className="cursor-pointer"
disabled={busy}
onClick={() => runAction(() => resumeTaskTree(taskId), "Task tree resumed")}
onClick={handleResume}
>
<IconPlayerPlay className="h-3.5 w-3.5 mr-1" /> Resume tree
<IconPlayerPlay className="h-3.5 w-3.5 mr-1" /> {t("task:resumeTree")}
</Button>
);
}
@@ -221,9 +230,9 @@ function PauseResumeButton({
size="sm"
className="cursor-pointer"
disabled={busy || activeHold?.mode === "cancel"}
onClick={() => runAction(() => pauseTaskTree(taskId), "Task tree paused")}
onClick={handlePause}
>
<IconPlayerPause className="h-3.5 w-3.5 mr-1" /> Pause tree
<IconPlayerPause className="h-3.5 w-3.5 mr-1" /> {t("task:pauseTree")}
</Button>
);
}
@@ -243,6 +252,8 @@ function CancelRestoreButton({
onCancel: () => void;
runAction: TreeActionRunner;
}) {
const { t } = useTranslation();
const handleRestore = () => runAction(() => restoreTaskTree(taskId), "task:taskTreeRestored");
if (activeHold?.mode === "cancel") {
return (
<Button
@@ -250,9 +261,9 @@ function CancelRestoreButton({
size="sm"
className="cursor-pointer"
disabled={busy}
onClick={() => runAction(() => restoreTaskTree(taskId), "Task tree restored")}
onClick={handleRestore}
>
<IconRestore className="h-3.5 w-3.5 mr-1" /> Restore tree
<IconRestore className="h-3.5 w-3.5 mr-1" /> {t("task:restoreTree")}
</Button>
);
}
@@ -265,7 +276,7 @@ function CancelRestoreButton({
disabled={busy}
onClick={onCancel}
>
<IconTrash className="h-3.5 w-3.5 mr-1" /> Cancel tree
<IconTrash className="h-3.5 w-3.5 mr-1" /> {t("task:cancelTree")}
</Button>
);
}
@@ -281,18 +292,24 @@ function TreeControls({
activeHold: TreeHold | null;
onChanged: () => Promise<void>;
}) {
const { t } = useTranslation();
const [cancelOpen, setCancelOpen] = useState(false);
const [busy, setBusy] = useState(false);
const hasTree = (preview?.task_count ?? 1) > 1 || task.children.length > 0;
const runAction = async (action: () => Promise<unknown>, message: string) => {
const handleConfirmCancel = () => {
setCancelOpen(false);
void runAction(() => cancelTaskTree(task.id), "task:taskTreeCancelled");
};
const runAction = async (action: () => Promise<unknown>, messageKey: string) => {
setBusy(true);
try {
await action();
toast.success(message);
toast.success(t(messageKey));
await onChanged();
} catch (error) {
toast.error(error instanceof Error ? error.message : "Tree action failed");
toast.error(error instanceof Error ? error.message : t("task:treeActionFailed"));
} finally {
setBusy(false);
}
@@ -319,7 +336,7 @@ function TreeControls({
/>
{preview && hasTree && (
<span className="inline-flex items-center text-xs text-muted-foreground">
{preview.task_count} tasks affected
{t("task:tasksAffected", { count: preview.task_count })}
</span>
)}
<TreeCancelDialog
@@ -327,10 +344,7 @@ function TreeControls({
onOpenChange={setCancelOpen}
taskCount={preview?.task_count ?? task.children.length + 1}
activeRunCount={preview?.active_run_count ?? 0}
onConfirm={() => {
setCancelOpen(false);
void runAction(() => cancelTaskTree(task.id), "Task tree cancelled");
}}
onConfirm={handleConfirmCancel}
/>
</div>
);
@@ -349,6 +363,7 @@ function TaskActionRow({
onTreeChanged: () => Promise<void>;
onNewSubIssue: () => void;
}) {
const { t } = useTranslation();
const attachInputRef = useRef<HTMLInputElement>(null);
const handleAttachFiles = useCallback(
async (e: React.ChangeEvent<HTMLInputElement>) => {
@@ -363,21 +378,21 @@ function TaskActionRow({
title: file.name,
content: content.slice(0, 100_000),
});
toast.success(`Uploaded ${file.name}`);
toast.success(t("task:uploaded", { name: file.name }));
} catch {
toast.error(`Failed to upload ${file.name}`);
toast.error(t("task:failedToUpload", { name: file.name }));
}
}
e.target.value = "";
},
[task.id],
[task.id, t],
);
return (
<>
<div className="flex gap-2 mt-6">
<Button variant="outline" size="sm" className="cursor-pointer" onClick={onNewSubIssue}>
<IconPlus className="h-3.5 w-3.5 mr-1" /> New Sub-Task
<IconPlus className="h-3.5 w-3.5 mr-1" /> {t("task:newSubTask")}
</Button>
<Button
variant="outline"
@@ -385,7 +400,7 @@ function TaskActionRow({
className="cursor-pointer"
onClick={() => attachInputRef.current?.click()}
>
<IconPaperclip className="h-3.5 w-3.5 mr-1" /> Attach files
<IconPaperclip className="h-3.5 w-3.5 mr-1" /> {t("task:attachFiles")}
</Button>
<input
ref={attachInputRef}
@@ -450,6 +465,7 @@ export function OfficeSimplePane({
onToggleAdvanced,
onCommentsChanged,
}: OfficeSimplePaneProps) {
const { t } = useTranslation();
const [subIssueOpen, setSubIssueOpen] = useState(false);
const [scrollParent, setScrollParent] = useState<HTMLDivElement | null>(null);
const { treePreview, activeHold, refreshTreePreview } = useTaskTreePreview(task.id);
@@ -468,7 +484,7 @@ export function OfficeSimplePane({
htmlFor="advanced-toggle"
className="text-xs text-muted-foreground cursor-pointer"
>
Advanced
{t("task:advanced")}
</Label>
<Switch
id="advanced-toggle"
@@ -482,7 +498,7 @@ export function OfficeSimplePane({
className="text-xs text-muted-foreground underline-offset-2 hover:underline cursor-pointer whitespace-nowrap"
data-testid="task-cross-link"
>
Open in advanced view
{t("task:openInAdvancedView")}
</Link>
</OfficeTopbarPortal>
<div ref={setScrollParent} className="flex-1 min-w-0 overflow-y-auto p-6">
@@ -21,6 +21,7 @@ import type {
TaskSession,
TimelineEvent,
} from "@/app/office/tasks/[id]/types";
import { useTranslation } from "react-i18next";
// TAB_TRIGGER_BASE adds a 1px ring to the active tab on top of
// shadcn's default bg/text active styling, so the selected tab is
@@ -30,6 +31,7 @@ const TAB_TRIGGER_BASE =
"cursor-pointer data-[state=active]:ring-1 data-[state=active]:ring-border";
function AgentTabTrigger({ group }: { group: SessionGroup }) {
const { t } = useTranslation();
const live = isGroupLive(group);
const agentProfileId = group.representative.agentProfileId;
// Resolve the agent's display name + role from the office store so a
@@ -39,7 +41,7 @@ function AgentTabTrigger({ group }: { group: SessionGroup }) {
const resolved = useAppStore((s) =>
agentProfileId ? s.office.agentProfiles.find((a) => a.id === agentProfileId) : undefined,
);
const label = resolved?.name || group.representative.agentName || "Agent";
const label = resolved?.name || group.representative.agentName || t("task:agent");
// Apply the per-agent tint only when the tab is active, so the
// selected state reads clearly. Inactive tabs inherit shadcn's muted
// styling — same as Chat / Activity — with a small dot in the agent
@@ -62,7 +64,7 @@ function AgentTabTrigger({ group }: { group: SessionGroup }) {
<span
data-testid="agent-tab-live-dot"
className="inline-block h-1.5 w-1.5 rounded-full bg-primary animate-pulse"
aria-label="agent running"
aria-label={t("task:agentRunning")}
/>
)}
</span>
@@ -126,6 +128,7 @@ export function ChatActivityTabs({
readOnly,
onCommentsChanged,
}: ChatActivityTabsProps) {
const { t } = useTranslation();
const officeGroups = useMemo(
() => groupSessionsForTimeline(sessions, task.reviewers, task.approvers).filter(isOfficeGroup),
[sessions, task.reviewers, task.approvers],
@@ -135,10 +138,10 @@ export function ChatActivityTabs({
<Tabs defaultValue="chat" className="mt-6">
<TabsList>
<TabsTrigger value="chat" className={TAB_TRIGGER_BASE}>
Chat
{t("task:chat")}
</TabsTrigger>
<TabsTrigger value="activity" className={TAB_TRIGGER_BASE}>
Activity
{t("task:activity")}
</TabsTrigger>
{officeGroups.map((g) => (
<AgentTabTrigger key={g.id} group={g} />
@@ -6,6 +6,7 @@ import { Collapsible, CollapsibleContent, CollapsibleTrigger } from "@kandev/ui/
import { useSessionMessages } from "@/hooks/domains/session/use-session-messages";
import { MessageRenderer } from "@/components/task/chat/message-renderer";
import type { Message } from "@/lib/types/http";
import { useTranslation } from "react-i18next";
type AgentTurnPanelProps = {
taskId: string;
@@ -49,6 +50,7 @@ export function AgentTurnPanel({
toInclusive,
isLive,
}: AgentTurnPanelProps) {
const { t } = useTranslation();
const { messages, isLoading } = useSessionMessages(sessionId);
const turnMessages = useMemo(() => {
const fromMs = fromExclusive ? new Date(fromExclusive).getTime() : -Infinity;
@@ -76,11 +78,11 @@ export function AgentTurnPanel({
<span className="h-1.5 w-1.5 rounded-full bg-muted-foreground/40 shrink-0" />
)}
<span>
{isLive ? "working" : "worked"}
{duration && <span className="ml-1">for {duration}</span>}
{isLive ? t("task:turnWorking") : t("task:turnWorked")}
{duration && <span className="ml-1">{t("task:turnForDuration", { duration })}</span>}
{turnMessages.length > 0 && (
<span className="ml-1">
· {turnMessages.length} message{turnMessages.length === 1 ? "" : "s"}
{t("task:turnMessageCount", { count: turnMessages.length })}
</span>
)}
</span>
@@ -9,6 +9,8 @@ import { formatRelativeTime } from "@/lib/utils";
import type { AgentProfile } from "@/lib/state/slices/office/types";
import type { Task, TaskDecision } from "@/app/office/tasks/[id]/types";
import { MultiSelectPopover, type MultiSelectItem } from "./multi-select-popover";
import { useTranslation } from "react-i18next";
import { t } from "@/lib/i18n";
type AgentItem = MultiSelectItem & { icon: string; name: string };
@@ -56,8 +58,9 @@ const DECISION_ICON_COMPONENT: Record<AgentDecisionStatus, typeof IconCheck> = {
};
function decisionTooltip(decision: TaskDecision | undefined): string {
if (!decision) return "No decision yet";
const verb = decision.decision === "approved" ? "Approved" : "Requested changes";
if (!decision) return t("task:noDecisionYet");
const verb =
decision.decision === "approved" ? t("task:approvedVerb") : t("task:requestedChangesVerb");
const when = formatRelativeTime(decision.createdAt);
const note = decision.comment ? ` — ${decision.comment}` : "";
return `${verb} ${when}${note}`;
@@ -113,6 +116,7 @@ export function AgentsMultiPicker({
apiRemove,
decisionsByAgent,
}: AgentsMultiPickerProps) {
const { t } = useTranslation();
const agents = useAppStore((s) => s.office.agentProfiles);
const mutate = useOptimisticTaskMutation();
const items = useMemo(() => buildAgentItems(agents), [agents]);
@@ -160,7 +164,7 @@ export function AgentsMultiPicker({
remove();
}
}}
aria-label={`Remove ${item.name}`}
aria-label={t("task:remove2", { name: item.name })}
>
<IconX className="h-2.5 w-2.5" />
</span>
@@ -183,8 +187,8 @@ export function AgentsMultiPicker({
renderChip={renderChip}
renderItem={renderItem}
addLabel={addLabel}
searchPlaceholder="Search agents..."
emptyMessage="No agents found."
searchPlaceholder={t("task:searchAgents")}
emptyMessage={t("task:noAgentsFound")}
testId={testId}
/>
);
@@ -11,6 +11,8 @@ import {
type TaskDecisionDTO,
} from "@/lib/api/domains/office-extended-api";
import type { Task, TaskDecision, TaskDecisionRole } from "@/app/office/tasks/[id]/types";
import { useTranslation } from "react-i18next";
import { t } from "@/lib/i18n";
// USER_VIEWER is the synthetic decider id we use for the singleton human
// user. Mirrors the backend's `userSentinel` — the approval endpoints
@@ -57,7 +59,7 @@ function makeOptimisticDecision(
taskId,
deciderType: USER_VIEWER_TYPE,
deciderId: USER_VIEWER_ID,
deciderName: "You",
deciderName: t("task:you"),
role,
decision: verdict,
comment,
@@ -75,7 +77,7 @@ function dtoToDecision(dto: TaskDecisionDTO): TaskDecision {
taskId: dto.task_id,
deciderType: dto.decider_type,
deciderId: dto.decider_id,
deciderName: dto.decider_name ?? "You",
deciderName: dto.decider_name ?? t("task:you"),
role: dto.role,
decision: dto.decision,
comment: dto.comment ?? "",
@@ -90,6 +92,7 @@ type ApprovalActionBarProps = {
type Mode = "idle" | "approve" | "request_changes";
export function ApprovalActionBar({ task }: ApprovalActionBarProps) {
const { t } = useTranslation();
const [mode, setMode] = useState<Mode>("idle");
const [comment, setComment] = useState("");
const [submitting, setSubmitting] = useState(false);
@@ -141,7 +144,7 @@ export function ApprovalActionBar({ task }: ApprovalActionBarProps) {
{mode === "idle" && (
<div className="flex items-center gap-2">
<p className="text-sm text-muted-foreground flex-1">
Your review is requested on this task.
{t("task:yourReviewIsRequestedOnThis")}
</p>
<Button
type="button"
@@ -150,7 +153,7 @@ export function ApprovalActionBar({ task }: ApprovalActionBarProps) {
data-testid="approval-action-approve"
onClick={() => setMode("approve")}
>
<IconCheck className="h-3.5 w-3.5 mr-1" /> Approve
<IconCheck className="h-3.5 w-3.5 mr-1" /> {t("task:approve")}
</Button>
<Button
type="button"
@@ -160,7 +163,7 @@ export function ApprovalActionBar({ task }: ApprovalActionBarProps) {
data-testid="approval-action-request-changes"
onClick={() => setMode("request_changes")}
>
<IconX className="h-3.5 w-3.5 mr-1" /> Request changes
<IconX className="h-3.5 w-3.5 mr-1" /> {t("task:requestChanges")}
</Button>
</div>
)}
@@ -202,11 +205,12 @@ function ApprovalCommentForm({
onCancel,
onSubmit,
}: ApprovalCommentFormProps) {
const { t } = useTranslation();
const required = mode === "request_changes";
const placeholder =
mode === "approve" ? "Add an optional comment" : "Describe what needs to change";
mode === "approve" ? t("task:addAnOptionalComment") : t("task:describeWhatNeedsToChange");
const submitDisabled = submitting || (required && !comment.trim());
const submitLabel = mode === "approve" ? "Approve" : "Request changes";
const submitLabel = mode === "approve" ? t("task:approve") : t("task:requestChanges");
return (
<div className="space-y-2">
<Textarea
@@ -225,7 +229,7 @@ function ApprovalCommentForm({
onClick={onCancel}
disabled={submitting}
>
Cancel
{t("common:cancel")}
</Button>
<Button
type="button"
@@ -4,12 +4,14 @@ import { useMemo } from "react";
import { addTaskApprover, removeTaskApprover } from "@/lib/api/domains/office-extended-api";
import type { Task } from "@/app/office/tasks/[id]/types";
import { AgentsMultiPicker, buildDecisionLookup } from "./agents-multi-picker";
import { useTranslation } from "react-i18next";
type ApproversPickerProps = {
task: Task;
};
export function ApproversPicker({ task }: ApproversPickerProps) {
const { t } = useTranslation();
const decisionsByAgent = useMemo(
() => buildDecisionLookup(task.decisions, "approver"),
[task.decisions],
@@ -19,7 +21,7 @@ export function ApproversPicker({ task }: ApproversPickerProps) {
task={task}
selectedIds={task.approvers}
fieldKey="approvers"
addLabel="+ Add approver"
addLabel={t("task:addApprover")}
testId="approvers-picker-trigger"
apiAdd={addTaskApprover}
apiRemove={removeTaskApprover}
@@ -8,6 +8,7 @@ import { listAgentProfiles } from "@/lib/api/domains/office-api";
import { useOptimisticTaskMutation } from "@/hooks/use-optimistic-task-mutation";
import { AgentAvatar } from "@/app/office/components/agent-avatar";
import type { Task } from "@/app/office/tasks/[id]/types";
import { useTranslation } from "react-i18next";
type AssigneePickerProps = {
task: Task;
@@ -16,6 +17,7 @@ type AssigneePickerProps = {
const NO_ASSIGNEE = "__none__";
export function AssigneePicker({ task }: AssigneePickerProps) {
const { t } = useTranslation();
const agents = useAppStore((s) => s.office.agentProfiles);
const setOfficeAgentProfiles = useAppStore((s) => s.setOfficeAgentProfiles);
const workspaceId = useAppStore((s) => s.workspaces.activeId);
@@ -43,9 +45,9 @@ export function AssigneePicker({ task }: AssigneePickerProps) {
const options = useMemo<ComboboxOption[]>(() => {
const noOpt: ComboboxOption = {
value: NO_ASSIGNEE,
label: "No assignee",
label: t("task:noAssignee"),
keywords: ["none", "unassigned"],
renderLabel: () => <span className="text-muted-foreground">No assignee</span>,
renderLabel: () => <span className="text-muted-foreground">{t("task:noAssignee")}</span>,
};
const agentOpts = agents.map<ComboboxOption>((a) => ({
value: a.id,
@@ -59,7 +61,7 @@ export function AssigneePicker({ task }: AssigneePickerProps) {
),
}));
return [noOpt, ...agentOpts];
}, [agents]);
}, [agents, t]);
const currentValue = task.assigneeAgentProfileId || NO_ASSIGNEE;
@@ -86,9 +88,9 @@ export function AssigneePicker({ task }: AssigneePickerProps) {
options={options}
value={currentValue}
onValueChange={handleSelect}
placeholder="No assignee"
searchPlaceholder="Search agents..."
emptyMessage="No agents found."
placeholder={t("task:noAssignee")}
searchPlaceholder={t("task:searchAgents")}
emptyMessage={t("task:noAgentsFound")}
triggerClassName="h-7 w-full justify-end px-2"
popoverAlign="end"
testId="assignee-picker-trigger"
@@ -13,6 +13,7 @@ import { useOptimisticTaskMutation } from "@/hooks/use-optimistic-task-mutation"
import type { OfficeTask } from "@/lib/state/slices/office/types";
import type { Task } from "@/app/office/tasks/[id]/types";
import { MultiSelectPopover, type MultiSelectItem } from "./multi-select-popover";
import { useTranslation } from "react-i18next";
// formatBlockerCycleMessage renders the toast text for a 400 response
// whose body carries a `cycle` array. The backend already substitutes
@@ -76,6 +77,7 @@ function buildItems(candidates: OfficeTask[], currentTaskId: string): BlockerIte
}
export function BlockersPicker({ task }: BlockersPickerProps) {
const { t } = useTranslation();
const storeTasks = useAppStore((s) => s.office.tasks.items);
const workspaceId = useAppStore((s) => s.workspaces.activeId);
const [fetched, setFetched] = useState<OfficeTask[]>([]);
@@ -141,7 +143,7 @@ export function BlockersPicker({ task }: BlockersPickerProps) {
remove();
}
}}
aria-label={`Remove ${item.identifier}`}
aria-label={t("task:remove3", { identifier: item.identifier })}
>
<IconX className="h-2.5 w-2.5" />
</span>
@@ -165,9 +167,9 @@ export function BlockersPicker({ task }: BlockersPickerProps) {
onRemove={handleRemove}
renderChip={renderChip}
renderItem={renderItem}
addLabel="+ Add blocker"
searchPlaceholder="Search tasks..."
emptyMessage="No tasks found."
addLabel={t("task:addBlocker")}
searchPlaceholder={t("task:searchTasks")}
emptyMessage={t("task:noTasksFound")}
testId="blockers-picker-trigger"
/>
);
@@ -9,6 +9,7 @@ import { useAppStore } from "@/components/state-provider";
import { addLabel, removeLabel } from "@/lib/api/domains/office-extended-api";
import { useOptimisticTaskMutation } from "@/hooks/use-optimistic-task-mutation";
import type { Task, TaskLabelLocal } from "@/app/office/tasks/[id]/types";
import { useTranslation } from "react-i18next";
type LabelsPickerProps = {
task: Task;
@@ -21,6 +22,7 @@ function LabelChips({
labels: TaskLabelLocal[];
onRemove: (name: string) => void;
}) {
const { t } = useTranslation();
return (
<>
{labels.map((label) => (
@@ -45,7 +47,7 @@ function LabelChips({
onRemove(label.name);
}
}}
aria-label={`Remove ${label.name}`}
aria-label={t("task:remove2", { name: label.name })}
>
<IconX className="h-2.5 w-2.5" />
</span>
@@ -56,6 +58,7 @@ function LabelChips({
}
export function LabelsPicker({ task }: LabelsPickerProps) {
const { t } = useTranslation();
const workspaceId = useAppStore((s) => s.workspaces.activeId);
const [open, setOpen] = useState(false);
const [newLabel, setNewLabel] = useState("");
@@ -69,7 +72,7 @@ export function LabelsPicker({ task }: LabelsPickerProps) {
const name = newLabel.trim();
if (!name || !workspaceId) return;
if (labels.some((l) => l.name === name)) {
toast.error("Label already exists");
toast.error(t("task:labelAlreadyExists"));
return;
}
const next = [...labels, { name, color: newColor }];
@@ -104,7 +107,7 @@ export function LabelsPicker({ task }: LabelsPickerProps) {
className="flex flex-wrap items-center justify-end gap-1 ml-auto cursor-pointer rounded px-2 py-1 hover:bg-accent/50 min-h-[28px]"
>
{labels.length === 0 ? (
<span className="text-muted-foreground text-xs">+ Add labels</span>
<span className="text-muted-foreground text-xs">{t("task:addLabels")}</span>
) : (
<LabelChips labels={labels} onRemove={handleRemove} />
)}
@@ -113,7 +116,7 @@ export function LabelsPicker({ task }: LabelsPickerProps) {
<PopoverContent align="end" className="w-64 p-3 space-y-2" portal={false}>
<div className="flex flex-wrap gap-1">
{labels.length === 0 ? (
<span className="text-xs text-muted-foreground">No labels yet</span>
<span className="text-xs text-muted-foreground">{t("task:noLabelsYet")}</span>
) : (
<LabelChips labels={labels} onRemove={handleRemove} />
)}
@@ -122,7 +125,7 @@ export function LabelsPicker({ task }: LabelsPickerProps) {
<input
ref={inputRef}
className="flex-1 px-1.5 py-0.5 text-xs border border-border rounded bg-background"
placeholder="label name"
placeholder={t("task:labelName")}
value={newLabel}
onChange={(e) => setNewLabel(e.target.value)}
onKeyDown={(e) => {
@@ -139,14 +142,14 @@ export function LabelsPicker({ task }: LabelsPickerProps) {
className="h-6 w-6 cursor-pointer rounded border-0 bg-transparent p-0"
value={newColor}
onChange={(e) => setNewColor(e.target.value)}
aria-label="Label color"
aria-label={t("task:labelColor")}
/>
<Button
variant="ghost"
size="icon"
className="h-6 w-6 cursor-pointer"
onClick={() => void handleAdd()}
aria-label="Add label"
aria-label={t("task:addLabel")}
>
<IconPlus className="h-3 w-3" />
</Button>
@@ -12,6 +12,7 @@ import {
} from "@kandev/ui/command";
import { Popover, PopoverContent, PopoverTrigger } from "@kandev/ui/popover";
import { cn } from "@/lib/utils";
import { useTranslation } from "react-i18next";
export type MultiSelectItem = {
id: string;
@@ -64,11 +65,15 @@ export function MultiSelectPopover<T extends MultiSelectItem>({
onRemove,
renderChip,
renderItem,
addLabel = "+ Add",
emptyMessage = "No items found.",
searchPlaceholder = "Search...",
addLabel,
emptyMessage,
searchPlaceholder,
testId,
}: MultiSelectPopoverProps<T>) {
const { t } = useTranslation();
const resolvedAddLabel = addLabel ?? t("task:addShort");
const resolvedEmptyMessage = emptyMessage ?? t("task:noItemsFound");
const resolvedSearchPlaceholder = searchPlaceholder ?? t("task:searchEllipsis2");
const [open, setOpen] = useState(false);
const selected = useMemo(
@@ -98,17 +103,17 @@ export function MultiSelectPopover<T extends MultiSelectItem>({
selected={selected}
renderChip={renderChip}
onRemove={onRemove}
addLabel={addLabel}
addLabel={resolvedAddLabel}
/>
</button>
</PopoverTrigger>
<PopoverContent align="end" className="w-72 p-0" portal={false}>
<Command>
<CommandInput placeholder={searchPlaceholder} className="h-9" />
<CommandInput placeholder={resolvedSearchPlaceholder} className="h-9" />
<CommandList>
<CommandEmpty>{emptyMessage}</CommandEmpty>
<CommandEmpty>{resolvedEmptyMessage}</CommandEmpty>
{selected.length > 0 && (
<CommandGroup heading="Selected">
<CommandGroup heading={t("task:selected")}>
{selected.map((item) => (
<CommandItem
key={item.id}
@@ -127,7 +132,7 @@ export function MultiSelectPopover<T extends MultiSelectItem>({
</CommandGroup>
)}
{addable.length > 0 && (
<CommandGroup heading={selected.length > 0 ? "Add more" : undefined}>
<CommandGroup heading={selected.length > 0 ? t("task:addMore") : undefined}>
{addable.map((item) => (
<CommandItem
key={item.id}
@@ -10,6 +10,8 @@ import { TaskDetachConfirmDialog } from "@/components/task/task-detach-confirm-d
import type { OfficeTask } from "@/lib/state/slices/office/types";
import type { Task } from "@/app/office/tasks/[id]/types";
import { workspaceModeFromMetadata, type WorkspaceMode } from "@/lib/kanban/map-task";
import { useTranslation } from "react-i18next";
import { t } from "@/lib/i18n";
type ParentPickerProps = {
task: Task;
@@ -45,9 +47,9 @@ function useTaskWorkspaceMode(task: Task) {
function buildOptions(candidates: OfficeTask[], currentTaskId: string): ComboboxOption[] {
const noOpt: ComboboxOption = {
value: NO_PARENT,
label: "No parent",
label: t("task:noParent"),
keywords: ["none"],
renderLabel: () => <span className="text-muted-foreground">No parent</span>,
renderLabel: () => <span className="text-muted-foreground">{t("task:noParent")}</span>,
};
const taskOpts = candidates
.filter((t) => t.id !== currentTaskId)
@@ -66,6 +68,7 @@ function buildOptions(candidates: OfficeTask[], currentTaskId: string): Combobox
}
export function ParentPicker({ task }: ParentPickerProps) {
const { t, i18n } = useTranslation();
const storeTasks = useAppStore((s) => s.office.tasks.items);
const workspaceId = useAppStore((s) => s.workspaces.activeId);
const [fetched, setFetched] = useState<OfficeTask[]>([]);
@@ -92,7 +95,14 @@ export function ParentPicker({ task }: ParentPickerProps) {
const candidates = storeTasks.length > 0 ? storeTasks : fetched;
const options = useMemo(() => buildOptions(candidates, task.id), [candidates, task.id]);
// `buildOptions` resolves its "No parent" label through the module-level `t`.
// Keeping the language in the deps is what makes that label follow a runtime
// locale switch; without it the memo only recomputes when the data changes.
const options = useMemo(
() => buildOptions(candidates, task.id),
// eslint-disable-next-line react-hooks/exhaustive-deps -- i18n.language is the locale trigger
[candidates, task.id, i18n.language],
);
const currentValue = task.parentId || NO_PARENT;
@@ -146,9 +156,9 @@ export function ParentPicker({ task }: ParentPickerProps) {
options={options}
value={currentValue}
onValueChange={handleSelect}
placeholder="No parent"
searchPlaceholder="Search tasks..."
emptyMessage="No tasks found."
placeholder={t("task:noParent")}
searchPlaceholder={t("task:searchTasks")}
emptyMessage={t("task:noTasksFound")}
disabled={isDetaching}
triggerClassName="h-7 w-full justify-end px-2"
popoverAlign="end"
@@ -5,6 +5,7 @@ import { Badge } from "@kandev/ui/badge";
import { Tooltip, TooltipContent, TooltipTrigger } from "@kandev/ui/tooltip";
import { useAppStore } from "@/components/state-provider";
import type { Task, TaskDecision } from "@/app/office/tasks/[id]/types";
import { useTranslation } from "react-i18next";
// computePendingApprovers returns the names of approvers who have not
// recorded an active "approved" decision. Used to render the gated
@@ -40,6 +41,7 @@ type PendingApprovalBadgeProps = {
};
export function PendingApprovalBadge({ task }: PendingApprovalBadgeProps) {
const { t } = useTranslation();
const agents = useAppStore((s) => s.office.agentProfiles);
const agentLookup = useMemo(() => {
const map: Record<string, string> = {};
@@ -51,7 +53,7 @@ export function PendingApprovalBadge({ task }: PendingApprovalBadgeProps) {
if (task.status !== "in_review" || pending.length === 0) return null;
const label = `Awaiting approval from ${pending.length} agent${pending.length === 1 ? "" : "s"}`;
const label = t("task:awaitingApprovalFromAgents", { count: pending.length });
return (
<Tooltip>
@@ -13,10 +13,13 @@ import { cn } from "@/lib/utils";
import { useOptimisticTaskMutation } from "@/hooks/use-optimistic-task-mutation";
import { updateTask } from "@/lib/api/domains/office-extended-api";
import type { Task, TaskPriority } from "@/app/office/tasks/[id]/types";
import { useTranslation } from "react-i18next";
type PriorityMeta = {
value: TaskPriority;
label: string;
// A catalog key, not copy: this table is module scope, so a resolved `t()`
// here would freeze at the boot locale.
labelKey: string;
icon: React.ComponentType<{ className?: string }>;
iconClass: string;
};
@@ -24,13 +27,18 @@ type PriorityMeta = {
export const PRIORITY_OPTIONS: PriorityMeta[] = [
{
value: "critical",
label: "Critical",
labelKey: "task:priorityCritical",
icon: IconAlertTriangle,
iconClass: "text-red-600",
},
{ value: "high", label: "High", icon: IconArrowUp, iconClass: "text-orange-600" },
{ value: "medium", label: "Medium", icon: IconMinus, iconClass: "text-orange-500" },
{ value: "low", label: "Low", icon: IconArrowDown, iconClass: "text-blue-500" },
{ value: "high", labelKey: "task:priorityHigh", icon: IconArrowUp, iconClass: "text-orange-600" },
{
value: "medium",
labelKey: "task:priorityMedium",
icon: IconMinus,
iconClass: "text-orange-500",
},
{ value: "low", labelKey: "task:priorityLow", icon: IconArrowDown, iconClass: "text-blue-500" },
];
const BY_VALUE: Record<TaskPriority, PriorityMeta> = PRIORITY_OPTIONS.reduce(
@@ -46,6 +54,7 @@ type PriorityPickerProps = {
};
export function PriorityPicker({ task }: PriorityPickerProps) {
const { t } = useTranslation();
const [open, setOpen] = useState(false);
const mutate = useOptimisticTaskMutation();
@@ -74,7 +83,7 @@ export function PriorityPicker({ task }: PriorityPickerProps) {
className="inline-flex items-center gap-1.5 cursor-pointer rounded px-2 py-1 hover:bg-muted ml-auto"
>
<CurrentIcon className={cn("h-3.5 w-3.5", current.iconClass)} />
<span>{current.label}</span>
<span>{t(current.labelKey)}</span>
<IconChevronDown className="h-3 w-3 opacity-50" />
</button>
</PopoverTrigger>
@@ -95,7 +104,7 @@ export function PriorityPicker({ task }: PriorityPickerProps) {
onClick={() => handleSelect(opt.value)}
>
<Icon className={cn("h-3.5 w-3.5", opt.iconClass)} />
<span>{opt.label}</span>
<span>{t(opt.labelKey)}</span>
</button>
);
})}
@@ -6,6 +6,7 @@ import { useAppStore } from "@/components/state-provider";
import { updateTask } from "@/lib/api/domains/office-extended-api";
import { useOptimisticTaskMutation } from "@/hooks/use-optimistic-task-mutation";
import type { Task } from "@/app/office/tasks/[id]/types";
import { useTranslation } from "react-i18next";
type ProjectPickerProps = {
task: Task;
@@ -14,15 +15,16 @@ type ProjectPickerProps = {
const NO_PROJECT = "__none__";
export function ProjectPicker({ task }: ProjectPickerProps) {
const { t } = useTranslation();
const projects = useAppStore((s) => s.office.projects);
const mutate = useOptimisticTaskMutation();
const options = useMemo<ComboboxOption[]>(() => {
const noOpt: ComboboxOption = {
value: NO_PROJECT,
label: "No project",
label: t("task:noProject"),
keywords: ["none"],
renderLabel: () => <span className="text-muted-foreground">No project</span>,
renderLabel: () => <span className="text-muted-foreground">{t("task:noProject")}</span>,
};
const projectOpts = projects.map<ComboboxOption>((p) => ({
value: p.id,
@@ -41,7 +43,7 @@ export function ProjectPicker({ task }: ProjectPickerProps) {
),
}));
return [noOpt, ...projectOpts];
}, [projects]);
}, [projects, t]);
const currentValue = task.projectId || NO_PROJECT;
@@ -69,9 +71,9 @@ export function ProjectPicker({ task }: ProjectPickerProps) {
options={options}
value={currentValue}
onValueChange={handleSelect}
placeholder="No project"
searchPlaceholder="Search projects..."
emptyMessage="No projects found."
placeholder={t("task:noProject")}
searchPlaceholder={t("task:searchProjects")}
emptyMessage={t("task:noProjectsFound")}
triggerClassName="h-7 w-full justify-end px-2"
popoverAlign="end"
testId="project-picker-trigger"
@@ -4,12 +4,14 @@ import { useMemo } from "react";
import { addTaskReviewer, removeTaskReviewer } from "@/lib/api/domains/office-extended-api";
import type { Task } from "@/app/office/tasks/[id]/types";
import { AgentsMultiPicker, buildDecisionLookup } from "./agents-multi-picker";
import { useTranslation } from "react-i18next";
type ReviewersPickerProps = {
task: Task;
};
export function ReviewersPicker({ task }: ReviewersPickerProps) {
const { t } = useTranslation();
const decisionsByAgent = useMemo(
() => buildDecisionLookup(task.decisions, "reviewer"),
[task.decisions],
@@ -19,7 +21,7 @@ export function ReviewersPicker({ task }: ReviewersPickerProps) {
task={task}
selectedIds={task.reviewers}
fieldKey="reviewers"
addLabel="+ Add reviewer"
addLabel={t("task:addReviewer")}
testId="reviewers-picker-trigger"
apiAdd={addTaskReviewer}
apiRemove={removeTaskReviewer}
@@ -14,6 +14,7 @@ import { getWebSocketClient } from "@/lib/ws/connection";
import { formatRelativeTime } from "@/lib/utils";
import { AgentAvatar } from "@/app/office/components/agent-avatar";
import type { RunError } from "@/app/office/tasks/[id]/types";
import { useTranslation } from "react-i18next";
type RunErrorEntryProps = {
taskId: string;
@@ -29,10 +30,11 @@ type RunErrorEntryProps = {
* request so the recovery semantics are unchanged.
*/
export function RunErrorEntry({ taskId, error }: RunErrorEntryProps) {
const { t } = useTranslation();
const agentName = useAppStore((s) =>
error.agentProfileId
? (s.office.agentProfiles.find((a) => a.id === error.agentProfileId)?.name ?? "Agent")
: "Agent",
? (s.office.agentProfiles.find((a) => a.id === error.agentProfileId)?.name ?? t("task:agent"))
: t("task:agent"),
);
const [showDetails, setShowDetails] = useState(false);
@@ -58,23 +60,20 @@ export function RunErrorEntry({ taskId, error }: RunErrorEntryProps) {
<span className="font-medium text-sm">{agentName}</span>
<span className="inline-flex items-center gap-1 text-xs text-red-600 dark:text-red-400">
<IconAlertTriangle className="h-3.5 w-3.5" />
stopped with an error
{t("task:stoppedWithAnError")}
</span>
<span className="text-xs text-muted-foreground">
{formatRelativeTime(error.failedAt)}
</span>
</div>
<p className="mt-1 text-sm text-muted-foreground">
The agent stopped with an error. Resume to retry the same conversation, or start a fresh
session.
</p>
<p className="mt-1 text-sm text-muted-foreground">{t("task:theAgentStoppedWithAnError")}</p>
{error.rawPayload && (
<Collapsible open={showDetails} onOpenChange={setShowDetails} className="mt-2">
<CollapsibleTrigger className="flex items-center gap-1 text-xs text-muted-foreground cursor-pointer hover:text-foreground transition-colors">
<IconChevronDown
className={`h-3.5 w-3.5 transition-transform ${showDetails ? "rotate-180" : ""}`}
/>
Show details
{t("task:showDetails")}
</CollapsibleTrigger>
<CollapsibleContent>
<pre
@@ -95,7 +94,7 @@ export function RunErrorEntry({ taskId, error }: RunErrorEntryProps) {
data-testid="run-error-resume-button"
>
<IconRefresh className="h-3 w-3" />
Resume session
{t("task:resumeSession")}
</Button>
<Button
variant="outline"
@@ -105,7 +104,7 @@ export function RunErrorEntry({ taskId, error }: RunErrorEntryProps) {
data-testid="run-error-fresh-button"
>
<IconPlayerPlay className="h-3 w-3" />
Start fresh session
{t("task:startFreshSession")}
</Button>
</div>
</div>
@@ -8,6 +8,7 @@ import { selectCommandCount } from "@/lib/state/slices/session/selectors";
import { AdvancedChatPanel } from "@/app/office/tasks/[id]/advanced-panels/chat-panel";
import { useActiveSessionRef } from "./active-session-ref-context";
import type { TaskSession } from "@/app/office/tasks/[id]/types";
import { useTranslation } from "react-i18next";
const COLLAPSE_KEY_PREFIX = "office.session.collapsed.";
@@ -119,35 +120,39 @@ function StateGlyph({ isLive, isTerminal }: { isLive: boolean; isTerminal: boole
}
function HeaderText({
verb,
verbKey,
duration,
commandsLabel,
commandCount,
}: {
verb: string;
verbKey: string;
duration: string | null;
commandsLabel: string | null;
commandCount: number | null;
}) {
const { t } = useTranslation();
return (
<span className="text-muted-foreground">
{verb}
{duration && <span className="ml-1">for {duration}</span>}
{commandsLabel && <span className="ml-1">· ran {commandsLabel}</span>}
{t(verbKey)}
{duration && <span className="ml-1">{t("task:turnForDuration", { duration })}</span>}
{commandCount !== null && (
<span className="ml-1">{t("task:ranCommands", { count: commandCount })}</span>
)}
</span>
);
}
function pickHeaderVerb(isLive: boolean, _isTerminal: boolean): string {
if (isLive) return "working";
// Returns a catalog key rather than resolved copy: these helpers run outside a
// hook scope, and the verb has to re-resolve when the locale changes.
function pickHeaderVerbKey(isLive: boolean, _isTerminal: boolean): string {
if (isLive) return "task:turnWorking";
// Office IDLE and kanban terminal both render "worked" — the agent
// did real work and isn't doing more right now. The previous "idle"
// verb was confusing: "Agent idle for 20s" reads as "the agent has
// been doing nothing for 20s" when actually 20s was the turn duration.
return "worked";
return "task:turnWorked";
}
function buildCommandsLabel(count: number): string | null {
if (count <= 0) return null;
return `${count} command${count === 1 ? "" : "s"}`;
function commandCountOrNull(count: number): number | null {
return count > 0 ? count : null;
}
type SessionTimelineEntryProps = {
@@ -171,7 +176,8 @@ type SessionTimelineEntryProps = {
/**
* Optional small chip rendered next to the agent name (e.g. "Reviewer",
* "Approver"). Used by office tasks to make the role obvious when the
* timeline shows multiple agents.
* timeline shows multiple agents. Carries a catalog key rather than
* resolved copy — see `deriveRoleChip` in `session-groups.ts`.
*/
roleChip?: string | null;
};
@@ -202,6 +208,7 @@ function pickActiveSession(group: TaskSession[]): TaskSession | null {
*/
export const SessionTimelineEntry = forwardRef<HTMLDivElement, SessionTimelineEntryProps>(
function SessionTimelineEntry({ taskId, session, groupSessions, roleChip }, forwardedRef) {
const { t } = useTranslation();
const group = useMemo(
() => (groupSessions && groupSessions.length > 0 ? groupSessions : [session]),
[groupSessions, session],
@@ -258,7 +265,7 @@ export const SessionTimelineEntry = forwardRef<HTMLDivElement, SessionTimelineEn
const displayAgentName =
resolvedAgentName ||
(session.agentName !== agentProfileId ? session.agentName : null) ||
"Agent";
t("task:agent");
const dtoCommandCount = group.reduce((sum, g) => sum + (g.commandCount ?? 0), 0);
const commandCount = Math.max(dtoCommandCount, storeCommandCount);
const duration = entryDuration(session, activeSession);
@@ -282,8 +289,8 @@ export const SessionTimelineEntry = forwardRef<HTMLDivElement, SessionTimelineEn
else if (forwardedRef) forwardedRef.current = node;
};
const headerVerb = pickHeaderVerb(isLive, isTerminal);
const commandsLabel = buildCommandsLabel(commandCount);
const headerVerbKey = pickHeaderVerbKey(isLive, isTerminal);
const headerCommandCount = commandCountOrNull(commandCount);
// The chat embed prefers the *active* session id when one exists, so a
// RUNNING resume after IDLE shows live messages. Falls back to the
@@ -301,10 +308,14 @@ export const SessionTimelineEntry = forwardRef<HTMLDivElement, SessionTimelineEn
data-testid="session-role-chip"
className="text-[10px] uppercase tracking-wide rounded bg-muted px-1.5 py-0.5 text-muted-foreground"
>
{roleChip}
{t(roleChip)}
</span>
)}
<HeaderText verb={headerVerb} duration={duration} commandsLabel={commandsLabel} />
<HeaderText
verbKey={headerVerbKey}
duration={duration}
commandCount={headerCommandCount}
/>
<span className="flex-1" />
<IconChevronDown
className={`h-3.5 w-3.5 text-muted-foreground transition-transform ${open ? "rotate-180" : ""}`}
@@ -10,6 +10,8 @@ import { updateTask } from "@/lib/api/domains/office-extended-api";
import type { Task, TaskStatus } from "@/app/office/tasks/[id]/types";
import { StatusIcon } from "@/app/office/tasks/[id]/status-icon";
import { normalizeTaskStatus } from "@/app/office/tasks/normalize-status";
import { useTranslation } from "react-i18next";
import { t } from "@/lib/i18n";
type PendingApprover = { agent_profile_id?: string; name?: string };
@@ -19,8 +21,8 @@ type PendingApprover = { agent_profile_id?: string; name?: string };
// array on the 409 body; we render the names in order.
export function formatPendingApproversMessage(pending: PendingApprover[]): string {
const names = pending.map((p) => p.name?.trim() || p.agent_profile_id || "").filter(Boolean);
if (names.length === 0) return "Cannot mark done: awaiting approvals";
return `Cannot mark done: awaiting approval from ${names.join(", ")}`;
if (names.length === 0) return t("task:cannotMarkDoneAwaitingApprovals");
return t("task:cannotMarkDoneAwaitingApprovalFrom", { names: names.join(", ") });
}
function extractPendingApprovers(err: unknown): PendingApprover[] | null {
@@ -45,21 +47,23 @@ async function updateStatusOrTranslateGate(taskId: string, status: TaskStatus):
}
}
type StatusOption = { value: TaskStatus; label: string };
// `labelKey` holds a catalog key, not copy: this table is module scope, so a
// resolved `t()` here would freeze at the boot locale.
type StatusOption = { value: TaskStatus; labelKey: string };
const STATUS_OPTIONS: StatusOption[] = [
{ value: "backlog", label: "Backlog" },
{ value: "todo", label: "Todo" },
{ value: "in_progress", label: "In Progress" },
{ value: "in_review", label: "In Review" },
{ value: "blocked", label: "Blocked" },
{ value: "done", label: "Done" },
{ value: "cancelled", label: "Cancelled" },
{ value: "backlog", labelKey: "task:statusBacklog" },
{ value: "todo", labelKey: "task:statusTodo" },
{ value: "in_progress", labelKey: "task:statusInProgress" },
{ value: "in_review", labelKey: "task:statusInReview" },
{ value: "blocked", labelKey: "task:statusBlocked" },
{ value: "done", labelKey: "task:statusDone" },
{ value: "cancelled", labelKey: "task:statusCancelled" },
];
export const STATUS_LABELS: Record<TaskStatus, string> = STATUS_OPTIONS.reduce(
export const STATUS_LABEL_KEYS: Record<TaskStatus, string> = STATUS_OPTIONS.reduce(
(acc, opt) => {
acc[opt.value] = opt.label;
acc[opt.value] = opt.labelKey;
return acc;
},
{} as Record<TaskStatus, string>,
@@ -70,11 +74,12 @@ type StatusPickerProps = {
};
export function StatusPicker({ task }: StatusPickerProps) {
const { t } = useTranslation();
const [open, setOpen] = useState(false);
const mutate = useOptimisticTaskMutation();
// Backend may return the kanban-state spelling ("REVIEW", "COMPLETED",
// …) or the canonical lowercase form ("in_review", "done"). Normalise
// both via the shared office helper so STATUS_LABELS lookups and the
// both via the shared office helper so STATUS_LABEL_KEYS lookups and the
// aria-selected comparisons agree on a single TaskStatus value.
const current = normalizeTaskStatus(task.status) as TaskStatus;
@@ -99,7 +104,7 @@ export function StatusPicker({ task }: StatusPickerProps) {
className="inline-flex items-center gap-1.5 cursor-pointer rounded px-2 py-1 hover:bg-muted ml-auto"
>
<StatusIcon status={current} className="h-3.5 w-3.5" />
<span>{STATUS_LABELS[current] ?? task.status}</span>
<span>{STATUS_LABEL_KEYS[current] ? t(STATUS_LABEL_KEYS[current]) : task.status}</span>
<IconChevronDown className="h-3 w-3 opacity-50" />
</button>
</PopoverTrigger>
@@ -118,7 +123,7 @@ export function StatusPicker({ task }: StatusPickerProps) {
onClick={() => handleSelect(opt.value)}
>
<StatusIcon status={opt.value} className="h-3.5 w-3.5" />
<span>{opt.label}</span>
<span>{t(opt.labelKey)}</span>
</button>
))}
</PopoverContent>
@@ -7,19 +7,21 @@ import { Button } from "@kandev/ui/button";
import { NewTaskDialog } from "@/app/office/components/new-task-dialog";
import { StatusIcon } from "@/app/office/tasks/[id]/status-icon";
import type { Task } from "@/app/office/tasks/[id]/types";
import { useTranslation } from "react-i18next";
type SubIssuesRowProps = {
task: Task;
};
export function SubIssuesRow({ task }: SubIssuesRowProps) {
const { t } = useTranslation();
const [open, setOpen] = useState(false);
return (
<>
<div className="flex flex-col gap-1 ml-auto items-end">
{task.children.length === 0 ? (
<span className="text-muted-foreground text-xs">No sub-issues</span>
<span className="text-muted-foreground text-xs">{t("task:noSubIssues")}</span>
) : (
<ul className="flex flex-col gap-1 w-full" data-testid="sub-issues-list">
{task.children.map((child) => (
@@ -47,7 +49,7 @@ export function SubIssuesRow({ task }: SubIssuesRowProps) {
data-testid="sub-issues-add-button"
>
<IconPlus className="h-3 w-3 mr-1" />
Add sub-issue
{t("task:addSubIssue")}
</Button>
</div>
<NewTaskDialog
@@ -4,6 +4,7 @@ import { IconLoader2 } from "@tabler/icons-react";
import { useAppStore } from "@/components/state-provider";
import { selectLiveSessionForTask } from "@/lib/state/slices/session/selectors";
import { useActiveSessionRef } from "./active-session-ref-context";
import { useTranslation } from "react-i18next";
type TopbarWorkingIndicatorProps = {
taskId: string;
@@ -17,6 +18,7 @@ type TopbarWorkingIndicatorProps = {
* Click scrolls the active session's timeline entry into view.
*/
export function TopbarWorkingIndicator({ taskId }: TopbarWorkingIndicatorProps) {
const { t } = useTranslation();
const liveSession = useAppStore((s) => selectLiveSessionForTask(s, taskId));
const { getActiveNode } = useActiveSessionRef();
@@ -33,11 +35,11 @@ export function TopbarWorkingIndicator({ taskId }: TopbarWorkingIndicatorProps)
type="button"
onClick={handleClick}
className="inline-flex items-center gap-1 text-xs text-primary cursor-pointer hover:opacity-80 transition-opacity"
aria-label="Scroll to active session"
aria-label={t("task:scrollToActiveSession")}
data-testid="topbar-working-indicator"
>
<IconLoader2 className="h-3.5 w-3.5 animate-spin" />
<span data-testid="topbar-working-active">Working</span>
<span data-testid="topbar-working-active">{t("task:working3")}</span>
</button>
);
}
@@ -3,6 +3,7 @@
import { IconAlertCircle, IconLoader2 } from "@tabler/icons-react";
import { Tooltip, TooltipContent, TooltipTrigger } from "@kandev/ui/tooltip";
import type { TaskRunStatus } from "@/app/office/tasks/[id]/types";
import { useTranslation } from "react-i18next";
type UserCommentRunBadgeProps = {
status: TaskRunStatus;
@@ -26,6 +27,7 @@ const BASE_PILL = "inline-flex items-center gap-1 rounded-full px-2 py-0.5 text-
* `data-status` attribute so e2e tests can pin the rendered state.
*/
export function UserCommentRunBadge({ status, errorMessage }: UserCommentRunBadgeProps) {
const { t } = useTranslation();
if (status === "finished") return null;
if (status === "queued") {
@@ -39,7 +41,7 @@ export function UserCommentRunBadge({ status, errorMessage }: UserCommentRunBadg
className="inline-block h-1.5 w-1.5 rounded-full bg-muted-foreground/60"
aria-hidden
/>
Queued
{t("task:queued")}
</span>
);
}
@@ -52,7 +54,7 @@ export function UserCommentRunBadge({ status, errorMessage }: UserCommentRunBadg
data-status={status}
>
<IconLoader2 className="h-3 w-3 animate-spin" aria-hidden />
Working…
{t("task:working4")}
</span>
);
}
@@ -64,7 +66,7 @@ export function UserCommentRunBadge({ status, errorMessage }: UserCommentRunBadg
data-testid="user-comment-run-badge"
data-status={status}
>
Cancelled
{t("task:cancelled")}
</span>
);
}
@@ -77,7 +79,7 @@ export function UserCommentRunBadge({ status, errorMessage }: UserCommentRunBadg
data-status={status}
>
<IconAlertCircle className="h-3 w-3" aria-hidden />
Failed
{t("task:failed")}
</span>
);
@@ -0,0 +1,47 @@
import { describe, expect, it } from "vitest";
import { groupSessionsForTimeline } from "./session-groups";
import type { TaskSession } from "@/app/office/tasks/[id]/types";
function session(overrides: Partial<TaskSession> = {}): TaskSession {
return {
id: "s1",
state: "IDLE",
startedAt: "2026-01-01T00:00:00Z",
...overrides,
} as TaskSession;
}
/**
* `roleChip` carries a catalog KEY rather than resolved copy: `deriveRoleChip`
* runs outside a hook scope, so the chip has to re-resolve at render for a
* locale switch to reach it. These pin the key contract — a regression to a
* literal ("Approver") would render as a missing key, not as English.
*/
describe("groupSessionsForTimeline — roleChip", () => {
it("returns the approver key for an agent in the approvers list", () => {
const groups = groupSessionsForTimeline([session({ agentProfileId: "a1" })], [], ["a1"]);
expect(groups).toHaveLength(1);
expect(groups[0].roleChip).toBe("task:roleApprover");
});
it("returns the reviewer key for an agent in the reviewers list", () => {
const groups = groupSessionsForTimeline([session({ agentProfileId: "a1" })], ["a1"], []);
expect(groups[0].roleChip).toBe("task:roleReviewer");
});
it("prefers approver when an agent holds both roles", () => {
const groups = groupSessionsForTimeline([session({ agentProfileId: "a1" })], ["a1"], ["a1"]);
expect(groups[0].roleChip).toBe("task:roleApprover");
});
it("returns null for an agent in neither list", () => {
const groups = groupSessionsForTimeline([session({ agentProfileId: "a1" })], ["b2"], ["c3"]);
expect(groups[0].roleChip).toBeNull();
});
it("returns null for a kanban session with no agent profile", () => {
const groups = groupSessionsForTimeline([session()], ["a1"], ["a1"]);
expect(groups[0].roleChip).toBeNull();
});
});
@@ -12,6 +12,7 @@ export type SessionGroup = {
id: string;
representative: TaskSession;
group: TaskSession[];
/** A catalog KEY (see `deriveRoleChip`), not resolved copy. */
roleChip: string | null;
};
@@ -32,8 +33,10 @@ function deriveRoleChip(
approvers: string[],
): string | null {
if (!agentProfileId) return null;
if (approvers.includes(agentProfileId)) return "Approver";
if (reviewers.includes(agentProfileId)) return "Reviewer";
// Catalog keys, not copy: this helper runs outside a hook scope and the
// chip has to re-resolve when the locale changes.
if (approvers.includes(agentProfileId)) return "task:roleApprover";
if (reviewers.includes(agentProfileId)) return "task:roleReviewer";
return null;
}
@@ -1,5 +1,6 @@
import { IconCheck } from "@tabler/icons-react";
import { Badge } from "@kandev/ui/badge";
import { useTranslation } from "react-i18next";
type ExecutionStage = {
id: string;
@@ -26,11 +27,13 @@ type ExecutionState = {
status: "pending" | "approved" | "rejected";
};
const STAGE_LABELS: Record<ExecutionStage["type"], string> = {
work: "Implement",
review: "Review",
approval: "Approval",
ship: "Ship",
// Catalog keys, not copy: this table is module scope, so a resolved `t()` here
// would freeze at the boot locale.
const STAGE_LABEL_KEYS: Record<ExecutionStage["type"], string> = {
work: "task:stageImplement",
review: "task:stageReview",
approval: "task:stageApproval",
ship: "task:stageShip",
};
type StagePillProps = {
@@ -86,6 +89,7 @@ function parseState(raw: string): ExecutionState | null {
}
export function StageProgressBar({ executionPolicy, executionState }: StageProgressBarProps) {
const { t } = useTranslation();
if (!executionPolicy) return null;
const policy = parsePolicy(executionPolicy);
@@ -102,7 +106,10 @@ export function StageProgressBar({ executionPolicy, executionState }: StageProgr
else if (index === currentIndex) pillState = "current";
return (
<div key={stage.id} className="flex items-center gap-1">
<StagePill label={STAGE_LABELS[stage.type] ?? stage.type} state={pillState} />
<StagePill
label={STAGE_LABEL_KEYS[stage.type] ? t(STAGE_LABEL_KEYS[stage.type]) : stage.type}
state={pillState}
/>
{index < policy.stages.length - 1 && (
<span className="text-muted-foreground text-xs select-none">→</span>
)}
@@ -6,6 +6,7 @@ import { StatusIcon } from "@/app/office/tasks/[id]/status-icon";
import { topoSort } from "./workflow-sort";
import type { Task } from "@/app/office/tasks/[id]/types";
import type { TreeHold } from "@/lib/api/domains/tree-api";
import { useTranslation } from "react-i18next";
type SubtaskStepperProps = {
items: Task["children"];
@@ -13,6 +14,7 @@ type SubtaskStepperProps = {
};
export function SubtaskStepper({ items, activeHold }: SubtaskStepperProps) {
const { t } = useTranslation();
if (items.length === 0) return null;
const sorted = topoSort(items);
@@ -24,11 +26,11 @@ export function SubtaskStepper({ items, activeHold }: SubtaskStepperProps) {
})
.map((i) => i.id),
);
const holdLabel = activeHold?.mode === "pause" ? "Paused" : "Cancelled (tree)";
const holdLabel = activeHold?.mode === "pause" ? t("task:paused") : t("task:cancelledTree");
return (
<div className="mt-8" data-testid="subtask-stepper">
<h2 className="text-sm font-semibold mb-4">Sub-tasks</h2>
<h2 className="text-sm font-semibold mb-4">{t("task:subTasks")}</h2>
<div className="relative">
<div className="absolute left-4 top-0 bottom-0 w-px bg-border" />
<div className="space-y-1 pl-10">
@@ -61,7 +63,7 @@ export function SubtaskStepper({ items, activeHold }: SubtaskStepperProps) {
<span className="flex-1 truncate">{child.title}</span>
{isBlocked && (
<Badge variant="outline" className="text-xs shrink-0">
Blocked
{t("task:blocked")}
</Badge>
)}
{activeHold && !isBlocked && (
@@ -4,6 +4,7 @@ import { useAppStore } from "@/components/state-provider";
import { formatRelativeTime } from "@/lib/utils";
import { AgentAvatar } from "@/app/office/components/agent-avatar";
import type { TaskActivityEntry } from "@/app/office/tasks/[id]/types";
import { useTranslation } from "react-i18next";
type TaskActivityProps = {
taskId: string;
@@ -11,13 +12,14 @@ type TaskActivityProps = {
};
function ActivityRow({ entry }: { entry: TaskActivityEntry }) {
const { t } = useTranslation();
const agentName = useAppStore((s) =>
entry.actorType === "agent"
? (s.office.agentProfiles.find((a) => a.id === entry.actorId)?.name ?? "Agent")
? (s.office.agentProfiles.find((a) => a.id === entry.actorId)?.name ?? t("task:agent"))
: "",
);
let actorName = "System";
if (entry.actorType === "user") actorName = "You";
let actorName = t("task:system");
if (entry.actorType === "user") actorName = t("task:you");
else if (entry.actorType === "agent") actorName = agentName;
return (
@@ -44,10 +46,11 @@ function ActivityRow({ entry }: { entry: TaskActivityEntry }) {
}
export function TaskActivity({ taskId, entries }: TaskActivityProps) {
const { t } = useTranslation();
void taskId;
if (entries.length === 0) {
return <p className="text-sm text-muted-foreground py-4">No activity yet</p>;
return <p className="text-sm text-muted-foreground py-4">{t("task:noActivityYet")}</p>;
}
return (
@@ -0,0 +1,60 @@
"use client";
import { Trans, useTranslation } from "react-i18next";
import { formatRelativeTime } from "@/lib/utils";
import { t as translateStatic } from "@/lib/i18n";
import type { TaskDecision, TimelineEvent } from "@/app/office/tasks/[id]/types";
// formatDecisionLine renders the human-readable summary for a single
// task decision entry in the timeline. Approve rows read like
// "CEO approved this task"; request-changes rows append the comment.
//
// Module-level `t` rather than a hook: this is a plain helper called from
// render, so the call happens after a locale is active. `deciderName` is user
// data and is interpolated, never translated.
export function formatDecisionLine(decision: TaskDecision): string {
const who = decision.deciderName?.trim() || translateStatic("task:someone");
if (decision.decision === "approved") {
return translateStatic("task:approvedThisTask", { who });
}
return decision.comment
? translateStatic("task:requestedChangesWithComment", { who, comment: decision.comment })
: translateStatic("task:requestedChangesPlain", { who });
}
export function DecisionTimelineEntry({ decision }: { decision: TaskDecision }) {
const { t } = useTranslation();
const isApproval = decision.decision === "approved";
return (
<div
className="flex items-center gap-2 px-4 py-1.5 text-xs text-muted-foreground"
data-testid="decision-timeline-entry"
>
<span className={isApproval ? "text-green-600" : "text-red-600"}>
{isApproval ? t("task:approvedLowercase") : t("task:requestedChanges")}
</span>
<span className="truncate">{formatDecisionLine(decision)}</span>
<span className="ml-auto shrink-0">{formatRelativeTime(decision.createdAt)}</span>
</div>
);
}
export function TimelineEntry({ event }: { event: TimelineEvent }) {
return (
<div className="flex items-center gap-2 px-4 py-1.5 text-xs text-muted-foreground">
{event.type === "status_change" && event.from && event.to ? (
<span>
<Trans i18nKey="task:statusChangedFromTo" values={{ from: event.from, to: event.to }}>
Status changed from <strong>{event.from}</strong> to <strong>{event.to}</strong>
</Trans>
</span>
) : (
// `event.type` is a backend enum; the underscore-to-space form is the
// existing fallback rendering, not translated copy.
<span>{event.type.replaceAll("_", " ")}</span>
)}
<span className="ml-auto shrink-0">{formatRelativeTime(event.at)}</span>
</div>
);
}
+27 -60
View File
@@ -36,9 +36,13 @@ import {
type ChatEntry,
} from "./chat-entries";
import { useTranslation } from "react-i18next";
import { DecisionTimelineEntry, TimelineEntry } from "./task-chat-timeline-entries";
const MAX_INLINE_SESSIONS = 50;
const AUTOSCROLL_THRESHOLD_PX = 80;
const PROMPT_INSERTED_MESSAGE = "Enhanced prompt inserted.";
// A catalog key, not copy: `t()` at module scope would freeze at the boot locale.
const PROMPT_INSERTED_MESSAGE_KEY = "task:enhancedPromptInserted";
type TaskChatProps = {
taskId: string;
@@ -88,6 +92,7 @@ function CommentEntry({
turn?: CommentTurnContext;
hasLaterAgentReply?: boolean;
}) {
const { t } = useTranslation();
const isAgent = comment.authorType === "agent";
// Resolve the agent name from the office agents store so renames
// flow through automatically. Backend session-bridged comments don't
@@ -96,10 +101,10 @@ function CommentEntry({
isAgent
? (s.office.agentProfiles.find((a) => a.id === comment.authorId)?.name ??
comment.authorName ??
"Agent")
t("task:agent"))
: "",
);
const displayName = isAgent ? resolvedAgentName : "You";
const displayName = isAgent ? resolvedAgentName : t("task:you");
return (
<div
id={`comment-${comment.id}`}
@@ -116,12 +121,13 @@ function CommentEntry({
<div className="flex items-center gap-2 flex-wrap">
<span className="font-medium text-sm">{displayName}</span>
{isAgent && comment.source === "session" && (
<span className="text-xs text-muted-foreground">via session</span>
<span className="text-xs text-muted-foreground">{t("task:viaSession")}</span>
)}
{comment.status && (
<span className="text-xs text-muted-foreground">
{comment.status}
{comment.durationMs != null && ` after ${formatDuration(comment.durationMs)}`}
{comment.durationMs != null &&
t("task:afterDuration", { duration: formatDuration(comment.durationMs) })}
</span>
)}
<span className="text-xs text-muted-foreground">
@@ -143,7 +149,7 @@ function CommentEntry({
<Collapsible>
<CollapsibleTrigger className="flex items-center gap-1 text-xs text-muted-foreground mt-1 cursor-pointer hover:text-foreground transition-colors">
<IconCode className="h-3 w-3" />
Worked -- ran {comment.toolCalls.length} commands
{t("task:workedRanCommands", { count: comment.toolCalls.length })}
<IconChevronDown className="h-3 w-3" />
</CollapsibleTrigger>
<CollapsibleContent>
@@ -171,49 +177,6 @@ function CommentEntry({
);
}
// formatDecisionLine renders the human-readable summary for a single
// task decision entry in the timeline. Approve rows read like
// "CEO approved this task"; request-changes rows append the comment.
export function formatDecisionLine(decision: TaskDecision): string {
const who = decision.deciderName?.trim() || "Someone";
if (decision.decision === "approved") {
return `${who} approved this task`;
}
const tail = decision.comment ? `: '${decision.comment}'` : "";
return `${who} requested changes${tail}`;
}
function DecisionTimelineEntry({ decision }: { decision: TaskDecision }) {
const isApproval = decision.decision === "approved";
return (
<div
className="flex items-center gap-2 px-4 py-1.5 text-xs text-muted-foreground"
data-testid="decision-timeline-entry"
>
<span className={isApproval ? "text-green-600" : "text-red-600"}>
{isApproval ? "approved" : "requested changes"}
</span>
<span className="truncate">{formatDecisionLine(decision)}</span>
<span className="ml-auto shrink-0">{formatRelativeTime(decision.createdAt)}</span>
</div>
);
}
function TimelineEntry({ event }: { event: TimelineEvent }) {
return (
<div className="flex items-center gap-2 px-4 py-1.5 text-xs text-muted-foreground">
{event.type === "status_change" && event.from && event.to ? (
<span>
Status changed from <strong>{event.from}</strong> to <strong>{event.to}</strong>
</span>
) : (
<span>{event.type.replaceAll("_", " ")}</span>
)}
<span className="ml-auto shrink-0">{formatRelativeTime(event.at)}</span>
</div>
);
}
async function readFileAsMarkdown(file: File): Promise<string> {
if (file.type.startsWith("image/")) {
const dataUrl = await new Promise<string>((resolve, reject) => {
@@ -229,6 +192,7 @@ async function readFileAsMarkdown(file: File): Promise<string> {
}
function useChatInputHandlers(setInput: React.Dispatch<React.SetStateAction<string>>) {
const { t } = useTranslation();
const processFiles = useCallback(
async (files: File[]) => {
for (const file of files) {
@@ -236,11 +200,11 @@ function useChatInputHandlers(setInput: React.Dispatch<React.SetStateAction<stri
const md = await readFileAsMarkdown(file);
setInput((prev) => (prev ? `${prev}\n\n${md}` : md));
} catch {
toast.error(`Failed to read ${file.name}`);
toast.error(t("task:failedToRead", { name: file.name }));
}
}
},
[setInput],
[setInput, t],
);
const handleFileSelect = useCallback(
@@ -309,6 +273,7 @@ function CommentComposerFooter({
applyPending,
copyPending,
}: CommentComposerFooterProps) {
const { t } = useTranslation();
const isSendDisabled = submitting || !input.trim();
return (
@@ -333,7 +298,7 @@ function CommentComposerFooter({
<IconPaperclip className="h-3.5 w-3.5" />
</Button>
</TooltipTrigger>
<TooltipContent>Attach files</TooltipContent>
<TooltipContent>{t("task:attachFiles")}</TooltipContent>
</Tooltip>
<EnhancePromptButton
onClick={handleEnhance}
@@ -355,7 +320,7 @@ function CommentComposerFooter({
</Button>
</span>
</TooltipTrigger>
<TooltipContent>Send comment</TooltipContent>
<TooltipContent>{t("task:sendComment")}</TooltipContent>
</Tooltip>
</div>
<div className="px-2 pb-2">
@@ -370,6 +335,7 @@ function CommentComposerFooter({
}
function ChatInput({ taskId, taskTitle, taskDescription, onSubmitted }: ChatInputProps) {
const { t } = useTranslation();
const [input, setInput] = useState("");
const [submitting, setSubmitting] = useState(false);
const fileInputRef = useRef<HTMLInputElement>(null);
@@ -403,11 +369,11 @@ function ChatInput({ taskId, taskTitle, taskDescription, onSubmitted }: ChatInpu
setInputAndSync("");
onSubmitted?.();
} catch (err) {
toast.error(err instanceof Error ? err.message : "Failed to send comment");
toast.error(err instanceof Error ? err.message : t("task:failedToSendComment"));
} finally {
setSubmitting(false);
}
}, [submitting, taskId, onSubmitted, setInputAndSync]);
}, [submitting, taskId, onSubmitted, setInputAndSync, t]);
const handleEnhance = useCallback(() => {
const current = inputValueRef.current;
@@ -416,11 +382,11 @@ function ChatInput({ taskId, taskTitle, taskDescription, onSubmitted }: ChatInpu
void enhancePrompt(current, (result) => {
const inserted = promptDelivery.deliver(current, result, generation);
if (inserted) {
toast.success(PROMPT_INSERTED_MESSAGE);
toast.success(t(PROMPT_INSERTED_MESSAGE_KEY));
}
return inserted;
});
}, [enhancePrompt, promptDelivery]);
}, [enhancePrompt, promptDelivery, t]);
return (
<div className="mt-4 pt-4 border-t border-border">
@@ -436,7 +402,7 @@ function ChatInput({ taskId, taskTitle, taskDescription, onSubmitted }: ChatInpu
}
}}
onPaste={handlePaste}
placeholder="Add a comment..."
placeholder={t("task:addAComment")}
rows={2}
className="w-full bg-transparent px-3 py-2 text-sm outline-none resize-none"
/>
@@ -598,6 +564,7 @@ export function TaskChat({
taskTitle,
taskDescription,
}: TaskChatProps) {
const { t } = useTranslation();
const [showOlder, setShowOlder] = useState(false);
const groups = useMemo(
() => groupSessionsForTimeline(sessions, reviewers, approvers),
@@ -649,11 +616,11 @@ export function TaskChat({
className="self-start text-xs text-muted-foreground hover:text-foreground underline cursor-pointer mb-2"
data-testid="show-older-sessions"
>
Show {olderGroups.length} older session{olderGroups.length === 1 ? "" : "s"}
{t("task:showOlderSessions", { count: olderGroups.length })}
</button>
)}
{isEmpty ? (
<p className="text-sm text-muted-foreground py-4">No comments yet</p>
<p className="text-sm text-muted-foreground py-4">{t("task:noCommentsYet")}</p>
) : (
<div data-testid="task-chat-entries">
<ChatEntries taskId={taskId} entries={entries} />
@@ -18,6 +18,7 @@ import {
deleteDocument,
type TaskDocument,
} from "@/lib/api/domains/office-extended-api";
import { useTranslation } from "react-i18next";
// --- Document type config ---
@@ -85,6 +86,7 @@ function NewDocumentForm({
onCreated: () => void;
onCancel: () => void;
}) {
const { t } = useTranslation();
const [form, setForm] = useState<NewDocFormState>(EMPTY_FORM);
const [saving, setSaving] = useState(false);
@@ -94,7 +96,7 @@ function NewDocumentForm({
const handleSubmit = async () => {
if (!form.key.trim() || !form.content.trim()) {
toast.error("Key and content are required");
toast.error(t("task:keyAndContentAreRequired"));
return;
}
setSaving(true);
@@ -104,10 +106,10 @@ function NewDocumentForm({
title: form.title.trim() || undefined,
content: form.content,
});
toast.success("Document saved");
toast.success(t("task:documentSaved"));
onCreated();
} catch {
toast.error("Failed to save document");
toast.error(t("task:failedToSaveDocument"));
} finally {
setSaving(false);
}
@@ -118,7 +120,7 @@ function NewDocumentForm({
<div className="flex gap-2">
<input
className="flex-1 px-2 py-1 text-sm border border-border rounded bg-background"
placeholder="Key (e.g. plan, notes)"
placeholder={t("task:keyEGPlanNotes")}
value={form.key}
onChange={(e) => update({ key: e.target.value })}
/>
@@ -136,22 +138,22 @@ function NewDocumentForm({
</div>
<input
className="w-full px-2 py-1 text-sm border border-border rounded bg-background"
placeholder="Title (optional)"
placeholder={t("task:titleOptional")}
value={form.title}
onChange={(e) => update({ title: e.target.value })}
/>
<Textarea
placeholder="Content (markdown supported)"
placeholder={t("task:contentMarkdownSupported")}
value={form.content}
onChange={(e) => update({ content: e.target.value })}
className="min-h-[100px] text-sm"
/>
<div className="flex gap-2 justify-end">
<Button variant="ghost" size="sm" className="cursor-pointer" onClick={onCancel}>
Cancel
{t("common:cancel")}
</Button>
<Button size="sm" className="cursor-pointer" disabled={saving} onClick={handleSubmit}>
{saving ? "Saving..." : "Save"}
{saving ? t("task:saving") : t("common:save")}
</Button>
</div>
</div>
@@ -161,11 +163,16 @@ function NewDocumentForm({
// --- Document card ---
function AttachmentBody({ doc }: { doc: TaskDocument }) {
const { t } = useTranslation();
return (
<div className="flex items-center gap-2 px-3 pb-3">
<span className="text-sm text-muted-foreground flex-1">
{doc.filename ?? doc.key}
{doc.size !== undefined && <span className="ml-1">({Math.round(doc.size / 1024)} KB)</span>}
{doc.size !== undefined && (
<span className="ml-1">
{t("task:attachmentSizeKb", { size: Math.round(doc.size / 1024) })}
</span>
)}
</span>
<a
href={`/api/v1/office/tasks/${doc.taskId}/documents/${encodeURIComponent(doc.key)}/download`}
@@ -181,6 +188,7 @@ function AttachmentBody({ doc }: { doc: TaskDocument }) {
}
function DocumentCard({ doc, onDelete }: { doc: TaskDocument; onDelete: (key: string) => void }) {
const { t } = useTranslation();
const [expanded, setExpanded] = useState(false);
const typeConfig = getTypeConfig(doc.type);
const isAttachment = doc.type.toUpperCase() === "ATTACHMENT";
@@ -223,7 +231,7 @@ function DocumentCard({ doc, onDelete }: { doc: TaskDocument; onDelete: (key: st
<AttachmentBody doc={doc} />
) : (
<div className="px-3 pb-3 pt-1 text-sm text-muted-foreground whitespace-pre-wrap border-t border-border/50 max-h-[400px] overflow-y-auto">
{doc.content || <span className="italic">No content</span>}
{doc.content || <span className="italic">{t("task:noContent")}</span>}
</div>
))}
</div>
@@ -237,6 +245,7 @@ type Props = {
};
export function TaskDocuments({ taskId }: Props) {
const { t } = useTranslation();
const [documents, setDocuments] = useState<TaskDocument[] | null>(null);
const [loading, setLoading] = useState(false);
const [showForm, setShowForm] = useState(false);
@@ -249,23 +258,23 @@ export function TaskDocuments({ taskId }: Props) {
setDocuments(res.documents ?? []);
setLoaded(true);
} catch {
toast.error("Failed to load documents");
toast.error(t("task:failedToLoadDocuments"));
} finally {
setLoading(false);
}
}, [taskId]);
}, [taskId, t]);
const handleDelete = useCallback(
async (key: string) => {
try {
await deleteDocument(taskId, key);
setDocuments((prev) => prev?.filter((d) => d.key !== key) ?? null);
toast.success("Document deleted");
toast.success(t("task:documentDeleted"));
} catch {
toast.error("Failed to delete document");
toast.error(t("task:failedToDeleteDocument"));
}
},
[taskId],
[taskId, t],
);
const handleCreated = useCallback(async () => {
@@ -283,7 +292,7 @@ export function TaskDocuments({ taskId }: Props) {
return (
<div className="mt-6">
<div className="flex items-center justify-between mb-3">
<h2 className="text-sm font-semibold">Documents</h2>
<h2 className="text-sm font-semibold">{t("task:documents")}</h2>
<Button
variant="ghost"
size="sm"
@@ -291,7 +300,7 @@ export function TaskDocuments({ taskId }: Props) {
onClick={() => setShowForm((v) => !v)}
>
<IconPlus className="h-3.5 w-3.5 mr-1" />
New document
{t("task:newDocument")}
</Button>
</div>
@@ -305,10 +314,12 @@ export function TaskDocuments({ taskId }: Props) {
</div>
)}
{loading && docs.length === 0 && <p className="text-sm text-muted-foreground">Loading...</p>}
{loading && docs.length === 0 && (
<p className="text-sm text-muted-foreground">{t("task:loading")}</p>
)}
{loaded && docs.length === 0 && !showForm && (
<p className="text-sm text-muted-foreground">No documents yet.</p>
<p className="text-sm text-muted-foreground">{t("task:noDocumentsYet")}</p>
)}
<div className="space-y-2">
@@ -17,6 +17,7 @@ import { SubIssuesRow } from "./components/sub-issues-row";
import { ReviewersPicker } from "./components/reviewers-picker";
import { ApproversPicker } from "./components/approvers-picker";
import { PendingApprovalBadge } from "./components/pending-approval-badge";
import { useTranslation } from "react-i18next";
type TaskPropertiesProps = {
task: Task;
@@ -43,30 +44,37 @@ function formatNumber(value: number): string {
return new Intl.NumberFormat().format(value);
}
const NONE_LABEL = <span className="text-muted-foreground">None</span>;
// A component rather than a module-level constant: `t()` at module scope
// resolves at import, before a locale is active, and never updates on a
// locale switch. See `check-module-scope-t.mjs`.
function NoneLabel() {
const { t } = useTranslation();
return <span className="text-muted-foreground">{t("task:none")}</span>;
}
function IdentitySection({ task }: { task: Task }) {
const { t } = useTranslation();
return (
<>
<PropertyRow label="Status" valueClassName="ml-auto">
<PropertyRow label={t("common:status")} valueClassName="ml-auto">
<span className="flex items-center gap-2 ml-auto">
<PendingApprovalBadge task={task} />
<StatusPicker task={task} />
</span>
</PropertyRow>
<PropertyRow label="Priority" valueClassName="ml-auto">
<PropertyRow label={t("task:priority")} valueClassName="ml-auto">
<PriorityPicker task={task} />
</PropertyRow>
<PropertyRow label="Labels" valueClassName="ml-auto" alignStart>
<PropertyRow label={t("task:labels")} valueClassName="ml-auto" alignStart>
<LabelsPicker task={task} />
</PropertyRow>
<PropertyRow label="Assignee" valueClassName="ml-auto">
<PropertyRow label={t("task:assignee")} valueClassName="ml-auto">
<AssigneePicker task={task} />
</PropertyRow>
<PropertyRow label="Project" valueClassName="ml-auto">
<PropertyRow label={t("task:project")} valueClassName="ml-auto">
<ProjectPicker task={task} />
</PropertyRow>
<PropertyRow label="Parent" valueClassName="ml-auto">
<PropertyRow label={t("task:parent")} valueClassName="ml-auto">
<ParentPicker task={task} />
</PropertyRow>
</>
@@ -74,15 +82,16 @@ function IdentitySection({ task }: { task: Task }) {
}
function DependenciesSection({ task }: { task: Task }) {
const { t } = useTranslation();
return (
<>
<PropertyRow label="Blocked by" valueClassName="ml-auto" alignStart>
<PropertyRow label={t("task:relatedBlockedBy")} valueClassName="ml-auto" alignStart>
<BlockersPicker task={task} />
</PropertyRow>
<PropertyRow label="Blocking">
{task.blocking.length > 0 ? task.blocking.join(", ") : NONE_LABEL}
<PropertyRow label={t("task:blocking")}>
{task.blocking.length > 0 ? task.blocking.join(", ") : <NoneLabel />}
</PropertyRow>
<PropertyRow label="Sub-issues" alignStart>
<PropertyRow label={t("task:subIssues")} alignStart>
<SubIssuesRow task={task} />
</PropertyRow>
</>
@@ -90,12 +99,13 @@ function DependenciesSection({ task }: { task: Task }) {
}
function ReviewSection({ task }: { task: Task }) {
const { t } = useTranslation();
return (
<>
<PropertyRow label="Reviewers" valueClassName="ml-auto" alignStart>
<PropertyRow label={t("task:reviewers")} valueClassName="ml-auto" alignStart>
<ReviewersPicker task={task} />
</PropertyRow>
<PropertyRow label="Approvers" valueClassName="ml-auto" alignStart>
<PropertyRow label={t("task:approvers")} valueClassName="ml-auto" alignStart>
<ApproversPicker task={task} />
</PropertyRow>
</>
@@ -103,20 +113,22 @@ function ReviewSection({ task }: { task: Task }) {
}
function TimelineSection({ task }: { task: Task }) {
const { t } = useTranslation();
const dateOrDash = (d?: string | null) =>
d ? formatDate(d) : <span className="text-muted-foreground">--</span>;
return (
<>
<PropertyRow label="Created by">{task.createdBy}</PropertyRow>
<PropertyRow label="Started">{dateOrDash(task.startedAt)}</PropertyRow>
<PropertyRow label="Completed">{dateOrDash(task.completedAt)}</PropertyRow>
<PropertyRow label="Created">{formatDate(task.createdAt)}</PropertyRow>
<PropertyRow label="Updated">{formatRelativeTime(task.updatedAt)}</PropertyRow>
<PropertyRow label={t("task:createdBy")}>{task.createdBy}</PropertyRow>
<PropertyRow label={t("task:started")}>{dateOrDash(task.startedAt)}</PropertyRow>
<PropertyRow label={t("task:completed")}>{dateOrDash(task.completedAt)}</PropertyRow>
<PropertyRow label={t("task:created")}>{formatDate(task.createdAt)}</PropertyRow>
<PropertyRow label={t("task:updated")}>{formatRelativeTime(task.updatedAt)}</PropertyRow>
</>
);
}
function TreeCostSection({ task }: { task: Task }) {
const { t } = useTranslation();
const [summary, setSummary] = useState<TreeCostSummary | null>(null);
useEffect(() => {
@@ -141,11 +153,13 @@ function TreeCostSection({ task }: { task: Task }) {
return (
<>
<Separator className="my-2" />
<PropertyRow label="Tree cost">{formatCurrency(summary.cost_subcents)}</PropertyRow>
<PropertyRow label="Tree tasks">{summary.task_count}</PropertyRow>
<PropertyRow label="Input tokens">{formatNumber(summary.tokens_in)}</PropertyRow>
<PropertyRow label="Cached input">{formatNumber(summary.tokens_cached_in)}</PropertyRow>
<PropertyRow label="Output tokens">{formatNumber(summary.tokens_out)}</PropertyRow>
<PropertyRow label={t("task:treeCost")}>{formatCurrency(summary.cost_subcents)}</PropertyRow>
<PropertyRow label={t("task:treeTasks")}>{summary.task_count}</PropertyRow>
<PropertyRow label={t("task:inputTokens")}>{formatNumber(summary.tokens_in)}</PropertyRow>
<PropertyRow label={t("task:cachedInput")}>
{formatNumber(summary.tokens_cached_in)}
</PropertyRow>
<PropertyRow label={t("task:outputTokens")}>{formatNumber(summary.tokens_out)}</PropertyRow>
</>
);
}
+26
View File
@@ -1651,4 +1651,30 @@ export const i18nGuardFiles = [
// in `message-comment-decorations.tsx`, and the programming-language names in
// `tiptap-code-block-view.tsx`.
"components/task/chat/**/*.{ts,tsx}",
// Seven task subdirectories, one glob each. Whole trees — including the
// `.ts` helpers and the module-scope config tables that `mode: "jsx-only"`
// never inspects, so only the pseudo-locale can prove those stay clean.
//
// The pattern used throughout these trees for copy the rule cannot see: a
// module-level table stores a `labelKey` (a catalog key) rather than a
// resolved string, and the component resolves it at render. That keeps the
// sibling `value` / `key` field — which is persisted or compared with `===`
// — in English while the label follows the locale.
//
// Deliberately left in English inside these trees, because they are data or
// protocol rather than copy: sidebar-filter *values* (`state`, `in_progress`,
// …) and sort/group keys, which are persisted in a saved view; the `"main"`
// default base-branch name in `session-mobile-top-bar-git-controls.tsx`; the
// share API's `applied_rules` redaction ids and share URLs/tokens; terminal
// key sequences and key-cap glyphs in `mobile-terminal-keybar-helpers.tsx`
// (only their spoken aria-labels are translated); and the `group:` bucket on
// the command-palette entry in `sidebar-filter-bar.tsx`, which is shared
// taxonomy owned by `components/session-commands.tsx` and migrates with it.
"components/task/simple/**/*.{ts,tsx}",
"components/task/mobile/**/*.{ts,tsx}",
"components/task/add-workspace-sources/**/*.{ts,tsx}",
"components/task/sidebar-filter/**/*.{ts,tsx}",
"components/task/share/**/*.{ts,tsx}",
"components/task/inspector/**/*.{ts,tsx}",
"components/task/document/**/*.{ts,tsx}",
];
+400 -1
View File
@@ -1,8 +1,31 @@
{
"aboutContextWindowSource": "About context window source",
"activeBadge": "ACTIVE",
"activeSessionRepositoryTapToSwitch": "Active session: {{agentLabel}}. Repository: {{repositoryLabel}}. Tap to switch.",
"activeSessionTapToSwitch": "Active session: {{agentLabel}}. Tap to switch.",
"activeSharesForThisSession": "Active shares for this session",
"activeTerminalTapToSwitch": "Active terminal: {{label}}. Tap to switch.",
"activity": "Activity",
"add": "Add",
"addAComment": "Add a comment...",
"addAnOptionalComment": "Add an optional comment",
"addApprover": "+ Add approver",
"addAtLeastOneSource": "Add at least one source.",
"addBlocker": "+ Add blocker",
"addDetailsAboutThisChange": "Add details about this change...",
"addFolder": "Add folder",
"addLabel": "Add label",
"addLabels": "+ Add labels",
"addMore": "Add more",
"addRepository": "Add repository",
"addReviewer": "+ Add reviewer",
"addShort": "+ Add",
"addSubIssue": "Add sub-issue",
"addToWorkspace": "Add to workspace",
"addYourCommentOrInstruction": "Add your comment or instruction...",
"adding": "Adding…",
"advanced": "Advanced",
"afterDuration": " after {{duration}}",
"agent": "Agent",
"agentBootFailedToResume": "Failed to resume agent {{agentName}}",
"agentBootFailedToStart": "Failed to start agent {{agentName}}",
@@ -20,35 +43,72 @@
"agentOutput": "Agent Output",
"agentPlan": "Agent Plan",
"agentProfileNoLongerExists": "Agent profile no longer exists",
"agentRunning": "agent running",
"allChangesTitle": "All Changes",
"alwaysAllow": "Always allow",
"anErrorOccurred": "An error occurred",
"anUnexpectedErrorOccurred": "An unexpected error occurred",
"andMoreFilesTruncated": "...and more files (truncated)",
"annotationArea": "Area",
"annotationAreaSized": "Area {{w}}x{{h}}",
"annotationCount_one": "{{count}} annotation",
"annotationCount_other": "{{count}} annotations",
"annotationPin": "Pin",
"answer": "answer",
"anyoneWithThisLinkCanView": "Anyone with this link can view this conversation. Review the preview carefully before publishing — once published, the snapshot is uploaded to GitHub Gist on your account.",
"approve": "Approve",
"approveThisAction": "Approve this action?",
"approved": "Approved",
"approvedLowercase": "approved",
"approvedThisTask": "{{who}} approved this task",
"approvedVerb": "Approved",
"approvers": "Approvers",
"archive": "Archive",
"askToMakeChanges": "Ask to make changes, @mention files",
"askToMakeChangesWithCommands": "Ask to make changes, @mention files, run /commands",
"assignee": "Assignee",
"attachFiles": "Attach files",
"attachment": "Attachment",
"attachmentIndexed": "Attachment {{index}}",
"attachmentIsTooLarge": "Attachment is too large",
"attachmentLimitReached": "Attachment limit reached",
"attachmentPreview": "Attachment preview",
"attachmentSizeKb": "({{size}} KB)",
"attachmentsCanTotalUpTo": "Attachments can total up to {{bytes}}.",
"authenticationRequiredLogInBeforeResuming": "Authentication required, log in before resuming",
"authenticationRequiredPleaseLogInVia": "Authentication required — please log in via the terminal",
"awaitingApprovalFromAgents_one": "Awaiting approval from {{count}} agent",
"awaitingApprovalFromAgents_other": "Awaiting approval from {{count}} agents",
"awaitingUserResponse": "Awaiting user response (pending_id={{pendingId}})",
"back": "Back",
"background": "background",
"backgroundWorkIsRunning": "Background work is running",
"baseBranch": "Base branch",
"blocked": "Blocked",
"blocking": "Blocking",
"branchIsNoLongerAvailable": "Branch is no longer available",
"buildingPreview": "Building preview…",
"byAuthor": "by {{author}}",
"cachedInput": "Cached input",
"cancelAgent": "Cancel agent",
"cancelLeavesWorkspaceUnchangedDetail": "<0>Cancel leaves the workspace unchanged.</0> If you continue, the batch is all-or-nothing: when any source fails, none of the new sources are attached.",
"cancelTree": "Cancel tree",
"cancelled": "Cancelled",
"cancelledTree": "Cancelled (tree)",
"cancelling": "Cancelling...",
"cannotMarkDoneAwaitingApprovalFrom": "Cannot mark done: awaiting approval from {{names}}",
"cannotMarkDoneAwaitingApprovals": "Cannot mark done: awaiting approvals",
"changes": "Changes",
"chat": "Chat",
"chooseFromSavedOrDiscoveredRepositories": "Choose from saved or discovered repositories.",
"chooseLocalFolder": "Choose local folder",
"chooseLocalGitRepository": "Choose local Git repository",
"chooseRepositoriesOrFoldersToMake": "Choose repositories or folders to make available in this task.",
"cleanup": "Cleanup",
"clearAllAnnotations": "Clear all annotations",
"cloneFromAProviderOrGit": "Clone from a provider or Git URL.",
"close": "Close",
"close2": "Close {{label}}",
"codeLanguagePlain": "Plain",
"collapse": "Collapse",
"collapseLastPrompt": "Collapse last prompt",
@@ -66,37 +126,82 @@
"commentOnSelection": "Comment on selection",
"commentsOnFiles_one": "{{count}} comment on {{files}}",
"commentsOnFiles_other": "{{count}} comments on {{files}}",
"commit": "Commit",
"commitChanges": "Commit Changes",
"commitChangesTitle": "Commit Changes",
"committed": "Committed",
"committingEllipsis": "Committing...",
"completed": "Completed",
"completedSuccessfully": "{{operationName}} completed successfully",
"contentMarkdownSupported": "Content (markdown supported)",
"context": "Context",
"contextFieldLabel": "context",
"contextWindow": "Context window",
"contextWindowUsed": "Context window: {{percent}}% used",
"control": "Control",
"controlC": "Control C",
"controlD": "Control D",
"copied": "Copied!",
"copied2": "Copied",
"copy": "Copy",
"copyAnnotations": "Copy annotations",
"copyAnnotationsToClipboard": "Copy annotations to clipboard",
"copyCommand": "Copy command",
"copyIdentifier": "Copy identifier",
"copyMessage": "Copy message",
"copyMessageToClipboard": "Copy message to clipboard",
"copyPath": "Copy path",
"copyToClipboard": "Copy to clipboard",
"couldNotAddSources": "Could not add sources. Your entries are still here to retry.",
"create": "Create",
"createAsDraft": "Create as draft",
"createChangeRequest": "Create {{shortName}}",
"createChangeRequestLong": "Create {{longName}}",
"createFailed": "Create {{shortName}} failed",
"created": "Created",
"created2": "{{longName}} created",
"createdBy": "Created by",
"createdSuccessfully": "{{longName}} created successfully",
"creatingEllipsis": "Creating...",
"creatingFrom": "Creating {{shortName}} from <4>{{displayBranch}}</4>",
"creatingFromTo": "Creating {{shortName}} from <4>{{displayBranch}}</4> to <7>{{baseBranch}}</7>",
"ctrl": "Ctrl",
"customPrompt": "Custom prompt",
"customPromptNamed": "Custom prompt: {{name}}",
"cwd": "cwd:",
"delete": "Delete",
"deleteComment": "Delete comment",
"deleteSession": "Delete session?",
"deny": "Deny",
"describeWhatNeedsToChange": "Describe what needs to change",
"describeYourChanges": "Describe your changes...",
"description": "description",
"description2": "Description",
"details": "Details",
"diff": "Diff",
"diffSideNew": "new",
"diffSideOld": "old",
"discard": "Discard",
"dismiss": "Dismiss",
"displayNameOptional": "Display name (optional)",
"documentCount_one": "{{count}} document",
"documentCount_other": "{{count}} documents",
"documentDeleted": "Document deleted",
"documentSaved": "Document saved",
"documents": "Documents",
"done": "Done",
"downloadingModelPercent": "Downloading {{modelLabel}}… {{pct}}%",
"downloadingPercent": "Downloading {{modelLabel}}, {{pct}} percent",
"draftCreated": "Draft {{longName}} created",
"duration": "duration",
"durationValue": "Duration: {{duration}}",
"earlierUpdates_one": "Earlier updates ({{count}})",
"earlierUpdates_other": "Earlier updates ({{count}})",
"editComment": "Edit comment",
"empty": "(empty)",
"enhancedPromptInserted": "Enhanced prompt inserted.",
"enterCommitMessage": "Enter commit message...",
"enterInspectMode": "Enter inspect mode",
"enterMessageContent": "Enter message content...",
"environmentSetupFailed": "Environment setup failed",
"error": "Error",
@@ -105,30 +210,88 @@
"exitCodeShell": "Exit code {{exitCode}}",
"exitCodeUnavailable": "Exit code unavailable",
"exitCodeValue": "Exit code: {{exitCode}}",
"exitInspectMode": "Exit inspect mode",
"expandLastPrompt": "Expand last prompt",
"expandPlan": "Expand plan",
"expired": "Expired",
"failed": "Failed",
"failed2": "{{operationName}} failed",
"failedToArchiveTask": "Failed to archive task",
"failedToDeleteDocument": "Failed to delete document",
"failedToLoad": "{{modelLabel}} failed to load",
"failedToLoadDocuments": "Failed to load documents",
"failedToLoadPreview": "Failed to load preview.",
"failedToPublishShare": "Failed to publish share.",
"failedToRead": "Failed to read {{name}}",
"failedToRenameTask": "Failed to rename task",
"failedToRevokeShare": "Failed to revoke share.",
"failedToSaveDocument": "Failed to save document",
"failedToSendComment": "Failed to send comment",
"failedToUpload": "Failed to upload {{name}}",
"file": "File",
"fileChangesTitle": "File Changes",
"fileCountLabel_one": "{{count}} file",
"fileCountLabel_other": "{{count}} files",
"files": "Files",
"filesChanged_one": "<0>{{count}}</0> file changed",
"filesChanged_other": "<0>{{count}}</0> files changed",
"filterDimensionArchived": "Archived",
"filterDimensionExecutorType": "Executor type",
"filterDimensionHasDiff": "Has diff",
"filterDimensionHasPr": "Has PR",
"filterDimensionIssueWatch": "Issue watch",
"filterDimensionPrReview": "PR review",
"filterDimensionRepository": "Repository",
"filterDimensionState": "State",
"filterDimensionTitle": "Title",
"filterDimensionWorkflow": "Workflow",
"filterDimensionWorkflowStep": "Workflow step",
"filterOpContains": "contains",
"filterOpDoesNotContain": "does not contain",
"filterOpHide": "Hide",
"filterOpIn": "in",
"filterOpIs": "is",
"filterOpIsNot": "is not",
"filterOpNotIn": "not in",
"filterOpShow": "Show",
"filterStateBacklog": "Backlog",
"filterStateInProgress": "In progress",
"filterStateReview": "Review",
"filterTitlePlaceholder": "Substring...",
"filters": "Filters",
"fixTheMarkedSources": "Fix the marked sources before adding them.",
"folder": "Folder",
"folderDisplayName": "Folder display name",
"forcePush": "Force Push",
"fromAgent": "From agent",
"fromAgentInTask": "From agent in task <1>“{{fullTitle}}”</1>",
"fromBranch": "from {{branch}}",
"fromSessionInTask": "From session <1>“{{sessionName}}”</1> in task <3>“{{fullTitle}}”</3>",
"fromTask": "From {{title}}",
"fullImpactDetails": "Full impact details",
"fullSize": "Full size {{alt}}",
"gitActions": "Git actions",
"goToNextMessage": "Go to next message",
"goToPreviousMessage": "Go to previous message",
"groupBy": "Group by",
"groupExecutorType": "Executor type",
"groupNone": "None",
"groupRepository": "Repository",
"groupState": "State",
"groupStatusRateLimited": "Temporarily rate limited",
"groupStatusTimeout": "Search timed out",
"groupStatusUnauthorized": "Sign-in required",
"groupStatusUnsupportedScope": "Unavailable for this workspace",
"groupStatusUpstreamError": "Provider unavailable",
"groupWorkflow": "Workflow",
"groupWorkflowStep": "Workflow step",
"hiddenMessagesInPreview_one": "… {{count}} more message hidden in this preview (still included in the share) …",
"hiddenMessagesInPreview_other": "… {{count}} more messages hidden in this preview (still included in the share) …",
"hideCommandOutput": "Hide command output",
"hideErrorDetails": "Hide error details: {{displayLabel}}",
"hidePreviousAgentError": "Hide previous agent error",
"hideRightPanel": "Hide right panel",
"hideSidebar": "Hide sidebar",
"image": "Image",
"imagePreview": "Image preview",
"imageWithSize": "Image ({{bytes}})",
@@ -136,6 +299,9 @@
"implementInFreshAgent": "Implement in fresh agent",
"implementThePlanInThisSession": "Implement the plan in this session",
"includeThePlanAsContext": "Include the plan as context",
"inputTokens": "Input tokens",
"inspectClickToPinOrDrag": "Inspect: click to pin or drag to select an area of the preview",
"inspectingClickToPin": "Inspecting - click to pin, drag to select an area, Esc to exit",
"isTheMaximumFileSizeIs": "{{name}} is {{size}}. The maximum file size is {{maxSize}}.",
"kandevAskUserQuestion": "Kandev: Ask User Question",
"kandevCreateTask": "Kandev: Create Task",
@@ -157,12 +323,37 @@
"kandevUpdateTask": "Kandev: Update Task",
"kandevUpdateTaskPlan": "Kandev: Update Task Plan",
"kandevWriteTaskDocument": "Kandev: Write Task Document",
"keyAndContentAreRequired": "Key and content are required",
"keyArrowDown": "Arrow Down",
"keyArrowLeft": "Arrow Left",
"keyArrowRight": "Arrow Right",
"keyArrowUp": "Arrow Up",
"keyDash": "Dash",
"keyEGPlanNotes": "Key (e.g. plan, notes)",
"keyEnd": "End",
"keyEscape": "Escape",
"keyHome": "Home",
"keyPageDown": "Page Down",
"keyPageUp": "Page Up",
"keyPipe": "Pipe",
"keySlash": "Slash",
"keyTab": "Tab",
"keyTilde": "Tilde",
"keyUnderscore": "Underscore",
"labelAlreadyExists": "Label already exists",
"labelColor": "Label color",
"labelName": "label name",
"labels": "Labels",
"liveUpdateConsequenceSessionAndProcesses": "<0>Session and processes:</0> The agent and running workspace processes continue while Kandev rescans the workspace. The task, session, task state, messages, plan, attached sources, model, and mode remain in place.",
"liveUpdateConsequenceWorkspace": "<0>Workspace:</0> Repositories are cloned as named top-level entries under the current remote workspace. The agent's working directory does not change, and existing files and Git changes are not moved or discarded.",
"loadOlderMessages": "Load older messages",
"loading": "Loading...",
"loadingCommandOutput": "Loading command output...",
"loadingConversation": "Loading conversation...",
"loadingOlder": "loading older…",
"loadingOlderMessages": "Loading older messages...",
"loadingSessions": "Loading sessions…",
"localGitRepository": "Local Git repository",
"loginRequired": "Login required",
"markAsFavorite": "Mark as favorite",
"markMessageAsFavorite": "Mark message as favorite",
@@ -170,6 +361,7 @@
"mcpPolicyLabel": "mcp:",
"mcpServers": "MCP servers",
"mentionTasksFilesPrompts": "Mention tasks, files, prompts",
"merge": "Merge",
"messageCount_one": "{{count}} message",
"messageCount_other": "{{count}} messages",
"messageMetadata": "Message metadata",
@@ -188,43 +380,80 @@
"moveTaskToTheNextWorkflow": "Move task to the next workflow step",
"needsInput": "Needs input",
"new": "New",
"newDocument": "New document",
"newMessages": "New messages",
"newSession": "New session",
"newSubTask": "New Sub-Task",
"newTerminal": "New terminal",
"newView": "New view",
"newViewName": "New view name",
"newViewUnavailable": "New view unavailable. {{newViewDisabledReason}}",
"newline": "⇧↵ newline",
"next": "Next",
"nextMessage": "Next message",
"nextQuestion": "Next question",
"noActiveSession": "No active session",
"noActiveTask": "No active task",
"noActivityYet": "No activity yet",
"noAgentsFound": "No agents found.",
"noAssignee": "No assignee",
"noChangesToCommit": "No changes to commit",
"noCommandOutput": "No command output.",
"noCommandOutputYet": "No command output yet.",
"noCommentsYet": "No comments yet",
"noContent": "No content",
"noDecisionYet": "No decision yet",
"noDocumentsFound": "No documents found.",
"noDocumentsYet": "No documents yet.",
"noItemsFound": "No items found.",
"noLabelsYet": "No labels yet",
"noMatches": "No matches",
"noMessagesFound": "No messages found.",
"noMessagesYetStartTheConversation": "No messages yet. Start the conversation!",
"noOptions": "No options",
"noOptions2": "No options.",
"noParent": "No parent",
"noPlan": "no plan",
"noPlanFound": "No plan found.",
"noProfilesFound": "No profiles found.",
"noProject": "No project",
"noProjectsFound": "No projects found.",
"noQuestionsFound": "No questions found.",
"noRelatedTasksFound": "No related tasks found.",
"noResultsFound": "No results found",
"noSessionsYetLaunchOneTo": "No sessions yet. Launch one to get started.",
"noStepsFound": "No steps found.",
"noSubIssues": "No sub-issues",
"noTaskSelected": "No task selected",
"noTasksFound": "No tasks found.",
"noTerminalsYet": "No terminals yet.",
"noWorkItemsFound": "No work items found",
"noWorkflowsFound": "No workflows found.",
"noWorkspacesFound": "No workspaces found.",
"none": "None",
"ontoBranch": "onto {{branch}}",
"openEntityReference": "Open {{label}}: {{title}}",
"openFile": "Open file",
"openImage": "Open {{alt}}",
"openInAdvancedView": "Open in advanced view",
"openMarkdownPreview": "Open markdown preview",
"openPlanDetails": "Open plan details",
"openSidebarFilters": "Open sidebar filters",
"openSourceTask": "Open source task {{fullTitle}}",
"openTaskSwitcher": "Open task switcher",
"openTerminal": "Open terminal",
"openTheBottomTerminalAndPaste": "Open the bottom terminal and paste this command",
"option": "option {{index}}",
"orTypeACustomAnswer": "Or type a custom answer…",
"output": "Output",
"outputTokens": "Output tokens",
"outputTruncated": "Output truncated",
"parent": "Parent",
"pastedImageCouldnTBeAttached": "Pasted image couldn’t be attached",
"pauseTree": "Pause tree",
"paused": "Paused",
"pendingApproval": "Pending Approval",
"permissionRequested": "Permission requested",
"plan": "Plan",
"planIsEmpty": "Plan is empty",
"planMode": "Plan mode",
@@ -235,17 +464,35 @@
"previousAgentError": "Previous agent error",
"previousMessage": "Previous message",
"previousQuestion": "Previous question",
"priority": "Priority",
"priorityCritical": "Critical",
"priorityHigh": "High",
"priorityLow": "Low",
"priorityMedium": "Medium",
"profileCount_one": "{{count}} profile",
"profileCount_other": "{{count}} profiles",
"progress": "Progress",
"project": "Project",
"prompt": "Prompt",
"promptFieldLabel": "prompt",
"providerPrivateContextThatKandevDid": "Provider-private context that Kandev did not record may not carry over. Open terminals, dev servers, and other workspace processes stop, including the task editor server.",
"providerUnavailable": "Provider unavailable",
"publishARedactedSnapshotOfThis": "Publish a redacted snapshot of this completed task as a secret GitHub Gist on your account.",
"publishToGithubGist": "Publish to GitHub Gist",
"publishedAnyoneWithThisLinkCan": "Published. Anyone with this link can view the conversation.",
"publishing": "Publishing…",
"pull": "Pull",
"push": "Push",
"questionCount_one": "{{count}} question",
"questionCount_other": "{{count}} questions",
"questionOfTotal": "Question {{index}} of {{total}}",
"questionOfTotalAnswered": "Question {{index}} of {{total}} (answered)",
"queueMoreInstructions": "Queue more instructions...",
"queued": "Queued",
"ranCommands_one": "· ran {{count}} command",
"ranCommands_other": "· ran {{count}} commands",
"rebase": "Rebase",
"redactedRules": "Redacted: {{rules}}",
"referenceWorkItems": "Reference work items",
"rejected": "Rejected",
"relatedBlockedBy": "Blocked by",
@@ -255,16 +502,29 @@
"relatedSiblings": "Siblings",
"relatedTaskCount_one": "{{count}} related task",
"relatedTaskCount_other": "{{count}} related tasks",
"remoteRepository": "Remote repository",
"remove": "Remove",
"remove2": "Remove {{name}}",
"remove3": "Remove {{identifier}}",
"removeAnnotation": "Remove annotation {{number}}",
"removeFile": "Remove file",
"removeFilter": "Remove filter",
"removeFromFavorites": "Remove from favorites",
"removeImage": "Remove image",
"removeLabeled": "Remove {{label}}",
"removeMessageFromFavorites": "Remove message from favorites",
"removeSource": "Remove source",
"rename": "Rename",
"repeatedTerminalCommandsHidden_one": "{{count}} repeated identical terminal command hidden",
"repeatedTerminalCommandsHidden_other": "{{count}} repeated identical terminal commands hidden",
"repeatedTerminalCommandsShown_one": "{{count}} repeated identical terminal command shown",
"repeatedTerminalCommandsShown_other": "{{count}} repeated identical terminal commands shown",
"repositoriesAreAddedAsTopLevel": "Repositories are added as top-level entries in the current remote workspace. The agent's working directory does not change.",
"requestChanges": "Request changes",
"requestedChanges": "requested changes",
"requestedChangesPlain": "{{who}} requested changes",
"requestedChangesVerb": "Requested changes",
"requestedChangesWithComment": "{{who}} requested changes: '{{comment}}'",
"requestingMicrophone": "Requesting microphone…",
"requestingMicrophonePermission": "Requesting microphone permission",
"resetAgentContext": "Reset agent context?",
@@ -273,76 +533,186 @@
"resetting": "Resetting...",
"resize": "Resize",
"restart": "Restart",
"restartConsequenceRunningProcesses": "<0>Running processes:</0> Open terminals, dev servers, and other workspace processes stop. This includes the task editor server. Save unsaved work, then reopen or restart those processes after the sources are attached.",
"restartConsequenceSessionContext": "<0>Session context:</0> Kandev restarts the idle agent while preserving the task, session, task state, messages, plan, attached sources, and selected model and mode. Providers that support cross-directory resume keep their native session. Other providers start a new session and receive Kandev's recorded conversation with the next prompt. Provider-private context that Kandev did not record may not carry over.",
"restartConsequenceWorkspace": "<0>Workspace:</0> The task root becomes the agent's working directory. For a single-repository task, this moves the CWD up one level and shows every source as a named top-level entry. Existing files and Git changes are not moved or discarded.",
"restarting": "Restarting...",
"restoreTree": "Restore tree",
"resume": "Resume",
"resumeSession": "Resume session",
"resumeTree": "Resume tree",
"retry": "Retry",
"retryChangeRequest": "Retry {{shortName}}",
"reverseISearch": "(reverse-i-search)",
"review": "Review",
"reviewComments": "Review comments",
"reviewCommentsTitle": "Review Comments",
"reviewTheseChangesBeforeAddingSources": "Review these changes before adding sources. The task must remain idle until the operation finishes.",
"reviewers": "Reviewers",
"revoke": "Revoke",
"revokeShare": "Revoke share",
"revoking": "Revoking…",
"roleApprover": "Approver",
"roleReviewer": "Reviewer",
"run": "Run",
"runCommand": "Run /{{name}} command",
"runInTerminal": "Run in terminal",
"running": "running",
"saveAs": "Save as:",
"saveAs2": "Save as…",
"saveOrDiscardBeforeNewView": "Save or discard changes before creating a new view.",
"savedAndLocalGitRepositoriesMust": "Saved and local Git repositories must have a cloneable origin for this executor. Local folders are unavailable.",
"saving": "Saving...",
"scriptExecutionMetadataUnavailable": "Script Execution (metadata unavailable)",
"scrollToActiveSession": "Scroll to active session",
"scrollToLastPrompt": "Scroll to last prompt",
"scrollToStartOfTranscript": "Scroll to start of transcript",
"searchAgents": "Search agents...",
"searchEllipsis": "Search…",
"searchEllipsis2": "Search...",
"searchFilesAndPrompts": "Search files and prompts...",
"searchProjects": "Search projects...",
"searchTasks": "Search tasks...",
"searching": "Searching…",
"searchingWorkItems": "Searching work items…",
"selectFilesAndPromptsToInclude": "· Select files and prompts to include",
"selectValue": "Select value",
"selectValues": "Select values",
"selected": "Selected",
"send": "Send",
"sendAnswer": "Send answer",
"sendComment": "Send comment",
"senderWithSession": "{{base}} · {{sessionName}}",
"sentAsNewMessage": "· sent as new message",
"session": "session",
"sessionActions": "Session actions",
"sessionContext": "Session context",
"sessionCount_one": "{{count}} session",
"sessionCount_other": "{{count}} sessions",
"sessionFallbackLabel": "Session",
"sessions": "Sessions",
"setAsPrimary": "Set as Primary",
"setup": "Setup",
"share": "Share",
"shareThisTask": "Share this task",
"shareThisTaskConversationAsA": "Share this task conversation as a public link",
"shift": "Shift",
"showCommandOutput": "Show command output",
"showDetails": "Show details",
"showErrorDetails": "Show error details: {{displayLabel}}",
"showFormatted": "Show formatted",
"showFormattedMessage": "Show formatted message",
"showFullTimestamp": "Show full timestamp: {{absoluteTime}}",
"showMcpConnectionStatus": "Show MCP connection status",
"showMessageMetadata": "Show message metadata",
"showOlderSessions_one": "Show {{count}} older session",
"showOlderSessions_other": "Show {{count}} older sessions",
"showRawText": "Show raw text",
"showRightPanel": "Show right panel",
"showSidebar": "Show sidebar",
"sidebarFilters": "Sidebar filters",
"skipAllQuestions": "Skip all questions",
"skipped": "Skipped",
"snapshotMessageCount_one": "{{count}} messages",
"snapshotMessageCount_other": "{{count}} messages",
"someone": "Someone",
"sort": "Sort",
"sortCreated": "Created",
"sortCustom": "Custom",
"sortDirection": "Sort direction {{direction}}",
"sortStatus": "Status",
"sortTitle": "Title",
"sortUpdated": "Updated",
"source": "Source",
"sourceChangesTitle": "{{source}} Changes",
"stageAllChangesBeforeCommitting": "Stage all changes before committing",
"stageApproval": "Approval",
"stageImplement": "Implement",
"stageReview": "Review",
"stageShip": "Ship",
"start": "start",
"startAgent": "Start agent",
"startFreshSession": "Start fresh session",
"startVoiceInput": "Start voice input",
"started": "Started",
"starting": "Starting...",
"startingAgent": "Starting {{agentLabel}}",
"startingEllipsis": "Starting…",
"startingTerminal": "Starting terminal…",
"startsANewSessionWithA": "Starts a new session with a clean context window",
"state": "state",
"status": "Status",
"statusBacklog": "Backlog",
"statusBlocked": "Blocked",
"statusCancelled": "Cancelled",
"statusChangedFromTo": "Status changed from <1>{{from}}</1> to <3>{{to}}</3>",
"statusDone": "Done",
"statusInProgress": "In Progress",
"statusInReview": "In Review",
"statusTodo": "Todo",
"stepCount_one": "{{count}} step",
"stepCount_other": "{{count}} steps",
"stepFieldLabel": "step",
"stepNumber": "Step {{index}}",
"stop": "Stop",
"stopRecording": "Stop recording",
"stopVoiceInput": "Stop voice input",
"stoppedWithAnError": "stopped with an error",
"subIssues": "Sub-issues",
"subTasks": "Sub-tasks",
"submit": "Submit",
"submitAnswers": "Submit answers",
"submitUnavailable": "Submit unavailable",
"submitting": "Submitting…",
"successful": "{{operationName}} successful",
"switchSidebarView": "Switch sidebar view: {{name}}",
"system": "System",
"systemSender": "System",
"taskCount_one": "{{count}} task",
"taskCount_other": "{{count}} tasks",
"taskDetails": "Task details",
"taskOverview": "Task overview",
"taskTreeCancelled": "Task tree cancelled",
"taskTreePaused": "Task tree paused",
"taskTreeRestored": "Task tree restored",
"taskTreeResumed": "Task tree resumed",
"tasks": "Tasks",
"tasksAffected_one": "{{count}} tasks affected",
"tasksAffected_other": "{{count}} tasks affected",
"terminal": "Terminal",
"terminalCount_one": "{{count}} terminal",
"terminalCount_other": "{{count}} terminals",
"terminalUnavailableNoActiveSession": "Terminal unavailable — no active session.",
"terminals": "Terminals",
"theAgentAndRunningWorkspaceProcesses": "The agent and running workspace processes continue. Existing files, Git changes, and recorded task and session context remain.",
"theAgentHasMovedOn": "The agent has moved on. Your response will be sent as a new message.",
"theAgentStoppedWithAnError": "The agent stopped with an error. Resume to retry the same conversation, or start a fresh session.",
"theBrowserDidnTProvideImage": "The browser didn’t provide image data. Save the image, then attach the file instead.",
"theConnectionDroppedOrTimedOut": "The connection dropped or timed out. Refresh the task to confirm whether it went through.",
"theIdleAgentRestartsAtThe": "The idle agent restarts at the task root. Existing files, Git changes, task and session history, messages, plan, attached sources, model, and mode remain.",
"thinking": "Thinking",
"thisConversationHasNoShareableContent": "This conversation has no shareable content.",
"thisIsTheOnlySessionFor": "This is the only session for this task.",
"thisIsThePrimarySessionAnother": "This is the primary session. Another session will be set as primary.",
"thisRepositoryMustHaveACloneable": "This repository must have a cloneable origin; Kandev will verify it before adding.",
"thisRestartsTheTaskWorkspace": "This restarts the task workspace",
"thisTask": "this task",
"thisTaskPointsToBranch": "This task points to <1>{{branch}}</1>, but that branch could not be found on the remote repository. It may have been merged or deleted.",
"thisUpdatesTheLiveTaskWorkspace": "This updates the live task workspace",
"thisWillClearTheAgentS": "This will clear the agent's conversation history and start a fresh context. Your workspace, files, and git state will be preserved.",
"thisWillPermanentlyDeleteTheConversation": "This will permanently delete the conversation history with this session.",
"timedOutAgentMovedOn": "Timed out (agent moved on)",
"title": "title",
"title2": "{{longName}} title",
"title3": "{{longName}} title...",
"titleOptional": "Title (optional)",
"toFocus": "to focus",
"todos": "Todos",
"todosCompleted": "{{completed}}/{{total}} completed",
"tokenCount_one": "{{formatted}} token",
"tokenCount_other": "{{formatted}} tokens",
"tokens": "tokens",
"tool": "tool",
"toolCallCount_one": "{{count}} tool call",
"toolCallCount_other": "{{count}} tool calls",
"toolCount_one": "{{count}} tool",
@@ -350,18 +720,38 @@
"tools": "tools",
"transcribing": "Transcribing…",
"transcribingVoiceInput": "Transcribing voice input",
"treeActionFailed": "Tree action failed",
"treeCost": "Tree cost",
"treeTasks": "Tree tasks",
"truncated": "truncated",
"truncatedParen": "(truncated)",
"tryAgain": "Try again",
"turnForDuration": "for {{duration}}",
"turnMessageCount_one": "· {{count}} message",
"turnMessageCount_other": "· {{count}} messages",
"turnWorked": "worked",
"turnWorking": "working",
"typeToSearch": "Type to search...",
"typeToSearchPreviousMessages": "Type to search previous messages...",
"typeToSearchWorkItems": "Type to search work items",
"uncommitted": "Uncommitted",
"unknown": "Unknown",
"unnamed": "(unnamed)",
"unpinWillBeRemovedAfterSend": "Unpin (will be removed after send)",
"untitled": "(untitled)",
"update": "Update",
"updated": "Updated",
"updatedTodos": "Updated Todos",
"updating": "Updating…",
"uploaded": "Uploaded {{name}}",
"useAnExistingCheckoutOnThis": "Use an existing checkout on this machine.",
"usesTheCurrentCheckoutKandevDoes": "Uses the current checkout. Kandev does not switch your local repository branch.",
"value": "Value",
"viaSession": "via session",
"view": "View:",
"viewLimitReached_one": "You can save up to {{count}} views.",
"viewLimitReached_other": "You can save up to {{count}} views.",
"viewName": "View name",
"voiceInput": "Voice input",
"voiceInputNeedsHttps": "Voice input needs HTTPS. Open this site over https:// (or http://localhost) — most mobile browsers block microphone APIs on insecure origins.",
"voiceInputUnavailable": "Voice input unavailable",
@@ -369,7 +759,11 @@
"voiceInputUnavailableTapForDetails": "Voice input unavailable — tap for details",
"voiceInputUnsupportedBrowser": "Voice input isn't supported in this browser. Try Chrome, Edge, or Safari 14.5+.",
"voiceTooltipHold": "{{tooltip}} (hold)",
"waitForActiveTurnToFinish": "Wait for the active turn or tool call to finish before adding sources.",
"waitForTaskSourcesToLoad": "Wait for task sources to finish loading before adding sources.",
"walkthrough": "Walkthrough: {{title}}",
"workedRanCommands_one": "Worked -- ran {{count}} commands",
"workedRanCommands_other": "Worked -- ran {{count}} commands",
"workflow": "workflow",
"workflowCount_one": "{{count}} workflow",
"workflowCount_other": "{{count}} workflows",
@@ -377,9 +771,14 @@
"workflowSender": "Workflow",
"workflowStepMessageFrom": "Workflow step message from {{label}}",
"working": "Working...",
"working3": "Working",
"working4": "Working…",
"workingInBackground": "Working in background",
"workspaceCount_one": "{{count}} workspace",
"workspaceCount_other": "{{count}} workspaces",
"workspaceRepository": "Workspace repository",
"writeYourChangesHere": "Write your changes here",
"you": "You",
"youCanAttachUpToFiles": "You can attach up to {{maxFiles}} files."
"youCanAttachUpToFiles": "You can attach up to {{maxFiles}} files.",
"yourReviewIsRequestedOnThis": "Your review is requested on this task."
}
+400 -1
View File
@@ -1,8 +1,31 @@
{
"aboutContextWindowSource": "Àƀōũţ ćōńţēxţ ŵĩńďōŵ śōũŕćē",
"activeBadge": "ÀĆŢĨVĒ",
"activeSessionRepositoryTapToSwitch": "Àćţĩvē śēśśĩōń: {{agentLabel}}. Ŕēƥōśĩţōŕŷ: {{repositoryLabel}}. Ţàƥ ţō śŵĩţćĥ.",
"activeSessionTapToSwitch": "Àćţĩvē śēśśĩōń: {{agentLabel}}. Ţàƥ ţō śŵĩţćĥ.",
"activeSharesForThisSession": "Àćţĩvē śĥàŕēś ƒōŕ ţĥĩś śēśśĩōń",
"activeTerminalTapToSwitch": "Àćţĩvē ţēŕḿĩńàĺ: {{label}}. Ţàƥ ţō śŵĩţćĥ.",
"activity": "Àćţĩvĩţŷ",
"add": "Àďď",
"addAComment": "Àďď à ćōḿḿēńţ...",
"addAnOptionalComment": "Àďď àń ōƥţĩōńàĺ ćōḿḿēńţ",
"addApprover": "+ Àďď àƥƥŕōvēŕ",
"addAtLeastOneSource": "Àďď àţ ĺēàśţ ōńē śōũŕćē.",
"addBlocker": "+ Àďď ƀĺōćķēŕ",
"addDetailsAboutThisChange": "Àďď ďēţàĩĺś àƀōũţ ţĥĩś ćĥàńĝē...",
"addFolder": "Àďď ƒōĺďēŕ",
"addLabel": "Àďď ĺàƀēĺ",
"addLabels": "+ Àďď ĺàƀēĺś",
"addMore": "Àďď ḿōŕē",
"addRepository": "Àďď ŕēƥōśĩţōŕŷ",
"addReviewer": "+ Àďď ŕēvĩēŵēŕ",
"addShort": "+ Àďď",
"addSubIssue": "Àďď śũƀ-ĩśśũē",
"addToWorkspace": "Àďď ţō ŵōŕķśƥàćē",
"addYourCommentOrInstruction": "Àďď ŷōũŕ ćōḿḿēńţ ōŕ ĩńśţŕũćţĩōń...",
"adding": "Àďďĩńĝ…",
"advanced": "Àďvàńćēď",
"afterDuration": " àƒţēŕ {{duration}}",
"agent": "Àĝēńţ",
"agentBootFailedToResume": "Ƒàĩĺēď ţō ŕēśũḿē àĝēńţ {{agentName}}",
"agentBootFailedToStart": "Ƒàĩĺēď ţō śţàŕţ àĝēńţ {{agentName}}",
@@ -20,35 +43,72 @@
"agentOutput": "Àĝēńţ Ōũţƥũţ",
"agentPlan": "Àĝēńţ Ƥĺàń",
"agentProfileNoLongerExists": "Àĝēńţ ƥŕōƒĩĺē ńō ĺōńĝēŕ ēxĩśţś",
"agentRunning": "àĝēńţ ŕũńńĩńĝ",
"allChangesTitle": "Àĺĺ Ćĥàńĝēś",
"alwaysAllow": "Àĺŵàŷś àĺĺōŵ",
"anErrorOccurred": "Àń ēŕŕōŕ ōććũŕŕēď",
"anUnexpectedErrorOccurred": "Àń ũńēxƥēćţēď ēŕŕōŕ ōććũŕŕēď",
"andMoreFilesTruncated": "...àńď ḿōŕē ƒĩĺēś (ţŕũńćàţēď)",
"annotationArea": "Àŕēà",
"annotationAreaSized": "Àŕēà {{w}}x{{h}}",
"annotationCount_one": "{{count}} àńńōţàţĩōń",
"annotationCount_other": "{{count}} àńńōţàţĩōńś",
"annotationPin": "Ƥĩń",
"answer": "àńśŵēŕ",
"anyoneWithThisLinkCanView": "Àńŷōńē ŵĩţĥ ţĥĩś ĺĩńķ ćàń vĩēŵ ţĥĩś ćōńvēŕśàţĩōń. Ŕēvĩēŵ ţĥē ƥŕēvĩēŵ ćàŕēƒũĺĺŷ ƀēƒōŕē ƥũƀĺĩśĥĩńĝ — ōńćē ƥũƀĺĩśĥēď, ţĥē śńàƥśĥōţ ĩś ũƥĺōàďēď ţō ĜĩţĤũƀ Ĝĩśţ ōń ŷōũŕ àććōũńţ.",
"approve": "Àƥƥŕōvē",
"approveThisAction": "Àƥƥŕōvē ţĥĩś àćţĩōń?",
"approved": "Àƥƥŕōvēď",
"approvedLowercase": "àƥƥŕōvēď",
"approvedThisTask": "{{who}} àƥƥŕōvēď ţĥĩś ţàśķ",
"approvedVerb": "Àƥƥŕōvēď",
"approvers": "Àƥƥŕōvēŕś",
"archive": "Àŕćĥĩvē",
"askToMakeChanges": "Àśķ ţō ḿàķē ćĥàńĝēś, @ḿēńţĩōń ƒĩĺēś",
"askToMakeChangesWithCommands": "Àśķ ţō ḿàķē ćĥàńĝēś, @ḿēńţĩōń ƒĩĺēś, ŕũń /ćōḿḿàńďś",
"assignee": "Àśśĩĝńēē",
"attachFiles": "Àţţàćĥ ƒĩĺēś",
"attachment": "Àţţàćĥḿēńţ",
"attachmentIndexed": "Àţţàćĥḿēńţ {{index}}",
"attachmentIsTooLarge": "Àţţàćĥḿēńţ ĩś ţōō ĺàŕĝē",
"attachmentLimitReached": "Àţţàćĥḿēńţ ĺĩḿĩţ ŕēàćĥēď",
"attachmentPreview": "Àţţàćĥḿēńţ ƥŕēvĩēŵ",
"attachmentSizeKb": "({{size}} ĶƁ)",
"attachmentsCanTotalUpTo": "Àţţàćĥḿēńţś ćàń ţōţàĺ ũƥ ţō {{bytes}}.",
"authenticationRequiredLogInBeforeResuming": "Àũţĥēńţĩćàţĩōń ŕēqũĩŕēď, ĺōĝ ĩń ƀēƒōŕē ŕēśũḿĩńĝ",
"authenticationRequiredPleaseLogInVia": "Àũţĥēńţĩćàţĩōń ŕēqũĩŕēď — ƥĺēàśē ĺōĝ ĩń vĩà ţĥē ţēŕḿĩńàĺ",
"awaitingApprovalFromAgents_one": "Àŵàĩţĩńĝ àƥƥŕōvàĺ ƒŕōḿ {{count}} àĝēńţ",
"awaitingApprovalFromAgents_other": "Àŵàĩţĩńĝ àƥƥŕōvàĺ ƒŕōḿ {{count}} àĝēńţś",
"awaitingUserResponse": "Àŵàĩţĩńĝ ũśēŕ ŕēśƥōńśē (ƥēńďĩńĝ_ĩď={{pendingId}})",
"back": "Ɓàćķ",
"background": "ƀàćķĝŕōũńď",
"backgroundWorkIsRunning": "Ɓàćķĝŕōũńď ŵōŕķ ĩś ŕũńńĩńĝ",
"baseBranch": "Ɓàśē ƀŕàńćĥ",
"blocked": "Ɓĺōćķēď",
"blocking": "Ɓĺōćķĩńĝ",
"branchIsNoLongerAvailable": "Ɓŕàńćĥ ĩś ńō ĺōńĝēŕ àvàĩĺàƀĺē",
"buildingPreview": "Ɓũĩĺďĩńĝ ƥŕēvĩēŵ…",
"byAuthor": "ƀŷ {{author}}",
"cachedInput": "Ćàćĥēď ĩńƥũţ",
"cancelAgent": "Ćàńćēĺ àĝēńţ",
"cancelLeavesWorkspaceUnchangedDetail": "<0>Ćàńćēĺ ĺēàvēś ţĥē ŵōŕķśƥàćē ũńćĥàńĝēď.</0> Ĩƒ ŷōũ ćōńţĩńũē, ţĥē ƀàţćĥ ĩś àĺĺ-ōŕ-ńōţĥĩńĝ: ŵĥēń àńŷ śōũŕćē ƒàĩĺś, ńōńē ōƒ ţĥē ńēŵ śōũŕćēś àŕē àţţàćĥēď.",
"cancelTree": "Ćàńćēĺ ţŕēē",
"cancelled": "Ćàńćēĺĺēď",
"cancelledTree": "Ćàńćēĺĺēď (ţŕēē)",
"cancelling": "Ćàńćēĺĺĩńĝ...",
"cannotMarkDoneAwaitingApprovalFrom": "Ćàńńōţ ḿàŕķ ďōńē: àŵàĩţĩńĝ àƥƥŕōvàĺ ƒŕōḿ {{names}}",
"cannotMarkDoneAwaitingApprovals": "Ćàńńōţ ḿàŕķ ďōńē: àŵàĩţĩńĝ àƥƥŕōvàĺś",
"changes": "Ćĥàńĝēś",
"chat": "Ćĥàţ",
"chooseFromSavedOrDiscoveredRepositories": "Ćĥōōśē ƒŕōḿ śàvēď ōŕ ďĩśćōvēŕēď ŕēƥōśĩţōŕĩēś.",
"chooseLocalFolder": "Ćĥōōśē ĺōćàĺ ƒōĺďēŕ",
"chooseLocalGitRepository": "Ćĥōōśē ĺōćàĺ Ĝĩţ ŕēƥōśĩţōŕŷ",
"chooseRepositoriesOrFoldersToMake": "Ćĥōōśē ŕēƥōśĩţōŕĩēś ōŕ ƒōĺďēŕś ţō ḿàķē àvàĩĺàƀĺē ĩń ţĥĩś ţàśķ.",
"cleanup": "Ćĺēàńũƥ",
"clearAllAnnotations": "Ćĺēàŕ àĺĺ àńńōţàţĩōńś",
"cloneFromAProviderOrGit": "Ćĺōńē ƒŕōḿ à ƥŕōvĩďēŕ ōŕ Ĝĩţ ŨŔĹ.",
"close": "Ćĺōśē",
"close2": "Ćĺōśē {{label}}",
"codeLanguagePlain": "Ƥĺàĩń",
"collapse": "Ćōĺĺàƥśē",
"collapseLastPrompt": "Ćōĺĺàƥśē ĺàśţ ƥŕōḿƥţ",
@@ -66,37 +126,82 @@
"commentOnSelection": "Ćōḿḿēńţ ōń śēĺēćţĩōń",
"commentsOnFiles_one": "{{count}} ćōḿḿēńţ ōń {{files}}",
"commentsOnFiles_other": "{{count}} ćōḿḿēńţś ōń {{files}}",
"commit": "Ćōḿḿĩţ",
"commitChanges": "Ćōḿḿĩţ Ćĥàńĝēś",
"commitChangesTitle": "Ćōḿḿĩţ Ćĥàńĝēś",
"committed": "Ćōḿḿĩţţēď",
"committingEllipsis": "Ćōḿḿĩţţĩńĝ...",
"completed": "Ćōḿƥĺēţēď",
"completedSuccessfully": "{{operationName}} ćōḿƥĺēţēď śũććēśśƒũĺĺŷ",
"contentMarkdownSupported": "Ćōńţēńţ (ḿàŕķďōŵń śũƥƥōŕţēď)",
"context": "Ćōńţēxţ",
"contextFieldLabel": "ćōńţēxţ",
"contextWindow": "Ćōńţēxţ ŵĩńďōŵ",
"contextWindowUsed": "Ćōńţēxţ ŵĩńďōŵ: {{percent}}% ũśēď",
"control": "Ćōńţŕōĺ",
"controlC": "Ćōńţŕōĺ Ć",
"controlD": "Ćōńţŕōĺ Ď",
"copied": "Ćōƥĩēď!",
"copied2": "Ćōƥĩēď",
"copy": "Ćōƥŷ",
"copyAnnotations": "Ćōƥŷ àńńōţàţĩōńś",
"copyAnnotationsToClipboard": "Ćōƥŷ àńńōţàţĩōńś ţō ćĺĩƥƀōàŕď",
"copyCommand": "Ćōƥŷ ćōḿḿàńď",
"copyIdentifier": "Ćōƥŷ ĩďēńţĩƒĩēŕ",
"copyMessage": "Ćōƥŷ ḿēśśàĝē",
"copyMessageToClipboard": "Ćōƥŷ ḿēśśàĝē ţō ćĺĩƥƀōàŕď",
"copyPath": "Ćōƥŷ ƥàţĥ",
"copyToClipboard": "Ćōƥŷ ţō ćĺĩƥƀōàŕď",
"couldNotAddSources": "Ćōũĺď ńōţ àďď śōũŕćēś. Ŷōũŕ ēńţŕĩēś àŕē śţĩĺĺ ĥēŕē ţō ŕēţŕŷ.",
"create": "Ćŕēàţē",
"createAsDraft": "Ćŕēàţē àś ďŕàƒţ",
"createChangeRequest": "Ćŕēàţē {{shortName}}",
"createChangeRequestLong": "Ćŕēàţē {{longName}}",
"createFailed": "Ćŕēàţē {{shortName}} ƒàĩĺēď",
"created": "Ćŕēàţēď",
"created2": "{{longName}} ćŕēàţēď",
"createdBy": "Ćŕēàţēď ƀŷ",
"createdSuccessfully": "{{longName}} ćŕēàţēď śũććēśśƒũĺĺŷ",
"creatingEllipsis": "Ćŕēàţĩńĝ...",
"creatingFrom": "Ćŕēàţĩńĝ {{shortName}} ƒŕōḿ <4>{{displayBranch}}</4>",
"creatingFromTo": "Ćŕēàţĩńĝ {{shortName}} ƒŕōḿ <4>{{displayBranch}}</4> ţō <7>{{baseBranch}}</7>",
"ctrl": "Ćţŕĺ",
"customPrompt": "Ćũśţōḿ ƥŕōḿƥţ",
"customPromptNamed": "Ćũśţōḿ ƥŕōḿƥţ: {{name}}",
"cwd": "ćŵď:",
"delete": "Ďēĺēţē",
"deleteComment": "Ďēĺēţē ćōḿḿēńţ",
"deleteSession": "Ďēĺēţē śēśśĩōń?",
"deny": "Ďēńŷ",
"describeWhatNeedsToChange": "Ďēśćŕĩƀē ŵĥàţ ńēēďś ţō ćĥàńĝē",
"describeYourChanges": "Ďēśćŕĩƀē ŷōũŕ ćĥàńĝēś...",
"description": "ďēśćŕĩƥţĩōń",
"description2": "Ďēśćŕĩƥţĩōń",
"details": "Ďēţàĩĺś",
"diff": "Ďĩƒƒ",
"diffSideNew": "ńēŵ",
"diffSideOld": "ōĺď",
"discard": "Ďĩśćàŕď",
"dismiss": "Ďĩśḿĩśś",
"displayNameOptional": "Ďĩśƥĺàŷ ńàḿē (ōƥţĩōńàĺ)",
"documentCount_one": "{{count}} ďōćũḿēńţ",
"documentCount_other": "{{count}} ďōćũḿēńţś",
"documentDeleted": "Ďōćũḿēńţ ďēĺēţēď",
"documentSaved": "Ďōćũḿēńţ śàvēď",
"documents": "Ďōćũḿēńţś",
"done": "Ďōńē",
"downloadingModelPercent": "Ďōŵńĺōàďĩńĝ {{modelLabel}}… {{pct}}%",
"downloadingPercent": "Ďōŵńĺōàďĩńĝ {{modelLabel}}, {{pct}} ƥēŕćēńţ",
"draftCreated": "Ďŕàƒţ {{longName}} ćŕēàţēď",
"duration": "ďũŕàţĩōń",
"durationValue": "Ďũŕàţĩōń: {{duration}}",
"earlierUpdates_one": "Ēàŕĺĩēŕ ũƥďàţēś ({{count}})",
"earlierUpdates_other": "Ēàŕĺĩēŕ ũƥďàţēś ({{count}})",
"editComment": "Ēďĩţ ćōḿḿēńţ",
"empty": "(ēḿƥţŷ)",
"enhancedPromptInserted": "Ēńĥàńćēď ƥŕōḿƥţ ĩńśēŕţēď.",
"enterCommitMessage": "Ēńţēŕ ćōḿḿĩţ ḿēśśàĝē...",
"enterInspectMode": "Ēńţēŕ ĩńśƥēćţ ḿōďē",
"enterMessageContent": "Ēńţēŕ ḿēśśàĝē ćōńţēńţ...",
"environmentSetupFailed": "Ēńvĩŕōńḿēńţ śēţũƥ ƒàĩĺēď",
"error": "Ēŕŕōŕ",
@@ -105,30 +210,88 @@
"exitCodeShell": "Ēxĩţ ćōďē {{exitCode}}",
"exitCodeUnavailable": "Ēxĩţ ćōďē ũńàvàĩĺàƀĺē",
"exitCodeValue": "Ēxĩţ ćōďē: {{exitCode}}",
"exitInspectMode": "Ēxĩţ ĩńśƥēćţ ḿōďē",
"expandLastPrompt": "Ēxƥàńď ĺàśţ ƥŕōḿƥţ",
"expandPlan": "Ēxƥàńď ƥĺàń",
"expired": "Ēxƥĩŕēď",
"failed": "Ƒàĩĺēď",
"failed2": "{{operationName}} ƒàĩĺēď",
"failedToArchiveTask": "Ƒàĩĺēď ţō àŕćĥĩvē ţàśķ",
"failedToDeleteDocument": "Ƒàĩĺēď ţō ďēĺēţē ďōćũḿēńţ",
"failedToLoad": "{{modelLabel}} ƒàĩĺēď ţō ĺōàď",
"failedToLoadDocuments": "Ƒàĩĺēď ţō ĺōàď ďōćũḿēńţś",
"failedToLoadPreview": "Ƒàĩĺēď ţō ĺōàď ƥŕēvĩēŵ.",
"failedToPublishShare": "Ƒàĩĺēď ţō ƥũƀĺĩśĥ śĥàŕē.",
"failedToRead": "Ƒàĩĺēď ţō ŕēàď {{name}}",
"failedToRenameTask": "Ƒàĩĺēď ţō ŕēńàḿē ţàśķ",
"failedToRevokeShare": "Ƒàĩĺēď ţō ŕēvōķē śĥàŕē.",
"failedToSaveDocument": "Ƒàĩĺēď ţō śàvē ďōćũḿēńţ",
"failedToSendComment": "Ƒàĩĺēď ţō śēńď ćōḿḿēńţ",
"failedToUpload": "Ƒàĩĺēď ţō ũƥĺōàď {{name}}",
"file": "Ƒĩĺē",
"fileChangesTitle": "Ƒĩĺē Ćĥàńĝēś",
"fileCountLabel_one": "{{count}} ƒĩĺē",
"fileCountLabel_other": "{{count}} ƒĩĺēś",
"files": "Ƒĩĺēś",
"filesChanged_one": "<0>{{count}}</0> ƒĩĺē ćĥàńĝēď",
"filesChanged_other": "<0>{{count}}</0> ƒĩĺēś ćĥàńĝēď",
"filterDimensionArchived": "Àŕćĥĩvēď",
"filterDimensionExecutorType": "Ēxēćũţōŕ ţŷƥē",
"filterDimensionHasDiff": "Ĥàś ďĩƒƒ",
"filterDimensionHasPr": "Ĥàś ƤŔ",
"filterDimensionIssueWatch": "Ĩśśũē ŵàţćĥ",
"filterDimensionPrReview": "ƤŔ ŕēvĩēŵ",
"filterDimensionRepository": "Ŕēƥōśĩţōŕŷ",
"filterDimensionState": "Śţàţē",
"filterDimensionTitle": "Ţĩţĺē",
"filterDimensionWorkflow": "Ŵōŕķƒĺōŵ",
"filterDimensionWorkflowStep": "Ŵōŕķƒĺōŵ śţēƥ",
"filterOpContains": "ćōńţàĩńś",
"filterOpDoesNotContain": "ďōēś ńōţ ćōńţàĩń",
"filterOpHide": "Ĥĩďē",
"filterOpIn": "ĩń",
"filterOpIs": "ĩś",
"filterOpIsNot": "ĩś ńōţ",
"filterOpNotIn": "ńōţ ĩń",
"filterOpShow": "Śĥōŵ",
"filterStateBacklog": "Ɓàćķĺōĝ",
"filterStateInProgress": "Ĩń ƥŕōĝŕēśś",
"filterStateReview": "Ŕēvĩēŵ",
"filterTitlePlaceholder": "Śũƀśţŕĩńĝ...",
"filters": "Ƒĩĺţēŕś",
"fixTheMarkedSources": "Ƒĩx ţĥē ḿàŕķēď śōũŕćēś ƀēƒōŕē àďďĩńĝ ţĥēḿ.",
"folder": "Ƒōĺďēŕ",
"folderDisplayName": "Ƒōĺďēŕ ďĩśƥĺàŷ ńàḿē",
"forcePush": "Ƒōŕćē Ƥũśĥ",
"fromAgent": "Ƒŕōḿ àĝēńţ",
"fromAgentInTask": "Ƒŕōḿ àĝēńţ ĩń ţàśķ <1>“{{fullTitle}}”</1>",
"fromBranch": "ƒŕōḿ {{branch}}",
"fromSessionInTask": "Ƒŕōḿ śēśśĩōń <1>“{{sessionName}}”</1> ĩń ţàśķ <3>“{{fullTitle}}”</3>",
"fromTask": "Ƒŕōḿ {{title}}",
"fullImpactDetails": "Ƒũĺĺ ĩḿƥàćţ ďēţàĩĺś",
"fullSize": "Ƒũĺĺ śĩźē {{alt}}",
"gitActions": "Ĝĩţ àćţĩōńś",
"goToNextMessage": "Ĝō ţō ńēxţ ḿēśśàĝē",
"goToPreviousMessage": "Ĝō ţō ƥŕēvĩōũś ḿēśśàĝē",
"groupBy": "Ĝŕōũƥ ƀŷ",
"groupExecutorType": "Ēxēćũţōŕ ţŷƥē",
"groupNone": "Ńōńē",
"groupRepository": "Ŕēƥōśĩţōŕŷ",
"groupState": "Śţàţē",
"groupStatusRateLimited": "Ţēḿƥōŕàŕĩĺŷ ŕàţē ĺĩḿĩţēď",
"groupStatusTimeout": "Śēàŕćĥ ţĩḿēď ōũţ",
"groupStatusUnauthorized": "Śĩĝń-ĩń ŕēqũĩŕēď",
"groupStatusUnsupportedScope": "Ũńàvàĩĺàƀĺē ƒōŕ ţĥĩś ŵōŕķśƥàćē",
"groupStatusUpstreamError": "Ƥŕōvĩďēŕ ũńàvàĩĺàƀĺē",
"groupWorkflow": "Ŵōŕķƒĺōŵ",
"groupWorkflowStep": "Ŵōŕķƒĺōŵ śţēƥ",
"hiddenMessagesInPreview_one": "… {{count}} ḿōŕē ḿēśśàĝē ĥĩďďēń ĩń ţĥĩś ƥŕēvĩēŵ (śţĩĺĺ ĩńćĺũďēď ĩń ţĥē śĥàŕē) …",
"hiddenMessagesInPreview_other": "… {{count}} ḿōŕē ḿēśśàĝēś ĥĩďďēń ĩń ţĥĩś ƥŕēvĩēŵ (śţĩĺĺ ĩńćĺũďēď ĩń ţĥē śĥàŕē) …",
"hideCommandOutput": "Ĥĩďē ćōḿḿàńď ōũţƥũţ",
"hideErrorDetails": "Ĥĩďē ēŕŕōŕ ďēţàĩĺś: {{displayLabel}}",
"hidePreviousAgentError": "Ĥĩďē ƥŕēvĩōũś àĝēńţ ēŕŕōŕ",
"hideRightPanel": "Ĥĩďē ŕĩĝĥţ ƥàńēĺ",
"hideSidebar": "Ĥĩďē śĩďēƀàŕ",
"image": "Ĩḿàĝē",
"imagePreview": "Ĩḿàĝē ƥŕēvĩēŵ",
"imageWithSize": "Ĩḿàĝē ({{bytes}})",
@@ -136,6 +299,9 @@
"implementInFreshAgent": "Ĩḿƥĺēḿēńţ ĩń ƒŕēśĥ àĝēńţ",
"implementThePlanInThisSession": "Ĩḿƥĺēḿēńţ ţĥē ƥĺàń ĩń ţĥĩś śēśśĩōń",
"includeThePlanAsContext": "Ĩńćĺũďē ţĥē ƥĺàń àś ćōńţēxţ",
"inputTokens": "Ĩńƥũţ ţōķēńś",
"inspectClickToPinOrDrag": "Ĩńśƥēćţ: ćĺĩćķ ţō ƥĩń ōŕ ďŕàĝ ţō śēĺēćţ àń àŕēà ōƒ ţĥē ƥŕēvĩēŵ",
"inspectingClickToPin": "Ĩńśƥēćţĩńĝ - ćĺĩćķ ţō ƥĩń, ďŕàĝ ţō śēĺēćţ àń àŕēà, Ēść ţō ēxĩţ",
"isTheMaximumFileSizeIs": "{{name}} ĩś {{size}}. Ţĥē ḿàxĩḿũḿ ƒĩĺē śĩźē ĩś {{maxSize}}.",
"kandevAskUserQuestion": "Ķàńďēv: Àśķ Ũśēŕ Qũēśţĩōń",
"kandevCreateTask": "Ķàńďēv: Ćŕēàţē Ţàśķ",
@@ -157,12 +323,37 @@
"kandevUpdateTask": "Ķàńďēv: Ũƥďàţē Ţàśķ",
"kandevUpdateTaskPlan": "Ķàńďēv: Ũƥďàţē Ţàśķ Ƥĺàń",
"kandevWriteTaskDocument": "Ķàńďēv: Ŵŕĩţē Ţàśķ Ďōćũḿēńţ",
"keyAndContentAreRequired": "Ķēŷ àńď ćōńţēńţ àŕē ŕēqũĩŕēď",
"keyArrowDown": "Àŕŕōŵ Ďōŵń",
"keyArrowLeft": "Àŕŕōŵ Ĺēƒţ",
"keyArrowRight": "Àŕŕōŵ Ŕĩĝĥţ",
"keyArrowUp": "Àŕŕōŵ Ũƥ",
"keyDash": "Ďàśĥ",
"keyEGPlanNotes": "Ķēŷ (ē.ĝ. ƥĺàń, ńōţēś)",
"keyEnd": "Ēńď",
"keyEscape": "Ēśćàƥē",
"keyHome": "Ĥōḿē",
"keyPageDown": "Ƥàĝē Ďōŵń",
"keyPageUp": "Ƥàĝē Ũƥ",
"keyPipe": "Ƥĩƥē",
"keySlash": "Śĺàśĥ",
"keyTab": "Ţàƀ",
"keyTilde": "Ţĩĺďē",
"keyUnderscore": "Ũńďēŕśćōŕē",
"labelAlreadyExists": "Ĺàƀēĺ àĺŕēàďŷ ēxĩśţś",
"labelColor": "Ĺàƀēĺ ćōĺōŕ",
"labelName": "ĺàƀēĺ ńàḿē",
"labels": "Ĺàƀēĺś",
"liveUpdateConsequenceSessionAndProcesses": "<0>Śēśśĩōń àńď ƥŕōćēśśēś:</0> Ţĥē àĝēńţ àńď ŕũńńĩńĝ ŵōŕķśƥàćē ƥŕōćēśśēś ćōńţĩńũē ŵĥĩĺē Ķàńďēv ŕēśćàńś ţĥē ŵōŕķśƥàćē. Ţĥē ţàśķ, śēśśĩōń, ţàśķ śţàţē, ḿēśśàĝēś, ƥĺàń, àţţàćĥēď śōũŕćēś, ḿōďēĺ, àńď ḿōďē ŕēḿàĩń ĩń ƥĺàćē.",
"liveUpdateConsequenceWorkspace": "<0>Ŵōŕķśƥàćē:</0> Ŕēƥōśĩţōŕĩēś àŕē ćĺōńēď àś ńàḿēď ţōƥ-ĺēvēĺ ēńţŕĩēś ũńďēŕ ţĥē ćũŕŕēńţ ŕēḿōţē ŵōŕķśƥàćē. Ţĥē àĝēńţ'ś ŵōŕķĩńĝ ďĩŕēćţōŕŷ ďōēś ńōţ ćĥàńĝē, àńď ēxĩśţĩńĝ ƒĩĺēś àńď Ĝĩţ ćĥàńĝēś àŕē ńōţ ḿōvēď ōŕ ďĩśćàŕďēď.",
"loadOlderMessages": "Ĺōàď ōĺďēŕ ḿēśśàĝēś",
"loading": "Ĺōàďĩńĝ...",
"loadingCommandOutput": "Ĺōàďĩńĝ ćōḿḿàńď ōũţƥũţ...",
"loadingConversation": "Ĺōàďĩńĝ ćōńvēŕśàţĩōń...",
"loadingOlder": "ĺōàďĩńĝ ōĺďēŕ…",
"loadingOlderMessages": "Ĺōàďĩńĝ ōĺďēŕ ḿēśśàĝēś...",
"loadingSessions": "Ĺōàďĩńĝ śēśśĩōńś…",
"localGitRepository": "Ĺōćàĺ Ĝĩţ ŕēƥōśĩţōŕŷ",
"loginRequired": "Ĺōĝĩń ŕēqũĩŕēď",
"markAsFavorite": "Ḿàŕķ àś ƒàvōŕĩţē",
"markMessageAsFavorite": "Ḿàŕķ ḿēśśàĝē àś ƒàvōŕĩţē",
@@ -170,6 +361,7 @@
"mcpPolicyLabel": "ḿćƥ:",
"mcpServers": "ḾĆƤ śēŕvēŕś",
"mentionTasksFilesPrompts": "Ḿēńţĩōń ţàśķś, ƒĩĺēś, ƥŕōḿƥţś",
"merge": "Ḿēŕĝē",
"messageCount_one": "{{count}} ḿēśśàĝē",
"messageCount_other": "{{count}} ḿēśśàĝēś",
"messageMetadata": "Ḿēśśàĝē ḿēţàďàţà",
@@ -188,43 +380,80 @@
"moveTaskToTheNextWorkflow": "Ḿōvē ţàśķ ţō ţĥē ńēxţ ŵōŕķƒĺōŵ śţēƥ",
"needsInput": "Ńēēďś ĩńƥũţ",
"new": "Ńēŵ",
"newDocument": "Ńēŵ ďōćũḿēńţ",
"newMessages": "Ńēŵ ḿēśśàĝēś",
"newSession": "Ńēŵ śēśśĩōń",
"newSubTask": "Ńēŵ Śũƀ-Ţàśķ",
"newTerminal": "Ńēŵ ţēŕḿĩńàĺ",
"newView": "Ńēŵ vĩēŵ",
"newViewName": "Ńēŵ vĩēŵ ńàḿē",
"newViewUnavailable": "Ńēŵ vĩēŵ ũńàvàĩĺàƀĺē. {{newViewDisabledReason}}",
"newline": "⇧↵ ńēŵĺĩńē",
"next": "Ńēxţ",
"nextMessage": "Ńēxţ ḿēśśàĝē",
"nextQuestion": "Ńēxţ qũēśţĩōń",
"noActiveSession": "Ńō àćţĩvē śēśśĩōń",
"noActiveTask": "Ńō àćţĩvē ţàśķ",
"noActivityYet": "Ńō àćţĩvĩţŷ ŷēţ",
"noAgentsFound": "Ńō àĝēńţś ƒōũńď.",
"noAssignee": "Ńō àśśĩĝńēē",
"noChangesToCommit": "Ńō ćĥàńĝēś ţō ćōḿḿĩţ",
"noCommandOutput": "Ńō ćōḿḿàńď ōũţƥũţ.",
"noCommandOutputYet": "Ńō ćōḿḿàńď ōũţƥũţ ŷēţ.",
"noCommentsYet": "Ńō ćōḿḿēńţś ŷēţ",
"noContent": "Ńō ćōńţēńţ",
"noDecisionYet": "Ńō ďēćĩśĩōń ŷēţ",
"noDocumentsFound": "Ńō ďōćũḿēńţś ƒōũńď.",
"noDocumentsYet": "Ńō ďōćũḿēńţś ŷēţ.",
"noItemsFound": "Ńō ĩţēḿś ƒōũńď.",
"noLabelsYet": "Ńō ĺàƀēĺś ŷēţ",
"noMatches": "Ńō ḿàţćĥēś",
"noMessagesFound": "Ńō ḿēśśàĝēś ƒōũńď.",
"noMessagesYetStartTheConversation": "Ńō ḿēśśàĝēś ŷēţ. Śţàŕţ ţĥē ćōńvēŕśàţĩōń!",
"noOptions": "Ńō ōƥţĩōńś",
"noOptions2": "Ńō ōƥţĩōńś.",
"noParent": "Ńō ƥàŕēńţ",
"noPlan": "ńō ƥĺàń",
"noPlanFound": "Ńō ƥĺàń ƒōũńď.",
"noProfilesFound": "Ńō ƥŕōƒĩĺēś ƒōũńď.",
"noProject": "Ńō ƥŕōĵēćţ",
"noProjectsFound": "Ńō ƥŕōĵēćţś ƒōũńď.",
"noQuestionsFound": "Ńō qũēśţĩōńś ƒōũńď.",
"noRelatedTasksFound": "Ńō ŕēĺàţēď ţàśķś ƒōũńď.",
"noResultsFound": "Ńō ŕēśũĺţś ƒōũńď",
"noSessionsYetLaunchOneTo": "Ńō śēśśĩōńś ŷēţ. Ĺàũńćĥ ōńē ţō ĝēţ śţàŕţēď.",
"noStepsFound": "Ńō śţēƥś ƒōũńď.",
"noSubIssues": "Ńō śũƀ-ĩśśũēś",
"noTaskSelected": "Ńō ţàśķ śēĺēćţēď",
"noTasksFound": "Ńō ţàśķś ƒōũńď.",
"noTerminalsYet": "Ńō ţēŕḿĩńàĺś ŷēţ.",
"noWorkItemsFound": "Ńō ŵōŕķ ĩţēḿś ƒōũńď",
"noWorkflowsFound": "Ńō ŵōŕķƒĺōŵś ƒōũńď.",
"noWorkspacesFound": "Ńō ŵōŕķśƥàćēś ƒōũńď.",
"none": "Ńōńē",
"ontoBranch": "ōńţō {{branch}}",
"openEntityReference": "Ōƥēń {{label}}: {{title}}",
"openFile": "Ōƥēń ƒĩĺē",
"openImage": "Ōƥēń {{alt}}",
"openInAdvancedView": "Ōƥēń ĩń àďvàńćēď vĩēŵ",
"openMarkdownPreview": "Ōƥēń ḿàŕķďōŵń ƥŕēvĩēŵ",
"openPlanDetails": "Ōƥēń ƥĺàń ďēţàĩĺś",
"openSidebarFilters": "Ōƥēń śĩďēƀàŕ ƒĩĺţēŕś",
"openSourceTask": "Ōƥēń śōũŕćē ţàśķ {{fullTitle}}",
"openTaskSwitcher": "Ōƥēń ţàśķ śŵĩţćĥēŕ",
"openTerminal": "Ōƥēń ţēŕḿĩńàĺ",
"openTheBottomTerminalAndPaste": "Ōƥēń ţĥē ƀōţţōḿ ţēŕḿĩńàĺ àńď ƥàśţē ţĥĩś ćōḿḿàńď",
"option": "ōƥţĩōń {{index}}",
"orTypeACustomAnswer": "Ōŕ ţŷƥē à ćũśţōḿ àńśŵēŕ…",
"output": "Ōũţƥũţ",
"outputTokens": "Ōũţƥũţ ţōķēńś",
"outputTruncated": "Ōũţƥũţ ţŕũńćàţēď",
"parent": "Ƥàŕēńţ",
"pastedImageCouldnTBeAttached": "Ƥàśţēď ĩḿàĝē ćōũĺďń’ţ ƀē àţţàćĥēď",
"pauseTree": "Ƥàũśē ţŕēē",
"paused": "Ƥàũśēď",
"pendingApproval": "Ƥēńďĩńĝ Àƥƥŕōvàĺ",
"permissionRequested": "Ƥēŕḿĩśśĩōń ŕēqũēśţēď",
"plan": "Ƥĺàń",
"planIsEmpty": "Ƥĺàń ĩś ēḿƥţŷ",
"planMode": "Ƥĺàń ḿōďē",
@@ -235,17 +464,35 @@
"previousAgentError": "Ƥŕēvĩōũś àĝēńţ ēŕŕōŕ",
"previousMessage": "Ƥŕēvĩōũś ḿēśśàĝē",
"previousQuestion": "Ƥŕēvĩōũś qũēśţĩōń",
"priority": "Ƥŕĩōŕĩţŷ",
"priorityCritical": "Ćŕĩţĩćàĺ",
"priorityHigh": "Ĥĩĝĥ",
"priorityLow": "Ĺōŵ",
"priorityMedium": "Ḿēďĩũḿ",
"profileCount_one": "{{count}} ƥŕōƒĩĺē",
"profileCount_other": "{{count}} ƥŕōƒĩĺēś",
"progress": "Ƥŕōĝŕēśś",
"project": "Ƥŕōĵēćţ",
"prompt": "Ƥŕōḿƥţ",
"promptFieldLabel": "ƥŕōḿƥţ",
"providerPrivateContextThatKandevDid": "Ƥŕōvĩďēŕ-ƥŕĩvàţē ćōńţēxţ ţĥàţ Ķàńďēv ďĩď ńōţ ŕēćōŕď ḿàŷ ńōţ ćàŕŕŷ ōvēŕ. Ōƥēń ţēŕḿĩńàĺś, ďēv śēŕvēŕś, àńď ōţĥēŕ ŵōŕķśƥàćē ƥŕōćēśśēś śţōƥ, ĩńćĺũďĩńĝ ţĥē ţàśķ ēďĩţōŕ śēŕvēŕ.",
"providerUnavailable": "Ƥŕōvĩďēŕ ũńàvàĩĺàƀĺē",
"publishARedactedSnapshotOfThis": "Ƥũƀĺĩśĥ à ŕēďàćţēď śńàƥśĥōţ ōƒ ţĥĩś ćōḿƥĺēţēď ţàśķ àś à śēćŕēţ ĜĩţĤũƀ Ĝĩśţ ōń ŷōũŕ àććōũńţ.",
"publishToGithubGist": "Ƥũƀĺĩśĥ ţō ĜĩţĤũƀ Ĝĩśţ",
"publishedAnyoneWithThisLinkCan": "Ƥũƀĺĩśĥēď. Àńŷōńē ŵĩţĥ ţĥĩś ĺĩńķ ćàń vĩēŵ ţĥē ćōńvēŕśàţĩōń.",
"publishing": "Ƥũƀĺĩśĥĩńĝ…",
"pull": "Ƥũĺĺ",
"push": "Ƥũśĥ",
"questionCount_one": "{{count}} qũēśţĩōń",
"questionCount_other": "{{count}} qũēśţĩōńś",
"questionOfTotal": "Qũēśţĩōń {{index}} ōƒ {{total}}",
"questionOfTotalAnswered": "Qũēśţĩōń {{index}} ōƒ {{total}} (àńśŵēŕēď)",
"queueMoreInstructions": "Qũēũē ḿōŕē ĩńśţŕũćţĩōńś...",
"queued": "Qũēũēď",
"ranCommands_one": "· ŕàń {{count}} ćōḿḿàńď",
"ranCommands_other": "· ŕàń {{count}} ćōḿḿàńďś",
"rebase": "Ŕēƀàśē",
"redactedRules": "Ŕēďàćţēď: {{rules}}",
"referenceWorkItems": "Ŕēƒēŕēńćē ŵōŕķ ĩţēḿś",
"rejected": "Ŕēĵēćţēď",
"relatedBlockedBy": "Ɓĺōćķēď ƀŷ",
@@ -255,16 +502,29 @@
"relatedSiblings": "Śĩƀĺĩńĝś",
"relatedTaskCount_one": "{{count}} ŕēĺàţēď ţàśķ",
"relatedTaskCount_other": "{{count}} ŕēĺàţēď ţàśķś",
"remoteRepository": "Ŕēḿōţē ŕēƥōśĩţōŕŷ",
"remove": "Ŕēḿōvē",
"remove2": "Ŕēḿōvē {{name}}",
"remove3": "Ŕēḿōvē {{identifier}}",
"removeAnnotation": "Ŕēḿōvē àńńōţàţĩōń {{number}}",
"removeFile": "Ŕēḿōvē ƒĩĺē",
"removeFilter": "Ŕēḿōvē ƒĩĺţēŕ",
"removeFromFavorites": "Ŕēḿōvē ƒŕōḿ ƒàvōŕĩţēś",
"removeImage": "Ŕēḿōvē ĩḿàĝē",
"removeLabeled": "Ŕēḿōvē {{label}}",
"removeMessageFromFavorites": "Ŕēḿōvē ḿēśśàĝē ƒŕōḿ ƒàvōŕĩţēś",
"removeSource": "Ŕēḿōvē śōũŕćē",
"rename": "Ŕēńàḿē",
"repeatedTerminalCommandsHidden_one": "{{count}} ŕēƥēàţēď ĩďēńţĩćàĺ ţēŕḿĩńàĺ ćōḿḿàńď ĥĩďďēń",
"repeatedTerminalCommandsHidden_other": "{{count}} ŕēƥēàţēď ĩďēńţĩćàĺ ţēŕḿĩńàĺ ćōḿḿàńďś ĥĩďďēń",
"repeatedTerminalCommandsShown_one": "{{count}} ŕēƥēàţēď ĩďēńţĩćàĺ ţēŕḿĩńàĺ ćōḿḿàńď śĥōŵń",
"repeatedTerminalCommandsShown_other": "{{count}} ŕēƥēàţēď ĩďēńţĩćàĺ ţēŕḿĩńàĺ ćōḿḿàńďś śĥōŵń",
"repositoriesAreAddedAsTopLevel": "Ŕēƥōśĩţōŕĩēś àŕē àďďēď àś ţōƥ-ĺēvēĺ ēńţŕĩēś ĩń ţĥē ćũŕŕēńţ ŕēḿōţē ŵōŕķśƥàćē. Ţĥē àĝēńţ'ś ŵōŕķĩńĝ ďĩŕēćţōŕŷ ďōēś ńōţ ćĥàńĝē.",
"requestChanges": "Ŕēqũēśţ ćĥàńĝēś",
"requestedChanges": "ŕēqũēśţēď ćĥàńĝēś",
"requestedChangesPlain": "{{who}} ŕēqũēśţēď ćĥàńĝēś",
"requestedChangesVerb": "Ŕēqũēśţēď ćĥàńĝēś",
"requestedChangesWithComment": "{{who}} ŕēqũēśţēď ćĥàńĝēś: '{{comment}}'",
"requestingMicrophone": "Ŕēqũēśţĩńĝ ḿĩćŕōƥĥōńē…",
"requestingMicrophonePermission": "Ŕēqũēśţĩńĝ ḿĩćŕōƥĥōńē ƥēŕḿĩśśĩōń",
"resetAgentContext": "Ŕēśēţ àĝēńţ ćōńţēxţ?",
@@ -273,76 +533,186 @@
"resetting": "Ŕēśēţţĩńĝ...",
"resize": "Ŕēśĩźē",
"restart": "Ŕēśţàŕţ",
"restartConsequenceRunningProcesses": "<0>Ŕũńńĩńĝ ƥŕōćēśśēś:</0> Ōƥēń ţēŕḿĩńàĺś, ďēv śēŕvēŕś, àńď ōţĥēŕ ŵōŕķśƥàćē ƥŕōćēśśēś śţōƥ. Ţĥĩś ĩńćĺũďēś ţĥē ţàśķ ēďĩţōŕ śēŕvēŕ. Śàvē ũńśàvēď ŵōŕķ, ţĥēń ŕēōƥēń ōŕ ŕēśţàŕţ ţĥōśē ƥŕōćēśśēś àƒţēŕ ţĥē śōũŕćēś àŕē àţţàćĥēď.",
"restartConsequenceSessionContext": "<0>Śēśśĩōń ćōńţēxţ:</0> Ķàńďēv ŕēśţàŕţś ţĥē ĩďĺē àĝēńţ ŵĥĩĺē ƥŕēśēŕvĩńĝ ţĥē ţàśķ, śēśśĩōń, ţàśķ śţàţē, ḿēśśàĝēś, ƥĺàń, àţţàćĥēď śōũŕćēś, àńď śēĺēćţēď ḿōďēĺ àńď ḿōďē. Ƥŕōvĩďēŕś ţĥàţ śũƥƥōŕţ ćŕōśś-ďĩŕēćţōŕŷ ŕēśũḿē ķēēƥ ţĥēĩŕ ńàţĩvē śēśśĩōń. Ōţĥēŕ ƥŕōvĩďēŕś śţàŕţ à ńēŵ śēśśĩōń àńď ŕēćēĩvē Ķàńďēv'ś ŕēćōŕďēď ćōńvēŕśàţĩōń ŵĩţĥ ţĥē ńēxţ ƥŕōḿƥţ. Ƥŕōvĩďēŕ-ƥŕĩvàţē ćōńţēxţ ţĥàţ Ķàńďēv ďĩď ńōţ ŕēćōŕď ḿàŷ ńōţ ćàŕŕŷ ōvēŕ.",
"restartConsequenceWorkspace": "<0>Ŵōŕķśƥàćē:</0> Ţĥē ţàśķ ŕōōţ ƀēćōḿēś ţĥē àĝēńţ'ś ŵōŕķĩńĝ ďĩŕēćţōŕŷ. Ƒōŕ à śĩńĝĺē-ŕēƥōśĩţōŕŷ ţàśķ, ţĥĩś ḿōvēś ţĥē ĆŴĎ ũƥ ōńē ĺēvēĺ àńď śĥōŵś ēvēŕŷ śōũŕćē àś à ńàḿēď ţōƥ-ĺēvēĺ ēńţŕŷ. Ēxĩśţĩńĝ ƒĩĺēś àńď Ĝĩţ ćĥàńĝēś àŕē ńōţ ḿōvēď ōŕ ďĩśćàŕďēď.",
"restarting": "Ŕēśţàŕţĩńĝ...",
"restoreTree": "Ŕēśţōŕē ţŕēē",
"resume": "Ŕēśũḿē",
"resumeSession": "Ŕēśũḿē śēśśĩōń",
"resumeTree": "Ŕēśũḿē ţŕēē",
"retry": "Ŕēţŕŷ",
"retryChangeRequest": "Ŕēţŕŷ {{shortName}}",
"reverseISearch": "(ŕēvēŕśē-ĩ-śēàŕćĥ)",
"review": "Ŕēvĩēŵ",
"reviewComments": "Ŕēvĩēŵ ćōḿḿēńţś",
"reviewCommentsTitle": "Ŕēvĩēŵ Ćōḿḿēńţś",
"reviewTheseChangesBeforeAddingSources": "Ŕēvĩēŵ ţĥēśē ćĥàńĝēś ƀēƒōŕē àďďĩńĝ śōũŕćēś. Ţĥē ţàśķ ḿũśţ ŕēḿàĩń ĩďĺē ũńţĩĺ ţĥē ōƥēŕàţĩōń ƒĩńĩśĥēś.",
"reviewers": "Ŕēvĩēŵēŕś",
"revoke": "Ŕēvōķē",
"revokeShare": "Ŕēvōķē śĥàŕē",
"revoking": "Ŕēvōķĩńĝ…",
"roleApprover": "Àƥƥŕōvēŕ",
"roleReviewer": "Ŕēvĩēŵēŕ",
"run": "Ŕũń",
"runCommand": "Ŕũń /{{name}} ćōḿḿàńď",
"runInTerminal": "Ŕũń ĩń ţēŕḿĩńàĺ",
"running": "ŕũńńĩńĝ",
"saveAs": "Śàvē àś:",
"saveAs2": "Śàvē àś…",
"saveOrDiscardBeforeNewView": "Śàvē ōŕ ďĩśćàŕď ćĥàńĝēś ƀēƒōŕē ćŕēàţĩńĝ à ńēŵ vĩēŵ.",
"savedAndLocalGitRepositoriesMust": "Śàvēď àńď ĺōćàĺ Ĝĩţ ŕēƥōśĩţōŕĩēś ḿũśţ ĥàvē à ćĺōńēàƀĺē ōŕĩĝĩń ƒōŕ ţĥĩś ēxēćũţōŕ. Ĺōćàĺ ƒōĺďēŕś àŕē ũńàvàĩĺàƀĺē.",
"saving": "Śàvĩńĝ...",
"scriptExecutionMetadataUnavailable": "Śćŕĩƥţ Ēxēćũţĩōń (ḿēţàďàţà ũńàvàĩĺàƀĺē)",
"scrollToActiveSession": "Śćŕōĺĺ ţō àćţĩvē śēśśĩōń",
"scrollToLastPrompt": "Śćŕōĺĺ ţō ĺàśţ ƥŕōḿƥţ",
"scrollToStartOfTranscript": "Śćŕōĺĺ ţō śţàŕţ ōƒ ţŕàńśćŕĩƥţ",
"searchAgents": "Śēàŕćĥ àĝēńţś...",
"searchEllipsis": "Śēàŕćĥ…",
"searchEllipsis2": "Śēàŕćĥ...",
"searchFilesAndPrompts": "Śēàŕćĥ ƒĩĺēś àńď ƥŕōḿƥţś...",
"searchProjects": "Śēàŕćĥ ƥŕōĵēćţś...",
"searchTasks": "Śēàŕćĥ ţàśķś...",
"searching": "Śēàŕćĥĩńĝ…",
"searchingWorkItems": "Śēàŕćĥĩńĝ ŵōŕķ ĩţēḿś…",
"selectFilesAndPromptsToInclude": "· Śēĺēćţ ƒĩĺēś àńď ƥŕōḿƥţś ţō ĩńćĺũďē",
"selectValue": "Śēĺēćţ vàĺũē",
"selectValues": "Śēĺēćţ vàĺũēś",
"selected": "Śēĺēćţēď",
"send": "Śēńď",
"sendAnswer": "Śēńď àńśŵēŕ",
"sendComment": "Śēńď ćōḿḿēńţ",
"senderWithSession": "{{base}} · {{sessionName}}",
"sentAsNewMessage": "· śēńţ àś ńēŵ ḿēśśàĝē",
"session": "śēśśĩōń",
"sessionActions": "Śēśśĩōń àćţĩōńś",
"sessionContext": "Śēśśĩōń ćōńţēxţ",
"sessionCount_one": "{{count}} śēśśĩōń",
"sessionCount_other": "{{count}} śēśśĩōńś",
"sessionFallbackLabel": "Śēśśĩōń",
"sessions": "Śēśśĩōńś",
"setAsPrimary": "Śēţ àś Ƥŕĩḿàŕŷ",
"setup": "Śēţũƥ",
"share": "Śĥàŕē",
"shareThisTask": "Śĥàŕē ţĥĩś ţàśķ",
"shareThisTaskConversationAsA": "Śĥàŕē ţĥĩś ţàśķ ćōńvēŕśàţĩōń àś à ƥũƀĺĩć ĺĩńķ",
"shift": "Śĥĩƒţ",
"showCommandOutput": "Śĥōŵ ćōḿḿàńď ōũţƥũţ",
"showDetails": "Śĥōŵ ďēţàĩĺś",
"showErrorDetails": "Śĥōŵ ēŕŕōŕ ďēţàĩĺś: {{displayLabel}}",
"showFormatted": "Śĥōŵ ƒōŕḿàţţēď",
"showFormattedMessage": "Śĥōŵ ƒōŕḿàţţēď ḿēśśàĝē",
"showFullTimestamp": "Śĥōŵ ƒũĺĺ ţĩḿēśţàḿƥ: {{absoluteTime}}",
"showMcpConnectionStatus": "Śĥōŵ ḾĆƤ ćōńńēćţĩōń śţàţũś",
"showMessageMetadata": "Śĥōŵ ḿēśśàĝē ḿēţàďàţà",
"showOlderSessions_one": "Śĥōŵ {{count}} ōĺďēŕ śēśśĩōń",
"showOlderSessions_other": "Śĥōŵ {{count}} ōĺďēŕ śēśśĩōńś",
"showRawText": "Śĥōŵ ŕàŵ ţēxţ",
"showRightPanel": "Śĥōŵ ŕĩĝĥţ ƥàńēĺ",
"showSidebar": "Śĥōŵ śĩďēƀàŕ",
"sidebarFilters": "Śĩďēƀàŕ ƒĩĺţēŕś",
"skipAllQuestions": "Śķĩƥ àĺĺ qũēśţĩōńś",
"skipped": "Śķĩƥƥēď",
"snapshotMessageCount_one": "{{count}} ḿēśśàĝēś",
"snapshotMessageCount_other": "{{count}} ḿēśśàĝēś",
"someone": "Śōḿēōńē",
"sort": "Śōŕţ",
"sortCreated": "Ćŕēàţēď",
"sortCustom": "Ćũśţōḿ",
"sortDirection": "Śōŕţ ďĩŕēćţĩōń {{direction}}",
"sortStatus": "Śţàţũś",
"sortTitle": "Ţĩţĺē",
"sortUpdated": "Ũƥďàţēď",
"source": "Śōũŕćē",
"sourceChangesTitle": "{{source}} Ćĥàńĝēś",
"stageAllChangesBeforeCommitting": "Śţàĝē àĺĺ ćĥàńĝēś ƀēƒōŕē ćōḿḿĩţţĩńĝ",
"stageApproval": "Àƥƥŕōvàĺ",
"stageImplement": "Ĩḿƥĺēḿēńţ",
"stageReview": "Ŕēvĩēŵ",
"stageShip": "Śĥĩƥ",
"start": "śţàŕţ",
"startAgent": "Śţàŕţ àĝēńţ",
"startFreshSession": "Śţàŕţ ƒŕēśĥ śēśśĩōń",
"startVoiceInput": "Śţàŕţ vōĩćē ĩńƥũţ",
"started": "Śţàŕţēď",
"starting": "Śţàŕţĩńĝ...",
"startingAgent": "Śţàŕţĩńĝ {{agentLabel}}",
"startingEllipsis": "Śţàŕţĩńĝ…",
"startingTerminal": "Śţàŕţĩńĝ ţēŕḿĩńàĺ…",
"startsANewSessionWithA": "Śţàŕţś à ńēŵ śēśśĩōń ŵĩţĥ à ćĺēàń ćōńţēxţ ŵĩńďōŵ",
"state": "śţàţē",
"status": "Śţàţũś",
"statusBacklog": "Ɓàćķĺōĝ",
"statusBlocked": "Ɓĺōćķēď",
"statusCancelled": "Ćàńćēĺĺēď",
"statusChangedFromTo": "Śţàţũś ćĥàńĝēď ƒŕōḿ <1>{{from}}</1> ţō <3>{{to}}</3>",
"statusDone": "Ďōńē",
"statusInProgress": "Ĩń Ƥŕōĝŕēśś",
"statusInReview": "Ĩń Ŕēvĩēŵ",
"statusTodo": "Ţōďō",
"stepCount_one": "{{count}} śţēƥ",
"stepCount_other": "{{count}} śţēƥś",
"stepFieldLabel": "śţēƥ",
"stepNumber": "Śţēƥ {{index}}",
"stop": "Śţōƥ",
"stopRecording": "Śţōƥ ŕēćōŕďĩńĝ",
"stopVoiceInput": "Śţōƥ vōĩćē ĩńƥũţ",
"stoppedWithAnError": "śţōƥƥēď ŵĩţĥ àń ēŕŕōŕ",
"subIssues": "Śũƀ-ĩśśũēś",
"subTasks": "Śũƀ-ţàśķś",
"submit": "Śũƀḿĩţ",
"submitAnswers": "Śũƀḿĩţ àńśŵēŕś",
"submitUnavailable": "Śũƀḿĩţ ũńàvàĩĺàƀĺē",
"submitting": "Śũƀḿĩţţĩńĝ…",
"successful": "{{operationName}} śũććēśśƒũĺ",
"switchSidebarView": "Śŵĩţćĥ śĩďēƀàŕ vĩēŵ: {{name}}",
"system": "Śŷśţēḿ",
"systemSender": "Śŷśţēḿ",
"taskCount_one": "{{count}} ţàśķ",
"taskCount_other": "{{count}} ţàśķś",
"taskDetails": "Ţàśķ ďēţàĩĺś",
"taskOverview": "Ţàśķ ōvēŕvĩēŵ",
"taskTreeCancelled": "Ţàśķ ţŕēē ćàńćēĺĺēď",
"taskTreePaused": "Ţàśķ ţŕēē ƥàũśēď",
"taskTreeRestored": "Ţàśķ ţŕēē ŕēśţōŕēď",
"taskTreeResumed": "Ţàśķ ţŕēē ŕēśũḿēď",
"tasks": "Ţàśķś",
"tasksAffected_one": "{{count}} ţàśķś àƒƒēćţēď",
"tasksAffected_other": "{{count}} ţàśķś àƒƒēćţēď",
"terminal": "Ţēŕḿĩńàĺ",
"terminalCount_one": "{{count}} ţēŕḿĩńàĺ",
"terminalCount_other": "{{count}} ţēŕḿĩńàĺś",
"terminalUnavailableNoActiveSession": "Ţēŕḿĩńàĺ ũńàvàĩĺàƀĺē — ńō àćţĩvē śēśśĩōń.",
"terminals": "Ţēŕḿĩńàĺś",
"theAgentAndRunningWorkspaceProcesses": "Ţĥē àĝēńţ àńď ŕũńńĩńĝ ŵōŕķśƥàćē ƥŕōćēśśēś ćōńţĩńũē. Ēxĩśţĩńĝ ƒĩĺēś, Ĝĩţ ćĥàńĝēś, àńď ŕēćōŕďēď ţàśķ àńď śēśśĩōń ćōńţēxţ ŕēḿàĩń.",
"theAgentHasMovedOn": "Ţĥē àĝēńţ ĥàś ḿōvēď ōń. Ŷōũŕ ŕēśƥōńśē ŵĩĺĺ ƀē śēńţ àś à ńēŵ ḿēśśàĝē.",
"theAgentStoppedWithAnError": "Ţĥē àĝēńţ śţōƥƥēď ŵĩţĥ àń ēŕŕōŕ. Ŕēśũḿē ţō ŕēţŕŷ ţĥē śàḿē ćōńvēŕśàţĩōń, ōŕ śţàŕţ à ƒŕēśĥ śēśśĩōń.",
"theBrowserDidnTProvideImage": "Ţĥē ƀŕōŵśēŕ ďĩďń’ţ ƥŕōvĩďē ĩḿàĝē ďàţà. Śàvē ţĥē ĩḿàĝē, ţĥēń àţţàćĥ ţĥē ƒĩĺē ĩńśţēàď.",
"theConnectionDroppedOrTimedOut": "Ţĥē ćōńńēćţĩōń ďŕōƥƥēď ōŕ ţĩḿēď ōũţ. Ŕēƒŕēśĥ ţĥē ţàśķ ţō ćōńƒĩŕḿ ŵĥēţĥēŕ ĩţ ŵēńţ ţĥŕōũĝĥ.",
"theIdleAgentRestartsAtThe": "Ţĥē ĩďĺē àĝēńţ ŕēśţàŕţś àţ ţĥē ţàśķ ŕōōţ. Ēxĩśţĩńĝ ƒĩĺēś, Ĝĩţ ćĥàńĝēś, ţàśķ àńď śēśśĩōń ĥĩśţōŕŷ, ḿēśśàĝēś, ƥĺàń, àţţàćĥēď śōũŕćēś, ḿōďēĺ, àńď ḿōďē ŕēḿàĩń.",
"thinking": "Ţĥĩńķĩńĝ",
"thisConversationHasNoShareableContent": "Ţĥĩś ćōńvēŕśàţĩōń ĥàś ńō śĥàŕēàƀĺē ćōńţēńţ.",
"thisIsTheOnlySessionFor": "Ţĥĩś ĩś ţĥē ōńĺŷ śēśśĩōń ƒōŕ ţĥĩś ţàśķ.",
"thisIsThePrimarySessionAnother": "Ţĥĩś ĩś ţĥē ƥŕĩḿàŕŷ śēśśĩōń. Àńōţĥēŕ śēśśĩōń ŵĩĺĺ ƀē śēţ àś ƥŕĩḿàŕŷ.",
"thisRepositoryMustHaveACloneable": "Ţĥĩś ŕēƥōśĩţōŕŷ ḿũśţ ĥàvē à ćĺōńēàƀĺē ōŕĩĝĩń; Ķàńďēv ŵĩĺĺ vēŕĩƒŷ ĩţ ƀēƒōŕē àďďĩńĝ.",
"thisRestartsTheTaskWorkspace": "Ţĥĩś ŕēśţàŕţś ţĥē ţàśķ ŵōŕķśƥàćē",
"thisTask": "ţĥĩś ţàśķ",
"thisTaskPointsToBranch": "Ţĥĩś ţàśķ ƥōĩńţś ţō <1>{{branch}}</1>, ƀũţ ţĥàţ ƀŕàńćĥ ćōũĺď ńōţ ƀē ƒōũńď ōń ţĥē ŕēḿōţē ŕēƥōśĩţōŕŷ. Ĩţ ḿàŷ ĥàvē ƀēēń ḿēŕĝēď ōŕ ďēĺēţēď.",
"thisUpdatesTheLiveTaskWorkspace": "Ţĥĩś ũƥďàţēś ţĥē ĺĩvē ţàśķ ŵōŕķśƥàćē",
"thisWillClearTheAgentS": "Ţĥĩś ŵĩĺĺ ćĺēàŕ ţĥē àĝēńţ'ś ćōńvēŕśàţĩōń ĥĩśţōŕŷ àńď śţàŕţ à ƒŕēśĥ ćōńţēxţ. Ŷōũŕ ŵōŕķśƥàćē, ƒĩĺēś, àńď ĝĩţ śţàţē ŵĩĺĺ ƀē ƥŕēśēŕvēď.",
"thisWillPermanentlyDeleteTheConversation": "Ţĥĩś ŵĩĺĺ ƥēŕḿàńēńţĺŷ ďēĺēţē ţĥē ćōńvēŕśàţĩōń ĥĩśţōŕŷ ŵĩţĥ ţĥĩś śēśśĩōń.",
"timedOutAgentMovedOn": "Ţĩḿēď ōũţ (àĝēńţ ḿōvēď ōń)",
"title": "ţĩţĺē",
"title2": "{{longName}} ţĩţĺē",
"title3": "{{longName}} ţĩţĺē...",
"titleOptional": "Ţĩţĺē (ōƥţĩōńàĺ)",
"toFocus": "ţō ƒōćũś",
"todos": "Ţōďōś",
"todosCompleted": "{{completed}}/{{total}} ćōḿƥĺēţēď",
"tokenCount_one": "{{formatted}} ţōķēń",
"tokenCount_other": "{{formatted}} ţōķēńś",
"tokens": "ţōķēńś",
"tool": "ţōōĺ",
"toolCallCount_one": "{{count}} ţōōĺ ćàĺĺ",
"toolCallCount_other": "{{count}} ţōōĺ ćàĺĺś",
"toolCount_one": "{{count}} ţōōĺ",
@@ -350,18 +720,38 @@
"tools": "ţōōĺś",
"transcribing": "Ţŕàńśćŕĩƀĩńĝ…",
"transcribingVoiceInput": "Ţŕàńśćŕĩƀĩńĝ vōĩćē ĩńƥũţ",
"treeActionFailed": "Ţŕēē àćţĩōń ƒàĩĺēď",
"treeCost": "Ţŕēē ćōśţ",
"treeTasks": "Ţŕēē ţàśķś",
"truncated": "ţŕũńćàţēď",
"truncatedParen": "(ţŕũńćàţēď)",
"tryAgain": "Ţŕŷ àĝàĩń",
"turnForDuration": "ƒōŕ {{duration}}",
"turnMessageCount_one": "· {{count}} ḿēśśàĝē",
"turnMessageCount_other": "· {{count}} ḿēśśàĝēś",
"turnWorked": "ŵōŕķēď",
"turnWorking": "ŵōŕķĩńĝ",
"typeToSearch": "Ţŷƥē ţō śēàŕćĥ...",
"typeToSearchPreviousMessages": "Ţŷƥē ţō śēàŕćĥ ƥŕēvĩōũś ḿēśśàĝēś...",
"typeToSearchWorkItems": "Ţŷƥē ţō śēàŕćĥ ŵōŕķ ĩţēḿś",
"uncommitted": "Ũńćōḿḿĩţţēď",
"unknown": "Ũńķńōŵń",
"unnamed": "(ũńńàḿēď)",
"unpinWillBeRemovedAfterSend": "Ũńƥĩń (ŵĩĺĺ ƀē ŕēḿōvēď àƒţēŕ śēńď)",
"untitled": "(ũńţĩţĺēď)",
"update": "Ũƥďàţē",
"updated": "Ũƥďàţēď",
"updatedTodos": "Ũƥďàţēď Ţōďōś",
"updating": "Ũƥďàţĩńĝ…",
"uploaded": "Ũƥĺōàďēď {{name}}",
"useAnExistingCheckoutOnThis": "Ũśē àń ēxĩśţĩńĝ ćĥēćķōũţ ōń ţĥĩś ḿàćĥĩńē.",
"usesTheCurrentCheckoutKandevDoes": "Ũśēś ţĥē ćũŕŕēńţ ćĥēćķōũţ. Ķàńďēv ďōēś ńōţ śŵĩţćĥ ŷōũŕ ĺōćàĺ ŕēƥōśĩţōŕŷ ƀŕàńćĥ.",
"value": "Vàĺũē",
"viaSession": "vĩà śēśśĩōń",
"view": "Vĩēŵ:",
"viewLimitReached_one": "Ŷōũ ćàń śàvē ũƥ ţō {{count}} vĩēŵś.",
"viewLimitReached_other": "Ŷōũ ćàń śàvē ũƥ ţō {{count}} vĩēŵś.",
"viewName": "Vĩēŵ ńàḿē",
"voiceInput": "Vōĩćē ĩńƥũţ",
"voiceInputNeedsHttps": "Vōĩćē ĩńƥũţ ńēēďś ĤŢŢƤŚ. Ōƥēń ţĥĩś śĩţē ōvēŕ ĥţţƥś:// (ōŕ ĥţţƥ://ĺōćàĺĥōśţ) — ḿōśţ ḿōƀĩĺē ƀŕōŵśēŕś ƀĺōćķ ḿĩćŕōƥĥōńē ÀƤĨś ōń ĩńśēćũŕē ōŕĩĝĩńś.",
"voiceInputUnavailable": "Vōĩćē ĩńƥũţ ũńàvàĩĺàƀĺē",
@@ -369,7 +759,11 @@
"voiceInputUnavailableTapForDetails": "Vōĩćē ĩńƥũţ ũńàvàĩĺàƀĺē — ţàƥ ƒōŕ ďēţàĩĺś",
"voiceInputUnsupportedBrowser": "Vōĩćē ĩńƥũţ ĩśń'ţ śũƥƥōŕţēď ĩń ţĥĩś ƀŕōŵśēŕ. Ţŕŷ Ćĥŕōḿē, Ēďĝē, ōŕ Śàƒàŕĩ 14.5+.",
"voiceTooltipHold": "{{tooltip}} (ĥōĺď)",
"waitForActiveTurnToFinish": "Ŵàĩţ ƒōŕ ţĥē àćţĩvē ţũŕń ōŕ ţōōĺ ćàĺĺ ţō ƒĩńĩśĥ ƀēƒōŕē àďďĩńĝ śōũŕćēś.",
"waitForTaskSourcesToLoad": "Ŵàĩţ ƒōŕ ţàśķ śōũŕćēś ţō ƒĩńĩśĥ ĺōàďĩńĝ ƀēƒōŕē àďďĩńĝ śōũŕćēś.",
"walkthrough": "Ŵàĺķţĥŕōũĝĥ: {{title}}",
"workedRanCommands_one": "Ŵōŕķēď -- ŕàń {{count}} ćōḿḿàńďś",
"workedRanCommands_other": "Ŵōŕķēď -- ŕàń {{count}} ćōḿḿàńďś",
"workflow": "ŵōŕķƒĺōŵ",
"workflowCount_one": "{{count}} ŵōŕķƒĺōŵ",
"workflowCount_other": "{{count}} ŵōŕķƒĺōŵś",
@@ -377,9 +771,14 @@
"workflowSender": "Ŵōŕķƒĺōŵ",
"workflowStepMessageFrom": "Ŵōŕķƒĺōŵ śţēƥ ḿēśśàĝē ƒŕōḿ {{label}}",
"working": "Ŵōŕķĩńĝ...",
"working3": "Ŵōŕķĩńĝ",
"working4": "Ŵōŕķĩńĝ…",
"workingInBackground": "Ŵōŕķĩńĝ ĩń ƀàćķĝŕōũńď",
"workspaceCount_one": "{{count}} ŵōŕķśƥàćē",
"workspaceCount_other": "{{count}} ŵōŕķśƥàćēś",
"workspaceRepository": "Ŵōŕķśƥàćē ŕēƥōśĩţōŕŷ",
"writeYourChangesHere": "Ŵŕĩţē ŷōũŕ ćĥàńĝēś ĥēŕē",
"you": "Ŷōũ",
"youCanAttachUpToFiles": "Ŷōũ ćàń àţţàćĥ ũƥ ţō {{maxFiles}} ƒĩĺēś."
"youCanAttachUpToFiles": "Ŷōũ ćàń àţţàćĥ ũƥ ţō {{maxFiles}} ƒĩĺēś.",
"yourReviewIsRequestedOnThis": "Ŷōũŕ ŕēvĩēŵ ĩś ŕēqũēśţēď ōń ţĥĩś ţàśķ."
}