⚡ Project management that doesn't become the project. Boards, Gantt charts, and GitHub integration. Self-host it or use Kaneo Cloud.
TypeScript honoissue-managementissue-trackerjira-alternativekanbanlinear-alternativemcpproject-managementreactself-hostedtypescript
feat(web): internationalize components and task filter hooks
Tin06aee41a0b2b
diff --git a/apps/web/src/components/activity/comment-card.tsx b/apps/web/src/components/activity/comment-card.tsxindex f9fe85c28..6f31f34e6 100644--- a/apps/web/src/components/activity/comment-card.tsx+++ b/apps/web/src/components/activity/comment-card.tsx@@ -1,7 +1,7 @@import { useQueryClient } from "@tanstack/react-query";-import { formatDistanceToNow } from "date-fns";import { ExternalLink, Github, Pencil } from "lucide-react";import { useCallback, useState } from "react";+import { useTranslation } from "react-i18next";import CommentEditor from "@/components/activity/comment-editor";import { useAuth } from "@/components/providers/auth-provider/hooks/use-auth";import { Avatar, AvatarFallback, AvatarImage } from "@/components/ui/avatar";@@ -18,6 +18,7 @@ import {TooltipTrigger,} from "@/components/ui/tooltip";import useUpdateComment from "@/hooks/mutations/comment/use-update-comment";+import { formatRelativeTime } from "@/lib/format";import { toast } from "@/lib/toast";type CommentCardProps = {@@ -44,6 +45,7 @@ export default function CommentCard({externalSource,externalUrl,}: CommentCardProps) {+ const { t } = useTranslation();const { user: currentUser } = useAuth();const [isEditing, setIsEditing] = useState(false);const [editedContent, setEditedContent] = useState(content);@@ -68,12 +70,12 @@ export default function CommentCard({const handleSave = useCallback(async () => {if (!editedContent.trim()) {- toast.error("Comment cannot be empty");+ toast.error(t("activity:comment.cannotBeEmpty"));return;}if (!currentUser?.id) {- toast.error("You must be logged in to edit comments");+ toast.error(t("activity:comment.mustBeLoggedInToEdit"));return;}@@ -85,16 +87,17 @@ export default function CommentCard({setIsEditing(false);await queryClient.invalidateQueries({ queryKey: ["activities", taskId] });- toast.success("Comment updated");+ toast.success(t("activity:comment.updated"));} catch (error) {console.error("Failed to update comment:", error);- toast.error("Failed to update comment");+ toast.error(t("activity:comment.failedToUpdate"));}}, [commentId,currentUser?.id,editedContent,queryClient,+ t,taskId,updateComment,]);@@ -137,7 +140,7 @@ export default function CommentCard({<div className="mt-1.5 flex items-center gap-1"><Github className="size-3 text-muted-foreground" /><span className="text-xs text-muted-foreground">- GitHub+ {t("activity:comment.github")}</span></div>)}@@ -151,14 +154,14 @@ export default function CommentCard({className="mt-3 flex items-center gap-1.5 border-t border-border pt-3 text-xs text-muted-foreground transition-colors hover:text-foreground"><ExternalLink className="size-3" />- View GitHub Profile+ {t("activity:comment.viewGithubProfile")}</a>)}</HoverCardContent></HoverCard><span className="text-xs text-muted-foreground/62">- {formatDistanceToNow(createdAt, { addSuffix: true })}+ {formatRelativeTime(createdAt)}</span>{commentUrl && (@@ -171,7 +174,7 @@ export default function CommentCard({className="flex items-center gap-1 text-xs text-muted-foreground transition-colors hover:text-foreground"><Github className="size-3" />- commented on GitHub+ {t("activity:comment.commentedOnGithub")}</a></>)}@@ -191,7 +194,7 @@ export default function CommentCard({</Button></TooltipTrigger><TooltipContent>- <p className="text-xs">Edit comment</p>+ <p className="text-xs">{t("activity:comment.edit")}</p></TooltipContent></Tooltip></TooltipProvider>@@ -201,7 +204,7 @@ export default function CommentCard({<CommentEditorvalue={isEditing ? editedContent : content}onChange={isEditing ? setEditedContent : undefined}- placeholder="Edit comment..."+ placeholder={t("activity:comment.editPlaceholder")}taskId={taskId}uploadSurface="comment"className={@@ -225,7 +228,7 @@ export default function CommentCard({disabled={isPending}className="h-7 px-2.5 text-xs">- Cancel+ {t("common:actions.cancel")}</Button><Buttonvariant="default"@@ -234,7 +237,7 @@ export default function CommentCard({disabled={isPending || !editedContent.trim()}className="h-7 px-2.5 text-xs">- Save+ {t("activity:comment.save")}</Button></div>)}diff --git a/apps/web/src/components/activity/comment-editor.tsx b/apps/web/src/components/activity/comment-editor.tsxindex feee77523..c9dfa204f 100644--- a/apps/web/src/components/activity/comment-editor.tsx+++ b/apps/web/src/components/activity/comment-editor.tsx@@ -28,6 +28,7 @@ import {} from "lucide-react";import type { MouseEvent as ReactMouseEvent } from "react";import { useCallback, useEffect, useMemo, useRef, useState } from "react";+import { useTranslation } from "react-i18next";import { bundledLanguages, type Highlighter } from "shiki";import { AttachmentCard } from "@/components/task/extensions/attachment-card";import { EmbedBlock } from "@/components/task/extensions/embed-block";@@ -108,26 +109,28 @@ type HoveredCodeBlock = {left: number;};-const COMMENT_CODE_LANGUAGE_OPTIONS = [- { value: "bash", label: "Bash" },- { value: "csharp", label: "C#" },- { value: "cpp", label: "C++" },- { value: "css", label: "CSS" },- { value: "go", label: "Golang" },- { value: "graphql", label: "GraphQL" },- { value: "html", label: "HTML" },- { value: "json", label: "JSON" },- { value: "java", label: "Java" },- { value: "javascript", label: "JavaScript" },- { value: "markdown", label: "Markdown" },- { value: "plaintext", label: "Plaintext" },- { value: "python", label: "Python" },- { value: "rust", label: "Rust" },- { value: "sql", label: "SQL" },- { value: "swift", label: "Swift" },- { value: "typescript", label: "TypeScript" },- { value: "yaml", label: "YAML" },-];+const CODE_LANG_VALUES = [+ "bash",+ "csharp",+ "cpp",+ "css",+ "go",+ "graphql",+ "html",+ "json",+ "java",+ "javascript",+ "markdown",+ "plaintext",+ "python",+ "rust",+ "sql",+ "swift",+ "typescript",+ "yaml",+] as const;++type EmbedComposerErrorKey = "embedErrorInvalidUrl" | "embedErrorYoutubeOnly";const COMMENT_SHIKI_LANGUAGE_ALIASES: Record<string, string> = {plaintext: "text",@@ -154,7 +157,7 @@ type EmbedComposerState = {export default function CommentEditor({value,onChange,- placeholder = "Leave a comment...",+ placeholder,className,contentClassName,proseClassName,@@ -171,6 +174,9 @@ export default function CommentEditor({showQuickAttachButton = true,onAttachActionChange,}: CommentEditorProps) {+ const { t } = useTranslation();+ const resolvedPlaceholder =+ placeholder ?? t("activity:comment.leavePlaceholder");const editorShellRef = useRef<HTMLDivElement | null>(null);const imageInputRef = useRef<HTMLInputElement | null>(null);const dragDepthRef = useRef(0);@@ -200,13 +206,21 @@ export default function CommentEditor({const [embedComposer, setEmbedComposer] = useState<EmbedComposerState | null>(null,);- const [embedComposerError, setEmbedComposerError] = useState("");+ const [embedComposerError, setEmbedComposerError] =+ useState<EmbedComposerErrorKey | null>(null);const [isDragActive, setIsDragActive] = useState(false);const [previewImage, setPreviewImage] = useState<{src: string;alt: string;} | null>(null);- const codeLanguages = useMemo(() => COMMENT_CODE_LANGUAGE_OPTIONS, []);+ const codeLanguages = useMemo(+ () =>+ CODE_LANG_VALUES.map((value) => ({+ value,+ label: t(`activity:comment.editor.codeLang.${value}`),+ })),+ [t],+ );const availableShikiLanguages = useMemo(() => new Set(Object.keys(bundledLanguages)),[],@@ -293,11 +307,13 @@ export default function CommentEditor({taskIdRef.current ?? (await ensureTaskIdRef.current?.());if (!activeEditor || !resolvedTaskId) {- toast.error("File uploads are only available on saved tasks.");+ toast.error(t("activity:comment.editor.uploadsOnlyOnSavedTasks"));return;}- const loadingToast = toast.loading("Uploading file...");+ const loadingToast = toast.loading(+ t("activity:comment.editor.uploadingFile"),+ );try {const uploadedAsset = await uploadTaskImage({@@ -309,16 +325,20 @@ export default function CommentEditor({toast.dismiss(loadingToast);toast.success(- uploadedAsset.kind === "image" ? "Image uploaded" : "File attached",+ uploadedAsset.kind === "image"+ ? t("activity:comment.editor.imageUploaded")+ : t("activity:comment.editor.fileAttached"),);} catch (error) {toast.dismiss(loadingToast);toast.error(- error instanceof Error ? error.message : "Failed to upload file",+ error instanceof Error+ ? error.message+ : t("activity:comment.editor.failedToUploadFile"),);}},- [insertUploadedAsset],+ [insertUploadedAsset, t],);const canUploadFiles = Boolean(taskId || ensureTaskId);@@ -394,19 +414,19 @@ export default function CommentEditor({() => [{id: "paragraph",- label: "Text",+ label: t("activity:comment.editor.slashParagraph"),group: "text",- search: "text paragraph normal",+ search: t("activity:comment.editor.searchParagraph"),run: (activeEditor, range) => {activeEditor.chain().focus().deleteRange(range).setParagraph().run();},},{id: "heading-2",- label: "Heading",+ label: t("activity:comment.editor.slashHeading"),group: "text",shortcut: "Ctrl Alt 2",- search: "heading title h2",+ search: t("activity:comment.editor.searchHeading"),run: (activeEditor, range) => {activeEditor.chain()@@ -418,10 +438,10 @@ export default function CommentEditor({},{id: "bullet-list",- label: "Bulleted list",+ label: t("activity:comment.editor.slashBulletList"),group: "lists",shortcut: "Ctrl Alt 8",- search: "list bullet unordered",+ search: t("activity:comment.editor.searchBulletList"),run: (activeEditor, range) => {activeEditor.chain()@@ -433,9 +453,9 @@ export default function CommentEditor({},{id: "task-list",- label: "To-do list",+ label: t("activity:comment.editor.slashTaskList"),group: "lists",- search: "todo to-do checklist checkbox task list",+ search: t("activity:comment.editor.searchTaskList"),run: (activeEditor, range) => {activeEditor.chain()@@ -447,10 +467,10 @@ export default function CommentEditor({},{id: "ordered-list",- label: "Numbered list",+ label: t("activity:comment.editor.slashOrderedList"),group: "lists",shortcut: "Ctrl Alt 9",- search: "list ordered numbered",+ search: t("activity:comment.editor.searchOrderedList"),run: (activeEditor, range) => {activeEditor.chain()@@ -462,9 +482,9 @@ export default function CommentEditor({},{id: "blockquote",- label: "Quote",+ label: t("activity:comment.editor.slashQuote"),group: "insert",- search: "quote blockquote",+ search: t("activity:comment.editor.searchQuote"),run: (activeEditor, range) => {activeEditor.chain()@@ -476,10 +496,10 @@ export default function CommentEditor({},{id: "code-block",- label: "Code block",+ label: t("activity:comment.editor.slashCodeBlock"),group: "insert",shortcut: "Ctrl Alt \\",- search: "code snippet",+ search: t("activity:comment.editor.searchCodeBlock"),run: (activeEditor, range) => {activeEditor.chain()@@ -491,9 +511,9 @@ export default function CommentEditor({},{id: "table",- label: "Table",+ label: t("activity:comment.editor.slashTable"),group: "insert",- search: "table grid",+ search: t("activity:comment.editor.searchTable"),run: (activeEditor, range) => {activeEditor.chain()@@ -505,16 +525,16 @@ export default function CommentEditor({},{id: "file",- label: "File",+ label: t("activity:comment.editor.slashFile"),group: "insert",- search: "file attachment image photo picture upload",+ search: t("activity:comment.editor.searchFile"),run: (activeEditor, range) => {activeEditor.chain().focus().deleteRange(range).run();openImagePicker(activeEditor);},},],- [openImagePicker],+ [openImagePicker, t],);useEffect(() => {@@ -585,7 +605,7 @@ export default function CommentEditor({nested: true,}),Placeholder.configure({- placeholder,+ placeholder: resolvedPlaceholder,}),Table.configure({resizable: true,@@ -673,7 +693,7 @@ export default function CommentEditor({left: coords.left,linkRange: { from, to: from + url.length },});- setEmbedComposerError("");+ setEmbedComposerError(null);return true;},handleDrop: (view, event) => {@@ -835,7 +855,7 @@ export default function CommentEditor({onChange(markdown);},},- [handleAssetFileUpload, toShikiLanguage],+ [handleAssetFileUpload, resolvedPlaceholder, toShikiLanguage],);useEffect(() => {@@ -891,7 +911,7 @@ export default function CommentEditor({event.preventDefault();setPreviewImage({src: target.currentSrc || target.src,- alt: target.alt || "Preview image",+ alt: target.alt || t("activity:comment.editor.previewImageAlt"),});};@@ -901,7 +921,7 @@ export default function CommentEditor({return () => {dom.removeEventListener("click", handleImagePreviewClick);};- }, [editor]);+ }, [editor, t]);const updateSlashMenu = useCallback((activeEditor: Editor) => {@@ -1010,14 +1030,17 @@ export default function CommentEditor({const setLink = useCallback(() => {if (readOnly || disabled || !editor) return;const previousUrl = editor.getAttributes("link").href as string | undefined;- const url = window.prompt("Enter URL", previousUrl || "");+ const url = window.prompt(+ t("activity:comment.editor.enterUrl"),+ previousUrl || "",+ );if (url === null) return;if (!url.trim()) {editor.chain().focus().extendMarkRange("link").unsetLink().run();return;}editor.chain().focus().extendMarkRange("link").setLink({ href: url }).run();- }, [disabled, editor, readOnly]);+ }, [disabled, editor, readOnly, t]);const resolveCodeBlockNodeData = useCallback((pos: number) => {@@ -1115,14 +1138,15 @@ export default function CommentEditor({);const activeCodeLanguageLabel = useMemo(() => {- if (!hoveredCodeBlock) return "Plaintext";- if (hoveredCodeBlock.language === "auto") return "Auto detect";+ if (!hoveredCodeBlock) return t("activity:comment.editor.plaintext");+ if (hoveredCodeBlock.language === "auto")+ return t("activity:comment.editor.autoDetect");const match = codeLanguages.find((option) => option.value === hoveredCodeBlock.language,);return match?.label || hoveredCodeBlock.language;- }, [codeLanguages, hoveredCodeBlock]);+ }, [codeLanguages, hoveredCodeBlock, t]);useEffect(() => {if (!hoveredCodeBlock || isCodeLanguageMenuOpen) return;@@ -1148,25 +1172,25 @@ export default function CommentEditor({const groupedSlashCommands = useMemo(() => [{- title: "Text",+ title: t("activity:comment.editor.slashGroupText"),items: filteredSlashCommands.filter((command) => command.group === "text",),},{- title: "Lists",+ title: t("activity:comment.editor.slashGroupLists"),items: filteredSlashCommands.filter((command) => command.group === "lists",),},{- title: "Insert",+ title: t("activity:comment.editor.slashGroupInsert"),items: filteredSlashCommands.filter((command) => command.group === "insert",),},],- [filteredSlashCommands],+ [filteredSlashCommands, t],);const submitEmbedComposer = useCallback(@@ -1174,14 +1198,14 @@ export default function CommentEditor({if (!editor || !embedComposer) return;const url = normalizeUrl(embedComposer.url);if (!url) {- setEmbedComposerError("Enter a valid URL");+ setEmbedComposerError("embedErrorInvalidUrl");return;}const chain = editor.chain().focus();if (embedComposer.mode === "choice" && mode === "link") {setEmbedComposer(null);- setEmbedComposerError("");+ setEmbedComposerError(null);return;}@@ -1208,7 +1232,7 @@ export default function CommentEditor({.run();} else {if (!isYouTubeUrl(url)) {- setEmbedComposerError("Only YouTube links can be embedded.");+ setEmbedComposerError("embedErrorYoutubeOnly");return;}chain@@ -1223,7 +1247,7 @@ export default function CommentEditor({}setEmbedComposer(null);- setEmbedComposerError("");+ setEmbedComposerError(null);},[editor, embedComposer],);@@ -1251,7 +1275,7 @@ export default function CommentEditor({if (event.key === "Escape") {event.preventDefault();setEmbedComposer(null);- setEmbedComposerError("");+ setEmbedComposerError(null);return;}@@ -1265,7 +1289,7 @@ export default function CommentEditor({if (event.key === "Escape") {event.preventDefault();setEmbedComposer(null);- setEmbedComposerError("");+ setEmbedComposerError(null);}};@@ -1362,7 +1386,11 @@ export default function CommentEditor({return (<sectionref={editorShellRef}- aria-label={readOnly ? "Comment content" : "Comment editor"}+ aria-label={+ readOnly+ ? t("activity:comment.editor.ariaCommentContent")+ : t("activity:comment.editor.ariaCommentEditor")+ }className={cn("kaneo-comment-editor-shell",isDragActive && "is-drag-active",@@ -1407,7 +1435,11 @@ export default function CommentEditor({<buttontype="button"className="kaneo-codeblock-language-trigger kaneo-codeblock-copy-trigger"- aria-label={isCodeCopied ? "Copied" : "Copy code"}+ aria-label={+ isCodeCopied+ ? t("activity:comment.editor.ariaCopied")+ : t("activity:comment.editor.ariaCopyCode")+ }onMouseDown={(event) => {event.preventDefault();}}@@ -1420,7 +1452,11 @@ export default function CommentEditor({) : (<Copy className="size-3.5" />)}- <span>{isCodeCopied ? "Copied" : "Copy"}</span>+ <span>+ {isCodeCopied+ ? t("activity:comment.editor.copied")+ : t("activity:comment.editor.copy")}+ </span></button>{!readOnly && (<DropdownMenu@@ -1447,7 +1483,7 @@ export default function CommentEditor({onValueChange={setCodeLanguage}><DropdownMenuRadioItem value="auto">- Auto detect+ {t("activity:comment.editor.autoDetect")}</DropdownMenuRadioItem><DropdownMenuSeparator />{codeLanguages.map(({ value, label }) => (@@ -1631,7 +1667,9 @@ export default function CommentEditor({);})) : (- <div className="kaneo-tiptap-slash-empty">No commands</div>+ <div className="kaneo-tiptap-slash-empty">+ {t("activity:comment.editor.noCommands")}+ </div>)}</div>)}@@ -1654,8 +1692,10 @@ export default function CommentEditor({submitEmbedComposer("embed");}}>- <span>Embed video</span>- <span className="kaneo-embed-choice-hint">Tab</span>+ <span>{t("activity:comment.editor.embedVideo")}</span>+ <span className="kaneo-embed-choice-hint">+ {t("activity:comment.editor.hintTab")}+ </span></button><buttontype="button"@@ -1663,11 +1703,13 @@ export default function CommentEditor({onMouseDown={(event) => {event.preventDefault();setEmbedComposer(null);- setEmbedComposerError("");+ setEmbedComposerError(null);}}>- <span>Keep as link</span>- <span className="kaneo-embed-choice-hint">Esc</span>+ <span>{t("activity:comment.editor.keepAsLink")}</span>+ <span className="kaneo-embed-choice-hint">+ {t("activity:comment.editor.hintEsc")}+ </span></button></div>) : (@@ -1685,9 +1727,9 @@ export default function CommentEditor({setEmbedComposer((current) =>current ? { ...current, url: event.target.value } : current,);- if (embedComposerError) setEmbedComposerError("");+ if (embedComposerError) setEmbedComposerError(null);}}- placeholder="Paste URL"+ placeholder={t("activity:comment.editor.pasteUrl")}autoFocus/><div className="kaneo-embed-composer-actions">@@ -1697,10 +1739,10 @@ export default function CommentEditor({variant="ghost"onClick={() => submitEmbedComposer("link")}>- As link+ {t("activity:comment.editor.asLink")}</Button><Button type="submit" size="xs">- Embed+ {t("activity:comment.editor.embed")}</Button><Buttontype="button"@@ -1708,15 +1750,15 @@ export default function CommentEditor({variant="ghost"onClick={() => {setEmbedComposer(null);- setEmbedComposerError("");+ setEmbedComposerError(null);}}>- Cancel+ {t("common:actions.cancel")}</Button></div>{embedComposerError && (<p className="kaneo-embed-composer-error">- {embedComposerError}+ {t(`activity:comment.editor.${embedComposerError}`)}</p>)}</form>@@ -1737,14 +1779,14 @@ export default function CommentEditor({event.preventDefault();}}onClick={() => openImagePicker(editor)}- aria-label="Attach file"+ aria-label={t("activity:comment.attachFile")}><Paperclip className="size-3.5" /></button>)}{isDragActive && (<div className="kaneo-editor-drop-indicator">- <span>Drop image to upload</span>+ <span>{t("activity:comment.editor.dropImageToUpload")}</span></div>)}<Dialogdiff --git a/apps/web/src/components/activity/comment-input.tsx b/apps/web/src/components/activity/comment-input.tsxindex 421936345..576d30f6c 100644--- a/apps/web/src/components/activity/comment-input.tsx+++ b/apps/web/src/components/activity/comment-input.tsx@@ -1,6 +1,7 @@import { useQueryClient } from "@tanstack/react-query";import { ArrowUp, Paperclip } from "lucide-react";import { useCallback, useState } from "react";+import { useTranslation } from "react-i18next";import CommentEditor from "@/components/activity/comment-editor";import { Button } from "@/components/ui/button";import { KbdSequence } from "@/components/ui/kbd";@@ -20,6 +21,7 @@ type CommentInputProps = {};export default function CommentInput({ taskId }: CommentInputProps) {+ const { t } = useTranslation();const [content, setContent] = useState("");const [attachAction, setAttachAction] = useState<(() => void) | null>(null);const { mutateAsync: createComment, isPending } = useCreateComment();@@ -27,7 +29,7 @@ export default function CommentInput({ taskId }: CommentInputProps) {const handleSubmit = useCallback(async () => {if (!content.trim()) {- toast.error("Comment cannot be empty");+ toast.error(t("activity:comment.cannotBeEmpty"));return;}@@ -40,12 +42,12 @@ export default function CommentInput({ taskId }: CommentInputProps) {setContent("");await queryClient.invalidateQueries({ queryKey: ["activities", taskId] });- toast.success("Comment added");+ toast.success(t("activity:comment.added"));} catch (error) {console.error("Failed to create comment:", error);- toast.error("Failed to add comment");+ toast.error(t("activity:comment.failedToAdd"));}- }, [content, createComment, taskId, queryClient]);+ }, [content, createComment, queryClient, t, taskId]);const handleAttachActionChange = useCallback((nextAttachAction: (() => void) | null) => {@@ -60,7 +62,7 @@ export default function CommentInput({ taskId }: CommentInputProps) {<CommentEditorvalue={content}onChange={setContent}- placeholder="Leave a comment..."+ placeholder={t("activity:comment.leavePlaceholder")}taskId={taskId}uploadSurface="comment"showQuickAttachButton={false}@@ -75,7 +77,7 @@ export default function CommentInput({ taskId }: CommentInputProps) {onClick={() => attachAction?.()}disabled={!attachAction}className="text-muted-foreground"- aria-label="Attach file"+ aria-label={t("activity:comment.attachFile")}><Paperclip className="size-3.5" /></Button>@@ -100,7 +102,7 @@ export default function CommentInput({ taskId }: CommentInputProps) {<TooltipContent><KbdSequencekeys={[getModifierKeyText(), "Enter"]}- description="Submit comment"+ description={t("activity:comment.submitShortcut")}/></TooltipContent></Tooltip>diff --git a/apps/web/src/components/activity/index.tsx b/apps/web/src/components/activity/index.tsxindex 07592d9de..cb8733d29 100644--- a/apps/web/src/components/activity/index.tsx+++ b/apps/web/src/components/activity/index.tsx@@ -1,7 +1,9 @@-import { formatDistanceToNow } from "date-fns";import { Calendar, CircleAlert, History, UserRound } from "lucide-react";+import { useTranslation } from "react-i18next";import useActiveWorkspace from "@/hooks/queries/workspace/use-active-workspace";import useGetWorkspaceUsers from "@/hooks/queries/workspace-users/use-get-workspace-users";+import { formatDateMedium, formatRelativeTime } from "@/lib/format";+import { getPriorityLabel, getStatusLabel } from "@/lib/i18n/domain";import { Avatar, AvatarFallback, AvatarImage } from "../ui/avatar";import {HoverCard,@@ -15,6 +17,7 @@ import { isCommentActivity } from "./utils";type ActivityItem = {type: string;content: string | null;+ eventData?: unknown;id: string;createdAt: string;userId: string | null;@@ -25,6 +28,16 @@ type ActivityItem = {externalUrl?: string | null;};+function getEventDataRecord(+ eventData: unknown,+): Record<string, unknown> | null {+ if (!eventData || typeof eventData !== "object" || Array.isArray(eventData)) {+ return null;+ }++ return eventData as Record<string, unknown>;+}+type WorkspaceUser = {user?: {id?: string;@@ -51,23 +64,10 @@ function getActivityTypeIcon(type: string) {}}-function toDisplayCase(value: string) {- return value- .replace(/[-_]/g, " ")- .split(" ")- .filter(Boolean)- .map((part) => part.charAt(0).toUpperCase() + part.slice(1).toLowerCase())- .join(" ");-}-function formatActivityDateText(value: string) {const parsed = new Date(value);if (!Number.isNaN(parsed.getTime())) {- return parsed.toLocaleDateString("en-US", {- month: "short",- day: "numeric",- year: "numeric",- });+ return formatDateMedium(parsed);}const slashMatch = value.match(/^(\d{1,2})\/(\d{1,2})\/(\d{4})$/);@@ -75,11 +75,16 @@ function formatActivityDateText(value: string) {const [, month, day, year] = slashMatch;const fromSlashDate = new Date(`${year}-${month}-${day}T00:00:00`);if (Number.isNaN(fromSlashDate.getTime())) return value;- return fromSlashDate.toLocaleDateString("en-US", {- month: "short",- day: "numeric",- year: "numeric",- });+ return formatDateMedium(fromSlashDate);+}++function toDisplayCase(value: string) {+ return value+ .replace(/[-_]/g, " ")+ .split(" ")+ .filter(Boolean)+ .map((part) => part.charAt(0).toUpperCase() + part.slice(1).toLowerCase())+ .join(" ");}function findUserByName(users: WorkspaceUser[] | undefined, name: string) {@@ -156,75 +161,164 @@ function ActorAvatar({function renderActivityContent({activity,workspaceUsers,+ t,}: {activity: ActivityItem;workspaceUsers: WorkspaceUser[] | undefined;+ t: (key: string, options?: Record<string, unknown>) => string;}) {const content = activity.content || "";+ const eventData = getEventDataRecord(activity.eventData);if (activity.type === "priority_changed") {+ if (eventData) {+ return (+ <span className="text-sm text-muted-foreground">+ {t("activity:changedPriority", {+ from: getPriorityLabel(String(eventData.oldPriority ?? "")),+ to: getPriorityLabel(String(eventData.newPriority ?? "")),+ })}+ </span>+ );+ }+const match = content.match(/changed priority from "?(.+?)"? to "?(.+?)"?$/i,);- if (!match)+ if (!match) {return <span className="text-sm text-muted-foreground">{content}</span>;+ }+return (<span className="text-sm text-muted-foreground">- changed priority from{" "}- <span className="text-foreground">{toDisplayCase(match[1])}</span> to{" "}- <span className="text-foreground">{toDisplayCase(match[2])}</span>+ {t("activity:changedPriority", {+ from: getPriorityLabel(match[1]),+ to: getPriorityLabel(match[2]),+ })}</span>);}if (activity.type === "status_changed") {+ if (eventData) {+ return (+ <span className="text-sm text-muted-foreground">+ {t("activity:changedStatus", {+ from: getStatusLabel(String(eventData.oldStatus ?? "")),+ to: getStatusLabel(String(eventData.newStatus ?? "")),+ })}+ </span>+ );+ }+const match = content.match(/changed status from "?(.+?)"? to "?(.+?)"?$/i);- if (!match)+ if (!match) {return <span className="text-sm text-muted-foreground">{content}</span>;+ }+return (<span className="text-sm text-muted-foreground">- changed status from{" "}- <span className="text-foreground">{toDisplayCase(match[1])}</span> to{" "}- <span className="text-foreground">{toDisplayCase(match[2])}</span>+ {t("activity:changedStatus", {+ from: getStatusLabel(match[1]),+ to: getStatusLabel(match[2]),+ })}</span>);}if (activity.type === "due_date_changed") {+ if (eventData) {+ const oldDueDate = eventData.oldDueDate+ ? formatActivityDateText(String(eventData.oldDueDate))+ : null;+ const newDueDate = eventData.newDueDate+ ? formatActivityDateText(String(eventData.newDueDate))+ : null;++ return (+ <span className="text-sm text-muted-foreground">+ {newDueDate+ ? oldDueDate+ ? t("activity:changedDueDate", {+ from: oldDueDate,+ to: newDueDate,+ })+ : t("activity:setDueDate", { date: newDueDate })+ : t("activity:clearedDueDate")}+ </span>+ );+ }+const changeMatch = content.match(/changed due date from (.+) to (.+)$/i);if (changeMatch) {return (<span className="text-sm text-muted-foreground">- changed due date from{" "}- <span className="text-foreground">- {formatActivityDateText(changeMatch[1])}- </span>{" "}- to{" "}- <span className="text-foreground">- {formatActivityDateText(changeMatch[2])}- </span>+ {t("activity:changedDueDate", {+ from: formatActivityDateText(changeMatch[1]),+ to: formatActivityDateText(changeMatch[2]),+ })}</span>);}+const setMatch = content.match(/set due date to (.+)$/i);if (setMatch) {return (<span className="text-sm text-muted-foreground">- set due date to{" "}- <span className="text-foreground">- {formatActivityDateText(setMatch[1])}- </span>+ {t("activity:setDueDate", {+ date: formatActivityDateText(setMatch[1]),+ })}+ </span>+ );+ }++ if (content.includes("cleared the due date")) {+ return (+ <span className="text-sm text-muted-foreground">+ {t("activity:clearedDueDate")}</span>);}+return <span className="text-sm text-muted-foreground">{content}</span>;}+ if (activity.type === "unassigned") {+ return (+ <span className="text-sm text-muted-foreground">+ {t("activity:unassigned")}+ </span>+ );+ }+if (activity.type === "assignee_changed") {+ if (eventData) {+ if (eventData.isSelfAssigned) {+ return (+ <span className="text-sm text-muted-foreground">+ {t("activity:assignedToSelf")}+ </span>+ );+ }++ const targetId = String(eventData.newAssigneeId ?? "");+ const targetName = String(eventData.newAssignee ?? "");+ const targetUser =+ workspaceUsers?.find((member) => member.user?.id === targetId) || null;++ return (+ <span className="text-sm text-muted-foreground">+ {t("activity:assignedTo", {+ name: targetUser?.user?.name ?? targetName,+ })}+ </span>+ );+ }+if (content.includes("themselves")) {return (<span className="text-sm text-muted-foreground">- assigned the task to themselves+ {t("activity:assignedToSelf")}</span>);}@@ -236,10 +330,12 @@ function renderActivityContent({const [, targetId, targetName] = tokenMatch;const targetUser =workspaceUsers?.find((member) => member.user?.id === targetId) || null;+return (<span className="text-sm text-muted-foreground">- assigned the task to{" "}- <UserHoverName user={targetUser} fallbackName={targetName} />+ {t("activity:assignedTo", {+ name: targetUser?.user?.name ?? targetName,+ })}</span>);}@@ -250,14 +346,44 @@ function renderActivityContent({const targetUser = findUserByName(workspaceUsers, targetName);return (<span className="text-sm text-muted-foreground">- assigned the task to{" "}- <UserHoverName user={targetUser} fallbackName={targetName} />+ {t("activity:assignedTo", {+ name: targetUser?.user?.name ?? targetName,+ })}+ </span>+ );+ }+ }++ if (activity.type === "title_changed") {+ if (eventData) {+ return (+ <span className="text-sm text-muted-foreground">+ {t("activity:changedTitle", {+ from: String(eventData.oldTitle ?? ""),+ to: String(eventData.newTitle ?? ""),+ })}+ </span>+ );+ }++ const legacyMatch = content.match(/changed title from "(.+)" to "(.+)"$/i);+ if (legacyMatch) {+ return (+ <span className="text-sm text-muted-foreground">+ {t("activity:changedTitle", {+ from: legacyMatch[1],+ to: legacyMatch[2],+ })}</span>);}}- return <span className="text-sm text-muted-foreground">{content}</span>;+ return (+ <span className="text-sm text-muted-foreground">+ {content || toDisplayCase(activity.type)}+ </span>+ );}function Activity({@@ -269,24 +395,26 @@ function Activity({step: number;showConnector?: boolean;}) {+ const { t } = useTranslation();const { data: workspace } = useActiveWorkspace();-const { data: workspaceUsers } = useGetWorkspaceUsers({workspaceId: workspace?.id,});const user = activity.userId- ? workspaceUsers?.find((user) => user.user?.id === activity.userId)+ ? workspaceUsers?.find(+ (workspaceUser) => workspaceUser.user?.id === activity.userId,+ ): null;const isExternalComment = Boolean(activity.externalSource);- const actorName = user?.user?.name || "Someone";+ const actorName = user?.user?.name || t("common:people.someone");if (isCommentActivity(activity)) {const commentUser = isExternalComment? {id: undefined,- name: activity.externalUserName ?? "GitHub User",+ name: activity.externalUserName ?? t("activity:githubUser"),email: undefined,image: activity.externalUserAvatar ?? undefined,}@@ -333,9 +461,10 @@ function Activity({{renderActivityContent({activity,workspaceUsers: workspaceUsers as WorkspaceUser[] | undefined,+ t,})}{" "}<span className="whitespace-nowrap text-muted-foreground/70 text-xs">- {formatDistanceToNow(activity.createdAt, { addSuffix: true })}+ {formatRelativeTime(activity.createdAt)}</span></TimelineContent></TimelineItem>diff --git a/apps/web/src/components/auth/otp-sign-in-form.tsx b/apps/web/src/components/auth/otp-sign-in-form.tsxindex a8dbc5982..6491c1672 100644--- a/apps/web/src/components/auth/otp-sign-in-form.tsx+++ b/apps/web/src/components/auth/otp-sign-in-form.tsx@@ -2,6 +2,7 @@ import { standardSchemaResolver } from "@hookform/resolvers/standard-schema";import { useRouter } from "@tanstack/react-router";import { useState } from "react";import { useForm } from "react-hook-form";+import { useTranslation } from "react-i18next";import { z } from "zod/v4";import { Button } from "@/components/ui/button";import {@@ -32,6 +33,7 @@ export function OtpSignInForm({invitationId,defaultEmail,}: OtpSignInFormProps) {+ const { t } = useTranslation();const [isPending, setIsPending] = useState(false);const { history } = useRouter();@@ -49,11 +51,11 @@ export function OtpSignInForm({});if (result.error) {- toast.error(result.error.message || "Failed to send verification code");+ toast.error(result.error.message || t("auth:otpSignIn.sendFailed"));return;}- toast.success("Verification code sent! Check your email.");+ toast.success(t("auth:otpSignIn.codeSent"));const searchParams = new URLSearchParams({email: data.email,@@ -73,10 +75,12 @@ export function OtpSignInForm({name="email"render={({ field, fieldState }) => (<FormItem>- <FormLabel className="text-sm font-medium">Email</FormLabel>+ <FormLabel className="text-sm font-medium">+ {t("auth:forms.email")}+ </FormLabel><FormControl><Input- placeholder="[email protected]"+ placeholder={t("auth:forms.emailPlaceholder")}type="email"autoComplete="email"{...field}@@ -88,7 +92,9 @@ export function OtpSignInForm({/><Button type="submit" disabled={isPending} className="w-full mt-4">- {isPending ? "Sending..." : "Send Verification Code"}+ {isPending+ ? t("auth:otpSignIn.sending")+ : t("auth:otpSignIn.sendVerificationCode")}</Button></form></Form>diff --git a/apps/web/src/components/auth/sign-in-form-skeleton.tsx b/apps/web/src/components/auth/sign-in-form-skeleton.tsxindex 668488380..90cf1bf42 100644--- a/apps/web/src/components/auth/sign-in-form-skeleton.tsx+++ b/apps/web/src/components/auth/sign-in-form-skeleton.tsx@@ -1,6 +1,8 @@+import { useTranslation } from "react-i18next";import { Skeleton } from "@/components/ui/skeleton";export function SignInFormSkeleton() {+ const { t } = useTranslation();return (<div className="space-y-4 mt-6"><div className="flex flex-col gap-2">@@ -10,7 +12,9 @@ export function SignInFormSkeleton() {<div className="flex items-center gap-4 my-4"><div className="flex-1 h-px bg-border" />- <span className="text-sm text-muted-foreground">or</span>+ <span className="text-sm text-muted-foreground">+ {t("auth:forms.or")}+ </span><div className="flex-1 h-px bg-border" /></div>diff --git a/apps/web/src/components/auth/sign-in-form.tsx b/apps/web/src/components/auth/sign-in-form.tsxindex 7fe095bf8..30a37b4f3 100644--- a/apps/web/src/components/auth/sign-in-form.tsx+++ b/apps/web/src/components/auth/sign-in-form.tsx@@ -2,6 +2,7 @@ import { standardSchemaResolver } from "@hookform/resolvers/standard-schema";import { Eye, EyeOff } from "lucide-react";import { useState } from "react";import { useForm } from "react-hook-form";+import { useTranslation } from "react-i18next";import { z } from "zod/v4";import { Button } from "@/components/ui/button";import {@@ -32,6 +33,7 @@ const signInSchema = z.object({});export function SignInForm({ onSuccess, defaultEmail }: SignInFormProps) {+ const { t } = useTranslation();const [showPassword, setShowPassword] = useState(false);const [isPending, setIsPending] = useState(false);const form = useForm<SignInFormValues>({@@ -51,16 +53,20 @@ export function SignInForm({ onSuccess, defaultEmail }: SignInFormProps) {});if (result.error) {- toast.error(result.error.message || "Failed to sign in");+ toast.error(result.error.message || t("auth:signInForm.failedSignIn"));return;}- toast.success("Signed in successfully");+ toast.success(t("auth:signInForm.signedInSuccess"));setTimeout(() => {onSuccess?.();}, 500);} catch (error) {- toast.error(error instanceof Error ? error.message : "Failed to sign in");+ toast.error(+ error instanceof Error+ ? error.message+ : t("auth:signInForm.failedSignIn"),+ );} finally {setIsPending(false);}@@ -75,10 +81,12 @@ export function SignInForm({ onSuccess, defaultEmail }: SignInFormProps) {name="email"render={({ field }) => (<FormItem>- <FormLabel className="text-sm font-medium">Email</FormLabel>+ <FormLabel className="text-sm font-medium">+ {t("auth:forms.email")}+ </FormLabel><FormControl><Input- placeholder="[email protected]"+ placeholder={t("auth:forms.emailPlaceholder")}type="email"autoComplete="email"{...field}@@ -94,11 +102,13 @@ export function SignInForm({ onSuccess, defaultEmail }: SignInFormProps) {name="password"render={({ field }) => (<FormItem>- <FormLabel className="text-sm font-medium">Password</FormLabel>+ <FormLabel className="text-sm font-medium">+ {t("auth:forms.password")}+ </FormLabel><FormControl><div className="relative"><Input- placeholder="••••••••"+ placeholder={t("auth:forms.passwordPlaceholder")}type={showPassword ? "text" : "password"}autoComplete="current-password"{...field}@@ -108,7 +118,9 @@ export function SignInForm({ onSuccess, defaultEmail }: SignInFormProps) {onClick={() => setShowPassword(!showPassword)}className="absolute right-3 top-1/2 -translate-y-1/2 text-muted-foreground hover:text-foreground"aria-label={- showPassword ? "Hide password" : "Show password"+ showPassword+ ? t("auth:forms.hidePassword")+ : t("auth:forms.showPassword")}aria-pressed={showPassword}>@@ -128,7 +140,9 @@ export function SignInForm({ onSuccess, defaultEmail }: SignInFormProps) {size="sm"className="w-full mt-4">- {isPending ? "Signing In..." : "Sign In"}+ {isPending+ ? t("auth:signInForm.signingIn")+ : t("auth:signInForm.signIn")}</Button></form></Form>diff --git a/apps/web/src/components/auth/sign-up-form.tsx b/apps/web/src/components/auth/sign-up-form.tsxindex 34e526eab..f5783281e 100644--- a/apps/web/src/components/auth/sign-up-form.tsx+++ b/apps/web/src/components/auth/sign-up-form.tsx@@ -1,8 +1,9 @@import { standardSchemaResolver } from "@hookform/resolvers/standard-schema";import { useRouter } from "@tanstack/react-router";import { Eye, EyeOff } from "lucide-react";-import { useState } from "react";+import { useMemo, useState } from "react";import { useForm } from "react-hook-form";+import { useTranslation } from "react-i18next";import { z } from "zod/v4";import { Button } from "@/components/ui/button";import {@@ -28,16 +29,24 @@ type SignUpFormProps = {defaultEmail?: string;};-const signUpSchema = z.object({- email: z.email(),- password: z.string().min(8, { message: "Password is too short" }),- name: z.string(),-});-export function SignUpForm({ invitationId, defaultEmail }: SignUpFormProps) {+ const { t } = useTranslation();const [showPassword, setShowPassword] = useState(false);const [isPending, setIsPending] = useState(false);const { history } = useRouter();++ const signUpSchema = useMemo(+ () =>+ z.object({+ email: z.email(),+ password: z.string().min(8, {+ message: t("auth:signUpForm.passwordTooShort"),+ }),+ name: z.string(),+ }),+ [t],+ );+const form = useForm<SignUpFormValues>({resolver: standardSchemaResolver(signUpSchema),defaultValues: {@@ -57,11 +66,11 @@ export function SignUpForm({ invitationId, defaultEmail }: SignUpFormProps) {});if (result.error) {- toast.error(result.error.message || "Failed to sign up");+ toast.error(result.error.message || t("auth:signUpForm.failedSignUp"));return;}- toast.success("Account created successfully");+ toast.success(t("auth:signUpForm.accountCreated"));if (invitationId) {history.push(`/invitation/accept/${invitationId}`);@@ -69,7 +78,11 @@ export function SignUpForm({ invitationId, defaultEmail }: SignUpFormProps) {history.push("/dashboard");}} catch (error) {- toast.error(error instanceof Error ? error.message : "Failed to sign up");+ toast.error(+ error instanceof Error+ ? error.message+ : t("auth:signUpForm.failedSignUp"),+ );} finally {setIsPending(false);}@@ -84,10 +97,12 @@ export function SignUpForm({ invitationId, defaultEmail }: SignUpFormProps) {name="name"render={({ field, fieldState }) => (<FormItem>- <FormLabel className="text-sm font-medium">Full Name</FormLabel>+ <FormLabel className="text-sm font-medium">+ {t("auth:signUpForm.fullName")}+ </FormLabel><FormControl><Input- placeholder="John Doe"+ placeholder={t("auth:signUpForm.namePlaceholder")}type="text"autoComplete="name"{...field}@@ -103,10 +118,12 @@ export function SignUpForm({ invitationId, defaultEmail }: SignUpFormProps) {name="email"render={({ field, fieldState }) => (<FormItem>- <FormLabel className="text-sm font-medium">Email</FormLabel>+ <FormLabel className="text-sm font-medium">+ {t("auth:forms.email")}+ </FormLabel><FormControl><Input- placeholder="[email protected]"+ placeholder={t("auth:forms.emailPlaceholder")}type="email"autoComplete="email"disabled={!!defaultEmail}@@ -123,11 +140,13 @@ export function SignUpForm({ invitationId, defaultEmail }: SignUpFormProps) {name="password"render={({ field, fieldState }) => (<FormItem>- <FormLabel className="text-sm font-medium">Password</FormLabel>+ <FormLabel className="text-sm font-medium">+ {t("auth:forms.password")}+ </FormLabel><FormControl><div className="relative"><Input- placeholder="••••••••"+ placeholder={t("auth:forms.passwordPlaceholder")}type={showPassword ? "text" : "password"}autoComplete="new-password"{...field}@@ -137,7 +156,9 @@ export function SignUpForm({ invitationId, defaultEmail }: SignUpFormProps) {onClick={() => setShowPassword(!showPassword)}className="absolute right-3 top-1/2 -translate-y-1/2 text-muted-foreground hover:text-foreground"aria-label={- showPassword ? "Hide password" : "Show password"+ showPassword+ ? t("auth:forms.hidePassword")+ : t("auth:forms.showPassword")}aria-pressed={showPassword}>@@ -152,7 +173,9 @@ export function SignUpForm({ invitationId, defaultEmail }: SignUpFormProps) {</div><Button type="submit" disabled={isPending} className="w-full mt-4">- {isPending ? "Creating Account..." : "Create Account"}+ {isPending+ ? t("auth:signUpForm.creatingAccount")+ : t("auth:signUpForm.createAccount")}</Button></form></Form>diff --git a/apps/web/src/components/backlog-list-view/backlog-task-row.tsx b/apps/web/src/components/backlog-list-view/backlog-task-row.tsxindex a024b9b83..846675f76 100644--- a/apps/web/src/components/backlog-list-view/backlog-task-row.tsx+++ b/apps/web/src/components/backlog-list-view/backlog-task-row.tsx@@ -4,6 +4,7 @@ import { useNavigate } from "@tanstack/react-router";import { format } from "date-fns";import { Calendar, CalendarClock, CalendarX } from "lucide-react";import { type CSSProperties, useMemo, useState } from "react";+import { useTranslation } from "react-i18next";import {AlertDialog,AlertDialogClose,@@ -36,6 +37,7 @@ type BacklogTaskRowProps = {};export default function BacklogTaskRow({ task }: BacklogTaskRowProps) {+ const { t } = useTranslation();const navigate = useNavigate();const {attributes,@@ -119,10 +121,10 @@ export default function BacklogTaskRow({ task }: BacklogTaskRowProps) {});} catch (error) {toast.error(- error instanceof Error ? error.message : "Failed to delete task",+ error instanceof Error ? error.message : t("tasks:delete.error"),);} finally {- toast.success("Task deleted successfully");+ toast.success(t("tasks:delete.success"));}};@@ -208,7 +210,7 @@ export default function BacklogTaskRow({ task }: BacklogTaskRowProps) {) : (<divclassName="w-6 h-6 rounded-full bg-muted border border-border flex items-center justify-center"- title="Unassigned"+ title={t("tasks:assignee.unassigned")}><span className="text-[10px] font-medium text-muted-foreground">?@@ -238,21 +240,20 @@ export default function BacklogTaskRow({ task }: BacklogTaskRowProps) {><AlertDialogContent><AlertDialogHeader>- <AlertDialogTitle>Delete Task?</AlertDialogTitle>+ <AlertDialogTitle>{t("tasks:delete.title")}</AlertDialogTitle><AlertDialogDescription>- This will permanently remove the task and all its data. You can't- undo this action.+ {t("tasks:delete.description")}</AlertDialogDescription></AlertDialogHeader><AlertDialogFooter><AlertDialogClose><Button variant="outline" size="sm">- Cancel+ {t("common:actions.cancel")}</Button></AlertDialogClose><AlertDialogClose onClick={handleDeleteTask}><Button variant="destructive" size="sm">- Delete Task+ {t("tasks:delete.action")}</Button></AlertDialogClose></AlertDialogFooter>diff --git a/apps/web/src/components/backlog-list-view/index.tsx b/apps/web/src/components/backlog-list-view/index.tsxindex b1cfe32fe..220f7b2bf 100644--- a/apps/web/src/components/backlog-list-view/index.tsx+++ b/apps/web/src/components/backlog-list-view/index.tsx@@ -22,6 +22,7 @@ import { useNavigate } from "@tanstack/react-router";import { produce } from "immer";import { Archive, ChevronRight, Clock, Flag, Plus } from "lucide-react";import { useEffect, useState } from "react";+import { useTranslation } from "react-i18next";import { priorityColorsTaskCard } from "@/constants/priority-colors";import { useUpdateTask } from "@/hooks/mutations/task/use-update-task";import { useRegisterShortcuts } from "@/hooks/use-keyboard-shortcuts";@@ -43,6 +44,7 @@ function BacklogListView({project,disableDragDrop = false,}: BacklogListViewProps) {+ const { t } = useTranslation();const { mutate: updateTask } = useUpdateTask();const { setProject } = useProjectStore();const {@@ -330,7 +332,11 @@ function BacklogListView({<div className="flex items-center gap-2 h-4"><IconComponent className="w-4 h-4 flex-shrink-0 text-muted-foreground" /><div className="flex items-center gap-1">- <span className="mt-1 mr-1">{title}</span>+ <span className="mt-1 mr-1">+ {t(`tasks:backlog.sections.${sectionId}`, {+ defaultValue: title,+ })}+ </span><span className="text-xs text-muted-foreground mt-0.5">{tasks.length}</span>@@ -347,7 +353,7 @@ function BacklogListView({setActiveColumn("planned");}}className="p-1 hover:bg-accent rounded text-muted-foreground hover:text-foreground transition-colors"- title="Add task"+ title={t("tasks:backlog.addTask")}><Plus className="w-3 h-3" /></button>@@ -368,7 +374,11 @@ function BacklogListView({{tasks.length === 0 && (<div className="py-6 px-4 text-center text-xs text-muted-foreground">- No {title.toLowerCase()} tasks+ {t("tasks:backlog.noTasksInSection", {+ section: t(`tasks:backlog.sections.${sectionId}`, {+ defaultValue: title,+ }).toLowerCase(),+ })}</div>)}</div>@@ -401,7 +411,7 @@ function BacklogListView({<div className="divide-y divide-border/50"><BacklogSectionsectionId="planned"- title="Planned"+ title={t("tasks:backlog.sections.planned")}icon={Clock}tasks={plannedTasks}showAddButton={true}@@ -409,7 +419,7 @@ function BacklogListView({<BacklogSectionsectionId="archived"- title="Archived"+ title={t("tasks:backlog.sections.archived")}icon={Archive}tasks={archivedTasks}/>diff --git a/apps/web/src/components/board/board-toolbar.tsx b/apps/web/src/components/board/board-toolbar.tsxindex 35bcd11b4..2b3f8c5da 100644--- a/apps/web/src/components/board/board-toolbar.tsx+++ b/apps/web/src/components/board/board-toolbar.tsx@@ -1,5 +1,6 @@import { Filter, PanelsTopLeft, Rows3, X } from "lucide-react";import type { ReactNode } from "react";+import { useTranslation } from "react-i18next";import SortControl from "@/components/common/sort-control";import { Avatar, AvatarFallback, AvatarImage } from "@/components/ui/avatar";import {@@ -15,8 +16,12 @@ import {DropdownMenuTrigger,} from "@/components/ui/menu";import labelColors from "@/constants/label-colors";-import type { BoardFilters } from "@/hooks/use-task-filters";+import {+ type BoardFilters,+ DUE_DATE_FILTER_VALUES,+} from "@/hooks/use-task-filters";import { getColumnIcon } from "@/lib/column";+import { getPriorityLabel } from "@/lib/i18n/domain";import { getPriorityIcon } from "@/lib/priority";import type { SortConfig } from "@/lib/sort-tasks";import type { ProjectWithTasks } from "@/types/project";@@ -138,6 +143,7 @@ export default function BoardToolbar({sort,onSortChange,}: BoardToolbarProps) {+ const { t } = useTranslation();const selectedStatusIds = filters.status ?? [];const selectedPriorityIds = filters.priority ?? [];const selectedAssigneeIds = filters.assignee ?? [];@@ -153,11 +159,11 @@ export default function BoardToolbar({};const getPriorityDisplayName = (priority: string) =>- priority.charAt(0).toUpperCase() + priority.slice(1);+ getPriorityLabel(priority);const getAssigneeDisplayName = (userId: string) => {const member = users?.members?.find((m) => m.userId === userId);- return member?.user?.name || "Unknown";+ return member?.user?.name || t("common:people.unknown");};const getAssigneeAvatar = (userId: string) => {const member = users?.members?.find((m) => m.userId === userId);@@ -259,19 +265,19 @@ export default function BoardToolbar({}><Filter className="h-3 w-3" />- Filter+ {t("common:actions.filter")}</DropdownMenuTrigger><DropdownMenuContent className="w-56" align="start"><DropdownMenuGroup><DropdownMenuLabel className="text-[11px] uppercase tracking-wide">- Filter By+ {t("tasks:boardFilters.filterBy")}</DropdownMenuLabel></DropdownMenuGroup><DropdownMenuSeparator /><DropdownMenuSub><DropdownMenuSubTrigger className="h-8 rounded-md text-sm">- Status+ {t("tasks:boardFilters.subjects.status")}</DropdownMenuSubTrigger><DropdownMenuSubContent className="w-72"><div className="grid grid-cols-1 gap-1 p-1">@@ -285,7 +291,7 @@ export default function BoardToolbar({type="button"><CheckSlot checked={selectedStatusIds.length === 0} />- All statuses+ {t("tasks:boardFilters.allStatuses")}</button>{project?.columns?.map((column) => (<button@@ -313,7 +319,7 @@ export default function BoardToolbar({<DropdownMenuSub><DropdownMenuSubTrigger className="h-8 rounded-md text-sm">- Priority+ {t("tasks:boardFilters.subjects.priority")}</DropdownMenuSubTrigger><DropdownMenuSubContent className="w-72"><div className="grid grid-cols-1 gap-1 p-1">@@ -327,7 +333,7 @@ export default function BoardToolbar({type="button"><CheckSlot checked={selectedPriorityIds.length === 0} />- All priorities+ {t("tasks:boardFilters.allPriorities")}</button>{["urgent", "high", "medium", "low"].map((priority) => (<button@@ -347,7 +353,7 @@ export default function BoardToolbar({{getPriorityIcon(priority)}</span><span className="truncate capitalize">- {priority}+ {getPriorityDisplayName(priority)}</span></button>))}@@ -357,7 +363,7 @@ export default function BoardToolbar({<DropdownMenuSub><DropdownMenuSubTrigger className="h-8 rounded-md text-sm">- Assignee+ {t("tasks:boardFilters.subjects.assignee")}</DropdownMenuSubTrigger><DropdownMenuSubContent className="w-64"><div className="grid grid-cols-1 gap-1 p-1">@@ -371,7 +377,7 @@ export default function BoardToolbar({type="button"><CheckSlot checked={selectedAssigneeIds.length === 0} />- All assignees+ {t("tasks:boardFilters.allAssignees")}</button>{users?.members?.map((member) => (<button@@ -409,7 +415,7 @@ export default function BoardToolbar({<DropdownMenuSub><DropdownMenuSubTrigger className="h-8 rounded-md text-sm">- Due date+ {t("tasks:boardFilters.subjects.dueDate")}</DropdownMenuSubTrigger><DropdownMenuSubContent className="w-56"><div className="grid grid-cols-1 gap-1 p-1">@@ -425,34 +431,44 @@ export default function BoardToolbar({<CheckSlotchecked={selectedDueDateFilters.length === 0}/>- All due dates+ {t("tasks:boardFilters.allDueDates")}</button>- {["Due this week", "Due next week", "No due date"].map(- (dueDate) => (- <button- key={dueDate}- className={`inline-flex h-7 items-center gap-1.5 rounded-md px-2 text-left text-xs ${- selectedDueDateFilters.includes(dueDate)- ? "bg-accent text-accent-foreground"- : "text-foreground/90 hover:bg-accent/60 hover:text-foreground"- }`}- onClick={() => toggleDueDateFilter(dueDate)}- type="button"- >- <CheckSlot- checked={selectedDueDateFilters.includes(dueDate)}- />- {dueDate}- </button>- ),- )}+ {[+ DUE_DATE_FILTER_VALUES.dueThisWeek,+ DUE_DATE_FILTER_VALUES.dueNextWeek,+ DUE_DATE_FILTER_VALUES.noDueDate,+ ].map((dueDate) => (+ <button+ key={dueDate}+ className={`inline-flex h-7 items-center gap-1.5 rounded-md px-2 text-left text-xs ${+ selectedDueDateFilters.includes(dueDate)+ ? "bg-accent text-accent-foreground"+ : "text-foreground/90 hover:bg-accent/60 hover:text-foreground"+ }`}+ onClick={() => toggleDueDateFilter(dueDate)}+ type="button"+ >+ <CheckSlot+ checked={selectedDueDateFilters.includes(dueDate)}+ />+ {t(+ `tasks:backlog.filters.${+ dueDate === DUE_DATE_FILTER_VALUES.dueThisWeek+ ? "dueThisWeek"+ : dueDate === DUE_DATE_FILTER_VALUES.dueNextWeek+ ? "dueNextWeek"+ : "noDueDate"+ }`,+ )}+ </button>+ ))}</div></DropdownMenuSubContent></DropdownMenuSub><DropdownMenuSub><DropdownMenuSubTrigger className="h-8 rounded-md text-sm">- Labels+ {t("tasks:properties.labels")}</DropdownMenuSubTrigger><DropdownMenuSubContent className="w-64"><DropdownMenuItem@@ -462,7 +478,7 @@ export default function BoardToolbar({<CheckSlotchecked={!filters.labels || filters.labels.length === 0}/>- All labels+ {t("tasks:boardFilters.allLabels")}</DropdownMenuItem><DropdownMenuSeparator />{uniqueLabels.length > 0 ? (@@ -489,7 +505,7 @@ export default function BoardToolbar({disabledclassName="h-8 rounded-md text-sm text-muted-foreground">- No labels available+ {t("tasks:labels.empty")}</DropdownMenuItem>)}</DropdownMenuSubContent>@@ -502,7 +518,7 @@ export default function BoardToolbar({onClick={clearFilters}className="h-8 rounded-md text-sm text-muted-foreground">- Clear all filters+ {t("common:actions.clearAllFilters")}</DropdownMenuItem></>)}@@ -513,8 +529,8 @@ export default function BoardToolbar({{selectedStatusIds.length > 0 && (<ActiveFilterChip- subject="Status"- operator="is any of"+ subject={t("tasks:boardFilters.subjects.status")}+ operator={t("tasks:boardFilters.operators.isAnyOf")}value={<span className="inline-flex items-center gap-1.5"><StackedIcons@@ -527,7 +543,9 @@ export default function BoardToolbar({<span>{selectedStatusIds.length === 1? getStatusDisplayName(selectedStatusIds[0])- : `${selectedStatusIds.length} selected`}+ : t("tasks:boardFilters.selectedCount", {+ count: selectedStatusIds.length,+ })}</span></span>}@@ -537,8 +555,8 @@ export default function BoardToolbar({{selectedPriorityIds.length > 0 && (<ActiveFilterChip- subject="Priority"- operator="is any of"+ subject={t("tasks:boardFilters.subjects.priority")}+ operator={t("tasks:boardFilters.operators.isAnyOf")}value={<span className="inline-flex items-center gap-1.5"><StackedIcons@@ -550,7 +568,9 @@ export default function BoardToolbar({<span>{selectedPriorityIds.length === 1? getPriorityDisplayName(selectedPriorityIds[0])- : `${selectedPriorityIds.length} selected`}+ : t("tasks:boardFilters.selectedCount", {+ count: selectedPriorityIds.length,+ })}</span></span>}@@ -560,8 +580,8 @@ export default function BoardToolbar({{selectedAssigneeIds.length > 0 && (<ActiveFilterChip- subject="Assignee"- operator="is any of"+ subject={t("tasks:boardFilters.subjects.assignee")}+ operator={t("tasks:boardFilters.operators.isAnyOf")}value={<span className="inline-flex items-center gap-1.5"><StackedIcons@@ -573,7 +593,9 @@ export default function BoardToolbar({<span>{selectedAssigneeIds.length === 1? getAssigneeDisplayName(selectedAssigneeIds[0])- : `${selectedAssigneeIds.length} selected`}+ : t("tasks:boardFilters.selectedCount", {+ count: selectedAssigneeIds.length,+ })}</span></span>}@@ -583,12 +605,24 @@ export default function BoardToolbar({{selectedDueDateFilters.length > 0 && (<ActiveFilterChip- subject="Due date"- operator="is any of"+ subject={t("tasks:boardFilters.subjects.dueDate")}+ operator={t("tasks:boardFilters.operators.isAnyOf")}value={selectedDueDateFilters.length === 1- ? selectedDueDateFilters[0]- : `${selectedDueDateFilters.length} selected`+ ? t(+ `tasks:backlog.filters.${+ selectedDueDateFilters[0] ===+ DUE_DATE_FILTER_VALUES.dueThisWeek+ ? "dueThisWeek"+ : selectedDueDateFilters[0] ===+ DUE_DATE_FILTER_VALUES.dueNextWeek+ ? "dueNextWeek"+ : "noDueDate"+ }`,+ )+ : t("tasks:boardFilters.selectedCount", {+ count: selectedDueDateFilters.length,+ })}onClear={() => updateFilter("dueDate", null)}/>@@ -596,9 +630,11 @@ export default function BoardToolbar({{filters.labels && filters.labels.length > 0 && (<ActiveFilterChip- subject="Labels"- operator="include any of"- value={`${filters.labels.length} selected`}+ subject={t("tasks:boardFilters.subjects.labels")}+ operator={t("tasks:boardFilters.operators.includeAnyOf")}+ value={t("tasks:boardFilters.selectedCount", {+ count: filters.labels.length,+ })}onClear={clearLabelFilters}/>)}diff --git a/apps/web/src/components/bulk-selection/backlog-bulk-toolbar.tsx b/apps/web/src/components/bulk-selection/backlog-bulk-toolbar.tsxindex c85355340..13e4dd29f 100644--- a/apps/web/src/components/bulk-selection/backlog-bulk-toolbar.tsx+++ b/apps/web/src/components/bulk-selection/backlog-bulk-toolbar.tsx@@ -15,6 +15,7 @@ import {useMemo,useState,} from "react";+import { useTranslation } from "react-i18next";import { Avatar, AvatarFallback, AvatarImage } from "@/components/ui/avatar";import { Calendar } from "@/components/ui/calendar";import {@@ -48,6 +49,7 @@ import useGetLabelsByWorkspace from "@/hooks/queries/label/use-get-labels-by-worimport useActiveWorkspace from "@/hooks/queries/workspace/use-active-workspace";import { useGetActiveWorkspaceUsers } from "@/hooks/queries/workspace-users/use-get-active-workspace-users";import { getColumnIcon } from "@/lib/column";+import { getPriorityLabel } from "@/lib/i18n/domain";import { getPriorityIcon } from "@/lib/priority";import { toast } from "@/lib/toast";import useBacklogBulkSelectionStore from "@/store/backlog-bulk-selection";@@ -68,17 +70,21 @@ type BacklogActionGroup = {items: BacklogActionItem[];};-const priorityOptions = [- { value: "urgent", label: "Urgent" },- { value: "high", label: "High" },- { value: "medium", label: "Medium" },- { value: "low", label: "Low" },- { value: "no-priority", label: "No Priority" },-];-function BacklogBulkToolbar() {+ const { t } = useTranslation();const { selectedTaskIds, clearSelection, selectAll } =useBacklogBulkSelectionStore();++ const priorityOptions = useMemo(+ () => [+ { value: "urgent", label: getPriorityLabel("urgent") },+ { value: "high", label: getPriorityLabel("high") },+ { value: "medium", label: getPriorityLabel("medium") },+ { value: "low", label: getPriorityLabel("low") },+ { value: "no-priority", label: getPriorityLabel("no-priority") },+ ],+ [],+ );const { project } = useProjectStore();const {bulkMoveToBoard,@@ -144,55 +150,55 @@ function BacklogBulkToolbar() {taskIds: Array.from(selectedTaskIds),status,});- toast.success(`${selectedCount} tasks moved to board`);+ toast.success(+ t("tasks:bulk.moveToBoardSuccess", { count: selectedCount }),+ );clearSelection();} catch (_error) {- toast.error("Failed to move tasks to board");+ toast.error(t("tasks:bulk.moveToBoardError"));}},- [bulkMoveToBoard, selectedTaskIds, selectedCount, clearSelection],+ [bulkMoveToBoard, selectedTaskIds, selectedCount, clearSelection, t],);const handleBulkDelete = useCallback(async () => {- if (- !confirm(`Delete ${selectedCount} tasks? This action cannot be undone.`)- ) {+ if (!confirm(t("tasks:bulk.deleteConfirm", { count: selectedCount }))) {return;}try {await bulkDelete(Array.from(selectedTaskIds));- toast.success(`${selectedCount} tasks deleted`);+ toast.success(t("tasks:bulk.deleteSuccess", { count: selectedCount }));clearSelection();setIsActionsOpen(false);} catch (_error) {- toast.error("Failed to delete tasks");+ toast.error(t("tasks:bulk.deleteError"));}- }, [bulkDelete, selectedTaskIds, selectedCount, clearSelection]);+ }, [bulkDelete, selectedTaskIds, selectedCount, clearSelection, t]);const handleBulkArchive = useCallback(async () => {try {await bulkArchive(Array.from(selectedTaskIds));- toast.success(`${selectedCount} tasks archived`);+ toast.success(t("tasks:bulk.archiveSuccess", { count: selectedCount }));clearSelection();setIsActionsOpen(false);} catch (_error) {- toast.error("Failed to archive tasks");+ toast.error(t("tasks:bulk.archiveError"));}- }, [bulkArchive, selectedTaskIds, selectedCount, clearSelection]);+ }, [bulkArchive, selectedTaskIds, selectedCount, clearSelection, t]);const handleBulkAssign = useCallback(async (userId: string) => {try {await bulkAssign({ taskIds: Array.from(selectedTaskIds), userId });- toast.success(`${selectedCount} tasks assigned`);+ toast.success(t("tasks:bulk.assignSuccess", { count: selectedCount }));clearSelection();setIsActionsOpen(false);} catch (_error) {- toast.error("Failed to assign tasks");+ toast.error(t("tasks:bulk.assignError"));}},- [bulkAssign, selectedTaskIds, selectedCount, clearSelection],+ [bulkAssign, selectedTaskIds, selectedCount, clearSelection, t],);const handleBulkPriority = useCallback(@@ -202,14 +208,14 @@ function BacklogBulkToolbar() {taskIds: Array.from(selectedTaskIds),priority,});- toast.success(`${selectedCount} tasks updated`);+ toast.success(t("tasks:bulk.updateSuccess", { count: selectedCount }));clearSelection();setIsActionsOpen(false);} catch (_error) {- toast.error("Failed to update priority");+ toast.error(t("tasks:bulk.updatePriorityError"));}},- [bulkPriority, selectedTaskIds, selectedCount, clearSelection],+ [bulkPriority, selectedTaskIds, selectedCount, clearSelection, t],);const handleBulkAddLabel = useCallback(@@ -219,14 +225,16 @@ function BacklogBulkToolbar() {taskIds: Array.from(selectedTaskIds),labelId,});- toast.success(`Label added to ${selectedCount} tasks`);+ toast.success(+ t("tasks:bulk.addLabelSuccess", { count: selectedCount }),+ );clearSelection();setIsActionsOpen(false);} catch (_error) {- toast.error("Failed to add label");+ toast.error(t("tasks:bulk.addLabelError"));}},- [bulkAddLabel, selectedTaskIds, selectedCount, clearSelection],+ [bulkAddLabel, selectedTaskIds, selectedCount, clearSelection, t],);const handleBulkDueDate = useCallback(@@ -236,25 +244,25 @@ function BacklogBulkToolbar() {taskIds: Array.from(selectedTaskIds),dueDate: date?.toISOString() ?? null,});- toast.success(`${selectedCount} tasks updated`);+ toast.success(t("tasks:bulk.updateSuccess", { count: selectedCount }));clearSelection();setIsDatePickerOpen(false);} catch (_error) {- toast.error("Failed to update due date");+ toast.error(t("tasks:bulk.updateDueDateError"));}},- [bulkDueDate, selectedTaskIds, selectedCount, clearSelection],+ [bulkDueDate, selectedTaskIds, selectedCount, clearSelection, t],);const groupedItems = useMemo<BacklogActionGroup[]>(() => [{value: "actions",- label: "Actions",+ label: t("tasks:bulk.actions"),items: [{value: "bulk-delete",- label: "Delete tasks",+ label: t("tasks:bulk.delete"),icon: <Trash2 className="h-4 w-4 text-muted-foreground" />,onRun: () => {void handleBulkDelete();@@ -262,7 +270,7 @@ function BacklogBulkToolbar() {},{value: "bulk-archive",- label: "Archive tasks",+ label: t("tasks:bulk.archive"),icon: <Archive className="h-4 w-4 text-muted-foreground" />,onRun: () => {void handleBulkArchive();@@ -272,10 +280,10 @@ function BacklogBulkToolbar() {},{value: "assign",- label: "Assign to",+ label: t("tasks:bulk.assignTo"),items: (workspaceUsers?.members ?? []).map((member) => ({value: `assign-${member.userId}`,- label: member.user?.name || "Unknown User",+ label: member.user?.name || t("common:people.someone"),icon: (<Avatar className="h-5 w-5"><AvatarImage@@ -294,7 +302,7 @@ function BacklogBulkToolbar() {},{value: "priority",- label: "Set Priority",+ label: t("tasks:bulk.setPriority"),items: priorityOptions.map((opt) => ({value: `priority-${opt.value}`,label: opt.label,@@ -306,7 +314,7 @@ function BacklogBulkToolbar() {},{value: "label",- label: "Add Label",+ label: t("tasks:bulk.addLabel"),items: uniqueLabels.map((label) => ({value: `label-${label.id}`,label: label.name,@@ -334,6 +342,8 @@ function BacklogBulkToolbar() {handleBulkAssign,handleBulkPriority,handleBulkAddLabel,+ priorityOptions,+ t,],);@@ -344,7 +354,7 @@ function BacklogBulkToolbar() {<Toolbar className="items-center gap-1 rounded-xl border-border/80 bg-background px-1.5 py-1 shadow-lg/8"><ToolbarGroup className="px-1.5"><span className="text-sm font-medium text-foreground">- {selectedCount} selected+ {t("tasks:bulk.selectedCount", { count: selectedCount })}</span></ToolbarGroup>@@ -355,7 +365,7 @@ function BacklogBulkToolbar() {<DropdownMenuTrigger asChild><Button size="sm" variant="ghost" className="gap-1.5"><ArrowUpToLine className="size-4" />- Move to Board+ {t("tasks:bulk.moveToBoard")}<ChevronDown className="size-3 opacity-60" /></Button></DropdownMenuTrigger>@@ -380,7 +390,7 @@ function BacklogBulkToolbar() {<PopoverTrigger asChild><Button size="sm" variant="ghost"><CalendarIcon className="size-4" />- Set Due Date+ {t("tasks:bulk.setDueDate")}</Button></PopoverTrigger><PopoverContent className="p-0" align="center">@@ -397,7 +407,7 @@ function BacklogBulkToolbar() {onClick={() => handleBulkDueDate(undefined)}><X className="h-4 w-4" />- Clear date+ {t("tasks:dueDate.clear")}</Button></div></PopoverContent>@@ -413,7 +423,7 @@ function BacklogBulkToolbar() {onClick={() => setIsActionsOpen(true)}><Menu className="size-4" />- Actions+ {t("tasks:bulk.actions")}</Button></ToolbarGroup>@@ -429,9 +439,9 @@ function BacklogBulkToolbar() {<CommandDialog open={isActionsOpen} onOpenChange={setIsActionsOpen}><CommandDialogPopup><Command items={groupedItems}>- <CommandInput placeholder="Search actions..." />+ <CommandInput placeholder={t("tasks:bulk.searchActions")} /><CommandPanel>- <CommandEmpty>No actions found.</CommandEmpty>+ <CommandEmpty>{t("tasks:bulk.noActionsFound")}</CommandEmpty><CommandList>{(group: BacklogActionGroup, groupIndex: number) => (<Fragment key={group.value}>diff --git a/apps/web/src/components/bulk-selection/bulk-toolbar.tsx b/apps/web/src/components/bulk-selection/bulk-toolbar.tsxindex bd0547808..ffde1a2f3 100644--- a/apps/web/src/components/bulk-selection/bulk-toolbar.tsx+++ b/apps/web/src/components/bulk-selection/bulk-toolbar.tsx@@ -14,6 +14,7 @@ import {useMemo,useState,} from "react";+import { useTranslation } from "react-i18next";import { Avatar, AvatarFallback, AvatarImage } from "@/components/ui/avatar";import { Calendar } from "@/components/ui/calendar";import {@@ -41,6 +42,7 @@ import useGetLabelsByWorkspace from "@/hooks/queries/label/use-get-labels-by-worimport useActiveWorkspace from "@/hooks/queries/workspace/use-active-workspace";import { useGetActiveWorkspaceUsers } from "@/hooks/queries/workspace-users/use-get-active-workspace-users";import { getColumnIcon } from "@/lib/column";+import { getPriorityLabel } from "@/lib/i18n/domain";import { getPriorityIcon } from "@/lib/priority";import { toast } from "@/lib/toast";import useBulkSelectionStore from "@/store/bulk-selection";@@ -61,17 +63,21 @@ type BulkActionGroup = {items: BulkActionItem[];};-const priorityOptions = [- { value: "urgent", label: "Urgent" },- { value: "high", label: "High" },- { value: "medium", label: "Medium" },- { value: "low", label: "Low" },- { value: "no-priority", label: "No Priority" },-];-function BulkToolbar() {+ const { t } = useTranslation();const { selectedTaskIds, clearSelection, selectAll } =useBulkSelectionStore();++ const priorityOptions = useMemo(+ () => [+ { value: "urgent", label: getPriorityLabel("urgent") },+ { value: "high", label: getPriorityLabel("high") },+ { value: "medium", label: getPriorityLabel("medium") },+ { value: "low", label: getPriorityLabel("low") },+ { value: "no-priority", label: getPriorityLabel("no-priority") },+ ],+ [],+ );const { project } = useProjectStore();const {bulkMoveToBacklog,@@ -134,40 +140,40 @@ function BulkToolbar() {const handleMoveToBacklog = useCallback(async () => {try {await bulkMoveToBacklog(Array.from(selectedTaskIds));- toast.success(`${selectedCount} tasks moved to backlog`);+ toast.success(+ t("tasks:bulk.moveToBacklogSuccess", { count: selectedCount }),+ );clearSelection();} catch (_error) {- toast.error("Failed to move tasks to backlog");+ toast.error(t("tasks:bulk.moveToBacklogError"));}- }, [bulkMoveToBacklog, selectedTaskIds, selectedCount, clearSelection]);+ }, [bulkMoveToBacklog, selectedTaskIds, selectedCount, clearSelection, t]);const handleBulkDelete = useCallback(async () => {- if (- !confirm(`Delete ${selectedCount} tasks? This action cannot be undone.`)- ) {+ if (!confirm(t("tasks:bulk.deleteConfirm", { count: selectedCount }))) {return;}try {await bulkDelete(Array.from(selectedTaskIds));- toast.success(`${selectedCount} tasks deleted`);+ toast.success(t("tasks:bulk.deleteSuccess", { count: selectedCount }));clearSelection();setIsActionsOpen(false);} catch (_error) {- toast.error("Failed to delete tasks");+ toast.error(t("tasks:bulk.deleteError"));}- }, [bulkDelete, selectedTaskIds, selectedCount, clearSelection]);+ }, [bulkDelete, selectedTaskIds, selectedCount, clearSelection, t]);const handleBulkArchive = useCallback(async () => {try {await bulkArchive(Array.from(selectedTaskIds));- toast.success(`${selectedCount} tasks archived`);+ toast.success(t("tasks:bulk.archiveSuccess", { count: selectedCount }));clearSelection();setIsActionsOpen(false);} catch (_error) {- toast.error("Failed to archive tasks");+ toast.error(t("tasks:bulk.archiveError"));}- }, [bulkArchive, selectedTaskIds, selectedCount, clearSelection]);+ }, [bulkArchive, selectedTaskIds, selectedCount, clearSelection, t]);const handleBulkChangeStatus = useCallback(async (status: string) => {@@ -176,28 +182,28 @@ function BulkToolbar() {taskIds: Array.from(selectedTaskIds),status,});- toast.success(`${selectedCount} tasks updated`);+ toast.success(t("tasks:bulk.updateSuccess", { count: selectedCount }));clearSelection();setIsActionsOpen(false);} catch (_error) {- toast.error("Failed to update tasks");+ toast.error(t("tasks:bulk.updateError"));}},- [bulkChangeStatus, selectedTaskIds, selectedCount, clearSelection],+ [bulkChangeStatus, selectedTaskIds, selectedCount, clearSelection, t],);const handleBulkAssign = useCallback(async (userId: string) => {try {await bulkAssign({ taskIds: Array.from(selectedTaskIds), userId });- toast.success(`${selectedCount} tasks assigned`);+ toast.success(t("tasks:bulk.assignSuccess", { count: selectedCount }));clearSelection();setIsActionsOpen(false);} catch (_error) {- toast.error("Failed to assign tasks");+ toast.error(t("tasks:bulk.assignError"));}},- [bulkAssign, selectedTaskIds, selectedCount, clearSelection],+ [bulkAssign, selectedTaskIds, selectedCount, clearSelection, t],);const handleBulkPriority = useCallback(@@ -207,14 +213,14 @@ function BulkToolbar() {taskIds: Array.from(selectedTaskIds),priority,});- toast.success(`${selectedCount} tasks updated`);+ toast.success(t("tasks:bulk.updateSuccess", { count: selectedCount }));clearSelection();setIsActionsOpen(false);} catch (_error) {- toast.error("Failed to update priority");+ toast.error(t("tasks:bulk.updatePriorityError"));}},- [bulkPriority, selectedTaskIds, selectedCount, clearSelection],+ [bulkPriority, selectedTaskIds, selectedCount, clearSelection, t],);const handleBulkAddLabel = useCallback(@@ -224,14 +230,16 @@ function BulkToolbar() {taskIds: Array.from(selectedTaskIds),labelId,});- toast.success(`Label added to ${selectedCount} tasks`);+ toast.success(+ t("tasks:bulk.addLabelSuccess", { count: selectedCount }),+ );clearSelection();setIsActionsOpen(false);} catch (_error) {- toast.error("Failed to add label");+ toast.error(t("tasks:bulk.addLabelError"));}},- [bulkAddLabel, selectedTaskIds, selectedCount, clearSelection],+ [bulkAddLabel, selectedTaskIds, selectedCount, clearSelection, t],);const handleBulkDueDate = useCallback(@@ -241,25 +249,25 @@ function BulkToolbar() {taskIds: Array.from(selectedTaskIds),dueDate: date?.toISOString() ?? null,});- toast.success(`${selectedCount} tasks updated`);+ toast.success(t("tasks:bulk.updateSuccess", { count: selectedCount }));clearSelection();setIsDatePickerOpen(false);} catch (_error) {- toast.error("Failed to update due date");+ toast.error(t("tasks:bulk.updateDueDateError"));}},- [bulkDueDate, selectedTaskIds, selectedCount, clearSelection],+ [bulkDueDate, selectedTaskIds, selectedCount, clearSelection, t],);const groupedItems = useMemo<BulkActionGroup[]>(() => [{value: "actions",- label: "Actions",+ label: t("tasks:bulk.actions"),items: [{value: "bulk-delete",- label: "Delete tasks",+ label: t("tasks:bulk.delete"),icon: <Trash2 className="h-4 w-4 text-muted-foreground" />,onRun: () => {void handleBulkDelete();@@ -267,7 +275,7 @@ function BulkToolbar() {},{value: "bulk-archive",- label: "Archive tasks",+ label: t("tasks:bulk.archive"),icon: <Archive className="h-4 w-4 text-muted-foreground" />,onRun: () => {void handleBulkArchive();@@ -277,7 +285,7 @@ function BulkToolbar() {},{value: "status",- label: "Change Status",+ label: t("tasks:bulk.changeStatus"),items: (project?.columns ?? []).map((col) => ({value: `status-${col.id}`,label: col.name,@@ -289,10 +297,10 @@ function BulkToolbar() {},{value: "assign",- label: "Assign to",+ label: t("tasks:bulk.assignTo"),items: (workspaceUsers?.members ?? []).map((member) => ({value: `assign-${member.userId}`,- label: member.user?.name || "Unknown User",+ label: member.user?.name || t("common:people.someone"),icon: (<Avatar className="h-5 w-5"><AvatarImage@@ -311,7 +319,7 @@ function BulkToolbar() {},{value: "priority",- label: "Set Priority",+ label: t("tasks:bulk.setPriority"),items: priorityOptions.map((opt) => ({value: `priority-${opt.value}`,label: opt.label,@@ -323,7 +331,7 @@ function BulkToolbar() {},{value: "label",- label: "Add Label",+ label: t("tasks:bulk.addLabel"),items: uniqueLabels.map((label) => ({value: `label-${label.id}`,label: label.name,@@ -353,6 +361,8 @@ function BulkToolbar() {handleBulkAssign,handleBulkPriority,handleBulkAddLabel,+ priorityOptions,+ t,],);@@ -363,7 +373,7 @@ function BulkToolbar() {<Toolbar className="items-center gap-1 rounded-xl border-border/80 bg-background px-1.5 py-1 shadow-lg/8"><ToolbarGroup className="px-1.5"><span className="text-sm font-medium text-foreground">- {selectedCount} selected+ {t("tasks:bulk.selectedCount", { count: selectedCount })}</span></ToolbarGroup>@@ -372,7 +382,7 @@ function BulkToolbar() {<ToolbarGroup><Button size="sm" variant="ghost" onClick={handleMoveToBacklog}><ArrowDownToLine className="size-4" />- Move to Backlog+ {t("tasks:bulk.moveToBacklog")}</Button></ToolbarGroup>@@ -383,7 +393,7 @@ function BulkToolbar() {<PopoverTrigger asChild><Button size="sm" variant="ghost"><CalendarIcon className="size-4" />- Set Due Date+ {t("tasks:bulk.setDueDate")}</Button></PopoverTrigger><PopoverContent className="p-0" align="center">@@ -400,7 +410,7 @@ function BulkToolbar() {onClick={() => handleBulkDueDate(undefined)}><X className="h-4 w-4" />- Clear date+ {t("tasks:dueDate.clear")}</Button></div></PopoverContent>@@ -416,7 +426,7 @@ function BulkToolbar() {onClick={() => setIsActionsOpen(true)}><Menu className="size-4" />- Actions+ {t("tasks:bulk.actions")}</Button></ToolbarGroup>@@ -432,9 +442,9 @@ function BulkToolbar() {<CommandDialog open={isActionsOpen} onOpenChange={setIsActionsOpen}><CommandDialogPopup><Command items={groupedItems}>- <CommandInput placeholder="Search actions..." />+ <CommandInput placeholder={t("tasks:bulk.searchActions")} /><CommandPanel>- <CommandEmpty>No actions found.</CommandEmpty>+ <CommandEmpty>{t("tasks:bulk.noActionsFound")}</CommandEmpty><CommandList>{(group: BulkActionGroup, groupIndex: number) => (<Fragment key={group.value}>diff --git a/apps/web/src/components/command-palette/index.tsx b/apps/web/src/components/command-palette/index.tsxindex 258f21346..135d4bca5 100644--- a/apps/web/src/components/command-palette/index.tsx+++ b/apps/web/src/components/command-palette/index.tsx@@ -1,6 +1,7 @@import { useLocation, useNavigate } from "@tanstack/react-router";import { ArrowDownIcon, ArrowUpIcon, CornerDownLeftIcon } from "lucide-react";import { Fragment, useCallback, useEffect, useMemo, useState } from "react";+import { useTranslation } from "react-i18next";import SearchCommandMenu from "@/components/search-command-menu";import CreateTaskModal from "@/components/shared/modals/create-task-modal";import CreateWorkspaceModal from "@/components/shared/modals/create-workspace-modal";@@ -41,6 +42,7 @@ type PaletteGroup = {};function CommandPalette() {+ const { t } = useTranslation();const { setTheme } = useUserPreferencesStore();const navigate = useNavigate();const location = useLocation();@@ -97,11 +99,11 @@ function CommandPalette() {() => [{value: "suggestions",- label: "Suggestions",+ label: t("navigation:commandPalette.suggestions"),items: [{value: "projects",- label: "Projects",+ label: t("navigation:commandPalette.projects"),shortcut: `${shortcuts.project.prefix} ${shortcuts.project.list}`,onRun: () => {if (!workspace?.id) return;@@ -113,13 +115,13 @@ function CommandPalette() {},{value: "search",- label: "Search",+ label: t("navigation:commandPalette.search"),shortcut: shortcuts.search.prefix,onRun: () => setIsSearchOpen(true),},{value: "members",- label: "Members",+ label: t("navigation:commandPalette.members"),onRun: () => {if (!workspace?.id) return;navigate({@@ -130,13 +132,13 @@ function CommandPalette() {},{value: "create-task",- label: "Create task",+ label: t("navigation:commandPalette.createTask"),shortcut: `${shortcuts.task.prefix} ${shortcuts.task.create}`,onRun: () => setIsCreateTaskOpen(true),},{value: "create-project",- label: "Create project",+ label: t("navigation:commandPalette.createProject"),shortcut: `${shortcuts.project.prefix} ${shortcuts.project.create}`,onRun: () => setIsCreateProjectOpen(true),},@@ -144,32 +146,32 @@ function CommandPalette() {},{value: "commands",- label: "Commands",+ label: t("navigation:commandPalette.commands"),items: [{value: "create-workspace",- label: "Create workspace",+ label: t("navigation:commandPalette.createWorkspace"),shortcut: `${shortcuts.workspace.prefix} ${shortcuts.workspace.create}`,onRun: () => setIsCreateWorkspaceOpen(true),},{value: "theme-light",- label: "Light theme",+ label: t("navigation:commandPalette.lightTheme"),onRun: () => setTheme("light"),},{value: "theme-dark",- label: "Dark theme",+ label: t("navigation:commandPalette.darkTheme"),onRun: () => setTheme("dark"),},{value: "theme-system",- label: "System theme",+ label: t("navigation:commandPalette.systemTheme"),onRun: () => setTheme("system"),},{value: "keyboard-shortcuts",- label: "Keyboard shortcuts",+ label: t("navigation:commandPalette.keyboardShortcuts"),shortcut: "?",onRun: () => {setTimeout(() => {@@ -182,7 +184,7 @@ function CommandPalette() {],},],- [navigate, setTheme, workspace?.id],+ [navigate, setTheme, t, workspace?.id],);const shortcutHandlers = useMemo(() => {@@ -246,9 +248,13 @@ function CommandPalette() {<CommandDialog open={open} onOpenChange={setOpen}><CommandDialogPopup><Command items={groupedItems}>- <CommandInput placeholder="Search for apps and commands..." />+ <CommandInput+ placeholder={t("navigation:commandPalette.inputPlaceholder")}+ /><CommandPanel>- <CommandEmpty>No results found.</CommandEmpty>+ <CommandEmpty>+ {t("navigation:commandPalette.empty")}+ </CommandEmpty><CommandList>{(group: PaletteGroup, groupIndex: number) => (<Fragment key={group.value}>@@ -292,18 +298,18 @@ function CommandPalette() {<ArrowDownIcon /></Kbd></KbdGroup>- <span>Navigate</span>+ <span>{t("navigation:commandPalette.footer.navigate")}</span></div><div className="flex items-center gap-2"><Kbd><CornerDownLeftIcon /></Kbd>- <span>Open</span>+ <span>{t("navigation:commandPalette.footer.open")}</span></div></div><div className="flex items-center gap-2"><Kbd>Esc</Kbd>- <span>Close</span>+ <span>{t("navigation:commandPalette.footer.close")}</span></div></CommandFooter></Command>diff --git a/apps/web/src/components/common/header/project-crumb-select.tsx b/apps/web/src/components/common/header/project-crumb-select.tsxindex 383a9788b..511efa2f8 100644--- a/apps/web/src/components/common/header/project-crumb-select.tsx+++ b/apps/web/src/components/common/header/project-crumb-select.tsx@@ -1,4 +1,5 @@import { ChevronsUpDown, Plus } from "lucide-react";+import { useTranslation } from "react-i18next";import { Button } from "@/components/ui/button";import {DropdownMenu,@@ -26,6 +27,7 @@ export default function ProjectCrumbSelect({onSelectProject,onAddProject,}: ProjectCrumbSelectProps) {+ const { t } = useTranslation();const { data: projects = [] } = useGetProjects({ workspaceId });return (@@ -40,14 +42,14 @@ export default function ProjectCrumbSelect({}><span className="truncate text-left">- {projectName || "Select project"}+ {projectName || t("settings:projectSwitcher.selectProject")}</span><ChevronsUpDown className="size-3 text-foreground/70" /></DropdownMenuTrigger><DropdownMenuContent className="w-72" align="start"><DropdownMenuGroup><DropdownMenuLabel className="text-[11px] uppercase tracking-wide">- Projects+ {t("navigation:sidebar.projects")}</DropdownMenuLabel></DropdownMenuGroup><DropdownMenuSeparator />@@ -70,7 +72,7 @@ export default function ProjectCrumbSelect({disabledclassName="h-8 text-sm text-muted-foreground">- No projects+ {t("settings:projectSwitcher.noProjects")}</DropdownMenuItem>)}</DropdownMenuGroup>@@ -81,7 +83,7 @@ export default function ProjectCrumbSelect({className="h-8 gap-2 text-sm"><Plus className="size-3.5" />- Add project+ {t("navigation:projectList.addProject")}</DropdownMenuItem></DropdownMenuGroup></DropdownMenuContent>diff --git a/apps/web/src/components/common/header/task-crumb-select.tsx b/apps/web/src/components/common/header/task-crumb-select.tsxindex 8c7994186..e034123fe 100644--- a/apps/web/src/components/common/header/task-crumb-select.tsx+++ b/apps/web/src/components/common/header/task-crumb-select.tsx@@ -1,4 +1,5 @@import { ChevronsUpDown } from "lucide-react";+import { useTranslation } from "react-i18next";import { Button } from "@/components/ui/button";import {DropdownMenu,@@ -24,6 +25,7 @@ export default function TaskCrumbSelect({taskLabel,onSelectTask,}: TaskCrumbSelectProps) {+ const { t } = useTranslation();const { data: project } = useGetTasks(projectId);const tasks = [...(project?.columns?.flatMap((column) => column.tasks) ?? []),@@ -42,13 +44,15 @@ export default function TaskCrumbSelect({/>}>- <span className="truncate text-left">{taskLabel || "Select task"}</span>+ <span className="truncate text-left">+ {taskLabel || t("tasks:common.selectTask")}+ </span><ChevronsUpDown className="size-3.5 text-muted-foreground" /></DropdownMenuTrigger><DropdownMenuContent className="w-80" align="start"><DropdownMenuGroup><DropdownMenuLabel className="text-[11px] uppercase tracking-wide">- Tasks+ {t("navigation:search.groups.task")}</DropdownMenuLabel></DropdownMenuGroup><DropdownMenuSeparator />@@ -72,7 +76,7 @@ export default function TaskCrumbSelect({disabledclassName="h-8 text-sm text-muted-foreground">- No tasks+ {t("tasks:listView.noTasks")}</DropdownMenuItem>)}</DropdownMenuGroup>diff --git a/apps/web/src/components/common/header/workspace-crumb-select.tsx b/apps/web/src/components/common/header/workspace-crumb-select.tsxindex 3e3d05a98..6ce87d2b5 100644--- a/apps/web/src/components/common/header/workspace-crumb-select.tsx+++ b/apps/web/src/components/common/header/workspace-crumb-select.tsx@@ -1,8 +1,10 @@import { useNavigate } from "@tanstack/react-router";+import { useTranslation } from "react-i18next";import { Button } from "@/components/ui/button";import useActiveWorkspace from "@/hooks/queries/workspace/use-active-workspace";export default function WorkspaceCrumbSelect() {+ const { t } = useTranslation();const { data: workspace } = useActiveWorkspace();const navigate = useNavigate();@@ -19,7 +21,7 @@ export default function WorkspaceCrumbSelect() {}}><span className="truncate text-left">- {workspace?.name || "Select workspace"}+ {workspace?.name || t("navigation:workspaceSwitcher.selectWorkspace")}</span></Button>);diff --git a/apps/web/src/components/common/sort-control.tsx b/apps/web/src/components/common/sort-control.tsxindex 549572528..390d36ba5 100644--- a/apps/web/src/components/common/sort-control.tsx+++ b/apps/web/src/components/common/sort-control.tsx@@ -1,4 +1,5 @@import { ArrowDownAZ, ArrowUpAZ } from "lucide-react";+import { useTranslation } from "react-i18next";import {DropdownMenu,DropdownMenuContent,@@ -15,15 +16,6 @@ type SortControlProps = {onSortChange: (sort: SortConfig) => void;};-const sortFields: { field: SortField; label: string }[] = [- { field: "position", label: "Manual (position)" },- { field: "createdAt", label: "Created date" },- { field: "priority", label: "Priority" },- { field: "dueDate", label: "Due date" },- { field: "title", label: "Title" },- { field: "number", label: "Task number" },-];-function CheckSlot({ checked }: { checked: boolean }) {return (<span@@ -39,6 +31,15 @@ function CheckSlot({ checked }: { checked: boolean }) {}export default function SortControl({ sort, onSortChange }: SortControlProps) {+ const { t } = useTranslation();+ const sortFields: { field: SortField; label: string }[] = [+ { field: "position", label: t("tasks:sort.fields.position") },+ { field: "createdAt", label: t("tasks:sort.fields.createdAt") },+ { field: "priority", label: t("tasks:sort.fields.priority") },+ { field: "dueDate", label: t("tasks:sort.fields.dueDate") },+ { field: "title", label: t("tasks:sort.fields.title") },+ { field: "number", label: t("tasks:sort.fields.number") },+ ];const isActive = sort.field !== "position";const activeLabel = sortFields.find((f) => f.field === sort.field)?.label;@@ -79,12 +80,12 @@ export default function SortControl({ sort, onSortChange }: SortControlProps) {) : (<ArrowDownAZ className="h-3 w-3" />)}- {isActive ? activeLabel : "Sort"}+ {isActive ? activeLabel : t("tasks:sort.label")}</DropdownMenuTrigger><DropdownMenuContent className="w-48" align="start"><DropdownMenuGroup><DropdownMenuLabel className="text-[11px] uppercase tracking-wide">- Sort By+ {t("tasks:sort.by")}</DropdownMenuLabel></DropdownMenuGroup><DropdownMenuSeparator />@@ -104,7 +105,7 @@ export default function SortControl({ sort, onSortChange }: SortControlProps) {<DropdownMenuSeparator /><DropdownMenuGroup><DropdownMenuLabel className="text-[11px] uppercase tracking-wide">- Direction+ {t("tasks:sort.direction")}</DropdownMenuLabel></DropdownMenuGroup><DropdownMenuItem@@ -112,14 +113,14 @@ export default function SortControl({ sort, onSortChange }: SortControlProps) {className="h-8 rounded-md text-sm"><CheckSlot checked={sort.direction === "asc"} />- Ascending+ {t("tasks:sort.ascending")}</DropdownMenuItem><DropdownMenuItemonClick={() => onSortChange({ ...sort, direction: "desc" })}className="h-8 rounded-md text-sm"><CheckSlot checked={sort.direction === "desc"} />- Descending+ {t("tasks:sort.descending")}</DropdownMenuItem></>)}@@ -131,7 +132,11 @@ export default function SortControl({ sort, onSortChange }: SortControlProps) {type="button"onClick={toggleDirection}className="inline-flex h-7 w-7 items-center justify-center rounded-md border border-border bg-background text-foreground hover:bg-accent/60"- title={sort.direction === "asc" ? "Ascending" : "Descending"}+ title={+ sort.direction === "asc"+ ? t("tasks:sort.ascending")+ : t("tasks:sort.descending")+ }>{sort.direction === "asc" ? (<ArrowUpAZ className="h-3 w-3" />diff --git a/apps/web/src/components/common/task-layout.tsx b/apps/web/src/components/common/task-layout.tsxindex 1416ef011..552035ede 100644--- a/apps/web/src/components/common/task-layout.tsx+++ b/apps/web/src/components/common/task-layout.tsx@@ -1,5 +1,6 @@import { useNavigate } from "@tanstack/react-router";import type { ReactNode } from "react";+import { useTranslation } from "react-i18next";import TaskCrumbSelect from "@/components/common/header/task-crumb-select";import Layout from "@/components/common/layout";import { KbdSequence } from "@/components/ui/kbd";@@ -31,13 +32,14 @@ export default function TaskLayout({children,rightSidebar,}: TaskLayoutProps) {+ const { t } = useTranslation();const navigate = useNavigate();const { data: project } = useGetProject({ id: projectId, workspaceId });const { data: task } = useGetTask(taskId);const taskLabel =project?.slug && task?.number != null? `${project.slug}-${task.number}`- : "Select task";+ : t("tasks:common.selectTask");const handleTaskSwitch = (nextTaskId: string) => {navigate({@@ -84,7 +86,7 @@ export default function TaskLayout({}className="max-w-40 truncate text-left text-xs text-foreground hover:underline">- {project?.name || "Project"}+ {project?.name || t("navigation:sidebar.projects")}</button><span className="text-foreground/70 text-xs">/</span><TaskCrumbSelectdiff --git a/apps/web/src/components/external-links/external-links-accordion.tsx b/apps/web/src/components/external-links/external-links-accordion.tsxindex 64d519743..56d0379fd 100644--- a/apps/web/src/components/external-links/external-links-accordion.tsx+++ b/apps/web/src/components/external-links/external-links-accordion.tsx@@ -6,6 +6,7 @@ import {GitPullRequest,} from "lucide-react";import { useMemo, useState } from "react";+import { useTranslation } from "react-i18next";import { Button } from "@/components/ui/button";import {Collapsible,@@ -23,6 +24,7 @@ export function ExternalLinksAccordion({externalLinks,isLoading,}: ExternalLinksAccordionProps) {+ const { t } = useTranslation();const [isOpen, setIsOpen] = useState(true);const linksWithoutRedundantBranches = useMemo(() => {@@ -48,14 +50,16 @@ export function ExternalLinksAccordion({if (isIssue) {return (- <span className="text-xs font-medium text-muted-foreground">Issue</span>+ <span className="text-xs font-medium text-muted-foreground">+ {t("settings:externalLinks.issue")}+ </span>);}if (isBranch) {return (<span className="text-xs font-medium text-muted-foreground">- Branch+ {t("settings:externalLinks.branch")}</span>);}@@ -66,7 +70,7 @@ export function ExternalLinksAccordion({return (<span className="flex items-center gap-1 font-medium text-info-foreground text-xs"><GitMerge className="size-3" />- Merged+ {t("settings:externalLinks.merged")}</span>);}@@ -75,7 +79,7 @@ export function ExternalLinksAccordion({return (<span className="text-xs font-medium text-muted-foreground flex items-center gap-1"><GitPullRequest className="size-3" />- Draft+ {t("settings:externalLinks.draft")}</span>);}@@ -83,7 +87,7 @@ export function ExternalLinksAccordion({return (<span className="flex items-center gap-1 font-medium text-success-foreground text-xs"><GitPullRequest className="size-3" />- Open+ {t("settings:externalLinks.open")}</span>);};@@ -101,7 +105,9 @@ export function ExternalLinksAccordion({) : (<ChevronRight className="size-4 text-muted-foreground" />)}- <span className="text-sm text-muted-foreground">Resources</span>+ <span className="text-sm text-muted-foreground">+ {t("settings:externalLinks.resources")}+ </span></Button></CollapsibleTrigger><CollapsibleContent>diff --git a/apps/web/src/components/gantt/gantt-task-bar.tsx b/apps/web/src/components/gantt/gantt-task-bar.tsxindex 73925320e..3a43aec02 100644--- a/apps/web/src/components/gantt/gantt-task-bar.tsx+++ b/apps/web/src/components/gantt/gantt-task-bar.tsx@@ -1,5 +1,6 @@import { addDays, differenceInCalendarDays, startOfDay } from "date-fns";import { useCallback, useEffect, useState } from "react";+import { useTranslation } from "react-i18next";import { useUpdateTask } from "@/hooks/mutations/task/use-update-task";import { cn } from "@/lib/cn";import { toast } from "@/lib/toast";@@ -56,6 +57,7 @@ export function GanttTaskBar({isMobile = false,onOpenTask,}: GanttTaskBarProps) {+ const { t } = useTranslation();const { mutateAsync: updateTask } = useUpdateTask();const [dragDisplay, setDragDisplay] = useState<{start: Date;@@ -98,12 +100,12 @@ export function GanttTaskBar({toast.error(error instanceof Error? error.message- : "Failed to update task dates",+ : t("tasks:gantt.updateDatesError"),);return false;}},- [task, updateTask],+ [task, updateTask, t],);const pxPerDay = Math.max(pixelsPerDay, 1e-6);@@ -291,7 +293,7 @@ export function GanttTaskBar({><buttontype="button"- aria-label="Resize start date"+ aria-label={t("tasks:gantt.resizeStart")}onPointerDown={handleResizeLeftPointerDown}className={cn("relative z-20 shrink-0 cursor-ew-resize touch-none border-r border-primary/15 bg-primary/8 hover:bg-primary/18",@@ -301,7 +303,7 @@ export function GanttTaskBar({/><buttontype="button"- aria-label={`${task.title} — open or drag to move`}+ aria-label={t("tasks:gantt.taskAriaLabel", { title: task.title })}className="relative z-10 min-h-[44px] min-w-0 flex-1 cursor-grab touch-manipulation overflow-hidden px-2 text-left active:cursor-grabbing sm:min-h-0 sm:px-2.5"onPointerDown={handleMovePointerDown}onKeyDown={(e) => {@@ -316,7 +318,7 @@ export function GanttTaskBar({</button><buttontype="button"- aria-label="Resize due date"+ aria-label={t("tasks:gantt.resizeDue")}onPointerDown={handleResizeRightPointerDown}className={cn("relative z-20 shrink-0 cursor-ew-resize touch-none border-l border-primary/15 bg-primary/8 hover:bg-primary/18",diff --git a/apps/web/src/components/kanban-board/column/column-footer.tsx b/apps/web/src/components/kanban-board/column/column-footer.tsxindex 9b150f251..f2bc408f0 100644--- a/apps/web/src/components/kanban-board/column/column-footer.tsx+++ b/apps/web/src/components/kanban-board/column/column-footer.tsx@@ -1,5 +1,6 @@import { Plus } from "lucide-react";import { useState } from "react";+import { useTranslation } from "react-i18next";import CreateTaskModal from "@/components/shared/modals/create-task-modal";import type { ProjectWithTasks } from "@/types/project";@@ -8,6 +9,7 @@ type ColumnFooterProps = {};export function ColumnFooter({ column }: ColumnFooterProps) {+ const { t } = useTranslation();const [isTaskModalOpen, setIsTaskModalOpen] = useState(false);return (@@ -24,7 +26,7 @@ export function ColumnFooter({ column }: ColumnFooterProps) {className="w-full text-left px-3 py-2 text-sm text-muted-foreground hover:bg-accent/50 rounded-md flex items-center gap-2 transition-all"><Plus className="w-4 h-4 text-muted-foreground" />- <span>Add task</span>+ <span>{t("tasks:kanban.addTask")}</span></button></div></>diff --git a/apps/web/src/components/kanban-board/column/column-header.tsx b/apps/web/src/components/kanban-board/column/column-header.tsxindex c3f08ed66..25ef0240e 100644--- a/apps/web/src/components/kanban-board/column/column-header.tsx+++ b/apps/web/src/components/kanban-board/column/column-header.tsx@@ -1,6 +1,7 @@import { produce } from "immer";import { Archive } from "lucide-react";import { useState } from "react";+import { useTranslation } from "react-i18next";import { useUpdateTask } from "@/hooks/mutations/task/use-update-task";import { getColumnIcon } from "@/lib/column";import { toast } from "@/lib/toast";@@ -13,6 +14,7 @@ type ColumnHeaderProps = {};export function ColumnHeader({ column }: ColumnHeaderProps) {+ const { t } = useTranslation();const { project, setProject } = useProjectStore();const { mutate: updateTask } = useUpdateTask();@@ -38,7 +40,7 @@ export function ColumnHeader({ column }: ColumnHeaderProps) {});setProject(updatedProject);- toast.success(`Archived ${column.tasks.length} tasks`);+ toast.success(t("tasks:archive.success", { count: column.tasks.length }));setIsArchiveModalOpen(false);};@@ -62,7 +64,7 @@ export function ColumnHeader({ column }: ColumnHeaderProps) {type="button"onClick={() => setIsArchiveModalOpen(true)}className="flex items-center rounded-md px-2 py-1 text-left text-muted-foreground transition-all hover:bg-accent/50"- title="Archive all completed tasks"+ title={t("tasks:listView.archiveAllTooltip")}><Archive className="w-4 h-4 text-muted-foreground" /></button>diff --git a/apps/web/src/components/kanban-board/column/index.tsx b/apps/web/src/components/kanban-board/column/index.tsxindex 0b1a5e67a..f6a772cb8 100644--- a/apps/web/src/components/kanban-board/column/index.tsx+++ b/apps/web/src/components/kanban-board/column/index.tsx@@ -1,5 +1,6 @@import { Plus } from "lucide-react";import { useState } from "react";+import { useTranslation } from "react-i18next";import CreateTaskModal from "@/components/shared/modals/create-task-modal";import useProjectStore from "@/store/project";import type { ProjectWithTasks } from "@/types/project";@@ -11,6 +12,7 @@ type ColumnProps = {};function Column({ column }: ColumnProps) {+ const { t } = useTranslation();const [isTaskModalOpen, setIsTaskModalOpen] = useState(false);const [isDropzoneOver, setIsDropzoneOver] = useState(false);const { project } = useProjectStore();@@ -45,7 +47,7 @@ function Column({ column }: ColumnProps) {className="flex w-full items-center gap-2 rounded-md px-2 py-1 text-left text-sm text-muted-foreground transition-all hover:bg-accent/50 hover:text-foreground"><Plus className="w-4 h-4" />- <span>Add task</span>+ <span>{t("tasks:kanban.addTask")}</span></button></div></div>diff --git a/apps/web/src/components/kanban-board/task-card-context-menu/task-card-context-menu-content.tsx b/apps/web/src/components/kanban-board/task-card-context-menu/task-card-context-menu-content.tsxindex 6370912bc..18079754a 100644--- a/apps/web/src/components/kanban-board/task-card-context-menu/task-card-context-menu-content.tsx+++ b/apps/web/src/components/kanban-board/task-card-context-menu/task-card-context-menu-content.tsx@@ -1,5 +1,6 @@import { X } from "lucide-react";import { useMemo } from "react";+import { useTranslation } from "react-i18next";import { Avatar, AvatarFallback, AvatarImage } from "@/components/ui/avatar";import { Calendar } from "@/components/ui/calendar";import {@@ -22,6 +23,7 @@ import { useGetColumns } from "@/hooks/queries/column/use-get-columns";import { useGetActiveWorkspaceUsers } from "@/hooks/queries/workspace-users/use-get-active-workspace-users";import { getColumnIcon } from "@/lib/column";import { generateLink } from "@/lib/generate-link";+import { getPriorityLabel } from "@/lib/i18n/domain";import { getPriorityIcon } from "@/lib/priority";import { toast } from "@/lib/toast";import useProjectStore from "@/store/project";@@ -43,6 +45,7 @@ export default function TaskCardContextMenuContent({taskCardContext,onDeleteClick,}: TaskCardContextMenuContentProps) {+ const { t } = useTranslation();const { project } = useProjectStore();const { data: columnsData = [] } = useGetColumns(taskCardContext.projectId);const columns =@@ -82,7 +85,7 @@ export default function TaskCardContextMenuContent({const taskLink = generateLink(path);navigator.clipboard.writeText(taskLink);- toast.success("Task link copied!");+ toast.success(t("tasks:contextMenu.copyLinkSuccess"));};const handleChange = async (field: keyof Task, value: string | Date) => {@@ -114,24 +117,24 @@ export default function TaskCardContextMenuContent({}} catch (error) {toast.error(- error instanceof Error ? error.message : "Failed to update task",+ error instanceof Error ? error.message : t("tasks:update.error"),);} finally {- toast.success("Task updated successfully");+ toast.success(t("tasks:update.success"));}};return (<ContextMenuContent className="w-46"><ContextMenuItem onClick={handleCopyTaskLink}>- <span>Copy link</span>+ <span>{t("tasks:contextMenu.copyLink")}</span></ContextMenuItem><ContextMenuSeparator /><ContextMenuSub><ContextMenuSubTrigger className="gap-2">- <span>Priority</span>+ <span>{t("tasks:priority.label")}</span></ContextMenuSubTrigger><ContextMenuSubContent className="w-48"><ContextMenuCheckboxItem@@ -142,7 +145,7 @@ export default function TaskCardContextMenuContent({className="[&_svg]:text-muted-foreground">{getPriorityIcon("no-priority")}- <span>No Priority</span>+ <span>{getPriorityLabel("no-priority")}</span></ContextMenuCheckboxItem>{["low", "medium", "high", "urgent"].map((priority) => (<ContextMenuCheckboxItem@@ -153,7 +156,7 @@ export default function TaskCardContextMenuContent({className="[&_svg]:text-muted-foreground">{getPriorityIcon(priority)}- <span className="capitalize">{priority}</span>+ <span className="capitalize">{getPriorityLabel(priority)}</span></ContextMenuCheckboxItem>))}</ContextMenuSubContent>@@ -161,7 +164,7 @@ export default function TaskCardContextMenuContent({<ContextMenuSub><ContextMenuSubTrigger>- <span>Status</span>+ <span>{t("tasks:status.label")}</span></ContextMenuSubTrigger><ContextMenuSubContent className="w-48">{columns.map((col) => (@@ -181,7 +184,7 @@ export default function TaskCardContextMenuContent({<ContextMenuSub><ContextMenuSubTrigger>- <span>Due date</span>+ <span>{t("tasks:dueDate.label")}</span></ContextMenuSubTrigger><ContextMenuSubContent className="w-fit min-w-0 p-0"><div className="p-2">@@ -194,12 +197,12 @@ export default function TaskCardContextMenuContent({...task,dueDate: date?.toISOString() || null,});- toast.success("Task due date updated successfully");+ toast.success(t("tasks:dueDate.updateSuccess"));} catch (error) {toast.error(error instanceof Error? error.message- : "Failed to update task due date",+ : t("tasks:dueDate.updateError"),);}}}@@ -217,18 +220,18 @@ export default function TaskCardContextMenuContent({...task,dueDate: null,});- toast.success("Task due date cleared");+ toast.success(t("tasks:dueDate.clearSuccess"));} catch (error) {toast.error(error instanceof Error? error.message- : "Failed to clear due date",+ : t("tasks:dueDate.clearError"),);}}}><X className="h-4 w-4" />- <span>Clear date</span>+ <span>{t("tasks:dueDate.clear")}</span></ContextMenuItem></>)}@@ -238,7 +241,7 @@ export default function TaskCardContextMenuContent({{usersOptions && (<ContextMenuSub><ContextMenuSubTrigger>- <span>Assignee</span>+ <span>{t("tasks:assignee.label")}</span></ContextMenuSubTrigger><ContextMenuSubContent className="w-48"><ContextMenuCheckboxItem@@ -248,13 +251,13 @@ export default function TaskCardContextMenuContent({><divclassName="w-6 h-6 rounded-full bg-muted border border-border flex items-center justify-center"- title="Unassigned"+ title={t("tasks:assignee.unassigned")}><span className="text-[10px] font-medium text-muted-foreground">?</span>{" "}</div>- Unassigned+ {t("tasks:assignee.unassigned")}</ContextMenuCheckboxItem>{usersOptions.map((user) => (<ContextMenuCheckboxItem@@ -280,11 +283,11 @@ export default function TaskCardContextMenuContent({<ContextMenuSeparator /><ContextMenuItem onClick={() => handleChange("status", "archived")}>- <span>Archive</span>+ <span>{t("tasks:actions.archive")}</span></ContextMenuItem><ContextMenuItem onClick={() => handleChange("status", "planned")}>- <span>Mark as planned</span>+ <span>{t("tasks:actions.markAsPlanned")}</span></ContextMenuItem><ContextMenuSeparator />@@ -298,7 +301,7 @@ export default function TaskCardContextMenuContent({}, 0);}}>- <span>Delete...</span>+ <span>{t("tasks:actions.delete")}</span></ContextMenuItem></ContextMenuContent>);diff --git a/apps/web/src/components/kanban-board/task-card.tsx b/apps/web/src/components/kanban-board/task-card.tsxindex 6783a0a72..6697a5d53 100644--- a/apps/web/src/components/kanban-board/task-card.tsx+++ b/apps/web/src/components/kanban-board/task-card.tsx@@ -10,6 +10,7 @@ import {GitPullRequest,} from "lucide-react";import { type CSSProperties, useMemo, useState } from "react";+import { useTranslation } from "react-i18next";import {AlertDialog,AlertDialogClose,@@ -47,6 +48,7 @@ type TaskCardProps = {};function TaskCard({ task }: TaskCardProps) {+ const { t } = useTranslation();const {attributes,listeners,@@ -84,7 +86,7 @@ function TaskCard({ task }: TaskCardProps) {if (isMerged) {return {icon: <GitMerge className="h-3 w-3 text-info-foreground" />,- status: "Merged",+ status: t("tasks:pr.merged"),statusClass: "text-info-foreground",};}@@ -92,14 +94,14 @@ function TaskCard({ task }: TaskCardProps) {if (isDraft) {return {icon: <GitPullRequest className="h-3 w-3 text-muted-foreground" />,- status: "Draft",+ status: t("tasks:pr.draft"),statusClass: "text-muted-foreground",};}return {icon: <GitPullRequest className="h-3 w-3 text-success-foreground" />,- status: "Open",+ status: t("tasks:pr.open"),statusClass: "text-success-foreground",};};@@ -163,10 +165,10 @@ function TaskCard({ task }: TaskCardProps) {});} catch (error) {toast.error(- error instanceof Error ? error.message : "Failed to delete task",+ error instanceof Error ? error.message : t("tasks:delete.error"),);} finally {- toast.success("Task deleted successfully");+ toast.success(t("tasks:delete.success"));}};@@ -215,7 +217,7 @@ function TaskCard({ task }: TaskCardProps) {) : (<divclassName="flex h-5 w-5 items-center justify-center rounded-full border border-border bg-muted"- title="Unassigned"+ title={t("tasks:assignee.unassigned")}><span className="text-[10px] font-medium text-muted-foreground">?@@ -300,7 +302,7 @@ function TaskCard({ task }: TaskCardProps) {<span>#{pullRequests[0].externalId}</span></div><p className="text-sm font-medium leading-snug">- {pullRequests[0].title || "Pull Request"}+ {pullRequests[0].title || t("tasks:pr.label")}</p></div></HoverCardContent>@@ -330,7 +332,11 @@ function TaskCard({ task }: TaskCardProps) {className="inline-flex items-center gap-1.5 rounded border border-border/70 bg-muted/55 px-2 py-1 text-[10px] font-medium text-muted-foreground"><GitPullRequest className={`h-3 w-3 ${iconColor}`} />- <span>{pullRequests.length} PRs</span>+ <span>+ {t("tasks:pr.count", {+ count: pullRequests.length,+ })}+ </span></button></HoverCardTrigger><HoverCardContent@@ -362,7 +368,7 @@ function TaskCard({ task }: TaskCardProps) {</span></div><p className="text-xs leading-tight line-clamp-2 mt-0.5">- {pr.title || "Pull Request"}+ {pr.title || t("tasks:pr.label")}</p><span className="text-[10px] text-muted-foreground">{prInfo.status}@@ -397,21 +403,20 @@ function TaskCard({ task }: TaskCardProps) {><AlertDialogContent><AlertDialogHeader>- <AlertDialogTitle>Delete Task?</AlertDialogTitle>+ <AlertDialogTitle>{t("tasks:delete.title")}</AlertDialogTitle><AlertDialogDescription>- This will permanently remove the task and all its data. You can't- undo this action.+ {t("tasks:delete.description")}</AlertDialogDescription></AlertDialogHeader><AlertDialogFooter><AlertDialogClose><Button variant="outline" size="sm">- Cancel+ {t("common:actions.cancel")}</Button></AlertDialogClose><AlertDialogClose onClick={handleDeleteTask}><Button variant="destructive" size="sm">- Delete Task+ {t("tasks:delete.action")}</Button></AlertDialogClose></AlertDialogFooter>diff --git a/apps/web/src/components/keyboard-shortcuts-help.tsx b/apps/web/src/components/keyboard-shortcuts-help.tsxindex a112c4f23..af2c8fb32 100644--- a/apps/web/src/components/keyboard-shortcuts-help.tsx+++ b/apps/web/src/components/keyboard-shortcuts-help.tsx@@ -1,4 +1,5 @@-import { useEffect, useState } from "react";+import { useEffect, useMemo, useState } from "react";+import { Trans, useTranslation } from "react-i18next";import {Dialog,DialogContent,@@ -21,95 +22,110 @@ type ShortcutCategory = {shortcuts: ShortcutItem[];};-const shortcutCategories: ShortcutCategory[] = [- {- title: "General",- shortcuts: [- {- keys: [shortcuts.palette.prefix, shortcuts.palette.open],- description: "Open command palette",- },- {- keys: [shortcuts.search.prefix],- description: "Global search",- },- {- keys: [shortcuts.sidebar.prefix, shortcuts.sidebar.toggle],- description: "Toggle sidebar",- },- {- keys: ["?"],- description: "Show keyboard shortcuts",- },- {- keys: ["Escape"],- description: "Close modal/popover",- },- ],- },- {- title: "Create",- shortcuts: [- {- keys: [shortcuts.task.prefix, shortcuts.task.create],- description: "Create task",- },- {- keys: [shortcuts.project.prefix, shortcuts.project.create],- description: "Create project",- },- {- keys: [shortcuts.workspace.prefix, shortcuts.workspace.create],- description: "Create workspace",- },- ],- },- {- title: "Views",- shortcuts: [- {- keys: [shortcuts.view.prefix, shortcuts.view.board],- description: "Switch to board view",- },- {- keys: [shortcuts.view.prefix, shortcuts.view.list],- description: "Switch to list view",- },+function useShortcutCategories(): ShortcutCategory[] {+ const { t } = useTranslation();++ return useMemo(+ () => [{- keys: [shortcuts.view.prefix, shortcuts.view.backlog],- description: "Switch to backlog view",+ title: t("navigation:keyboardShortcuts.categories.general"),+ shortcuts: [+ {+ keys: [shortcuts.palette.prefix, shortcuts.palette.open],+ description: t(+ "navigation:keyboardShortcuts.items.openCommandPalette",+ ),+ },+ {+ keys: [shortcuts.search.prefix],+ description: t("navigation:keyboardShortcuts.items.globalSearch"),+ },+ {+ keys: [shortcuts.sidebar.prefix, shortcuts.sidebar.toggle],+ description: t("navigation:keyboardShortcuts.items.toggleSidebar"),+ },+ {+ keys: ["?"],+ description: t("navigation:keyboardShortcuts.items.showShortcuts"),+ },+ {+ keys: ["Escape"],+ description: t("navigation:keyboardShortcuts.items.closeModal"),+ },+ ],},- ],- },- {- title: "Navigation",- shortcuts: [{- keys: ["j"],- description: "Next task",+ title: t("navigation:keyboardShortcuts.categories.create"),+ shortcuts: [+ {+ keys: [shortcuts.task.prefix, shortcuts.task.create],+ description: t("navigation:keyboardShortcuts.items.createTask"),+ },+ {+ keys: [shortcuts.project.prefix, shortcuts.project.create],+ description: t("navigation:keyboardShortcuts.items.createProject"),+ },+ {+ keys: [shortcuts.workspace.prefix, shortcuts.workspace.create],+ description: t(+ "navigation:keyboardShortcuts.items.createWorkspace",+ ),+ },+ ],},{- keys: ["k"],- description: "Previous task",+ title: t("navigation:keyboardShortcuts.categories.views"),+ shortcuts: [+ {+ keys: [shortcuts.view.prefix, shortcuts.view.board],+ description: t("navigation:keyboardShortcuts.items.boardView"),+ },+ {+ keys: [shortcuts.view.prefix, shortcuts.view.list],+ description: t("navigation:keyboardShortcuts.items.listView"),+ },+ {+ keys: [shortcuts.view.prefix, shortcuts.view.backlog],+ description: t("navigation:keyboardShortcuts.items.backlogView"),+ },+ ],},{- keys: ["Enter"],- description: "Open selected task",+ title: t("navigation:keyboardShortcuts.categories.navigation"),+ shortcuts: [+ {+ keys: ["j"],+ description: t("navigation:keyboardShortcuts.items.nextTask"),+ },+ {+ keys: ["k"],+ description: t("navigation:keyboardShortcuts.items.prevTask"),+ },+ {+ keys: ["Enter"],+ description: t("navigation:keyboardShortcuts.items.openTask"),+ },+ ],},- ],- },- {- title: "Quick Select (in popovers)",- shortcuts: [{- keys: ["1", "2", "3", "..."],- description: "Select option by number",+ title: t("navigation:keyboardShortcuts.categories.quickSelect"),+ shortcuts: [+ {+ keys: ["1", "2", "3", "..."],+ description: t(+ "navigation:keyboardShortcuts.items.quickSelectNumber",+ ),+ },+ ],},],- },-];+ [t],+ );+}export function KeyboardShortcutsHelp() {+ const { t } = useTranslation();+ const shortcutCategories = useShortcutCategories();const [open, setOpen] = useState(false);const [searchQuery, setSearchQuery] = useState("");@@ -150,14 +166,14 @@ export function KeyboardShortcutsHelp() {<Dialog open={open} onOpenChange={setOpen}><DialogContent className="px-4 max-w-2xl max-h-[80vh] overflow-hidden flex flex-col"><DialogHeader>- <DialogTitle>Keyboard Shortcuts</DialogTitle>+ <DialogTitle>{t("navigation:keyboardShortcuts.title")}</DialogTitle><DialogDescription>- Speed up your workflow with keyboard shortcuts+ {t("navigation:keyboardShortcuts.subtitle")}</DialogDescription></DialogHeader><Input- placeholder="Search shortcuts..."+ placeholder={t("navigation:keyboardShortcuts.searchPlaceholder")}value={searchQuery}onChange={(e) => setSearchQuery(e.target.value)}className="mb-4"@@ -187,8 +203,12 @@ export function KeyboardShortcutsHelp() {</div><div className="mt-4 pt-4 border-t text-xs text-muted-foreground mb-4">- Press <kbd className="px-1.5 py-0.5 rounded bg-muted">Escape</kbd> to- close+ <Trans+ i18nKey="navigation:keyboardShortcuts.footer"+ components={{+ kbd: <kbd className="px-1.5 py-0.5 rounded bg-muted" />,+ }}+ /></div></DialogContent></Dialog>diff --git a/apps/web/src/components/list-view/index.tsx b/apps/web/src/components/list-view/index.tsxindex cc937a40f..83ba940e3 100644--- a/apps/web/src/components/list-view/index.tsx+++ b/apps/web/src/components/list-view/index.tsx@@ -14,14 +14,12 @@ import {useSensors,} from "@dnd-kit/core";import { snapCenterToCursor } from "@dnd-kit/modifiers";-import {- SortableContext,- verticalListSortingStrategy,-} from "@dnd-kit/sortable";+import { verticalListSortingStrategy } from "@dnd-kit/sortable";import { useNavigate } from "@tanstack/react-router";import { produce } from "immer";import { Archive, ChevronRight, Flag, Plus } from "lucide-react";import { useEffect, useState } from "react";+import { useTranslation } from "react-i18next";import { priorityColorsTaskCard } from "@/constants/priority-colors";import { useUpdateTask } from "@/hooks/mutations/task/use-update-task";import { useRegisterShortcuts } from "@/hooks/use-keyboard-shortcuts";@@ -42,6 +40,7 @@ type ListViewProps = {};function ListView({ project, disableDragDrop = false }: ListViewProps) {+ const { t } = useTranslation();const { setProject } = useProjectStore();const {setAvailableTasks,@@ -265,7 +264,9 @@ function ListView({ project, disableDragDrop = false }: ListViewProps) {});setProject(updatedProject);- toast.success(`Archived ${columnToArchive.tasks.length} tasks`);+ toast.success(+ t("tasks:archive.success", { count: columnToArchive.tasks.length }),+ );setIsArchiveModalOpen(false);setColumnToArchive(null);@@ -324,7 +325,7 @@ function ListView({ project, disableDragDrop = false }: ListViewProps) {setActiveColumn(column.id);}}className="p-1 hover:bg-accent rounded text-muted-foreground hover:text-foreground transition-colors"- title="Add task"+ title={t("tasks:listView.addTask")}><Plus className="w-3 h-3" /></button>@@ -332,9 +333,9 @@ function ListView({ project, disableDragDrop = false }: ListViewProps) {{column.isFinal && column.tasks.length > 0 && (<buttontype="button"- onClick={() => handleArchiveClick(column)} // Verander dit naar de nieuwe naam+ onClick={() => handleArchiveClick(column)} // Verander dit naar de neue naamclassName="p-1 hover:bg-accent rounded text-muted-foreground hover:text-foreground transition-colors"- title="Archive all completed tasks"+ title={t("tasks:listView.archiveAllTooltip")}><Archive className="w-3 h-3" /></button>@@ -359,7 +360,7 @@ function ListView({ project, disableDragDrop = false }: ListViewProps) {{column.tasks.length === 0 && (<div className="py-6 px-4 text-center text-xs text-muted-foreground">- No tasks+ {t("tasks:listView.noTasks")}</div>)}</div>diff --git a/apps/web/src/components/list-view/task-row.tsx b/apps/web/src/components/list-view/task-row.tsxindex 19c93cfca..e333ea0ed 100644--- a/apps/web/src/components/list-view/task-row.tsx+++ b/apps/web/src/components/list-view/task-row.tsx@@ -10,6 +10,7 @@ import {GitPullRequest,} from "lucide-react";import { type CSSProperties, useMemo, useState } from "react";+import { useTranslation } from "react-i18next";import {AlertDialog,AlertDialogClose,@@ -49,6 +50,7 @@ type TaskRowProps = {};function TaskRow({ task, projectSlug }: TaskRowProps) {+ const { t } = useTranslation();const navigate = useNavigate();const {attributes,@@ -97,7 +99,7 @@ function TaskRow({ task, projectSlug }: TaskRowProps) {if (isMerged) {return {icon: <GitMerge className="h-3 w-3 text-info-foreground" />,- status: "Merged",+ status: t("tasks:pr.merged"),statusClass: "text-info-foreground",};}@@ -105,14 +107,14 @@ function TaskRow({ task, projectSlug }: TaskRowProps) {if (isDraft) {return {icon: <GitPullRequest className="h-3 w-3 text-muted-foreground" />,- status: "Draft",+ status: t("tasks:pr.draft"),statusClass: "text-muted-foreground",};}return {icon: <GitPullRequest className="h-3 w-3 text-success-foreground" />,- status: "Open",+ status: t("tasks:pr.open"),statusClass: "text-success-foreground",};};@@ -164,10 +166,10 @@ function TaskRow({ task, projectSlug }: TaskRowProps) {});} catch (error) {toast.error(- error instanceof Error ? error.message : "Failed to delete task",+ error instanceof Error ? error.message : t("tasks:delete.error"),);} finally {- toast.success("Task deleted successfully");+ toast.success(t("tasks:delete.success"));}};@@ -243,7 +245,7 @@ function TaskRow({ task, projectSlug }: TaskRowProps) {<span>#{pullRequests[0].externalId}</span></div><p className="text-sm font-medium leading-snug">- {pullRequests[0].title || "Pull Request"}+ {pullRequests[0].title || t("tasks:pr.label")}</p></div></HoverCardContent>@@ -275,7 +277,11 @@ function TaskRow({ task, projectSlug }: TaskRowProps) {<GitPullRequestclassName={`h-3 w-3 ${iconColor}`}/>- <span>{pullRequests.length} PRs</span>+ <span>+ {t("tasks:pr.count", {+ count: pullRequests.length,+ })}+ </span></button></HoverCardTrigger><HoverCardContent@@ -308,7 +314,7 @@ function TaskRow({ task, projectSlug }: TaskRowProps) {</span></div><p className="text-xs leading-tight line-clamp-2 mt-0.5">- {pr.title || "Pull Request"}+ {pr.title || t("tasks:pr.label")}</p><span className="text-[10px] text-muted-foreground">{prInfo.status}@@ -358,7 +364,7 @@ function TaskRow({ task, projectSlug }: TaskRowProps) {) : (<divclassName="w-6 h-6 rounded-full bg-muted border border-border flex items-center justify-center"- title="Unassigned"+ title={t("tasks:assignee.unassigned")}><span className="text-[10px] font-medium text-muted-foreground">?@@ -388,21 +394,20 @@ function TaskRow({ task, projectSlug }: TaskRowProps) {><AlertDialogContent><AlertDialogHeader>- <AlertDialogTitle>Delete Task?</AlertDialogTitle>+ <AlertDialogTitle>{t("tasks:delete.title")}</AlertDialogTitle><AlertDialogDescription>- This will permanently remove the task and all its data. You can't- undo this action.+ {t("tasks:delete.description")}</AlertDialogDescription></AlertDialogHeader><AlertDialogFooter><AlertDialogClose><Button variant="outline" size="sm">- Cancel+ {t("common:actions.cancel")}</Button></AlertDialogClose><AlertDialogClose onClick={handleDeleteTask}><Button variant="destructive" size="sm">- Delete Task+ {t("tasks:delete.action")}</Button></AlertDialogClose></AlertDialogFooter>diff --git a/apps/web/src/components/nav-main.tsx b/apps/web/src/components/nav-main.tsxindex 891e5aa75..6ca846590 100644--- a/apps/web/src/components/nav-main.tsx+++ b/apps/web/src/components/nav-main.tsx@@ -1,5 +1,6 @@import { useNavigate } from "@tanstack/react-router";import { ChevronRight } from "lucide-react";+import { useTranslation } from "react-i18next";import {Collapsible,CollapsiblePanel,@@ -17,6 +18,7 @@ import { usePendingInvitations } from "@/hooks/queries/invitation/use-pending-inimport useActiveWorkspace from "@/hooks/queries/workspace/use-active-workspace";export function NavMain() {+ const { t } = useTranslation();const { data: workspace } = useActiveWorkspace();const navigate = useNavigate();const { data: invitations = [] } = usePendingInvitations();@@ -27,14 +29,14 @@ export function NavMain() {const navItems = [{- title: "Projects",+ title: t("navigation:sidebar.projects"),url: `/dashboard/workspace/${workspace.id}`,isActive:window.location.pathname === `/dashboard/workspace/${workspace.id}`,badge: null,},{- title: "Members",+ title: t("navigation:sidebar.members"),url: `/dashboard/workspace/${workspace.id}/members`,isActive:window.location.pathname ===@@ -42,7 +44,7 @@ export function NavMain() {badge: null,},{- title: "Invitations",+ title: t("navigation:sidebar.invitations"),url: "/dashboard/invitations",isActive: window.location.pathname === "/dashboard/invitations",badge: pendingCount > 0 ? pendingCount : null,@@ -58,14 +60,14 @@ export function NavMain() {<SidebarGroupLabel className="h-7 cursor-pointer justify-between px-0 text-sidebar-accent-foreground" />}>- <span>Overview</span>+ <span>{t("navigation:sidebar.overview")}</span><ChevronRight className="h-3.5 w-3.5 text-sidebar-foreground/60 transition-transform duration-200" /></CollapsibleTrigger><CollapsiblePanel><SidebarGroupContent><SidebarMenu className="gap-0.5">{navItems.map((item) => (- <SidebarMenuItem key={item.title}>+ <SidebarMenuItem key={item.url}><SidebarMenuButtontooltip={item.title}isActive={item.isActive}diff --git a/apps/web/src/components/nav-projects.tsx b/apps/web/src/components/nav-projects.tsxindex 6a2c99fdf..c7769cdbf 100644--- a/apps/web/src/components/nav-projects.tsx+++ b/apps/web/src/components/nav-projects.tsx@@ -8,6 +8,7 @@ import {Trash2,} from "lucide-react";import { useState } from "react";+import { useTranslation } from "react-i18next";import {Collapsible,CollapsiblePanel,@@ -47,6 +48,7 @@ import {import { Button } from "./ui/button";export function NavProjects() {+ const { t } = useTranslation();const { isMobile } = useSidebar();const { data: workspace } = useActiveWorkspace();const { data: projects } = useGetProjects({@@ -96,7 +98,7 @@ export function NavProjects() {<SidebarGroupLabel className="h-7 cursor-pointer justify-between px-0 text-sidebar-accent-foreground" />}>- <span>Projects</span>+ <span>{t("navigation:sidebar.projects")}</span><ChevronRight className="h-3.5 w-3.5 text-sidebar-foreground/60 transition-transform duration-200" /></CollapsibleTrigger><CollapsiblePanel>@@ -124,7 +126,9 @@ export function NavProjects() {}><MoreHorizontal />- <span className="sr-only">More</span>+ <span className="sr-only">+ {t("navigation:sidebar.more")}+ </span></DropdownMenuTrigger><DropdownMenuContentclassName="w-44 rounded-lg"@@ -136,7 +140,9 @@ export function NavProjects() {onClick={() => handleProjectClick(project)}><Folder className="text-muted-foreground" />- <span>View Project</span>+ <span>+ {t("navigation:projectList.viewProject")}+ </span></DropdownMenuItem><DropdownMenuItemclassName="h-7 items-start cursor-pointer text-sm"@@ -144,11 +150,15 @@ export function NavProjects() {navigator.clipboard.writeText(`${window.location.origin}/dashboard/workspace/${workspace?.id}/project/${project.id}`,);- toast.success("Project link copied to clipboard");+ toast.success(+ t("navigation:projectList.linkCopied"),+ );}}><Forward className="text-muted-foreground" />- <span>Share Project</span>+ <span>+ {t("navigation:projectList.shareProject")}+ </span></DropdownMenuItem><DropdownMenuSeparator /><DropdownMenuItem@@ -159,7 +169,9 @@ export function NavProjects() {}}><Trash2 className="text-destructive" />- <span>Delete Project</span>+ <span>+ {t("navigation:projectList.deleteProject")}+ </span></DropdownMenuItem></DropdownMenuContent></DropdownMenu>@@ -173,7 +185,7 @@ export function NavProjects() {className="h-8 ps-3.5 text-sm hover:bg-transparent hover:text-sidebar-accent-foreground active:bg-transparent"onClick={() => setIsCreateProjectModalOpen(true)}>- <span>Add project</span>+ <span>{t("navigation:projectList.addProject")}</span></SidebarMenuButton></SidebarMenuItem></SidebarMenu>@@ -193,16 +205,17 @@ export function NavProjects() {><AlertDialogContent><AlertDialogHeader>- <AlertDialogTitle>Delete Project?</AlertDialogTitle>+ <AlertDialogTitle>+ {t("navigation:projectList.deleteConfirmTitle")}+ </AlertDialogTitle><AlertDialogDescription>- This will permanently remove the project and all its data. You- can't undo this action.+ {t("navigation:projectList.deleteConfirmDescription")}</AlertDialogDescription></AlertDialogHeader><AlertDialogFooter><AlertDialogClose><Button variant="outline" size="sm">- Cancel+ {t("common:actions.cancel")}</Button></AlertDialogClose><AlertDialogClose@@ -210,7 +223,7 @@ export function NavProjects() {await deleteProject({id: projectToDeleteId || "",});- toast.success("Project deleted");+ toast.success(t("navigation:projectList.deletedToast"));queryClient.invalidateQueries({queryKey: ["projects"],});@@ -223,7 +236,7 @@ export function NavProjects() {}}><Button variant="destructive" size="sm">- Delete Project+ {t("navigation:projectList.deleteProject")}</Button></AlertDialogClose></AlertDialogFooter>diff --git a/apps/web/src/components/notification/notification-dropdown.tsx b/apps/web/src/components/notification/notification-dropdown.tsxindex a9aa663a1..baa93d7fd 100644--- a/apps/web/src/components/notification/notification-dropdown.tsx+++ b/apps/web/src/components/notification/notification-dropdown.tsx@@ -1,6 +1,6 @@-import { formatDistanceToNow } from "date-fns";import { Bell } from "lucide-react";import { forwardRef, useImperativeHandle, useState } from "react";+import { useTranslation } from "react-i18next";import {AlertDialog,AlertDialogClose,@@ -30,13 +30,114 @@ import useMarkAllNotificationsAsRead from "@/hooks/mutations/notification/use-maimport useGetNotifications from "@/hooks/queries/notification/use-get-notifications";import { useRegisterShortcuts } from "@/hooks/use-keyboard-shortcuts";import { cn } from "@/lib/cn";+import { formatRelativeTime } from "@/lib/format";+import { getStatusLabel } from "@/lib/i18n/domain";+import type { Notification } from "@/types/notification";export type NotificationDropdownRef = {toggle: () => void;};+function getEventDataRecord(+ eventData: unknown,+): Record<string, unknown> | null {+ if (!eventData || typeof eventData !== "object" || Array.isArray(eventData)) {+ return null;+ }++ return eventData as Record<string, unknown>;+}++function getNotificationTitle(+ notification: Notification,+ t: (key: string, options?: Record<string, unknown>) => string,+) {+ const eventData = getEventDataRecord(notification.eventData);+ if (eventData) {+ switch (notification.type) {+ case "task_created":+ return t("notifications:events.task_created.title", {+ ...eventData,+ defaultValue: notification.title ?? notification.type,+ });+ case "workspace_created":+ return t("notifications:events.workspace_created.title", {+ ...eventData,+ defaultValue: notification.title ?? notification.type,+ });+ case "task_status_changed":+ return t("notifications:events.task_status_changed.title", {+ ...eventData,+ defaultValue: notification.title ?? notification.type,+ });+ case "task_assignee_changed":+ return t("notifications:events.task_assignee_changed.title", {+ ...eventData,+ defaultValue: notification.title ?? notification.type,+ });+ case "time_entry_created":+ return t("notifications:events.time_entry_created.title", {+ ...eventData,+ defaultValue: notification.title ?? notification.type,+ });+ default:+ break;+ }+ }++ return notification.title ?? notification.type;+}++function getNotificationContent(+ notification: Notification,+ t: (key: string, options?: Record<string, unknown>) => string,+) {+ const eventData = getEventDataRecord(notification.eventData);+ if (eventData) {+ switch (notification.type) {+ case "task_created":+ return t("notifications:events.task_created.content", {+ ...eventData,+ defaultValue: notification.content ?? "",+ });+ case "workspace_created":+ return t("notifications:events.workspace_created.content", {+ ...eventData,+ defaultValue: notification.content ?? "",+ });+ case "task_status_changed":+ return t("notifications:events.task_status_changed.content", {+ ...eventData,+ oldStatus: getStatusLabel(String(eventData.oldStatus ?? "")),+ newStatus: getStatusLabel(String(eventData.newStatus ?? "")),+ defaultValue: notification.content ?? "",+ });+ case "task_assignee_changed":+ return t("notifications:events.task_assignee_changed.content", {+ ...eventData,+ defaultValue: notification.content ?? "",+ });+ case "time_entry_created":+ return eventData.taskTitle+ ? t("notifications:events.time_entry_created.contentWithTask", {+ ...eventData,+ defaultValue: notification.content ?? "",+ })+ : t("notifications:events.time_entry_created.contentWithoutTask", {+ ...eventData,+ defaultValue: notification.content ?? "",+ });+ default:+ break;+ }+ }++ return notification.content ?? "";+}+const NotificationDropdown = forwardRef<NotificationDropdownRef>((_props, ref) => {+ const { t } = useTranslation();const { data: notifications } = useGetNotifications();const [isOpen, setIsOpen] = useState(false);const [showClearDialog, setShowClearDialog] = useState(false);@@ -80,7 +181,9 @@ const NotificationDropdown = forwardRef<NotificationDropdownRef>({unreadNotifications.length > 0 && (<span className="absolute top-0 right-0 h-2 w-2 rounded-full bg-destructive" />)}- <span className="sr-only">Notifications</span>+ <span className="sr-only">+ {t("navigation:notifications")}+ </span></Button></DropdownMenuTrigger></TooltipTrigger>@@ -91,7 +194,7 @@ const NotificationDropdown = forwardRef<NotificationDropdownRef>(shortcuts.notification.prefix,shortcuts.notification.open,]}- description="Open notifications"+ description={t("notifications:shortcuts.open")}/></p></TooltipContent>@@ -100,11 +203,15 @@ const NotificationDropdown = forwardRef<NotificationDropdownRef>(<DropdownMenuContent align="end" className="w-80 p-0"><div className="flex items-center justify-between px-3 py-2 border-b">- <h3 className="font-medium text-sm">Notifications</h3>+ <h3 className="font-medium text-sm">+ {t("notifications:title")}+ </h3>{unreadNotifications.length > 0 && (<div className="flex items-center gap-2"><Badge variant="secondary" className="text-xs">- {unreadNotifications.length} new+ {t("notifications:newCount", {+ count: unreadNotifications.length,+ })}</Badge><Buttonvariant="ghost"@@ -112,7 +219,7 @@ const NotificationDropdown = forwardRef<NotificationDropdownRef>(onClick={() => markAllAsRead()}className="text-xs h-6 px-2">- Mark all read+ {t("common:actions.markAllRead")}</Button></div>)}@@ -122,9 +229,9 @@ const NotificationDropdown = forwardRef<NotificationDropdownRef>({!hasNotifications ? (<div className="p-6 text-center text-sm text-muted-foreground"><Bell className="mx-auto h-12 w-12 opacity-50 mb-2" />- <p>No notifications yet</p>+ <p>{t("notifications:emptyTitle")}</p><p className="text-xs mt-1">- You'll see updates and activity here.+ {t("notifications:emptySubtitle")}</p></div>) : (@@ -140,21 +247,19 @@ const NotificationDropdown = forwardRef<NotificationDropdownRef>(<div className="flex-1 min-w-0"><div className="flex items-center gap-2 mb-1"><h4 className="text-sm font-medium text-foreground">- {notification.title}+ {getNotificationTitle(notification, t)}</h4>{!notification.isRead && (<div className="w-2 h-2 bg-primary rounded-full flex-shrink-0" />)}</div>- {notification.content && (+ {getNotificationContent(notification, t) && (<p className="text-xs text-muted-foreground line-clamp-2">- {notification.content}+ {getNotificationContent(notification, t)}</p>)}<p className="text-xs text-muted-foreground mt-2">- {formatDistanceToNow(notification.createdAt, {- addSuffix: true,- })}+ {formatRelativeTime(notification.createdAt)}</p></div></div>@@ -170,7 +275,7 @@ const NotificationDropdown = forwardRef<NotificationDropdownRef>(onClick={() => setShowClearDialog(true)}className="w-full text-xs text-destructive hover:text-destructive hover:bg-destructive/10">- Clear all notifications+ {t("notifications:clearAll")}</Button></div>)}@@ -180,21 +285,22 @@ const NotificationDropdown = forwardRef<NotificationDropdownRef>(<AlertDialog open={showClearDialog} onOpenChange={setShowClearDialog}><AlertDialogContent><AlertDialogHeader>- <AlertDialogTitle>Clear all notifications?</AlertDialogTitle>+ <AlertDialogTitle>+ {t("notifications:clearDialogTitle")}+ </AlertDialogTitle><AlertDialogDescription>- This will permanently remove all notifications. You can't undo- this action.+ {t("notifications:clearDialogDescription")}</AlertDialogDescription></AlertDialogHeader><AlertDialogFooter><AlertDialogClose><Button variant="outline" size="sm">- Cancel+ {t("common:actions.cancel")}</Button></AlertDialogClose><AlertDialogClose onClick={handleClearAll}><Button variant="destructive" size="sm">- Clear all+ {t("common:actions.clearAll")}</Button></AlertDialogClose></AlertDialogFooter>diff --git a/apps/web/src/components/onboarding/onboarding-flow.tsx b/apps/web/src/components/onboarding/onboarding-flow.tsxindex db08cc9d6..04b76258b 100644--- a/apps/web/src/components/onboarding/onboarding-flow.tsx+++ b/apps/web/src/components/onboarding/onboarding-flow.tsx@@ -3,8 +3,9 @@ import { useQueryClient } from "@tanstack/react-query";import { useNavigate } from "@tanstack/react-router";import { AnimatePresence, motion } from "framer-motion";import { CheckCircle2 } from "lucide-react";-import { useState } from "react";+import { useMemo, useState } from "react";import { useForm } from "react-hook-form";+import { Trans, useTranslation } from "react-i18next";import { z } from "zod/v4";import { Logo } from "@/components/common/logo";import PageTitle from "@/components/page-title";@@ -30,11 +31,6 @@ export type WorkspaceFormValues = {description?: string;};-const workspaceSchema = z.object({- name: z.string().min(1, "Workspace name is required"),- description: z.string().optional(),-});-const fadeTransition = {initial: { opacity: 0, y: 20 },animate: { opacity: 1, y: 0 },@@ -42,6 +38,7 @@ const fadeTransition = {};export function OnboardingFlow() {+ const { t } = useTranslation();const [step, setStep] = useState<OnboardingStep>("workspace");const [createdWorkspaceName, setCreatedWorkspaceName] = useState("");const navigate = useNavigate();@@ -49,6 +46,17 @@ export function OnboardingFlow() {const { mutateAsync: createWorkspace, isPending } = useCreateWorkspace();const { user } = useAuth();+ const workspaceSchema = useMemo(+ () =>+ z.object({+ name: z+ .string()+ .min(1, t("auth:onboarding.validation.workspaceNameRequired")),+ description: z.string().optional(),+ }),+ [t],+ );+const form = useForm<WorkspaceFormValues>({resolver: standardSchemaResolver(workspaceSchema),defaultValues: {@@ -70,7 +78,7 @@ export function OnboardingFlow() {organizationId: workspace.id,});setCreatedWorkspaceName(data.name);- toast.success("Workspace created successfully");+ toast.success(t("auth:onboarding.toast.workspaceCreated"));setStep("success");@@ -83,7 +91,9 @@ export function OnboardingFlow() {}, 1500);} catch (error) {toast.error(- error instanceof Error ? error.message : "Failed to create workspace",+ error instanceof Error+ ? error.message+ : t("auth:onboarding.toast.createFailed"),);}};@@ -103,10 +113,10 @@ export function OnboardingFlow() {<div className="rounded-xl border border-border bg-card p-6 shadow-sm"><div className="text-center mb-6"><h1 className="text-xl font-semibold text-foreground mb-2">- Create workspace+ {t("auth:onboarding.createWorkspaceTitle")}</h1><p className="text-muted-foreground text-sm">- Set up your workspace to start managing projects+ {t("auth:onboarding.createWorkspaceSubtitle")}</p></div>@@ -119,11 +129,13 @@ export function OnboardingFlow() {render={({ field }) => (<FormItem><FormLabel className="text-sm font-medium">- Workspace name+ {t("auth:onboarding.workspaceName")}</FormLabel><FormControl><Input- placeholder="e.g. Acme Inc, My Team"+ placeholder={t(+ "auth:onboarding.workspaceNamePlaceholder",+ )}autoFocus{...field}/>@@ -139,11 +151,13 @@ export function OnboardingFlow() {render={({ field }) => (<FormItem><FormLabel className="text-sm font-medium text-muted-foreground">- Description (optional)+ {t("auth:onboarding.descriptionOptional")}</FormLabel><FormControl><Input- placeholder="What does your team work on?"+ placeholder={t(+ "auth:onboarding.descriptionPlaceholder",+ )}{...field}/></FormControl>@@ -154,7 +168,9 @@ export function OnboardingFlow() {</div><Button type="submit" disabled={isPending} className="w-full mt-4">- {isPending ? "Creating..." : "Create workspace"}+ {isPending+ ? t("auth:onboarding.creating")+ : t("auth:onboarding.createWorkspace")}</Button></form></Form>@@ -182,10 +198,14 @@ export function OnboardingFlow() {<div className="space-y-2"><h1 className="text-xl font-semibold text-foreground">- Workspace created+ {t("auth:onboarding.workspaceCreatedTitle")}</h1><p className="text-muted-foreground text-sm">- Taking you to <strong>{createdWorkspaceName}</strong>...+ <Trans+ i18nKey="auth:onboarding.redirectingToWorkspace"+ values={{ name: createdWorkspaceName }}+ components={{ name: <strong /> }}+ /></p></div>@@ -199,7 +219,7 @@ export function OnboardingFlow() {return (<>- <PageTitle title="Create Workspace" />+ <PageTitle title={t("auth:onboarding.workspacePageTitle")} /><div className="min-h-screen w-full bg-background flex flex-col items-center justify-center p-4"><AnimatePresence mode="wait">{step === "workspace" && renderWorkspaceStep()}diff --git a/apps/web/src/components/profile-setup/profile-setup-flow.tsx b/apps/web/src/components/profile-setup/profile-setup-flow.tsxindex f978e09d4..abb0fcccb 100644--- a/apps/web/src/components/profile-setup/profile-setup-flow.tsx+++ b/apps/web/src/components/profile-setup/profile-setup-flow.tsx@@ -3,8 +3,9 @@ import { useQueryClient } from "@tanstack/react-query";import { useNavigate } from "@tanstack/react-router";import { AnimatePresence, motion } from "framer-motion";import { CheckCircle2, User } from "lucide-react";-import { useState } from "react";+import { useMemo, useState } from "react";import { useForm } from "react-hook-form";+import { useTranslation } from "react-i18next";import { z } from "zod/v4";import { Logo } from "@/components/common/logo";import PageTitle from "@/components/page-title";@@ -28,13 +29,6 @@ export type ProfileFormValues = {name: string;};-const profileSchema = z.object({- name: z- .string()- .min(1, "Name is required")- .min(2, "Name must be at least 2 characters"),-});-const fadeTransition = {initial: { opacity: 0, y: 20 },animate: { opacity: 1, y: 0 },@@ -42,6 +36,7 @@ const fadeTransition = {};export function ProfileSetupFlow() {+ const { t } = useTranslation();const [step, setStep] = useState<ProfileSetupStep>("profile");const [userName, setUserName] = useState("");const navigate = useNavigate();@@ -49,6 +44,17 @@ export function ProfileSetupFlow() {const { mutateAsync: updateProfile, isPending } = useUpdateUserProfile();const { user } = useAuth();+ const profileSchema = useMemo(+ () =>+ z.object({+ name: z+ .string()+ .min(1, t("auth:profileSetup.validation.nameRequired"))+ .min(2, t("auth:profileSetup.validation.nameShort")),+ }),+ [t],+ );+const form = useForm<ProfileFormValues>({resolver: standardSchemaResolver(profileSchema),defaultValues: {@@ -64,7 +70,7 @@ export function ProfileSetupFlow() {await queryClient.invalidateQueries({ queryKey: ["session"] });setUserName(data.name);- toast.success("Profile updated successfully");+ toast.success(t("auth:profileSetup.toast.updateSuccess"));setStep("success");@@ -76,7 +82,9 @@ export function ProfileSetupFlow() {}, 1500);} catch (error) {toast.error(- error instanceof Error ? error.message : "Failed to update profile",+ error instanceof Error+ ? error.message+ : t("auth:profileSetup.toast.updateFailed"),);}};@@ -99,10 +107,10 @@ export function ProfileSetupFlow() {<User className="h-6 w-6 text-primary" /></div><h1 className="text-xl font-semibold text-foreground mb-2">- Complete your profile+ {t("auth:profileSetup.completeTitle")}</h1><p className="text-muted-foreground text-sm">- Please enter your name to get started+ {t("auth:profileSetup.subtitle")}</p></div>@@ -114,10 +122,14 @@ export function ProfileSetupFlow() {render={({ field }) => (<FormItem><FormLabel className="text-sm font-medium">- Your name+ {t("auth:profileSetup.yourName")}</FormLabel><FormControl>- <Input placeholder="e.g. John Doe" autoFocus {...field} />+ <Input+ placeholder={t("auth:profileSetup.namePlaceholder")}+ autoFocus+ {...field}+ /></FormControl><FormMessage /></FormItem>@@ -125,7 +137,9 @@ export function ProfileSetupFlow() {/><Button type="submit" disabled={isPending} className="w-full mt-6">- {isPending ? "Saving..." : "Continue"}+ {isPending+ ? t("auth:profileSetup.saving")+ : t("auth:profileSetup.continue")}</Button></form></Form>@@ -153,10 +167,10 @@ export function ProfileSetupFlow() {<div className="space-y-2"><h1 className="text-xl font-semibold text-foreground">- Welcome, {userName}!+ {t("auth:profileSetup.welcome", { name: userName })}</h1><p className="text-muted-foreground text-sm">- Taking you to your dashboard...+ {t("auth:profileSetup.redirecting")}</p></div>@@ -170,7 +184,7 @@ export function ProfileSetupFlow() {return (<>- <PageTitle title="Complete Profile" />+ <PageTitle title={t("auth:profileSetup.pageTitle")} /><div className="min-h-screen w-full bg-background flex flex-col items-center justify-center p-4"><AnimatePresence mode="wait">{step === "profile" && renderProfileStep()}diff --git a/apps/web/src/components/project/column-editor.tsx b/apps/web/src/components/project/column-editor.tsxindex a117f07ab..ae81f9247 100644--- a/apps/web/src/components/project/column-editor.tsx+++ b/apps/web/src/components/project/column-editor.tsx@@ -1,5 +1,6 @@import { CheckCircle2, Circle, GripVertical, Plus, Trash2 } from "lucide-react";import { useState } from "react";+import { useTranslation } from "react-i18next";import { Button } from "@/components/ui/button";import { Input } from "@/components/ui/input";import { Switch } from "@/components/ui/switch";@@ -15,6 +16,7 @@ type ColumnEditorProps = {};export default function ColumnEditor({ projectId }: ColumnEditorProps) {+ const { t } = useTranslation();const { data: columns, isLoading } = useGetColumns(projectId);const { mutateAsync: createColumn } = useCreateColumn();const { mutateAsync: updateColumn } = useUpdateColumn();@@ -31,10 +33,12 @@ export default function ColumnEditor({ projectId }: ColumnEditorProps) {data: { name: newColumnName.trim() },});setNewColumnName("");- toast.success("Column created");+ toast.success(t("settings:columnEditor.toastCreated"));} catch (error) {toast.error(- error instanceof Error ? error.message : "Failed to create column",+ error instanceof Error+ ? error.message+ : t("settings:columnEditor.toastCreateError"),);}};@@ -42,10 +46,12 @@ export default function ColumnEditor({ projectId }: ColumnEditorProps) {const handleRename = async (id: string, name: string) => {try {await updateColumn({ id, projectId, data: { name } });- toast.success("Column renamed");+ toast.success(t("settings:columnEditor.toastRenamed"));} catch (error) {toast.error(- error instanceof Error ? error.message : "Failed to update column",+ error instanceof Error+ ? error.message+ : t("settings:columnEditor.toastRenameError"),);}};@@ -54,11 +60,15 @@ export default function ColumnEditor({ projectId }: ColumnEditorProps) {try {await updateColumn({ id, projectId, data: { isFinal } });toast.success(- isFinal ? "Column marked as final" : "Column unmarked as final",+ isFinal+ ? t("settings:columnEditor.toastFinalOn")+ : t("settings:columnEditor.toastFinalOff"),);} catch (error) {toast.error(- error instanceof Error ? error.message : "Failed to update column",+ error instanceof Error+ ? error.message+ : t("settings:columnEditor.toastUpdateError"),);}};@@ -66,10 +76,12 @@ export default function ColumnEditor({ projectId }: ColumnEditorProps) {const handleDelete = async (id: string) => {try {await deleteColumn({ id, projectId });- toast.success("Column deleted");+ toast.success(t("settings:columnEditor.toastDeleted"));} catch (error) {toast.error(- error instanceof Error ? error.message : "Failed to delete column",+ error instanceof Error+ ? error.message+ : t("settings:columnEditor.toastDeleteError"),);}};@@ -97,7 +109,9 @@ export default function ColumnEditor({ projectId }: ColumnEditorProps) {if (isLoading) {return (- <div className="text-sm text-muted-foreground">Loading columns...</div>+ <div className="text-sm text-muted-foreground">+ {t("settings:columnEditor.loading")}+ </div>);}@@ -134,7 +148,7 @@ export default function ColumnEditor({ projectId }: ColumnEditorProps) {<div className="flex items-center gap-1.5 shrink-0"><divclassName="flex items-center gap-2"- title="Treat this as a done column"+ title={t("settings:columnEditor.doneColumnTooltip")}>{col.isFinal ? (<CheckCircle2 className="w-3.5 h-3.5 text-muted-foreground" />@@ -142,18 +156,22 @@ export default function ColumnEditor({ projectId }: ColumnEditorProps) {<Circle className="w-3.5 h-3.5 text-muted-foreground" />)}<span className="text-xs text-muted-foreground whitespace-nowrap">- Done column+ {t("settings:columnEditor.doneColumn")}</span><Switchchecked={col.isFinal}onCheckedChange={(checked) =>handleToggleFinal(col.id, checked)}- aria-label={`Mark ${col.name} as done column`}+ aria-label={t("settings:columnEditor.markDoneAria", {+ name: col.name,+ })}className="scale-75"/><span className="text-[11px] text-muted-foreground w-8">- {col.isFinal ? "On" : "Off"}+ {col.isFinal+ ? t("settings:columnEditor.on")+ : t("settings:columnEditor.off")}</span></div><Button@@ -171,7 +189,7 @@ export default function ColumnEditor({ projectId }: ColumnEditorProps) {<div className="flex items-center gap-2"><Input- placeholder="New column name..."+ placeholder={t("settings:columnEditor.newColumnPlaceholder")}value={newColumnName}onChange={(e) => setNewColumnName(e.target.value)}className="h-8 text-sm flex-1"@@ -187,7 +205,7 @@ export default function ColumnEditor({ projectId }: ColumnEditorProps) {className="h-8 gap-1"><Plus className="w-3.5 h-3.5" />- Add+ {t("settings:columnEditor.add")}</Button></div></div>diff --git a/apps/web/src/components/project/github-integration-settings.tsx b/apps/web/src/components/project/github-integration-settings.tsxindex c09225155..3d72fa855 100644--- a/apps/web/src/components/project/github-integration-settings.tsx+++ b/apps/web/src/components/project/github-integration-settings.tsx@@ -13,6 +13,7 @@ import {} from "lucide-react";import React from "react";import { useForm } from "react-hook-form";+import { useTranslation } from "react-i18next";import { z } from "zod/v4";import { RepositoryBrowserModal } from "@/components/project/repository-browser-modal";import { Badge } from "@/components/ui/badge";@@ -40,24 +41,38 @@ import useGetGithubIntegration from "@/hooks/queries/github-integration/use-get-import { cn } from "@/lib/cn";import { toast } from "@/lib/toast";-const githubIntegrationSchema = z.object({- repositoryOwner: z- .string()- .min(1, "Repository owner is required")- .regex(/^[a-zA-Z0-9-]+$/, "Invalid repository owner format"),- repositoryName: z- .string()- .min(1, "Repository name is required")- .regex(/^[a-zA-Z0-9._-]+$/, "Invalid repository name format"),-});--type GithubIntegrationFormValues = z.infer<typeof githubIntegrationSchema>;+type GithubIntegrationFormValues = {+ repositoryOwner: string;+ repositoryName: string;+};export function GitHubIntegrationSettings({projectId,}: {projectId: string;}) {+ const { t } = useTranslation();+ const githubIntegrationSchema = React.useMemo(+ () =>+ z.object({+ repositoryOwner: z+ .string()+ .min(1, t("settings:githubIntegration.validation.ownerRequired"))+ .regex(+ /^[a-zA-Z0-9-]+$/,+ t("settings:githubIntegration.validation.ownerInvalid"),+ ),+ repositoryName: z+ .string()+ .min(1, t("settings:githubIntegration.validation.nameRequired"))+ .regex(+ /^[a-zA-Z0-9._-]+$/,+ t("settings:githubIntegration.validation.nameInvalid"),+ ),+ }),+ [t],+ );+const { data: integration, isLoading } = useGetGithubIntegration(projectId);const { mutateAsync: createIntegration, isPending: isCreating } =useCreateGithubIntegration();@@ -103,17 +118,17 @@ export function GitHubIntegrationSettings({if (showToast) {if (result.isInstalled && result.hasRequiredPermissions) {- toast.success("GitHub App is properly installed!");+ toast.success(t("settings:githubIntegration.toast.installedOk"));} else if (result.isInstalled) {toast.warning(- "GitHub App is installed but missing required permissions",+ t("settings:githubIntegration.toast.installedMissingPerms"),);} else if (result.repositoryExists) {toast.warning(- "GitHub App needs to be installed on this repository",+ t("settings:githubIntegration.toast.needsInstallOnRepo"),);} else {- toast.error("Repository not found or not accessible");+ toast.error(t("settings:githubIntegration.toast.repoNotFound"));}}} catch (error) {@@ -121,13 +136,13 @@ export function GitHubIntegrationSettings({toast.error(error instanceof Error? error.message- : "Failed to verify GitHub installation",+ : t("settings:githubIntegration.toast.verifyError"),);}setVerificationResult(null);}},- [verifyInstallation],+ [verifyInstallation, t],);React.useEffect(() => {@@ -165,13 +180,15 @@ export function GitHubIntegrationSettings({const verification = await verifyInstallation(data);if (!verification.isInstalled) {- toast.error("Please install the GitHub App on this repository first");+ toast.error(t("settings:githubIntegration.toast.installAppFirst"));return;}if (!verification.hasRequiredPermissions) {toast.error(- `GitHub App is missing required permissions: ${verification.missingPermissions?.join(", ") || "issues"}. Please update the app permissions.`,+ t("settings:githubIntegration.toast.missingPermsDetail", {+ list: verification.missingPermissions?.join(", ") || "issues",+ }),);return;}@@ -180,12 +197,12 @@ export function GitHubIntegrationSettings({projectId,data,});- toast.success("GitHub integration updated successfully");+ toast.success(t("settings:githubIntegration.toast.updated"));} catch (error) {toast.error(error instanceof Error? error.message- : "Failed to update GitHub integration",+ : t("settings:githubIntegration.toast.updateError"),);}};@@ -195,12 +212,12 @@ export function GitHubIntegrationSettings({await deleteIntegration(projectId);form.reset({ repositoryOwner: "", repositoryName: "" });setVerificationResult(null);- toast.success("GitHub integration removed successfully");+ toast.success(t("settings:githubIntegration.toast.removed"));} catch (error) {toast.error(error instanceof Error? error.message- : "Failed to remove GitHub integration",+ : t("settings:githubIntegration.toast.removeError"),);}};@@ -208,10 +225,12 @@ export function GitHubIntegrationSettings({const handleImportIssues = async () => {try {await importIssues({ projectId });- toast.success("Issues imported successfully");+ toast.success(t("settings:githubIntegration.toast.issuesImported"));} catch (error) {toast.error(- error instanceof Error ? error.message : "Failed to import issues",+ error instanceof Error+ ? error.message+ : t("settings:githubIntegration.toast.importError"),);}};@@ -248,14 +267,16 @@ export function GitHubIntegrationSettings({<div className="space-y-4 border border-border rounded-md p-4 bg-sidebar"><div className="flex items-center justify-between"><div className="space-y-0.5">- <p className="text-sm font-medium">Connection Status</p>+ <p className="text-sm font-medium">+ {t("settings:githubIntegration.connectionStatus")}+ </p>{isConnected ? (<p className="text-xs text-muted-foreground">- Repository connected and active+ {t("settings:githubIntegration.connectedActive")}</p>) : (<p className="text-xs text-muted-foreground">- No repository connected+ {t("settings:githubIntegration.notConnectedHint")}</p>)}</div>@@ -264,13 +285,13 @@ export function GitHubIntegrationSettings({<div className="flex items-center gap-2"><Badge variant="secondary" className="gap-1"><CheckCircle className="w-3 h-3" />- Connected+ {t("settings:githubIntegration.badgeConnected")}</Badge></div>) : (<Badge variant="outline" className="gap-1"><XCircle className="w-3 h-3" />- Not Connected+ {t("settings:githubIntegration.badgeNotConnected")}</Badge>)}</div>@@ -281,9 +302,11 @@ export function GitHubIntegrationSettings({<Separator /><div className="flex items-center justify-between"><div className="space-y-0.5">- <p className="text-sm font-medium">Repository</p>+ <p className="text-sm font-medium">+ {t("settings:githubIntegration.repository")}+ </p><p className="text-xs text-muted-foreground">- Connected GitHub repository+ {t("settings:githubIntegration.repositoryHint")}</p></div><div className="flex items-center gap-2 text-sm">@@ -306,11 +329,10 @@ export function GitHubIntegrationSettings({<div className="flex items-center justify-between gap-4"><div className="min-w-0 flex-1 space-y-0.5"><p className="text-sm font-medium">- Comment Kaneo link on new issues+ {t("settings:githubIntegration.commentTaskLinkTitle")}</p><p className="text-xs text-muted-foreground">- When enabled, Kaneo posts a comment on each new GitHub issue- with a link to the task.+ {t("settings:githubIntegration.commentTaskLinkHint")}</p></div><Switch@@ -323,14 +345,18 @@ export function GitHubIntegrationSettings({});toast.success(checked- ? "Kaneo will comment with a task link on new issues"- : "Task link comments on new issues are turned off",+ ? t("settings:githubIntegration.toast.commentOnEnabled")+ : t(+ "settings:githubIntegration.toast.commentOnDisabled",+ ),);} catch (error) {toast.error(error instanceof Error? error.message- : "Failed to update GitHub integration",+ : t(+ "settings:githubIntegration.toast.settingsUpdateError",+ ),);}}}@@ -345,9 +371,11 @@ export function GitHubIntegrationSettings({<Separator /><div className="flex items-center justify-between"><div className="space-y-0.5">- <p className="text-sm font-medium">GitHub App Status</p>+ <p className="text-sm font-medium">+ {t("settings:githubIntegration.appStatusTitle")}+ </p><p className="text-xs text-muted-foreground">- Installation and permissions status+ {t("settings:githubIntegration.appStatusHint")}</p></div><div className="flex items-center gap-2 text-sm">@@ -356,21 +384,21 @@ export function GitHubIntegrationSettings({<><CheckCircle className="h-4 w-4 text-success-foreground" /><span className="font-medium text-success-foreground">- Properly configured+ {t("settings:githubIntegration.statusProperlyConfigured")}</span></>) : verificationResult.isInstalled ? (<><AlertTriangle className="h-4 w-4 text-warning-foreground" /><span className="font-medium text-warning-foreground">- Missing permissions+ {t("settings:githubIntegration.statusMissingPermissions")}</span></>) : (<><XCircle className="h-4 w-4 text-destructive-foreground" /><span className="font-medium text-destructive-foreground">- Not installed+ {t("settings:githubIntegration.statusNotInstalled")}</span></>)}@@ -390,16 +418,18 @@ export function GitHubIntegrationSettings({<div className="flex items-center justify-between"><div className="space-y-0.5"><FormLabel className="text-sm font-medium">- Repository Owner+ {t("settings:githubIntegration.ownerLabel")}</FormLabel><p className="text-xs text-muted-foreground">- GitHub username or organization+ {t("settings:githubIntegration.ownerHint")}</p></div><FormControl><InputclassName="w-64"- placeholder="e.g., octocat"+ placeholder={t(+ "settings:githubIntegration.ownerPlaceholder",+ )}{...field}disabled={isCreating || isDeleting}/>@@ -420,16 +450,18 @@ export function GitHubIntegrationSettings({<div className="flex items-center justify-between"><div className="space-y-0.5"><FormLabel className="text-sm font-medium">- Repository Name+ {t("settings:githubIntegration.repoNameLabel")}</FormLabel><p className="text-xs text-muted-foreground">- The repository name+ {t("settings:githubIntegration.repoNameHint")}</p></div><FormControl><InputclassName="w-64"- placeholder="e.g., my-project"+ placeholder={t(+ "settings:githubIntegration.repoNamePlaceholder",+ )}{...field}disabled={isCreating || isDeleting}/>@@ -444,9 +476,11 @@ export function GitHubIntegrationSettings({<div className="flex items-center justify-between"><div className="space-y-0.5">- <p className="text-sm font-medium">Actions</p>+ <p className="text-sm font-medium">+ {t("settings:githubIntegration.actionsTitle")}+ </p><p className="text-xs text-muted-foreground">- Manage your repository connection+ {t("settings:githubIntegration.actionsHint")}</p></div><div className="flex flex-wrap gap-2">@@ -458,7 +492,7 @@ export function GitHubIntegrationSettings({className="gap-2"><GitBranch className="size-3" />- Browse+ {t("settings:githubIntegration.browse")}</Button><Button@@ -472,7 +506,7 @@ export function GitHubIntegrationSettings({<RefreshCwclassName={cn("size-3", isVerifying && "animate-spin")}/>- Verify+ {t("settings:githubIntegration.verify")}</Button><Button@@ -490,7 +524,9 @@ export function GitHubIntegrationSettings({className="gap-2"><Link className="size-3" />- {isConnected ? "Update" : "Connect"}+ {isConnected+ ? t("settings:githubIntegration.update")+ : t("settings:githubIntegration.connect")}</Button>{isConnected && (@@ -503,7 +539,7 @@ export function GitHubIntegrationSettings({className="gap-2"><Unlink className="size-3" />- Disconnect+ {t("settings:githubIntegration.disconnect")}</Button>)}</div>@@ -545,7 +581,9 @@ export function GitHubIntegrationSettings({verificationResult.missingPermissions && (<div className="mt-2"><p className="text-xs mb-2">- Missing permissions:{" "}+ {t(+ "settings:githubIntegration.missingPermissionsLabel",+ )}{" "}<strong>{verificationResult.missingPermissions.join(", ")}</strong>@@ -564,7 +602,9 @@ export function GitHubIntegrationSettings({className="gap-2"><ExternalLink className="w-3 h-3" />- Update Permissions+ {t(+ "settings:githubIntegration.updatePermissions",+ )}</Button>)}</div>@@ -587,7 +627,7 @@ export function GitHubIntegrationSettings({className="gap-2"><ExternalLink className="w-3 h-3" />- Install GitHub App+ {t("settings:githubIntegration.installGithubApp")}</Button>)}</div>@@ -603,9 +643,11 @@ export function GitHubIntegrationSettings({<div className="space-y-4 border border-border rounded-md p-4 bg-sidebar"><div className="flex items-center justify-between"><div className="space-y-0.5">- <p className="text-sm font-medium">Import GitHub Issues</p>+ <p className="text-sm font-medium">+ {t("settings:githubIntegration.importSectionTitle")}+ </p><p className="text-xs text-muted-foreground">- Import existing issues from your GitHub repository as tasks+ {t("settings:githubIntegration.importSectionHint")}</p></div><div className="flex items-center gap-2">@@ -621,7 +663,9 @@ export function GitHubIntegrationSettings({) : (<Import className="size-3" />)}- {isImporting ? "Importing..." : "Import Issues"}+ {isImporting+ ? t("settings:githubIntegration.importing")+ : t("settings:githubIntegration.importIssues")}</Button></div></div>@@ -629,7 +673,7 @@ export function GitHubIntegrationSettings({<><Separator /><p className="text-xs text-muted-foreground">- Complete the repository configuration above to enable importing+ {t("settings:githubIntegration.importDisabledHint")}</p></>)}diff --git a/apps/web/src/components/project/repository-browser-modal.tsx b/apps/web/src/components/project/repository-browser-modal.tsxindex 1b60592ac..ef7569904 100644--- a/apps/web/src/components/project/repository-browser-modal.tsx+++ b/apps/web/src/components/project/repository-browser-modal.tsx@@ -10,6 +10,7 @@ import {Settings,} from "lucide-react";import React from "react";+import { useTranslation } from "react-i18next";import { Avatar, AvatarFallback, AvatarImage } from "@/components/ui/avatar";import { Badge } from "@/components/ui/badge";import { Button } from "@/components/ui/button";@@ -41,6 +42,7 @@ export function RepositoryBrowserModal({onSelectRepository,selectedRepository,}: RepositoryBrowserModalProps) {+ const { t } = useTranslation();const [searchTerm, setSearchTerm] = React.useState("");const { data, isLoading, error, refetch } = useQuery({@@ -83,12 +85,23 @@ export function RepositoryBrowserModal({const now = new Date();const diffInSeconds = Math.floor((now.getTime() - date.getTime()) / 1000);- if (diffInSeconds < 60) return "just now";- if (diffInSeconds < 3600) return `${Math.floor(diffInSeconds / 60)}m ago`;- if (diffInSeconds < 86400)- return `${Math.floor(diffInSeconds / 3600)}h ago`;- if (diffInSeconds < 2592000)- return `${Math.floor(diffInSeconds / 86400)}d ago`;+ if (diffInSeconds < 60)+ return t("settings:repositoryBrowser.relativeJustNow");+ if (diffInSeconds < 3600) {+ return t("settings:repositoryBrowser.relativeMinutesAgo", {+ count: Math.floor(diffInSeconds / 60),+ });+ }+ if (diffInSeconds < 86400) {+ return t("settings:repositoryBrowser.relativeHoursAgo", {+ count: Math.floor(diffInSeconds / 3600),+ });+ }+ if (diffInSeconds < 2592000) {+ return t("settings:repositoryBrowser.relativeDaysAgo", {+ count: Math.floor(diffInSeconds / 86400),+ });+ }return date.toLocaleDateString();};@@ -106,11 +119,10 @@ export function RepositoryBrowserModal({<DialogHeader className="px-6 pt-6 pb-4"><DialogTitle className="flex items-center gap-2"><GitBranch className="w-5 h-5" />- Select Repository+ {t("settings:repositoryBrowser.title")}</DialogTitle><DialogDescription className="mt-1.5">- Choose a repository where your GitHub App is installed to enable- issue synchronization.+ {t("settings:repositoryBrowser.description")}</DialogDescription></DialogHeader>@@ -120,7 +132,7 @@ export function RepositoryBrowserModal({<div className="relative"><Search className="absolute left-3 top-1/2 transform -translate-y-1/2 text-muted-foreground w-4 h-4" /><Input- placeholder="Search repositories..."+ placeholder={t("settings:repositoryBrowser.searchPlaceholder")}value={searchTerm}onChange={(e) => setSearchTerm(e.target.value)}className="pl-10"@@ -153,10 +165,10 @@ export function RepositoryBrowserModal({{error && (<div className="text-center py-12 px-6"><div className="text-destructive mb-3 font-medium">- Failed to load repositories+ {t("settings:repositoryBrowser.loadError")}</div><Button variant="outline" onClick={() => refetch()}>- Try Again+ {t("settings:repositoryBrowser.tryAgain")}</Button></div>)}@@ -167,11 +179,10 @@ export function RepositoryBrowserModal({<div className="text-center py-12 px-6"><GitBranch className="w-12 h-12 text-muted-foreground mx-auto mb-4" /><h3 className="text-lg font-medium mb-2">- No repositories found+ {t("settings:repositoryBrowser.emptyTitle")}</h3><p className="text-muted-foreground text-sm mb-6 max-w-md mx-auto">- Install the GitHub App on your repositories to see them- here.+ {t("settings:repositoryBrowser.emptyHint")}</p>{appInfo?.appName && (<Button@@ -183,7 +194,7 @@ export function RepositoryBrowserModal({}><ExternalLink className="w-4 h-4 mr-2" />- Install GitHub App+ {t("settings:repositoryBrowser.installGithubApp")}</Button>)}</div>@@ -239,7 +250,8 @@ export function RepositoryBrowserModal({<div className="flex items-center gap-4 text-xs text-muted-foreground"><div className="flex items-center gap-1"><Clock className="w-3 h-3" />- Updated {formatTimeAgo(repository.updated_at)}+ {t("settings:repositoryBrowser.updatedPrefix")}{" "}+ {formatTimeAgo(repository.updated_at)}</div></div></div>@@ -272,11 +284,10 @@ export function RepositoryBrowserModal({<div className="text-center py-12 px-6"><Search className="w-12 h-12 text-muted-foreground mx-auto mb-4" /><h3 className="text-lg font-medium mb-2">- No repositories match your search+ {t("settings:repositoryBrowser.noSearchMatchTitle")}</h3><p className="text-muted-foreground text-sm">- Try adjusting your search terms or clear the search to see- all repositories.+ {t("settings:repositoryBrowser.noSearchMatchHint")}</p></div>)}@@ -290,8 +301,10 @@ export function RepositoryBrowserModal({<div className="px-6 py-4"><div className="flex items-center justify-between text-sm text-muted-foreground"><span>- {data.repositories.length} repositories across{" "}- {data.installations.length} installations+ {t("settings:repositoryBrowser.footerSummary", {+ repoCount: data.repositories.length,+ installationCount: data.installations.length,+ })}</span><Buttonvariant="ghost"@@ -304,7 +317,7 @@ export function RepositoryBrowserModal({}><Settings className="w-4 h-4 mr-2" />- Manage Installations+ {t("settings:repositoryBrowser.manageInstallations")}</Button></div></div>diff --git a/apps/web/src/components/project/tasks-import-export.tsx b/apps/web/src/components/project/tasks-import-export.tsxindex d95e63111..a2afae9dd 100644--- a/apps/web/src/components/project/tasks-import-export.tsx+++ b/apps/web/src/components/project/tasks-import-export.tsx@@ -2,6 +2,7 @@ import { useQueryClient } from "@tanstack/react-query";import { saveAs } from "file-saver";import { Download, Loader2, Upload, X } from "lucide-react";import { useRef, useState } from "react";+import { useTranslation } from "react-i18next";import { Button } from "@/components/ui/button";import {Dialog,@@ -20,6 +21,7 @@ type TasksImportExportProps = {};export function TasksImportExport({ project }: TasksImportExportProps) {+ const { t } = useTranslation();const [isImportOpen, setIsImportOpen] = useState(false);const fileInputRef = useRef<HTMLInputElement>(null);const queryClient = useQueryClient();@@ -31,7 +33,7 @@ export function TasksImportExport({ project }: TasksImportExportProps) {const handleExport = async () => {try {- toast.loading("Exporting tasks...");+ toast.loading(t("settings:tasksImportExport.exporting"));const exportData = await exportTasksMutation(project.id);const blob = new Blob([JSON.stringify(exportData, null, 2)], {@@ -41,10 +43,10 @@ export function TasksImportExport({ project }: TasksImportExportProps) {saveAs(blob, `${project.slug}-tasks-export.json`);toast.dismiss();- toast.success("Tasks exported successfully");+ toast.success(t("settings:tasksImportExport.exportSuccess"));} catch (error) {toast.dismiss();- toast.error("Failed to export tasks");+ toast.error(t("settings:tasksImportExport.exportError"));console.error(error);}};@@ -71,11 +73,11 @@ export function TasksImportExport({ project }: TasksImportExportProps) {const jsonData = JSON.parse(content);if (!jsonData.tasks || !Array.isArray(jsonData.tasks)) {- toast.error("Invalid import file format");+ toast.error(t("settings:tasksImportExport.invalidFormat"));return;}- toast.loading("Importing tasks...");+ toast.loading(t("settings:tasksImportExport.importing"));const result = await importTasksMutation({projectId: project.id,@@ -88,14 +90,22 @@ export function TasksImportExport({ project }: TasksImportExportProps) {setIsImportOpen(false);toast.dismiss();- toast.success(`Imported ${result.results.successful} tasks successfully`);+ toast.success(+ t("settings:tasksImportExport.importSuccess", {+ count: result.results.successful,+ }),+ );if (result.results.failed > 0) {- toast.error(`Failed to import ${result.results.failed} tasks`);+ toast.error(+ t("settings:tasksImportExport.importPartialError", {+ count: result.results.failed,+ }),+ );}} catch (error) {toast.dismiss();- toast.error("Failed to import tasks");+ toast.error(t("settings:tasksImportExport.importError"));console.error(error);}};@@ -104,14 +114,14 @@ export function TasksImportExport({ project }: TasksImportExportProps) {event.preventDefault();const file = event.dataTransfer.files[0];if (!file) {- toast.error("No file was dropped");+ toast.error(t("settings:tasksImportExport.noFileDropped"));return;}if (file.type === "application/json" || file.name.endsWith(".json")) {confirmImport(file);} else {- toast.error("Please upload a JSON file");+ toast.error(t("settings:tasksImportExport.notJsonFile"));}};@@ -137,7 +147,7 @@ export function TasksImportExport({ project }: TasksImportExportProps) {) : (<Download className="h-4 w-4" />)}- Export Tasks+ {t("settings:tasksImportExport.exportTasks")}</Button><Button@@ -146,7 +156,7 @@ export function TasksImportExport({ project }: TasksImportExportProps) {onClick={() => setIsImportOpen(true)}><Upload className="h-4 w-4" />- Import Tasks+ {t("settings:tasksImportExport.importTasks")}</Button><input@@ -163,7 +173,7 @@ export function TasksImportExport({ project }: TasksImportExportProps) {<div className="bg-card rounded-lg shadow-xl border border-border"><div className="flex items-center justify-between p-4 border-b border-border"><DialogTitle className="text-lg font-semibold text-foreground">- Import Tasks+ {t("settings:tasksImportExport.dialogTitle")}</DialogTitle><DialogCloseclassName="text-muted-foreground hover:text-foreground"@@ -175,12 +185,12 @@ export function TasksImportExport({ project }: TasksImportExportProps) {<div className="p-4"><p className="text-sm text-muted-foreground mb-2">- Upload a JSON file containing tasks to import into this project.+ {t("settings:tasksImportExport.dialogDescription")}</p><div className="mb-4 p-3 bg-muted rounded-md border border-border/50 font-mono text-sm"><p className="text-muted-foreground mb-1 text-xs">- Expected format:+ {t("settings:tasksImportExport.expectedFormat")}</p><pre className="text-foreground overflow-auto max-h-32 text-xs">{`{@@ -214,7 +224,7 @@ export function TasksImportExport({ project }: TasksImportExportProps) {<div className="flex flex-col items-center justify-center gap-2"><Upload className="h-8 w-8 text-muted-foreground" /><p className="text-sm text-muted-foreground">- Drag and drop your JSON file here+ {t("settings:tasksImportExport.dropHint")}</p><ButtonclassName="mt-2 bg-card hover:bg-accent text-foreground border border-border"@@ -225,7 +235,7 @@ export function TasksImportExport({ project }: TasksImportExportProps) {{isImporting ? (<Loader2 className="h-4 w-4 mr-2 animate-spin" />) : (- "Select File"+ t("settings:tasksImportExport.selectFile"))}</Button></div>@@ -237,7 +247,7 @@ export function TasksImportExport({ project }: TasksImportExportProps) {<Button className="bg-card hover:bg-accent text-foreground border border-border" />}>- Cancel+ {t("common:actions.cancel")}</DialogClose></div></div>diff --git a/apps/web/src/components/project/workflow-editor.tsx b/apps/web/src/components/project/workflow-editor.tsxindex 2c24cef17..39f111e80 100644--- a/apps/web/src/components/project/workflow-editor.tsx+++ b/apps/web/src/components/project/workflow-editor.tsx@@ -1,3 +1,4 @@+import { useTranslation } from "react-i18next";import {Select,SelectContent,@@ -10,19 +11,20 @@ import { useGetColumns } from "@/hooks/queries/column/use-get-columns";import { useGetWorkflowRules } from "@/hooks/queries/workflow-rule/use-get-workflow-rules";import { toast } from "@/lib/toast";-const GITHUB_EVENTS = [- { eventType: "branch_push", label: "Branch Push" },- { eventType: "pr_opened", label: "PR Opened" },- { eventType: "pr_merged", label: "PR Merged" },- { eventType: "issue_opened", label: "Issue Opened" },- { eventType: "issue_closed", label: "Issue Closed" },-];+const GITHUB_EVENT_TYPES = [+ "branch_push",+ "pr_opened",+ "pr_merged",+ "issue_opened",+ "issue_closed",+] as const;type WorkflowEditorProps = {projectId: string;};export default function WorkflowEditor({ projectId }: WorkflowEditorProps) {+ const { t } = useTranslation();const { data: columns, isLoading: columnsLoading } = useGetColumns(projectId);const { data: rules, isLoading: rulesLoading } =useGetWorkflowRules(projectId);@@ -40,22 +42,28 @@ export default function WorkflowEditor({ projectId }: WorkflowEditorProps) {columnId,},});- toast.success("Workflow rule updated");+ toast.success(t("settings:workflowEditor.toastUpdated"));} catch (error) {toast.error(- error instanceof Error ? error.message : "Failed to update rule",+ error instanceof Error+ ? error.message+ : t("settings:workflowEditor.toastError"),);}};if (columnsLoading || rulesLoading) {- return <div className="text-sm text-muted-foreground">Loading...</div>;+ return (+ <div className="text-sm text-muted-foreground">+ {t("settings:workflowEditor.loading")}+ </div>+ );}if (!columns || columns.length === 0) {return (<div className="text-sm text-muted-foreground">- Create columns first to configure automation rules.+ {t("settings:workflowEditor.createColumnsFirst")}</div>);}@@ -65,30 +73,38 @@ export default function WorkflowEditor({ projectId }: WorkflowEditorProps) {return (<div className="space-y-4"><div className="space-y-1">- <h3 className="text-sm font-medium">GitHub</h3>+ <h3 className="text-sm font-medium">+ {t("settings:workflowEditor.githubHeading")}+ </h3><p className="text-xs text-muted-foreground">- When a GitHub event occurs, move the linked task to a column.+ {t("settings:workflowEditor.githubHint")}</p></div><div className="space-y-2">- {GITHUB_EVENTS.map((event) => {+ {GITHUB_EVENT_TYPES.map((eventType) => {const currentRule = githubRules?.find(- (r) => r.eventType === event.eventType,+ (r) => r.eventType === eventType,);return (<div- key={event.eventType}+ key={eventType}className="flex items-center justify-between gap-4 p-3 border border-border rounded-md bg-sidebar">- <span className="text-sm">{event.label}</span>+ <span className="text-sm">+ {t(`settings:workflowEditor.events.${eventType}`)}+ </span><Selectvalue={currentRule?.columnId ?? ""}- onValueChange={(value) => handleChange(event.eventType, value)}+ onValueChange={(value) => handleChange(eventType, value)}><SelectTrigger className="w-48 h-8 text-sm">- <SelectValue placeholder="Select column..." />+ <SelectValue+ placeholder={t(+ "settings:workflowEditor.selectColumnPlaceholder",+ )}+ /></SelectTrigger><SelectContent>{columns.map((col) => (diff --git a/apps/web/src/components/public-project/copy-url-button.tsx b/apps/web/src/components/public-project/copy-url-button.tsxindex 51177e59d..1926d16b4 100644--- a/apps/web/src/components/public-project/copy-url-button.tsx+++ b/apps/web/src/components/public-project/copy-url-button.tsx@@ -1,20 +1,22 @@import { Check, Copy } from "lucide-react";import { useState } from "react";+import { useTranslation } from "react-i18next";import { Button } from "@/components/ui/button";import { toast } from "@/lib/toast";export function CopyUrlButton() {+ const { t } = useTranslation();const [copied, setCopied] = useState(false);const handleCopyUrl = async () => {try {await navigator.clipboard.writeText(window.location.href);setCopied(true);- toast.success("URL copied");+ toast.success(t("publicProject:copyUrl.successToast"));setTimeout(() => setCopied(false), 2000);} catch (error) {console.error("Failed to copy URL:", error);- toast.error("Failed to copy URL");+ toast.error(t("publicProject:copyUrl.errorToast"));}};@@ -28,12 +30,12 @@ export function CopyUrlButton() {{copied ? (<><Check className="h-3 w-3" />- <span className="text-xs">Copied</span>+ <span className="text-xs">{t("publicProject:copyUrl.copied")}</span></>) : (<><Copy className="h-3 w-3" />- <span className="text-xs">Share</span>+ <span className="text-xs">{t("publicProject:copyUrl.share")}</span></>)}</Button>diff --git a/apps/web/src/components/public-project/error-view.tsx b/apps/web/src/components/public-project/error-view.tsxindex 44875e94e..05fcdff38 100644--- a/apps/web/src/components/public-project/error-view.tsx+++ b/apps/web/src/components/public-project/error-view.tsx@@ -1,7 +1,9 @@import { ExternalLink } from "lucide-react";+import { useTranslation } from "react-i18next";import { KaneoBranding } from "./kaneo-branding";export function ErrorView() {+ const { t } = useTranslation();return (<div className="min-h-screen bg-background flex flex-col w-full"><div className="flex-1 flex items-center justify-center">@@ -11,10 +13,10 @@ export function ErrorView() {</div><div className="space-y-2"><h1 className="text-3xl font-semibold text-foreground">- Project Not Found+ {t("publicProject:error.title")}</h1><p className="text-muted-foreground max-w-md mx-auto">- This project doesn't exist or is not publicly accessible.+ {t("publicProject:error.description")}</p></div><KaneoBranding />diff --git a/apps/web/src/components/public-project/kaneo-branding.tsx b/apps/web/src/components/public-project/kaneo-branding.tsxindex 37421b0a4..741408bab 100644--- a/apps/web/src/components/public-project/kaneo-branding.tsx+++ b/apps/web/src/components/public-project/kaneo-branding.tsx@@ -1,4 +1,8 @@+import { useTranslation } from "react-i18next";+export function KaneoBranding() {+ const { t } = useTranslation();+return (<ahref="https://kaneo.app"@@ -6,7 +10,8 @@ export function KaneoBranding() {rel="noopener noreferrer"className="hover:text-foreground transition-colors">- Powered by <span className="font-medium">Kaneo</span>+ {t("publicProject:branding.poweredBy")}{" "}+ <span className="font-medium">{t("common:appName")}</span></a>);}diff --git a/apps/web/src/components/public-project/public-pr-badge.tsx b/apps/web/src/components/public-project/public-pr-badge.tsxindex 143b7fb5c..40109227a 100644--- a/apps/web/src/components/public-project/public-pr-badge.tsx+++ b/apps/web/src/components/public-project/public-pr-badge.tsx@@ -1,5 +1,6 @@import { GitMerge, GitPullRequest } from "lucide-react";import { useMemo } from "react";+import { useTranslation } from "react-i18next";import {HoverCard,HoverCardContent,@@ -12,6 +13,7 @@ type PublicPRBadgeProps = {};export function PublicPRBadge({ externalLinks }: PublicPRBadgeProps) {+ const { t } = useTranslation();const pullRequests = useMemo(() => {if (!externalLinks) return [];return externalLinks.filter((link) => link.resourceType === "pull_request");@@ -26,7 +28,7 @@ export function PublicPRBadge({ externalLinks }: PublicPRBadgeProps) {if (isMerged) {return {icon: <GitMerge className="h-3 w-3 text-info-foreground" />,- status: "Merged",+ status: t("tasks:pr.merged"),statusClass: "text-info-foreground",};}@@ -34,14 +36,14 @@ export function PublicPRBadge({ externalLinks }: PublicPRBadgeProps) {if (isDraft) {return {icon: <GitPullRequest className="h-3 w-3 text-muted-foreground" />,- status: "Draft",+ status: t("tasks:pr.draft"),statusClass: "text-muted-foreground",};}return {icon: <GitPullRequest className="h-3 w-3 text-success-foreground" />,- status: "Open",+ status: t("tasks:pr.open"),statusClass: "text-success-foreground",};};@@ -75,7 +77,7 @@ export function PublicPRBadge({ externalLinks }: PublicPRBadgeProps) {<span>#{pullRequests[0].externalId}</span></div><p className="text-sm font-medium leading-snug">- {pullRequests[0].title || "Pull Request"}+ {pullRequests[0].title || t("tasks:pr.label")}</p></div></HoverCardContent>@@ -103,7 +105,7 @@ export function PublicPRBadge({ externalLinks }: PublicPRBadgeProps) {className="inline-flex items-center gap-1.5 px-2 py-1 rounded border border-border bg-sidebar text-[10px] font-medium text-muted-foreground hover:bg-muted/50 transition-colors"><GitPullRequest className={`h-3 w-3 ${iconColor}`} />- <span>{pullRequests.length} PRs</span>+ <span>{t("tasks:pr.count", { count: pullRequests.length })}</span></button></HoverCardTrigger><HoverCardContent@@ -130,7 +132,7 @@ export function PublicPRBadge({ externalLinks }: PublicPRBadgeProps) {</span></div><p className="text-xs leading-tight line-clamp-2 mt-0.5">- {pr.title || "Pull Request"}+ {pr.title || t("tasks:pr.label")}</p><span className="text-[10px] text-muted-foreground">{prInfo.status}diff --git a/apps/web/src/components/public-project/task-card.tsx b/apps/web/src/components/public-project/task-card.tsxindex b3d4d5b0b..3de633b3b 100644--- a/apps/web/src/components/public-project/task-card.tsx+++ b/apps/web/src/components/public-project/task-card.tsx@@ -1,8 +1,9 @@-import { format } from "date-fns";import { Calendar, CalendarClock, CalendarX } from "lucide-react";import { useRef } from "react";+import { useTranslation } from "react-i18next";import { Avatar, AvatarFallback, AvatarImage } from "@/components/ui/avatar";import { dueDateStatusColors, getDueDateStatus } from "@/lib/due-date-status";+import { formatDateShort } from "@/lib/format";import { getPriorityIcon } from "@/lib/priority";import type { ExternalLink } from "@/types/external-link";import type Task from "@/types/task";@@ -23,6 +24,7 @@ export function PublicTaskCard({projectSlug,onTaskClick,}: PublicTaskCardProps) {+ const { t } = useTranslation();const labels = task.labels || [];const externalLinks = task.externalLinks || [];const touchStartRef = useRef<{ x: number; y: number; time: number } | null>(@@ -133,7 +135,7 @@ export function PublicTaskCard({getDueDateStatus(task.dueDate) === "no-due-date") && (<Calendar className="w-3 h-3" />)}- <span>{format(new Date(task.dueDate), "MMM d")}</span>+ <span>{formatDateShort(task.dueDate)}</span></div>)}diff --git a/apps/web/src/components/public-project/task-detail-modal.tsx b/apps/web/src/components/public-project/task-detail-modal.tsxindex 6d24321f1..ab2c11588 100644--- a/apps/web/src/components/public-project/task-detail-modal.tsx+++ b/apps/web/src/components/public-project/task-detail-modal.tsx@@ -1,4 +1,3 @@-import { format } from "date-fns";import {Calendar,CalendarClock,@@ -9,9 +8,12 @@ import {GitPullRequest,X,} from "lucide-react";+import { useMemo } from "react";+import { useTranslation } from "react-i18next";import { Avatar, AvatarFallback, AvatarImage } from "@/components/ui/avatar";import { Dialog, DialogClose, DialogPopup } from "@/components/ui/dialog";import { dueDateStatusColors, getDueDateStatus } from "@/lib/due-date-status";+import { formatDateMedium, formatDateShort } from "@/lib/format";import { getPriorityIcon } from "@/lib/priority";import type { ExternalLink } from "@/types/external-link";import type Task from "@/types/task";@@ -36,6 +38,33 @@ export function PublicTaskDetailModal({open,onOpenChange,}: PublicTaskDetailModalProps) {+ const { t } = useTranslation();++ const getPRStatus = useMemo(+ () => (pr: { metadata?: { merged?: boolean; draft?: boolean } | null }) => {+ if (pr.metadata?.merged) {+ return {+ icon: <GitMerge className="w-3.5 h-3.5" />,+ label: t("publicProject:taskDetail.prStatusMerged"),+ className: "text-info-foreground",+ };+ }+ if (pr.metadata?.draft) {+ return {+ icon: <GitPullRequest className="w-3.5 h-3.5" />,+ label: t("publicProject:taskDetail.prStatusDraft"),+ className: "text-muted-foreground",+ };+ }+ return {+ icon: <GitPullRequest className="w-3.5 h-3.5" />,+ label: t("publicProject:taskDetail.prStatusOpen"),+ className: "text-success-foreground",+ };+ },+ [t],+ );+if (!task) return null;const labels = task.labels || [];@@ -49,27 +78,11 @@ export function PublicTaskDetailModal({(link) => link.resourceType === "branch",);- const getPRStatus = (pr: (typeof pullRequests)[number]) => {- if (pr.metadata?.merged) {- return {- icon: <GitMerge className="w-3.5 h-3.5" />,- label: "Merged",- className: "text-info-foreground",- };- }- if (pr.metadata?.draft) {- return {- icon: <GitPullRequest className="w-3.5 h-3.5" />,- label: "Draft",- className: "text-muted-foreground",- };- }- return {- icon: <GitPullRequest className="w-3.5 h-3.5" />,- label: "Open",- className: "text-success-foreground",- };- };+ const statusLabel = task.status ? t(`tasks:status.${task.status}`) : "";+ const priorityLabel =+ task.priority != null && task.priority !== ""+ ? t(`tasks:priority.${task.priority}`)+ : "";return (<Dialog open={open} onOpenChange={onOpenChange}>@@ -80,9 +93,11 @@ export function PublicTaskDetailModal({<span className="text-sm font-medium text-muted-foreground shrink-0">{projectSlug.toUpperCase()}-{task.number}</span>- <span className="text-xs text-muted-foreground px-1.5 py-0.5 bg-muted rounded-md capitalize shrink-0">- {task.status?.replace("-", " ")}- </span>+ {statusLabel ? (+ <span className="text-xs text-muted-foreground px-1.5 py-0.5 bg-muted rounded-md shrink-0">+ {statusLabel}+ </span>+ ) : null}</div><DialogCloseclassName="shrink-0 p-1.5 hover:bg-muted rounded transition-colors"@@ -99,10 +114,10 @@ export function PublicTaskDetailModal({</h2><div className="flex flex-wrap gap-2">- {task.priority && (+ {task.priority && priorityLabel && (<div className="flex items-center gap-1.5 px-2.5 py-1 text-xs bg-muted text-muted-foreground rounded-md">{getPriorityIcon(task.priority)}- <span className="capitalize">{task.priority}</span>+ <span>{priorityLabel}</span></div>)}@@ -120,7 +135,11 @@ export function PublicTaskDetailModal({getDueDateStatus(task.dueDate) === "no-due-date") && (<Calendar className="w-3 h-3" />)}- <span>Due {format(new Date(task.dueDate), "MMM d")}</span>+ <span>+ {t("publicProject:taskDetail.dueWithDate", {+ date: formatDateShort(task.dueDate),+ })}+ </span></div>)}@@ -150,7 +169,7 @@ export function PublicTaskDetailModal({{labels.length > 0 && (<div className="space-y-2"><h3 className="text-xs font-medium text-muted-foreground uppercase tracking-wide">- Labels+ {t("publicProject:taskDetail.labels")}</h3><PublicTaskLabels labels={labels} /></div>@@ -159,7 +178,7 @@ export function PublicTaskDetailModal({{externalLinks.length > 0 && (<div className="space-y-3"><h3 className="text-xs font-medium text-muted-foreground uppercase tracking-wide">- External Links+ {t("publicProject:taskDetail.externalLinks")}</h3>{pullRequests.length > 0 && (@@ -181,7 +200,7 @@ export function PublicTaskDetailModal({<div className="flex items-center gap-2.5 flex-1 min-w-0"><div className="flex flex-col gap-0.5 flex-1 min-w-0"><span className="text-sm font-medium text-foreground truncate">- {pr.title || "Pull Request"}+ {pr.title || t("tasks:pr.label")}</span><span className="text-xs text-muted-foreground">{repoName}#{pr.externalId}@@ -217,7 +236,8 @@ export function PublicTaskDetailModal({<GitPullRequest className="w-3.5 h-3.5 text-muted-foreground" /><div className="flex flex-col gap-0.5 flex-1 min-w-0"><span className="text-sm font-medium text-foreground truncate">- {issue.title || "Issue"}+ {issue.title ||+ t("publicProject:taskDetail.issueFallback")}</span><span className="text-xs text-muted-foreground">#{issue.externalId}@@ -257,19 +277,19 @@ export function PublicTaskDetailModal({<div className="grid grid-cols-2 gap-4 pt-4 border-t border-border/50"><div><div className="text-xs text-muted-foreground mb-1">- Created+ {t("publicProject:taskDetail.created")}</div><div className="text-sm text-foreground">- {format(new Date(task.createdAt), "MMM d, yyyy")}+ {formatDateMedium(task.createdAt)}</div></div>{task.dueDate && (<div><div className="text-xs text-muted-foreground mb-1">- Due Date+ {t("publicProject:taskDetail.dueDateLabel")}</div><div className="text-sm text-foreground">- {format(new Date(task.dueDate), "MMM d, yyyy")}+ {formatDateMedium(task.dueDate)}</div></div>)}diff --git a/apps/web/src/components/public-project/task-row.tsx b/apps/web/src/components/public-project/task-row.tsxindex 2c3baf2cf..2cfcfae5b 100644--- a/apps/web/src/components/public-project/task-row.tsx+++ b/apps/web/src/components/public-project/task-row.tsx@@ -1,7 +1,8 @@-import { format } from "date-fns";import { Calendar, CalendarClock, CalendarX } from "lucide-react";+import { useTranslation } from "react-i18next";import { Avatar, AvatarFallback, AvatarImage } from "@/components/ui/avatar";import { dueDateStatusColors, getDueDateStatus } from "@/lib/due-date-status";+import { formatDateShort } from "@/lib/format";import { getPriorityIcon } from "@/lib/priority";import type { ExternalLink } from "@/types/external-link";import type Task from "@/types/task";@@ -22,6 +23,7 @@ export function PublicTaskRow({projectSlug,onTaskClick,}: PublicTaskRowProps) {+ const { t } = useTranslation();const labels = task.labels || [];const externalLinks = task.externalLinks || [];@@ -30,7 +32,9 @@ export function PublicTaskRow({type="button"className="group w-full text-left px-4 py-3 rounded-lg flex items-center gap-4 bg-card border border-border shadow-sm hover:shadow-md transition-all duration-200 ease-out hover:border-border/70 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 focus:ring-offset-background"onClick={() => onTaskClick(task)}- aria-label={`View details for task ${task.title}`}+ aria-label={t("publicProject:taskCard.viewDetailsAria", {+ title: task.title,+ })}><div className="flex-1 min-w-0 flex items-center gap-3"><div className="text-xs font-mono text-muted-foreground shrink-0 font-medium">@@ -76,7 +80,7 @@ export function PublicTaskRow({getDueDateStatus(task.dueDate) === "no-due-date") && (<Calendar className="w-3 h-3" />)}- <span>{format(new Date(task.dueDate), "MMM d")}</span>+ <span>{formatDateShort(task.dueDate)}</span></div>)}diff --git a/apps/web/src/components/public-project/theme-toggle.tsx b/apps/web/src/components/public-project/theme-toggle.tsxindex 1780d50c6..0f820fe0a 100644--- a/apps/web/src/components/public-project/theme-toggle.tsx+++ b/apps/web/src/components/public-project/theme-toggle.tsx@@ -1,10 +1,12 @@import { Moon, Sun } from "lucide-react";import type { MouseEvent } from "react";+import { useTranslation } from "react-i18next";import { Button } from "@/components/ui/button";import { getClickCoordinates } from "@/lib/get-click-coordinates";import { useUserPreferencesStore } from "@/store/user-preferences";export function ThemeToggle() {+ const { t } = useTranslation();const { theme, setTheme } = useUserPreferencesStore();const toggleTheme = (event: MouseEvent<HTMLButtonElement>) => {@@ -19,7 +21,11 @@ export function ThemeToggle() {size="sm"onClick={toggleTheme}className="h-8 w-8 p-0"- aria-label={`Switch to ${theme === "dark" ? "light" : "dark"} mode`}+ aria-label={+ theme === "dark"+ ? t("publicProject:theme.switchToLight")+ : t("publicProject:theme.switchToDark")+ }>{theme === "dark" ? (<Sun className="w-3.5 h-3.5" />diff --git a/apps/web/src/components/search-command-menu/index.tsx b/apps/web/src/components/search-command-menu/index.tsxindex 73e8b1d82..d5bde9b86 100644--- a/apps/web/src/components/search-command-menu/index.tsx+++ b/apps/web/src/components/search-command-menu/index.tsx@@ -9,6 +9,7 @@ import {Zap,} from "lucide-react";import { Fragment, useEffect, useMemo, useState } from "react";+import { useTranslation } from "react-i18next";import {Command,CommandCollection,@@ -53,15 +54,8 @@ type SearchCommandMenuProps = {setOpen: (open: boolean) => void;};-const GROUP_LABELS: Record<SearchResultItem["type"], string> = {- task: "Tasks",- project: "Projects",- workspace: "Workspaces",- comment: "Comments",- activity: "Activities",-};-function SearchCommandMenu({ open, setOpen }: SearchCommandMenuProps) {+ const { t } = useTranslation();const [query, setQuery] = useState("");const { data: workspace } = useActiveWorkspace();const navigate = useNavigate();@@ -172,19 +166,36 @@ function SearchCommandMenu({ open, setOpen }: SearchCommandMenuProps) {{} as Record<string, SearchResultItem[]>,);+ const groupLabel = (type: string) => {+ switch (type as SearchResultItem["type"]) {+ case "task":+ return t("navigation:search.groups.task");+ case "project":+ return t("navigation:search.groups.project");+ case "workspace":+ return t("navigation:search.groups.workspace");+ case "comment":+ return t("navigation:search.groups.comment");+ case "activity":+ return t("navigation:search.groups.activity");+ default:+ return t("navigation:search.groups.fallback");+ }+ };+return Object.entries(grouped).map(([type, items]) => ({value: type,- label: GROUP_LABELS[type as SearchResultItem["type"]] ?? "Results",+ label: groupLabel(type),items,}));- }, [searchEnabled, searchResults?.results]);+ }, [searchEnabled, searchResults?.results, t]);return (<CommandDialog open={open} onOpenChange={setOpen}><CommandDialogPopup><Command items={groupedItems}><CommandInput- placeholder="Search tasks, projects, comments..."+ placeholder={t("navigation:search.inputPlaceholder")}value={query}onChange={(event) => setQuery(event.target.value)}/>@@ -194,8 +205,8 @@ function SearchCommandMenu({ open, setOpen }: SearchCommandMenuProps) {<Search className="h-8 w-8 mx-auto mb-2 text-muted-foreground" /><p className="text-sm text-muted-foreground">{searchEnabled- ? "No results found."- : "Type at least 3 characters to search"}+ ? t("navigation:commandPalette.empty")+ : t("navigation:search.minCharsHint")}</p></div></CommandEmpty>diff --git a/apps/web/src/components/search.tsx b/apps/web/src/components/search.tsxindex d2bd8ac60..520b246bd 100644--- a/apps/web/src/components/search.tsx+++ b/apps/web/src/components/search.tsx@@ -2,12 +2,14 @@import { SearchIcon } from "lucide-react";import { useState } from "react";+import { useTranslation } from "react-i18next";import SearchCommandMenu from "@/components/search-command-menu";import { SidebarGroup } from "@/components/ui/sidebar";import { shortcuts } from "@/constants/shortcuts";import { useRegisterShortcuts } from "@/hooks/use-keyboard-shortcuts";export default function Search() {+ const { t } = useTranslation();const [open, setOpen] = useState(false);useRegisterShortcuts({@@ -31,7 +33,9 @@ export default function Search() {className="-ms-1 me-3 text-muted-foreground/80"size={16}/>- <span className="font-normal text-muted-foreground/70">Search</span>+ <span className="font-normal text-muted-foreground/70">+ {t("navigation:commandPalette.search")}+ </span></span><kbd className="-me-0.5 ms-6 inline-flex h-4 max-h-full items-center rounded border border-border/70 bg-background px-1 font-[inherit] font-medium text-[0.625rem] text-muted-foreground/60">{shortcuts.search.prefix}diff --git a/apps/web/src/components/settings-layout.tsx b/apps/web/src/components/settings-layout.tsxindex 18f27d77e..6d36661fe 100644--- a/apps/web/src/components/settings-layout.tsx+++ b/apps/web/src/components/settings-layout.tsx@@ -1,6 +1,7 @@import { useNavigate } from "@tanstack/react-router";import { AlertTriangle, ArrowLeft } from "lucide-react";import type { ReactNode } from "react";+import { useTranslation } from "react-i18next";import Layout from "@/components/common/layout";import {Breadcrumb,@@ -36,11 +37,13 @@ export function SettingsLayout({title,description,backPath,- backLabel = "Back",+ backLabel,children,className,}: SettingsLayoutProps) {+ const { t } = useTranslation();const navigate = useNavigate();+ const resolvedBackLabel = backLabel ?? t("navigation:settingsLayout.back");const handleBack = () => {if (backPath) {@@ -62,7 +65,7 @@ export function SettingsLayout({</TooltipTrigger><TooltipContent><p className="flex items-center gap-2 text-[10px]">- Toggle sidebar+ {t("navigation:settingsLayout.toggleSidebar")}<KbdSequencekeys={[shortcuts.sidebar.prefix,@@ -81,7 +84,9 @@ export function SettingsLayout({<BreadcrumbList><BreadcrumbItem><BreadcrumbLink href="/dashboard/settings">- <h1 className="text-xs text-card-foreground">Settings</h1>+ <h1 className="text-xs text-card-foreground">+ {t("navigation:page.settingsTitle")}+ </h1></BreadcrumbLink></BreadcrumbItem><BreadcrumbSeparator />@@ -100,7 +105,7 @@ export function SettingsLayout({className="gap-1.5 text-xs"><ArrowLeft className="w-3 h-3" />- {backLabel}+ {resolvedBackLabel}</Button>)}</div>diff --git a/apps/web/src/components/settings/api-key-created-modal.tsx b/apps/web/src/components/settings/api-key-created-modal.tsxindex ba9dc596c..8c71c3f8a 100644--- a/apps/web/src/components/settings/api-key-created-modal.tsx+++ b/apps/web/src/components/settings/api-key-created-modal.tsx@@ -1,5 +1,6 @@import { Check, Copy } from "lucide-react";import { useState } from "react";+import { useTranslation } from "react-i18next";import { toast } from "@/lib/toast";import { Alert, AlertDescription, AlertTitle } from "../ui/alert";import { Button } from "../ui/button";@@ -25,30 +26,33 @@ export function ApiKeyCreatedModal({open,onClose,}: ApiKeyCreatedModalProps) {+ const { t } = useTranslation();const [copied, setCopied] = useState(false);const handleCopy = () => {navigator.clipboard.writeText(apiKey);setCopied(true);- toast.success("API key copied to clipboard");+ toast.success(t("settings:apiKey.createdModal.toastCopied"));};return (<Dialog open={open} onOpenChange={onClose}><DialogContent className="max-w-[446px]"><DialogHeader>- <DialogTitle>API Key Created</DialogTitle>+ <DialogTitle>{t("settings:apiKey.createdModal.title")}</DialogTitle><DialogDescription>- Your API key{" "}- <span className="font-medium text-foreground">"{keyName}"</span> has- been created successfully.+ {t("settings:apiKey.createdModal.description", {+ keyName,+ })}</DialogDescription></DialogHeader><div className="space-y-4 px-6 py-4"><div className="space-y-2"><div className="flex items-center justify-between">- <p className="text-xs font-medium">Your API Key</p>+ <p className="text-xs font-medium">+ {t("settings:apiKey.createdModal.yourApiKey")}+ </p><Buttonvariant="ghost"size="sm"@@ -58,12 +62,12 @@ export function ApiKeyCreatedModal({{copied ? (<><Check className="h-3 w-3 text-success-foreground" />- Copied+ {t("settings:apiKey.createdModal.copied")}</>) : (<><Copy className="h-3 w-3" />- Copy+ {t("settings:apiKey.createdModal.copy")}</>)}</Button>@@ -76,9 +80,11 @@ export function ApiKeyCreatedModal({</div><Alert>- <AlertTitle>Success! Your API key has been created</AlertTitle>+ <AlertTitle>+ {t("settings:apiKey.createdModal.alertTitle")}+ </AlertTitle><AlertDescription>- Copy this key now. You won't be able to see it again.+ {t("settings:apiKey.createdModal.alertDescription")}</AlertDescription></Alert></div>@@ -89,7 +95,9 @@ export function ApiKeyCreatedModal({disabled={!copied}className="h-8 text-xs w-full sm:w-auto">- {copied ? "Done" : "Copy key to continue"}+ {copied+ ? t("settings:apiKey.createdModal.done")+ : t("settings:apiKey.createdModal.copyToContinue")}</Button></DialogFooter></DialogContent>diff --git a/apps/web/src/components/settings/api-key-table.tsx b/apps/web/src/components/settings/api-key-table.tsxindex 354ddd1fb..dcf872319 100644--- a/apps/web/src/components/settings/api-key-table.tsx+++ b/apps/web/src/components/settings/api-key-table.tsx@@ -1,5 +1,6 @@import { Trash2 } from "lucide-react";import { useMemo, useState } from "react";+import { useTranslation } from "react-i18next";import useDeleteApiKey from "@/hooks/mutations/api-key/use-delete-api-key";import { cn } from "@/lib/cn";import { toast } from "@/lib/toast";@@ -41,25 +42,26 @@ function formatDate(value: Date | string | null) {}).format(date);}-function getExpirationState(expiresAt: Date | string | null) {- if (!expiresAt) {- return { label: "Never", isExpired: false };- }-- const expirationDate = new Date(expiresAt);- const isExpired = expirationDate.getTime() <= Date.now();-- return {- label: formatDate(expirationDate),- isExpired,- };-}-export function ApiKeyTable({ apiKeys, isLoading }: ApiKeyTableProps) {+ const { t } = useTranslation();const { mutateAsync: deleteApiKey } = useDeleteApiKey();const [deletingId, setDeletingId] = useState<string | null>(null);const [pendingDeleteId, setPendingDeleteId] = useState<string | null>(null);+ const getExpirationState = (expiresAt: Date | string | null) => {+ if (!expiresAt) {+ return { label: t("common:formats.never"), isExpired: false };+ }++ const expirationDate = new Date(expiresAt);+ const isExpired = expirationDate.getTime() <= Date.now();++ return {+ label: formatDate(expirationDate),+ isExpired,+ };+ };+const pendingDeleteKey = useMemo(() => apiKeys.find((key) => key.id === pendingDeleteId) ?? null,[apiKeys, pendingDeleteId],@@ -71,11 +73,13 @@ export function ApiKeyTable({ apiKeys, isLoading }: ApiKeyTableProps) {setDeletingId(pendingDeleteKey.id);try {await deleteApiKey(pendingDeleteKey.id);- toast.success("API key deleted successfully");+ toast.success(t("settings:apiKey.table.toastDeleted"));setPendingDeleteId(null);} catch (error) {toast.error(- error instanceof Error ? error.message : "Failed to delete API key",+ error instanceof Error+ ? error.message+ : t("settings:apiKey.table.toastDeleteError"),);} finally {setDeletingId(null);@@ -87,7 +91,7 @@ export function ApiKeyTable({ apiKeys, isLoading }: ApiKeyTableProps) {<Frame><FramePanel className="p-8"><p className="text-sm text-muted-foreground text-center">- Loading API keys...+ {t("settings:apiKey.table.loading")}</p></FramePanel></Frame>@@ -99,7 +103,7 @@ export function ApiKeyTable({ apiKeys, isLoading }: ApiKeyTableProps) {<Frame><FramePanel className="p-8"><p className="text-sm text-muted-foreground text-center">- No API keys yet. Create one to get started.+ {t("settings:apiKey.table.empty")}</p></FramePanel></Frame>@@ -112,11 +116,13 @@ export function ApiKeyTable({ apiKeys, isLoading }: ApiKeyTableProps) {<Table><TableHeader><TableRow>- <TableHead>Name</TableHead>- <TableHead>Key</TableHead>- <TableHead>Created</TableHead>- <TableHead>Expires</TableHead>- <TableHead className="w-[90px] text-right">Actions</TableHead>+ <TableHead>{t("settings:apiKey.table.columnName")}</TableHead>+ <TableHead>{t("settings:apiKey.table.columnKey")}</TableHead>+ <TableHead>{t("settings:apiKey.table.columnCreated")}</TableHead>+ <TableHead>{t("settings:apiKey.table.columnExpires")}</TableHead>+ <TableHead className="w-[90px] text-right">+ {t("settings:apiKey.table.columnActions")}+ </TableHead></TableRow></TableHeader><TableBody>@@ -137,7 +143,7 @@ export function ApiKeyTable({ apiKeys, isLoading }: ApiKeyTableProps) {expiration.isExpired && "text-destructive-foreground",)}>- {apiKey.name || "Unnamed Key"}+ {apiKey.name || t("settings:apiKey.table.unnamedKey")}</TableCell><TableCell><code className="text-xs bg-background px-2 py-1 rounded border border-border">@@ -149,7 +155,11 @@ export function ApiKeyTable({ apiKeys, isLoading }: ApiKeyTableProps) {</TableCell><TableCell>{expiration.isExpired ? (- <Badge variant="error">Expired {expiration.label}</Badge>+ <Badge variant="error">+ {t("settings:apiKey.table.expiredBadge", {+ label: expiration.label,+ })}+ </Badge>) : (<span className="text-muted-foreground">{expiration.label}@@ -163,7 +173,11 @@ export function ApiKeyTable({ apiKeys, isLoading }: ApiKeyTableProps) {className="h-8 w-8 text-destructive hover:text-destructive"onClick={() => setPendingDeleteId(apiKey.id)}disabled={deletingId === apiKey.id}- aria-label={`Delete ${apiKey.name || "API key"}`}+ aria-label={t("settings:apiKey.table.deleteAria", {+ name:+ apiKey.name ||+ t("settings:apiKey.table.deleteAriaFallback"),+ })}><Trash2 className="h-4 w-4" /></Button>@@ -185,26 +199,29 @@ export function ApiKeyTable({ apiKeys, isLoading }: ApiKeyTableProps) {><AlertDialogContent><AlertDialogHeader>- <AlertDialogTitle>Delete API key?</AlertDialogTitle>+ <AlertDialogTitle>+ {t("settings:apiKey.table.deleteConfirmTitle")}+ </AlertDialogTitle><AlertDialogDescription>- This action cannot be undone. This will permanently delete- <span className="font-medium text-foreground">- {" "}- {pendingDeleteKey?.name || "this API key"}- </span>- .+ {t("settings:apiKey.table.deleteConfirmDescription", {+ name:+ pendingDeleteKey?.name ||+ t("settings:apiKey.table.deleteFallbackName"),+ })}</AlertDialogDescription></AlertDialogHeader><AlertDialogFooter><AlertDialogClose render={<Button variant="outline" />}>- Cancel+ {t("common:actions.cancel")}</AlertDialogClose><Buttonvariant="destructive"onClick={handleDelete}disabled={Boolean(deletingId)}>- {deletingId ? "Deleting..." : "Delete"}+ {deletingId+ ? t("settings:apiKey.table.deleting")+ : t("settings:apiKey.table.delete")}</Button></AlertDialogFooter></AlertDialogContent>diff --git a/apps/web/src/components/settings/create-api-key-dialog.tsx b/apps/web/src/components/settings/create-api-key-dialog.tsxindex 8bbd89005..34ae56912 100644--- a/apps/web/src/components/settings/create-api-key-dialog.tsx+++ b/apps/web/src/components/settings/create-api-key-dialog.tsx@@ -1,6 +1,7 @@import { standardSchemaResolver } from "@hookform/resolvers/standard-schema";-import { useState } from "react";+import { useMemo, useState } from "react";import { useForm } from "react-hook-form";+import { useTranslation } from "react-i18next";import { z } from "zod";import useCreateApiKey from "@/hooks/mutations/api-key/use-create-api-key";import { toast } from "@/lib/toast";@@ -39,38 +40,10 @@ const EXPIRATION_SECONDS = {"90d": 7776000,} as const;-const EXPIRATION_OPTIONS = [- {- label: "1 day",- value: "1d",- },- {- label: "7 days",- value: "7d",- },- {- label: "30 days",- value: "30d",- },- {- label: "90 days",- value: "90d",- },- {- label: "Never",- value: "never",- },-] as const;--const createApiKeySchema = z.object({- name: z- .string()- .min(1, "Name is required")- .min(3, "Name must be at least 3 characters"),- expiresIn: z.string().min(1, "Expiration is required"),-});--type FormValues = z.infer<typeof createApiKeySchema>;+type FormValues = {+ name: string;+ expiresIn: string;+};type CreateApiKeyDialogProps = {open: boolean;@@ -83,9 +56,54 @@ export function CreateApiKeyDialog({onClose,onSuccess,}: CreateApiKeyDialogProps) {+ const { t } = useTranslation();const { mutateAsync: createApiKey } = useCreateApiKey();const [isSubmitting, setIsSubmitting] = useState(false);+ const createApiKeySchema = useMemo(+ () =>+ z.object({+ name: z+ .string()+ .min(1, t("settings:apiKey.createDialog.validation.nameRequired"))+ .min(3, t("settings:apiKey.createDialog.validation.nameShort")),+ expiresIn: z+ .string()+ .min(+ 1,+ t("settings:apiKey.createDialog.validation.expirationRequired"),+ ),+ }),+ [t],+ );++ const expirationOptions = useMemo(+ () =>+ [+ {+ label: t("settings:apiKey.createDialog.expiration1d"),+ value: "1d",+ },+ {+ label: t("settings:apiKey.createDialog.expiration7d"),+ value: "7d",+ },+ {+ label: t("settings:apiKey.createDialog.expiration30d"),+ value: "30d",+ },+ {+ label: t("settings:apiKey.createDialog.expiration90d"),+ value: "90d",+ },+ {+ label: t("settings:apiKey.createDialog.expirationNever"),+ value: "never",+ },+ ] as const,+ [t],+ );+const form = useForm<FormValues>({resolver: standardSchemaResolver(createApiKeySchema),defaultValues: {@@ -112,7 +130,9 @@ export function CreateApiKeyDialog({onClose();} catch (error) {toast.error(- error instanceof Error ? error.message : "Failed to create API key",+ error instanceof Error+ ? error.message+ : t("settings:apiKey.createDialog.failedCreate"),);} finally {setIsSubmitting(false);@@ -130,9 +150,9 @@ export function CreateApiKeyDialog({<Dialog open={open} onOpenChange={handleClose}><DialogContent className="sm:max-w-lg p-0 gap-0"><DialogHeader className="px-6 py-5 border-b border-border">- <DialogTitle>Create API Key</DialogTitle>+ <DialogTitle>{t("settings:apiKey.createDialog.title")}</DialogTitle><DialogDescription>- Create a new API key to access the Kaneo API programmatically.+ {t("settings:apiKey.createDialog.description")}</DialogDescription></DialogHeader>@@ -144,16 +164,20 @@ export function CreateApiKeyDialog({name="name"render={({ field }) => (<FormItem>- <FormLabel>Name</FormLabel>+ <FormLabel>+ {t("settings:apiKey.createDialog.nameLabel")}+ </FormLabel><FormControl><Input- placeholder="My API Key"+ placeholder={t(+ "settings:apiKey.createDialog.namePlaceholder",+ )}{...field}disabled={isSubmitting}/></FormControl><FormDescription>- A descriptive name for this API key+ {t("settings:apiKey.createDialog.nameDescription")}</FormDescription><FormMessage /></FormItem>@@ -165,7 +189,9 @@ export function CreateApiKeyDialog({name="expiresIn"render={({ field }) => (<FormItem>- <FormLabel>Expiration</FormLabel>+ <FormLabel>+ {t("settings:apiKey.createDialog.expirationLabel")}+ </FormLabel><FormControl><SelectonValueChange={field.onChange}@@ -173,10 +199,14 @@ export function CreateApiKeyDialog({disabled={isSubmitting}><SelectTrigger>- <SelectValue placeholder="Select expiration" />+ <SelectValue+ placeholder={t(+ "settings:apiKey.createDialog.expirationPlaceholder",+ )}+ /></SelectTrigger><SelectContent>- {EXPIRATION_OPTIONS.map((option) => (+ {expirationOptions.map((option) => (<SelectItem key={option.value} value={option.value}>{option.label}</SelectItem>@@ -185,8 +215,7 @@ export function CreateApiKeyDialog({</Select></FormControl><FormDescription>- Choose how long this API key should remain valid. Never- will create a key without an automatic expiry.+ {t("settings:apiKey.createDialog.expirationDescription")}</FormDescription><FormMessage /></FormItem>@@ -201,10 +230,12 @@ export function CreateApiKeyDialog({onClick={handleClose}disabled={isSubmitting}>- Cancel+ {t("common:actions.cancel")}</Button><Button type="submit" disabled={isSubmitting}>- {isSubmitting ? "Creating..." : "Create"}+ {isSubmitting+ ? t("settings:apiKey.createDialog.creating")+ : t("settings:apiKey.createDialog.create")}</Button></DialogFooter></form>diff --git a/apps/web/src/components/shared/modals/create-project-modal.tsx b/apps/web/src/components/shared/modals/create-project-modal.tsxindex dd520ad9a..7071b1b20 100644--- a/apps/web/src/components/shared/modals/create-project-modal.tsx+++ b/apps/web/src/components/shared/modals/create-project-modal.tsx@@ -1,6 +1,7 @@import { useQueryClient } from "@tanstack/react-query";import { useNavigate } from "@tanstack/react-router";import { useState } from "react";+import { useTranslation } from "react-i18next";import {Breadcrumb,BreadcrumbItem,@@ -35,6 +36,7 @@ type CreateProjectModalProps = {};function CreateProjectModal({ open, onClose }: CreateProjectModalProps) {+ const { t } = useTranslation();const [name, setName] = useState("");const [slug, setSlug] = useState("");const [selectedIcon, setSelectedIcon] = useState("Layout");@@ -84,7 +86,9 @@ function CreateProjectModal({ open, onClose }: CreateProjectModalProps) {handleClose();} catch (error) {toast.error(- error instanceof Error ? error.message : "Failed to create project",+ error instanceof Error+ ? error.message+ : t("common:modals.createProject.errorToast"),);}};@@ -99,21 +103,23 @@ function CreateProjectModal({ open, onClose }: CreateProjectModalProps) {<Dialog open={open} onOpenChange={handleClose}><DialogContent className="max-w-md" showCloseButton={false}><DialogHeader className="px-3 pt-4 pb-1 gap-1.5">- <DialogTitle className="sr-only">Create a new project</DialogTitle>+ <DialogTitle className="sr-only">+ {t("common:modals.createProject.title")}+ </DialogTitle><Breadcrumb><BreadcrumbList className="gap-1 text-xs"><BreadcrumbItem className="text-muted-foreground font-medium tracking-wide">- {workspace?.name?.toUpperCase() || "WORKSPACE"}+ {workspace?.name?.toUpperCase() ||+ t("common:modals.createProject.workspaceFallback")}</BreadcrumbItem><BreadcrumbSeparator className="[&>svg]:size-3.5" /><BreadcrumbItem className="text-foreground font-medium">- Create a new project+ {t("common:modals.createProject.breadcrumbNew")}</BreadcrumbItem></BreadcrumbList></Breadcrumb><DialogDescription className="sr-only">- Create a new project in your workspace by providing a name, key, and- selecting an icon.+ {t("common:modals.createProject.description")}</DialogDescription></DialogHeader>@@ -133,7 +139,7 @@ function CreateProjectModal({ open, onClose }: CreateProjectModalProps) {variant="outline"size="icon-sm"className="h-8 w-8 p-0"- title="Pick icon"+ title={t("common:modals.createProject.pickIcon")}><SelectedIcon className="h-4 w-4" /></Button>@@ -143,7 +149,7 @@ function CreateProjectModal({ open, onClose }: CreateProjectModalProps) {<Inputvalue={iconSearch}onChange={(e) => setIconSearch(e.target.value)}- placeholder="Search icons..."+ placeholder={t("common:modals.createProject.searchIcons")}className="h-8 text-xs"/><div className="max-h-[280px] overflow-y-auto pr-1">@@ -183,7 +189,7 @@ function CreateProjectModal({ open, onClose }: CreateProjectModalProps) {value={name}onChange={handleNameChange}autoFocus- placeholder="Project name"+ placeholder={t("common:modals.createProject.projectName")}className="w-full [&_[data-slot=input]]:h-auto [&_[data-slot=input]]:px-0 [&_[data-slot=input]]:py-2 [&_[data-slot=input]]:text-2xl [&_[data-slot=input]]:leading-tight [&_[data-slot=input]]:font-semibold [&_[data-slot=input]]:tracking-tight [&_[data-slot=input]]:text-foreground [&_[data-slot=input]]:placeholder:text-muted-foreground [&_[data-slot=input]]:outline-none"required/>@@ -193,7 +199,7 @@ function CreateProjectModal({ open, onClose }: CreateProjectModalProps) {<div className="flex items-center gap-3 p-3 rounded-xl bg-muted/50 border border-border"><div className="flex items-center gap-2"><span className="text-sm font-medium text-muted-foreground">- Key:+ {t("common:modals.createProject.keyLabel")}</span><Inputid="project-key"@@ -206,7 +212,9 @@ function CreateProjectModal({ open, onClose }: CreateProjectModalProps) {/></div><div className="flex-1 text-xs text-muted-foreground opacity-80">- Used for ticket IDs (e.g., {slug || "ABC"}-123)+ {t("common:modals.createProject.keyHint", {+ example: slug || "ABC",+ })}</div></div></div>@@ -219,7 +227,7 @@ function CreateProjectModal({ open, onClose }: CreateProjectModalProps) {size="sm"className="border-border text-foreground hover:bg-accent">- Cancel+ {t("common:actions.cancel")}</Button><Buttontype="submit"@@ -227,7 +235,7 @@ function CreateProjectModal({ open, onClose }: CreateProjectModalProps) {size="sm"className="bg-primary hover:bg-primary/90 disabled:opacity-50">- Create Project+ {t("common:modals.createProject.createButton")}</Button></DialogFooter></form>diff --git a/apps/web/src/components/shared/modals/create-task-modal.tsx b/apps/web/src/components/shared/modals/create-task-modal.tsxindex da4c4cde7..ad88bce50 100644--- a/apps/web/src/components/shared/modals/create-task-modal.tsx+++ b/apps/web/src/components/shared/modals/create-task-modal.tsx@@ -1,5 +1,4 @@import { useLocation } from "@tanstack/react-router";-import { format } from "date-fns";import { produce } from "immer";import {CalendarIcon,@@ -10,7 +9,8 @@ import {UserIcon,X,} from "lucide-react";-import { useCallback, useEffect, useRef, useState } from "react";+import { useCallback, useEffect, useMemo, useRef, useState } from "react";+import { useTranslation } from "react-i18next";import TaskDescriptionEditor from "@/components/task/task-description-editor";import { Avatar, AvatarFallback, AvatarImage } from "@/components/ui/avatar";import { Badge } from "@/components/ui/badge";@@ -43,6 +43,7 @@ import { useUpdateTask } from "@/hooks/mutations/task/use-update-task";import useGetLabelsByWorkspace from "@/hooks/queries/label/use-get-labels-by-workspace";import useActiveWorkspace from "@/hooks/queries/workspace/use-active-workspace";import { cn } from "@/lib/cn";+import { formatDateMedium } from "@/lib/format";import { getPriorityIcon } from "@/lib/priority";import { toast } from "@/lib/toast";import useProjectStore from "@/store/project";@@ -100,61 +101,69 @@ function normalizeTask(};}-const labelColors = [- {- value: "gray" as LabelColor,- label: "Stone",- color: "var(--color-stone-500)",- },- {- value: "dark-gray" as LabelColor,- label: "Slate",- color: "var(--color-slate-500)",- },- {- value: "purple" as LabelColor,- label: "Lavender",- color: "var(--color-violet-500)",- },- {- value: "teal" as LabelColor,- label: "Sage",- color: "var(--color-emerald-600)",- },- {- value: "green" as LabelColor,- label: "Forest",- color: "var(--color-green-600)",- },- {- value: "yellow" as LabelColor,- label: "Amber",- color: "var(--color-amber-600)",- },- {- value: "orange" as LabelColor,- label: "Terracotta",- color: "var(--color-orange-600)",- },- {- value: "pink" as LabelColor,- label: "Rose",- color: "var(--color-rose-600)",- },- {- value: "red" as LabelColor,- label: "Crimson",- color: "var(--color-red-600)",- },-];-function CreateTaskModal({open,onClose,status,projectId,}: CreateTaskModalProps) {+ const { t } = useTranslation();const { project, setProject } = useProjectStore();++ const labelColors = useMemo(+ () =>+ [+ {+ value: "gray" as LabelColor,+ labelKey: "stone" as const,+ color: "var(--color-stone-500)",+ },+ {+ value: "dark-gray" as LabelColor,+ labelKey: "slate" as const,+ color: "var(--color-slate-500)",+ },+ {+ value: "purple" as LabelColor,+ labelKey: "lavender" as const,+ color: "var(--color-violet-500)",+ },+ {+ value: "teal" as LabelColor,+ labelKey: "sage" as const,+ color: "var(--color-emerald-600)",+ },+ {+ value: "green" as LabelColor,+ labelKey: "forest" as const,+ color: "var(--color-green-600)",+ },+ {+ value: "yellow" as LabelColor,+ labelKey: "amber" as const,+ color: "var(--color-amber-600)",+ },+ {+ value: "orange" as LabelColor,+ labelKey: "terracotta" as const,+ color: "var(--color-orange-600)",+ },+ {+ value: "pink" as LabelColor,+ labelKey: "rose" as const,+ color: "var(--color-rose-600)",+ },+ {+ value: "red" as LabelColor,+ labelKey: "crimson" as const,+ color: "var(--color-red-600)",+ },+ ].map(({ labelKey, ...rest }) => ({+ ...rest,+ label: t(`common:modals.createTask.labelColors.${labelKey}`),+ })),+ [t],+ );const location = useLocation();const { data: workspace } = useActiveWorkspace();const { mutateAsync: createLabel } = useCreateLabel();@@ -303,13 +312,13 @@ function CreateTaskModal({}if (!resolvedProjectId) {- toast.error("Choose a project before uploading images.");+ toast.error(t("common:modals.createTask.chooseProjectForImages"));return null;}const draftStatus = "planned";const draftPromise = createTask({- title: title.trim() || "Untitled task",+ title: title.trim() || t("common:modals.createTask.untitledTask"),description: description.trim() || "",userId: assigneeId,priority,@@ -327,7 +336,9 @@ function CreateTaskModal({return createdTask.id;} catch (error) {toast.error(- error instanceof Error ? error.message : "Failed to prepare task",+ error instanceof Error+ ? error.message+ : t("common:modals.createTask.prepareTaskError"),);return null;} finally {@@ -343,6 +354,7 @@ function CreateTaskModal({priority,resolvedProjectId,title,+ t,]);const handleSubmit = async (e: React.FormEvent) => {@@ -396,7 +408,9 @@ function CreateTaskModal({setDraftTask(savedTask);syncTaskIntoProject(savedTask);toast.success(- draftTask ? "Task updated successfully" : "Task created successfully",+ draftTask+ ? t("common:modals.createTask.successUpdated")+ : t("common:modals.createTask.successCreated"),);if (createMore) {@@ -420,20 +434,32 @@ function CreateTaskModal({} catch (error) {didSubmitRef.current = false;toast.error(- error instanceof Error ? error.message : "Failed to create task",+ error instanceof Error+ ? error.message+ : t("common:modals.createTask.createError"),);}};- const priorityOptions = [- { value: "no-priority", label: "No Priority" },- { value: "low", label: "Low" },- { value: "medium", label: "Medium" },- { value: "high", label: "High" },- { value: "urgent", label: "Urgent" },- ];+ const priorityOptions = useMemo(+ () =>+ (["no-priority", "low", "medium", "high", "urgent"] as const).map(+ (value) => ({+ value,+ label: t(`tasks:priority.${value}`),+ }),+ ),+ [t],+ );const selectedPriority = priorityOptions.find((p) => p.value === priority);++ const statusLabel = useMemo(() => {+ if (status) {+ return t(`tasks:status.${status}`);+ }+ return t("tasks:status.in-progress");+ }, [status, t]);const selectedUser = workspace?.members?.find((u) => u.userId === assigneeId);useEffect(() => {@@ -527,11 +553,13 @@ function CreateTaskModal({};setLabels([...labels, newLabel]);- toast.success("Label created");+ toast.success(t("common:modals.createTask.labelCreated"));handleLabelsClose();} catch (error) {toast.error(- error instanceof Error ? error.message : "Failed to create label",+ error instanceof Error+ ? error.message+ : t("common:modals.createTask.labelCreateError"),);}};@@ -551,18 +579,18 @@ function CreateTaskModal({<Breadcrumb><BreadcrumbList><BreadcrumbItem className="text-muted-foreground font-semibold tracking-wider text-sm">- {project?.slug?.toUpperCase() || "TASK"}+ {project?.slug?.toUpperCase() ||+ t("common:modals.createTask.breadcrumbTask")}</BreadcrumbItem><BreadcrumbSeparator /><BreadcrumbItem className="text-foreground font-medium text-sm">- New Task+ {t("common:modals.createTask.title")}</BreadcrumbItem></BreadcrumbList></Breadcrumb></DialogTitle><DialogDescription className="sr-only">- Create a new task by providing a title, description, and other- details.+ {t("common:modals.createTask.description")}</DialogDescription></DialogHeader>@@ -576,7 +604,7 @@ function CreateTaskModal({value={title}onChange={(e) => setTitle(e.target.value)}autoFocus- placeholder="Task title"+ placeholder={t("common:modals.createTask.taskTitlePlaceholder")}className="w-full [&_[data-slot=input]]:h-auto [&_[data-slot=input]]:px-0 [&_[data-slot=input]]:py-3 [&_[data-slot=input]]:text-2xl [&_[data-slot=input]]:leading-tight [&_[data-slot=input]]:font-semibold [&_[data-slot=input]]:tracking-tight [&_[data-slot=input]]:text-foreground [&_[data-slot=input]]:placeholder:text-muted-foreground [&_[data-slot=input]]:outline-none"required/>@@ -585,7 +613,9 @@ function CreateTaskModal({<TaskDescriptionEditorvalue={description}onChange={setDescription}- placeholder="Add a description for your task..."+ placeholder={t(+ "common:modals.createTask.descriptionPlaceholder",+ )}taskId={draftTask?.id}ensureTaskId={ensureDraftTask}/>@@ -618,10 +648,7 @@ function CreateTaskModal({<div className="flex flex-wrap items-center gap-2 py-2"><div className="flex items-center gap-1.5 px-2.5 py-1.5 bg-accent/50 text-foreground rounded-md text-xs font-medium border border-border"><div className="w-1.5 h-1.5 bg-foreground rounded-full" />- {status- ? status.charAt(0).toUpperCase() +- status.slice(1).replace("-", " ")- : "In Progress"}+ {statusLabel}</div><Popover>@@ -638,8 +665,8 @@ function CreateTaskModal({<CalendarIcon className="w-3.5 h-3.5" /><span>{startDate- ? format(startDate, "MMM d, yyyy")- : "Start date"}+ ? formatDateMedium(startDate)+ : t("common:modals.createTask.startDate")}</span></button></PopoverTrigger>@@ -659,7 +686,7 @@ function CreateTaskModal({className="w-full text-xs"onClick={() => setStartDate(undefined)}>- Clear start date+ {t("common:modals.createTask.clearStartDate")}</Button></div>)}@@ -679,7 +706,9 @@ function CreateTaskModal({>{getPriorityIcon(priority)}<span>- {selectedPriority ? selectedPriority.label : "Priority"}+ {selectedPriority+ ? selectedPriority.label+ : t("common:modals.createTask.priority")}</span></button></PopoverTrigger>@@ -732,7 +761,7 @@ function CreateTaskModal({) : (<><UserIcon className="w-3.5 h-3.5" />- <span>Assign</span>+ <span>{t("common:modals.createTask.assign")}</span></>)}</button>@@ -746,13 +775,17 @@ function CreateTaskModal({><divclassName="w-6 h-6 rounded-full bg-muted border border-border flex items-center justify-center"- title="Unassigned"+ title={t(+ "common:modals.createTask.assignUnassignedTitle",+ )}><span className="text-[10px] font-medium text-muted-foreground">?</span></div>- <span className="text-sm">Unassigned</span>+ <span className="text-sm">+ {t("common:modals.createTask.assignUnassigned")}+ </span>{!assigneeId && <Check className="ml-auto h-4 w-4" />}</button>{workspace?.members?.map((member) => (@@ -794,7 +827,9 @@ function CreateTaskModal({><CalendarIcon className="w-3.5 h-3.5" /><span>- {dueDate ? format(dueDate, "MMM d, yyyy") : "Due date"}+ {dueDate+ ? formatDateMedium(dueDate)+ : t("common:modals.createTask.dueDate")}</span></button></PopoverTrigger>@@ -814,7 +849,7 @@ function CreateTaskModal({className="w-full text-xs"onClick={() => setDueDate(undefined)}>- Clear due date+ {t("common:modals.createTask.clearDueDate")}</Button></div>)}@@ -833,7 +868,7 @@ function CreateTaskModal({)}><Tag className="w-3.5 h-3.5" />- <span>Labels</span>+ <span>{t("common:modals.createTask.labels")}</span></button></PopoverTrigger><PopoverContent className="p-0" align="start">@@ -845,7 +880,9 @@ function CreateTaskModal({ref={searchInputRef}value={searchValue}onChange={(e) => setSearchValue(e.target.value)}- placeholder="Search labels..."+ placeholder={t(+ "common:modals.createTask.searchLabels",+ )}className="w-full bg-transparent border-none text-foreground text-xs focus:outline-none placeholder:text-muted-foreground"/></div>@@ -854,7 +891,7 @@ function CreateTaskModal({{filteredLabels.length === 0 &&searchValue.length === 0 && (<span className="text-xs text-muted-foreground px-2">- No labels found+ {t("common:modals.createTask.noLabelsFound")}</span>)}{filteredLabels.map((label) => (@@ -904,7 +941,9 @@ function CreateTaskModal({}}/><span className="truncate">- Create "{searchValue}"+ {t("common:modals.createTask.createLabel", {+ name: searchValue,+ })}</span></button>)}@@ -915,7 +954,7 @@ function CreateTaskModal({<div className="w-auto"><div className="flex items-center justify-between p-2 border-b border-border"><span className="text-xs font-medium">- Choose color+ {t("common:modals.createTask.chooseColor")}</span><buttontype="button"@@ -966,7 +1005,7 @@ function CreateTaskModal({onChange={(e) => setCreateMore(e.target.checked)}className="rounded border-border bg-background text-primary focus:ring-ring focus:ring-offset-0 focus:ring-2 transition-all"/>- Create more+ {t("common:modals.createTask.createMore")}</label></div>@@ -977,7 +1016,7 @@ function CreateTaskModal({size="sm"className="border-border text-foreground hover:bg-accent">- Cancel+ {t("common:actions.cancel")}</Button><Buttontype="submit"@@ -985,7 +1024,7 @@ function CreateTaskModal({size="sm"className="disabled:opacity-50">- Create Task+ {t("common:modals.createTask.createButton")}</Button></DialogFooter></form>diff --git a/apps/web/src/components/shared/modals/create-workspace-modal.tsx b/apps/web/src/components/shared/modals/create-workspace-modal.tsxindex 3fc36b445..a934c5e46 100644--- a/apps/web/src/components/shared/modals/create-workspace-modal.tsx+++ b/apps/web/src/components/shared/modals/create-workspace-modal.tsx@@ -1,6 +1,7 @@import { useQueryClient } from "@tanstack/react-query";import { useNavigate } from "@tanstack/react-router";import { useEffect, useRef, useState } from "react";+import { useTranslation } from "react-i18next";import {Breadcrumb,BreadcrumbItem,@@ -27,6 +28,7 @@ type CreateWorkspaceModalProps = {};function CreateWorkspaceModal({ open, onClose }: CreateWorkspaceModalProps) {+ const { t } = useTranslation();const [name, setName] = useState("");const [description, setDescription] = useState("");const inputRef = useRef<HTMLInputElement>(null);@@ -54,7 +56,7 @@ function CreateWorkspaceModal({ open, onClose }: CreateWorkspaceModalProps) {try {const createdWorkspace = await mutateAsync({ name, description });- toast.success("Workspace created successfully");+ toast.success(t("common:modals.createWorkspace.successToast"));await queryClient.invalidateQueries({ queryKey: ["workspaces"] });await authClient.organization.setActive({@@ -71,7 +73,9 @@ function CreateWorkspaceModal({ open, onClose }: CreateWorkspaceModalProps) {handleClose();} catch (error) {toast.error(- error instanceof Error ? error.message : "Failed to create workspace",+ error instanceof Error+ ? error.message+ : t("common:modals.createWorkspace.errorToast"),);}};@@ -84,17 +88,17 @@ function CreateWorkspaceModal({ open, onClose }: CreateWorkspaceModalProps) {<Breadcrumb><BreadcrumbList><BreadcrumbItem className="text-muted-foreground font-semibold tracking-wider text-sm">- KANEO+ {t("common:modals.createWorkspace.breadcrumbKaneo")}</BreadcrumbItem><BreadcrumbSeparator /><BreadcrumbItem className="text-foreground font-medium text-sm">- Create a new workspace+ {t("common:modals.createWorkspace.title")}</BreadcrumbItem></BreadcrumbList></Breadcrumb></DialogTitle><DialogDescription className="sr-only">- Create a new workspace by providing a name for your workspace.+ {t("common:modals.createWorkspace.description")}</DialogDescription></DialogHeader>@@ -105,7 +109,7 @@ function CreateWorkspaceModal({ open, onClose }: CreateWorkspaceModalProps) {unstyledvalue={name}onChange={(e) => setName(e.target.value)}- placeholder="Workspace name"+ placeholder={t("common:modals.createWorkspace.namePlaceholder")}className="w-full [&_[data-slot=input]]:h-auto [&_[data-slot=input]]:px-0 [&_[data-slot=input]]:py-2 [&_[data-slot=input]]:text-2xl [&_[data-slot=input]]:leading-tight [&_[data-slot=input]]:font-semibold [&_[data-slot=input]]:tracking-tight [&_[data-slot=input]]:text-foreground [&_[data-slot=input]]:placeholder:text-muted-foreground [&_[data-slot=input]]:outline-none"required/>@@ -114,7 +118,9 @@ function CreateWorkspaceModal({ open, onClose }: CreateWorkspaceModalProps) {unstyledvalue={description}onChange={(e) => setDescription(e.target.value)}- placeholder="Add description..."+ placeholder={t(+ "common:modals.createWorkspace.descriptionPlaceholder",+ )}className="w-full [&_[data-slot=input]]:h-auto [&_[data-slot=input]]:px-0 [&_[data-slot=input]]:py-2 [&_[data-slot=input]]:text-base [&_[data-slot=input]]:leading-relaxed [&_[data-slot=input]]:text-foreground [&_[data-slot=input]]:placeholder:text-muted-foreground [&_[data-slot=input]]:outline-none"/></div>@@ -127,7 +133,7 @@ function CreateWorkspaceModal({ open, onClose }: CreateWorkspaceModalProps) {size="sm"className="border-border text-foreground hover:bg-accent">- Cancel+ {t("common:actions.cancel")}</Button><Buttontype="submit"@@ -135,7 +141,7 @@ function CreateWorkspaceModal({ open, onClose }: CreateWorkspaceModalProps) {size="sm"className="disabled:opacity-50">- Create Workspace+ {t("common:modals.createWorkspace.createButton")}</Button></DialogFooter></form>diff --git a/apps/web/src/components/task/extensions/embed-block.ts b/apps/web/src/components/task/extensions/embed-block.tsindex 8719d2b29..d15894464 100644--- a/apps/web/src/components/task/extensions/embed-block.ts+++ b/apps/web/src/components/task/extensions/embed-block.ts@@ -1,4 +1,5 @@import { mergeAttributes, Node } from "@tiptap/core";+import { i18n } from "@/lib/i18n";type EmbedMode = "embed" | "link";@@ -101,7 +102,7 @@ export const EmbedBlock = Node.create({"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share",allowfullscreen: "true",referrerpolicy: "strict-origin-when-cross-origin",- title: "Embedded content",+ title: i18n.t("tasks:detail.editor.embed.embeddedContent"),},],];@@ -114,7 +115,7 @@ export const EmbedBlock = Node.create({["div",{ class: "kaneo-embed-unsupported" },- "Only YouTube URLs can be embedded. Use link mode instead.",+ i18n.t("tasks:detail.editor.embed.onlyYoutubeInline"),],];}diff --git a/apps/web/src/components/task/extensions/kaneo-issue-link.tsx b/apps/web/src/components/task/extensions/kaneo-issue-link.tsxindex 6378c6a6d..3e0da8b11 100644--- a/apps/web/src/components/task/extensions/kaneo-issue-link.tsx+++ b/apps/web/src/components/task/extensions/kaneo-issue-link.tsx@@ -2,6 +2,7 @@ import { useQuery } from "@tanstack/react-query";import { mergeAttributes, Node } from "@tiptap/core";import type { NodeViewProps } from "@tiptap/react";import { NodeViewWrapper, ReactNodeViewRenderer } from "@tiptap/react";+import { useTranslation } from "react-i18next";import {HoverCard,HoverCardContent,@@ -36,6 +37,7 @@ function parseTaskRouteFromUrl(url: string) {}function KaneoIssueLinkView({ node }: NodeViewProps) {+ const { t } = useTranslation();const issueKey = String(node.attrs.issueKey || "");const taskIdAttr = String(node.attrs.taskId || "");const url = String(node.attrs.url || "");@@ -68,10 +70,14 @@ function KaneoIssueLinkView({ node }: NodeViewProps) {const resolvedIssueKey =issueKey ||(projectSlug && task?.number ? `${projectSlug}-${task.number}` : "");- const title = task?.title || issueKey || "Task";- const status = toTitleCase(task?.status) || "Todo";- const priority = toTitleCase(task?.priority) || "No priority";- const assignee = task?.assigneeName || "Unassigned";+ const title = task?.title || issueKey || t("tasks:entity.task");+ const status = task?.status+ ? t(`tasks:status.${task.status}`)+ : t("tasks:status.to-do");+ const priority = task?.priority+ ? t(`tasks:priority.${task.priority}`)+ : t("tasks:priority.no-priority");+ const assignee = task?.assigneeName || t("tasks:assignee.unassigned");const href =taskRoute?.workspaceId && taskRoute?.projectId && task?.id? `/dashboard/workspace/${taskRoute.workspaceId}/project/${taskRoute.projectId}/task/${task.id}`@@ -102,7 +108,7 @@ function KaneoIssueLinkView({ node }: NodeViewProps) {><div className="kaneo-issue-link-preview-top"><span className="kaneo-issue-link-preview-key">- {resolvedIssueKey || "Task"}+ {resolvedIssueKey || t("tasks:entity.task")}</span><span className="kaneo-issue-link-preview-assignee">{assignee}diff --git a/apps/web/src/components/task/extensions/task-item-with-checkbox.tsx b/apps/web/src/components/task/extensions/task-item-with-checkbox.tsxindex 97292448f..78f45d75f 100644--- a/apps/web/src/components/task/extensions/task-item-with-checkbox.tsx+++ b/apps/web/src/components/task/extensions/task-item-with-checkbox.tsx@@ -5,9 +5,11 @@ import {NodeViewWrapper,ReactNodeViewRenderer,} from "@tiptap/react";+import { useTranslation } from "react-i18next";import { Checkbox } from "@/components/ui/checkbox";function TaskItemNodeView({ editor, node, updateAttributes }: NodeViewProps) {+ const { t } = useTranslation();const checked = Boolean(node.attrs.checked);const isEditable = editor.isEditable;@@ -22,7 +24,9 @@ function TaskItemNodeView({ editor, node, updateAttributes }: NodeViewProps) {checked={checked}disabled={!isEditable}aria-label={- checked ? "Mark task as incomplete" : "Mark task as complete"+ checked+ ? t("tasks:detail.editor.checkbox.markIncomplete")+ : t("tasks:detail.editor.checkbox.markComplete")}onCheckedChange={(value) => {if (!isEditable) return;diff --git a/apps/web/src/components/task/subtask-assignee-popover.tsx b/apps/web/src/components/task/subtask-assignee-popover.tsxindex 27a5f1126..612c0dce1 100644--- a/apps/web/src/components/task/subtask-assignee-popover.tsx+++ b/apps/web/src/components/task/subtask-assignee-popover.tsx@@ -1,5 +1,6 @@import { Check } from "lucide-react";import { useCallback, useMemo, useState } from "react";+import { useTranslation } from "react-i18next";import { Avatar, AvatarFallback, AvatarImage } from "@/components/ui/avatar";import { Button } from "@/components/ui/button";import {@@ -25,6 +26,7 @@ export default function SubtaskAssigneePopover({workspaceId,children,}: SubtaskAssigneePopoverProps) {+ const { t } = useTranslation();const [open, setOpen] = useState(false);const { mutateAsync: updateTaskAssignee } = useUpdateTaskAssignee();const { data: workspaceUsers } = useGetActiveWorkspaceUsers(workspaceId);@@ -58,11 +60,11 @@ export default function SubtaskAssigneePopover({toast.error(error instanceof Error? error.message- : "Failed to update task assignee",+ : t("tasks:popover.assignee.updateError"),);}},- [tasks, updateTaskAssignee],+ [t, tasks, updateTaskAssignee],);const shortcutOptions = useMemo(() => {@@ -88,13 +90,15 @@ export default function SubtaskAssigneePopover({><divclassName="w-6 h-6 rounded-full bg-muted border border-border flex items-center justify-center"- title="Unassigned"+ title={t("tasks:popover.assignee.unassigned")}><span className="text-[10px] font-medium text-muted-foreground">?</span></div>- <span className="text-sm">Unassigned</span>+ <span className="text-sm">+ {t("tasks:popover.assignee.unassigned")}+ </span>{allSameAssignee && !currentAssignee ? (<Check className="ml-auto h-4 w-4" />) : (diff --git a/apps/web/src/components/task/subtask-row.tsx b/apps/web/src/components/task/subtask-row.tsxindex d9ed8bb7c..9e0573649 100644--- a/apps/web/src/components/task/subtask-row.tsx+++ b/apps/web/src/components/task/subtask-row.tsx@@ -1,4 +1,5 @@import { motion } from "framer-motion";+import { useTranslation } from "react-i18next";import TaskCardContextMenuContent from "@/components/kanban-board/task-card-context-menu/task-card-context-menu-content";import { Avatar, AvatarFallback, AvatarImage } from "@/components/ui/avatar";import { Checkbox } from "@/components/ui/checkbox";@@ -37,6 +38,8 @@ export default function SubtaskRow({onNavigate,onDeleteClick,}: SubtaskRowProps) {+ const { t } = useTranslation();+return (<motion.divlayout@@ -94,7 +97,7 @@ export default function SubtaskRow({) : (<divclassName="flex h-5 w-5 items-center justify-center rounded-full border border-dashed border-border/70"- title="Unassigned"+ title={t("tasks:popover.assignee.unassigned")}><span className="text-[9px] font-medium text-muted-foreground">?diff --git a/apps/web/src/components/task/subtask-status-popover.tsx b/apps/web/src/components/task/subtask-status-popover.tsxindex 836a357b9..969f69a70 100644--- a/apps/web/src/components/task/subtask-status-popover.tsx+++ b/apps/web/src/components/task/subtask-status-popover.tsx@@ -1,5 +1,6 @@import { Check } from "lucide-react";import { useCallback, useMemo, useState } from "react";+import { useTranslation } from "react-i18next";import { Button } from "@/components/ui/button";import {Popover,@@ -11,6 +12,7 @@ import { useUpdateTaskStatus } from "@/hooks/mutations/task/use-update-task-statimport { useGetColumns } from "@/hooks/queries/column/use-get-columns";import { useNumberedShortcuts } from "@/hooks/use-numbered-shortcuts";import { getColumnIcon } from "@/lib/column";+import { getStatusLabel } from "@/lib/i18n/domain";import { toast } from "@/lib/toast";import type Task from "@/types/task";@@ -25,6 +27,7 @@ export default function SubtaskStatusPopover({projectId,children,}: SubtaskStatusPopoverProps) {+ const { t } = useTranslation();const [open, setOpen] = useState(false);const { data: columns = [] } = useGetColumns(projectId);const statusOptions = columns.map((col) => ({@@ -54,11 +57,11 @@ export default function SubtaskStatusPopover({toast.error(error instanceof Error? error.message- : "Failed to update task status",+ : t("tasks:popover.status.updateError"),);}},- [tasks, updateTaskStatus],+ [t, tasks, updateTaskStatus],);const shortcutOptions = useMemo(@@ -85,7 +88,9 @@ export default function SubtaskStatusPopover({onClick={() => handleStatusChange(status.value)}>{getColumnIcon(status.value, status.isFinal)}- <span className="text-sm">{status.label}</span>+ <span className="text-sm">+ {getStatusLabel(status.value) || status.label}+ </span>{currentStatus === status.value ? (<Check className="ml-auto h-4 w-4" />) : (diff --git a/apps/web/src/components/task/task-assignee-popover.tsx b/apps/web/src/components/task/task-assignee-popover.tsxindex 6ffbe9531..9dc280218 100644--- a/apps/web/src/components/task/task-assignee-popover.tsx+++ b/apps/web/src/components/task/task-assignee-popover.tsx@@ -1,5 +1,6 @@import { Check } from "lucide-react";import { useCallback, useMemo, useState } from "react";+import { useTranslation } from "react-i18next";import { Avatar, AvatarFallback, AvatarImage } from "@/components/ui/avatar";import { Button } from "@/components/ui/button";import {@@ -25,6 +26,7 @@ export default function TaskAssigneePopover({workspaceId,children,}: TaskAssigneePopoverProps) {+ const { t } = useTranslation();const [open, setOpen] = useState(false);const { mutateAsync: updateTaskAssignee } = useUpdateTaskAssignee();const { data: workspaceUsers } = useGetActiveWorkspaceUsers(workspaceId);@@ -50,11 +52,11 @@ export default function TaskAssigneePopover({toast.error(error instanceof Error? error.message- : "Failed to update task assignee",+ : t("tasks:popover.assignee.updateError"),);}},- [task, updateTaskAssignee],+ [t, task, updateTaskAssignee],);const shortcutOptions = useMemo(() => {@@ -80,13 +82,15 @@ export default function TaskAssigneePopover({><divclassName="w-6 h-6 rounded-full bg-muted border border-border flex items-center justify-center"- title="Unassigned"+ title={t("tasks:popover.assignee.unassigned")}><span className="text-[10px] font-medium text-muted-foreground">?</span></div>- <span className="text-sm">Unassigned</span>+ <span className="text-sm">+ {t("tasks:popover.assignee.unassigned")}+ </span>{!task.userId ? (<Check className="ml-auto h-4 w-4" />) : (diff --git a/apps/web/src/components/task/task-description-editor.tsx b/apps/web/src/components/task/task-description-editor.tsxindex 7922399ec..8cb088fda 100644--- a/apps/web/src/components/task/task-description-editor.tsx+++ b/apps/web/src/components/task/task-description-editor.tsx@@ -1,3 +1,4 @@+import { useTranslation } from "react-i18next";import CommentEditor from "@/components/activity/comment-editor";type TaskDescriptionEditorProps = {@@ -11,15 +12,17 @@ type TaskDescriptionEditorProps = {export default function TaskDescriptionEditor({value,onChange,- placeholder = "Add a description...",+ placeholder,taskId,ensureTaskId,}: TaskDescriptionEditorProps) {+ const { t } = useTranslation();+return (<CommentEditorvalue={value}onChange={onChange}- placeholder={placeholder}+ placeholder={placeholder ?? t("tasks:detail.addDescription")}taskId={taskId}ensureTaskId={ensureTaskId}uploadSurface="description"diff --git a/apps/web/src/components/task/task-description.tsx b/apps/web/src/components/task/task-description.tsxindex a791e2477..94b484c53 100644--- a/apps/web/src/components/task/task-description.tsx+++ b/apps/web/src/components/task/task-description.tsx@@ -34,6 +34,7 @@ import {} from "lucide-react";import type { MouseEvent as ReactMouseEvent } from "react";import { useCallback, useEffect, useMemo, useRef, useState } from "react";+import { useTranslation } from "react-i18next";import { bundledLanguages, type Highlighter } from "shiki";import { Button } from "@/components/ui/button";import { Dialog, DialogPopup } from "@/components/ui/dialog";@@ -252,6 +253,7 @@ const SLASH_COMMANDS: SlashCommand[] = [];export default function TaskDescription({ taskId }: TaskDescriptionProps) {+ const { t } = useTranslation();const { data: task } = useGetTask(taskId);const { mutateAsync: updateTaskDescription } = useUpdateTaskDescription();@@ -308,8 +310,13 @@ export default function TaskDescription({ taskId }: TaskDescriptionProps) {() =>CODE_LANGUAGE_OPTIONS.filter(({ value }) =>shikiSupportedLanguages.has(toShikiLanguage(value)),- ),- [shikiSupportedLanguages, toShikiLanguage],+ ).map(({ value, label }) => ({+ value,+ label: t(`tasks:detail.editor.languages.${value}`, {+ defaultValue: label,+ }),+ })),+ [shikiSupportedLanguages, t, toShikiLanguage],);const getOverlayPosition = useCallback((editorView: Editor["view"], pos: number) => {@@ -375,11 +382,13 @@ export default function TaskDescription({ taskId }: TaskDescriptionProps) {const activeEditor = targetEditor || lastEditorRef.current;if (!activeEditor) {- toast.error("File upload failed");+ toast.error(t("tasks:detail.editor.upload.failed"));return;}- const loadingToast = toast.loading("Uploading file...");+ const loadingToast = toast.loading(+ t("tasks:detail.editor.upload.loading"),+ );try {const uploadedAsset = await uploadTaskImage({@@ -391,16 +400,20 @@ export default function TaskDescription({ taskId }: TaskDescriptionProps) {toast.dismiss(loadingToast);toast.success(- uploadedAsset.kind === "image" ? "Image uploaded" : "File attached",+ uploadedAsset.kind === "image"+ ? t("tasks:detail.editor.upload.imageSuccess")+ : t("tasks:detail.editor.upload.fileSuccess"),);} catch (error) {toast.dismiss(loadingToast);toast.error(- error instanceof Error ? error.message : "Failed to upload file",+ error instanceof Error+ ? error.message+ : t("tasks:detail.editor.upload.failed"),);}},- [insertUploadedAsset, taskId],+ [insertUploadedAsset, t, taskId],);const openImagePicker = useCallback(@@ -464,10 +477,15 @@ export default function TaskDescription({ taskId }: TaskDescriptionProps) {const slashCommands = useMemo(() => [- ...SLASH_COMMANDS,+ ...SLASH_COMMANDS.map((command) => ({+ ...command,+ label: t(`tasks:detail.editor.slash.commands.${command.id}`, {+ defaultValue: command.label,+ }),+ })),{id: "file",- label: "File",+ label: t("tasks:detail.editor.slash.commands.file"),group: "insert" as const,search: "file attachment image photo picture upload",run: (activeEditor: Editor, range: SlashRange) => {@@ -476,7 +494,7 @@ export default function TaskDescription({ taskId }: TaskDescriptionProps) {},},],- [openImagePicker],+ [openImagePicker, t],);useEffect(() => {@@ -559,7 +577,7 @@ export default function TaskDescription({ taskId }: TaskDescriptionProps) {nested: true,}),Placeholder.configure({- placeholder: "Write a description…",+ placeholder: t("tasks:detail.editor.placeholder"),}),Table.configure({resizable: true,@@ -729,7 +747,7 @@ export default function TaskDescription({ taskId }: TaskDescriptionProps) {debouncedUpdate(markdown);},},- [getOverlayPosition, handleAssetFileUpload, toShikiLanguage],+ [getOverlayPosition, handleAssetFileUpload, t, toShikiLanguage],);useEffect(() => {@@ -775,7 +793,7 @@ export default function TaskDescription({ taskId }: TaskDescriptionProps) {event.preventDefault();setPreviewImage({src: target.currentSrc || target.src,- alt: target.alt || "Preview image",+ alt: target.alt || t("tasks:detail.editor.previewImage"),});};@@ -785,7 +803,7 @@ export default function TaskDescription({ taskId }: TaskDescriptionProps) {return () => {dom.removeEventListener("click", handleImagePreviewClick);};- }, [editor]);+ }, [editor, t]);useEffect(() => {slashMenuRef.current = slashMenu;@@ -797,7 +815,10 @@ export default function TaskDescription({ taskId }: TaskDescriptionProps) {const previousUrl = editor.getAttributes("link").href as| string| undefined;- const url = window.prompt("Enter URL", prefilledUrl || previousUrl || "");+ const url = window.prompt(+ t("tasks:detail.editor.enterUrl"),+ prefilledUrl || previousUrl || "",+ );if (url === null) return;if (url.trim() === "") {editor.chain().focus().extendMarkRange("link").unsetLink().run();@@ -810,7 +831,7 @@ export default function TaskDescription({ taskId }: TaskDescriptionProps) {.setLink({ href: url }).run();},- [editor],+ [editor, t],);const filteredSlashCommands = useMemo(() => {@@ -833,25 +854,25 @@ export default function TaskDescription({ taskId }: TaskDescriptionProps) {const groupedSlashCommands = useMemo(() => [{- title: "Text",+ title: t("tasks:detail.editor.slash.groups.text"),items: filteredSlashCommands.filter((command) => command.group === "text",),},{- title: "Lists",+ title: t("tasks:detail.editor.slash.groups.lists"),items: filteredSlashCommands.filter((command) => command.group === "lists",),},{- title: "Insert",+ title: t("tasks:detail.editor.slash.groups.insert"),items: filteredSlashCommands.filter((command) => command.group === "insert",),},],- [filteredSlashCommands],+ [filteredSlashCommands, t],);const runSlashCommand = useCallback(@@ -979,7 +1000,7 @@ export default function TaskDescription({ taskId }: TaskDescriptionProps) {if (!editor || !embedComposer) return;const url = normalizeUrl(embedComposer.url);if (!url) {- setEmbedComposerError("Enter a valid URL");+ setEmbedComposerError(t("tasks:detail.editor.embed.errors.invalidUrl"));return;}@@ -1013,7 +1034,9 @@ export default function TaskDescription({ taskId }: TaskDescriptionProps) {.run();} else {if (!isYouTubeUrl(url)) {- setEmbedComposerError("Only YouTube links can be embedded.");+ setEmbedComposerError(+ t("tasks:detail.editor.embed.errors.onlyYoutube"),+ );return;}chain@@ -1030,7 +1053,7 @@ export default function TaskDescription({ taskId }: TaskDescriptionProps) {setEmbedComposer(null);setEmbedComposerError("");},- [editor, embedComposer],+ [editor, embedComposer, t],);useEffect(() => {@@ -1212,7 +1235,7 @@ export default function TaskDescription({ taskId }: TaskDescriptionProps) {const activeCodeLanguageLabel =codeLanguages.find((language) => language.value === hoveredCodeBlock?.language,- )?.label || "Auto detect";+ )?.label || t("tasks:detail.editor.autoDetect");useEffect(() => {return () => {@@ -1294,7 +1317,7 @@ export default function TaskDescription({ taskId }: TaskDescriptionProps) {return (<sectionref={editorShellRef}- aria-label="Task description editor"+ aria-label={t("tasks:detail.editor.ariaLabel")}className={cn("kaneo-tiptap-shell group",isDragActive && "is-drag-active",@@ -1335,7 +1358,11 @@ export default function TaskDescription({ taskId }: TaskDescriptionProps) {<buttontype="button"className="kaneo-codeblock-language-trigger kaneo-codeblock-copy-trigger"- aria-label={isCodeCopied ? "Copied" : "Copy code"}+ aria-label={+ isCodeCopied+ ? t("tasks:detail.editor.copied")+ : t("tasks:detail.editor.copyCode")+ }onMouseDown={(event) => {event.preventDefault();}}@@ -1348,7 +1375,11 @@ export default function TaskDescription({ taskId }: TaskDescriptionProps) {) : (<Copy className="size-3.5" />)}- <span>{isCodeCopied ? "Copied" : "Copy"}</span>+ <span>+ {isCodeCopied+ ? t("tasks:detail.editor.copied")+ : t("tasks:detail.editor.copy")}+ </span></button><DropdownMenuopen={isCodeLanguageMenuOpen}@@ -1374,7 +1405,7 @@ export default function TaskDescription({ taskId }: TaskDescriptionProps) {onValueChange={setCodeLanguage}><DropdownMenuRadioItem value="auto">- Auto detect+ {t("tasks:detail.editor.autoDetect")}</DropdownMenuRadioItem><DropdownMenuSeparator />{codeLanguages.map(({ value, label }) => (@@ -1622,7 +1653,9 @@ export default function TaskDescription({ taskId }: TaskDescriptionProps) {);})) : (- <div className="kaneo-tiptap-slash-empty">No commands</div>+ <div className="kaneo-tiptap-slash-empty">+ {t("tasks:detail.editor.slash.empty")}+ </div>)}</div>)}@@ -1646,7 +1679,7 @@ export default function TaskDescription({ taskId }: TaskDescriptionProps) {submitEmbedComposer("embed");}}>- <span>Embed video</span>+ <span>{t("tasks:detail.editor.embed.choice.embedVideo")}</span><span className="kaneo-embed-choice-hint">Tab</span></button><button@@ -1658,7 +1691,7 @@ export default function TaskDescription({ taskId }: TaskDescriptionProps) {setEmbedComposerError("");}}>- <span>Keep as link</span>+ <span>{t("tasks:detail.editor.embed.choice.keepAsLink")}</span><span className="kaneo-embed-choice-hint">Esc</span></button></div>@@ -1679,7 +1712,7 @@ export default function TaskDescription({ taskId }: TaskDescriptionProps) {);if (embedComposerError) setEmbedComposerError("");}}- placeholder="Paste URL"+ placeholder={t("tasks:detail.editor.embed.inputPlaceholder")}autoFocus/><div className="kaneo-embed-composer-actions">@@ -1689,10 +1722,10 @@ export default function TaskDescription({ taskId }: TaskDescriptionProps) {variant="ghost"onClick={() => submitEmbedComposer("link")}>- As link+ {t("tasks:detail.editor.embed.asLink")}</Button><Button type="submit" size="xs">- Embed+ {t("tasks:detail.editor.embed.submit")}</Button><Buttontype="button"@@ -1703,7 +1736,7 @@ export default function TaskDescription({ taskId }: TaskDescriptionProps) {setEmbedComposerError("");}}>- Cancel+ {t("common:actions.cancel")}</Button></div>{embedComposerError && (@@ -1729,13 +1762,13 @@ export default function TaskDescription({ taskId }: TaskDescriptionProps) {event.preventDefault();}}onClick={() => openImagePicker(editor)}- aria-label="Attach file"+ aria-label={t("tasks:detail.editor.attachFile")}><Paperclip className="size-3.5" /></button>{isDragActive && (<div className="kaneo-editor-drop-indicator">- <span>Drop image to upload</span>+ <span>{t("tasks:detail.editor.dropToUpload")}</span></div>)}<Dialogdiff --git a/apps/web/src/components/task/task-details-content.tsx b/apps/web/src/components/task/task-details-content.tsxindex 28c7182db..8151e89d6 100644--- a/apps/web/src/components/task/task-details-content.tsx+++ b/apps/web/src/components/task/task-details-content.tsx@@ -1,5 +1,6 @@import { useNavigate } from "@tanstack/react-router";import { ArrowUpRight } from "lucide-react";+import { useTranslation } from "react-i18next";import Activity from "@/components/activity";import CommentInput from "@/components/activity/comment-input";import { isCommentActivity } from "@/components/activity/utils";@@ -30,6 +31,7 @@ export default function TaskDetailsContent({workspaceId,className,}: TaskDetailsContentProps) {+ const { t } = useTranslation();const navigate = useNavigate();const { data: task } = useGetTask(taskId ?? "");const { data: project } = useGetProject({ id: projectId, workspaceId });@@ -66,7 +68,8 @@ export default function TaskDetailsContent({><ArrowUpRight className="size-3" /><span>- Subtask of <span className="font-medium">{parentTask.title}</span>+ {t("tasks:detail.subtaskOf")}{" "}+ <span className="font-medium">{parentTask.title}</span></span></button>)}@@ -100,7 +103,7 @@ export default function TaskDetailsContent({</div><span className="text-sm font-medium text-muted-foreground h-[1px] bg-border w-full block shrink-0" /><div className="flex flex-col gap-4">- <h1 className="text-md font-semibold">Activity</h1>+ <h1 className="text-md font-semibold">{t("tasks:detail.activity")}</h1>{user?.id && taskId && <CommentInput taskId={taskId} />}{activities.length > 0 ? (<Timeline>@@ -123,7 +126,7 @@ export default function TaskDetailsContent({</Timeline>) : (<p className="text-sm font-medium text-muted-foreground">- No activity found+ {t("tasks:detail.noActivity")}</p>)}</div>diff --git a/apps/web/src/components/task/task-details-sheet.tsx b/apps/web/src/components/task/task-details-sheet.tsxindex f0d80e7b5..aa3e5ce88 100644--- a/apps/web/src/components/task/task-details-sheet.tsx+++ b/apps/web/src/components/task/task-details-sheet.tsx@@ -1,6 +1,7 @@import { useNavigate } from "@tanstack/react-router";import { Maximize2, X } from "lucide-react";import { useCallback, useEffect, useState } from "react";+import { useTranslation } from "react-i18next";import { Button } from "@/components/ui/button";import { Sheet, SheetContent } from "@/components/ui/sheet";import {@@ -27,6 +28,7 @@ export default function TaskDetailsSheet({workspaceId,onClose,}: TaskDetailsSheetProps) {+ const { t } = useTranslation();const navigate = useNavigate();const [currentTaskId, setCurrentTaskId] = useState<string | undefined>(taskId,@@ -85,7 +87,9 @@ export default function TaskDetailsSheet({<Maximize2 className="size-4" /></Button></TooltipTrigger>- <TooltipContent>Open in full page</TooltipContent>+ <TooltipContent>+ {t("tasks:detail.openInFullPage")}+ </TooltipContent></Tooltip></TooltipProvider><Buttondiff --git a/apps/web/src/components/task/task-due-date-popover.tsx b/apps/web/src/components/task/task-due-date-popover.tsxindex b68f55990..fded763dd 100644--- a/apps/web/src/components/task/task-due-date-popover.tsx+++ b/apps/web/src/components/task/task-due-date-popover.tsx@@ -1,5 +1,6 @@import { X } from "lucide-react";import { useState } from "react";+import { useTranslation } from "react-i18next";import { Button } from "@/components/ui/button";import { Calendar } from "@/components/ui/calendar";import {@@ -20,6 +21,7 @@ export default function TaskDueDatePopover({task,children,}: TaskDueDatePopoverProps) {+ const { t } = useTranslation();const [open, setOpen] = useState(false);const { mutateAsync: updateTaskDueDate } = useUpdateTaskDueDate();@@ -29,13 +31,13 @@ export default function TaskDueDatePopover({...task,dueDate: date?.toISOString() || null,});- toast.success("Task due date updated successfully");+ toast.success(t("tasks:popover.dueDate.updateSuccess"));setOpen(false);} catch (error) {toast.error(error instanceof Error? error.message- : "Failed to update task due date",+ : t("tasks:popover.dueDate.updateError"),);}};@@ -62,7 +64,7 @@ export default function TaskDueDatePopover({onClick={() => handleDateChange(undefined)}><X className="h-4 w-4" />- Clear date+ {t("tasks:popover.dueDate.clear")}</Button></div>)}diff --git a/apps/web/src/components/task/task-labels-popover.tsx b/apps/web/src/components/task/task-labels-popover.tsxindex faad12dd6..dc3a7c016 100644--- a/apps/web/src/components/task/task-labels-popover.tsx+++ b/apps/web/src/components/task/task-labels-popover.tsx@@ -1,6 +1,7 @@import { useQueryClient } from "@tanstack/react-query";import { Check, Plus, Search, X } from "lucide-react";import { useEffect, useMemo, useRef, useState } from "react";+import { useTranslation } from "react-i18next";import { Input } from "@/components/ui/input";import {Popover,@@ -16,15 +17,15 @@ import { toast } from "@/lib/toast";import type Task from "@/types/task";const labelColors = [- { value: "gray", label: "Stone", color: "var(--color-stone-500)" },- { value: "dark-gray", label: "Slate", color: "var(--color-slate-500)" },- { value: "purple", label: "Lavender", color: "var(--color-violet-500)" },- { value: "teal", label: "Sage", color: "var(--color-emerald-600)" },- { value: "green", label: "Forest", color: "var(--color-green-600)" },- { value: "yellow", label: "Amber", color: "var(--color-amber-600)" },- { value: "orange", label: "Terracotta", color: "var(--color-orange-600)" },- { value: "pink", label: "Rose", color: "var(--color-rose-600)" },- { value: "red", label: "Crimson", color: "var(--color-red-600)" },+ { value: "gray", key: "stone", color: "var(--color-stone-500)" },+ { value: "dark-gray", key: "slate", color: "var(--color-slate-500)" },+ { value: "purple", key: "lavender", color: "var(--color-violet-500)" },+ { value: "teal", key: "sage", color: "var(--color-emerald-600)" },+ { value: "green", key: "forest", color: "var(--color-green-600)" },+ { value: "yellow", key: "amber", color: "var(--color-amber-600)" },+ { value: "orange", key: "terracotta", color: "var(--color-orange-600)" },+ { value: "pink", key: "rose", color: "var(--color-rose-600)" },+ { value: "red", key: "crimson", color: "var(--color-red-600)" },];type LabelColor =@@ -53,6 +54,7 @@ export default function TaskLabelsPopover({children,triggerNativeButton = true,}: TaskLabelsPopoverProps) {+ const { t } = useTranslation();const [open, setOpen] = useState(false);const [step, setStep] = useState<PopoverStep>("select");const [searchValue, setSearchValue] = useState("");@@ -130,7 +132,7 @@ export default function TaskLabelsPopover({);if (taskLabel?.id) {await deleteLabel({ id: taskLabel.id });- toast.success("Label removed");+ toast.success(t("tasks:popover.labels.removeSuccess"));}} else {// Add label to task@@ -140,7 +142,7 @@ export default function TaskLabelsPopover({taskId: task.id,workspaceId,});- toast.success("Label added");+ toast.success(t("tasks:popover.labels.addSuccess"));}// Invalidate all relevant queries@@ -152,7 +154,9 @@ export default function TaskLabelsPopover({});} catch (error) {toast.error(- error instanceof Error ? error.message : "Failed to update label",+ error instanceof Error+ ? error.message+ : t("tasks:popover.labels.updateError"),);}};@@ -192,11 +196,13 @@ export default function TaskLabelsPopover({queryKey: ["labels", workspaceId],});- toast.success("Label created and added");+ toast.success(t("tasks:popover.labels.createSuccess"));handleClose();} catch (error) {toast.error(- error instanceof Error ? error.message : "Failed to create label",+ error instanceof Error+ ? error.message+ : t("tasks:popover.labels.createError"),);}};@@ -209,7 +215,7 @@ export default function TaskLabelsPopover({ref={searchInputRef}value={searchValue}onChange={(e) => setSearchValue(e.target.value)}- placeholder="Search labels..."+ placeholder={t("tasks:popover.labels.searchPlaceholder")}className="border-none p-0 h-auto focus-visible:ring-0 shadow-none !bg-transparent"/></div>@@ -217,7 +223,7 @@ export default function TaskLabelsPopover({<div className="py-1">{filteredLabels.length === 0 && searchValue.length === 0 && (<span className="text-xs text-muted-foreground px-2">- No labels found+ {t("tasks:popover.labels.empty")}</span>)}{filteredLabels.map((label) => (@@ -264,7 +270,9 @@ export default function TaskLabelsPopover({"var(--color-neutral-400)",}}/>- <span className="truncate">Create "{searchValue}"</span>+ <span className="truncate">+ {t("tasks:popover.labels.create", { name: searchValue })}+ </span></button>)}</div>@@ -274,7 +282,9 @@ export default function TaskLabelsPopover({const renderColorStep = () => (<div className="w-auto"><div className="flex items-center justify-between p-2 border-b border-border">- <span className="text-xs font-medium">Choose color</span>+ <span className="text-xs font-medium">+ {t("tasks:popover.labels.chooseColor")}+ </span><buttontype="button"onClick={() => setStep("select")}@@ -299,7 +309,9 @@ export default function TaskLabelsPopover({className="w-2 h-2 rounded-full flex-shrink-0"style={{ backgroundColor: color.color }}/>- <span className="truncate">{color.label}</span>+ <span className="truncate">+ {t(`tasks:popover.labels.colors.${color.key}`)}+ </span>{selectedColor === color.value && (<Check className="w-3 h-3 ml-auto" />)}diff --git a/apps/web/src/components/task/task-priority-popover.tsx b/apps/web/src/components/task/task-priority-popover.tsxindex f5ff48ca6..481cfc67f 100644--- a/apps/web/src/components/task/task-priority-popover.tsx+++ b/apps/web/src/components/task/task-priority-popover.tsx@@ -1,5 +1,6 @@import { Check } from "lucide-react";import { useCallback, useMemo, useState } from "react";+import { useTranslation } from "react-i18next";import { Button } from "@/components/ui/button";import {Popover,@@ -9,6 +10,7 @@ import {import { ShortcutNumber } from "@/components/ui/shortcut-number";import { useUpdateTaskPriority } from "@/hooks/mutations/task/use-update-task-status-priority";import { useNumberedShortcuts } from "@/hooks/use-numbered-shortcuts";+import { getPriorityLabel } from "@/lib/i18n/domain";import { getPriorityIcon } from "@/lib/priority";import { toast } from "@/lib/toast";import type Task from "@/types/task";@@ -19,17 +21,18 @@ type TaskPriorityPopoverProps = {};const priorityOptions = [- { value: "no-priority", label: "No Priority" },- { value: "low", label: "Low" },- { value: "medium", label: "Medium" },- { value: "high", label: "High" },- { value: "urgent", label: "Urgent" },+ { value: "no-priority" },+ { value: "low" },+ { value: "medium" },+ { value: "high" },+ { value: "urgent" },];export default function TaskPriorityPopover({task,children,}: TaskPriorityPopoverProps) {+ const { t } = useTranslation();const [open, setOpen] = useState(false);const { mutateAsync: updateTaskPriority } = useUpdateTaskPriority();@@ -45,11 +48,11 @@ export default function TaskPriorityPopover({toast.error(error instanceof Error? error.message- : "Failed to update task priority",+ : t("tasks:popover.priority.updateError"),);}},- [task, updateTaskPriority],+ [t, task, updateTaskPriority],);const shortcutOptions = useMemo(@@ -76,7 +79,9 @@ export default function TaskPriorityPopover({onClick={() => handlePriorityChange(priority.value)}>{getPriorityIcon(priority.value)}- <span className="text-sm">{priority.label}</span>+ <span className="text-sm">+ {getPriorityLabel(priority.value)}+ </span>{task.priority === priority.value ? (<Check className="ml-auto h-4 w-4" />) : (diff --git a/apps/web/src/components/task/task-properties-sidebar.tsx b/apps/web/src/components/task/task-properties-sidebar.tsxindex 21b086b30..3a06dfa03 100644--- a/apps/web/src/components/task/task-properties-sidebar.tsx+++ b/apps/web/src/components/task/task-properties-sidebar.tsx@@ -1,4 +1,3 @@-import { format } from "date-fns";import {Calendar,CalendarClock,@@ -8,6 +7,7 @@ import {GitBranch,Plus,} from "lucide-react";+import { useTranslation } from "react-i18next";import { Avatar, AvatarFallback, AvatarImage } from "@/components/ui/avatar";import { Badge } from "@/components/ui/badge";import { Button } from "@/components/ui/button";@@ -26,6 +26,8 @@ import useGetTask from "@/hooks/queries/task/use-get-task";import { useGetActiveWorkspaceUsers } from "@/hooks/queries/workspace-users/use-get-active-workspace-users";import { getColumnIcon } from "@/lib/column";import { dueDateStatusColors, getDueDateStatus } from "@/lib/due-date-status";+import { formatDateShort } from "@/lib/format";+import { getPriorityLabel, getStatusLabel } from "@/lib/i18n/domain";import { getPriorityIcon } from "@/lib/priority";import { toast } from "@/lib/toast";import TaskAssigneePopover from "./task-assignee-popover";@@ -57,15 +59,6 @@ function generateBranchName(.replace("{title}", slugify(taskTitle));}-function toNormalCase(str: string | undefined) {- if (!str) return str;- return str- .replace(/[-_]/g, " ")- .split(" ")- .map((word) => word.charAt(0).toUpperCase() + word.slice(1).toLowerCase())- .join(" ");-}-type TaskPropertiesSidebarProps = {taskId: string | undefined;projectId: string;@@ -81,6 +74,7 @@ export default function TaskPropertiesSidebar({className,compact = false,}: TaskPropertiesSidebarProps) {+ const { t } = useTranslation();const { data: task } = useGetTask(taskId ?? "");const { data: project } = useGetProject({ id: projectId, workspaceId });const { data: workspaceUsers } = useGetActiveWorkspaceUsers(workspaceId);@@ -99,7 +93,7 @@ export default function TaskPropertiesSidebar({navigator.clipboard.writeText(`${window.location.origin}/workspace/${workspaceId}/project/${projectId}/task/${taskId}`,);- toast.message("Task link copied to clipboard");+ toast.message(t("tasks:properties.copyTaskLink"));};const handleCopyTaskBranch = () => {@@ -110,7 +104,7 @@ export default function TaskPropertiesSidebar({task?.title,);navigator.clipboard.writeText(branchName);- toast.message("Task branch copied to clipboard");+ toast.message(t("tasks:properties.copyTaskBranch"));};return (@@ -134,7 +128,7 @@ export default function TaskPropertiesSidebar({<TooltipContent><KbdSequencekeys={["Ctrl", "Shift", "C"]}- description="Copy task link"+ description={t("tasks:properties.copyTaskLink")}separator=""/></TooltipContent>@@ -156,7 +150,7 @@ export default function TaskPropertiesSidebar({<TooltipContent><KbdSequencekeys={["Ctrl", "Shift", "G"]}- description="Copy task branch"+ description={t("tasks:properties.copyTaskBranch")}separator=""/></TooltipContent>@@ -174,7 +168,7 @@ export default function TaskPropertiesSidebar({>{getColumnIcon(task.status ?? "", false)}<span className="text-xs font-semibold truncate">- {toNormalCase(task.status)}+ {getStatusLabel(task.status ?? "")}</span></Button></TaskStatusPopover>@@ -188,7 +182,7 @@ export default function TaskPropertiesSidebar({>{getPriorityIcon(task.priority ?? "")}<span className="text-xs font-semibold truncate">- {toNormalCase(task.priority ?? "")}+ {getPriorityLabel(task.priority ?? "")}</span></Button></TaskPriorityPopover>@@ -213,13 +207,15 @@ export default function TaskPropertiesSidebar({) : (<divclassName="w-[16px] h-[16px] rounded-full bg-muted border border-border flex items-center justify-center flex-shrink-0"- title="Unassigned"+ title={t("tasks:popover.assignee.unassigned")}><span className="text-[8px] font-medium">?</span></div>)}<span className="text-xs font-semibold truncate max-w-[100px]">- {assignee?.user?.name || task.assigneeName || "Unassigned"}+ {assignee?.user?.name ||+ task.assigneeName ||+ t("tasks:popover.assignee.unassigned")}</span></Button></TaskAssigneePopover>@@ -236,8 +232,8 @@ export default function TaskPropertiesSidebar({className={`text-xs font-semibold ${task.startDate ? "" : "text-muted-foreground"}`}>{task.startDate- ? format(new Date(task.startDate), "MMM d")- : "Start"}+ ? formatDateShort(task.startDate)+ : t("tasks:properties.start")}</span></Button></TaskStartDatePopover>@@ -268,14 +264,14 @@ export default function TaskPropertiesSidebar({/>)}<span className="text-xs font-semibold">- {format(new Date(task.dueDate), "MMM d")}+ {formatDateShort(task.dueDate)}</span></>) : (<><Calendar className="w-3.5 h-3.5 text-muted-foreground" /><span className="text-xs font-semibold text-muted-foreground">- No date+ {t("tasks:properties.noDate")}</span></>)}@@ -306,7 +302,7 @@ export default function TaskPropertiesSidebar({<TooltipContent><KbdSequencekeys={["Ctrl", "Shift", "C"]}- description="Copy task link"+ description={t("tasks:properties.copyTaskLink")}separator=""/></TooltipContent>@@ -328,7 +324,7 @@ export default function TaskPropertiesSidebar({<TooltipContent><KbdSequencekeys={["Ctrl", "Shift", "G"]}- description="Copy task branch"+ description={t("tasks:properties.copyTaskBranch")}separator=""/></TooltipContent>@@ -346,7 +342,7 @@ export default function TaskPropertiesSidebar({>{getColumnIcon(task.status ?? "", false)}<span className="text-xs font-semibold truncate">- {toNormalCase(task.status)}+ {getStatusLabel(task.status ?? "")}</span></Button></TaskStatusPopover>@@ -360,7 +356,7 @@ export default function TaskPropertiesSidebar({>{getPriorityIcon(task.priority ?? "")}<span className="text-xs font-semibold truncate">- {toNormalCase(task.priority ?? "")}+ {getPriorityLabel(task.priority ?? "")}</span></Button></TaskPriorityPopover>@@ -385,7 +381,7 @@ export default function TaskPropertiesSidebar({) : (<divclassName="w-[16px] h-[16px] rounded-full bg-muted border border-border flex items-center justify-center shrink-0"- title="Unassigned"+ title={t("tasks:popover.assignee.unassigned")}><span className="text-[8px] font-medium">?</span></div>@@ -393,7 +389,7 @@ export default function TaskPropertiesSidebar({<span className="text-xs font-semibold truncate max-w-[100px]">{assignee?.user?.name ||task.assigneeName ||- "Unassigned"}+ t("tasks:popover.assignee.unassigned")}</span></Button></TaskAssigneePopover>@@ -410,8 +406,8 @@ export default function TaskPropertiesSidebar({className={`text-xs font-semibold ${task.startDate ? "" : "text-muted-foreground"}`}>{task.startDate- ? format(new Date(task.startDate), "MMM d")- : "Start"}+ ? formatDateShort(task.startDate)+ : t("tasks:properties.start")}</span></Button></TaskStartDatePopover>@@ -442,14 +438,14 @@ export default function TaskPropertiesSidebar({/>)}<span className="text-xs font-semibold">- {format(new Date(task.dueDate), "MMM d")}+ {formatDateShort(task.dueDate)}</span></>) : (<><Calendar className="w-3.5 h-3.5 text-muted-foreground" /><span className="text-xs font-semibold text-muted-foreground">- No date+ {t("tasks:properties.noDate")}</span></>)}@@ -463,7 +459,7 @@ export default function TaskPropertiesSidebar({<div className="hidden lg:block"><div className="flex items-center justify-between px-3 py-2 border-b border-border lg:border-none"><p className="text-sm font-medium text-foreground/70 flex-1">- Properties+ {t("tasks:properties.title")}</p><div className="flex"><TooltipProvider>@@ -481,7 +477,7 @@ export default function TaskPropertiesSidebar({<TooltipContent><KbdSequencekeys={["Ctrl", "Shift", "C"]}- description="Copy task link"+ description={t("tasks:properties.copyTaskLink")}separator=""/></TooltipContent>@@ -503,7 +499,7 @@ export default function TaskPropertiesSidebar({<TooltipContent><KbdSequencekeys={["Ctrl", "Shift", "G"]}- description="Copy task branch"+ description={t("tasks:properties.copyTaskBranch")}separator=""/></TooltipContent>@@ -522,7 +518,7 @@ export default function TaskPropertiesSidebar({>{getColumnIcon(task.status ?? "", false)}<span className="text-xs font-semibold truncate">- {toNormalCase(task.status)}+ {getStatusLabel(task.status ?? "")}</span></Button></TaskStatusPopover>@@ -536,7 +532,7 @@ export default function TaskPropertiesSidebar({>{getPriorityIcon(task.priority ?? "")}<span className="text-xs font-semibold truncate">- {toNormalCase(task.priority ?? "")}+ {getPriorityLabel(task.priority ?? "")}</span></Button></TaskPriorityPopover>@@ -561,7 +557,7 @@ export default function TaskPropertiesSidebar({) : (<divclassName="w-[16px] h-[16px] rounded-full bg-muted border border-border flex items-center justify-center shrink-0"- title="Unassigned"+ title={t("tasks:popover.assignee.unassigned")}><span className="text-[8px] font-medium">?</span></div>@@ -569,7 +565,7 @@ export default function TaskPropertiesSidebar({<span className="text-xs font-semibold truncate max-w-[100px]">{assignee?.user?.name ||task.assigneeName ||- "Unassigned"}+ t("tasks:popover.assignee.unassigned")}</span></Button></TaskAssigneePopover>@@ -586,8 +582,8 @@ export default function TaskPropertiesSidebar({className={`text-xs font-semibold ${task.startDate ? "" : "text-muted-foreground"}`}>{task.startDate- ? format(new Date(task.startDate), "MMM d")- : "Start date"}+ ? formatDateShort(task.startDate)+ : t("tasks:properties.startDate")}</span></Button></TaskStartDatePopover>@@ -618,14 +614,14 @@ export default function TaskPropertiesSidebar({/>)}<span className="text-xs font-semibold">- {format(new Date(task.dueDate), "MMM d")}+ {formatDateShort(task.dueDate)}</span></>) : (<><Calendar className="w-3.5 h-3.5 text-muted-foreground" /><span className="text-xs font-semibold text-muted-foreground">- No date+ {t("tasks:properties.noDate")}</span></>)}@@ -640,7 +636,7 @@ export default function TaskPropertiesSidebar({<div className="hidden lg:flex px-3 flex-col gap-3 p-2"><div className="flex flex-col gap-1"><span className="text-xs font-medium text-foreground/70 px-2">- Labels+ {t("tasks:properties.labels")}</span><div className="flex flex-wrap items-center gap-1.5 px-2">{task &&diff --git a/apps/web/src/components/task/task-relations.tsx b/apps/web/src/components/task/task-relations.tsxindex 479d9b745..f1491920b 100644--- a/apps/web/src/components/task/task-relations.tsx+++ b/apps/web/src/components/task/task-relations.tsx@@ -8,6 +8,7 @@ import {X,} from "lucide-react";import { Fragment, useEffect, useMemo, useState } from "react";+import { useTranslation } from "react-i18next";import { Avatar, AvatarFallback, AvatarImage } from "@/components/ui/avatar";import { Button } from "@/components/ui/button";import {@@ -56,11 +57,6 @@ type TaskRelationsProps = {workspaceId: string;};-const relationTypeLabels: Record<string, string> = {- blocks: "blocks",- related: "relates to",-};-type TaskItem = {id: string;title: string;@@ -79,6 +75,7 @@ export default function TaskRelations({projectId,workspaceId,}: TaskRelationsProps) {+ const { t } = useTranslation();const navigate = useNavigate();const [isOpen, setIsOpen] = useState(true);const [commandOpen, setCommandOpen] = useState(false);@@ -168,11 +165,11 @@ export default function TaskRelations({return [{value: "tasks",- label: "Tasks in project",+ label: t("tasks:relations.tasksInProject"),items: filteredTasks,},];- }, [filteredTasks]);+ }, [filteredTasks, t]);const handleLinkTask = async (targetTaskId: string) => {try {@@ -184,7 +181,7 @@ export default function TaskRelations({setCommandOpen(false);setSearchQuery("");} catch {- toast.error("Failed to link task");+ toast.error(t("tasks:relations.linkError"));}};@@ -239,7 +236,7 @@ export default function TaskRelations({) : (<ChevronRight className="size-4" />)}- <span>Relations</span>+ <span>{t("tasks:relations.title")}</span></button></CollapsibleTrigger>{totalCount > 0 && (@@ -262,7 +259,7 @@ export default function TaskRelations({{Object.entries(groupedRelations).map(([type, items]) => (<div key={type} className="mt-1.5"><span className="text-[11px] text-muted-foreground/70 px-2">- {relationTypeLabels[type] || type}+ {t(`tasks:relations.types.${type}`, { defaultValue: type })}</span><div className="flex flex-col mt-0.5">{items.map((item) => {@@ -320,7 +317,7 @@ export default function TaskRelations({) : (<divclassName="flex h-5 w-5 items-center justify-center rounded-full border border-dashed border-border/70"- title="Unassigned"+ title={t("tasks:popover.assignee.unassigned")}><span className="text-[9px] font-medium text-muted-foreground">?@@ -336,14 +333,14 @@ export default function TaskRelations({<ContextMenuItemonClick={() => handleNavigateToTask(item.task.id)}>- <span>Open task</span>+ <span>{t("tasks:relations.openTask")}</span></ContextMenuItem><ContextMenuSeparator /><ContextMenuItemclassName="text-destructive"onClick={() => handleRemoveRelation(item.id)}>- <span>Remove relation</span>+ <span>{t("tasks:relations.removeRelation")}</span></ContextMenuItem></ContextMenuContent></ContextMenu>@@ -355,7 +352,7 @@ export default function TaskRelations({{totalCount === 0 && (<p className="text-xs text-muted-foreground px-2 py-1">- No related tasks+ {t("tasks:relations.empty")}</p>)}</CollapsibleContent>@@ -365,7 +362,7 @@ export default function TaskRelations({<CommandDialogPopup><Command items={commandGroups}><CommandInput- placeholder="Search tasks to link..."+ placeholder={t("tasks:relations.searchPlaceholder")}value={searchQuery}onChange={(e) => setSearchQuery(e.target.value)}/>@@ -374,7 +371,7 @@ export default function TaskRelations({<div className="text-center py-6"><Search className="h-8 w-8 mx-auto mb-2 text-muted-foreground" /><p className="text-sm text-muted-foreground">- No tasks found+ {t("tasks:relations.noTasksFound")}</p></div></CommandEmpty>@@ -417,7 +414,7 @@ export default function TaskRelations({onClick={() => setSelectedRelationType("related")}><Link2 className="size-3" />- Related+ {t("tasks:relations.related")}</button><buttontype="button"@@ -425,11 +422,11 @@ export default function TaskRelations({onClick={() => setSelectedRelationType("blocks")}><X className="size-3" />- Blocks+ {t("tasks:relations.blocks")}</button></div><span className="text-muted-foreground/60">- Select a task to link+ {t("tasks:relations.selectTask")}</span></CommandFooter></Command>diff --git a/apps/web/src/components/task/task-start-date-popover.tsx b/apps/web/src/components/task/task-start-date-popover.tsxindex 26a704ce7..a9ba53ae3 100644--- a/apps/web/src/components/task/task-start-date-popover.tsx+++ b/apps/web/src/components/task/task-start-date-popover.tsx@@ -1,5 +1,6 @@import { X } from "lucide-react";import { useState } from "react";+import { useTranslation } from "react-i18next";import { Button } from "@/components/ui/button";import { Calendar } from "@/components/ui/calendar";import {@@ -20,6 +21,7 @@ export default function TaskStartDatePopover({task,children,}: TaskStartDatePopoverProps) {+ const { t } = useTranslation();const [open, setOpen] = useState(false);const { mutateAsync: updateTask } = useUpdateTask();@@ -29,13 +31,13 @@ export default function TaskStartDatePopover({...task,startDate: date?.toISOString() || null,});- toast.success("Task start date updated successfully");+ toast.success(t("tasks:popover.startDate.updateSuccess"));setOpen(false);} catch (error) {toast.error(error instanceof Error? error.message- : "Failed to update task start date",+ : t("tasks:popover.startDate.updateError"),);}};@@ -62,7 +64,7 @@ export default function TaskStartDatePopover({onClick={() => handleDateChange(undefined)}><X className="h-4 w-4" />- Clear start date+ {t("tasks:popover.startDate.clear")}</Button></div>)}diff --git a/apps/web/src/components/task/task-status-popover.tsx b/apps/web/src/components/task/task-status-popover.tsxindex a8c14d4a7..3c4a7dbd6 100644--- a/apps/web/src/components/task/task-status-popover.tsx+++ b/apps/web/src/components/task/task-status-popover.tsx@@ -1,5 +1,6 @@import { Check } from "lucide-react";import { useCallback, useMemo, useState } from "react";+import { useTranslation } from "react-i18next";import { Button } from "@/components/ui/button";import {Popover,@@ -10,6 +11,7 @@ import { ShortcutNumber } from "@/components/ui/shortcut-number";import { useUpdateTaskStatus } from "@/hooks/mutations/task/use-update-task-status";import { useNumberedShortcuts } from "@/hooks/use-numbered-shortcuts";import { getColumnIcon } from "@/lib/column";+import { getStatusLabel } from "@/lib/i18n/domain";import { toast } from "@/lib/toast";import useProjectStore from "@/store/project";import type Task from "@/types/task";@@ -23,6 +25,7 @@ export default function TaskStatusPopover({task,children,}: TaskStatusPopoverProps) {+ const { t } = useTranslation();const [open, setOpen] = useState(false);const { project } = useProjectStore();const statusOptions =@@ -45,11 +48,11 @@ export default function TaskStatusPopover({toast.error(error instanceof Error? error.message- : "Failed to update task status",+ : t("tasks:popover.status.updateError"),);}},- [task, updateTaskStatus],+ [t, task, updateTaskStatus],);const shortcutOptions = useMemo(@@ -76,7 +79,9 @@ export default function TaskStatusPopover({onClick={() => handleStatusChange(status.value)}>{getColumnIcon(status.value, status.isFinal)}- <span className="text-sm">{status.label}</span>+ <span className="text-sm">+ {getStatusLabel(status.value) || status.label}+ </span>{task.status === status.value ? (<Check className="ml-auto h-4 w-4" />) : (diff --git a/apps/web/src/components/task/task-subtasks.tsx b/apps/web/src/components/task/task-subtasks.tsxindex a8d17104d..e95a09b5d 100644--- a/apps/web/src/components/task/task-subtasks.tsx+++ b/apps/web/src/components/task/task-subtasks.tsx@@ -2,6 +2,7 @@ import { useNavigate } from "@tanstack/react-router";import { AnimatePresence } from "framer-motion";import { ChevronDown, ChevronRight, Plus } from "lucide-react";import { useCallback, useEffect, useRef, useState } from "react";+import { useTranslation } from "react-i18next";import {AlertDialog,AlertDialogClose,@@ -41,6 +42,7 @@ export default function TaskSubtasks({projectId,workspaceId,}: TaskSubtasksProps) {+ const { t } = useTranslation();const navigate = useNavigate();const [isOpen, setIsOpen] = useState(true);const [isAdding, setIsAdding] = useState(false);@@ -239,7 +241,7 @@ export default function TaskSubtasks({setNewTitle("");setIsAdding(false);} catch {- toast.error("Failed to create subtask");+ toast.error(t("tasks:subtasks.createError"));}};@@ -254,10 +256,12 @@ export default function TaskSubtasks({next.delete(deleteTaskId);return next;});- toast.success("Task deleted successfully");+ toast.success(t("tasks:subtasks.deleteSuccess"));} catch (error) {toast.error(- error instanceof Error ? error.message : "Failed to delete task",+ error instanceof Error+ ? error.message+ : t("tasks:subtasks.deleteError"),);} finally {setDeleteTaskId(null);@@ -279,7 +283,7 @@ export default function TaskSubtasks({) : (<ChevronRight className="size-4" />)}- <span>Sub-tasks</span>+ <span>{t("tasks:subtasks.title")}</span></button></CollapsibleTrigger>{totalCount > 0 && (@@ -353,7 +357,7 @@ export default function TaskSubtasks({<div className="flex items-center gap-2 mt-2"><Inputsize="sm"- placeholder="Subtask title..."+ placeholder={t("tasks:subtasks.inputPlaceholder")}value={newTitle}onChange={(e: React.ChangeEvent<HTMLInputElement>) =>setNewTitle(e.target.value)@@ -372,7 +376,7 @@ export default function TaskSubtasks({onClick={handleAddSubtask}disabled={!newTitle.trim() || createTask.isPending}>- Add+ {t("tasks:subtasks.addAction")}</Button><Buttonvariant="ghost"@@ -382,14 +386,14 @@ export default function TaskSubtasks({setNewTitle("");}}>- Cancel+ {t("common:actions.cancel")}</Button></div>)}{!isAdding && totalCount === 0 && (<p className="text-xs text-muted-foreground px-2 py-1">- No subtasks yet+ {t("tasks:subtasks.empty")}</p>)}</CollapsibleContent>@@ -401,21 +405,22 @@ export default function TaskSubtasks({><AlertDialogContent><AlertDialogHeader>- <AlertDialogTitle>Delete Task?</AlertDialogTitle>+ <AlertDialogTitle>+ {t("tasks:subtasks.deleteDialogTitle")}+ </AlertDialogTitle><AlertDialogDescription>- This will permanently remove the task and all its data. You can't- undo this action.+ {t("tasks:subtasks.deleteDialogDescription")}</AlertDialogDescription></AlertDialogHeader><AlertDialogFooter><AlertDialogClose><Button variant="outline" size="sm">- Cancel+ {t("common:actions.cancel")}</Button></AlertDialogClose><AlertDialogClose onClick={handleDeleteTask}><Button variant="destructive" size="sm">- Delete Task+ {t("tasks:subtasks.deleteAction")}</Button></AlertDialogClose></AlertDialogFooter>diff --git a/apps/web/src/components/task/task-title.tsx b/apps/web/src/components/task/task-title.tsxindex 90debc6ab..fefa023e9 100644--- a/apps/web/src/components/task/task-title.tsx+++ b/apps/web/src/components/task/task-title.tsx@@ -1,5 +1,6 @@import { useCallback, useEffect, useRef } from "react";import { useForm } from "react-hook-form";+import { useTranslation } from "react-i18next";import { Form, FormField } from "@/components/ui/form";import { useUpdateTaskTitle } from "@/hooks/mutations/task/use-update-task-title";@@ -11,6 +12,7 @@ type TaskTitleProps = {};export default function TaskTitle({ taskId }: TaskTitleProps) {+ const { t } = useTranslation();const { data: task } = useGetTask(taskId);const { mutateAsync: updateTaskTitle } = useUpdateTaskTitle();const isInitializedRef = useRef(false);@@ -78,7 +80,7 @@ export default function TaskTitle({ taskId }: TaskTitleProps) {<input{...field}type="text"- placeholder="Click to add a title"+ placeholder={t("tasks:detail.titlePlaceholder")}className="block h-auto w-full appearance-none border-0 bg-transparent p-0 font-heading text-[2rem] leading-[1.15] font-semibold tracking-[-0.02em] text-foreground outline-none placeholder:text-foreground/45"onChange={(e) => {field.onChange(e);diff --git a/apps/web/src/components/team/invite-team-member-modal.tsx b/apps/web/src/components/team/invite-team-member-modal.tsxindex 6d215389d..de2c13fa4 100644--- a/apps/web/src/components/team/invite-team-member-modal.tsx+++ b/apps/web/src/components/team/invite-team-member-modal.tsx@@ -2,6 +2,7 @@ import { standardSchemaResolver } from "@hookform/resolvers/standard-schema";import { useQueryClient } from "@tanstack/react-query";import { X } from "lucide-react";import { useForm } from "react-hook-form";+import { useTranslation } from "react-i18next";import { z } from "zod/v4";import useInviteWorkspaceUser from "@/hooks/mutations/workspace-user/use-invite-workspace-user";import { toast } from "@/lib/toast";@@ -30,6 +31,7 @@ const teamMemberSchema = z.object({type TeamMemberFormValues = z.infer<typeof teamMemberSchema>;function InviteTeamMemberModal({ open, onClose }: Props) {+ const { t } = useTranslation();const { mutateAsync } = useInviteWorkspaceUser();const queryClient = useQueryClient();const { workspaceId } = Route.useParams();@@ -48,13 +50,13 @@ function InviteTeamMemberModal({ open, onClose }: Props) {queryKey: ["workspace-users", workspaceId],});- toast.success("Invitation sent successfully");+ toast.success(t("team:inviteModal.success"));resetInviteTeamMember();onClose();} catch (error) {toast.error(- error instanceof Error ? error.message : "Failed to invite team member",+ error instanceof Error ? error.message : t("team:inviteModal.error"),);}};@@ -77,7 +79,7 @@ function InviteTeamMemberModal({ open, onClose }: Props) {<div className="bg-card rounded-lg shadow-xl"><div className="flex items-center justify-between p-4 border-b border-border"><DialogTitle className="text-lg font-semibold text-foreground">- Invite Team Member+ {t("team:inviteModal.title")}</DialogTitle><DialogCloseclassName="text-muted-foreground hover:text-foreground"@@ -97,12 +99,12 @@ function InviteTeamMemberModal({ open, onClose }: Props) {render={({ field }) => (<FormItem><FormLabel className="block text-sm font-medium text-foreground mb-1">+ {t("team:inviteModal.emailLabel")}</FormLabel><FormControl><Input{...field}- placeholder="[email protected]"+ placeholder={t("team:inviteModal.emailPlaceholder")}className="bg-card/50"autoFocus/>@@ -123,9 +125,11 @@ function InviteTeamMemberModal({ open, onClose }: Props) {/>}>- Cancel+ {t("common:actions.cancel")}</DialogClose>- <Button type="submit">Send Invitation</Button>+ <Button type="submit">+ {t("team:inviteModal.sendInvitation")}+ </Button></div></form></Form>diff --git a/apps/web/src/components/team/members-table.tsx b/apps/web/src/components/team/members-table.tsxindex e479612c8..aa37b4f73 100644--- a/apps/web/src/components/team/members-table.tsx+++ b/apps/web/src/components/team/members-table.tsx@@ -1,7 +1,9 @@import { Trash2 } from "lucide-react";import { useState } from "react";+import { useTranslation } from "react-i18next";import useCancelInvitation from "@/hooks/mutations/workspace-user/use-cancel-invitation";import useDeleteWorkspaceUser from "@/hooks/mutations/workspace-user/use-delete-workspace-user";+import { formatDateMedium } from "@/lib/format";import { toast } from "@/lib/toast";import { Route } from "@/routes/_layout/_authenticated/dashboard/workspace/$workspaceId/members";import type {@@ -41,6 +43,7 @@ function MembersTable({);const [invitationToCancel, setInvitationToCancel] =useState<WorkspaceUserInvitation | null>(null);+ const { t } = useTranslation();const { user: currentUser } = useAuth();const { workspaceId } = Route.useParams();const { mutateAsync: deleteWorkspaceUser, isPending } =@@ -56,10 +59,12 @@ function MembersTable({workspaceId,userId: memberToDelete.user.email,});- toast.success("Team member removed successfully");+ toast.success(t("team:membersTable.removeSuccess"));} catch (error) {toast.error(- error instanceof Error ? error.message : "Failed to remove team member",+ error instanceof Error+ ? error.message+ : t("team:membersTable.removeError"),);} finally {setMemberToDelete(null);@@ -74,10 +79,12 @@ function MembersTable({invitationId: invitationToCancel.id,workspaceId,});- toast.success("Invitation cancelled successfully");+ toast.success(t("team:membersTable.cancelInviteSuccess"));} catch (error) {toast.error(- error instanceof Error ? error.message : "Failed to cancel invitation",+ error instanceof Error+ ? error.message+ : t("team:membersTable.cancelInviteError"),);} finally {setInvitationToCancel(null);@@ -92,9 +99,11 @@ function MembersTable({<span className="text-2xl">👥</span></div><div className="space-y-2">- <h3 className="text-xl font-semibold">No team members yet</h3>+ <h3 className="text-xl font-semibold">+ {t("team:membersTable.emptyTitle")}+ </h3><p className="text-muted-foreground">- Invite your first team member to get started.+ {t("team:membersTable.emptyDescription")}</p></div></div>@@ -108,16 +117,16 @@ function MembersTable({<TableHeader><TableRow><TableHead className="text-muted-foreground text-xs w-2/3 pl-6">- Name+ {t("team:membersTable.columns.name")}</TableHead><TableHead className="text-muted-foreground text-xs">- Role+ {t("team:membersTable.columns.role")}</TableHead><TableHead className="text-muted-foreground text-xs">- Joined+ {t("team:membersTable.columns.joined")}</TableHead><TableHead className="text-muted-foreground text-xs pr-6 text-right">- Actions+ {t("team:membersTable.columns.actions")}</TableHead></TableRow></TableHeader>@@ -142,22 +151,17 @@ function MembersTable({</TableCell><TableCell className="py-3"><span className="inline-flex items-center px-1.5 py-0.5 rounded text-xs bg-muted text-muted-foreground">- {invitation.role.charAt(0).toUpperCase() +- invitation.role.slice(1).toLowerCase()}{" "}- (Pending)+ {t("team:membersTable.memberRolePending", {+ role:+ invitation.role.charAt(0).toUpperCase() ++ invitation.role.slice(1).toLowerCase(),+ })}</span></TableCell><TableCell className="py-3"><span className="text-sm text-muted-foreground">{invitation.expiresAt &&- new Date(invitation.expiresAt).toLocaleDateString(- "en-US",- {- month: "short",- day: "numeric",- year: "numeric",- },- )}+ formatDateMedium(invitation.expiresAt)}</span></TableCell><TableCell className="py-3 pr-6 text-right">@@ -169,7 +173,7 @@ function MembersTable({setInvitationToCancel(invitation);}}className="h-8 w-8 text-muted-foreground hover:text-destructive hover:bg-destructive/10"- aria-label="Cancel invitation"+ aria-label={t("team:membersTable.ariaCancelInvitation")}><Trash2 className="h-4 w-4" /></Button>@@ -202,12 +206,7 @@ function MembersTable({<TableCell className="py-3"><span className="text-sm text-muted-foreground">- {member.createdAt &&- new Date(member.createdAt).toLocaleDateString("en-US", {- month: "short",- day: "numeric",- year: "numeric",- })}+ {member.createdAt && formatDateMedium(member.createdAt)}</span></TableCell><TableCell className="py-3 pr-6 text-right">@@ -220,7 +219,7 @@ function MembersTable({setMemberToDelete(member);}}className="h-8 w-8 text-muted-foreground hover:text-destructive hover:bg-destructive/10"- aria-label="Remove member"+ aria-label={t("team:membersTable.ariaRemoveMember")}><Trash2 className="h-4 w-4" /></Button>@@ -237,25 +236,26 @@ function MembersTable({><AlertDialogContent><AlertDialogHeader>- <AlertDialogTitle>Remove Team Member?</AlertDialogTitle>+ <AlertDialogTitle>+ {t("team:membersTable.removeDialogTitle")}+ </AlertDialogTitle><AlertDialogDescription>- Are you sure you want to remove{" "}- <span className="font-medium text-foreground">- {memberToDelete?.user.name || memberToDelete?.user.email}- </span>{" "}- from the workspace? This action cannot be undone.+ {t("team:membersTable.removeDialogDescription", {+ name:+ memberToDelete?.user.name || memberToDelete?.user.email || "",+ })}</AlertDialogDescription></AlertDialogHeader><AlertDialogFooter><AlertDialogClose disabled={isPending}><Button variant="outline" size="sm" disabled={isPending}>- Cancel+ {t("common:actions.cancel")}</Button></AlertDialogClose><AlertDialogClose onClick={handleDeleteMember} disabled={isPending}><Button variant="destructive" size="sm" disabled={isPending}><Trash2 className="w-4 h-4 mr-2" />- Remove Member+ {t("team:membersTable.removeMember")}</Button></AlertDialogClose></AlertDialogFooter>@@ -268,19 +268,19 @@ function MembersTable({><AlertDialogContent><AlertDialogHeader>- <AlertDialogTitle>Cancel Invitation?</AlertDialogTitle>+ <AlertDialogTitle>+ {t("team:membersTable.cancelDialogTitle")}+ </AlertDialogTitle><AlertDialogDescription>- Are you sure you want to cancel the invitation for{" "}- <span className="font-medium text-foreground">- {invitationToCancel?.email}- </span>- ? This action cannot be undone.+ {t("team:membersTable.cancelDialogDescription", {+ email: invitationToCancel?.email ?? "",+ })}</AlertDialogDescription></AlertDialogHeader><AlertDialogFooter><AlertDialogClose disabled={isCancelling}><Button variant="outline" size="sm" disabled={isCancelling}>- Cancel+ {t("common:actions.cancel")}</Button></AlertDialogClose><AlertDialogClose@@ -289,7 +289,7 @@ function MembersTable({><Button variant="destructive" size="sm" disabled={isCancelling}><Trash2 className="w-4 h-4 mr-2" />- Cancel Invitation+ {t("team:membersTable.cancelInvitation")}</Button></AlertDialogClose></AlertDialogFooter>diff --git a/apps/web/src/components/ui/breadcrumb.tsx b/apps/web/src/components/ui/breadcrumb.tsxindex e10e5da05..dbc127ad5 100644--- a/apps/web/src/components/ui/breadcrumb.tsx+++ b/apps/web/src/components/ui/breadcrumb.tsx@@ -6,9 +6,16 @@ import { ChevronRight, MoreHorizontal } from "lucide-react";import type * as React from "react";import { cn } from "@/lib/cn";+import { i18n } from "@/lib/i18n";function Breadcrumb({ ...props }: React.ComponentProps<"nav">) {- return <nav aria-label="breadcrumb" data-slot="breadcrumb" {...props} />;+ return (+ <nav+ aria-label={i18n.t("common:breadcrumb.label")}+ data-slot="breadcrumb"+ {...props}+ />+ );}function BreadcrumbList({ className, ...props }: React.ComponentProps<"ol">) {@@ -96,7 +103,7 @@ function BreadcrumbEllipsis({{...props}><MoreHorizontal className="size-4" />- <span className="sr-only">More</span>+ <span className="sr-only">{i18n.t("common:breadcrumb.more")}</span></span>);}diff --git a/apps/web/src/components/ui/combobox.tsx b/apps/web/src/components/ui/combobox.tsxindex 44ee5e59f..00ab4deaf 100644--- a/apps/web/src/components/ui/combobox.tsx+++ b/apps/web/src/components/ui/combobox.tsx@@ -6,6 +6,7 @@ import * as React from "react";import { Input } from "@/components/ui/input";import { ScrollArea } from "@/components/ui/scroll-area";import { cn } from "@/lib/cn";+import { i18n } from "@/lib/i18n";const ComboboxContext = React.createContext<{chipsRef: React.RefObject<Element | null> | null;@@ -111,6 +112,7 @@ function ComboboxInput({)}{showClear && (<ComboboxClear+ aria-label={i18n.t("common:actions.remove")}className={cn("-translate-y-1/2 absolute top-1/2 inline-flex size-8 shrink-0 cursor-pointer items-center justify-center rounded-md border border-transparent opacity-80 outline-none transition-opacity pointer-coarse:after:absolute pointer-coarse:after:min-h-11 pointer-coarse:after:min-w-11 hover:opacity-100 has-[+[data-slot=combobox-clear]]:hidden sm:size-7 [&_svg:not([class*='size-'])]:size-4.5 sm:[&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0",sizeValue === "sm" ? "end-0" : "end-0.5",@@ -386,7 +388,7 @@ function ComboboxChip({ children, ...props }: ComboboxPrimitive.Chip.Props) {function ComboboxChipRemove(props: ComboboxPrimitive.ChipRemove.Props) {return (<ComboboxPrimitive.ChipRemove- aria-label="Remove"+ aria-label={i18n.t("common:actions.remove")}className="h-full shrink-0 cursor-pointer px-1.5 opacity-80 hover:opacity-100 [&_svg:not([class*='size-'])]:size-4 sm:[&_svg:not([class*='size-'])]:size-3.5"data-slot="combobox-chip-remove"{...props}diff --git a/apps/web/src/components/ui/dialog.tsx b/apps/web/src/components/ui/dialog.tsxindex aa5abd798..9e1a33f22 100644--- a/apps/web/src/components/ui/dialog.tsx+++ b/apps/web/src/components/ui/dialog.tsx@@ -6,6 +6,7 @@ import * as React from "react";import { Button } from "@/components/ui/button";import { ScrollArea } from "@/components/ui/scroll-area";import { cn } from "@/lib/cn";+import { i18n } from "@/lib/i18n";const DialogCreateHandle = DialogPrimitive.createHandle;@@ -117,7 +118,7 @@ function DialogPopup({{children}{showCloseButton && (<DialogPrimitive.Close- aria-label="Close"+ aria-label={i18n.t("common:actions.close")}className="absolute end-2 top-2"render={<Button size="icon" variant="ghost" />}>diff --git a/apps/web/src/components/ui/error-boundary.tsx b/apps/web/src/components/ui/error-boundary.tsxindex 9f8db19b7..d53e82007 100644--- a/apps/web/src/components/ui/error-boundary.tsx+++ b/apps/web/src/components/ui/error-boundary.tsx@@ -45,11 +45,7 @@ export class ErrorBoundary extends React.Component<}return (- <ErrorDisplay- error={this.state.error}- onRetry={this.resetError}- title="Something went wrong"- />+ <ErrorDisplay error={this.state.error} onRetry={this.resetError} />);}diff --git a/apps/web/src/components/ui/error-display.tsx b/apps/web/src/components/ui/error-display.tsxindex c66ed033f..7ed41069b 100644--- a/apps/web/src/components/ui/error-display.tsx+++ b/apps/web/src/components/ui/error-display.tsx@@ -1,4 +1,5 @@import { AlertTriangle, ExternalLink, RefreshCw } from "lucide-react";+import { useTranslation } from "react-i18next";import {getCorsTroubleshootingSteps,getNetworkTroubleshootingSteps,@@ -23,10 +24,12 @@ type ErrorDisplayProps = {export function ErrorDisplay({error,onRetry,- title = "Something went wrong",+ title,className,}: ErrorDisplayProps) {+ const { t } = useTranslation();const parsedError = parseApiError(error);+ const resolvedTitle = title ?? t("common:error.title");const getTroubleshootingSteps = () => {switch (parsedError.type) {@@ -50,7 +53,7 @@ export function ErrorDisplay({<div className="mx-auto mb-4 flex h-12 w-12 items-center justify-center rounded-full bg-destructive/12"><AlertTriangle className="h-6 w-6 text-destructive-foreground" /></div>- <CardTitle className="text-lg">{title}</CardTitle>+ <CardTitle className="text-lg">{resolvedTitle}</CardTitle><CardDescription className="text-sm">{parsedError.message}</CardDescription>@@ -59,7 +62,7 @@ export function ErrorDisplay({{troubleshootingSteps.length > 0 && (<div className="space-y-2"><h4 className="text-sm font-medium text-foreground">- Troubleshooting steps:+ {t("common:error.troubleshooting")}</h4><ul className="text-xs text-muted-foreground space-y-1">{troubleshootingSteps.map((step) => (@@ -81,7 +84,7 @@ export function ErrorDisplay({className="w-full"><RefreshCw className="w-4 h-4 mr-2" />- Try Again+ {t("common:error.tryAgain")}</Button>)}@@ -93,7 +96,7 @@ export function ErrorDisplay({className="w-full"><ExternalLink className="w-4 h-4 mr-2" />- View Deployment Guide+ {t("common:error.viewDeploymentGuide")}</Button>)}@@ -104,7 +107,7 @@ export function ErrorDisplay({className="w-full"><RefreshCw className="w-4 h-4 mr-2" />- Refresh Page+ {t("common:error.refreshPage")}</Button></div></CardContent>diff --git a/apps/web/src/components/ui/error-fallback.tsx b/apps/web/src/components/ui/error-fallback.tsxindex 5b9a7627e..5c3e7ea1b 100644--- a/apps/web/src/components/ui/error-fallback.tsx+++ b/apps/web/src/components/ui/error-fallback.tsx@@ -7,11 +7,6 @@ type ErrorFallbackProps = {export function ErrorFallback({ error, resetError }: ErrorFallbackProps) {return (- <ErrorDisplay- error={error}- onRetry={resetError}- title="Something went wrong"- className="min-h-screen"- />+ <ErrorDisplay error={error} onRetry={resetError} className="min-h-screen" />);}diff --git a/apps/web/src/components/ui/pagination.tsx b/apps/web/src/components/ui/pagination.tsxindex 924f3c522..ab98264e9 100644--- a/apps/web/src/components/ui/pagination.tsx+++ b/apps/web/src/components/ui/pagination.tsx@@ -8,13 +8,15 @@ import {MoreHorizontalIcon,} from "lucide-react";import type * as React from "react";+import { useTranslation } from "react-i18next";import { type Button, buttonVariants } from "@/components/ui/button";import { cn } from "@/lib/cn";function Pagination({ className, ...props }: React.ComponentProps<"nav">) {+ const { t } = useTranslation();return (<nav- aria-label="pagination"+ aria-label={t("common:pagination.label")}className={cn("mx-auto flex w-full justify-center", className)}data-slot="pagination"{...props}@@ -77,15 +79,16 @@ function PaginationPrevious({className,...props}: React.ComponentProps<typeof PaginationLink>) {+ const { t } = useTranslation();return (<PaginationLink- aria-label="Go to previous page"+ aria-label={t("common:pagination.previousPage")}className={cn("max-sm:aspect-square max-sm:p-0", className)}size="default"{...props}><ChevronLeftIcon className="sm:-ms-1" />- <span className="max-sm:hidden">Previous</span>+ <span className="max-sm:hidden">{t("common:pagination.previous")}</span></PaginationLink>);}@@ -94,14 +97,15 @@ function PaginationNext({className,...props}: React.ComponentProps<typeof PaginationLink>) {+ const { t } = useTranslation();return (<PaginationLink- aria-label="Go to next page"+ aria-label={t("common:pagination.nextPage")}className={cn("max-sm:aspect-square max-sm:p-0", className)}size="default"{...props}>- <span className="max-sm:hidden">Next</span>+ <span className="max-sm:hidden">{t("common:pagination.next")}</span><ChevronRightIcon className="sm:-me-1" /></PaginationLink>);@@ -111,6 +115,7 @@ function PaginationEllipsis({className,...props}: React.ComponentProps<"span">) {+ const { t } = useTranslation();return (<spanaria-hidden@@ -119,7 +124,7 @@ function PaginationEllipsis({{...props}><MoreHorizontalIcon className="size-5 sm:size-4" />- <span className="sr-only">More pages</span>+ <span className="sr-only">{t("common:pagination.morePages")}</span></span>);}diff --git a/apps/web/src/components/ui/sheet.tsx b/apps/web/src/components/ui/sheet.tsxindex 6d55472db..7593733bf 100644--- a/apps/web/src/components/ui/sheet.tsx+++ b/apps/web/src/components/ui/sheet.tsx@@ -5,6 +5,7 @@ import { XIcon } from "lucide-react";import { Button } from "@/components/ui/button";import { ScrollArea } from "@/components/ui/scroll-area";import { cn } from "@/lib/cn";+import { i18n } from "@/lib/i18n";const Sheet = SheetPrimitive.Root;@@ -93,7 +94,7 @@ function SheetPopup({{children}{showCloseButton && (<SheetPrimitive.Close- aria-label="Close"+ aria-label={i18n.t("common:actions.close")}className="absolute end-2 top-2"render={<Button size="icon" variant="ghost" />}>diff --git a/apps/web/src/components/ui/sidebar.tsx b/apps/web/src/components/ui/sidebar.tsxindex 507c8aec0..c920a81a6 100644--- a/apps/web/src/components/ui/sidebar.tsx+++ b/apps/web/src/components/ui/sidebar.tsx@@ -5,6 +5,7 @@ import { useRender } from "@base-ui/react/use-render";import { cva, type VariantProps } from "class-variance-authority";import { PanelLeftIcon } from "lucide-react";import * as React from "react";+import { useTranslation } from "react-i18next";import { Button } from "@/components/ui/button";import { Input } from "@/components/ui/input";import { ScrollArea } from "@/components/ui/scroll-area";@@ -28,6 +29,19 @@ const SIDEBAR_WIDTH_MOBILE = "18rem";const SIDEBAR_WIDTH_ICON = "3rem";const SIDEBAR_KEYBOARD_SHORTCUT = "b";+function MobileSidebarHeader() {+ const { t } = useTranslation();++ return (+ <SheetHeader className="sr-only">+ <SheetTitle>{t("common:sidebar.title")}</SheetTitle>+ <SheetDescription>+ {t("common:sidebar.mobileDescription")}+ </SheetDescription>+ </SheetHeader>+ );+}+type SidebarContextProps = {state: "expanded" | "collapsed";open: boolean;@@ -204,10 +218,7 @@ function Sidebar({} as React.CSSProperties}>- <SheetHeader className="sr-only">- <SheetTitle>Sidebar</SheetTitle>- <SheetDescription>Displays the mobile sidebar.</SheetDescription>- </SheetHeader>+ <MobileSidebarHeader /><div className="flex h-full w-full flex-col">{children}</div></SheetPopup></Sheet>@@ -267,6 +278,7 @@ function SidebarTrigger({onClick,...props}: React.ComponentProps<typeof Button>) {+ const { t } = useTranslation();const { toggleSidebar } = useSidebar();return (@@ -283,17 +295,18 @@ function SidebarTrigger({{...props}><PanelLeftIcon />- <span className="sr-only">Toggle Sidebar</span>+ <span className="sr-only">{t("common:a11y.toggleSidebar")}</span></Button>);}function SidebarRail({ className, ...props }: React.ComponentProps<"button">) {+ const { t } = useTranslation();const { toggleSidebar } = useSidebar();return (<button- aria-label="Toggle Sidebar"+ aria-label={t("common:a11y.toggleSidebar")}className={cn("-translate-x-1/2 group-data-[side=left]:-right-4 absolute inset-y-0 z-20 hidden w-4 transition-all ease-linear after:absolute after:inset-y-0 after:left-1/2 after:w-[2px] hover:after:bg-sidebar-border group-data-[side=right]:left-0 sm:flex","in-data-[side=left]:cursor-w-resize in-data-[side=right]:cursor-e-resize",@@ -307,7 +320,7 @@ function SidebarRail({ className, ...props }: React.ComponentProps<"button">) {data-slot="sidebar-rail"onClick={toggleSidebar}tabIndex={-1}- title="Toggle Sidebar"+ title={t("common:a11y.toggleSidebar")}type="button"{...props}/>diff --git a/apps/web/src/components/ui/spinner.tsx b/apps/web/src/components/ui/spinner.tsxindex 63c060240..8f20a1716 100644--- a/apps/web/src/components/ui/spinner.tsx+++ b/apps/web/src/components/ui/spinner.tsx@@ -1,5 +1,6 @@import { Loader2Icon } from "lucide-react";import { cn } from "@/lib/cn";+import { i18n } from "@/lib/i18n";function Spinner({className,@@ -7,7 +8,7 @@ function Spinner({}: React.ComponentProps<typeof Loader2Icon>) {return (<Loader2Icon- aria-label="Loading"+ aria-label={i18n.t("common:empty.loading")}className={cn("animate-spin", className)}role="status"{...props}diff --git a/apps/web/src/components/user-avatar.tsx b/apps/web/src/components/user-avatar.tsxindex a54f4967b..baac7edc9 100644--- a/apps/web/src/components/user-avatar.tsx+++ b/apps/web/src/components/user-avatar.tsx@@ -1,6 +1,7 @@import { useQueryClient } from "@tanstack/react-query";import { useNavigate } from "@tanstack/react-router";import { LogOut, Settings } from "lucide-react";+import { useTranslation } from "react-i18next";import { useAuth } from "@/components/providers/auth-provider/hooks/use-auth";import { Avatar, AvatarFallback, AvatarImage } from "@/components/ui/avatar";import { Button } from "@/components/ui/button";@@ -17,6 +18,7 @@ import { toast } from "@/lib/toast";import useProjectStore from "@/store/project";export function UserAvatar() {+ const { t } = useTranslation();const { user } = useAuth();const { mutateAsync: signOut, isPending } = useSignOut();const queryClient = useQueryClient();@@ -32,10 +34,12 @@ export function UserAvatar() {await signOut();queryClient.clear();setProject(undefined);- toast.success("Signed out successfully");+ toast.success(t("navigation:userMenu.signedOutSuccess"));} catch (error) {toast.error(- error instanceof Error ? error.message : "Failed to sign out",+ error instanceof Error+ ? error.message+ : t("navigation:userMenu.signOutFailed"),);}};@@ -79,7 +83,7 @@ export function UserAvatar() {</Avatar><div className="grid flex-1 text-left text-sm leading-tight"><span className="truncate font-medium">- {user.name || "User"}+ {user.name || t("navigation:userMenu.unnamedUser")}</span>{user.email && (<span className="truncate text-xs text-muted-foreground">@@ -98,7 +102,7 @@ export function UserAvatar() {className="h-7 gap-2 px-2 text-sm font-normal"><Settings className="size-3.5" />- Settings+ {t("navigation:userMenu.settings")}</DropdownMenuItem></div>@@ -111,7 +115,9 @@ export function UserAvatar() {className="h-7 gap-2 px-2 text-sm font-normal"><LogOut className="size-3.5" />- {isPending ? "Signing out..." : "Log out"}+ {isPending+ ? t("navigation:userMenu.signingOut")+ : t("navigation:userMenu.logOut")}</DropdownMenuItem></div></DropdownMenuContent>diff --git a/apps/web/src/components/workspace-switcher.tsx b/apps/web/src/components/workspace-switcher.tsxindex b4655602c..c274ff000 100644--- a/apps/web/src/components/workspace-switcher.tsx+++ b/apps/web/src/components/workspace-switcher.tsx@@ -1,6 +1,7 @@import { useNavigate } from "@tanstack/react-router";import { ChevronDown } from "lucide-react";import * as React from "react";+import { useTranslation } from "react-i18next";import {DropdownMenu,@@ -30,6 +31,7 @@ import type { Workspace } from "@/types/workspace";import CreateWorkspaceModal from "./shared/modals/create-workspace-modal";export function WorkspaceSwitcher() {+ const { t } = useTranslation();const { data: workspace } = useActiveWorkspace();const { data: workspaces } = useGetWorkspaces();const navigate = useNavigate();@@ -137,7 +139,9 @@ export function WorkspaceSwitcher() {sideOffset={4}><DropdownMenuGroup>- <DropdownMenuLabel>Workspaces</DropdownMenuLabel>+ <DropdownMenuLabel>+ {t("navigation:workspaceSwitcher.workspaces")}+ </DropdownMenuLabel></DropdownMenuGroup><DropdownMenuSeparator />@@ -155,7 +159,7 @@ export function WorkspaceSwitcher() {><span className="flex-1 text-left">{isSwitching && ws.id === workspace?.id- ? "Switching..."+ ? t("navigation:workspaceSwitcher.switching"): ws.name}</span><DropdownMenuShortcut>@@ -172,7 +176,7 @@ export function WorkspaceSwitcher() {}}className="h-7 text-sm data-highlighted:bg-sidebar-accent data-highlighted:text-sidebar-accent-foreground">- <span>Add workspace</span>+ <span>{t("navigation:workspaceSwitcher.addWorkspace")}</span></DropdownMenuItem></DropdownMenuContent></DropdownMenu>diff --git a/apps/web/src/hooks/use-task-filters-with-labels-support.ts b/apps/web/src/hooks/use-task-filters-with-labels-support.tsindex 5c58a5dfd..6db603e8b 100644--- a/apps/web/src/hooks/use-task-filters-with-labels-support.ts+++ b/apps/web/src/hooks/use-task-filters-with-labels-support.ts@@ -3,7 +3,7 @@ import { addWeeks, endOfWeek, isWithinInterval, startOfWeek } from "date-fns";import { useCallback, useEffect, useMemo, useState } from "react";import type { ProjectWithTasks } from "@/types/project";import type Task from "@/types/task";-import type { BoardFilters } from "./use-task-filters";+import { type BoardFilters, DUE_DATE_FILTER_VALUES } from "./use-task-filters";const DEFAULT_FILTERS: BoardFilters = {status: null,@@ -129,7 +129,7 @@ export function useTaskFiltersWithLabelsSupport(const taskDate = task.dueDate ? new Date(task.dueDate) : null;const matchesAnyDueDate = filters.dueDate.some((dueDateFilter) => {- if (dueDateFilter === "No due date") {+ if (dueDateFilter === DUE_DATE_FILTER_VALUES.noDueDate) {return !task.dueDate;}@@ -138,7 +138,7 @@ export function useTaskFiltersWithLabelsSupport(}switch (dueDateFilter) {- case "Due this week": {+ case DUE_DATE_FILTER_VALUES.dueThisWeek: {const weekStart = startOfWeek(today);const weekEnd = endOfWeek(today);return isWithinInterval(taskDate, {@@ -146,7 +146,7 @@ export function useTaskFiltersWithLabelsSupport(end: weekEnd,});}- case "Due next week": {+ case DUE_DATE_FILTER_VALUES.dueNextWeek: {const nextWeekStart = startOfWeek(addWeeks(today, 1));const nextWeekEnd = endOfWeek(addWeeks(today, 1));return isWithinInterval(taskDate, {diff --git a/apps/web/src/hooks/use-task-filters.ts b/apps/web/src/hooks/use-task-filters.tsindex 14e035462..0827c47a2 100644--- a/apps/web/src/hooks/use-task-filters.ts+++ b/apps/web/src/hooks/use-task-filters.ts@@ -11,6 +11,12 @@ export type BoardFilters = {labels: string[] | null;};+export const DUE_DATE_FILTER_VALUES = {+ dueNextWeek: "dueNextWeek",+ dueThisWeek: "dueThisWeek",+ noDueDate: "noDueDate",+} as const;+const DEFAULT_FILTERS: BoardFilters = {status: null,priority: null,@@ -106,7 +112,7 @@ export function useTaskFilters(const taskDate = task.dueDate ? new Date(task.dueDate) : null;const matchesAnyDueDate = filters.dueDate.some((dueDateFilter) => {- if (dueDateFilter === "No due date") {+ if (dueDateFilter === DUE_DATE_FILTER_VALUES.noDueDate) {return !task.dueDate;}@@ -115,7 +121,7 @@ export function useTaskFilters(}switch (dueDateFilter) {- case "Due this week": {+ case DUE_DATE_FILTER_VALUES.dueThisWeek: {const weekStart = startOfWeek(today);const weekEnd = endOfWeek(today);return isWithinInterval(taskDate, {@@ -123,7 +129,7 @@ export function useTaskFilters(end: weekEnd,});}- case "Due next week": {+ case DUE_DATE_FILTER_VALUES.dueNextWeek: {const nextWeekStart = startOfWeek(addWeeks(today, 1));const nextWeekEnd = endOfWeek(addWeeks(today, 1));return isWithinInterval(taskDate, {