diff --git a/apps/web/core/components/core/modals/bulk-delete-issues-modal.tsx b/apps/web/core/components/core/modals/bulk-delete-issues-modal.tsx index c2cde2998f5..29b17fc741b 100644 --- a/apps/web/core/components/core/modals/bulk-delete-issues-modal.tsx +++ b/apps/web/core/components/core/modals/bulk-delete-issues-modal.tsx @@ -177,7 +177,7 @@ export const BulkDeleteIssuesModal = observer(function BulkDeleteIssuesModal(pro setQuery(event.target.value)} /> diff --git a/apps/web/core/components/cycles/cycles-view-header.tsx b/apps/web/core/components/cycles/cycles-view-header.tsx index 8c3cd0a0c9b..087e7bcde0c 100644 --- a/apps/web/core/components/cycles/cycles-view-header.tsx +++ b/apps/web/core/components/cycles/cycles-view-header.tsx @@ -100,7 +100,7 @@ export const CyclesViewHeader = observer(function CyclesViewHeader(props: Props) updateSearchQuery(e.target.value)} onKeyDown={handleInputKeyDown} diff --git a/apps/web/core/components/cycles/transfer-issues-modal.tsx b/apps/web/core/components/cycles/transfer-issues-modal.tsx index 3f1bda0d667..721a7212725 100644 --- a/apps/web/core/components/cycles/transfer-issues-modal.tsx +++ b/apps/web/core/components/cycles/transfer-issues-modal.tsx @@ -8,6 +8,7 @@ import { useState } from "react"; import { observer } from "mobx-react"; import { useParams } from "next/navigation"; import { AlertCircle } from "lucide-react"; +import { useTranslation } from "@plane/i18n"; import { SearchIcon, CycleIcon, TransferIcon, CloseIcon } from "@plane/propel/icons"; import { TOAST_TYPE, setToast } from "@plane/propel/toast"; import { EIssuesStoreType } from "@plane/types"; @@ -23,6 +24,8 @@ type Props = { export const TransferIssuesModal = observer(function TransferIssuesModal(props: Props) { const { isOpen, handleClose, cycleId } = props; + // translation + const { t } = useTranslation(); // states const [query, setQuery] = useState(""); @@ -41,16 +44,16 @@ export const TransferIssuesModal = observer(function TransferIssuesModal(props: .then(async () => { setToast({ type: TOAST_TYPE.SUCCESS, - title: "Success!", - message: "Work items have been transferred successfully", + title: t("common.success"), + message: t("cycle.transfer_issues_modal.transfer_success"), }); await getCycleDetails(payload.new_cycle_id); }) .catch(() => { setToast({ type: TOAST_TYPE.ERROR, - title: "Error!", - message: "Unable to transfer work items. Please try again.", + title: t("common.error.label"), + message: t("cycle.transfer_issues_modal.transfer_error"), }); }); }; @@ -64,8 +67,8 @@ export const TransferIssuesModal = observer(function TransferIssuesModal(props: await Promise.all(cyclesFetch).catch((error) => { setToast({ type: TOAST_TYPE.ERROR, - title: "Error", - message: error.error || "Unable to fetch cycle details", + title: t("common.error.label"), + message: error.error || t("cycle.transfer_issues_modal.fetch_details_error"), }); }); }; @@ -82,7 +85,7 @@ export const TransferIssuesModal = observer(function TransferIssuesModal(props:
- Are you sure you want to leave the project - - {` "${project?.name}" `}? All of the work items associated - with you will become inaccessible. + {t("project.modals.leave_project.description", { name: ` "${project?.name}" ` })}
- Enter the project name {project?.name} to continue: -
+{t("project.modals.name_instruction", { name: project?.name })}
- To confirm, type Leave Project below: -
+{t("project.modals.leave_project.confirm_instruction", { value: "Leave Project" })}