fix(i18n): externalize remaining frontend copy (#2616)

Co-authored-by: Kandev Agent <agent@kandev.dev>
This commit is contained in:
João Salavisa
2026-08-13 11:11:46 +01:00
committed by GitHub
parent df388c125d
commit ce82e2a4ab
92 changed files with 1542 additions and 356 deletions
@@ -1,6 +1,7 @@
"use client";
import { useMemo } from "react";
import { useTranslation } from "react-i18next";
import type { Icon } from "@tabler/icons-react";
import { TaskCreateDialog } from "@/components/task-create-dialog";
import { useAppStore } from "@/components/state-provider";
@@ -101,6 +102,7 @@ export function QuickTaskLauncher({
}: QuickTaskLauncherProps) {
const router = useRouter();
const { toast } = useToast();
const { t } = useTranslation("gitlab");
const setTaskMR = useAppStore((state) => state.setTaskMR);
const workflow = workflows[0];
const workflowSteps = useMemo(
@@ -132,10 +134,10 @@ export function QuickTaskLauncher({
setTaskMR(workspaceId, task.id, association);
} catch (error) {
toast({
title: "Task created, but merge request was not linked",
description: `Open the task and use Link GitLab merge request to retry. ${
error instanceof Error ? error.message : "GitLab rejected the association."
}`,
title: t("gitlab:taskCreatedMrNotLinked"),
description: t("gitlab:taskCreatedMrNotLinkedDescription", {
error: error instanceof Error ? error.message : t("gitlab:gitlabRejectedAssociation"),
}),
variant: "error",
duration: 8000,
});