From 3f226427324aea58258f504266bd5a3ebeeb83f8 Mon Sep 17 00:00:00 2001 From: Anmol Singh Bhatia <121005188+anmolsinghbhatia@users.noreply.github.com> Date: Tue, 18 Mar 2025 16:34:58 +0530 Subject: [PATCH] [WEB-3580] fix: automations settings translation (#6767) --- packages/constants/src/project.ts | 15 ++++++--------- .../automation/auto-archive-automation.tsx | 4 ++-- .../automation/auto-close-automation.tsx | 4 ++-- 3 files changed, 10 insertions(+), 13 deletions(-) diff --git a/packages/constants/src/project.ts b/packages/constants/src/project.ts index a4d68295f..93a29a6c4 100644 --- a/packages/constants/src/project.ts +++ b/packages/constants/src/project.ts @@ -1,8 +1,5 @@ // icons -import { - TProjectAppliedDisplayFilterKeys, - TProjectOrderByOptions, -} from "@plane/types"; +import { TProjectAppliedDisplayFilterKeys, TProjectOrderByOptions } from "@plane/types"; export type TNetworkChoiceIconKey = "Lock" | "Globe2"; @@ -55,11 +52,11 @@ export const GROUP_CHOICES = { }; export const PROJECT_AUTOMATION_MONTHS = [ - { i18n_label: "common.months_count", value: 1 }, - { i18n_label: "common.months_count", value: 3 }, - { i18n_label: "common.months_count", value: 6 }, - { i18n_label: "common.months_count", value: 9 }, - { i18n_label: "common.months_count", value: 12 }, + { i18n_label: "workspace_projects.common.months_count", value: 1 }, + { i18n_label: "workspace_projects.common.months_count", value: 3 }, + { i18n_label: "workspace_projects.common.months_count", value: 6 }, + { i18n_label: "workspace_projects.common.months_count", value: 9 }, + { i18n_label: "workspace_projects.common.months_count", value: 12 }, ]; export const PROJECT_UNSPLASH_COVERS = [ diff --git a/web/core/components/automation/auto-archive-automation.tsx b/web/core/components/automation/auto-archive-automation.tsx index 018f69fd4..6190c9326 100644 --- a/web/core/components/automation/auto-archive-automation.tsx +++ b/web/core/components/automation/auto-archive-automation.tsx @@ -97,7 +97,7 @@ export const AutoArchiveAutomation: React.FC = observer((props) => { <> {PROJECT_AUTOMATION_MONTHS.map((month) => ( - {t(month.i18n_label, { month: month.value })} + {t(month.i18n_label, { months: month.value })} ))} @@ -106,7 +106,7 @@ export const AutoArchiveAutomation: React.FC = observer((props) => { className="flex w-full select-none items-center rounded px-1 py-1.5 text-sm text-custom-text-200 hover:bg-custom-background-80" onClick={() => setmonthModal(true)} > - {t("customize_time_range")} + {t("common.customize_time_range")} diff --git a/web/core/components/automation/auto-close-automation.tsx b/web/core/components/automation/auto-close-automation.tsx index da674644d..833e3bfde 100644 --- a/web/core/components/automation/auto-close-automation.tsx +++ b/web/core/components/automation/auto-close-automation.tsx @@ -124,7 +124,7 @@ export const AutoCloseAutomation: React.FC = observer((props) => { <> {PROJECT_AUTOMATION_MONTHS.map((month) => ( - {t(month.i18n_label, { month: month.value })} + {t(month.i18n_label, { months: month.value })} ))}