Skip to content

Commit 3f22642

Browse files
[WEB-3580] fix: automations settings translation (#6767)
1 parent e339b7a commit 3f22642

File tree

3 files changed

+10
-13
lines changed

3 files changed

+10
-13
lines changed

packages/constants/src/project.ts

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
// icons
2-
import {
3-
TProjectAppliedDisplayFilterKeys,
4-
TProjectOrderByOptions,
5-
} from "@plane/types";
2+
import { TProjectAppliedDisplayFilterKeys, TProjectOrderByOptions } from "@plane/types";
63

74
export type TNetworkChoiceIconKey = "Lock" | "Globe2";
85

@@ -55,11 +52,11 @@ export const GROUP_CHOICES = {
5552
};
5653

5754
export const PROJECT_AUTOMATION_MONTHS = [
58-
{ i18n_label: "common.months_count", value: 1 },
59-
{ i18n_label: "common.months_count", value: 3 },
60-
{ i18n_label: "common.months_count", value: 6 },
61-
{ i18n_label: "common.months_count", value: 9 },
62-
{ i18n_label: "common.months_count", value: 12 },
55+
{ i18n_label: "workspace_projects.common.months_count", value: 1 },
56+
{ i18n_label: "workspace_projects.common.months_count", value: 3 },
57+
{ i18n_label: "workspace_projects.common.months_count", value: 6 },
58+
{ i18n_label: "workspace_projects.common.months_count", value: 9 },
59+
{ i18n_label: "workspace_projects.common.months_count", value: 12 },
6360
];
6461

6562
export const PROJECT_UNSPLASH_COVERS = [

web/core/components/automation/auto-archive-automation.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ export const AutoArchiveAutomation: React.FC<Props> = observer((props) => {
9797
<>
9898
{PROJECT_AUTOMATION_MONTHS.map((month) => (
9999
<CustomSelect.Option key={month.i18n_label} value={month.value}>
100-
<span className="text-sm">{t(month.i18n_label, { month: month.value })}</span>
100+
<span className="text-sm">{t(month.i18n_label, { months: month.value })}</span>
101101
</CustomSelect.Option>
102102
))}
103103

@@ -106,7 +106,7 @@ export const AutoArchiveAutomation: React.FC<Props> = observer((props) => {
106106
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"
107107
onClick={() => setmonthModal(true)}
108108
>
109-
{t("customize_time_range")}
109+
{t("common.customize_time_range")}
110110
</button>
111111
</>
112112
</CustomSelect>

web/core/components/automation/auto-close-automation.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,15 +124,15 @@ export const AutoCloseAutomation: React.FC<Props> = observer((props) => {
124124
<>
125125
{PROJECT_AUTOMATION_MONTHS.map((month) => (
126126
<CustomSelect.Option key={month.i18n_label} value={month.value}>
127-
{t(month.i18n_label, { month: month.value })}
127+
{t(month.i18n_label, { months: month.value })}
128128
</CustomSelect.Option>
129129
))}
130130
<button
131131
type="button"
132132
className="flex w-full select-none items-center rounded px-1 py-1.5 text-custom-text-200 hover:bg-custom-background-80"
133133
onClick={() => setmonthModal(true)}
134134
>
135-
{t("customize_time_range")}
135+
{t("common.customize_time_range")}
136136
</button>
137137
</>
138138
</CustomSelect>

0 commit comments

Comments
 (0)