Skip to content

armgit / plane

Public Imported from GitHub
0

🔥🔥🔥 Open-source Jira, Linear, Monday, and ClickUp alternative. Plane is a modern project management platform to manage tasks, sprints, docs, and triage.

feat: language support (#6472)

Prateek Shouryad36c3acbf7cb
diff --git a/admin/app/page.tsx b/admin/app/page.tsx
index b402fc44d3..1a274025a0 100644
--- a/admin/app/page.tsx
+++ b/admin/app/page.tsx
@@ -7,15 +7,15 @@ import { DefaultLayout } from "@/layouts/default-layout";
export const metadata: Metadata = {
title: "Plane | Simple, extensible, open-source project management tool.",
description:
- "Open-source project management tool to manage issues, sprints, and product roadmaps with peace of mind.",
+ "Open-source project management tool to manage work items, sprints, and product roadmaps with peace of mind.",
openGraph: {
title: "Plane | Simple, extensible, open-source project management tool.",
description:
- "Open-source project management tool to manage issues, sprints, and product roadmaps with peace of mind.",
+ "Open-source project management tool to manage work items, sprints, and product roadmaps with peace of mind.",
url: "https://plane.so/",
},
keywords:
- "software development, customer feedback, software, accelerate, code management, release management, project management, issue tracking, agile, scrum, kanban, collaboration",
+ "software development, customer feedback, software, accelerate, code management, release management, project management, work items tracking, agile, scrum, kanban, collaboration",
twitter: {
site: "@planepowers",
},
diff --git a/packages/constants/src/analytics.ts b/packages/constants/src/analytics.ts
index 710ac412b7..6c8211ae0a 100644
--- a/packages/constants/src/analytics.ts
+++ b/packages/constants/src/analytics.ts
@@ -2,8 +2,11 @@
import { TXAxisValues, TYAxisValues } from "@plane/types";
export const ANALYTICS_TABS = [
- { key: "scope_and_demand", title: "Scope and Demand" },
- { key: "custom", title: "Custom Analytics" },
+ {
+ key: "scope_and_demand",
+ i18n_title: "workspace_analytics.tabs.scope_and_demand",
+ },
+ { key: "custom", i18n_title: "workspace_analytics.tabs.custom" },
];
export const ANALYTICS_X_AXIS_VALUES: { value: TXAxisValues; label: string }[] =
@@ -62,7 +65,7 @@ export const ANALYTICS_Y_AXIS_VALUES: { value: TYAxisValues; label: string }[] =
[
{
value: "issue_count",
- label: "Issue Count",
+ label: "Work item Count",
},
{
value: "estimate",
diff --git a/web/core/constants/cycle.ts b/packages/constants/src/cycle.ts
similarity index 57%
rename from web/core/constants/cycle.ts
rename to packages/constants/src/cycle.ts
index 025e26c9ba..752f23dbee 100644
--- a/web/core/constants/cycle.ts
+++ b/packages/constants/src/cycle.ts
@@ -1,56 +1,40 @@
// types
-import { TCycleLayoutOptions, TCycleTabOptions } from "@plane/types";
-
-export const CYCLE_TABS_LIST: {
- key: TCycleTabOptions;
- name: string;
-}[] = [
- {
- key: "active",
- name: "Active",
- },
- {
- key: "all",
- name: "All",
- },
-];
-
export const CYCLE_STATUS: {
- label: string;
+ i18n_label: string;
value: "current" | "upcoming" | "completed" | "draft";
- title: string;
+ i18n_title: string;
color: string;
textColor: string;
bgColor: string;
}[] = [
{
- label: "day left",
+ i18n_label: "project_cycles.status.days_left",
value: "current",
- title: "In progress",
+ i18n_title: "project_cycles.status.in_progress",
color: "#F59E0B",
textColor: "text-amber-500",
bgColor: "bg-amber-50",
},
{
- label: "Yet to start",
+ i18n_label: "project_cycles.status.yet_to_start",
value: "upcoming",
- title: "Yet to start",
+ i18n_title: "project_cycles.status.yet_to_start",
color: "#3F76FF",
textColor: "text-blue-500",
bgColor: "bg-indigo-50",
},
{
- label: "Completed",
+ i18n_label: "project_cycles.status.completed",
value: "completed",
- title: "Completed",
+ i18n_title: "project_cycles.status.completed",
color: "#16A34A",
textColor: "text-green-600",
bgColor: "bg-green-50",
},
{
- label: "Draft",
+ i18n_label: "project_cycles.status.draft",
value: "draft",
- title: "Draft",
+ i18n_title: "project_cycles.status.draft",
color: "#525252",
textColor: "text-custom-text-300",
bgColor: "bg-custom-background-90",
diff --git a/packages/constants/src/dashboard.ts b/packages/constants/src/dashboard.ts
new file mode 100644
index 0000000000..d7a3ae6118
--- /dev/null
+++ b/packages/constants/src/dashboard.ts
@@ -0,0 +1,92 @@
+// types
+import { TIssuesListTypes } from "@plane/types";
+
+export enum EDurationFilters {
+ NONE = "none",
+ TODAY = "today",
+ THIS_WEEK = "this_week",
+ THIS_MONTH = "this_month",
+ THIS_YEAR = "this_year",
+ CUSTOM = "custom",
+}
+
+// filter duration options
+export const DURATION_FILTER_OPTIONS: {
+ key: EDurationFilters;
+ label: string;
+}[] = [
+ {
+ key: EDurationFilters.NONE,
+ label: "All time",
+ },
+ {
+ key: EDurationFilters.TODAY,
+ label: "Due today",
+ },
+ {
+ key: EDurationFilters.THIS_WEEK,
+ label: "Due this week",
+ },
+ {
+ key: EDurationFilters.THIS_MONTH,
+ label: "Due this month",
+ },
+ {
+ key: EDurationFilters.THIS_YEAR,
+ label: "Due this year",
+ },
+ {
+ key: EDurationFilters.CUSTOM,
+ label: "Custom",
+ },
+];
+
+// random background colors for project cards
+export const PROJECT_BACKGROUND_COLORS = [
+ "bg-gray-500/20",
+ "bg-green-500/20",
+ "bg-red-500/20",
+ "bg-orange-500/20",
+ "bg-blue-500/20",
+ "bg-yellow-500/20",
+ "bg-pink-500/20",
+ "bg-purple-500/20",
+];
+
+// assigned and created issues widgets tabs list
+export const FILTERED_ISSUES_TABS_LIST: {
+ key: TIssuesListTypes;
+ label: string;
+}[] = [
+ {
+ key: "upcoming",
+ label: "Upcoming",
+ },
+ {
+ key: "overdue",
+ label: "Overdue",
+ },
+ {
+ key: "completed",
+ label: "Marked completed",
+ },
+];
+
+// assigned and created issues widgets tabs list
+export const UNFILTERED_ISSUES_TABS_LIST: {
+ key: TIssuesListTypes;
+ label: string;
+}[] = [
+ {
+ key: "pending",
+ label: "Pending",
+ },
+ {
+ key: "completed",
+ label: "Marked completed",
+ },
+];
+
+export type TLinkOptions = {
+ userId: string | undefined;
+};
diff --git a/packages/constants/src/error.ts b/packages/constants/src/error.ts
deleted file mode 100644
index 46277abf71..0000000000
--- a/packages/constants/src/error.ts
+++ /dev/null
@@ -1,5 +0,0 @@
-export enum E_ARCHIVE_ERROR_CODES {
- "INVALID_ARCHIVE_STATE_GROUP" = 4091,
- "INVALID_ISSUE_START_DATE" = 4101,
- "INVALID_ISSUE_TARGET_DATE" = 4102,
-}
diff --git a/web/core/constants/event-tracker.ts b/packages/constants/src/event-tracker.ts
similarity index 95%
rename from web/core/constants/event-tracker.ts
rename to packages/constants/src/event-tracker.ts
index cd2e1c3bec..4fb1ea15c2 100644
--- a/web/core/constants/event-tracker.ts
+++ b/packages/constants/src/event-tracker.ts
@@ -104,7 +104,10 @@ export const getIssueEventPayload = (props: IssueEventProps) => {
module_id: payload.module_id,
archived_at: payload.archived_at,
state: payload.state,
- view_id: path?.includes("workspace-views") || path?.includes("views") ? path.split("/").pop() : "",
+ view_id:
+ path?.includes("workspace-views") || path?.includes("views")
+ ? path.split("/").pop()
+ : "",
};
if (eventName === ISSUE_UPDATED) {
@@ -166,12 +169,12 @@ export const MODULE_LINK_CREATED = "Module link created";
export const MODULE_LINK_UPDATED = "Module link updated";
export const MODULE_LINK_DELETED = "Module link deleted";
// Issue Events
-export const ISSUE_CREATED = "Issue created";
-export const ISSUE_UPDATED = "Issue updated";
-export const ISSUE_DELETED = "Issue deleted";
-export const ISSUE_ARCHIVED = "Issue archived";
-export const ISSUE_RESTORED = "Issue restored";
-export const ISSUE_OPENED = "Issue opened";
+export const ISSUE_CREATED = "Work item created";
+export const ISSUE_UPDATED = "Work item updated";
+export const ISSUE_DELETED = "Work item deleted";
+export const ISSUE_ARCHIVED = "Work item archived";
+export const ISSUE_RESTORED = "Work item restored";
+export const ISSUE_OPENED = "Work item opened";
// Project State Events
export const STATE_CREATED = "State created";
export const STATE_UPDATED = "State updated";
diff --git a/packages/constants/src/event.ts b/packages/constants/src/event.ts
deleted file mode 100644
index 5e7e22004d..0000000000
--- a/packages/constants/src/event.ts
+++ /dev/null
@@ -1 +0,0 @@
-export const SIDEBAR_CLICKED = "Sidenav clicked";
diff --git a/packages/constants/src/filter.ts b/packages/constants/src/filter.ts
index 20de817a28..cc8d98c45c 100644
--- a/packages/constants/src/filter.ts
+++ b/packages/constants/src/filter.ts
@@ -2,3 +2,56 @@ export enum E_SORT_ORDER {
ASC = "asc",
DESC = "desc",
}
+export const DATE_AFTER_FILTER_OPTIONS = [
+ {
+ name: "1 week from now",
+ value: "1_weeks;after;fromnow",
+ },
+ {
+ name: "2 weeks from now",
+ value: "2_weeks;after;fromnow",
+ },
+ {
+ name: "1 month from now",
+ value: "1_months;after;fromnow",
+ },
+ {
+ name: "2 months from now",
+ value: "2_months;after;fromnow",
+ },
+];
+
+export const DATE_BEFORE_FILTER_OPTIONS = [
+ {
+ name: "1 week ago",
+ value: "1_weeks;before;fromnow",
+ },
+ {
+ name: "2 weeks ago",
+ value: "2_weeks;before;fromnow",
+ },
+ {
+ name: "1 month ago",
+ i18n_name: "date_filters.1_month_ago",
+ value: "1_months;before;fromnow",
+ },
+];
+
+export const PROJECT_CREATED_AT_FILTER_OPTIONS = [
+ {
+ name: "Today",
+ value: "today;custom;custom",
+ },
+ {
+ name: "Yesterday",
+ value: "yesterday;custom;custom",
+ },
+ {
+ name: "Last 7 days",
+ value: "last_7_days;custom;custom",
+ },
+ {
+ name: "Last 30 days",
+ value: "last_30_days;custom;custom",
+ },
+];
diff --git a/packages/constants/src/inbox.ts b/packages/constants/src/inbox.ts
new file mode 100644
index 0000000000..cf5270a044
--- /dev/null
+++ b/packages/constants/src/inbox.ts
@@ -0,0 +1,91 @@
+import { TInboxDuplicateIssueDetails, TIssue } from "@plane/types";
+
+export enum EInboxIssueCurrentTab {
+ OPEN = "open",
+ CLOSED = "closed",
+}
+
+export enum EInboxIssueStatus {
+ PENDING = -2,
+ DECLINED = -1,
+ SNOOZED = 0,
+ ACCEPTED = 1,
+ DUPLICATE = 2,
+}
+
+export type TInboxIssueCurrentTab = EInboxIssueCurrentTab;
+export type TInboxIssueStatus = EInboxIssueStatus;
+export type TInboxIssue = {
+ id: string;
+ status: TInboxIssueStatus;
+ snoozed_till: Date | null;
+ duplicate_to: string | undefined;
+ source: string;
+ issue: TIssue;
+ created_by: string;
+ duplicate_issue_detail: TInboxDuplicateIssueDetails | undefined;
+};
+
+export const INBOX_STATUS: {
+ key: string;
+ status: TInboxIssueStatus;
+ i18n_title: string;
+ i18n_description: () => string;
+}[] = [
+ {
+ key: "pending",
+ i18n_title: "inbox_issue.status.pending.title",
+ status: EInboxIssueStatus.PENDING,
+ i18n_description: () => `inbox_issue.status.pending.description`,
+ },
+ {
+ key: "declined",
+ i18n_title: "inbox_issue.status.declined.title",
+ status: EInboxIssueStatus.DECLINED,
+ i18n_description: () => `inbox_issue.status.declined.description`,
+ },
+ {
+ key: "snoozed",
+ i18n_title: "inbox_issue.status.snoozed.title",
+ status: EInboxIssueStatus.SNOOZED,
+ i18n_description: () => `inbox_issue.status.snoozed.description`,
+ },
+ {
+ key: "accepted",
+ i18n_title: "inbox_issue.status.accepted.title",
+ status: EInboxIssueStatus.ACCEPTED,
+ i18n_description: () => `inbox_issue.status.accepted.description`,
+ },
+ {
+ key: "duplicate",
+ i18n_title: "inbox_issue.status.duplicate.title",
+ status: EInboxIssueStatus.DUPLICATE,
+ i18n_description: () => `inbox_issue.status.duplicate.description`,
+ },
+];
+
+export const INBOX_ISSUE_ORDER_BY_OPTIONS = [
+ {
+ key: "issue__created_at",
+ i18n_label: "inbox_issue.order_by.created_at",
+ },
+ {
+ key: "issue__updated_at",
+ i18n_label: "inbox_issue.order_by.updated_at",
+ },
+ {
+ key: "issue__sequence_id",
+ i18n_label: "inbox_issue.order_by.id",
+ },
+];
+
+export const INBOX_ISSUE_SORT_BY_OPTIONS = [
+ {
+ key: "asc",
+ i18n_label: "common.sort.asc",
+ },
+ {
+ key: "desc",
+ i18n_label: "common.sort.desc",
+ },
+];
diff --git a/packages/constants/src/index.ts b/packages/constants/src/index.ts
index 2b3964ae9f..ece5aad4c3 100644
--- a/packages/constants/src/index.ts
+++ b/packages/constants/src/index.ts
@@ -2,15 +2,29 @@ export * from "./ai";
export * from "./analytics";
export * from "./auth";
export * from "./endpoints";
-export * from "./event";
export * from "./file";
export * from "./filter";
export * from "./graph";
export * from "./instance";
export * from "./issue";
export * from "./metadata";
+export * from "./notification";
export * from "./state";
export * from "./swr";
+export * from "./tab-indices";
export * from "./user";
export * from "./workspace";
export * from "./stickies";
+export * from "./cycle";
+export * from "./module";
+export * from "./project";
+export * from "./views";
+export * from "./themes";
+export * from "./inbox";
+export * from "./profile";
+export * from "./workspace-drafts";
+export * from "./label";
+export * from "./event-tracker";
+export * from "./spreadsheet";
+export * from "./dashboard";
+export * from "./page";
diff --git a/packages/constants/src/issue.ts b/packages/constants/src/issue.ts
deleted file mode 100644
index 19cfe60f3a..0000000000
--- a/packages/constants/src/issue.ts
+++ /dev/null
@@ -1,185 +0,0 @@
-import { List, Kanban } from "lucide-react";
-
-export const ALL_ISSUES = "All Issues";
-
-export type TIssuePriorities = "urgent" | "high" | "medium" | "low" | "none";
-
-export type TIssueFilterKeys = "priority" | "state" | "labels";
-
-export type TIssueLayout =
- | "list"
- | "kanban"
- | "calendar"
- | "spreadsheet"
- | "gantt";
-
-export type TIssueFilterPriorityObject = {
- key: TIssuePriorities;
- title: string;
- className: string;
- icon: string;
-};
-
-export enum EIssueGroupByToServerOptions {
- "state" = "state_id",
- "priority" = "priority",
- "labels" = "labels__id",
- "state_detail.group" = "state__group",
- "assignees" = "assignees__id",
- "cycle" = "cycle_id",
- "module" = "issue_module__module_id",
- "target_date" = "target_date",
- "project" = "project_id",
- "created_by" = "created_by",
- "team_project" = "project_id",
-}
-
-export enum EIssueGroupBYServerToProperty {
- "state_id" = "state_id",
- "priority" = "priority",
- "labels__id" = "label_ids",
- "state__group" = "state__group",
- "assignees__id" = "assignee_ids",
- "cycle_id" = "cycle_id",
- "issue_module__module_id" = "module_ids",
- "target_date" = "target_date",
- "project_id" = "project_id",
- "created_by" = "created_by",
-}
-
-export enum EServerGroupByToFilterOptions {
- "state_id" = "state",
- "priority" = "priority",
- "labels__id" = "labels",
- "state__group" = "state_group",
- "assignees__id" = "assignees",
- "cycle_id" = "cycle",
- "issue_module__module_id" = "module",
- "target_date" = "target_date",
- "project_id" = "project",
- "created_by" = "created_by",
-}
-
-export enum EIssueServiceType {
- ISSUES = "issues",
- EPICS = "epics",
-}
-
-export enum EIssueLayoutTypes {
- LIST = "list",
- KANBAN = "kanban",
- CALENDAR = "calendar",
- GANTT = "gantt_chart",
- SPREADSHEET = "spreadsheet",
-}
-
-export enum EIssuesStoreType {
- GLOBAL = "GLOBAL",
- PROFILE = "PROFILE",
- TEAM = "TEAM",
- PROJECT = "PROJECT",
- CYCLE = "CYCLE",
- MODULE = "MODULE",
- TEAM_VIEW = "TEAM_VIEW",
- PROJECT_VIEW = "PROJECT_VIEW",
- ARCHIVED = "ARCHIVED",
- DRAFT = "DRAFT",
- DEFAULT = "DEFAULT",
- WORKSPACE_DRAFT = "WORKSPACE_DRAFT",
- EPIC = "EPIC",
-}
-
-export enum EIssueFilterType {
- FILTERS = "filters",
- DISPLAY_FILTERS = "display_filters",
- DISPLAY_PROPERTIES = "display_properties",
- KANBAN_FILTERS = "kanban_filters",
-}
-
-export enum EIssueCommentAccessSpecifier {
- EXTERNAL = "EXTERNAL",
- INTERNAL = "INTERNAL",
-}
-
-export enum EIssueListRow {
- HEADER = "HEADER",
- ISSUE = "ISSUE",
- NO_ISSUES = "NO_ISSUES",
- QUICK_ADD = "QUICK_ADD",
-}
-
-export const ISSUE_DISPLAY_FILTERS_BY_LAYOUT: {
- [key in TIssueLayout]: Record<"filters", TIssueFilterKeys[]>;
-} = {
- list: {
- filters: ["priority", "state", "labels"],
- },
- kanban: {
- filters: ["priority", "state", "labels"],
- },
- calendar: {
- filters: ["priority", "state", "labels"],
- },
- spreadsheet: {
- filters: ["priority", "state", "labels"],
- },
- gantt: {
- filters: ["priority", "state", "labels"],
- },
-};
-
-export const ISSUE_PRIORITIES: {
- key: TIssuePriorities;
- title: string;
-}[] = [
- { key: "urgent", title: "Urgent" },
- { key: "high", title: "High" },
- { key: "medium", title: "Medium" },
- { key: "low", title: "Low" },
- { key: "none", title: "None" },
-];
-
-export const ISSUE_PRIORITY_FILTERS: TIssueFilterPriorityObject[] = [
- {
- key: "urgent",
- title: "Urgent",
- className: "bg-red-500 border-red-500 text-white",
- icon: "error",
- },
- {
- key: "high",
- title: "High",
- className: "text-orange-500 border-custom-border-300",
- icon: "signal_cellular_alt",
- },
- {
- key: "medium",
- title: "Medium",
- className: "text-yellow-500 border-custom-border-300",
- icon: "signal_cellular_alt_2_bar",
- },
- {
- key: "low",
- title: "Low",
- className: "text-green-500 border-custom-border-300",
- icon: "signal_cellular_alt_1_bar",
- },
- {
- key: "none",
- title: "None",
- className: "text-gray-500 border-custom-border-300",
- icon: "block",
- },
-];
-
-export const SITES_ISSUE_LAYOUTS: {
- key: TIssueLayout;
- title: string;
- icon: any;
-}[] = [
- { key: "list", title: "List", icon: List },
- { key: "kanban", title: "Kanban", icon: Kanban },
- // { key: "calendar", title: "Calendar", icon: Calendar },
- // { key: "spreadsheet", title: "Spreadsheet", icon: Sheet },
- // { key: "gantt", title: "Gantt chart", icon: GanttChartSquare },
-];
diff --git a/packages/constants/src/issue/common.ts b/packages/constants/src/issue/common.ts
new file mode 100644
index 0000000000..a63dd110d3
--- /dev/null
+++ b/packages/constants/src/issue/common.ts
@@ -0,0 +1,217 @@
+import {
+ TIssueGroupByOptions,
+ TIssueOrderByOptions,
+ IIssueDisplayProperties,
+} from "@plane/types";
+
+export const ALL_ISSUES = "All Issues";
+
+export type TIssuePriorities = "urgent" | "high" | "medium" | "low" | "none";
+
+export type TIssueFilterPriorityObject = {
+ key: TIssuePriorities;
+ titleTranslationKey: string;
+ className: string;
+ icon: string;
+};
+
+export enum EIssueGroupByToServerOptions {
+ "state" = "state_id",
+ "priority" = "priority",
+ "labels" = "labels__id",
+ "state_detail.group" = "state__group",
+ "assignees" = "assignees__id",
+ "cycle" = "cycle_id",
+ "module" = "issue_module__module_id",
+ "target_date" = "target_date",
+ "project" = "project_id",
+ "created_by" = "created_by",
+ "team_project" = "project_id",
+}
+
+export enum EIssueGroupBYServerToProperty {
+ "state_id" = "state_id",
+ "priority" = "priority",
+ "labels__id" = "label_ids",
+ "state__group" = "state__group",
+ "assignees__id" = "assignee_ids",
+ "cycle_id" = "cycle_id",
+ "issue_module__module_id" = "module_ids",
+ "target_date" = "target_date",
+ "project_id" = "project_id",
+ "created_by" = "created_by",
+}
+
+export enum EIssueServiceType {
+ ISSUES = "issues",
+ EPICS = "epics",
+}
+
+export enum EIssuesStoreType {
+ GLOBAL = "GLOBAL",
+ PROFILE = "PROFILE",
+ TEAM = "TEAM",
+ PROJECT = "PROJECT",
+ CYCLE = "CYCLE",
+ MODULE = "MODULE",
+ TEAM_VIEW = "TEAM_VIEW",
+ PROJECT_VIEW = "PROJECT_VIEW",
+ ARCHIVED = "ARCHIVED",
+ DRAFT = "DRAFT",
+ DEFAULT = "DEFAULT",
+ WORKSPACE_DRAFT = "WORKSPACE_DRAFT",
+ EPIC = "EPIC",
+}
+
+export enum EIssueCommentAccessSpecifier {
+ EXTERNAL = "EXTERNAL",
+ INTERNAL = "INTERNAL",
+}
+
+export enum EIssueListRow {
+ HEADER = "HEADER",
+ ISSUE = "ISSUE",
+ NO_ISSUES = "NO_ISSUES",
+ QUICK_ADD = "QUICK_ADD",
+}
+
+export const ISSUE_PRIORITIES: {
+ key: TIssuePriorities;
+ title: string;
+}[] = [
+ {
+ key: "urgent",
+ title: "Urgent",
+ },
+ {
+ key: "high",
+ title: "High",
+ },
+ {
+ key: "medium",
+ title: "Medium",
+ },
+ {
+ key: "low",
+ title: "Low",
+ },
+ {
+ key: "none",
+ title: "None",
+ },
+];
+
+export const DRAG_ALLOWED_GROUPS: TIssueGroupByOptions[] = [
+ "state",
+ "priority",
+ "assignees",
+ "labels",
+ "module",
+ "cycle",
+];
+
+export type TCreateModalStoreTypes =
+ | EIssuesStoreType.TEAM
+ | EIssuesStoreType.PROJECT
+ | EIssuesStoreType.TEAM_VIEW
+ | EIssuesStoreType.PROJECT_VIEW
+ | EIssuesStoreType.PROFILE
+ | EIssuesStoreType.CYCLE
+ | EIssuesStoreType.MODULE
+ | EIssuesStoreType.EPIC;
+
+export const ISSUE_GROUP_BY_OPTIONS: {
+ key: TIssueGroupByOptions;
+ titleTranslationKey: string;
+}[] = [
+ { key: "state", titleTranslationKey: "common.states" },
+ { key: "state_detail.group", titleTranslationKey: "common.state_groups" },
+ { key: "priority", titleTranslationKey: "common.priority" },
+ { key: "team_project", titleTranslationKey: "common.team_project" }, // required this on team issues
+ { key: "project", titleTranslationKey: "common.project" }, // required this on my issues
+ { key: "cycle", titleTranslationKey: "common.cycle" }, // required this on my issues
+ { key: "module", titleTranslationKey: "common.module" }, // required this on my issues
+ { key: "labels", titleTranslationKey: "common.labels" },
+ { key: "assignees", titleTranslationKey: "common.assignees" },
+ { key: "created_by", titleTranslationKey: "common.created_by" },
+ { key: null, titleTranslationKey: "common.none" },
+];
+
+export const ISSUE_ORDER_BY_OPTIONS: {
+ key: TIssueOrderByOptions;
+ titleTranslationKey: string;
+}[] = [
+ { key: "sort_order", titleTranslationKey: "common.order_by.manual" },
+ { key: "-created_at", titleTranslationKey: "common.order_by.last_created" },
+ { key: "-updated_at", titleTranslationKey: "common.order_by.last_updated" },
+ { key: "start_date", titleTranslationKey: "common.order_by.start_date" },
+ { key: "target_date", titleTranslationKey: "common.order_by.due_date" },
+ { key: "-priority", titleTranslationKey: "common.priority" },
+];
+
+export const ISSUE_DISPLAY_PROPERTIES_KEYS: (keyof IIssueDisplayProperties)[] =
+ [
+ "assignee",
+ "start_date",
+ "due_date",
+ "labels",
+ "key",
+ "priority",
+ "state",
+ "sub_issue_count",
+ "link",
+ "attachment_count",
+ "estimate",
+ "created_on",
+ "updated_on",
+ "modules",
+ "cycle",
+ "issue_type",
+ ];
+
+export const ISSUE_DISPLAY_PROPERTIES: {
+ key: keyof IIssueDisplayProperties;
+ titleTranslationKey: string;
+}[] = [
+ {
+ key: "key",
+ titleTranslationKey: "issue.display.properties.id",
+ },
+ {
+ key: "issue_type",
+ titleTranslationKey: "issue.display.properties.issue_type",
+ },
+ {
+ key: "assignee",
+ titleTranslationKey: "common.assignee",
+ },
+ {
+ key: "start_date",
+ titleTranslationKey: "common.order_by.start_date",
+ },
+ {
+ key: "due_date",
+ titleTranslationKey: "common.order_by.due_date",
+ },
+ { key: "labels", titleTranslationKey: "common.labels" },
+ {
+ key: "priority",
+ titleTranslationKey: "common.priority",
+ },
+ { key: "state", titleTranslationKey: "common.state" },
+ {
+ key: "sub_issue_count",
+ titleTranslationKey: "issue.display.properties.sub_issue_count",
+ },
+ {
+ key: "attachment_count",
+ titleTranslationKey: "issue.display.properties.attachment_count",
+ },
+ { key: "link", titleTranslationKey: "common.link" },
+ {
+ key: "estimate",
+ titleTranslationKey: "common.estimate",
+ },
+ { key: "modules", titleTranslationKey: "common.module" },
+ { key: "cycle", titleTranslationKey: "common.cycle" },
+];
diff --git a/packages/constants/src/issue/filter.ts b/packages/constants/src/issue/filter.ts
new file mode 100644
index 0000000000..5d1d694b72
--- /dev/null
+++ b/packages/constants/src/issue/filter.ts
@@ -0,0 +1,530 @@
+import {
+ ILayoutDisplayFiltersOptions,
+ TIssueActivityComment,
+} from "@plane/types";
+import {
+ TIssueFilterPriorityObject,
+ ISSUE_DISPLAY_PROPERTIES_KEYS,
+ EIssuesStoreType,
+} from "./common";
+
+import { TIssueLayout } from "./layout";
+
+export type TIssueFilterKeys = "priority" | "state" | "labels";
+
+export enum EServerGroupByToFilterOptions {
+ "state_id" = "state",
+ "priority" = "priority",
+ "labels__id" = "labels",
+ "state__group" = "state_group",
+ "assignees__id" = "assignees",
+ "cycle_id" = "cycle",
+ "issue_module__module_id" = "module",
+ "target_date" = "target_date",
+ "project_id" = "project",
+ "created_by" = "created_by",
+}
+
+export enum EIssueFilterType {
+ FILTERS = "filters",
+ DISPLAY_FILTERS = "display_filters",
+ DISPLAY_PROPERTIES = "display_properties",
+ KANBAN_FILTERS = "kanban_filters",
+}
+
+export const ISSUE_DISPLAY_FILTERS_BY_LAYOUT: {
+ [key in TIssueLayout]: Record<"filters", TIssueFilterKeys[]>;
+} = {
+ list: {
+ filters: ["priority", "state", "labels"],
+ },
+ kanban: {
+ filters: ["priority", "state", "labels"],
+ },
+ calendar: {
+ filters: ["priority", "state", "labels"],
+ },
+ spreadsheet: {
+ filters: ["priority", "state", "labels"],
+ },
+ gantt: {
+ filters: ["priority", "state", "labels"],
+ },
+};
+
+export const ISSUE_PRIORITY_FILTERS: TIssueFilterPriorityObject[] = [
+ {
+ key: "urgent",
+ titleTranslationKey: "issue.priority.urgent",
+ className: "bg-red-500 border-red-500 text-white",
+ icon: "error",
+ },
+ {
+ key: "high",
+ titleTranslationKey: "issue.priority.high",
+ className: "text-orange-500 border-custom-border-300",
+ icon: "signal_cellular_alt",
+ },
+ {
+ key: "medium",
+ titleTranslationKey: "issue.priority.medium",
+ className: "text-yellow-500 border-custom-border-300",
+ icon: "signal_cellular_alt_2_bar",
+ },
+ {
+ key: "low",
+ titleTranslationKey: "issue.priority.low",
+ className: "text-green-500 border-custom-border-300",
+ icon: "signal_cellular_alt_1_bar",
+ },
+ {
+ key: "none",
+ titleTranslationKey: "common.none",
+ className: "text-gray-500 border-custom-border-300",
+ icon: "block",
+ },
+];
+
+export type TFiltersByLayout = {
+ [layoutType: string]: ILayoutDisplayFiltersOptions;
+};
+
+export type TIssueFiltersToDisplayByPageType = {
+ [pageType: string]: TFiltersByLayout;
+};
+
+export const ISSUE_DISPLAY_FILTERS_BY_PAGE: TIssueFiltersToDisplayByPageType = {
+ profile_issues: {
+ list: {
+ filters: [
+ "priority",
+ "state_group",
+ "labels",
+ "start_date",
+ "target_date",
+ ],
+ display_properties: ISSUE_DISPLAY_PROPERTIES_KEYS,
+ display_filters: {
+ group_by: ["state_detail.group", "priority", "project", "labels", null],
+ order_by: [
+ "sort_order",
+ "-created_at",
+ "-updated_at",
+ "start_date",
+ "-priority",
+ ],
+ type: [null, "active", "backlog"],
+ },
+ extra_options: {
+ access: true,
+ values: ["show_empty_groups", "sub_issue"],
+ },
+ },
+ kanban: {
+ filters: [
+ "priority",
+ "state_group",
+ "labels",
+ "start_date",
+ "target_date",
+ ],
+ display_properties: ISSUE_DISPLAY_PROPERTIES_KEYS,
+ display_filters: {
+ group_by: ["state_detail.group", "priority", "project", "labels"],
+ order_by: [
+ "sort_order",
+ "-created_at",
+ "-updated_at",
+ "start_date",
+ "-priority",
+ ],
+ type: [null, "active", "backlog"],
+ },
+ extra_options: {
+ access: true,
+ values: ["show_empty_groups"],
+ },
+ },
+ },
+ archived_issues: {
+ list: {
+ filters: [
+ "priority",
+ "state",
+ "cycle",
+ "module",
+ "assignees",
+ "created_by",
+ "labels",
+ "start_date",
+ "target_date",
+ "issue_type",
+ ],
+ display_properties: ISSUE_DISPLAY_PROPERTIES_KEYS,
+ display_filters: {
+ group_by: [
+ "state",
+ "cycle",
+ "module",
+ "state_detail.group",
+ "priority",
+ "labels",
+ "assignees",
+ "created_by",
+ null,
+ ],
+ order_by: [
+ "sort_order",
+ "-created_at",
+ "-updated_at",
+ "start_date",
+ "-priority",
+ ],
+ type: [null, "active", "backlog"],
+ },
+ extra_options: {
+ access: true,
+ values: ["show_empty_groups"],
+ },
+ },
+ },
+ draft_issues: {
+ list: {
+ filters: [
+ "priority",
+ "state_group",
+ "cycle",
+ "module",
+ "labels",
+ "start_date",
+ "target_date",
+ "issue_type",
+ ],
+ display_properties: ISSUE_DISPLAY_PROPERTIES_KEYS,
+ display_filters: {
+ group_by: [
+ "state_detail.group",
+ "cycle",
+ "module",
+ "priority",
+ "project",
+ "labels",
+ null,
+ ],
+ order_by: [
+ "sort_order",
+ "-created_at",
+ "-updated_at",
+ "start_date",
+ "-priority",
+ ],
+ type: [null, "active", "backlog"],
+ },
+ extra_options: {
+ access: true,
+ values: ["show_empty_groups"],
+ },
+ },
+ kanban: {
+ filters: [
+ "priority",
+ "state_group",
+ "cycle",
+ "module",
+ "labels",
+ "start_date",
+ "target_date",
+ "issue_type",
+ ],
+ display_properties: ISSUE_DISPLAY_PROPERTIES_KEYS,
+ display_filters: {
+ group_by: [
+ "state_detail.group",
+ "cycle",
+ "module",
+ "priority",
+ "project",
+ "labels",
+ ],
+ order_by: [
+ "sort_order",
+ "-created_at",
+ "-updated_at",
+ "start_date",
+ "-priority",
+ ],
+ type: [null, "active", "backlog"],
+ },
+ extra_options: {
+ access: true,
+ values: ["show_empty_groups"],
+ },
+ },
+ },
+ my_issues: {
+ spreadsheet: {
+ filters: [
+ "priority",
+ "state_group",
+ "labels",
+ "assignees",
+ "created_by",
+ "subscriber",
+ "project",
+ "start_date",
+ "target_date",
+ ],
+ display_properties: ISSUE_DISPLAY_PROPERTIES_KEYS,
+ display_filters: {
+ order_by: [],
+ type: [null, "active", "backlog"],
+ },
+ extra_options: {
+ access: true,
+ values: ["sub_issue"],
+ },
+ },
+ list: {
+ filters: [
+ "priority",
+ "state_group",
+ "labels",
+ "assignees",
+ "created_by",
+ "subscriber",
+ "project",
+ "start_date",
+ "target_date",
+ ],
+ display_properties: ISSUE_DISPLAY_PROPERTIES_KEYS,
+ display_filters: {
+ type: [null, "active", "backlog"],
+ },
+ extra_options: {
+ access: false,
+ values: [],
+ },
+ },
+ },
+ issues: {
+ list: {
+ filters: [
+ "priority",
+ "state",
+ "cycle",
+ "module",
+ "assignees",
+ "mentions",
+ "created_by",
+ "labels",
+ "start_date",
+ "target_date",
+ "issue_type",
+ ],
+ display_properties: ISSUE_DISPLAY_PROPERTIES_KEYS,
+ display_filters: {
+ group_by: [
+ "state",
+ "priority",
+ "cycle",
+ "module",
+ "labels",
+ "assignees",
+ "created_by",
+ null,
+ ],
+ order_by: [
+ "sort_order",
+ "-created_at",
+ "-updated_at",
+ "start_date",
+ "-priority",
+ ],
+ type: [null, "active", "backlog"],
+ },
+ extra_options: {
+ access: true,
+ values: ["show_empty_groups", "sub_issue"],
+ },
+ },
+ kanban: {
+ filters: [
+ "priority",
+ "state",
+ "cycle",
+ "module",
+ "assignees",
+ "mentions",
+ "created_by",
+ "labels",
+ "start_date",
+ "target_date",
+ "issue_type",
+ ],
+ display_properties: ISSUE_DISPLAY_PROPERTIES_KEYS,
+ display_filters: {
+ group_by: [
+ "state",
+ "priority",
+ "cycle",
+ "module",
+ "labels",
+ "assignees",
+ "created_by",
+ ],
+ sub_group_by: [
+ "state",
+ "priority",
+ "cycle",
+ "module",
+ "labels",
+ "assignees",
+ "created_by",
+ null,
+ ],
+ order_by: [
+ "sort_order",
+ "-created_at",
+ "-updated_at",
+ "start_date",
+ "-priority",
+ "target_date",
+ ],
+ type: [null, "active", "backlog"],
+ },
+ extra_options: {
+ access: true,
+ values: ["show_empty_groups", "sub_issue"],
+ },
+ },
+ calendar: {
+ filters: [
+ "priority",
+ "state",
+ "cycle",
+ "module",
+ "assignees",
+ "mentions",
+ "created_by",
+ "labels",
+ "start_date",
+ "issue_type",
+ ],
+ display_properties: ["key", "issue_type"],
+ display_filters: {
+ type: [null, "active", "backlog"],
+ },
+ extra_options: {
+ access: true,
+ values: ["sub_issue"],
+ },
+ },
+ spreadsheet: {
+ filters: [
+ "priority",
+ "state",
+ "cycle",
+ "module",
+ "assignees",
+ "mentions",
+ "created_by",
+ "labels",
+ "start_date",
+ "target_date",
+ "issue_type",
+ ],
+ display_properties: ISSUE_DISPLAY_PROPERTIES_KEYS,
+ display_filters: {
+ order_by: [
+ "sort_order",
+ "-created_at",
+ "-updated_at",
+ "start_date",
+ "-priority",
+ ],
+ type: [null, "active", "backlog"],
+ },
+ extra_options: {
+ access: true,
+ values: ["sub_issue"],
+ },
+ },
+ gantt_chart: {
+ filters: [
+ "priority",
+ "state",
+ "cycle",
+ "module",
+ "assignees",
+ "mentions",
+ "created_by",
+ "labels",
+ "start_date",
+ "target_date",
+ "issue_type",
+ ],
+ display_properties: ["key", "issue_type"],
+ display_filters: {
+ order_by: [
+ "sort_order",
+ "-created_at",
+ "-updated_at",
+ "start_date",
+ "-priority",
+ ],
+ type: [null, "active", "backlog"],
+ },
+ extra_options: {
+ access: true,
+ values: ["sub_issue"],
+ },
+ },
+ },
+};
+
+export const ISSUE_STORE_TO_FILTERS_MAP: Partial<
+ Record<EIssuesStoreType, TFiltersByLayout>
+> = {
+ [EIssuesStoreType.PROJECT]: ISSUE_DISPLAY_FILTERS_BY_PAGE.issues,
+};
+
+export enum EActivityFilterType {
+ ACTIVITY = "ACTIVITY",
+ COMMENT = "COMMENT",
+}
+
+export type TActivityFilters = EActivityFilterType;
+
+export const ACTIVITY_FILTER_TYPE_OPTIONS: Record<
+ TActivityFilters,
+ { labelTranslationKey: string }
+> = {
+ [EActivityFilterType.ACTIVITY]: {
+ labelTranslationKey: "common.updates",
+ },
+ [EActivityFilterType.COMMENT]: {
+ labelTranslationKey: "common.comments",
+ },
+};
+
+export type TActivityFilterOption = {
+ key: TActivityFilters;
+ labelTranslationKey: string;
+ isSelected: boolean;
+ onClick: () => void;
+};
+
+export const defaultActivityFilters: TActivityFilters[] = [
+ EActivityFilterType.ACTIVITY,
+ EActivityFilterType.COMMENT,
+];
+
+export const filterActivityOnSelectedFilters = (
+ activity: TIssueActivityComment[],
+ filters: TActivityFilters[]
+): TIssueActivityComment[] =>
+ activity.filter((activity) =>
+ filters.includes(activity.activity_type as TActivityFilters)
+ );
+
+export const ENABLE_ISSUE_DEPENDENCIES = false;
diff --git a/packages/constants/src/issue/index.ts b/packages/constants/src/issue/index.ts
new file mode 100644
index 0000000000..6332032234
--- /dev/null
+++ b/packages/constants/src/issue/index.ts
@@ -0,0 +1,3 @@
+export * from "./common";
+export * from "./filter";
+export * from "./layout";
diff --git a/packages/constants/src/issue/layout.ts b/packages/constants/src/issue/layout.ts
new file mode 100644
index 0000000000..6dd62fd177
--- /dev/null
+++ b/packages/constants/src/issue/layout.ts
@@ -0,0 +1,76 @@
+export type TIssueLayout =
+ | "list"
+ | "kanban"
+ | "calendar"
+ | "spreadsheet"
+ | "gantt";
+
+export enum EIssueLayoutTypes {
+ LIST = "list",
+ KANBAN = "kanban",
+ CALENDAR = "calendar",
+ GANTT = "gantt_chart",
+ SPREADSHEET = "spreadsheet",
+}
+
+export type TIssueLayoutMap = Record<
+ EIssueLayoutTypes,
+ {
+ key: EIssueLayoutTypes;
+ i18n_title: string;
+ i18n_label: string;
+ }
+>;
+
+export const SITES_ISSUE_LAYOUTS: {
+ key: TIssueLayout;
+ titleTranslationKey: string;
+ icon: any;
+}[] = [
+ {
+ key: "list",
+ icon: "List",
+ titleTranslationKey: "issue.layouts.list",
+ },
+ {
+ key: "kanban",
+ icon: "Kanban",
+ titleTranslationKey: "issue.layouts.kanban",
+ },
+ // { key: "calendar", title: "Calendar", icon: Calendar },
+ // { key: "spreadsheet", title: "Spreadsheet", icon: Sheet },
+ // { key: "gantt", title: "Gantt chart", icon: GanttChartSquare },
+];
+
+export const ISSUE_LAYOUT_MAP: TIssueLayoutMap = {
+ [EIssueLayoutTypes.LIST]: {
+ key: EIssueLayoutTypes.LIST,
+ i18n_title: "issue.layouts.title.list",
+ i18n_label: "issue.layouts.list",
+ },
+ [EIssueLayoutTypes.KANBAN]: {
+ key: EIssueLayoutTypes.KANBAN,
+ i18n_title: "issue.layouts.title.kanban",
+ i18n_label: "issue.layouts.kanban",
+ },
+ [EIssueLayoutTypes.CALENDAR]: {
+ key: EIssueLayoutTypes.CALENDAR,
+ i18n_title: "issue.layouts.title.calendar",
+ i18n_label: "issue.layouts.calendar",
+ },
+ [EIssueLayoutTypes.SPREADSHEET]: {
+ key: EIssueLayoutTypes.SPREADSHEET,
+ i18n_title: "issue.layouts.title.spreadsheet",
+ i18n_label: "issue.layouts.spreadsheet",
+ },
+ [EIssueLayoutTypes.GANTT]: {
+ key: EIssueLayoutTypes.GANTT,
+ i18n_title: "issue.layouts.title.gantt",
+ i18n_label: "issue.layouts.gantt",
+ },
+};
+
+export const ISSUE_LAYOUTS: {
+ key: EIssueLayoutTypes;
+ i18n_title: string;
+}[] = Object.values(ISSUE_LAYOUT_MAP);
diff --git a/web/core/constants/label.ts b/packages/constants/src/label.ts
similarity index 100%
rename from web/core/constants/label.ts
rename to packages/constants/src/label.ts
diff --git a/packages/constants/src/metadata.ts b/packages/constants/src/metadata.ts
index b356388267..017cc84c25 100644
--- a/packages/constants/src/metadata.ts
+++ b/packages/constants/src/metadata.ts
@@ -3,9 +3,9 @@ export const SITE_NAME =
export const SITE_TITLE =
"Plane | Simple, extensible, open-source project management tool.";
export const SITE_DESCRIPTION =
- "Open-source project management tool to manage issues, sprints, and product roadmaps with peace of mind.";
+ "Open-source project management tool to manage work items, cycles, and product roadmaps easily";
export const SITE_KEYWORDS =
- "software development, plan, ship, software, accelerate, code management, release management, project management, issue tracking, agile, scrum, kanban, collaboration";
+ "software development, plan, ship, software, accelerate, code management, release management, project management, work items tracking, agile, scrum, kanban, collaboration";
export const SITE_URL = "https://app.plane.so/";
export const TWITTER_USER_NAME =
"Plane | Simple, extensible, open-source project management tool.";
@@ -18,6 +18,6 @@ export const SPACE_SITE_TITLE =
export const SPACE_SITE_DESCRIPTION =
"Plane Publish is a customer feedback management tool built on top of plane.so";
export const SPACE_SITE_KEYWORDS =
- "software development, customer feedback, software, accelerate, code management, release management, project management, issue tracking, agile, scrum, kanban, collaboration";
+ "software development, customer feedback, software, accelerate, code management, release management, project management, work items tracking, agile, scrum, kanban, collaboration";
export const SPACE_SITE_URL = "https://app.plane.so/";
export const SPACE_TWITTER_USER_NAME = "planepowers";
diff --git a/web/core/constants/module.ts b/packages/constants/src/module.ts
similarity index 51%
rename from web/core/constants/module.ts
rename to packages/constants/src/module.ts
index 8d26ab5f4e..6ce30f0dcf 100644
--- a/web/core/constants/module.ts
+++ b/packages/constants/src/module.ts
@@ -1,51 +1,54 @@
-import { GanttChartSquare, LayoutGrid, List } from "lucide-react";
// types
-import { TModuleLayoutOptions, TModuleOrderByOptions, TModuleStatus } from "@plane/types";
+import {
+ TModuleLayoutOptions,
+ TModuleOrderByOptions,
+ TModuleStatus,
+} from "@plane/types";
export const MODULE_STATUS: {
- label: string;
+ i18n_label: string;
value: TModuleStatus;
color: string;
textColor: string;
bgColor: string;
}[] = [
{
- label: "Backlog",
+ i18n_label: "project_modules.status.backlog",
value: "backlog",
color: "#a3a3a2",
textColor: "text-custom-text-400",
bgColor: "bg-custom-background-80",
},
{
- label: "Planned",
+ i18n_label: "project_modules.status.planned",
value: "planned",
color: "#3f76ff",
textColor: "text-blue-500",
bgColor: "bg-indigo-50",
},
{
- label: "In Progress",
+ i18n_label: "project_modules.status.in_progress",
value: "in-progress",
color: "#f39e1f",
textColor: "text-amber-500",
bgColor: "bg-amber-50",
},
{
- label: "Paused",
+ i18n_label: "project_modules.status.paused",
value: "paused",
color: "#525252",
textColor: "text-custom-text-300",
bgColor: "bg-custom-background-90",
},
{
- label: "Completed",
+ i18n_label: "project_modules.status.completed",
value: "completed",
color: "#16a34a",
textColor: "text-green-600",
bgColor: "bg-green-100",
},
{
- label: "Cancelled",
+ i18n_label: "project_modules.status.cancelled",
value: "cancelled",
color: "#ef4444",
textColor: "text-red-500",
@@ -53,47 +56,50 @@ export const MODULE_STATUS: {
},
];
-export const MODULE_VIEW_LAYOUTS: { key: TModuleLayoutOptions; icon: any; title: string }[] = [
+export const MODULE_VIEW_LAYOUTS: {
+ key: TModuleLayoutOptions;
+ i18n_title: string;
+}[] = [
{
key: "list",
- icon: List,
- title: "List layout",
+ i18n_title: "project_modules.layout.list",
},
{
key: "board",
- icon: LayoutGrid,
- title: "Gallery layout",
+ i18n_title: "project_modules.layout.board",
},
{
key: "gantt",
- icon: GanttChartSquare,
- title: "Timeline layout",
+ i18n_title: "project_modules.layout.timeline",
},
];
-export const MODULE_ORDER_BY_OPTIONS: { key: TModuleOrderByOptions; label: string }[] = [
+export const MODULE_ORDER_BY_OPTIONS: {
+ key: TModuleOrderByOptions;
+ i18n_label: string;
+}[] = [
{
key: "name",
- label: "Name",
+ i18n_label: "project_modules.order_by.name",
},
{
key: "progress",
- label: "Progress",
+ i18n_label: "project_modules.order_by.progress",
},
{
key: "issues_length",
- label: "Number of issues",
+ i18n_label: "project_modules.order_by.issues",
},
{
key: "target_date",
- label: "Due date",
+ i18n_label: "project_modules.order_by.due_date",
},
{
key: "created_at",
- label: "Created date",
+ i18n_label: "project_modules.order_by.created_at",
},
{
key: "sort_order",
- label: "Manual",
+ i18n_label: "project_modules.order_by.manual",
},
];
diff --git a/web/core/constants/notification.ts b/packages/constants/src/notification.ts
similarity index 82%
rename from web/core/constants/notification.ts
rename to packages/constants/src/notification.ts
index 36ab3c8eed..cb267c4ad1 100644
--- a/web/core/constants/notification.ts
+++ b/packages/constants/src/notification.ts
@@ -29,12 +29,13 @@ export type TNotificationTab = ENotificationTab.ALL | ENotificationTab.MENTIONS;
export const NOTIFICATION_TABS = [
{
- label: "All",
+ i18n_label: "notification.tabs.all",
value: ENotificationTab.ALL,
- count: (unReadNotification: TUnreadNotificationsCount) => unReadNotification?.total_unread_notifications_count || 0,
+ count: (unReadNotification: TUnreadNotificationsCount) =>
+ unReadNotification?.total_unread_notifications_count || 0,
},
{
- label: "Mentions",
+ i18n_label: "notification.tabs.mentions",
value: ENotificationTab.MENTIONS,
count: (unReadNotification: TUnreadNotificationsCount) =>
unReadNotification?.mention_unread_notifications_count || 0,
@@ -43,15 +44,15 @@ export const NOTIFICATION_TABS = [
export const FILTER_TYPE_OPTIONS = [
{
- label: "Assigned to me",
+ i18n_label: "notification.filter.assigned",
value: ENotificationFilterType.ASSIGNED,
},
{
- label: "Created by me",
+ i18n_label: "notification.filter.created",
value: ENotificationFilterType.CREATED,
},
{
- label: "Subscribed by me",
+ i18n_label: "notification.filter.subscribed",
value: ENotificationFilterType.SUBSCRIBED,
},
];
@@ -59,7 +60,7 @@ export const FILTER_TYPE_OPTIONS = [
export const NOTIFICATION_SNOOZE_OPTIONS = [
{
key: "1_day",
- label: "1 day",
+ i18n_label: "notification.snooze.1_day",
value: () => {
const date = new Date();
return new Date(date.getTime() + 24 * 60 * 60 * 1000);
@@ -67,7 +68,7 @@ export const NOTIFICATION_SNOOZE_OPTIONS = [
},
{
key: "3_days",
- label: "3 days",
+ i18n_label: "notification.snooze.3_days",
value: () => {
const date = new Date();
return new Date(date.getTime() + 3 * 24 * 60 * 60 * 1000);
@@ -75,7 +76,7 @@ export const NOTIFICATION_SNOOZE_OPTIONS = [
},
{
key: "5_days",
- label: "5 days",
+ i18n_label: "notification.snooze.5_days",
value: () => {
const date = new Date();
return new Date(date.getTime() + 5 * 24 * 60 * 60 * 1000);
@@ -83,7 +84,7 @@ export const NOTIFICATION_SNOOZE_OPTIONS = [
},
{
key: "1_week",
- label: "1 week",
+ i18n_label: "notification.snooze.1_week",
value: () => {
const date = new Date();
return new Date(date.getTime() + 7 * 24 * 60 * 60 * 1000);
@@ -91,7 +92,7 @@ export const NOTIFICATION_SNOOZE_OPTIONS = [
},
{
key: "2_weeks",
- label: "2 weeks",
+ i18n_label: "notification.snooze.2_weeks",
value: () => {
const date = new Date();
return new Date(date.getTime() + 14 * 24 * 60 * 60 * 1000);
@@ -99,7 +100,7 @@ export const NOTIFICATION_SNOOZE_OPTIONS = [
},
{
key: "custom",
- label: "Custom",
+ i18n_label: "notification.snooze.custom",
value: undefined,
},
];
diff --git a/packages/constants/src/page.ts b/packages/constants/src/page.ts
new file mode 100644
index 0000000000..182cff40e3
--- /dev/null
+++ b/packages/constants/src/page.ts
@@ -0,0 +1,14 @@
+export enum EPageAccess {
+ PUBLIC = 0,
+ PRIVATE = 1,
+}
+
+export type TCreatePageModal = {
+ isOpen: boolean;
+ pageAccess?: EPageAccess;
+};
+
+export const DEFAULT_CREATE_PAGE_MODAL_DATA: TCreatePageModal = {
+ isOpen: false,
+ pageAccess: EPageAccess.PUBLIC,
+};
diff --git a/web/core/constants/profile.ts b/packages/constants/src/profile.ts
similarity index 70%
rename from web/core/constants/profile.ts
rename to packages/constants/src/profile.ts
index d6ccf65832..f7765a0cfc 100644
--- a/web/core/constants/profile.ts
+++ b/packages/constants/src/profile.ts
@@ -1,48 +1,38 @@
-import React from "react";
-// icons
-import { Activity, Bell, CircleUser, KeyRound, LucideProps, Settings2 } from "lucide-react";
-
export const PROFILE_ACTION_LINKS: {
key: string;
- label: string;
+ i18n_label: string;
href: string;
highlight: (pathname: string) => boolean;
- Icon: React.FC<LucideProps>;
}[] = [
{
key: "profile",
- label: "Profile",
+ i18n_label: "profile.actions.profile",
href: `/profile`,
highlight: (pathname: string) => pathname === "/profile/",
- Icon: CircleUser,
},
{
key: "security",
- label: "Security",
+ i18n_label: "profile.actions.security",
href: `/profile/security`,
highlight: (pathname: string) => pathname === "/profile/security/",
- Icon: KeyRound,
},
{
key: "activity",
- label: "Activity",
+ i18n_label: "profile.actions.activity",
href: `/profile/activity`,
highlight: (pathname: string) => pathname === "/profile/activity/",
- Icon: Activity,
},
{
key: "appearance",
- label: "Appearance",
+ i18n_label: "profile.actions.appearance",
href: `/profile/appearance`,
highlight: (pathname: string) => pathname.includes("/profile/appearance"),
- Icon: Settings2,
},
{
key: "notifications",
- label: "Notifications",
+ i18n_label: "profile.actions.notifications",
href: `/profile/notifications`,
highlight: (pathname: string) => pathname === "/profile/notifications/",
- Icon: Bell,
},
];
@@ -50,7 +40,7 @@ export const PROFILE_VIEWER_TAB = [
{
key: "summary",
route: "",
- label: "Summary",
+ i18n_label: "profile.tabs.summary",
selected: "/",
},
];
@@ -59,24 +49,25 @@ export const PROFILE_ADMINS_TAB = [
{
key: "assigned",
route: "assigned",
- label: "Assigned",
+ i18n_label: "profile.tabs.assigned",
selected: "/assigned/",
},
{
+ key: "created",
route: "created",
- label: "Created",
+ i18n_label: "profile.tabs.created",
selected: "/created/",
},
{
key: "subscribed",
route: "subscribed",
- label: "Subscribed",
+ i18n_label: "profile.tabs.subscribed",
selected: "/subscribed/",
},
{
key: "activity",
route: "activity",
- label: "Activity",
+ i18n_label: "profile.tabs.activity",
selected: "/activity/",
},
];
diff --git a/web/core/constants/project.ts b/packages/constants/src/project.ts
similarity index 61%
rename from web/core/constants/project.ts
rename to packages/constants/src/project.ts
index e984cb968a..a4d68295f4 100644
--- a/web/core/constants/project.ts
+++ b/packages/constants/src/project.ts
@@ -1,41 +1,65 @@
// icons
-import { Globe2, Lock, LucideIcon } from "lucide-react";
-import { TProjectAppliedDisplayFilterKeys, TProjectOrderByOptions } from "@plane/types";
+import {
+ TProjectAppliedDisplayFilterKeys,
+ TProjectOrderByOptions,
+} from "@plane/types";
-export const NETWORK_CHOICES: {
+export type TNetworkChoiceIconKey = "Lock" | "Globe2";
+
+export type TNetworkChoice = {
key: 0 | 2;
- label: string;
+ labelKey: string;
+ i18n_label: string;
description: string;
- icon: LucideIcon;
-}[] = [
+ iconKey: TNetworkChoiceIconKey;
+};
+
+export const NETWORK_CHOICES: TNetworkChoice[] = [
{
key: 0,
- label: "Private",
- description: "Accessible only by invite",
- icon: Lock,
+ labelKey: "Private",
+ i18n_label: "workspace_projects.network.private.title",
+ description: "workspace_projects.network.private.description", //"Accessible only by invite",
+ iconKey: "Lock",
},
{
key: 2,
- label: "Public",
- description: "Anyone in the workspace except Guests can join",
- icon: Globe2,
+ labelKey: "Public",
+ i18n_label: "workspace_projects.network.public.title",
+ description: "workspace_projects.network.public.description", //"Anyone in the workspace except Guests can join",
+ iconKey: "Globe2",
},
];
export const GROUP_CHOICES = {
- backlog: "Backlog",
- unstarted: "Unstarted",
- started: "Started",
- completed: "Completed",
- cancelled: "Cancelled",
+ backlog: {
+ key: "backlog",
+ i18n_label: "workspace_projects.state.backlog",
+ },
+ unstarted: {
+ key: "unstarted",
+ i18n_label: "workspace_projects.state.unstarted",
+ },
+ started: {
+ key: "started",
+ i18n_label: "workspace_projects.state.started",
+ },
+ completed: {
+ key: "completed",
+ i18n_label: "workspace_projects.state.completed",
+ },
+ cancelled: {
+ key: "cancelled",
+ i18n_label: "workspace_projects.state.cancelled",
+ },
};
export const PROJECT_AUTOMATION_MONTHS = [
- { label: "1 month", value: 1 },
- { label: "3 months", value: 3 },
- { label: "6 months", value: 6 },
- { label: "9 months", value: 9 },
- { label: "12 months", value: 12 },
+ { 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 },
];
export const PROJECT_UNSPLASH_COVERS = [
@@ -59,55 +83,55 @@ export const PROJECT_UNSPLASH_COVERS = [
export const PROJECT_ORDER_BY_OPTIONS: {
key: TProjectOrderByOptions;
- label: string;
+ i18n_label: string;
}[] = [
{
key: "sort_order",
- label: "Manual",
+ i18n_label: "workspace_projects.sort.manual",
},
{
key: "name",
- label: "Name",
+ i18n_label: "workspace_projects.sort.name",
},
{
key: "created_at",
- label: "Created date",
+ i18n_label: "workspace_projects.sort.created_at",
},
{
key: "members_length",
- label: "Number of members",
+ i18n_label: "workspace_projects.sort.members_length",
},
];
export const PROJECT_DISPLAY_FILTER_OPTIONS: {
key: TProjectAppliedDisplayFilterKeys;
- label: string;
+ i18n_label: string;
}[] = [
{
key: "my_projects",
- label: "My projects",
+ i18n_label: "workspace_projects.scope.my_projects",
},
{
key: "archived_projects",
- label: "Archived",
+ i18n_label: "workspace_projects.scope.archived_projects",
},
];
export const PROJECT_ERROR_MESSAGES = {
permissionError: {
- title: "You don't have permission to perform this action.",
- message: undefined,
+ i18n_title: "workspace_projects.error.permission",
+ i18n_message: undefined,
},
cycleDeleteError: {
- title: "Error",
- message: "Failed to delete cycle",
+ i18n_title: "error",
+ i18n_message: "workspace_projects.error.cycle_delete",
},
moduleDeleteError: {
- title: "Error",
- message: "Failed to delete module",
+ i18n_title: "error",
+ i18n_message: "workspace_projects.error.module_delete",
},
issueDeleteError: {
- title: "Error",
- message: "Failed to delete issue",
+ i18n_title: "error",
+ i18n_message: "workspace_projects.error.issue_delete",
},
};
diff --git a/packages/constants/src/spreadsheet.ts b/packages/constants/src/spreadsheet.ts
new file mode 100644
index 0000000000..57723e4491
--- /dev/null
+++ b/packages/constants/src/spreadsheet.ts
@@ -0,0 +1 @@
+export const SPREADSHEET_SELECT_GROUP = "spreadsheet-issues";
diff --git a/packages/constants/src/state.ts b/packages/constants/src/state.ts
index 790f782864..9f5db17c7f 100644
--- a/packages/constants/src/state.ts
+++ b/packages/constants/src/state.ts
@@ -5,6 +5,11 @@ export type TStateGroups =
| "completed"
| "cancelled";
+export type TDraggableData = {
+ groupKey: TStateGroups;
+ id: string;
+};
+
export const STATE_GROUPS: {
[key in TStateGroups]: {
key: TStateGroups;
@@ -43,6 +48,13 @@ export const ARCHIVABLE_STATE_GROUPS = [
STATE_GROUPS.completed.key,
STATE_GROUPS.cancelled.key,
];
+export const COMPLETED_STATE_GROUPS = [STATE_GROUPS.completed.key];
+export const PENDING_STATE_GROUPS = [
+ STATE_GROUPS.backlog.key,
+ STATE_GROUPS.unstarted.key,
+ STATE_GROUPS.started.key,
+ STATE_GROUPS.cancelled.key,
+];
export const PROGRESS_STATE_GROUPS_DETAILS = [
{
@@ -66,3 +78,5 @@ export const PROGRESS_STATE_GROUPS_DETAILS = [
color: "#A3A3A3",
},
];
+
+export const DISPLAY_WORKFLOW_PRO_CTA = false;
diff --git a/packages/constants/src/swr.ts b/packages/constants/src/swr.ts
index d3eef1cdfe..e981dd1d0c 100644
--- a/packages/constants/src/swr.ts
+++ b/packages/constants/src/swr.ts
@@ -6,3 +6,11 @@ export const DEFAULT_SWR_CONFIG = {
refreshInterval: 600000,
errorRetryCount: 3,
};
+
+export const WEB_SWR_CONFIG = {
+ refreshWhenHidden: false,
+ revalidateIfStale: true,
+ revalidateOnFocus: true,
+ revalidateOnMount: true,
+ errorRetryCount: 3,
+};
diff --git a/web/core/constants/tab-indices.ts b/packages/constants/src/tab-indices.ts
similarity index 85%
rename from web/core/constants/tab-indices.ts
rename to packages/constants/src/tab-indices.ts
index 58a12f4174..0668528893 100644
--- a/web/core/constants/tab-indices.ts
+++ b/packages/constants/src/tab-indices.ts
@@ -54,7 +54,14 @@ export const PROJECT_CREATE_TAB_INDICES = [
"logo_props",
];
-export const PROJECT_CYCLE_TAB_INDICES = ["name", "description", "date_range", "cancel", "submit", "project_id"];
+export const PROJECT_CYCLE_TAB_INDICES = [
+ "name",
+ "description",
+ "date_range",
+ "cancel",
+ "submit",
+ "project_id",
+];
export const PROJECT_MODULE_TAB_INDICES = [
"name",
@@ -67,9 +74,21 @@ export const PROJECT_MODULE_TAB_INDICES = [
"submit",
];
-export const PROJECT_VIEW_TAB_INDICES = ["name", "description", "filters", "cancel", "submit"];
+export const PROJECT_VIEW_TAB_INDICES = [
+ "name",
+ "description",
+ "filters",
+ "cancel",
+ "submit",
+];
-export const PROJECT_PAGE_TAB_INDICES = ["name", "public", "private", "cancel", "submit"];
+export const PROJECT_PAGE_TAB_INDICES = [
+ "name",
+ "public",
+ "private",
+ "cancel",
+ "submit",
+];
export enum ETabIndices {
ISSUE_FORM = "issue-form",
diff --git a/web/core/constants/themes.ts b/packages/constants/src/themes.ts
similarity index 79%
rename from web/core/constants/themes.ts
rename to packages/constants/src/themes.ts
index dd75848118..84e8c0d0b7 100644
--- a/web/core/constants/themes.ts
+++ b/packages/constants/src/themes.ts
@@ -1,9 +1,15 @@
-export const THEMES = ["light", "dark", "light-contrast", "dark-contrast", "custom"];
+export const THEMES = [
+ "light",
+ "dark",
+ "light-contrast",
+ "dark-contrast",
+ "custom",
+];
export interface I_THEME_OPTION {
key: string;
value: string;
- label: string;
+ i18n_label: string;
type: string;
icon: {
border: string;
@@ -16,7 +22,7 @@ export const THEME_OPTIONS: I_THEME_OPTION[] = [
{
key: "system_preference",
value: "system",
- label: "System preference",
+ i18n_label: "System preference",
type: "light",
icon: {
border: "#DEE2E6",
@@ -27,7 +33,7 @@ export const THEME_OPTIONS: I_THEME_OPTION[] = [
{
key: "light",
value: "light",
- label: "Light",
+ i18n_label: "Light",
type: "light",
icon: {
border: "#DEE2E6",
@@ -38,7 +44,7 @@ export const THEME_OPTIONS: I_THEME_OPTION[] = [
{
key: "dark",
value: "dark",
- label: "Dark",
+ i18n_label: "Dark",
type: "dark",
icon: {
border: "#2E3234",
@@ -49,7 +55,7 @@ export const THEME_OPTIONS: I_THEME_OPTION[] = [
{
key: "light_contrast",
value: "light-contrast",
- label: "Light high contrast",
+ i18n_label: "Light high contrast",
type: "light",
icon: {
border: "#000000",
@@ -60,7 +66,7 @@ export const THEME_OPTIONS: I_THEME_OPTION[] = [
{
key: "dark_contrast",
value: "dark-contrast",
- label: "Dark high contrast",
+ i18n_label: "Dark high contrast",
type: "dark",
icon: {
border: "#FFFFFF",
@@ -71,7 +77,7 @@ export const THEME_OPTIONS: I_THEME_OPTION[] = [
{
key: "custom",
value: "custom",
- label: "Custom theme",
+ i18n_label: "Custom theme",
type: "light",
icon: {
border: "#FFC9C9",
diff --git a/packages/constants/src/user.ts b/packages/constants/src/user.ts
index f10801807c..9967569499 100644
--- a/packages/constants/src/user.ts
+++ b/packages/constants/src/user.ts
@@ -36,3 +36,40 @@ export enum EUserProjectRoles {
MEMBER = 15,
GUEST = 5,
}
+
+export type TUserPermissionsLevel = EUserPermissionsLevel;
+
+export enum EUserPermissions {
+ ADMIN = 20,
+ MEMBER = 15,
+ GUEST = 5,
+}
+export type TUserPermissions = EUserPermissions;
+
+export type TUserAllowedPermissionsObject = {
+ create: TUserPermissions[];
+ update: TUserPermissions[];
+ delete: TUserPermissions[];
+ read: TUserPermissions[];
+};
+export type TUserAllowedPermissions = {
+ workspace: {
+ [key: string]: Partial<TUserAllowedPermissionsObject>;
+ };
+ project: {
+ [key: string]: Partial<TUserAllowedPermissionsObject>;
+ };
+};
+
+export const USER_ALLOWED_PERMISSIONS: TUserAllowedPermissions = {
+ workspace: {
+ dashboard: {
+ read: [
+ EUserPermissions.ADMIN,
+ EUserPermissions.MEMBER,
+ EUserPermissions.GUEST,
+ ],
+ },
+ },
+ project: {},
+};
diff --git a/packages/constants/src/views.ts b/packages/constants/src/views.ts
new file mode 100644
index 0000000000..8ac837de80
--- /dev/null
+++ b/packages/constants/src/views.ts
@@ -0,0 +1,23 @@
+export enum EViewAccess {
+ PRIVATE,
+ PUBLIC,
+}
+
+export const VIEW_ACCESS_SPECIFIERS: {
+ key: EViewAccess;
+ i18n_label: string;
+}[] = [
+ { key: EViewAccess.PUBLIC, i18n_label: "common.access.public" },
+ { key: EViewAccess.PRIVATE, i18n_label: "common.access.private" },
+];
+
+export const VIEW_SORTING_KEY_OPTIONS = [
+ { key: "name", i18n_label: "project_view.sort_by.name" },
+ { key: "created_at", i18n_label: "project_view.sort_by.created_at" },
+ { key: "updated_at", i18n_label: "project_view.sort_by.updated_at" },
+];
+
+export const VIEW_SORT_BY_OPTIONS = [
+ { key: "asc", i18n_label: "common.order_by.asc" },
+ { key: "desc", i18n_label: "common.order_by.desc" },
+];
diff --git a/web/core/constants/workspace-drafts.ts b/packages/constants/src/workspace-drafts.ts
similarity index 100%
rename from web/core/constants/workspace-drafts.ts
rename to packages/constants/src/workspace-drafts.ts
diff --git a/packages/constants/src/workspace.ts b/packages/constants/src/workspace.ts
index d37decf3f2..3bbb5b1f31 100644
--- a/packages/constants/src/workspace.ts
+++ b/packages/constants/src/workspace.ts
@@ -1,3 +1,6 @@
+import { TStaticViewTypes } from "@plane/types";
+import { EUserWorkspaceRoles } from "./user";
+
export const ORGANIZATION_SIZE = [
"Just myself", // TODO: translate
"2-10",
@@ -74,3 +77,182 @@ export const RESTRICTED_URLS = [
"instances",
"instance",
];
+
+export const WORKSPACE_SETTINGS = {
+ general: {
+ key: "general",
+ i18n_label: "workspace_settings.settings.general.title",
+ href: `/settings`,
+ access: [EUserWorkspaceRoles.ADMIN],
+ highlight: (pathname: string, baseUrl: string) =>
+ pathname === `${baseUrl}/settings/`,
+ },
+ members: {
+ key: "members",
+ i18n_label: "workspace_settings.settings.members.title",
+ href: `/settings/members`,
+ access: [EUserWorkspaceRoles.ADMIN],
+ highlight: (pathname: string, baseUrl: string) =>
+ pathname === `${baseUrl}/settings/members/`,
+ },
+ "billing-and-plans": {
+ key: "billing-and-plans",
+ i18n_label: "workspace_settings.settings.billing_and_plans.title",
+ href: `/settings/billing`,
+ access: [EUserWorkspaceRoles.ADMIN],
+ highlight: (pathname: string, baseUrl: string) =>
+ pathname === `${baseUrl}/settings/billing/`,
+ },
+ export: {
+ key: "export",
+ i18n_label: "workspace_settings.settings.exports.title",
+ href: `/settings/exports`,
+ access: [EUserWorkspaceRoles.ADMIN],
+ highlight: (pathname: string, baseUrl: string) =>
+ pathname === `${baseUrl}/settings/exports/`,
+ },
+ webhooks: {
+ key: "webhooks",
+ i18n_label: "workspace_settings.settings.webhooks.title",
+ href: `/settings/webhooks`,
+ access: [EUserWorkspaceRoles.ADMIN],
+ highlight: (pathname: string, baseUrl: string) =>
+ pathname === `${baseUrl}/settings/webhooks/`,
+ },
+ "api-tokens": {
+ key: "api-tokens",
+ i18n_label: "workspace_settings.settings.api_tokens.title",
+ href: `/settings/api-tokens`,
+ access: [EUserWorkspaceRoles.ADMIN],
+ highlight: (pathname: string, baseUrl: string) =>
+ pathname === `${baseUrl}/settings/api-tokens/`,
+ },
+};
+
+export const WORKSPACE_SETTINGS_LINKS: {
+ key: string;
+ i18n_label: string;
+ href: string;
+ access: EUserWorkspaceRoles[];
+ highlight: (pathname: string, baseUrl: string) => boolean;
+}[] = [
+ WORKSPACE_SETTINGS["general"],
+ WORKSPACE_SETTINGS["members"],
+ WORKSPACE_SETTINGS["billing-and-plans"],
+ WORKSPACE_SETTINGS["export"],
+ WORKSPACE_SETTINGS["webhooks"],
+ WORKSPACE_SETTINGS["api-tokens"],
+];
+
+export const ROLE = {
+ [EUserWorkspaceRoles.GUEST]: "Guest",
+ [EUserWorkspaceRoles.MEMBER]: "Member",
+ [EUserWorkspaceRoles.ADMIN]: "Admin",
+};
+
+export const ROLE_DETAILS = {
+ [EUserWorkspaceRoles.GUEST]: {
+ i18n_title: "role_details.guest.title",
+ i18n_description: "role_details.guest.description",
+ },
+ [EUserWorkspaceRoles.MEMBER]: {
+ i18n_title: "role_details.member.title",
+ i18n_description: "role_details.member.description",
+ },
+ [EUserWorkspaceRoles.ADMIN]: {
+ i18n_title: "role_details.admin.title",
+ i18n_description: "role_details.admin.description",
+ },
+};
+
+export const USER_ROLES = [
+ {
+ value: "Product / Project Manager",
+ i18n_label: "user_roles.product_or_project_manager",
+ },
+ {
+ value: "Development / Engineering",
+ i18n_label: "user_roles.development_or_engineering",
+ },
+ {
+ value: "Founder / Executive",
+ i18n_label: "user_roles.founder_or_executive",
+ },
+ {
+ value: "Freelancer / Consultant",
+ i18n_label: "user_roles.freelancer_or_consultant",
+ },
+ { value: "Marketing / Growth", i18n_label: "user_roles.marketing_or_growth" },
+ {
+ value: "Sales / Business Development",
+ i18n_label: "user_roles.sales_or_business_development",
+ },
+ {
+ value: "Support / Operations",
+ i18n_label: "user_roles.support_or_operations",
+ },
+ {
+ value: "Student / Professor",
+ i18n_label: "user_roles.student_or_professor",
+ },
+ { value: "Human Resources", i18n_label: "user_roles.human_resources" },
+ { value: "Other", i18n_label: "user_roles.other" },
+];
+
+export const IMPORTERS_LIST = [
+ {
+ provider: "github",
+ type: "import",
+ i18n_title: "importer.github.title",
+ i18n_description: "importer.github.description",
+ },
+ {
+ provider: "jira",
+ type: "import",
+ i18n_title: "importer.jira.title",
+ i18n_description: "importer.jira.description",
+ },
+];
+
+export const EXPORTERS_LIST = [
+ {
+ provider: "csv",
+ type: "export",
+ i18n_title: "exporter.csv.title",
+ i18n_description: "exporter.csv.description",
+ },
+ {
+ provider: "xlsx",
+ type: "export",
+ i18n_title: "exporter.excel.title",
+ i18n_description: "exporter.csv.description",
+ },
+ {
+ provider: "json",
+ type: "export",
+ i18n_title: "exporter.json.title",
+ i18n_description: "exporter.csv.description",
+ },
+];
+
+export const DEFAULT_GLOBAL_VIEWS_LIST: {
+ key: TStaticViewTypes;
+ i18n_label: string;
+}[] = [
+ {
+ key: "all-issues",
+ i18n_label: "default_global_view.all_issues",
+ },
+ {
+ key: "assigned",
+ i18n_label: "default_global_view.assigned",
+ },
+ {
+ key: "created",
+ i18n_label: "default_global_view.created",
+ },
+ {
+ key: "subscribed",
+ i18n_label: "default_global_view.subscribed",
+ },
+];
diff --git a/packages/i18n/src/locales/en/core.json b/packages/i18n/src/locales/en/core.json
new file mode 100644
index 0000000000..a17de227eb
--- /dev/null
+++ b/packages/i18n/src/locales/en/core.json
@@ -0,0 +1,171 @@
+{
+ "sidebar": {
+ "projects": "Projects",
+ "pages": "Pages",
+ "new_work_item": "New work item",
+ "home": "Home",
+ "your_work": "Your work",
+ "inbox": "Inbox",
+ "workspace": "Workspace",
+ "views": "Views",
+ "analytics": "Analytics",
+ "work_items": "Work items",
+ "cycles": "Cycles",
+ "modules": "Modules",
+ "intake": "Intake",
+ "drafts": "Drafts",
+ "favorites": "Favorites",
+ "pro": "Pro",
+ "upgrade": "Upgrade"
+ },
+
+ "auth": {
+ "common": {
+ "email": {
+ "label": "Email",
+ "placeholder": "[email protected]",
+ "errors": {
+ "required": "Email is required",
+ "invalid": "Email is invalid"
+ }
+ },
+ "password": {
+ "label": "Password",
+ "set_password": "Set a password",
+ "placeholder": "Enter password",
+ "confirm_password": {
+ "label": "Confirm password",
+ "placeholder": "Confirm password"
+ },
+ "current_password": {
+ "label": "Current password"
+ },
+ "new_password": {
+ "label": "New password",
+ "placeholder": "Enter new password"
+ },
+ "change_password": {
+ "label": {
+ "default": "Change password",
+ "submitting": "Changing password"
+ }
+ },
+ "errors": {
+ "match": "Passwords don't match",
+ "empty": "Please enter your password",
+ "length": "Password length should me more than 8 characters",
+ "strength": {
+ "weak": "Password is weak",
+ "strong": "Password is strong"
+ }
+ },
+ "submit": "Set password",
+ "toast": {
+ "change_password": {
+ "success": {
+ "title": "Success!",
+ "message": "Password changed successfully."
+ },
+ "error": {
+ "title": "Error!",
+ "message": "Something went wrong. Please try again."
+ }
+ }
+ }
+ },
+ "unique_code": {
+ "label": "Unique code",
+ "placeholder": "gets-sets-flys",
+ "paste_code": "Paste the code sent to your email",
+ "requesting_new_code": "Requesting new code",
+ "sending_code": "Sending code"
+ },
+ "already_have_an_account": "Already have an account?",
+ "login": "Log in",
+ "create_account": "Create an account",
+ "new_to_plane": "New to Plane?",
+ "back_to_sign_in": "Back to sign in",
+ "resend_in": "Resend in {seconds} seconds",
+ "sign_in_with_unique_code": "Sign in with unique code",
+ "forgot_password": "Forgot your password?"
+ },
+ "sign_up": {
+ "header": {
+ "label": "Create an account to start managing work with your team.",
+ "step": {
+ "email": {
+ "header": "Sign up",
+ "sub_header": ""
+ },
+ "password": {
+ "header": "Sign up",
+ "sub_header": "Sign up using an email-password combination."
+ },
+ "unique_code": {
+ "header": "Sign up",
+ "sub_header": "Sign up using a unique code sent to the email address above."
+ }
+ }
+ },
+ "errors": {
+ "password": {
+ "strength": "Try setting-up a strong password to proceed"
+ }
+ }
+ },
+ "sign_in": {
+ "header": {
+ "label": "Log in to start managing work with your team.",
+ "step": {
+ "email": {
+ "header": "Log in or sign up",
+ "sub_header": ""
+ },
+ "password": {
+ "header": "Log in or sign up",
+ "sub_header": "Use your email-password combination to log in."
+ },
+ "unique_code": {
+ "header": "Log in or sign up",
+ "sub_header": "Log in using a unique code sent to the email address above."
+ }
+ }
+ }
+ },
+ "forgot_password": {
+ "title": "Reset your password",
+ "description": "Enter your user account's verified email address and we will send you a password reset link.",
+ "email_sent": "We sent the reset link to your email address",
+ "send_reset_link": "Send reset link",
+ "errors": {
+ "smtp_not_enabled": "We see that your god hasn't enabled SMTP, we will not be able to send a password reset link"
+ },
+ "toast": {
+ "success": {
+ "title": "Email sent",
+ "message": "Check your inbox for a link to reset your password. If it doesn't appear within a few minutes, check your spam folder."
+ },
+ "error": {
+ "title": "Error!",
+ "message": "Something went wrong. Please try again."
+ }
+ }
+ },
+ "reset_password": {
+ "title": "Set new password",
+ "description": "Secure your account with a strong password"
+ },
+ "set_password": {
+ "title": "Secure your account",
+ "description": "Setting password helps you login securely"
+ },
+ "sign_out": {
+ "toast": {
+ "error": {
+ "title": "Error!",
+ "message": "Failed to sign out. Please try again."
+ }
+ }
+ }
+ }
+}
diff --git a/packages/i18n/src/locales/en/translations.json b/packages/i18n/src/locales/en/translations.json
index 728e753384..a1705deceb 100644
--- a/packages/i18n/src/locales/en/translations.json
+++ b/packages/i18n/src/locales/en/translations.json
@@ -14,10 +14,13 @@
"description": "Description",
"search": "Search",
"add_member": "Add member",
+ "adding_members": "Adding members",
"remove_member": "Remove member",
"add_members": "Add members",
+ "adding_member": "Adding members",
"remove_members": "Remove members",
"add": "Add",
+ "adding": "Adding",
"remove": "Remove",
"add_new": "Add new",
"remove_selected": "Remove selected",
@@ -32,18 +35,16 @@
"password": "Password",
"change_cover": "Change cover",
"language": "Language",
- "saving": "Saving...",
+ "saving": "Saving",
"save_changes": "Save changes",
"deactivate_account": "Deactivate account",
"deactivate_account_description": "When deactivating an account, all of the data and resources within that account will be permanently removed and cannot be recovered.",
"profile_settings": "Profile settings",
"your_account": "Your account",
- "profile": "Profile",
"security": "Security",
"activity": "Activity",
"appearance": "Appearance",
"notifications": "Notifications",
- "inbox": "Inbox",
"workspaces": "Workspaces",
"create_workspace": "Create workspace",
"invitations": "Invitations",
@@ -52,20 +53,7 @@
"created": "Created",
"subscribed": "Subscribed",
"you_do_not_have_the_permission_to_access_this_page": "You do not have the permission to access this page.",
- "failed_to_sign_out_please_try_again": "Failed to sign out. Please try again.",
- "password_changed_successfully": "Password changed successfully.",
"something_went_wrong_please_try_again": "Something went wrong. Please try again.",
- "change_password": "Change password",
- "passwords_dont_match": "Passwords don't match",
- "current_password": "Current password",
- "new_password": "New password",
- "confirm_password": "Confirm password",
- "this_field_is_required": "This field is required",
- "changing_password": "Changing password",
- "please_enter_your_password": "Please enter your password.",
- "password_length_should_me_more_than_8_characters": "Password length should me more than 8 characters.",
- "password_is_weak": "Password is weak.",
- "password_is_strong": "Password is strong.",
"load_more": "Load more",
"select_or_customize_your_interface_color_scheme": "Select or customize your interface color scheme.",
"theme": "Theme",
@@ -93,52 +81,26 @@
"theme_updated_successfully": "Theme updated successfully",
"failed_to_update_the_theme": "Failed to update the theme",
"email_notifications": "Email notifications",
- "stay_in_the_loop_on_issues_you_are_subscribed_to_enable_this_to_get_notified": "Stay in the loop on Issues you are subscribed to. Enable this to get notified.",
+ "stay_in_the_loop_on_issues_you_are_subscribed_to_enable_this_to_get_notified": "Stay in the loop on Work items you are subscribed to. Enable this to get notified.",
"email_notification_setting_updated_successfully": "Email notification setting updated successfully",
"failed_to_update_email_notification_setting": "Failed to update email notification setting",
"notify_me_when": "Notify me when",
"property_changes": "Property changes",
- "property_changes_description": "Notify me when issue's properties like assignees, priority, estimates or anything else changes.",
+ "property_changes_description": "Notify me when work items' properties like assignees, priority, estimates or anything else changes.",
"state_change": "State change",
- "state_change_description": "Notify me when the issues moves to a different state",
- "issue_completed": "Issue completed",
- "issue_completed_description": "Notify me only when an issue is completed",
+ "state_change_description": "Notify me when the work items moves to a different state",
+ "issue_completed": "Work item completed",
+ "issue_completed_description": "Notify me only when a work item is completed",
"comments": "Comments",
- "comments_description": "Notify me when someone leaves a comment on the issue",
+ "comments_description": "Notify me when someone leaves a comment on the work item",
"mentions": "Mentions",
"mentions_description": "Notify me only when someone mentions me in the comments or description",
- "create_your_workspace": "Create your workspace",
- "only_your_instance_admin_can_create_workspaces": "Only your instance admin can create workspaces",
- "only_your_instance_admin_can_create_workspaces_description": "If you know your instance admin's email address, click the button below to get in touch with them.",
- "go_back": "Go back",
- "request_instance_admin": "Request instance admin",
- "plane_logo": "Plane logo",
- "workspace_creation_disabled": "Workspace creation disabled",
- "workspace_request_subject": "Requesting a new workspace",
- "workspace_request_body": "Hi instance admin(s),\n\nPlease create a new workspace with the URL [/workspace-name] for [purpose of creating the workspace].\n\nThanks,\n{{firstName}} {{lastName}}\n{{email}}",
- "creating_workspace": "Creating workspace",
- "workspace_created_successfully": "Workspace created successfully",
- "create_workspace_page": "Create workspace page",
- "workspace_could_not_be_created_please_try_again": "Workspace could not be created. Please try again.",
- "workspace_could_not_be_created_please_try_again_description": "Some error occurred while creating workspace. Please try again.",
- "this_is_a_required_field": "This is a required field.",
- "name_your_workspace": "Name your workspace",
- "workspaces_names_can_contain_only_space_dash_and_alphanumeric_characters": "Workspaces names can contain only (' '), ('-'), ('_') and alphanumeric characters.",
- "limit_your_name_to_80_characters": "Limit your name to 80 characters.",
- "set_your_workspace_url": "Set your workspace's URL",
- "limit_your_url_to_48_characters": "Limit your URL to 48 characters.",
- "how_many_people_will_use_this_workspace": "How many people will use this workspace?",
- "how_many_people_will_use_this_workspace_description": "This will help us to determine the number of seats you need to purchase.",
- "select_a_range": "Select a range",
- "urls_can_contain_only_dash_and_alphanumeric_characters": "URLs can contain only ('-') and alphanumeric characters.",
- "something_familiar_and_recognizable_is_always_best": "Something familiar and recognizable is always best.",
- "workspace_url_is_already_taken": "Workspace URL is already taken!",
"old_password": "Old password",
"general_settings": "General settings",
"sign_out": "Sign out",
"signing_out": "Signing out",
"active_cycles": "Active cycles",
- "active_cycles_description": "Monitor cycles across projects, track high-priority issues, and zoom in cycles that need attention.",
+ "active_cycles_description": "Monitor cycles across projects, track high-priority work items, and zoom in cycles that need attention.",
"on_demand_snapshots_of_all_your_cycles": "On-demand snapshots of all your cycles",
"upgrade": "Upgrade",
"10000_feet_view": "10,000-feet view of all active cycles.",
@@ -147,19 +109,17 @@
"get_snapshot_of_each_active_cycle_description": "Track high-level metrics for all active cycles, see their state of progress, and get a sense of scope against deadlines.",
"compare_burndowns": "Compare burndowns.",
"compare_burndowns_description": "Monitor how each of your teams are performing with a peek into each cycle's burndown report.",
- "quickly_see_make_or_break_issues": "Quickly see make-or-break issues.",
- "quickly_see_make_or_break_issues_description": "Preview high-priority issues for each cycle against due dates. See all of them per cycle in one click.",
+ "quickly_see_make_or_break_issues": "Quickly see make-or-break work items.",
+ "quickly_see_make_or_break_issues_description": "Preview high-priority work items for each cycle against due dates. See all of them per cycle in one click.",
"zoom_into_cycles_that_need_attention": "Zoom into cycles that need attention.",
"zoom_into_cycles_that_need_attention_description": "Investigate the state of any cycle that doesn't conform to expectations in one click.",
"stay_ahead_of_blockers": "Stay ahead of blockers.",
"stay_ahead_of_blockers_description": "Spot challenges from one project to another and see inter-cycle dependencies that aren't obvious from any other view.",
"analytics": "Analytics",
"workspace_invites": "Workspace invites",
- "workspace_settings": "Workspace settings",
"enter_god_mode": "Enter god mode",
"workspace_logo": "Workspace logo",
- "new_issue": "New issue",
- "home": "Home",
+ "new_issue": "New work item",
"your_work": "Your work",
"drafts": "Drafts",
"projects": "Projects",
@@ -187,7 +147,7 @@
"create_project": "Create project",
"failed_to_remove_project_from_favorites": "Couldn't remove the project from favorites. Please try again.",
"project_created_successfully": "Project created successfully",
- "project_created_successfully_description": "Project created successfully. You can now start adding issues to it.",
+ "project_created_successfully_description": "Project created successfully. You can now start adding work items to it.",
"project_cover_image_alt": "Project cover image",
"name_is_required": "Name is required",
"title_should_be_less_than_255_characters": "Title should be less than 255 characters",
@@ -195,12 +155,17 @@
"project_id_must_be_at_least_1_character": "Project ID must at least be of 1 character",
"project_id_must_be_at_most_5_characters": "Project ID must at most be of 5 characters",
"project_id": "Project ID",
- "project_id_tooltip_content": "Helps you identify issues in the project uniquely. Max 5 characters.",
- "description_placeholder": "Description...",
+ "project_id_tooltip_content": "Helps you identify work items in the project uniquely. Max 5 characters.",
+ "description_placeholder": "Description",
"only_alphanumeric_non_latin_characters_allowed": "Only Alphanumeric & Non-latin characters are allowed.",
"project_id_is_required": "Project ID is required",
+ "project_id_allowed_char": "Only Alphanumeric & Non-latin characters are allowed.",
+ "project_id_min_char": "Project ID must at least be of 1 character",
+ "project_id_max_char": "Project ID must at most be of 5 characters",
+ "project_description_placeholder": "Enter project description",
"select_network": "Select network",
"lead": "Lead",
+ "date_range": "Date range",
"private": "Private",
"public": "Public",
"accessible_only_by_invite": "Accessible only by invite",
@@ -222,23 +187,22 @@
"join_the_project_to_rearrange": "Join the project to rearrange",
"drag_to_rearrange": "Drag to rearrange",
"congrats": "Congrats!",
- "project": "Project",
"open_project": "Open project",
- "issues": "Issues",
+ "issues": "Work items",
"cycles": "Cycles",
"modules": "Modules",
"pages": "Pages",
"intake": "Intake",
"time_tracking": "Time Tracking",
"work_management": "Work management",
- "projects_and_issues": "Projects and issues",
+ "projects_and_issues": "Projects and work items",
"projects_and_issues_description": "Toggle these on or off this project.",
"cycles_description": "Timebox work as you see fit per project and change frequency from one period to the next.",
"modules_description": "Group work into sub-project-like set-ups with their own leads and assignees.",
"views_description": "Save sorts, filters, and display options for later or share them.",
"pages_description": "Write anything like you write anything.",
- "intake_description": "Stay in the loop on Issues you are subscribed to. Enable this to get notified.",
- "time_tracking_description": "Track time spent on issues and projects.",
+ "intake_description": "Stay in the loop on Work items you are subscribed to. Enable this to get notified.",
+ "time_tracking_description": "Track time spent on work items and projects.",
"work_management_description": "Manage your work and projects with ease.",
"documentation": "Documentation",
"message_support": "Message support",
@@ -269,29 +233,30 @@
"back_to_home": "Back to home",
"workspace_name": "workspace-name",
"deactivate_your_account": "Deactivate your account",
- "deactivate_your_account_description": "Once deactivated, you can't be assigned issues and be billed for your workspace. To reactivate your account, you will need an invite to a workspace at this email address.",
+ "deactivate_your_account_description": "Once deactivated, you can't be assigned work items and be billed for your workspace. To reactivate your account, you will need an invite to a workspace at this email address.",
"deactivating": "Deactivating",
"confirm": "Confirm",
+ "confirming": "Confirming",
"draft_created": "Draft created",
- "issue_created_successfully": "Issue created successfully",
+ "issue_created_successfully": "Work item created successfully",
"draft_creation_failed": "Draft creation failed",
- "issue_creation_failed": "Issue creation failed",
- "draft_issue": "Draft issue",
- "issue_updated_successfully": "Issue updated successfully",
- "issue_could_not_be_updated": "Issue could not be updated",
+ "issue_creation_failed": "Work item creation failed",
+ "draft_issue": "Draft work item",
+ "issue_updated_successfully": "Work item updated successfully",
+ "issue_could_not_be_updated": "Work item could not be updated",
"create_a_draft": "Create a draft",
"save_to_drafts": "Save to Drafts",
"save": "Save",
"update": "Update",
"updating": "Updating",
- "create_new_issue": "Create new issue",
+ "create_new_issue": "Create new work item",
"editor_is_not_ready_to_discard_changes": "Editor is not ready to discard changes",
- "failed_to_move_issue_to_project": "Failed to move issue to project",
+ "failed_to_move_issue_to_project": "Failed to move work item to project",
"create_more": "Create more",
"add_to_project": "Add to project",
"discard": "Discard",
- "duplicate_issue_found": "Duplicate issue found",
- "duplicate_issues_found": "Duplicate issues found",
+ "duplicate_issue_found": "Duplicate work item found",
+ "duplicate_issues_found": "Duplicate work items found",
"no_matching_results": "No matching results",
"title_is_required": "Title is required",
"title": "Title",
@@ -309,11 +274,1877 @@
"labels": "Labels",
"create_new_label": "Create new label",
"start_date": "Start date",
+ "end_date": "End date",
"due_date": "Due date",
- "cycle": "Cycle",
"estimate": "Estimate",
- "change_parent_issue": "Change parent issue",
- "remove_parent_issue": "Remove parent issue",
+ "change_parent_issue": "Change parent work item",
+ "remove_parent_issue": "Remove parent work item",
"add_parent": "Add parent",
- "loading_members": "Loading members..."
+ "loading_members": "Loading members",
+ "view_link_copied_to_clipboard": "View link copied to clipboard.",
+ "required": "Required",
+ "optional": "Optional",
+ "Cancel": "Cancel",
+ "edit": "Edit",
+ "archive": "Archive",
+ "restor": "Restore",
+ "open_in_new_tab": "Open in new tab",
+ "delete": "Delete",
+ "deleting": "Deleting",
+ "make_a_copy": "Make a copy",
+ "move_to_project": "Move to project",
+ "good": "Good",
+ "morning": "morning",
+ "afternoon": "afternoon",
+ "evening": "evening",
+ "show_all": "Show all",
+ "show_less": "Show less",
+ "no_data_yet": "No Data yet",
+ "syncing": "Syncing",
+ "add_work_item": "Add work item",
+ "advanced_description_placeholder": "Press '/' for commands",
+ "create_work_item": "Create work item",
+ "attachments": "Attachments",
+ "declining": "Declining",
+ "declined": "Declined",
+ "decline": "Decline",
+ "unassigned": "Unassigned",
+ "work_items": "Work items",
+ "add_link": "Add link",
+ "points": "Points",
+ "no_assignee": "No assignee",
+ "no_assignees_yet": "No assignees yet",
+ "no_labels_yet": "No labels yet",
+ "ideal": "Ideal",
+ "current": "Current",
+ "no_matching_members": "No matching members",
+ "leaving": "Leaving",
+ "removing": "Removing",
+ "leave": "Leave",
+ "refresh": "Refresh",
+ "refreshing": "Refreshing",
+ "refresh_status": "Refresh status",
+ "prev": "Prev",
+ "next": "Next",
+ "re_generating": "Re-generating",
+ "re_generate": "Re-generate",
+ "re_generate_key": "Re-generate key",
+ "export": "Export",
+ "member": "{count, plural, one{# member} other{# members}}",
+
+ "project_view": {
+ "sort_by": {
+ "created_at": "Created at",
+ "updated_at": "Updated at",
+ "name": "Name"
+ }
+ },
+
+ "toast": {
+ "success": "Success!",
+ "error": "Error!"
+ },
+
+ "links": {
+ "toasts": {
+ "created": {
+ "title": "Link created",
+ "message": "The link has been successfully created"
+ },
+ "not_created": {
+ "title": "Link not created",
+ "message": "The link could not be created"
+ },
+ "updated": {
+ "title": "Link updated",
+ "message": "The link has been successfully updated"
+ },
+ "not_updated": {
+ "title": "Link not updated",
+ "message": "The link could not be updated"
+ },
+ "removed": {
+ "title": "Link removed",
+ "message": "The link has been successfully removed"
+ },
+ "not_removed": {
+ "title": "Link not removed",
+ "message": "The link could not be removed"
+ }
+ }
+ },
+
+ "home": {
+ "empty": {
+ "create_project": {
+ "title": "Create a project",
+ "description": "Most things start with a project in Plane.",
+ "cta": "Get started"
+ },
+ "invite_team": {
+ "title": "Invite your team",
+ "description": "Build, ship, and manage with coworkers.",
+ "cta": "Get them in"
+ },
+ "configure_workspace": {
+ "title": "Set up your workspace.",
+ "description": "Turn features on or off or go beyond that.",
+ "cta": "Configure this workspace"
+ },
+ "personalize_account": {
+ "title": "Make Plane yours.",
+ "description": "Choose your picture, colors, and more.",
+ "cta": "Personalize now"
+ },
+ "widgets": {
+ "title": "It's Quiet Without Widgets, Turn Them On",
+ "description": "It looks like all your widgets are turned off. Enable them\nnow to enhance your experience!",
+ "primary_button": {
+ "text": "Manage widgets"
+ }
+ }
+ },
+ "quick_links": {
+ "empty": "Save links to work things that you'd like handy.",
+ "add": "Add quick Link",
+ "title": "Quicklink",
+ "title_plural": "Quicklinks"
+ },
+ "recents": {
+ "title": "Recents",
+ "empty": {
+ "project": "Your recent projects will appear here once you visit one.",
+ "page": "Your recent pages will appear here once you visit one.",
+ "issue": "Your recent work items will appear here once you visit one.",
+ "default": "You don't have any recent items yet."
+ },
+ "filters": {
+ "all": "All items",
+ "projects": "Projects",
+ "pages": "Pages",
+ "issues": "Work items"
+ }
+ },
+ "new_at_plane": {
+ "title": "New at Plane"
+ },
+ "quick_tutorial": {
+ "title": "Quick tutorial"
+ },
+ "widget": {
+ "reordered_successfully": "Widget reordered successfully.",
+ "reordering_failed": "Error occurred while reordering widget."
+ },
+ "manage_widgets": "Manage widgets",
+ "title": "Home",
+ "star_us_on_github": "Star us on GitHub"
+ },
+
+ "link": {
+ "modal": {
+ "url": {
+ "text": "URL",
+ "required": "URL is invalid",
+ "placeholder": "Type or paste a URL"
+ },
+ "title": {
+ "text": "Display title",
+ "placeholder": "What you'd like to see this link as"
+ }
+ }
+ },
+
+ "common": {
+ "all": "All",
+ "states": "States",
+ "state": "State",
+ "state_groups": "State groups",
+ "priority": "Priority",
+ "team_project": "Team project",
+ "project": "Project",
+ "cycle": "Cycle",
+ "cycles": "Cycles",
+ "module": "Module",
+ "modules": "Modules",
+ "labels": "Labels",
+ "assignees": "Assignees",
+ "assignee": "Assignee",
+ "created_by": "Created by",
+ "none": "None",
+ "link": "Link",
+ "estimate": "Estimate",
+ "layout": "Layout",
+ "filters": "Filters",
+ "display": "Display",
+ "load_more": "Load more",
+ "activity": "Activity",
+ "analytics": "Analytics",
+ "dates": "Dates",
+ "success": "Success!",
+ "something_went_wrong": "Something went wrong",
+ "error": {
+ "label": "Error!",
+ "message": "Some error occurred. Please try again."
+ },
+ "group_by": "Group by",
+ "epic": "Epic",
+ "epics": "Epics",
+ "work_item": "Work item",
+ "sub_work_item": "Sub-work item",
+ "add": "Add",
+ "warning": "Warning",
+ "updating": "Updating",
+ "adding": "Adding",
+ "update": "Update",
+ "creating": "Creating",
+ "create": "Create",
+ "cancel": "Cancel",
+ "description": "Description",
+ "title": "Title",
+ "attachment": "Attachment",
+ "general": "General",
+ "features": "Features",
+ "automation": "Automation",
+ "project_name": "Project name",
+ "project_id": "Project ID",
+ "project_timezone": "Project Timezone",
+ "created_on": "Created on",
+ "update_project": "Update project",
+ "identifier_already_exists": "Identifier already exists",
+ "add_more": "Add more",
+ "defaults": "Defaults",
+ "add_label": "Add label",
+ "estimates": "Estimates",
+ "customize_time_range": "Customize time range",
+ "loading": "Loading",
+ "attachments": "Attachments",
+ "properties": "Properties",
+ "parent": "Parent",
+ "remove": "Remove",
+ "archiving": "Archiving",
+ "archive": "Archive",
+ "access": {
+ "public": "Public",
+ "private": "Private"
+ },
+ "done": "Done",
+ "sub_work_items": "Sub-work items",
+ "comment": "Comment",
+ "workspace_level": "Workspace level",
+ "order_by": {
+ "label": "Order by",
+ "manual": "Manual",
+ "last_created": "Last created",
+ "last_updated": "Last updated",
+ "start_date": "Start date",
+ "due_date": "Due date",
+ "asc": "Ascending",
+ "desc": "Descending",
+ "updated_on": "Updated on"
+ },
+ "sort": {
+ "asc": "Ascending",
+ "desc": "Descending",
+ "created_on": "Created on",
+ "updated_on": "Updated on"
+ },
+ "comments": "Comments",
+ "updates": "Updates",
+ "clear_all": "Clear all",
+ "copied": "Copied!",
+ "link_copied": "Link copied!",
+ "link_copied_to_clipboard": "Link copied to clipboard",
+ "copied_to_clipboard": "Work item link copied to clipboard",
+ "is_copied_to_clipboard": "Work item is copied to clipboard",
+ "no_links_added_yet": "No links added yet",
+ "add_link": "Add link",
+ "links": "Links",
+ "go_to_workspace": "Go to workspace",
+ "progress": "Progress",
+ "optional": "Optional",
+ "join": "Join",
+ "go_back": "Go back",
+ "continue": "Continue",
+ "resend": "Resend",
+ "relations": "Relations",
+ "errors": {
+ "default": {
+ "title": "Error!",
+ "message": "Something went wrong. Please try again."
+ },
+ "required": "This field is required",
+ "entity_required": "{entity} is required"
+ },
+ "update_link": "Update link",
+ "attach": "Attach",
+ "create_new": "Create new",
+ "add_existing": "Add existing",
+ "type_or_paste_a_url": "Type or paste a URL",
+ "url_is_invalid": "URL is invalid",
+ "display_title": "Display title",
+ "link_title_placeholder": "What you'd like to see this link as",
+ "url": "URL",
+ "side_peek": "Side Peek",
+ "modal": "Modal",
+ "full_screen": "Full Screen",
+ "close_peek_view": "Close the peek view",
+ "toggle_peek_view_layout": "Toggle peek view layout",
+ "options": "Options",
+ "duration": "Duration",
+ "today": "Today",
+ "week": "Week",
+ "month": "Month",
+ "quarter": "Quarter",
+ "press_for_commands": "Press '/' for commands",
+ "click_to_add_description": "Click to add description",
+ "search": {
+ "label": "Search",
+ "placeholder": "Type to search",
+ "no_matches_found": "No matches found",
+ "no_matching_results": "No matching results"
+ },
+ "actions": {
+ "edit": "Edit",
+ "make_a_copy": "Make a copy",
+ "open_in_new_tab": "Open in new tab",
+ "copy_link": "Copy link",
+ "archive": "Archive",
+ "delete": "Delete",
+ "remove_relation": "Remove relation",
+ "subscribe": "Subscribe",
+ "unsubscribe": "Unsubscribe",
+ "clear_sorting": "Clear sorting",
+ "show_weekends": "Show weekends",
+ "enable": "Enable",
+ "disable": "Disable"
+ },
+ "name": "Name",
+ "discard": "Discard",
+ "confirm": "Confirm",
+ "confirming": "Confirming",
+ "read_the_docs": "Read the docs",
+ "default": "Default",
+ "active": "Active",
+ "enabled": "Enabled",
+ "disabled": "Disabled",
+ "mandate": "Mandate",
+ "mandatory": "Mandatory",
+ "yes": "Yes",
+ "no": "No",
+ "please_wait": "Please wait",
+ "enabling": "Enabling",
+ "disabling": "Disabling",
+ "beta": "Beta",
+ "or": "or",
+ "next": "Next",
+ "back": "Back",
+ "cancelling": "Cancelling",
+ "configuring": "Configuring",
+ "clear": "Clear",
+ "import": "Import",
+ "connect": "Connect",
+ "authorizing": "Authorizing",
+ "processing": "Processing",
+ "no_data_available": "No data available",
+ "from": "from {name}",
+ "authenticated": "Authenticated",
+ "select": "Select",
+ "upgrade": "Upgrade",
+ "add_seats": "Add Seats",
+ "label": "Label",
+ "priorities": "Priorities",
+ "projects": "Projects",
+ "workspace": "Workspace",
+ "workspaces": "Workspaces",
+ "team": "Team",
+ "teams": "Teams",
+ "entity": "Entity",
+ "entities": "Entities",
+ "task": "Task",
+ "tasks": "Tasks",
+ "section": "Section",
+ "sections": "Sections",
+ "edit": "Edit",
+ "connecting": "Connecting",
+ "connected": "Connected",
+ "disconnect": "Disconnect",
+ "disconnecting": "Disconnecting",
+ "installing": "Installing",
+ "install": "Install"
+ },
+
+ "form": {
+ "title": {
+ "required": "Title is required",
+ "max_length": "Title should be less than {length} characters"
+ }
+ },
+
+ "entity": {
+ "grouping_title": "{entity} Grouping",
+ "priority": "{entity} Priority",
+ "all": "All {entity}",
+ "drop_here_to_move": "Drop here to move the {entity}",
+ "delete": {
+ "label": "Delete {entity}",
+ "success": "{entity} deleted successfully",
+ "failed": "{entity} delete failed"
+ },
+ "update": {
+ "failed": "{entity} update failed",
+ "success": "{entity} updated successfully"
+ },
+ "link_copied_to_clipboard": "{entity} link copied to clipboard",
+ "fetch": {
+ "failed": "Error fetching {entity}"
+ },
+ "add": {
+ "success": "{entity} added successfully",
+ "failed": "Error adding {entity}"
+ }
+ },
+
+ "epic": {
+ "all": "All Epics",
+ "label": "{count, plural, one {Epic} other {Epics}}",
+ "new": "New Epic",
+ "adding": "Adding epic",
+ "create": {
+ "success": "Epic created successfully"
+ },
+ "add": {
+ "press_enter": "Press 'Enter' to add another epic",
+ "label": "Add Epic"
+ },
+ "title": {
+ "label": "Epic Title",
+ "required": "Epic title is required."
+ }
+ },
+
+ "issue": {
+ "label": "{count, plural, one {Work item} other {Work items}}",
+ "all": "All Work items",
+ "edit": "Edit work item",
+ "title": {
+ "label": "Work item title",
+ "required": "Work item title is required."
+ },
+ "add": {
+ "press_enter": "Press 'Enter' to add another work item",
+ "label": "Add work item",
+ "cycle": {
+ "failed": "Work item could not be added to the cycle. Please try again.",
+ "success": "{count, plural, one {Work item} other {Work items}} added to the cycle successfully.",
+ "loading": "Adding {count, plural, one {work item} other {work items}} to the cycle"
+ },
+ "assignee": "Add assignees",
+ "start_date": "Add start date",
+ "due_date": "Add due date",
+ "parent": "Add parent work item",
+ "sub_issue": "Add sub-work item",
+ "relation": "Add relation",
+ "link": "Add link",
+ "existing": "Add existing work item"
+ },
+ "remove": {
+ "label": "Remove work item",
+ "cycle": {
+ "loading": "Removing work item from the cycle",
+ "success": "Work item removed from the cycle successfully.",
+ "failed": "Work item could not be removed from the cycle. Please try again."
+ },
+ "module": {
+ "loading": "Removing work item from the module",
+ "success": "Work item removed from the module successfully.",
+ "failed": "Work item could not be removed from the module. Please try again."
+ },
+ "parent": {
+ "label": "Remove parent work item"
+ }
+ },
+ "new": "New Work item",
+ "adding": "Adding work item",
+ "create": {
+ "success": "Work item created successfully"
+ },
+ "priority": {
+ "urgent": "Urgent",
+ "high": "High",
+ "medium": "Medium",
+ "low": "Low"
+ },
+ "display": {
+ "properties": {
+ "label": "Display Properties",
+ "id": "ID",
+ "issue_type": "Work item Type",
+ "sub_issue_count": "Sub-work item count",
+ "attachment_count": "Attachment count",
+ "created_on": "Created on",
+ "sub_issue": "Sub-work item"
+ },
+ "extra": {
+ "show_sub_issues": "Show sub-work items",
+ "show_empty_groups": "Show empty groups"
+ }
+ },
+ "layouts": {
+ "ordered_by_label": "This layout is ordered by",
+ "list": "List",
+ "kanban": "Board",
+ "calendar": "Calendar",
+ "spreadsheet": "Table",
+ "gantt": "Timeline",
+ "title": {
+ "list": "List Layout",
+ "kanban": "Board Layout",
+ "calendar": "Calendar Layout",
+ "spreadsheet": "Table Layout",
+ "gantt": "Timeline Layout"
+ }
+ },
+ "states": {
+ "active": "Active",
+ "backlog": "Backlog"
+ },
+ "comments": {
+ "placeholder": "Add comment",
+ "switch": {
+ "private": "Switch to private comment",
+ "public": "Switch to public comment"
+ },
+ "create": {
+ "success": "Comment created successfully",
+ "error": "Comment creation failed. Please try again later."
+ },
+ "update": {
+ "success": "Comment updated successfully",
+ "error": "Comment update failed. Please try again later."
+ },
+ "remove": {
+ "success": "Comment removed successfully",
+ "error": "Comment remove failed. Please try again later."
+ },
+ "upload": {
+ "error": "Asset upload failed. Please try again later."
+ }
+ },
+ "empty_state": {
+ "issue_detail": {
+ "title": "Work item does not exist",
+ "description": "The work item you are looking for does not exist, has been archived, or has been deleted.",
+ "primary_button": {
+ "text": "View other work items"
+ }
+ }
+ },
+ "sibling": {
+ "label": "Sibling work items"
+ },
+ "archive": {
+ "description": "Only completed or canceled\nwork items can be archived",
+ "label": "Archive Work item",
+ "confirm_message": "Are you sure you want to archive the work item? All your archived work items can be restored later.",
+ "success": {
+ "label": "Archive success",
+ "message": "Your archives can be found in project archives."
+ },
+ "failed": {
+ "message": "Work item could not be archived. Please try again."
+ }
+ },
+ "restore": {
+ "success": {
+ "title": "Restore success",
+ "message": "Your work item can be found in project work items."
+ },
+ "failed": {
+ "message": "Work item could not be restored. Please try again."
+ }
+ },
+ "relation": {
+ "relates_to": "Relates to",
+ "duplicate": "Duplicate of",
+ "blocked_by": "Blocked by",
+ "blocking": "Blocking"
+ },
+ "copy_link": "Copy work item link",
+ "delete": {
+ "label": "Delete work item",
+ "error": "Error deleting work item"
+ },
+ "subscription": {
+ "actions": {
+ "subscribed": "Work item subscribed successfully",
+ "unsubscribed": "Work item unsubscribed successfully"
+ }
+ },
+ "select": {
+ "error": "Please select at least one work item",
+ "empty": "No work items selected",
+ "add_selected": "Add selected work items"
+ },
+ "open_in_full_screen": "Open work item in full screen"
+ },
+
+ "attachment": {
+ "error": "File could not be attached. Try uploading again.",
+ "only_one_file_allowed": "Only one file can be uploaded at a time.",
+ "file_size_limit": "File must be of {size}MB or less in size.",
+ "drag_and_drop": "Drag and drop anywhere to upload",
+ "delete": "Delete attachment"
+ },
+
+ "label": {
+ "select": "Select label",
+ "create": {
+ "success": "Label created successfully",
+ "failed": "Label creation failed",
+ "already_exists": "Label already exists",
+ "type": "Type to add a new label"
+ }
+ },
+
+ "sub_work_item": {
+ "update": {
+ "success": "Sub-work item updated successfully",
+ "error": "Error updating sub-work item"
+ },
+ "remove": {
+ "success": "Sub-work item removed successfully",
+ "error": "Error removing sub-work item"
+ }
+ },
+
+ "view": {
+ "label": "{count, plural, one {View} other {Views}}",
+ "create": {
+ "label": "Create View"
+ },
+ "update": {
+ "label": "Update View"
+ }
+ },
+
+ "inbox_issue": {
+ "status": {
+ "pending": {
+ "title": "Pending",
+ "description": "Pending"
+ },
+ "declined": {
+ "title": "Declined",
+ "description": "Declined"
+ },
+ "snoozed": {
+ "title": "Snoozed",
+ "description": "{days, plural, one{# day} other{# days}} to go"
+ },
+ "accepted": {
+ "title": "Accepted",
+ "description": "Accepted"
+ },
+ "duplicate": {
+ "title": "Duplicate",
+ "description": "Duplicate"
+ }
+ },
+ "modals": {
+ "decline": {
+ "title": "Decline work item",
+ "content": "Are you sure you want to decline work item {value}?"
+ },
+ "delete": {
+ "title": "Delete work item",
+ "content": "Are you sure you want to delete work item {value}?",
+ "success": "Work item deleted successfully"
+ }
+ },
+ "errors": {
+ "snooze_permission": "Only project admins can snooze/Un-snooze work items",
+ "accept_permission": "Only project admins can accept work items",
+ "decline_permission": "Only project admins can deny work items"
+ },
+ "actions": {
+ "accept": "Accept",
+ "decline": "Decline",
+ "snooze": "Snooze",
+ "unsnooze": "Un snooze",
+ "copy": "Copy work item link",
+ "delete": "Delete",
+ "open": "Open work item",
+ "mark_as_duplicate": "Mark as duplicate",
+ "move": "Move {value} to project work items"
+ },
+ "source": {
+ "in-app": "in-app"
+ },
+ "order_by": {
+ "created_at": "Created at",
+ "updated_at": "Updated at",
+ "id": "ID"
+ },
+ "label": "Intake",
+ "page_label": "{workspace} - Intake",
+ "modal": {
+ "title": "Create intake work item"
+ },
+ "tabs": {
+ "open": "Open",
+ "closed": "Closed"
+ },
+ "empty_state": {
+ "sidebar_open_tab": {
+ "title": "No open work items",
+ "description": "Find open work items here. Create new work item."
+ },
+ "sidebar_closed_tab": {
+ "title": "No closed work items",
+ "description": "All the work items whether accepted or declined can be found here."
+ },
+ "sidebar_filter": {
+ "title": "No matching work items",
+ "description": "No work item matches filter applied in intake. Create a new work item."
+ },
+ "detail": {
+ "title": "Select a work item to view its details."
+ }
+ }
+ },
+
+ "workspace_creation": {
+ "heading": "Create your workspace",
+ "subheading": "To start using Plane, you need to create or join a workspace.",
+ "form": {
+ "name": {
+ "label": "Name your workspace",
+ "placeholder": "Something familiar and recognizable is always best."
+ },
+ "url": {
+ "label": "Set your workspace's URL",
+ "placeholder": "Type or paste a URL",
+ "edit_slug": "You can only edit the slug of the URL"
+ },
+ "organization_size": {
+ "label": "How many people will use this workspace?",
+ "placeholder": "Select a range"
+ }
+ },
+ "errors": {
+ "creation_disabled": {
+ "title": "Only your instance admin can create workspaces",
+ "description": "If you know your instance admin's email address, click the button below to get in touch with them.",
+ "request_button": "Request instance admin"
+ },
+ "validation": {
+ "name_alphanumeric": "Workspaces names can contain only (' '), ('-'), ('_') and alphanumeric characters.",
+ "name_length": "Limit your name to 80 characters.",
+ "url_alphanumeric": "URLs can contain only ('-') and alphanumeric characters.",
+ "url_length": "Limit your URL to 48 characters.",
+ "url_already_taken": "Workspace URL is already taken!"
+ }
+ },
+ "request_email": {
+ "subject": "Requesting a new workspace",
+ "body": "Hi instance admin(s),\n\nPlease create a new workspace with the URL [/workspace-name] for [purpose of creating the workspace].\n\nThanks,\n{firstName} {lastName}\n{email}"
+ },
+ "button": {
+ "default": "Create workspace",
+ "loading": "Creating workspace"
+ },
+ "toast": {
+ "success": {
+ "title": "Success",
+ "message": "Workspace created successfully"
+ },
+ "error": {
+ "title": "Error",
+ "message": "Workspace could not be created. Please try again."
+ }
+ }
+ },
+
+ "workspace_dashboard": {
+ "empty_state": {
+ "general": {
+ "title": "Overview of your projects, activity, and metrics",
+ "description": "Welcome to Plane, we are excited to have you here. Create your first project and track your work items, and this page will transform into a space that helps you progress. Admins will also see items which help their team progress.",
+ "primary_button": {
+ "text": "Build your first project",
+ "comic": {
+ "title": "Everything starts with a project in Plane",
+ "description": "A project could be a product's roadmap, a marketing campaign, or launching a new car."
+ }
+ }
+ }
+ }
+ },
+
+ "workspace_analytics": {
+ "label": "Analytics",
+ "page_label": "{workspace} - Analytics",
+ "open_tasks": "Total open tasks",
+ "error": "There was some error in fetching the data.",
+ "work_items_closed_in": "Work items closed in",
+ "selected_projects": "Selected projects",
+ "total_members": "Total members",
+ "total_cycles": "Total cycles",
+ "total_modules": "Total modules",
+ "pending_work_items": {
+ "title": "Pending work items",
+ "empty_state": "Analysis of pending work items by co-workers appears here."
+ },
+ "work_items_closed_in_a_year": {
+ "title": "Work items closed in a year",
+ "empty_state": "Close work items to view analysis of the same in the form of a graph."
+ },
+ "most_work_items_created": {
+ "title": "Most work items created",
+ "empty_state": "Co-workers and the number of work items created by them appears here."
+ },
+ "most_work_items_closed": {
+ "title": "Most work items closed",
+ "empty_state": "Co-workers and the number of work items closed by them appears here."
+ },
+ "tabs": {
+ "scope_and_demand": "Scope and Demand",
+ "custom": "Custom Analytics"
+ },
+ "empty_state": {
+ "general": {
+ "title": "Track progress, workloads, and allocations. Spot trends, remove blockers, and move work faster",
+ "description": "See scope versus demand, estimates, and scope creep. Get performance by team members and teams, and make sure your project runs on time.",
+ "primary_button": {
+ "text": "Start your first project",
+ "comic": {
+ "title": "Analytics works best with Cycles + Modules",
+ "description": "First, timebox your work items into Cycles and, if you can, group work items that span more than a cycle into Modules. Check out both on the left nav."
+ }
+ }
+ }
+ }
+ },
+
+ "workspace_projects": {
+ "label": "{count, plural, one {Project} other {Projects}}",
+ "create": {
+ "label": "Add Project"
+ },
+ "network": {
+ "label": "Network",
+ "private": {
+ "title": "Private",
+ "description": "Accessible only by invite"
+ },
+ "public": {
+ "title": "Public",
+ "description": "Anyone in the workspace except Guests can join"
+ }
+ },
+ "error": {
+ "permission": "You don't have permission to perform this action.",
+ "cycle_delete": "Failed to delete cycle",
+ "module_delete": "Failed to delete module",
+ "issue_delete": "Failed to delete work item"
+ },
+ "state": {
+ "backlog": "Backlog",
+ "unstarted": "Unstarted",
+ "started": "Started",
+ "completed": "Completed",
+ "cancelled": "Cancelled"
+ },
+ "sort": {
+ "manual": "Manual",
+ "name": "Name",
+ "created_at": "Created date",
+ "members_length": "Number of members"
+ },
+ "scope": {
+ "my_projects": "My projects",
+ "archived_projects": "Archived"
+ },
+ "common": {
+ "months_count": "{months, plural, one{# month} other{# months}}"
+ },
+ "empty_state": {
+ "general": {
+ "title": "No active projects",
+ "description": "Think of each project as the parent for goal-oriented work. Projects are where Jobs, Cycles, and Modules live and, along with your colleagues, help you achieve that goal. Create a new project or filter for archived projects.",
+ "primary_button": {
+ "text": "Start your first project",
+ "comic": {
+ "title": "Everything starts with a project in Plane",
+ "description": "A project could be a product's roadmap, a marketing campaign, or launching a new car."
+ }
+ }
+ },
+ "no_projects": {
+ "title": "No project",
+ "description": "To create work items or manage your work, you need to create a project or be a part of one.",
+ "primary_button": {
+ "text": "Start your first project",
+ "comic": {
+ "title": "Everything starts with a project in Plane",
+ "description": "A project could be a product's roadmap, a marketing campaign, or launching a new car."
+ }
+ }
+ },
+ "filter": {
+ "title": "No matching projects",
+ "description": "No projects detected with the matching criteria. \n Create a new project instead."
+ },
+ "search": {
+ "description": "No projects detected with the matching criteria.\nCreate a new project instead"
+ }
+ }
+ },
+
+ "workspace_views": {
+ "add_view": "Add view",
+ "empty_state": {
+ "all-issues": {
+ "title": "No work items in the project",
+ "description": "First project done! Now, slice your work into trackable pieces with work items. Let's go!",
+ "primary_button": {
+ "text": "Create new work item"
+ }
+ },
+ "assigned": {
+ "title": "No work items yet",
+ "description": "Work items assigned to you can be tracked from here.",
+ "primary_button": {
+ "text": "Create new work item"
+ }
+ },
+ "created": {
+ "title": "No work items yet",
+ "description": "All work items created by you come here, track them here directly.",
+ "primary_button": {
+ "text": "Create new work item"
+ }
+ },
+ "subscribed": {
+ "title": "No work items yet",
+ "description": "Subscribe to work items you are interested in, track all of them here."
+ },
+ "custom-view": {
+ "title": "No work items yet",
+ "description": "Work items that applies to the filters, track all of them here."
+ }
+ }
+ },
+
+ "workspace_settings": {
+ "label": "Workspace settings",
+ "page_label": "{workspace} - General settings",
+ "key_created": "Key created",
+ "copy_key": "Copy and save this secret key in Plane Pages. You can't see this key after you hit Close. A CSV file containing the key has been downloaded.",
+ "token_copied": "Token copied to clipboard.",
+ "settings": {
+ "general": {
+ "title": "General",
+ "upload_logo": "Upload logo",
+ "edit_logo": "Edit logo",
+ "name": "Workspace name",
+ "company_size": "Company size",
+ "url": "Workspace URL",
+ "update_workspace": "Update workspace",
+ "delete_workspace": "Delete workspace",
+ "delete_workspace_description": "When deleting a workspace, all of the data and resources within that workspace will be permanently removed and cannot be recovered.",
+ "delete_btn": "Delete my workspace",
+ "errors": {
+ "name": {
+ "required": "Name is required",
+ "max_length": "Workspace name should not exceed 80 characters"
+ },
+ "company_size": {
+ "required": "Company size is required"
+ }
+ }
+ },
+ "members": {
+ "title": "Members",
+ "add_member": "Add member",
+ "invitations_sent_successfully": "Invitations sent successfully",
+ "leave_confirmation": "Are you sure you want to leave the workspace? You will no longer have access to this workspace. This action cannot be undone.",
+ "details": {
+ "full_name": "Full name",
+ "display_name": "Display name",
+ "email_address": "Email address",
+ "account_type": "Account type",
+ "authentication": "Authentication",
+ "joining_date": "Joining date"
+ },
+ "modal": {
+ "title": "Invite people to collaborate",
+ "description": "Invite people to collaborate on your workspace.",
+ "button": "Send invitations",
+ "button_loading": "Sending invitations",
+ "placeholder": "[email protected]",
+ "errors": {
+ "required": "We need an email address to invite them.",
+ "invalid": "Email is invalid"
+ }
+ }
+ },
+ "billing_and_plans": {
+ "title": "Billing & Plans",
+ "current_plan": "Current plan",
+ "free_plan": "You are currently using the free plan",
+ "view_plans": "View plans"
+ },
+ "exports": {
+ "title": "Exports",
+ "exporting": "Exporting",
+ "previous_exports": "Previous exports",
+ "export_separate_files": "Export the data into separate files",
+ "modal": {
+ "title": "Export to",
+ "toasts": {
+ "success": {
+ "title": "Export successful",
+ "message": "You will be able to download the exported {entity} from the previous export."
+ },
+ "error": {
+ "title": "Export failed",
+ "message": "Export was unsuccessful. Please try again."
+ }
+ }
+ }
+ },
+ "webhooks": {
+ "title": "Webhooks",
+ "add_webhook": "Add webhook",
+ "modal": {
+ "title": "Create webhook",
+ "details": "Webhook details",
+ "payload": "Payload URL",
+ "question": "Which events would you like to trigger this webhook?",
+ "error": "URL is required"
+ },
+ "secret_key": {
+ "title": "Secret key",
+ "message": "Generate a token to sign-in to the webhook payload"
+ },
+ "options": {
+ "all": "Send me everything",
+ "individual": "Select individual events"
+ },
+ "toasts": {
+ "created": {
+ "title": "Webhook created",
+ "message": "The webhook has been successfully created"
+ },
+ "not_created": {
+ "title": "Webhook not created",
+ "message": "The webhook could not be created"
+ },
+ "updated": {
+ "title": "Webhook updated",
+ "message": "The webhook has been successfully updated"
+ },
+ "not_updated": {
+ "title": "Webhook not updated",
+ "message": "The webhook could not be updated"
+ },
+ "removed": {
+ "title": "Webhook removed",
+ "message": "The webhook has been successfully removed"
+ },
+ "not_removed": {
+ "title": "Webhook not removed",
+ "message": "The webhook could not be removed"
+ },
+ "secret_key_copied": {
+ "message": "Secret key copied to clipboard."
+ },
+ "secret_key_not_copied": {
+ "message": "Error occurred while copying secret key."
+ }
+ }
+ },
+ "api_tokens": {
+ "title": "API Tokens",
+ "add_token": "Add API token",
+ "create_token": "Create token",
+ "never_expires": "Never expires",
+ "generate_token": "Generate token",
+ "generating": "Generating",
+ "delete": {
+ "title": "Delete API token",
+ "description": "Any application using this token will no longer have the access to Plane data. This action cannot be undone.",
+ "success": {
+ "title": "Success!",
+ "message": "The API token has been successfully deleted"
+ },
+ "error": {
+ "title": "Error!",
+ "message": "The API token could not be deleted"
+ }
+ }
+ }
+ },
+ "empty_state": {
+ "api_tokens": {
+ "title": "No API tokens created",
+ "description": "Plane APIs can be used to integrate your data in Plane with any external system. Create a token to get started."
+ },
+ "webhooks": {
+ "title": "No webhooks added",
+ "description": "Create webhooks to receive real-time updates and automate actions."
+ },
+ "exports": {
+ "title": "No exports yet",
+ "description": "Anytime you export, you will also have a copy here for reference."
+ },
+ "imports": {
+ "title": "No imports yet",
+ "description": "Find all your previous imports here and download them."
+ }
+ }
+ },
+
+ "profile": {
+ "label": "Profile",
+ "page_label": "Your work",
+ "work": "Work",
+ "details": {
+ "joined_on": "Joined on",
+ "time_zone": "Timezone"
+ },
+ "stats": {
+ "workload": "Workload",
+ "overview": "Overview",
+ "created": "Work items created",
+ "assigned": "Work items assigned",
+ "subscribed": "Work items subscribed",
+ "state_distribution": {
+ "title": "Work items by state",
+ "empty": "Create work items to view the them by states in the graph for better analysis."
+ },
+ "priority_distribution": {
+ "title": "Work items by Priority",
+ "empty": "Create work items to view the them by priority in the graph for better analysis."
+ },
+ "recent_activity": {
+ "title": "Recent activity",
+ "empty": "We couldn't find data. Kindly view your inputs",
+ "button": "Download today's activity",
+ "button_loading": "Downloading"
+ }
+ },
+ "actions": {
+ "profile": "Profile",
+ "security": "Security",
+ "activity": "Activity",
+ "appearance": "Appearance",
+ "notifications": "Notifications"
+ },
+ "tabs": {
+ "summary": "Summary",
+ "assigned": "Assigned",
+ "created": "Created",
+ "subscribed": "Subscribed",
+ "activity": "Activity"
+ },
+ "empty_state": {
+ "activity": {
+ "title": "No activities yet",
+ "description": "Get started by creating a new work item! Add details and properties to it. Explore more in Plane to see your activity."
+ },
+ "assigned": {
+ "title": "No work items are assigned to you",
+ "description": "Work items assigned to you can be tracked from here."
+ },
+ "created": {
+ "title": "No work items yet",
+ "description": "All work items created by you come here, track them here directly."
+ },
+ "subscribed": {
+ "title": "No work items yet",
+ "description": "Subscribe to work items you are interested in, track all of them here."
+ }
+ }
+ },
+
+ "project_settings": {
+ "general": {
+ "enter_project_id": "Enter project ID",
+ "please_select_a_timezone": "Please select a timezone",
+ "archive_project": {
+ "title": "Archive project",
+ "description": "Archiving a project will unlist your project from your side navigation although you will still be able to access it from your projects page. You can restore the project or delete it whenever you want.",
+ "button": "Archive project"
+ },
+ "delete_project": {
+ "title": "Delete project",
+ "description": "When deleting a project, all of the data and resources within that project will be permanently removed and cannot be recovered.",
+ "button": "Delete my project"
+ },
+ "toast": {
+ "success": "Project updated successfully",
+ "error": "Project could not be updated. Please try again."
+ }
+ },
+ "members": {
+ "label": "Members",
+ "project_lead": "Project lead",
+ "default_assignee": "Default assignee",
+ "guest_super_permissions": {
+ "title": "Grant view access to all work items for guest users:",
+ "sub_heading": "This will allow guests to have view access to all the project work items."
+ },
+ "invite_members": {
+ "title": "Invite members",
+ "sub_heading": "Invite members to work on your project.",
+ "select_co_worker": "Select co-worker"
+ }
+ },
+ "states": {
+ "describe_this_state_for_your_members": "Describe this state for your members."
+ },
+ "labels": {
+ "label_title": "Label title",
+ "label_title_is_required": "Label title is required",
+ "label_max_char": "Label name should not exceed 255 characters",
+ "toast": {
+ "error": "Error while updating the label"
+ }
+ },
+ "estimates": {
+ "title": "Enable estimates for my project",
+ "description": "They help you in communicating complexity and workload of the team."
+ },
+ "automations": {
+ "label": "Automations",
+ "auto-archive": {
+ "title": "Auto-archive closed work items",
+ "description": "Plane will auto archive work items that have been completed or canceled.",
+ "duration": "Auto-archive work items that are closed for"
+ },
+ "auto-close": {
+ "title": "Auto-close work items",
+ "description": "Plane will automatically close work items that haven't been completed or canceled.",
+ "duration": "Auto-close work items that are inactive for",
+ "auto_close_status": "Auto-close status"
+ }
+ },
+
+ "empty_state": {
+ "labels": {
+ "title": "No labels yet",
+ "description": "Create labels to help organize and filter work items in you project."
+ },
+ "estimates": {
+ "title": "No estimate systems yet",
+ "description": "Create a set of estimates to communicate the amount of work per work item.",
+ "primary_button": "Add estimate system"
+ }
+ }
+ },
+
+ "project_cycles": {
+ "add_cycle": "Add cycle",
+ "more_details": "More details",
+ "cycle": "Cycle",
+ "update_cycle": "Update cycle",
+ "create_cycle": "Create cycle",
+ "no_matching_cycles": "No matching cycles",
+ "remove_filters_to_see_all_cycles": "Remove the filters to see all cycles",
+ "remove_search_criteria_to_see_all_cycles": "Remove the search criteria to see all cycles",
+ "only_completed_cycles_can_be_archived": "Only completed cycles can be archived",
+ "active_cycle": {
+ "label": "Active cycle",
+ "progress": "Progress",
+ "chart": "Burndown chart",
+ "priority_issue": "Priority work items",
+ "assignees": "Assignees",
+ "issue_burndown": "Work item burndown",
+ "ideal": "Ideal",
+ "current": "Current",
+ "labels": "Labels"
+ },
+ "upcoming_cycle": {
+ "label": "Upcoming cycle"
+ },
+ "completed_cycle": {
+ "label": "Completed cycle"
+ },
+ "status": {
+ "days_left": "Days left",
+ "completed": "Completed",
+ "yet_to_start": "Yet to start",
+ "in_progress": "In progress",
+ "draft": "Draft"
+ },
+ "action": {
+ "restore": {
+ "title": "Restore cycle",
+ "success": {
+ "title": "Cycle restored",
+ "description": "The cycle has been restored."
+ },
+ "failed": {
+ "title": "Cycle restore failed",
+ "description": "The cycle could not be restored. Please try again."
+ }
+ },
+ "favorite": {
+ "loading": "Adding cycle to favorites",
+ "success": {
+ "description": "Cycle added to favorites.",
+ "title": "Success!"
+ },
+ "failed": {
+ "description": "Couldn't add the cycle to favorites. Please try again.",
+ "title": "Error!"
+ }
+ },
+ "unfavorite": {
+ "loading": "Removing cycle from favorites",
+ "success": {
+ "description": "Cycle removed from favorites.",
+ "title": "Success!"
+ },
+ "failed": {
+ "description": "Couldn't remove the cycle from favorites. Please try again.",
+ "title": "Error!"
+ }
+ },
+ "update": {
+ "loading": "Updating cycle",
+ "success": {
+ "description": "Cycle updated successfully.",
+ "title": "Success!"
+ },
+ "failed": {
+ "description": "Error updating the cycle. Please try again.",
+ "title": "Error!"
+ },
+ "error": {
+ "already_exists": "You already have a cycle on the given dates, if you want to create a draft cycle, you can do that by removing both the dates."
+ }
+ }
+ },
+ "empty_state": {
+ "general": {
+ "title": "Group and timebox your work in Cycles.",
+ "description": "Break work down by timeboxed chunks, work backwards from your project deadline to set dates, and make tangible progress as a team.",
+ "primary_button": {
+ "text": "Set your first cycle",
+ "comic": {
+ "title": "Cycles are repetitive time-boxes.",
+ "description": "A sprint, an iteration, and or any other term you use for weekly or fortnightly tracking of work is a cycle."
+ }
+ }
+ },
+ "no_issues": {
+ "title": "No work items added to the cycle",
+ "description": "Add or create work items you wish to timebox and deliver within this cycle",
+ "primary_button": {
+ "text": "Create new work item"
+ },
+ "secondary_button": {
+ "text": "Add existing work item"
+ }
+ },
+ "completed_no_issues": {
+ "title": "No work items in the cycle",
+ "description": "No work items in the cycle. Work items are either transferred or hidden. To see hidden work items if any, update your display properties accordingly."
+ },
+ "active": {
+ "title": "No active cycle",
+ "description": "An active cycle includes any period that encompasses today's date within its range. Find the progress and details of the active cycle here."
+ },
+ "archived": {
+ "title": "No archived cycles yet",
+ "description": "To tidy up your project, archive completed cycles. Find them here once archived."
+ }
+ }
+ },
+
+ "project_issues": {
+ "empty_state": {
+ "no_issues": {
+ "title": "Create a work item and assign it to someone, even yourself",
+ "description": "Think of work items as jobs, tasks, work, or JTBD. Which we like. A work item and its sub-work items are usually time-based actionables assigned to members of your team. Your team creates, assigns, and completes work items to move your project towards its goal.",
+ "primary_button": {
+ "text": "Create your first work item",
+ "comic": {
+ "title": "Work items are building blocks in Plane.",
+ "description": "Redesign the Plane UI, Rebrand the company, or Launch the new fuel injection system are examples of work items that likely have sub-work items."
+ }
+ }
+ },
+ "no_archived_issues": {
+ "title": "No archived work items yet",
+ "description": "Manually or through automation, you can archive work items that are completed or cancelled. Find them here once archived.",
+ "primary_button": {
+ "text": "Set automation"
+ }
+ },
+ "issues_empty_filter": {
+ "title": "No work items found matching the filters applied",
+ "secondary_button": {
+ "text": "Clear all filters"
+ }
+ }
+ }
+ },
+
+ "project_module": {
+ "add_module": "Add Module",
+ "update_module": "Update Module",
+ "create_module": "Create Module",
+ "archive_module": "Archive Module",
+ "restore_module": "Restore Module",
+ "delete_module": "Delete module",
+ "empty_state": {
+ "general": {
+ "title": "Map your project milestones to Modules and track aggregated work easily.",
+ "description": "A group of work items that belong to a logical, hierarchical parent form a module. Think of them as a way to track work by project milestones. They have their own periods and deadlines as well as analytics to help you see how close or far you are from a milestone.",
+ "primary_button": {
+ "text": "Build your first module",
+ "comic": {
+ "title": "Modules help group work by hierarchy.",
+ "description": "A cart module, a chassis module, and a warehouse module are all good example of this grouping."
+ }
+ }
+ },
+ "no_issues": {
+ "title": "No work items in the module",
+ "description": "Create or add work items which you want to accomplish as part of this module",
+ "primary_button": {
+ "text": "Create new work items"
+ },
+ "secondary_button": {
+ "text": "Add an existing work item"
+ }
+ },
+ "archived": {
+ "title": "No archived Modules yet",
+ "description": "To tidy up your project, archive completed or cancelled modules. Find them here once archived."
+ },
+ "sidebar": {
+ "in_active": "This module isn't active yet.",
+ "invalid_date": "Invalid date. Please enter valid date."
+ }
+ },
+ "quick_actions": {
+ "archive_module": "Archive module",
+ "archive_module_description": "Only completed or canceled\nmodule can be archived.",
+ "delete_module": "Delete module"
+ },
+ "toast": {
+ "copy": {
+ "success": "Module link copied to clipboard"
+ },
+ "delete": {
+ "success": "Module deleted successfully",
+ "error": "Failed to delete module"
+ }
+ }
+ },
+
+ "project_views": {
+ "empty_state": {
+ "general": {
+ "title": "Save filtered views for your project. Create as many as you need",
+ "description": "Views are a set of saved filters that you use frequently or want easy access to. All your colleagues in a project can see everyone’s views and choose whichever suits their needs best.",
+ "primary_button": {
+ "text": "Create your first view",
+ "comic": {
+ "title": "Views work atop Work item properties.",
+ "description": "You can create a view from here with as many properties as filters as you see fit."
+ }
+ }
+ },
+ "filter": {
+ "title": "No matching views",
+ "description": "No views match the search criteria. \n Create a new view instead."
+ }
+ }
+ },
+
+ "project_page": {
+ "empty_state": {
+ "general": {
+ "title": "Write a note, a doc, or a full knowledge base. Get Galileo, Plane's AI assistant, to help you get started",
+ "description": "Pages are thoughts potting space in Plane. Take down meeting notes, format them easily, embed work items, lay them out using a library of components, and keep them all in your project's context. To make short work of any doc, invoke Galileo, Plane's AI, with a shortcut or the click of a button.",
+ "primary_button": {
+ "text": "Create your first page"
+ }
+ },
+ "private": {
+ "title": "No private pages yet",
+ "description": "Keep your private thoughts here. When you're ready to share, the team's just a click away.",
+ "primary_button": {
+ "text": "Create your first page"
+ }
+ },
+ "public": {
+ "title": "No public pages yet",
+ "description": "See pages shared with everyone in your project right here.",
+ "primary_button": {
+ "text": "Create your first page"
+ }
+ },
+ "archived": {
+ "title": "No archived pages yet",
+ "description": "Archive pages not on your radar. Access them here when needed."
+ }
+ }
+ },
+
+ "command_k": {
+ "empty_state": {
+ "search": {
+ "title": "No results found"
+ }
+ }
+ },
+
+ "issue_relation": {
+ "empty_state": {
+ "search": {
+ "title": "No matching work items found"
+ },
+ "no_issues": {
+ "title": "No work items found"
+ }
+ }
+ },
+
+ "issue_comment": {
+ "empty_state": {
+ "general": {
+ "title": "No comments yet",
+ "description": "Comments can be used as a discussion and follow-up space for the work items"
+ }
+ }
+ },
+
+ "notification": {
+ "label": "Inbox",
+ "page_label": "{workspace} - Inbox",
+ "options": {
+ "mark_all_as_read": "Mark all as read",
+ "mark_read": "Mark as read",
+ "mark_unread": "Mark as unread",
+ "refresh": "Refresh",
+ "filters": "Inbox Filters",
+ "show_unread": "Show unread",
+ "show_snoozed": "Show snoozed",
+ "show_archived": "Show archived",
+ "mark_archive": "Archive",
+ "mark_unarchive": "Un archive",
+ "mark_snooze": "Snooze",
+ "mark_unsnooze": "Un snooze"
+ },
+ "toasts": {
+ "read": "Notification marked as read",
+ "unread": "Notification marked as unread",
+ "archived": "Notification marked as archived",
+ "unarchived": "Notification marked as un archived",
+ "snoozed": "Notification snoozed",
+ "unsnoozed": "Notification un snoozed"
+ },
+ "empty_state": {
+ "detail": {
+ "title": "Select to view details."
+ },
+ "all": {
+ "title": "No work items assigned",
+ "description": "Updates for work items assigned to you can be \n seen here"
+ },
+ "mentions": {
+ "title": "No work items assigned",
+ "description": "Updates for work items assigned to you can be \n seen here"
+ }
+ },
+ "tabs": {
+ "all": "All",
+ "mentions": "Mentions"
+ },
+ "filter": {
+ "assigned": "Assigned to me",
+ "created": "Created by me",
+ "subscribed": "Subscribed by me"
+ },
+ "snooze": {
+ "1_day": "1 day",
+ "3_days": "3 days",
+ "5_days": "5 days",
+ "1_week": "1 week",
+ "2_weeks": "2 weeks",
+ "custom": "Custom"
+ }
+ },
+
+ "active_cycle": {
+ "empty_state": {
+ "progress": {
+ "title": "Add work items to the cycle to view it's progress"
+ },
+ "chart": {
+ "title": "Add work items to the cycle to view the burndown chart."
+ },
+ "priority_issue": {
+ "title": "Observe high priority work items tackled in the cycle at a glance."
+ },
+ "assignee": {
+ "title": "Add assignees to work items to see a breakdown of work by assignees."
+ },
+ "label": {
+ "title": "Add labels to work items to see the breakdown of work by labels."
+ }
+ }
+ },
+
+ "disabled_project": {
+ "empty_state": {
+ "inbox": {
+ "title": "Intake is not enabled for the project.",
+ "description": "Intake helps you manage incoming requests to your project and add them as work items in your workflow. Enable intake from project settings to manage requests.",
+ "primary_button": {
+ "text": "Manage features"
+ }
+ },
+ "cycle": {
+ "title": "Cycles is not enabled for this project.",
+ "description": "Break work down by timeboxed chunks, work backwards from your project deadline to set dates, and make tangible progress as a team. Enable the cycles feature for your project to start using them.",
+ "primary_button": {
+ "text": "Manage features"
+ }
+ },
+ "module": {
+ "title": "Modules are not enabled for the project.",
+ "description": "Modules are the building blocks of your project. Enable modules from project settings to start using them.",
+ "primary_button": {
+ "text": "Manage features"
+ }
+ },
+ "page": {
+ "title": "Pages are not enabled for the project.",
+ "description": "Pages are the building blocks of your project. Enable pages from project settings to start using them.",
+ "primary_button": {
+ "text": "Manage features"
+ }
+ },
+ "view": {
+ "title": "Views are not enabled for the project.",
+ "description": "Views are the building blocks of your project. Enable views from project settings to start using them.",
+ "primary_button": {
+ "text": "Manage features"
+ }
+ }
+ }
+ },
+ "workspace_draft_issues": {
+ "draft_an_issue": "Draft a work item",
+ "empty_state": {
+ "title": "Half-written work items, and soon, comments will show up here.",
+ "description": "To try this out, start adding a work item and leave it mid-way or create your first draft below. 😉",
+ "primary_button": {
+ "text": "Create your first draft"
+ }
+ },
+ "delete_modal": {
+ "title": "Delete draft",
+ "description": "Are you sure you want to delete this draft? This can't be undone."
+ },
+ "toasts": {
+ "created": {
+ "success": "Draft created",
+ "error": "Work item could not be created. Please try again."
+ },
+ "deleted": {
+ "success": "Draft deleted"
+ }
+ }
+ },
+
+ "stickies": {
+ "title": "Your stickies",
+ "placeholder": "click to type here",
+ "all": "All stickies",
+ "no-data": "Jot down an idea, capture an aha, or record a brainwave. Add a sticky to get started.",
+ "add": "Add sticky",
+ "search_placeholder": "Search by title",
+ "delete": "Delete sticky",
+ "delete_confirmation": "Are you sure you want to delete this sticky?",
+ "empty_state": {
+ "simple": "Jot down an idea, capture an aha, or record a brainwave. Add a sticky to get started.",
+ "general": {
+ "title": "Stickies are quick notes and to-dos you take down on the fly.",
+ "description": "Capture your thoughts and ideas effortlessly by creating stickies that you can access anytime and from anywhere.",
+ "primary_button": {
+ "text": "Add sticky"
+ }
+ },
+ "search": {
+ "title": "That doesn't match any of your stickies.",
+ "description": "Try a different term or let us know\nif you are sure your search is right. ",
+ "primary_button": {
+ "text": "Add sticky"
+ }
+ }
+ },
+ "toasts": {
+ "errors": {
+ "wrong_name": "The sticky name cannot be longer than 100 characters.",
+ "already_exists": "There already exists a sticky with no description"
+ },
+ "created": {
+ "title": "Sticky created",
+ "message": "The sticky has been successfully created"
+ },
+ "not_created": {
+ "title": "Sticky not created",
+ "message": "The sticky could not be created"
+ },
+ "updated": {
+ "title": "Sticky updated",
+ "message": "The sticky has been successfully updated"
+ },
+ "not_updated": {
+ "title": "Sticky not updated",
+ "message": "The sticky could not be updated"
+ },
+ "removed": {
+ "title": "Sticky removed",
+ "message": "The sticky has been successfully removed"
+ },
+ "not_removed": {
+ "title": "Sticky not removed",
+ "message": "The sticky could not be removed"
+ }
+ }
+ },
+
+ "role_details": {
+ "guest": {
+ "title": "Guest",
+ "description": "External members of organizations can be invited as guests."
+ },
+ "member": {
+ "title": "Member",
+ "description": "Ability to read, write, edit, and delete entities inside projects, cycles, and modules"
+ },
+ "admin": {
+ "title": "Admin",
+ "description": "All permissions set to true within the workspace."
+ }
+ },
+
+ "user_roles": {
+ "product_or_project_manager": "Product / Project Manager",
+ "development_or_engineering": "Development / Engineering",
+ "founder_or_executive": "Founder / Executive",
+ "freelancer_or_consultant": "Freelancer / Consultant",
+ "marketing_or_growth": "Marketing / Growth",
+ "sales_or_business_development": "Sales / Business Development",
+ "support_or_operations": "Support / Operations",
+ "student_or_professor": "Student / Professor",
+ "human_resources": "Human / Resources",
+ "other": "Other"
+ },
+
+ "importer": {
+ "github": {
+ "title": "Github",
+ "description": "Import work items from GitHub repositories and sync them."
+ },
+ "jira": {
+ "title": "Jira",
+ "description": "Import work items and epics from Jira projects and epics."
+ }
+ },
+
+ "exporter": {
+ "csv": {
+ "title": "CSV",
+ "description": "Export work items to a CSV file.",
+ "short_description": "Export as csv"
+ },
+ "excel": {
+ "title": "Excel",
+ "description": "Export work items to a Excel file.",
+ "short_description": "Export as excel"
+ },
+ "xlsx": {
+ "title": "Excel",
+ "description": "Export work items to a Excel file.",
+ "short_description": "Export as excel"
+ },
+ "json": {
+ "title": "JSON",
+ "description": "Export work items to a JSON file.",
+ "short_description": "Export as json"
+ }
+ },
+ "default_global_view": {
+ "all_issues": "All work items",
+ "assigned": "Assigned",
+ "created": "Created",
+ "subscribed": "Subscribed"
+ },
+
+ "themes": {
+ "theme_options": {
+ "system_preference": {
+ "label": "System preference"
+ },
+ "light": {
+ "label": "Light"
+ },
+ "dark": {
+ "label": "Dark"
+ },
+ "light_contrast": {
+ "label": "Light high contrast"
+ },
+ "dark_contrast": {
+ "label": "Dark high contrast"
+ },
+ "custom": {
+ "label": "Custom theme"
+ }
+ }
+ },
+ "project_modules": {
+ "status": {
+ "backlog": "Backlog",
+ "planned": "Planned",
+ "in_progress": "In Progress",
+ "paused": "Paused",
+ "completed": "Completed",
+ "cancelled": "Cancelled"
+ },
+ "layout": {
+ "list": "List layout",
+ "board": "Gallery layout",
+ "timeline": "Timeline layout"
+ },
+ "order_by": {
+ "name": "Name",
+ "progress": "Progress",
+ "issues": "Number of work items",
+ "due_date": "Due date",
+ "created_at": "Created date",
+ "manual": "Manual"
+ }
+ },
+
+ "cycle": {
+ "label": "{count, plural, one {Cycle} other {Cycles}}",
+ "no_cycle": "No cycle"
+ },
+
+ "module": {
+ "label": "{count, plural, one {Module} other {Modules}}",
+ "no_module": "No module"
+ }
}
diff --git a/packages/i18n/src/locales/es/translations.json b/packages/i18n/src/locales/es/translations.json
index 55f6dc2bed..1b38b1cbe0 100644
--- a/packages/i18n/src/locales/es/translations.json
+++ b/packages/i18n/src/locales/es/translations.json
@@ -1,4 +1,174 @@
{
+ "sidebar": {
+ "projects": "Proyectos",
+ "pages": "Páginas",
+ "new_work_item": "Nuevo elemento de trabajo",
+ "home": "Inicio",
+ "your_work": "Tu trabajo",
+ "inbox": "Bandeja de entrada",
+ "workspace": "Espacio de trabajo",
+ "views": "Vistas",
+ "analytics": "Análisis",
+ "work_items": "Elementos de trabajo",
+ "cycles": "Ciclos",
+ "modules": "Módulos",
+ "intake": "Entrada",
+ "drafts": "Borradores",
+ "favorites": "Favoritos",
+ "pro": "Pro",
+ "upgrade": "Mejorar"
+ },
+
+ "auth": {
+ "common": {
+ "email": {
+ "label": "Correo electrónico",
+ "placeholder": "[email protected]",
+ "errors": {
+ "required": "El correo electrónico es obligatorio",
+ "invalid": "El correo electrónico no es válido"
+ }
+ },
+ "password": {
+ "label": "Contraseña",
+ "set_password": "Establecer una contraseña",
+ "placeholder": "Ingresa la contraseña",
+ "confirm_password": {
+ "label": "Confirmar contraseña",
+ "placeholder": "Confirmar contraseña"
+ },
+ "current_password": {
+ "label": "Contraseña actual"
+ },
+ "new_password": {
+ "label": "Nueva contraseña",
+ "placeholder": "Ingresa nueva contraseña"
+ },
+ "change_password": {
+ "label": {
+ "default": "Cambiar contraseña",
+ "submitting": "Cambiando contraseña"
+ }
+ },
+ "errors": {
+ "match": "Las contraseñas no coinciden",
+ "empty": "Por favor ingresa tu contraseña",
+ "length": "La contraseña debe tener más de 8 caracteres",
+ "strength": {
+ "weak": "La contraseña es débil",
+ "strong": "La contraseña es fuerte"
+ }
+ },
+ "submit": "Establecer contraseña",
+ "toast": {
+ "change_password": {
+ "success": {
+ "title": "¡Éxito!",
+ "message": "Contraseña cambiada exitosamente."
+ },
+ "error": {
+ "title": "¡Error!",
+ "message": "Algo salió mal. Por favor intenta de nuevo."
+ }
+ }
+ }
+ },
+ "unique_code": {
+ "label": "Código único",
+ "placeholder": "obtiene-establece-vuela",
+ "paste_code": "Pega el código enviado a tu correo electrónico",
+ "requesting_new_code": "Solicitando nuevo código",
+ "sending_code": "Enviando código"
+ },
+ "already_have_an_account": "¿Ya tienes una cuenta?",
+ "login": "Iniciar sesión",
+ "create_account": "Crear una cuenta",
+ "new_to_plane": "¿Nuevo en Plane?",
+ "back_to_sign_in": "Volver a iniciar sesión",
+ "resend_in": "Reenviar en {seconds} segundos",
+ "sign_in_with_unique_code": "Iniciar sesión con código único",
+ "forgot_password": "¿Olvidaste tu contraseña?"
+ },
+ "sign_up": {
+ "header": {
+ "label": "Crea una cuenta para comenzar a gestionar el trabajo con tu equipo.",
+ "step": {
+ "email": {
+ "header": "Registrarse",
+ "sub_header": ""
+ },
+ "password": {
+ "header": "Registrarse",
+ "sub_header": "Regístrate usando una combinación de correo electrónico y contraseña."
+ },
+ "unique_code": {
+ "header": "Registrarse",
+ "sub_header": "Regístrate usando un código único enviado a la dirección de correo electrónico anterior."
+ }
+ }
+ },
+ "errors": {
+ "password": {
+ "strength": "Intenta establecer una contraseña fuerte para continuar"
+ }
+ }
+ },
+ "sign_in": {
+ "header": {
+ "label": "Inicia sesión para comenzar a gestionar el trabajo con tu equipo.",
+ "step": {
+ "email": {
+ "header": "Iniciar sesión o registrarse",
+ "sub_header": ""
+ },
+ "password": {
+ "header": "Iniciar sesión o registrarse",
+ "sub_header": "Usa tu combinación de correo electrónico y contraseña para iniciar sesión."
+ },
+ "unique_code": {
+ "header": "Iniciar sesión o registrarse",
+ "sub_header": "Inicia sesión usando un código único enviado a la dirección de correo electrónico anterior."
+ }
+ }
+ }
+ },
+ "forgot_password": {
+ "title": "Restablecer tu contraseña",
+ "description": "Ingresa la dirección de correo electrónico verificada de tu cuenta de usuario y te enviaremos un enlace para restablecer la contraseña.",
+ "email_sent": "Enviamos el enlace de restablecimiento a tu dirección de correo electrónico",
+ "send_reset_link": "Enviar enlace de restablecimiento",
+ "errors": {
+ "smtp_not_enabled": "Vemos que tu administrador no ha habilitado SMTP, no podremos enviar un enlace para restablecer la contraseña"
+ },
+ "toast": {
+ "success": {
+ "title": "Correo enviado",
+ "message": "Revisa tu bandeja de entrada para encontrar un enlace para restablecer tu contraseña. Si no aparece en unos minutos, revisa tu carpeta de spam."
+ },
+ "error": {
+ "title": "¡Error!",
+ "message": "Algo salió mal. Por favor intenta de nuevo."
+ }
+ }
+ },
+ "reset_password": {
+ "title": "Establecer nueva contraseña",
+ "description": "Asegura tu cuenta con una contraseña fuerte"
+ },
+ "set_password": {
+ "title": "Asegura tu cuenta",
+ "description": "Establecer una contraseña te ayuda a iniciar sesión de forma segura"
+ },
+ "sign_out": {
+ "toast": {
+ "error": {
+ "title": "¡Error!",
+ "message": "Error al cerrar sesión. Por favor intenta de nuevo."
+ }
+ }
+ }
+ },
+
"submit": "Enviar",
"cancel": "Cancelar",
"loading": "Cargando",
@@ -9,15 +179,18 @@
"close": "Cerrar",
"yes": "Sí",
"no": "No",
- "ok": "OK",
+ "ok": "Aceptar",
"name": "Nombre",
"description": "Descripción",
"search": "Buscar",
"add_member": "Agregar miembro",
+ "adding_members": "Agregando miembros",
"remove_member": "Eliminar miembro",
"add_members": "Agregar miembros",
+ "adding_member": "Agregando miembros",
"remove_members": "Eliminar miembros",
"add": "Agregar",
+ "adding": "Agregando",
"remove": "Eliminar",
"add_new": "Agregar nuevo",
"remove_selected": "Eliminar seleccionados",
@@ -32,13 +205,12 @@
"password": "Contraseña",
"change_cover": "Cambiar portada",
"language": "Idioma",
- "saving": "Guardando...",
+ "saving": "Guardando",
"save_changes": "Guardar cambios",
"deactivate_account": "Desactivar cuenta",
"deactivate_account_description": "Al desactivar una cuenta, todos los datos y recursos dentro de esa cuenta se eliminarán permanentemente y no se podrán recuperar.",
- "profile_settings": "Configuración de perfil",
+ "profile_settings": "Configuración del perfil",
"your_account": "Tu cuenta",
- "profile": "Perfil",
"security": "Seguridad",
"activity": "Actividad",
"appearance": "Apariencia",
@@ -51,22 +223,9 @@
"created": "Creado",
"subscribed": "Suscrito",
"you_do_not_have_the_permission_to_access_this_page": "No tienes permiso para acceder a esta página.",
- "failed_to_sign_out_please_try_again": "Error al cerrar sesión. Por favor, inténtalo de nuevo.",
- "password_changed_successfully": "Contraseña cambiada con éxito.",
"something_went_wrong_please_try_again": "Algo salió mal. Por favor, inténtalo de nuevo.",
- "change_password": "Cambiar contraseña",
- "passwords_dont_match": "Las contraseñas no coinciden",
- "current_password": "Contraseña actual",
- "new_password": "Nueva contraseña",
- "confirm_password": "Confirmar contraseña",
- "this_field_is_required": "Este campo es obligatorio",
- "changing_password": "Cambiando contraseña",
- "please_enter_your_password": "Por favor, introduce tu contraseña.",
- "password_length_should_me_more_than_8_characters": "La longitud de la contraseña debe ser más de 8 caracteres.",
- "password_is_weak": "La contraseña es débil.",
- "password_is_strong": "La contraseña es fuerte.",
"load_more": "Cargar más",
- "select_or_customize_your_interface_color_scheme": "Selecciona o personaliza el esquema de color de tu interfaz.",
+ "select_or_customize_your_interface_color_scheme": "Selecciona o personaliza el esquema de colores de tu interfaz.",
"theme": "Tema",
"system_preference": "Preferencia del sistema",
"light": "Claro",
@@ -82,83 +241,55 @@
"sidebar_background_color": "Color de fondo de la barra lateral",
"sidebar_text_color": "Color del texto de la barra lateral",
"set_theme": "Establecer tema",
- "enter_a_valid_hex_code_of_6_characters": "Introduce un código hexadecimal válido de 6 caracteres",
- "background_color_is_required": "El color de fondo es obligatorio",
- "text_color_is_required": "El color del texto es obligatorio",
- "primary_color_is_required": "El color primario es obligatorio",
- "sidebar_background_color_is_required": "El color de fondo de la barra lateral es obligatorio",
- "sidebar_text_color_is_required": "El color del texto de la barra lateral es obligatorio",
+ "enter_a_valid_hex_code_of_6_characters": "Ingresa un código hexadecimal válido de 6 caracteres",
+ "background_color_is_required": "El color de fondo es requerido",
+ "text_color_is_required": "El color del texto es requerido",
+ "primary_color_is_required": "El color primario es requerido",
+ "sidebar_background_color_is_required": "El color de fondo de la barra lateral es requerido",
+ "sidebar_text_color_is_required": "El color del texto de la barra lateral es requerido",
"updating_theme": "Actualizando tema",
- "theme_updated_successfully": "Tema actualizado con éxito",
+ "theme_updated_successfully": "Tema actualizado exitosamente",
"failed_to_update_the_theme": "Error al actualizar el tema",
"email_notifications": "Notificaciones por correo electrónico",
- "stay_in_the_loop_on_issues_you_are_subscribed_to_enable_this_to_get_notified": "Mantente al tanto de los problemas a los que estás suscrito. Activa esto para recibir notificaciones.",
- "email_notification_setting_updated_successfully": "Configuración de notificaciones por correo electrónico actualizada con éxito",
+ "stay_in_the_loop_on_issues_you_are_subscribed_to_enable_this_to_get_notified": "Mantente al tanto de los elementos de trabajo a los que estás suscrito. Activa esto para recibir notificaciones.",
+ "email_notification_setting_updated_successfully": "Configuración de notificaciones por correo electrónico actualizada exitosamente",
"failed_to_update_email_notification_setting": "Error al actualizar la configuración de notificaciones por correo electrónico",
- "notify_me_when": "Notifícame cuando",
- "property_changes": "Cambios de propiedad",
- "property_changes_description": "Notifícame cuando cambien las propiedades del problema como asignados, prioridad, estimaciones o cualquier otra cosa.",
+ "notify_me_when": "Notificarme cuando",
+ "property_changes": "Cambios de propiedades",
+ "property_changes_description": "Notificarme cuando cambien las propiedades de los elementos de trabajo como asignados, prioridad, estimaciones o cualquier otra cosa.",
"state_change": "Cambio de estado",
- "state_change_description": "Notifícame cuando el problema se mueva a un estado diferente",
- "issue_completed": "Problema completado",
- "issue_completed_description": "Notifícame solo cuando un problema esté completado",
+ "state_change_description": "Notificarme cuando los elementos de trabajo se muevan a un estado diferente",
+ "issue_completed": "Elemento de trabajo completado",
+ "issue_completed_description": "Notificarme solo cuando se complete un elemento de trabajo",
"comments": "Comentarios",
- "comments_description": "Notifícame cuando alguien deje un comentario en el problema",
+ "comments_description": "Notificarme cuando alguien deje un comentario en el elemento de trabajo",
"mentions": "Menciones",
- "mentions_description": "Notifícame solo cuando alguien me mencione en los comentarios o en la descripción",
- "create_your_workspace": "Crea tu espacio de trabajo",
- "only_your_instance_admin_can_create_workspaces": "Solo tu administrador de instancia puede crear espacios de trabajo",
- "only_your_instance_admin_can_create_workspaces_description": "Si conoces el correo electrónico de tu administrador de instancia, haz clic en el botón de abajo para ponerte en contacto con él.",
- "go_back": "Regresar",
- "request_instance_admin": "Solicitar administrador de instancia",
- "plane_logo": "Logo de Plane",
- "workspace_creation_disabled": "Creación de espacio de trabajo deshabilitada",
- "workspace_request_subject": "Solicitando un nuevo espacio de trabajo",
- "workspace_request_body": "Hola administrador(es) de instancia,\n\nPor favor, crea un nuevo espacio de trabajo con la URL [/nombre-del-espacio-de-trabajo] para [propósito de crear el espacio de trabajo].\n\nGracias,\n{{firstName}} {{lastName}}\n{{email}}",
- "creating_workspace": "Creando espacio de trabajo",
- "workspace_created_successfully": "Espacio de trabajo creado con éxito",
- "create_workspace_page": "Página de creación de espacio de trabajo",
- "workspace_could_not_be_created_please_try_again": "No se pudo crear el espacio de trabajo. Por favor, inténtalo de nuevo.",
- "workspace_could_not_be_created_please_try_again_description": "Ocurrió un error al crear el espacio de trabajo. Por favor, inténtalo de nuevo.",
- "this_is_a_required_field": "Este es un campo obligatorio.",
- "name_your_workspace": "Nombra tu espacio de trabajo",
- "workspaces_names_can_contain_only_space_dash_and_alphanumeric_characters": "Los nombres de los espacios de trabajo solo pueden contener (' '), ('-'), ('_') y caracteres alfanuméricos.",
- "limit_your_name_to_80_characters": "Limita tu nombre a 80 caracteres.",
- "set_your_workspace_url": "Establece la URL de tu espacio de trabajo",
- "limit_your_url_to_48_characters": "Limita tu URL a 48 caracteres.",
- "how_many_people_will_use_this_workspace": "¿Cuántas personas usarán este espacio de trabajo?",
- "how_many_people_will_use_this_workspace_description": "Esto nos ayudará a determinar el número de asientos que necesitas comprar.",
- "select_a_range": "Selecciona un rango",
- "urls_can_contain_only_dash_and_alphanumeric_characters": "Las URLs solo pueden contener ('-') y caracteres alfanuméricos.",
- "something_familiar_and_recognizable_is_always_best": "Algo familiar y reconocible siempre es mejor.",
- "workspace_url_is_already_taken": "¡La URL del espacio de trabajo ya está tomada!",
- "old_password": "Contraseña antigua",
+ "mentions_description": "Notificarme solo cuando alguien me mencione en los comentarios o descripción",
+ "old_password": "Contraseña anterior",
"general_settings": "Configuración general",
"sign_out": "Cerrar sesión",
"signing_out": "Cerrando sesión",
"active_cycles": "Ciclos activos",
- "active_cycles_description": "Monitorea ciclos a través de proyectos, rastrea problemas de alta prioridad y enfócate en ciclos que necesitan atención.",
+ "active_cycles_description": "Monitorea ciclos en todos los proyectos, rastrea elementos de trabajo de alta prioridad y enfócate en los ciclos que necesitan atención.",
"on_demand_snapshots_of_all_your_cycles": "Instantáneas bajo demanda de todos tus ciclos",
"upgrade": "Actualizar",
- "10000_feet_view": "Vista de 10,000 pies de todos los ciclos activos.",
- "10000_feet_view_description": "Amplía para ver ciclos en ejecución en todos tus proyectos a la vez en lugar de ir de ciclo en ciclo en cada proyecto.",
+ "10000_feet_view": "Vista panorámica de todos los ciclos activos.",
+ "10000_feet_view_description": "Aléjate para ver los ciclos en ejecución en todos tus proyectos a la vez en lugar de ir de Ciclo en Ciclo en cada proyecto.",
"get_snapshot_of_each_active_cycle": "Obtén una instantánea de cada ciclo activo.",
- "get_snapshot_of_each_active_cycle_description": "Rastrea métricas de alto nivel para todos los ciclos activos, ve su estado de progreso y obtén una idea del alcance frente a los plazos.",
- "compare_burndowns": "Compara burndowns.",
- "compare_burndowns_description": "Monitorea cómo se están desempeñando cada uno de tus equipos con un vistazo al informe de burndown de cada ciclo.",
- "quickly_see_make_or_break_issues": "Ve rápidamente problemas críticos.",
- "quickly_see_make_or_break_issues_description": "Previsualiza problemas de alta prioridad para cada ciclo contra fechas de vencimiento. Vélos todos por ciclo en un clic.",
- "zoom_into_cycles_that_need_attention": "Enfócate en ciclos que necesitan atención.",
- "zoom_into_cycles_that_need_attention_description": "Investiga el estado de cualquier ciclo que no cumpla con las expectativas en un clic.",
- "stay_ahead_of_blockers": "Anticípate a los bloqueadores.",
+ "get_snapshot_of_each_active_cycle_description": "Rastrea métricas de alto nivel para todos los ciclos activos, ve su estado de progreso y obtén una idea del alcance contra los plazos.",
+ "compare_burndowns": "Compara los burndowns.",
+ "compare_burndowns_description": "Monitorea cómo se está desempeñando cada uno de tus equipos con un vistazo al informe de burndown de cada ciclo.",
+ "quickly_see_make_or_break_issues": "Ve rápidamente los elementos de trabajo críticos.",
+ "quickly_see_make_or_break_issues_description": "Previsualiza elementos de trabajo de alta prioridad para cada ciclo contra fechas de vencimiento. Vélos todos por ciclo con un clic.",
+ "zoom_into_cycles_that_need_attention": "Enfócate en los ciclos que necesitan atención.",
+ "zoom_into_cycles_that_need_attention_description": "Investiga el estado de cualquier ciclo que no se ajuste a las expectativas con un clic.",
+ "stay_ahead_of_blockers": "Mantente adelante de los bloqueadores.",
"stay_ahead_of_blockers_description": "Detecta desafíos de un proyecto a otro y ve dependencias entre ciclos que no son obvias desde ninguna otra vista.",
- "analytics": "Analítica",
+ "analytics": "Análisis",
"workspace_invites": "Invitaciones al espacio de trabajo",
- "workspace_settings": "Configuración del espacio de trabajo",
"enter_god_mode": "Entrar en modo dios",
"workspace_logo": "Logo del espacio de trabajo",
- "new_issue": "Nuevo problema",
- "home": "Inicio",
+ "new_issue": "Nuevo elemento de trabajo",
"your_work": "Tu trabajo",
"drafts": "Borradores",
"projects": "Proyectos",
@@ -171,13 +302,13 @@
"no_favorites_yet": "Aún no hay favoritos",
"create_folder": "Crear carpeta",
"new_folder": "Nueva carpeta",
- "favorite_updated_successfully": "Favorito actualizado con éxito",
- "favorite_created_successfully": "Favorito creado con éxito",
+ "favorite_updated_successfully": "Favorito actualizado exitosamente",
+ "favorite_created_successfully": "Favorito creado exitosamente",
"folder_already_exists": "La carpeta ya existe",
"folder_name_cannot_be_empty": "El nombre de la carpeta no puede estar vacío",
"something_went_wrong": "Algo salió mal",
"failed_to_reorder_favorite": "Error al reordenar favorito",
- "favorite_removed_successfully": "Favorito eliminado con éxito",
+ "favorite_removed_successfully": "Favorito eliminado exitosamente",
"failed_to_create_favorite": "Error al crear favorito",
"failed_to_rename_favorite": "Error al renombrar favorito",
"project_link_copied_to_clipboard": "Enlace del proyecto copiado al portapapeles",
@@ -185,21 +316,26 @@
"add_project": "Agregar proyecto",
"create_project": "Crear proyecto",
"failed_to_remove_project_from_favorites": "No se pudo eliminar el proyecto de favoritos. Por favor, inténtalo de nuevo.",
- "project_created_successfully": "Proyecto creado con éxito",
- "project_created_successfully_description": "Proyecto creado con éxito. Ahora puedes comenzar a agregar problemas a él.",
+ "project_created_successfully": "Proyecto creado exitosamente",
+ "project_created_successfully_description": "Proyecto creado exitosamente. Ahora puedes comenzar a agregar elementos de trabajo.",
"project_cover_image_alt": "Imagen de portada del proyecto",
- "name_is_required": "El nombre es obligatorio",
+ "name_is_required": "El nombre es requerido",
"title_should_be_less_than_255_characters": "El título debe tener menos de 255 caracteres",
"project_name": "Nombre del proyecto",
"project_id_must_be_at_least_1_character": "El ID del proyecto debe tener al menos 1 carácter",
"project_id_must_be_at_most_5_characters": "El ID del proyecto debe tener como máximo 5 caracteres",
"project_id": "ID del proyecto",
- "project_id_tooltip_content": "Te ayuda a identificar problemas en el proyecto de manera única. Máximo 5 caracteres.",
- "description_placeholder": "Descripción...",
+ "project_id_tooltip_content": "Te ayuda a identificar elementos de trabajo en el proyecto de manera única. Máximo 5 caracteres.",
+ "description_placeholder": "Descripción",
"only_alphanumeric_non_latin_characters_allowed": "Solo se permiten caracteres alfanuméricos y no latinos.",
- "project_id_is_required": "El ID del proyecto es obligatorio",
+ "project_id_is_required": "El ID del proyecto es requerido",
+ "project_id_allowed_char": "Solo se permiten caracteres alfanuméricos y no latinos.",
+ "project_id_min_char": "El ID del proyecto debe tener al menos 1 carácter",
+ "project_id_max_char": "El ID del proyecto debe tener como máximo 5 caracteres",
+ "project_description_placeholder": "Ingresa la descripción del proyecto",
"select_network": "Seleccionar red",
"lead": "Líder",
+ "date_range": "Rango de fechas",
"private": "Privado",
"public": "Público",
"accessible_only_by_invite": "Accesible solo por invitación",
@@ -218,26 +354,25 @@
"publish": "Publicar",
"copy_link": "Copiar enlace",
"leave_project": "Abandonar proyecto",
- "join_the_project_to_rearrange": "Únete al proyecto para reordenar",
- "drag_to_rearrange": "Arrastra para reordenar",
+ "join_the_project_to_rearrange": "Únete al proyecto para reorganizar",
+ "drag_to_rearrange": "Arrastra para reorganizar",
"congrats": "¡Felicitaciones!",
- "project": "Proyecto",
"open_project": "Abrir proyecto",
- "issues": "Problemas",
+ "issues": "Elementos de trabajo",
"cycles": "Ciclos",
"modules": "Módulos",
"pages": "Páginas",
"intake": "Entrada",
"time_tracking": "Seguimiento de tiempo",
"work_management": "Gestión del trabajo",
- "projects_and_issues": "Proyectos y problemas",
+ "projects_and_issues": "Proyectos y elementos de trabajo",
"projects_and_issues_description": "Activa o desactiva estos en este proyecto.",
- "cycles_description": "Organiza el trabajo como mejor te parezca por proyecto y cambia la frecuencia de un período a otro.",
+ "cycles_description": "Organiza el trabajo en períodos de tiempo según lo consideres conveniente por proyecto y cambia la frecuencia de un período a otro.",
"modules_description": "Agrupa el trabajo en configuraciones similares a subproyectos con sus propios líderes y asignados.",
"views_description": "Guarda ordenamientos, filtros y opciones de visualización para más tarde o compártelos.",
- "pages_description": "Escribe cualquier cosa como escribes cualquier cosa.",
- "intake_description": "Mantente al tanto de los problemas a los que estás suscrito. Activa esto para recibir notificaciones.",
- "time_tracking_description": "Rastrea el tiempo dedicado a problemas y proyectos.",
+ "pages_description": "Escribe cualquier cosa como escribirías cualquier cosa.",
+ "intake_description": "Mantente al tanto de los elementos de trabajo a los que estás suscrito. Activa esto para recibir notificaciones.",
+ "time_tracking_description": "Rastrea el tiempo dedicado a elementos de trabajo y proyectos.",
"work_management_description": "Gestiona tu trabajo y proyectos con facilidad.",
"documentation": "Documentación",
"message_support": "Mensaje al soporte",
@@ -249,50 +384,51 @@
"we_are_having_trouble_fetching_the_updates": "Estamos teniendo problemas para obtener las actualizaciones.",
"our_changelogs": "nuestros registros de cambios",
"for_the_latest_updates": "para las últimas actualizaciones.",
- "please_visit": "Por favor, visita",
- "docs": "Documentos",
+ "please_visit": "Por favor visita",
+ "docs": "Documentación",
"full_changelog": "Registro de cambios completo",
"support": "Soporte",
"discord": "Discord",
"powered_by_plane_pages": "Desarrollado por Plane Pages",
- "please_select_at_least_one_invitation": "Por favor, selecciona al menos una invitación.",
- "please_select_at_least_one_invitation_description": "Por favor, selecciona al menos una invitación para unirte al espacio de trabajo.",
+ "please_select_at_least_one_invitation": "Por favor selecciona al menos una invitación.",
+ "please_select_at_least_one_invitation_description": "Por favor selecciona al menos una invitación para unirte al espacio de trabajo.",
"we_see_that_someone_has_invited_you_to_join_a_workspace": "Vemos que alguien te ha invitado a unirte a un espacio de trabajo",
- "join_a_workspace": "Unirse a un espacio de trabajo",
+ "join_a_workspace": "Únete a un espacio de trabajo",
"we_see_that_someone_has_invited_you_to_join_a_workspace_description": "Vemos que alguien te ha invitado a unirte a un espacio de trabajo",
- "join_a_workspace_description": "Unirse a un espacio de trabajo",
+ "join_a_workspace_description": "Únete a un espacio de trabajo",
"accept_and_join": "Aceptar y unirse",
"go_home": "Ir a inicio",
"no_pending_invites": "No hay invitaciones pendientes",
"you_can_see_here_if_someone_invites_you_to_a_workspace": "Puedes ver aquí si alguien te invita a un espacio de trabajo",
- "back_to_home": "Volver al inicio",
+ "back_to_home": "Volver a inicio",
"workspace_name": "nombre-del-espacio-de-trabajo",
"deactivate_your_account": "Desactivar tu cuenta",
- "deactivate_your_account_description": "Una vez desactivada, no podrás ser asignado a problemas ni se te facturará por tu espacio de trabajo. Para reactivar tu cuenta, necesitarás una invitación a un espacio de trabajo con esta dirección de correo electrónico.",
+ "deactivate_your_account_description": "Una vez desactivada, no se te podrán asignar elementos de trabajo ni se te facturará por tu espacio de trabajo. Para reactivar tu cuenta, necesitarás una invitación a un espacio de trabajo con esta dirección de correo electrónico.",
"deactivating": "Desactivando",
"confirm": "Confirmar",
+ "confirming": "Confirmando",
"draft_created": "Borrador creado",
- "issue_created_successfully": "Problema creado con éxito",
- "draft_creation_failed": "Creación del borrador fallida",
- "issue_creation_failed": "Creación del problema fallida",
- "draft_issue": "Borrador de problema",
- "issue_updated_successfully": "Problema actualizado con éxito",
- "issue_could_not_be_updated": "No se pudo actualizar el problema",
+ "issue_created_successfully": "Elemento de trabajo creado exitosamente",
+ "draft_creation_failed": "Error al crear borrador",
+ "issue_creation_failed": "Error al crear elemento de trabajo",
+ "draft_issue": "Borrador de elemento de trabajo",
+ "issue_updated_successfully": "Elemento de trabajo actualizado exitosamente",
+ "issue_could_not_be_updated": "El elemento de trabajo no pudo ser actualizado",
"create_a_draft": "Crear un borrador",
"save_to_drafts": "Guardar en borradores",
"save": "Guardar",
"update": "Actualizar",
"updating": "Actualizando",
- "create_new_issue": "Crear nuevo problema",
- "editor_is_not_ready_to_discard_changes": "El editor no está listo para descartar los cambios",
- "failed_to_move_issue_to_project": "Error al mover el problema al proyecto",
+ "create_new_issue": "Crear nuevo elemento de trabajo",
+ "editor_is_not_ready_to_discard_changes": "El editor no está listo para descartar cambios",
+ "failed_to_move_issue_to_project": "Error al mover elemento de trabajo al proyecto",
"create_more": "Crear más",
"add_to_project": "Agregar al proyecto",
"discard": "Descartar",
- "duplicate_issue_found": "Problema duplicado encontrado",
- "duplicate_issues_found": "Problemas duplicados encontrados",
+ "duplicate_issue_found": "Se encontró un elemento de trabajo duplicado",
+ "duplicate_issues_found": "Se encontraron elementos de trabajo duplicados",
"no_matching_results": "No hay resultados coincidentes",
- "title_is_required": "El título es obligatorio",
+ "title_is_required": "El título es requerido",
"title": "Título",
"state": "Estado",
"priority": "Prioridad",
@@ -308,12 +444,1876 @@
"labels": "Etiquetas",
"create_new_label": "Crear nueva etiqueta",
"start_date": "Fecha de inicio",
+ "end_date": "Fecha de fin",
"due_date": "Fecha de vencimiento",
- "cycle": "Ciclo",
"estimate": "Estimación",
- "change_parent_issue": "Cambiar problema padre",
- "remove_parent_issue": "Eliminar problema padre",
+ "change_parent_issue": "Cambiar elemento de trabajo padre",
+ "remove_parent_issue": "Eliminar elemento de trabajo padre",
"add_parent": "Agregar padre",
- "loading_members": "Cargando miembros...",
- "inbox": "bandeja de entrada"
+ "loading_members": "Cargando miembros",
+ "view_link_copied_to_clipboard": "Enlace de vista copiado al portapapeles.",
+ "required": "Requerido",
+ "optional": "Opcional",
+ "Cancel": "Cancelar",
+ "edit": "Editar",
+ "archive": "Archivar",
+ "restor": "Restaurar",
+ "open_in_new_tab": "Abrir en nueva pestaña",
+ "delete": "Eliminar",
+ "deleting": "Eliminando",
+ "make_a_copy": "Hacer una copia",
+ "move_to_project": "Mover al proyecto",
+ "good": "Buenos",
+ "morning": "días",
+ "afternoon": "tardes",
+ "evening": "noches",
+ "show_all": "Mostrar todo",
+ "show_less": "Mostrar menos",
+ "no_data_yet": "Aún no hay datos",
+ "syncing": "Sincronizando",
+ "add_work_item": "Agregar elemento de trabajo",
+ "advanced_description_placeholder": "Presiona '/' para comandos",
+ "create_work_item": "Crear elemento de trabajo",
+ "attachments": "Archivos adjuntos",
+ "declining": "Rechazando",
+ "declined": "Rechazado",
+ "decline": "Rechazar",
+ "unassigned": "Sin asignar",
+ "work_items": "Elementos de trabajo",
+ "add_link": "Agregar enlace",
+ "points": "Puntos",
+ "no_assignee": "Sin asignado",
+ "no_assignees_yet": "Aún no hay asignados",
+ "no_labels_yet": "Aún no hay etiquetas",
+ "ideal": "Ideal",
+ "current": "Actual",
+ "no_matching_members": "No hay miembros coincidentes",
+ "leaving": "Abandonando",
+ "removing": "Eliminando",
+ "leave": "Abandonar",
+ "refresh": "Actualizar",
+ "refreshing": "Actualizando",
+ "refresh_status": "Actualizar estado",
+ "prev": "Anterior",
+ "next": "Siguiente",
+ "re_generating": "Regenerando",
+ "re_generate": "Regenerar",
+ "re_generate_key": "Regenerar clave",
+ "export": "Exportar",
+ "member": "{count, plural, one{# miembro} other{# miembros}}",
+
+ "project_view": {
+ "sort_by": {
+ "created_at": "Creado el",
+ "updated_at": "Actualizado el",
+ "name": "Nombre"
+ }
+ },
+
+ "toast": {
+ "success": "¡Éxito!",
+ "error": "¡Error!"
+ },
+
+ "links": {
+ "toasts": {
+ "created": {
+ "title": "Enlace creado",
+ "message": "El enlace se ha creado correctamente"
+ },
+ "not_created": {
+ "title": "Enlace no creado",
+ "message": "No se pudo crear el enlace"
+ },
+ "updated": {
+ "title": "Enlace actualizado",
+ "message": "El enlace se ha actualizado correctamente"
+ },
+ "not_updated": {
+ "title": "Enlace no actualizado",
+ "message": "No se pudo actualizar el enlace"
+ },
+ "removed": {
+ "title": "Enlace eliminado",
+ "message": "El enlace se ha eliminado correctamente"
+ },
+ "not_removed": {
+ "title": "Enlace no eliminado",
+ "message": "No se pudo eliminar el enlace"
+ }
+ }
+ },
+
+ "home": {
+ "empty": {
+ "create_project": {
+ "title": "Crear un proyecto",
+ "description": "La mayoría de las cosas comienzan con un proyecto en Plane.",
+ "cta": "Comenzar"
+ },
+ "invite_team": {
+ "title": "Invita a tu equipo",
+ "description": "Construye, implementa y gestiona con compañeros de trabajo.",
+ "cta": "Hazlos entrar"
+ },
+ "configure_workspace": {
+ "title": "Configura tu espacio de trabajo.",
+ "description": "Activa o desactiva funciones o ve más allá.",
+ "cta": "Configurar este espacio de trabajo"
+ },
+ "personalize_account": {
+ "title": "Haz Plane tuyo.",
+ "description": "Elige tu foto, colores y más.",
+ "cta": "Personalizar ahora"
+ },
+ "widgets": {
+ "title": "Está Silencioso Sin Widgets, Actívalos",
+ "description": "Parece que todos tus widgets están desactivados. ¡Actívalos\nahora para mejorar tu experiencia!",
+ "primary_button": {
+ "text": "Gestionar widgets"
+ }
+ }
+ },
+ "quick_links": {
+ "empty": "Guarda enlaces a cosas de trabajo que te gustaría tener a mano.",
+ "add": "Agregar enlace rápido",
+ "title": "Enlace rápido",
+ "title_plural": "Enlaces rápidos"
+ },
+ "recents": {
+ "title": "Recientes",
+ "empty": {
+ "project": "Tus proyectos recientes aparecerán aquí una vez que visites uno.",
+ "page": "Tus páginas recientes aparecerán aquí una vez que visites una.",
+ "issue": "Tus elementos de trabajo recientes aparecerán aquí una vez que visites uno.",
+ "default": "Aún no tienes elementos recientes."
+ },
+ "filters": {
+ "all": "Todos los elementos",
+ "projects": "Proyectos",
+ "pages": "Páginas",
+ "issues": "Elementos de trabajo"
+ }
+ },
+ "new_at_plane": {
+ "title": "Nuevo en Plane"
+ },
+ "quick_tutorial": {
+ "title": "Tutorial rápido"
+ },
+ "widget": {
+ "reordered_successfully": "Widget reordenado correctamente.",
+ "reordering_failed": "Ocurrió un error al reordenar el widget."
+ },
+ "manage_widgets": "Gestionar widgets",
+ "title": "Inicio",
+ "star_us_on_github": "Danos una estrella en GitHub"
+ },
+
+ "link": {
+ "modal": {
+ "url": {
+ "text": "URL",
+ "required": "La URL no es válida",
+ "placeholder": "Escribe o pega una URL"
+ },
+ "title": {
+ "text": "Título a mostrar",
+ "placeholder": "Cómo te gustaría ver este enlace"
+ }
+ }
+ },
+
+ "common": {
+ "all": "Todo",
+ "states": "Estados",
+ "state": "Estado",
+ "state_groups": "Grupos de estados",
+ "priority": "Prioridad",
+ "team_project": "Proyecto de equipo",
+ "project": "Proyecto",
+ "cycle": "Ciclo",
+ "cycles": "Ciclos",
+ "module": "Módulo",
+ "modules": "Módulos",
+ "labels": "Etiquetas",
+ "assignees": "Asignados",
+ "assignee": "Asignado",
+ "created_by": "Creado por",
+ "none": "Ninguno",
+ "link": "Enlace",
+ "estimate": "Estimación",
+ "layout": "Diseño",
+ "filters": "Filtros",
+ "display": "Mostrar",
+ "load_more": "Cargar más",
+ "activity": "Actividad",
+ "analytics": "Análisis",
+ "dates": "Fechas",
+ "success": "¡Éxito!",
+ "something_went_wrong": "Algo salió mal",
+ "error": {
+ "label": "¡Error!",
+ "message": "Ocurrió un error. Por favor, inténtalo de nuevo."
+ },
+ "group_by": "Agrupar por",
+ "epic": "Epic",
+ "epics": "Epics",
+ "work_item": "Elemento de trabajo",
+ "sub_work_item": "Sub-elemento de trabajo",
+ "add": "Agregar",
+ "warning": "Advertencia",
+ "updating": "Actualizando",
+ "adding": "Agregando",
+ "update": "Actualizar",
+ "creating": "Creando",
+ "create": "Crear",
+ "cancel": "Cancelar",
+ "description": "Descripción",
+ "title": "Título",
+ "attachment": "Archivo adjunto",
+ "general": "General",
+ "features": "Características",
+ "automation": "Automatización",
+ "project_name": "Nombre del proyecto",
+ "project_id": "ID del proyecto",
+ "project_timezone": "Zona horaria del proyecto",
+ "created_on": "Creado el",
+ "update_project": "Actualizar proyecto",
+ "identifier_already_exists": "El identificador ya existe",
+ "add_more": "Agregar más",
+ "defaults": "Valores predeterminados",
+ "add_label": "Agregar etiqueta",
+ "estimates": "Estimaciones",
+ "customize_time_range": "Personalizar rango de tiempo",
+ "loading": "Cargando",
+ "attachments": "Archivos adjuntos",
+ "properties": "Propiedades",
+ "parent": "Padre",
+ "remove": "Eliminar",
+ "archiving": "Archivando",
+ "archive": "Archivar",
+ "access": {
+ "public": "Público",
+ "private": "Privado"
+ },
+ "done": "Hecho",
+ "sub_work_items": "Sub-elementos de trabajo",
+ "comment": "Comentario",
+ "workspace_level": "Nivel de espacio de trabajo",
+ "order_by": {
+ "label": "Ordenar por",
+ "manual": "Manual",
+ "last_created": "Último creado",
+ "last_updated": "Última actualización",
+ "start_date": "Fecha de inicio",
+ "due_date": "Fecha de vencimiento",
+ "asc": "Ascendente",
+ "desc": "Descendente",
+ "updated_on": "Actualizado el"
+ },
+ "sort": {
+ "asc": "Ascendente",
+ "desc": "Descendente",
+ "created_on": "Creado el",
+ "updated_on": "Actualizado el"
+ },
+ "comments": "Comentarios",
+ "updates": "Actualizaciones",
+ "clear_all": "Limpiar todo",
+ "copied": "¡Copiado!",
+ "link_copied": "¡Enlace copiado!",
+ "link_copied_to_clipboard": "Enlace copiado al portapapeles",
+ "copied_to_clipboard": "Enlace del elemento de trabajo copiado al portapapeles",
+ "is_copied_to_clipboard": "El elemento de trabajo está copiado al portapapeles",
+ "no_links_added_yet": "Aún no se han agregado enlaces",
+ "add_link": "Agregar enlace",
+ "links": "Enlaces",
+ "go_to_workspace": "Ir al espacio de trabajo",
+ "progress": "Progreso",
+ "optional": "Opcional",
+ "join": "Unirse",
+ "go_back": "Volver",
+ "continue": "Continuar",
+ "resend": "Reenviar",
+ "relations": "Relaciones",
+ "errors": {
+ "default": {
+ "title": "¡Error!",
+ "message": "Algo salió mal. Por favor, inténtalo de nuevo."
+ },
+ "required": "Este campo es obligatorio",
+ "entity_required": "{entity} es obligatorio"
+ },
+ "update_link": "Actualizar enlace",
+ "attach": "Adjuntar",
+ "create_new": "Crear nuevo",
+ "add_existing": "Agregar existente",
+ "type_or_paste_a_url": "Escribe o pega una URL",
+ "url_is_invalid": "La URL no es válida",
+ "display_title": "Título a mostrar",
+ "link_title_placeholder": "Cómo te gustaría ver este enlace",
+ "url": "URL",
+ "side_peek": "Vista lateral",
+ "modal": "Modal",
+ "full_screen": "Pantalla completa",
+ "close_peek_view": "Cerrar la vista previa",
+ "toggle_peek_view_layout": "Alternar diseño de vista previa",
+ "options": "Opciones",
+ "duration": "Duración",
+ "today": "Hoy",
+ "week": "Semana",
+ "month": "Mes",
+ "quarter": "Trimestre",
+ "press_for_commands": "Presiona '/' para comandos",
+ "click_to_add_description": "Haz clic para agregar descripción",
+ "search": {
+ "label": "Buscar",
+ "placeholder": "Escribe para buscar",
+ "no_matches_found": "No se encontraron coincidencias",
+ "no_matching_results": "No hay resultados coincidentes"
+ },
+ "actions": {
+ "edit": "Editar",
+ "make_a_copy": "Hacer una copia",
+ "open_in_new_tab": "Abrir en nueva pestaña",
+ "copy_link": "Copiar enlace",
+ "archive": "Archivar",
+ "delete": "Eliminar",
+ "remove_relation": "Eliminar relación",
+ "subscribe": "Suscribirse",
+ "unsubscribe": "Cancelar suscripción",
+ "clear_sorting": "Limpiar ordenamiento",
+ "show_weekends": "Mostrar fines de semana",
+ "enable": "Habilitar",
+ "disable": "Deshabilitar"
+ },
+ "name": "Nombre",
+ "discard": "Descartar",
+ "confirm": "Confirmar",
+ "confirming": "Confirmando",
+ "read_the_docs": "Leer la documentación",
+ "default": "Predeterminado",
+ "active": "Activo",
+ "enabled": "Habilitado",
+ "disabled": "Deshabilitado",
+ "mandate": "Mandato",
+ "mandatory": "Obligatorio",
+ "yes": "Sí",
+ "no": "No",
+ "please_wait": "Por favor espera",
+ "enabling": "Habilitando",
+ "disabling": "Deshabilitando",
+ "beta": "Beta",
+ "or": "o",
+ "next": "Siguiente",
+ "back": "Atrás",
+ "cancelling": "Cancelando",
+ "configuring": "Configurando",
+ "clear": "Limpiar",
+ "import": "Importar",
+ "connect": "Conectar",
+ "authorizing": "Autorizando",
+ "processing": "Procesando",
+ "no_data_available": "No hay datos disponibles",
+ "from": "de {name}",
+ "authenticated": "Autenticado",
+ "select": "Seleccionar",
+ "upgrade": "Mejorar",
+ "add_seats": "Agregar asientos",
+ "label": "Etiqueta",
+ "priorities": "Prioridades",
+ "projects": "Proyectos",
+ "workspace": "Espacio de trabajo",
+ "workspaces": "Espacios de trabajo",
+ "team": "Equipo",
+ "teams": "Equipos",
+ "entity": "Entidad",
+ "entities": "Entidades",
+ "task": "Tarea",
+ "tasks": "Tareas",
+ "section": "Sección",
+ "sections": "Secciones",
+ "edit": "Editar",
+ "connecting": "Conectando",
+ "connected": "Conectado",
+ "disconnect": "Desconectar",
+ "disconnecting": "Desconectando",
+ "installing": "Instalando",
+ "install": "Instalar"
+ },
+
+ "form": {
+ "title": {
+ "required": "El título es obligatorio",
+ "max_length": "El título debe tener menos de {length} caracteres"
+ }
+ },
+
+ "entity": {
+ "grouping_title": "Agrupación de {entity}",
+ "priority": "Prioridad de {entity}",
+ "all": "Todos los {entity}",
+ "drop_here_to_move": "Suelta aquí para mover el {entity}",
+ "delete": {
+ "label": "Eliminar {entity}",
+ "success": "{entity} eliminado correctamente",
+ "failed": "Error al eliminar {entity}"
+ },
+ "update": {
+ "failed": "Error al actualizar {entity}",
+ "success": "{entity} actualizado correctamente"
+ },
+ "link_copied_to_clipboard": "Enlace de {entity} copiado al portapapeles",
+ "fetch": {
+ "failed": "Error al obtener {entity}"
+ },
+ "add": {
+ "success": "{entity} agregado correctamente",
+ "failed": "Error al agregar {entity}"
+ }
+ },
+
+ "epic": {
+ "all": "Todos los Epics",
+ "label": "{count, plural, one {Epic} other {Epics}}",
+ "new": "Nuevo Epic",
+ "adding": "Agregando epic",
+ "create": {
+ "success": "Epic creado correctamente"
+ },
+ "add": {
+ "press_enter": "Presiona 'Enter' para agregar otro epic",
+ "label": "Agregar Epic"
+ },
+ "title": {
+ "label": "Título del Epic",
+ "required": "El título del epic es obligatorio."
+ }
+ },
+
+ "issue": {
+ "label": "{count, plural, one {Elemento de trabajo} other {Elementos de trabajo}}",
+ "all": "Todos los elementos de trabajo",
+ "edit": "Editar elemento de trabajo",
+ "title": {
+ "label": "Título del elemento de trabajo",
+ "required": "El título del elemento de trabajo es obligatorio."
+ },
+ "add": {
+ "press_enter": "Presiona 'Enter' para agregar otro elemento de trabajo",
+ "label": "Agregar elemento de trabajo",
+ "cycle": {
+ "failed": "No se pudo agregar el elemento de trabajo al ciclo. Por favor, inténtalo de nuevo.",
+ "success": "{count, plural, one {Elemento de trabajo agregado} other {Elementos de trabajo agregados}} al ciclo correctamente.",
+ "loading": "Agregando {count, plural, one {elemento de trabajo} other {elementos de trabajo}} al ciclo"
+ },
+ "assignee": "Agregar asignados",
+ "start_date": "Agregar fecha de inicio",
+ "due_date": "Agregar fecha de vencimiento",
+ "parent": "Agregar elemento de trabajo padre",
+ "sub_issue": "Agregar sub-elemento de trabajo",
+ "relation": "Agregar relación",
+ "link": "Agregar enlace",
+ "existing": "Agregar elemento de trabajo existente"
+ },
+ "remove": {
+ "label": "Eliminar elemento de trabajo",
+ "cycle": {
+ "loading": "Eliminando elemento de trabajo del ciclo",
+ "success": "Elemento de trabajo eliminado del ciclo correctamente.",
+ "failed": "No se pudo eliminar el elemento de trabajo del ciclo. Por favor, inténtalo de nuevo."
+ },
+ "module": {
+ "loading": "Eliminando elemento de trabajo del módulo",
+ "success": "Elemento de trabajo eliminado del módulo correctamente.",
+ "failed": "No se pudo eliminar el elemento de trabajo del módulo. Por favor, inténtalo de nuevo."
+ },
+ "parent": {
+ "label": "Eliminar elemento de trabajo padre"
+ }
+ },
+ "new": "Nuevo elemento de trabajo",
+ "adding": "Agregando elemento de trabajo",
+ "create": {
+ "success": "Elemento de trabajo creado correctamente"
+ },
+ "priority": {
+ "urgent": "Urgente",
+ "high": "Alta",
+ "medium": "Media",
+ "low": "Baja"
+ },
+ "display": {
+ "properties": {
+ "label": "Mostrar propiedades",
+ "id": "ID",
+ "issue_type": "Tipo de elemento de trabajo",
+ "sub_issue_count": "Cantidad de sub-elementos",
+ "attachment_count": "Cantidad de archivos adjuntos",
+ "created_on": "Creado el",
+ "sub_issue": "Sub-elemento de trabajo"
+ },
+ "extra": {
+ "show_sub_issues": "Mostrar sub-elementos",
+ "show_empty_groups": "Mostrar grupos vacíos"
+ }
+ },
+ "layouts": {
+ "ordered_by_label": "Este diseño está ordenado por",
+ "list": "Lista",
+ "kanban": "Tablero",
+ "calendar": "Calendario",
+ "spreadsheet": "Tabla",
+ "gantt": "Línea de tiempo",
+ "title": {
+ "list": "Diseño de lista",
+ "kanban": "Diseño de tablero",
+ "calendar": "Diseño de calendario",
+ "spreadsheet": "Diseño de tabla",
+ "gantt": "Diseño de línea de tiempo"
+ }
+ },
+ "states": {
+ "active": "Activo",
+ "backlog": "Pendientes"
+ },
+ "comments": {
+ "placeholder": "Agregar comentario",
+ "switch": {
+ "private": "Cambiar a comentario privado",
+ "public": "Cambiar a comentario público"
+ },
+ "create": {
+ "success": "Comentario creado correctamente",
+ "error": "Error al crear el comentario. Por favor, inténtalo más tarde."
+ },
+ "update": {
+ "success": "Comentario actualizado correctamente",
+ "error": "Error al actualizar el comentario. Por favor, inténtalo más tarde."
+ },
+ "remove": {
+ "success": "Comentario eliminado correctamente",
+ "error": "Error al eliminar el comentario. Por favor, inténtalo más tarde."
+ },
+ "upload": {
+ "error": "Error al subir el archivo. Por favor, inténtalo más tarde."
+ }
+ },
+ "empty_state": {
+ "issue_detail": {
+ "title": "El elemento de trabajo no existe",
+ "description": "El elemento de trabajo que buscas no existe, ha sido archivado o ha sido eliminado.",
+ "primary_button": {
+ "text": "Ver otros elementos de trabajo"
+ }
+ }
+ },
+ "sibling": {
+ "label": "Elementos de trabajo hermanos"
+ },
+ "archive": {
+ "description": "Solo los elementos de trabajo completados\no cancelados pueden ser archivados",
+ "label": "Archivar elemento de trabajo",
+ "confirm_message": "¿Estás seguro de que quieres archivar el elemento de trabajo? Todos tus elementos archivados pueden ser restaurados más tarde.",
+ "success": {
+ "label": "Archivo exitoso",
+ "message": "Tus archivos se pueden encontrar en los archivos del proyecto."
+ },
+ "failed": {
+ "message": "No se pudo archivar el elemento de trabajo. Por favor, inténtalo de nuevo."
+ }
+ },
+ "restore": {
+ "success": {
+ "title": "Restauración exitosa",
+ "message": "Tu elemento de trabajo se puede encontrar en los elementos de trabajo del proyecto."
+ },
+ "failed": {
+ "message": "No se pudo restaurar el elemento de trabajo. Por favor, inténtalo de nuevo."
+ }
+ },
+ "relation": {
+ "relates_to": "Se relaciona con",
+ "duplicate": "Duplicado de",
+ "blocked_by": "Bloqueado por",
+ "blocking": "Bloqueando"
+ },
+ "copy_link": "Copiar enlace del elemento de trabajo",
+ "delete": {
+ "label": "Eliminar elemento de trabajo",
+ "error": "Error al eliminar el elemento de trabajo"
+ },
+ "subscription": {
+ "actions": {
+ "subscribed": "Suscrito al elemento de trabajo correctamente",
+ "unsubscribed": "Desuscrito del elemento de trabajo correctamente"
+ }
+ },
+ "select": {
+ "error": "Por favor selecciona al menos un elemento de trabajo",
+ "empty": "No hay elementos de trabajo seleccionados",
+ "add_selected": "Agregar elementos seleccionados"
+ },
+ "open_in_full_screen": "Abrir elemento de trabajo en pantalla completa"
+ },
+
+ "attachment": {
+ "error": "No se pudo adjuntar el archivo. Intenta subirlo de nuevo.",
+ "only_one_file_allowed": "Solo se puede subir un archivo a la vez.",
+ "file_size_limit": "El archivo debe tener {size}MB o menos de tamaño.",
+ "drag_and_drop": "Arrastra y suelta en cualquier lugar para subir",
+ "delete": "Eliminar archivo adjunto"
+ },
+
+ "label": {
+ "select": "Seleccionar etiqueta",
+ "create": {
+ "success": "Etiqueta creada correctamente",
+ "failed": "Error al crear la etiqueta",
+ "already_exists": "La etiqueta ya existe",
+ "type": "Escribe para agregar una nueva etiqueta"
+ }
+ },
+
+ "sub_work_item": {
+ "update": {
+ "success": "Sub-elemento actualizado correctamente",
+ "error": "Error al actualizar el sub-elemento"
+ },
+ "remove": {
+ "success": "Sub-elemento eliminado correctamente",
+ "error": "Error al eliminar el sub-elemento"
+ }
+ },
+
+ "view": {
+ "label": "{count, plural, one {Vista} other {Vistas}}",
+ "create": {
+ "label": "Crear vista"
+ },
+ "update": {
+ "label": "Actualizar vista"
+ }
+ },
+
+ "inbox_issue": {
+ "status": {
+ "pending": {
+ "title": "Pendiente",
+ "description": "Pendiente"
+ },
+ "declined": {
+ "title": "Rechazado",
+ "description": "Rechazado"
+ },
+ "snoozed": {
+ "title": "Pospuesto",
+ "description": "Faltan {days, plural, one{# día} other{# días}}"
+ },
+ "accepted": {
+ "title": "Aceptado",
+ "description": "Aceptado"
+ },
+ "duplicate": {
+ "title": "Duplicado",
+ "description": "Duplicado"
+ }
+ },
+ "modals": {
+ "decline": {
+ "title": "Rechazar elemento de trabajo",
+ "content": "¿Estás seguro de que quieres rechazar el elemento de trabajo {value}?"
+ },
+ "delete": {
+ "title": "Eliminar elemento de trabajo",
+ "content": "¿Estás seguro de que quieres eliminar el elemento de trabajo {value}?",
+ "success": "Elemento de trabajo eliminado correctamente"
+ }
+ },
+ "errors": {
+ "snooze_permission": "Solo los administradores del proyecto pueden posponer/desposponer elementos de trabajo",
+ "accept_permission": "Solo los administradores del proyecto pueden aceptar elementos de trabajo",
+ "decline_permission": "Solo los administradores del proyecto pueden rechazar elementos de trabajo"
+ },
+ "actions": {
+ "accept": "Aceptar",
+ "decline": "Rechazar",
+ "snooze": "Posponer",
+ "unsnooze": "Desposponer",
+ "copy": "Copiar enlace del elemento de trabajo",
+ "delete": "Eliminar",
+ "open": "Abrir elemento de trabajo",
+ "mark_as_duplicate": "Marcar como duplicado",
+ "move": "Mover {value} a elementos de trabajo del proyecto"
+ },
+ "source": {
+ "in-app": "en-app"
+ },
+ "order_by": {
+ "created_at": "Creado el",
+ "updated_at": "Actualizado el",
+ "id": "ID"
+ },
+ "label": "Intake",
+ "page_label": "{workspace} - Intake",
+ "modal": {
+ "title": "Crear elemento de trabajo de intake"
+ },
+ "tabs": {
+ "open": "Abiertos",
+ "closed": "Cerrados"
+ },
+ "empty_state": {
+ "sidebar_open_tab": {
+ "title": "No hay elementos de trabajo abiertos",
+ "description": "Encuentra elementos de trabajo abiertos aquí. Crea un nuevo elemento de trabajo."
+ },
+ "sidebar_closed_tab": {
+ "title": "No hay elementos de trabajo cerrados",
+ "description": "Todos los elementos de trabajo, ya sean aceptados o rechazados, se pueden encontrar aquí."
+ },
+ "sidebar_filter": {
+ "title": "No hay elementos de trabajo coincidentes",
+ "description": "Ningún elemento de trabajo coincide con el filtro aplicado en intake. Crea un nuevo elemento de trabajo."
+ },
+ "detail": {
+ "title": "Selecciona un elemento de trabajo para ver sus detalles."
+ }
+ }
+ },
+
+ "workspace_creation": {
+ "heading": "Crea tu espacio de trabajo",
+ "subheading": "Para comenzar a usar Plane, necesitas crear o unirte a un espacio de trabajo.",
+ "form": {
+ "name": {
+ "label": "Nombra tu espacio de trabajo",
+ "placeholder": "Algo familiar y reconocible es siempre lo mejor."
+ },
+ "url": {
+ "label": "Establece la URL de tu espacio de trabajo",
+ "placeholder": "Escribe o pega una URL",
+ "edit_slug": "Solo puedes editar el slug de la URL"
+ },
+ "organization_size": {
+ "label": "¿Cuántas personas usarán este espacio de trabajo?",
+ "placeholder": "Selecciona un rango"
+ }
+ },
+ "errors": {
+ "creation_disabled": {
+ "title": "Solo el administrador de tu instancia puede crear espacios de trabajo",
+ "description": "Si conoces la dirección de correo electrónico del administrador de tu instancia, haz clic en el botón de abajo para ponerte en contacto con él.",
+ "request_button": "Solicitar administrador de instancia"
+ },
+ "validation": {
+ "name_alphanumeric": "Los nombres de espacios de trabajo solo pueden contener (' '), ('-'), ('_') y caracteres alfanuméricos.",
+ "name_length": "Limita tu nombre a 80 caracteres.",
+ "url_alphanumeric": "Las URLs solo pueden contener ('-') y caracteres alfanuméricos.",
+ "url_length": "Limita tu URL a 48 caracteres.",
+ "url_already_taken": "¡La URL del espacio de trabajo ya está en uso!"
+ }
+ },
+ "request_email": {
+ "subject": "Solicitando un nuevo espacio de trabajo",
+ "body": "Hola administrador(es) de instancia,\n\nPor favor, crea un nuevo espacio de trabajo con la URL [/nombre-espacio-trabajo] para [propósito de crear el espacio de trabajo].\n\nGracias,\n{firstName} {lastName}\n{email}"
+ },
+ "button": {
+ "default": "Crear espacio de trabajo",
+ "loading": "Creando espacio de trabajo"
+ },
+ "toast": {
+ "success": {
+ "title": "Éxito",
+ "message": "Espacio de trabajo creado correctamente"
+ },
+ "error": {
+ "title": "Error",
+ "message": "No se pudo crear el espacio de trabajo. Por favor, inténtalo de nuevo."
+ }
+ }
+ },
+
+ "workspace_dashboard": {
+ "empty_state": {
+ "general": {
+ "title": "Resumen de tus proyectos, actividad y métricas",
+ "description": "Bienvenido a Plane, estamos emocionados de tenerte aquí. Crea tu primer proyecto y rastrea tus elementos de trabajo, y esta página se transformará en un espacio que te ayuda a progresar. Los administradores también verán elementos que ayudan a su equipo a progresar.",
+ "primary_button": {
+ "text": "Construye tu primer proyecto",
+ "comic": {
+ "title": "Todo comienza con un proyecto en Plane",
+ "description": "Un proyecto podría ser la hoja de ruta de un producto, una campaña de marketing o el lanzamiento de un nuevo automóvil."
+ }
+ }
+ }
+ }
+ },
+
+ "workspace_analytics": {
+ "label": "Análisis",
+ "page_label": "{workspace} - Análisis",
+ "open_tasks": "Total de tareas abiertas",
+ "error": "Hubo un error al obtener los datos.",
+ "work_items_closed_in": "Elementos de trabajo cerrados en",
+ "selected_projects": "Proyectos seleccionados",
+ "total_members": "Total de miembros",
+ "total_cycles": "Total de Ciclos",
+ "total_modules": "Total de Módulos",
+ "pending_work_items": {
+ "title": "Elementos de trabajo pendientes",
+ "empty_state": "El análisis de elementos de trabajo pendientes por compañeros aparece aquí."
+ },
+ "work_items_closed_in_a_year": {
+ "title": "Elementos de trabajo cerrados en un año",
+ "empty_state": "Cierra elementos de trabajo para ver su análisis en forma de gráfico."
+ },
+ "most_work_items_created": {
+ "title": "Más elementos de trabajo creados",
+ "empty_state": "Los compañeros y el número de elementos de trabajo creados por ellos aparecen aquí."
+ },
+ "most_work_items_closed": {
+ "title": "Más elementos de trabajo cerrados",
+ "empty_state": "Los compañeros y el número de elementos de trabajo cerrados por ellos aparecen aquí."
+ },
+ "tabs": {
+ "scope_and_demand": "Alcance y Demanda",
+ "custom": "Análisis Personalizado"
+ },
+ "empty_state": {
+ "general": {
+ "title": "Rastrea el progreso, cargas de trabajo y asignaciones. Identifica tendencias, elimina bloqueos y mueve el trabajo más rápido",
+ "description": "Observa el alcance versus la demanda, estimaciones y el aumento del alcance. Obtén el rendimiento por miembros del equipo y equipos, y asegúrate de que tu proyecto se ejecute a tiempo.",
+ "primary_button": {
+ "text": "Inicia tu primer proyecto",
+ "comic": {
+ "title": "El análisis funciona mejor con Ciclos + Módulos",
+ "description": "Primero, organiza tus elementos de trabajo en Ciclos y, si puedes, agrupa los elementos de trabajo que abarcan más de un ciclo en Módulos. Revisa ambos en la navegación izquierda."
+ }
+ }
+ }
+ }
+ },
+
+ "workspace_projects": {
+ "label": "{count, plural, one {Proyecto} other {Proyectos}}",
+ "create": {
+ "label": "Agregar Proyecto"
+ },
+ "network": {
+ "private": {
+ "title": "Privado",
+ "description": "Accesible solo por invitación"
+ },
+ "public": {
+ "title": "Público",
+ "description": "Cualquiera en el espacio de trabajo excepto Invitados puede unirse"
+ }
+ },
+ "error": {
+ "permission": "No tienes permiso para realizar esta acción.",
+ "cycle_delete": "Error al eliminar el ciclo",
+ "module_delete": "Error al eliminar el módulo",
+ "issue_delete": "Error al eliminar el elemento de trabajo"
+ },
+ "state": {
+ "backlog": "Pendiente",
+ "unstarted": "Sin iniciar",
+ "started": "Iniciado",
+ "completed": "Completado",
+ "cancelled": "Cancelado"
+ },
+ "sort": {
+ "manual": "Manual",
+ "name": "Nombre",
+ "created_at": "Fecha de creación",
+ "members_length": "Número de miembros"
+ },
+ "scope": {
+ "my_projects": "Mis proyectos",
+ "archived_projects": "Archivados"
+ },
+ "common": {
+ "months_count": "{months, plural, one{# mes} other{# meses}}"
+ },
+ "empty_state": {
+ "general": {
+ "title": "No hay proyectos activos",
+ "description": "Piensa en cada proyecto como el padre para el trabajo orientado a objetivos. Los proyectos son donde viven las Tareas, Ciclos y Módulos y, junto con tus colegas, te ayudan a alcanzar ese objetivo. Crea un nuevo proyecto o filtra por proyectos archivados.",
+ "primary_button": {
+ "text": "Inicia tu primer proyecto",
+ "comic": {
+ "title": "Todo comienza con un proyecto en Plane",
+ "description": "Un proyecto podría ser la hoja de ruta de un producto, una campaña de marketing o el lanzamiento de un nuevo automóvil."
+ }
+ }
+ },
+ "no_projects": {
+ "title": "Sin proyecto",
+ "description": "Para crear elementos de trabajo o gestionar tu trabajo, necesitas crear un proyecto o ser parte de uno.",
+ "primary_button": {
+ "text": "Inicia tu primer proyecto",
+ "comic": {
+ "title": "Todo comienza con un proyecto en Plane",
+ "description": "Un proyecto podría ser la hoja de ruta de un producto, una campaña de marketing o el lanzamiento de un nuevo automóvil."
+ }
+ }
+ },
+ "filter": {
+ "title": "No hay proyectos coincidentes",
+ "description": "No se detectaron proyectos con los criterios coincidentes. \n Crea un nuevo proyecto en su lugar."
+ },
+ "search": {
+ "description": "No se detectaron proyectos con los criterios coincidentes.\nCrea un nuevo proyecto en su lugar"
+ }
+ }
+ },
+
+ "workspace_views": {
+ "add_view": "Agregar vista",
+ "empty_state": {
+ "all-issues": {
+ "title": "No hay elementos de trabajo en el proyecto",
+ "description": "¡Primer proyecto completado! Ahora, divide tu trabajo en piezas rastreables con elementos de trabajo. ¡Vamos!",
+ "primary_button": {
+ "text": "Crear nuevo elemento de trabajo"
+ }
+ },
+ "assigned": {
+ "title": "No hay elementos de trabajo aún",
+ "description": "Los elementos de trabajo asignados a ti se pueden rastrear desde aquí.",
+ "primary_button": {
+ "text": "Crear nuevo elemento de trabajo"
+ }
+ },
+ "created": {
+ "title": "No hay elementos de trabajo aún",
+ "description": "Todos los elementos de trabajo creados por ti vienen aquí, rastréalos aquí directamente.",
+ "primary_button": {
+ "text": "Crear nuevo elemento de trabajo"
+ }
+ },
+ "subscribed": {
+ "title": "No hay elementos de trabajo aún",
+ "description": "Suscríbete a los elementos de trabajo que te interesan, rastréalos todos aquí."
+ },
+ "custom-view": {
+ "title": "No hay elementos de trabajo aún",
+ "description": "Elementos de trabajo que aplican a los filtros, rastréalos todos aquí."
+ }
+ }
+ },
+
+ "workspace_settings": {
+ "label": "Configuración del espacio de trabajo",
+ "page_label": "{workspace} - Configuración general",
+ "key_created": "Clave creada",
+ "copy_key": "Copia y guarda esta clave secreta en Plane Pages. No podrás ver esta clave después de hacer clic en Cerrar. Se ha descargado un archivo CSV que contiene la clave.",
+ "token_copied": "Token copiado al portapapeles.",
+ "settings": {
+ "general": {
+ "title": "General",
+ "upload_logo": "Subir logo",
+ "edit_logo": "Editar logo",
+ "name": "Nombre del espacio de trabajo",
+ "company_size": "Tamaño de la empresa",
+ "url": "URL del espacio de trabajo",
+ "update_workspace": "Actualizar espacio de trabajo",
+ "delete_workspace": "Eliminar espacio de trabajo",
+ "delete_workspace_description": "Al eliminar un espacio de trabajo, todos los datos y recursos dentro de ese espacio de trabajo se eliminarán permanentemente y no se podrán recuperar.",
+ "delete_btn": "Eliminar mi espacio de trabajo",
+ "errors": {
+ "name": {
+ "required": "El nombre es obligatorio",
+ "max_length": "El nombre del espacio de trabajo no debe exceder los 80 caracteres"
+ },
+ "company_size": {
+ "required": "El tamaño de la empresa es obligatorio"
+ }
+ }
+ },
+ "members": {
+ "title": "Miembros",
+ "add_member": "Agregar miembro",
+ "invitations_sent_successfully": "Invitaciones enviadas exitosamente",
+ "leave_confirmation": "¿Estás seguro de que quieres abandonar el espacio de trabajo? Ya no tendrás acceso a este espacio de trabajo. Esta acción no se puede deshacer.",
+ "details": {
+ "full_name": "Nombre completo",
+ "display_name": "Nombre para mostrar",
+ "email_address": "Dirección de correo electrónico",
+ "account_type": "Tipo de cuenta",
+ "authentication": "Autenticación",
+ "joining_date": "Fecha de incorporación"
+ },
+ "modal": {
+ "title": "Invitar personas a colaborar",
+ "description": "Invita personas a colaborar en tu espacio de trabajo.",
+ "button": "Enviar invitaciones",
+ "button_loading": "Enviando invitaciones",
+ "placeholder": "[email protected]",
+ "errors": {
+ "required": "Necesitamos una dirección de correo electrónico para invitarlos.",
+ "invalid": "El correo electrónico no es válido"
+ }
+ }
+ },
+ "billing_and_plans": {
+ "title": "Facturación y Planes",
+ "current_plan": "Plan actual",
+ "free_plan": "Actualmente estás usando el plan gratuito",
+ "view_plans": "Ver planes"
+ },
+ "exports": {
+ "title": "Exportaciones",
+ "exporting": "Exportando",
+ "previous_exports": "Exportaciones anteriores",
+ "export_separate_files": "Exportar los datos en archivos separados",
+ "modal": {
+ "title": "Exportar a",
+ "toasts": {
+ "success": {
+ "title": "Exportación exitosa",
+ "message": "Podrás descargar el {entity} exportado desde la exportación anterior."
+ },
+ "error": {
+ "title": "Exportación fallida",
+ "message": "La exportación no tuvo éxito. Por favor, inténtalo de nuevo."
+ }
+ }
+ }
+ },
+ "webhooks": {
+ "title": "Webhooks",
+ "add_webhook": "Agregar webhook",
+ "modal": {
+ "title": "Crear webhook",
+ "details": "Detalles del webhook",
+ "payload": "URL del payload",
+ "question": "¿Qué eventos te gustaría que activaran este webhook?",
+ "error": "La URL es obligatoria"
+ },
+ "secret_key": {
+ "title": "Clave secreta",
+ "message": "Genera un token para iniciar sesión en el payload del webhook"
+ },
+ "options": {
+ "all": "Envíame todo",
+ "individual": "Seleccionar eventos individuales"
+ },
+ "toasts": {
+ "created": {
+ "title": "Webhook creado",
+ "message": "El webhook se ha creado exitosamente"
+ },
+ "not_created": {
+ "title": "Webhook no creado",
+ "message": "No se pudo crear el webhook"
+ },
+ "updated": {
+ "title": "Webhook actualizado",
+ "message": "El webhook se ha actualizado exitosamente"
+ },
+ "not_updated": {
+ "title": "Webhook no actualizado",
+ "message": "No se pudo actualizar el webhook"
+ },
+ "removed": {
+ "title": "Webhook eliminado",
+ "message": "El webhook se ha eliminado exitosamente"
+ },
+ "not_removed": {
+ "title": "Webhook no eliminado",
+ "message": "No se pudo eliminar el webhook"
+ },
+ "secret_key_copied": {
+ "message": "Clave secreta copiada al portapapeles."
+ },
+ "secret_key_not_copied": {
+ "message": "Ocurrió un error al copiar la clave secreta."
+ }
+ }
+ },
+ "api_tokens": {
+ "title": "Tokens de API",
+ "add_token": "Agregar token de API",
+ "create_token": "Crear token",
+ "never_expires": "Nunca expira",
+ "generate_token": "Generar token",
+ "generating": "Generando",
+ "delete": {
+ "title": "Eliminar token de API",
+ "description": "Cualquier aplicación que use este token ya no tendrá acceso a los datos de Plane. Esta acción no se puede deshacer.",
+ "success": {
+ "title": "¡Éxito!",
+ "message": "El token de API se ha eliminado exitosamente"
+ },
+ "error": {
+ "title": "¡Error!",
+ "message": "No se pudo eliminar el token de API"
+ }
+ }
+ }
+ },
+ "empty_state": {
+ "api_tokens": {
+ "title": "No se han creado tokens de API",
+ "description": "Las APIs de Plane se pueden usar para integrar tus datos en Plane con cualquier sistema externo. Crea un token para comenzar."
+ },
+ "webhooks": {
+ "title": "No se han agregado webhooks",
+ "description": "Crea webhooks para recibir actualizaciones en tiempo real y automatizar acciones."
+ },
+ "exports": {
+ "title": "No hay exportaciones aún",
+ "description": "Cada vez que exportes, también tendrás una copia aquí para referencia."
+ },
+ "imports": {
+ "title": "No hay importaciones aún",
+ "description": "Encuentra todas tus importaciones anteriores aquí y descárgalas."
+ }
+ }
+ },
+
+ "profile": {
+ "label": "Perfil",
+ "page_label": "Tu trabajo",
+ "work": "Trabajo",
+ "details": {
+ "joined_on": "Se unió el",
+ "time_zone": "Zona horaria"
+ },
+ "stats": {
+ "workload": "Carga de trabajo",
+ "overview": "Resumen",
+ "created": "Elementos de trabajo creados",
+ "assigned": "Elementos de trabajo asignados",
+ "subscribed": "Elementos de trabajo suscritos",
+ "state_distribution": {
+ "title": "Elementos de trabajo por estado",
+ "empty": "Crea elementos de trabajo para verlos por estados en el gráfico para un mejor análisis."
+ },
+ "priority_distribution": {
+ "title": "Elementos de trabajo por Prioridad",
+ "empty": "Crea elementos de trabajo para verlos por prioridad en el gráfico para un mejor análisis."
+ },
+ "recent_activity": {
+ "title": "Actividad reciente",
+ "empty": "No pudimos encontrar datos. Por favor revisa tus entradas",
+ "button": "Descargar actividad de hoy",
+ "button_loading": "Descargando"
+ }
+ },
+ "actions": {
+ "profile": "Perfil",
+ "security": "Seguridad",
+ "activity": "Actividad",
+ "appearance": "Apariencia",
+ "notifications": "Notificaciones"
+ },
+ "tabs": {
+ "summary": "Resumen",
+ "assigned": "Asignado",
+ "created": "Creado",
+ "subscribed": "Suscrito",
+ "activity": "Actividad"
+ },
+ "empty_state": {
+ "activity": {
+ "title": "Aún no hay actividades",
+ "description": "¡Comienza creando un nuevo elemento de trabajo! Agrégale detalles y propiedades. Explora más en Plane para ver tu actividad."
+ },
+ "assigned": {
+ "title": "No hay elementos de trabajo asignados a ti",
+ "description": "Los elementos de trabajo asignados a ti se pueden rastrear desde aquí."
+ },
+ "created": {
+ "title": "Aún no hay elementos de trabajo",
+ "description": "Todos los elementos de trabajo creados por ti aparecen aquí, rastréalos directamente aquí."
+ },
+ "subscribed": {
+ "title": "Aún no hay elementos de trabajo",
+ "description": "Suscríbete a los elementos de trabajo que te interesen, rastréalos todos aquí."
+ }
+ }
+ },
+
+ "project_settings": {
+ "general": {
+ "enter_project_id": "Ingresa el ID del proyecto",
+ "please_select_a_timezone": "Por favor selecciona una zona horaria",
+ "archive_project": {
+ "title": "Archivar proyecto",
+ "description": "Archivar un proyecto lo eliminará de tu navegación lateral aunque aún podrás acceder a él desde tu página de proyectos. Puedes restaurar el proyecto o eliminarlo cuando quieras.",
+ "button": "Archivar proyecto"
+ },
+ "delete_project": {
+ "title": "Eliminar proyecto",
+ "description": "Al eliminar un proyecto, todos los datos y recursos dentro de ese proyecto se eliminarán permanentemente y no podrán recuperarse.",
+ "button": "Eliminar mi proyecto"
+ },
+ "toast": {
+ "success": "Proyecto actualizado exitosamente",
+ "error": "No se pudo actualizar el proyecto. Por favor intenta de nuevo."
+ }
+ },
+ "members": {
+ "label": "Miembros",
+ "project_lead": "Líder del proyecto",
+ "default_assignee": "Asignado por defecto",
+ "guest_super_permissions": {
+ "title": "Otorgar acceso de visualización a todos los elementos de trabajo para usuarios invitados:",
+ "sub_heading": "Esto permitirá a los invitados tener acceso de visualización a todos los elementos de trabajo del proyecto."
+ },
+ "invite_members": {
+ "title": "Invitar miembros",
+ "sub_heading": "Invita miembros para trabajar en tu proyecto.",
+ "select_co_worker": "Seleccionar compañero de trabajo"
+ }
+ },
+ "states": {
+ "describe_this_state_for_your_members": "Describe este estado para tus miembros."
+ },
+ "labels": {
+ "label_title": "Título de la etiqueta",
+ "label_title_is_required": "El título de la etiqueta es requerido",
+ "label_max_char": "El nombre de la etiqueta no debe exceder 255 caracteres",
+ "toast": {
+ "error": "Error al actualizar la etiqueta"
+ }
+ },
+ "estimates": {
+ "title": "Habilitar estimaciones para mi proyecto",
+ "description": "Ayudan a comunicar la complejidad y la carga de trabajo del equipo."
+ },
+ "automations": {
+ "label": "Automatizaciones",
+ "auto-archive": {
+ "title": "Auto-archivar elementos de trabajo cerrados",
+ "description": "Plane archivará automáticamente los elementos de trabajo que se hayan completado o cancelado.",
+ "duration": "Auto-archivar elementos de trabajo que están cerrados por"
+ },
+ "auto-close": {
+ "title": "Auto-cerrar elementos de trabajo",
+ "description": "Plane cerrará automáticamente los elementos de trabajo que no se hayan completado o cancelado.",
+ "duration": "Auto-cerrar elementos de trabajo que están inactivos por",
+ "auto_close_status": "Estado de auto-cierre"
+ }
+ },
+
+ "empty_state": {
+ "labels": {
+ "title": "Aún no hay etiquetas",
+ "description": "Crea etiquetas para ayudar a organizar y filtrar elementos de trabajo en tu proyecto."
+ },
+ "estimates": {
+ "title": "Aún no hay sistemas de estimación",
+ "description": "Crea un conjunto de estimaciones para comunicar la cantidad de trabajo por elemento de trabajo.",
+ "primary_button": "Agregar sistema de estimación"
+ }
+ }
+ },
+
+ "project_cycles": {
+ "add_cycle": "Agregar ciclo",
+ "more_details": "Más detalles",
+ "cycle": "Ciclo",
+ "update_cycle": "Actualizar ciclo",
+ "create_cycle": "Crear ciclo",
+ "no_matching_cycles": "No hay ciclos coincidentes",
+ "remove_filters_to_see_all_cycles": "Elimina los filtros para ver todos los ciclos",
+ "remove_search_criteria_to_see_all_cycles": "Elimina los criterios de búsqueda para ver todos los ciclos",
+ "only_completed_cycles_can_be_archived": "Solo los ciclos completados pueden ser archivados",
+ "active_cycle": {
+ "label": "Ciclo activo",
+ "progress": "Progreso",
+ "chart": "Gráfico de avance",
+ "priority_issue": "Elementos de trabajo prioritarios",
+ "assignees": "Asignados",
+ "issue_burndown": "Avance de elementos de trabajo",
+ "ideal": "Ideal",
+ "current": "Actual",
+ "labels": "Etiquetas"
+ },
+ "upcoming_cycle": {
+ "label": "Ciclo próximo"
+ },
+ "completed_cycle": {
+ "label": "Ciclo completado"
+ },
+ "status": {
+ "days_left": "Días restantes",
+ "completed": "Completado",
+ "yet_to_start": "Por comenzar",
+ "in_progress": "En progreso",
+ "draft": "Borrador"
+ },
+ "action": {
+ "restore": {
+ "title": "Restaurar ciclo",
+ "success": {
+ "title": "Ciclo restaurado",
+ "description": "El ciclo ha sido restaurado."
+ },
+ "failed": {
+ "title": "Falló la restauración del ciclo",
+ "description": "No se pudo restaurar el ciclo. Por favor intenta de nuevo."
+ }
+ },
+ "favorite": {
+ "loading": "Agregando ciclo a favoritos",
+ "success": {
+ "description": "Ciclo agregado a favoritos.",
+ "title": "¡Éxito!"
+ },
+ "failed": {
+ "description": "No se pudo agregar el ciclo a favoritos. Por favor intenta de nuevo.",
+ "title": "¡Error!"
+ }
+ },
+ "unfavorite": {
+ "loading": "Eliminando ciclo de favoritos",
+ "success": {
+ "description": "Ciclo eliminado de favoritos.",
+ "title": "¡Éxito!"
+ },
+ "failed": {
+ "description": "No se pudo eliminar el ciclo de favoritos. Por favor intenta de nuevo.",
+ "title": "¡Error!"
+ }
+ },
+ "update": {
+ "loading": "Actualizando ciclo",
+ "success": {
+ "description": "Ciclo actualizado exitosamente.",
+ "title": "¡Éxito!"
+ },
+ "failed": {
+ "description": "Error al actualizar el ciclo. Por favor intenta de nuevo.",
+ "title": "¡Error!"
+ },
+ "error": {
+ "already_exists": "Ya tienes un ciclo en las fechas dadas, si quieres crear un ciclo en borrador, puedes hacerlo eliminando ambas fechas."
+ }
+ }
+ },
+ "empty_state": {
+ "general": {
+ "title": "Agrupa y delimita tu trabajo en Ciclos.",
+ "description": "Divide el trabajo en bloques de tiempo, trabaja hacia atrás desde la fecha límite de tu proyecto para establecer fechas, y haz un progreso tangible como equipo.",
+ "primary_button": {
+ "text": "Establece tu primer ciclo",
+ "comic": {
+ "title": "Los ciclos son bloques de tiempo repetitivos.",
+ "description": "Un sprint, una iteración, o cualquier otro término que uses para el seguimiento semanal o quincenal del trabajo es un ciclo."
+ }
+ }
+ },
+ "no_issues": {
+ "title": "No hay elementos de trabajo agregados al ciclo",
+ "description": "Agrega o crea elementos de trabajo que desees delimitar y entregar dentro de este ciclo",
+ "primary_button": {
+ "text": "Crear nuevo elemento de trabajo"
+ },
+ "secondary_button": {
+ "text": "Agregar elemento de trabajo existente"
+ }
+ },
+ "completed_no_issues": {
+ "title": "No hay elementos de trabajo en el ciclo",
+ "description": "No hay elementos de trabajo en el ciclo. Los elementos de trabajo están transferidos u ocultos. Para ver elementos de trabajo ocultos si los hay, actualiza tus propiedades de visualización según corresponda."
+ },
+ "active": {
+ "title": "No hay ciclo activo",
+ "description": "Un ciclo activo incluye cualquier período que abarque la fecha de hoy dentro de su rango. Encuentra el progreso y los detalles del ciclo activo aquí."
+ },
+ "archived": {
+ "title": "Aún no hay ciclos archivados",
+ "description": "Para mantener ordenado tu proyecto, archiva los ciclos completados. Encuéntralos aquí una vez archivados."
+ }
+ }
+ },
+
+ "project_issues": {
+ "empty_state": {
+ "no_issues": {
+ "title": "Crea un elemento de trabajo y asígnalo a alguien, incluso a ti mismo",
+ "description": "Piensa en los elementos de trabajo como trabajos, tareas, trabajo o JTBD. Los cuales nos gustan. Un elemento de trabajo y sus sub-elementos de trabajo son generalmente acciones basadas en tiempo asignadas a miembros de tu equipo. Tu equipo crea, asigna y completa elementos de trabajo para mover tu proyecto hacia su objetivo.",
+ "primary_button": {
+ "text": "Crea tu primer elemento de trabajo",
+ "comic": {
+ "title": "Los elementos de trabajo son bloques de construcción en Plane.",
+ "description": "Rediseñar la interfaz de Plane, Cambiar la marca de la empresa o Lanzar el nuevo sistema de inyección de combustible son ejemplos de elementos de trabajo que probablemente tienen sub-elementos de trabajo."
+ }
+ }
+ },
+ "no_archived_issues": {
+ "title": "Aún no hay elementos de trabajo archivados",
+ "description": "Manualmente o a través de automatización, puedes archivar elementos de trabajo que estén completados o cancelados. Encuéntralos aquí una vez archivados.",
+ "primary_button": {
+ "text": "Establecer automatización"
+ }
+ },
+ "issues_empty_filter": {
+ "title": "No se encontraron elementos de trabajo que coincidan con los filtros aplicados",
+ "secondary_button": {
+ "text": "Limpiar todos los filtros"
+ }
+ }
+ }
+ },
+
+ "project_module": {
+ "add_module": "Agregar Módulo",
+ "update_module": "Actualizar Módulo",
+ "create_module": "Crear Módulo",
+ "archive_module": "Archivar Módulo",
+ "restore_module": "Restaurar Módulo",
+ "delete_module": "Eliminar módulo",
+ "empty_state": {
+ "general": {
+ "title": "Mapea los hitos de tu proyecto a Módulos y rastrea el trabajo agregado fácilmente.",
+ "description": "Un grupo de elementos de trabajo que pertenecen a un padre lógico y jerárquico forman un módulo. Piensa en ellos como una forma de rastrear el trabajo por hitos del proyecto. Tienen sus propios períodos y fechas límite, así como análisis para ayudarte a ver qué tan cerca o lejos estás de un hito.",
+ "primary_button": {
+ "text": "Construye tu primer módulo",
+ "comic": {
+ "title": "Los módulos ayudan a agrupar el trabajo por jerarquía.",
+ "description": "Un módulo de carrito, un módulo de chasis y un módulo de almacén son buenos ejemplos de esta agrupación."
+ }
+ }
+ },
+ "no_issues": {
+ "title": "No hay elementos de trabajo en el módulo",
+ "description": "Crea o agrega elementos de trabajo que quieras lograr como parte de este módulo",
+ "primary_button": {
+ "text": "Crear nuevos elementos de trabajo"
+ },
+ "secondary_button": {
+ "text": "Agregar un elemento de trabajo existente"
+ }
+ },
+ "archived": {
+ "title": "Aún no hay Módulos archivados",
+ "description": "Para mantener ordenado tu proyecto, archiva los módulos completados o cancelados. Encuéntralos aquí una vez archivados."
+ },
+ "sidebar": {
+ "in_active": "Este módulo aún no está activo.",
+ "invalid_date": "Fecha inválida. Por favor ingresa una fecha válida."
+ }
+ },
+ "quick_actions": {
+ "archive_module": "Archivar módulo",
+ "archive_module_description": "Solo los módulos completados o\ncancelados pueden ser archivados.",
+ "delete_module": "Eliminar módulo"
+ },
+ "toast": {
+ "copy": {
+ "success": "Enlace del módulo copiado al portapapeles"
+ },
+ "delete": {
+ "success": "Módulo eliminado exitosamente",
+ "error": "Error al eliminar el módulo"
+ }
+ }
+ },
+
+ "project_views": {
+ "empty_state": {
+ "general": {
+ "title": "Guarda vistas filtradas para tu proyecto. Crea tantas como necesites",
+ "description": "Las vistas son un conjunto de filtros guardados que usas frecuentemente o a los que quieres tener fácil acceso. Todos tus colegas en un proyecto pueden ver las vistas de todos y elegir la que mejor se adapte a sus necesidades.",
+ "primary_button": {
+ "text": "Crea tu primera vista",
+ "comic": {
+ "title": "Las vistas funcionan sobre las propiedades de los Elementos de trabajo.",
+ "description": "Puedes crear una vista desde aquí con tantas propiedades como filtros como consideres apropiado."
+ }
+ }
+ },
+ "filter": {
+ "title": "No hay vistas coincidentes",
+ "description": "Ninguna vista coincide con los criterios de búsqueda. \n Crea una nueva vista en su lugar."
+ }
+ }
+ },
+
+ "project_page": {
+ "empty_state": {
+ "general": {
+ "title": "Escribe una nota, un documento o una base de conocimiento completa. Obtén ayuda de Galileo, el asistente de IA de Plane, para comenzar",
+ "description": "Las páginas son espacios para pensamientos en Plane. Toma notas de reuniones, fórmalas fácilmente, integra elementos de trabajo, organízalas usando una biblioteca de componentes y mantenlas todas en el contexto de tu proyecto. Para hacer cualquier documento rápidamente, invoca a Galileo, la IA de Plane, con un atajo o haciendo clic en un botón.",
+ "primary_button": {
+ "text": "Crea tu primera página"
+ }
+ },
+ "private": {
+ "title": "Aún no hay páginas privadas",
+ "description": "Mantén tus pensamientos privados aquí. Cuando estés listo para compartir, el equipo está a solo un clic de distancia.",
+ "primary_button": {
+ "text": "Crea tu primera página"
+ }
+ },
+ "public": {
+ "title": "Aún no hay páginas públicas",
+ "description": "Ve las páginas compartidas con todos en tu proyecto aquí mismo.",
+ "primary_button": {
+ "text": "Crea tu primera página"
+ }
+ },
+ "archived": {
+ "title": "Aún no hay páginas archivadas",
+ "description": "Archiva las páginas que no estén en tu radar. Accede a ellas aquí cuando las necesites."
+ }
+ }
+ },
+
+ "command_k": {
+ "empty_state": {
+ "search": {
+ "title": "No se encontraron resultados"
+ }
+ }
+ },
+
+ "issue_relation": {
+ "empty_state": {
+ "search": {
+ "title": "No se encontraron elementos de trabajo coincidentes"
+ },
+ "no_issues": {
+ "title": "No se encontraron elementos de trabajo"
+ }
+ }
+ },
+
+ "issue_comment": {
+ "empty_state": {
+ "general": {
+ "title": "Aún no hay comentarios",
+ "description": "Los comentarios pueden usarse como un espacio de discusión y seguimiento para los elementos de trabajo"
+ }
+ }
+ },
+
+ "notification": {
+ "label": "Bandeja de entrada",
+ "page_label": "{workspace} - Bandeja de entrada",
+ "options": {
+ "mark_all_as_read": "Marcar todo como leído",
+ "mark_read": "Marcar como leído",
+ "mark_unread": "Marcar como no leído",
+ "refresh": "Actualizar",
+ "filters": "Filtros de bandeja de entrada",
+ "show_unread": "Mostrar no leídos",
+ "show_snoozed": "Mostrar pospuestos",
+ "show_archived": "Mostrar archivados",
+ "mark_archive": "Archivar",
+ "mark_unarchive": "Desarchivar",
+ "mark_snooze": "Posponer",
+ "mark_unsnooze": "Quitar posposición"
+ },
+ "toasts": {
+ "read": "Notificación marcada como leída",
+ "unread": "Notificación marcada como no leída",
+ "archived": "Notificación marcada como archivada",
+ "unarchived": "Notificación marcada como no archivada",
+ "snoozed": "Notificación pospuesta",
+ "unsnoozed": "Notificación posposición cancelada"
+ },
+ "empty_state": {
+ "detail": {
+ "title": "Selecciona para ver detalles."
+ },
+ "all": {
+ "title": "No hay elementos de trabajo asignados",
+ "description": "Las actualizaciones de elementos de trabajo asignados a ti se pueden \n ver aquí"
+ },
+ "mentions": {
+ "title": "No hay elementos de trabajo asignados",
+ "description": "Las actualizaciones de elementos de trabajo asignados a ti se pueden \n ver aquí"
+ }
+ },
+ "tabs": {
+ "all": "Todo",
+ "mentions": "Menciones"
+ },
+ "filter": {
+ "assigned": "Asignado a mí",
+ "created": "Creado por mí",
+ "subscribed": "Suscrito por mí"
+ },
+ "snooze": {
+ "1_day": "1 día",
+ "3_days": "3 días",
+ "5_days": "5 días",
+ "1_week": "1 semana",
+ "2_weeks": "2 semanas",
+ "custom": "Personalizado"
+ }
+ },
+
+ "active_cycle": {
+ "empty_state": {
+ "progress": {
+ "title": "Agrega elementos de trabajo al ciclo para ver su progreso"
+ },
+ "chart": {
+ "title": "Agrega elementos de trabajo al ciclo para ver el gráfico de avance."
+ },
+ "priority_issue": {
+ "title": "Observa los elementos de trabajo de alta prioridad abordados en el ciclo de un vistazo."
+ },
+ "assignee": {
+ "title": "Agrega asignados a los elementos de trabajo para ver un desglose del trabajo por asignados."
+ },
+ "label": {
+ "title": "Agrega etiquetas a los elementos de trabajo para ver el desglose del trabajo por etiquetas."
+ }
+ }
+ },
+
+ "disabled_project": {
+ "empty_state": {
+ "inbox": {
+ "title": "Intake no está habilitado para el proyecto.",
+ "description": "Intake te ayuda a gestionar las solicitudes entrantes a tu proyecto y agregarlas como elementos de trabajo en tu flujo de trabajo. Habilita Intake desde la configuración del proyecto para gestionar las solicitudes.",
+ "primary_button": {
+ "text": "Gestionar funciones"
+ }
+ },
+ "cycle": {
+ "title": "Los Ciclos no están habilitados para este proyecto.",
+ "description": "Divide el trabajo en fragmentos limitados por tiempo, trabaja hacia atrás desde la fecha límite de tu proyecto para establecer fechas y haz un progreso tangible como equipo. Habilita la función de ciclos para tu proyecto para comenzar a usarlos.",
+ "primary_button": {
+ "text": "Gestionar funciones"
+ }
+ },
+ "module": {
+ "title": "Los Módulos no están habilitados para el proyecto.",
+ "description": "Los Módulos son los componentes básicos de tu proyecto. Habilita los módulos desde la configuración del proyecto para comenzar a usarlos.",
+ "primary_button": {
+ "text": "Gestionar funciones"
+ }
+ },
+ "page": {
+ "title": "Las Páginas no están habilitadas para el proyecto.",
+ "description": "Las Páginas son los componentes básicos de tu proyecto. Habilita las páginas desde la configuración del proyecto para comenzar a usarlas.",
+ "primary_button": {
+ "text": "Gestionar funciones"
+ }
+ },
+ "view": {
+ "title": "Las Vistas no están habilitadas para el proyecto.",
+ "description": "Las Vistas son los componentes básicos de tu proyecto. Habilita las vistas desde la configuración del proyecto para comenzar a usarlas.",
+ "primary_button": {
+ "text": "Gestionar funciones"
+ }
+ }
+ }
+ },
+ "workspace_draft_issues": {
+ "draft_an_issue": "Borrador de elemento de trabajo",
+ "empty_state": {
+ "title": "Los elementos de trabajo a medio escribir y pronto los comentarios aparecerán aquí.",
+ "description": "Para probar esto, comienza a agregar un elemento de trabajo y déjalo a medias o crea tu primer borrador a continuación. 😉",
+ "primary_button": {
+ "text": "Crea tu primer borrador"
+ }
+ },
+ "delete_modal": {
+ "title": "Eliminar borrador",
+ "description": "¿Estás seguro de que quieres eliminar este borrador? Esto no se puede deshacer."
+ },
+ "toasts": {
+ "created": {
+ "success": "Borrador creado",
+ "error": "No se pudo crear el elemento de trabajo. Por favor, inténtalo de nuevo."
+ },
+ "deleted": {
+ "success": "Borrador eliminado"
+ }
+ }
+ },
+
+ "stickies": {
+ "title": "Tus notas adhesivas",
+ "placeholder": "haz clic para escribir aquí",
+ "all": "Todas las notas adhesivas",
+ "no-data": "Anota una idea, captura un momento eureka o registra una inspiración. Agrega una nota adhesiva para comenzar.",
+ "add": "Agregar nota adhesiva",
+ "search_placeholder": "Buscar por título",
+ "delete": "Eliminar nota adhesiva",
+ "delete_confirmation": "¿Estás seguro de que quieres eliminar esta nota adhesiva?",
+ "empty_state": {
+ "simple": "Anota una idea, captura un momento eureka o registra una inspiración. Agrega una nota adhesiva para comenzar.",
+ "general": {
+ "title": "Las notas adhesivas son notas rápidas y tareas pendientes que anotas al vuelo.",
+ "description": "Captura tus pensamientos e ideas sin esfuerzo creando notas adhesivas a las que puedes acceder en cualquier momento y desde cualquier lugar.",
+ "primary_button": {
+ "text": "Agregar nota adhesiva"
+ }
+ },
+ "search": {
+ "title": "Eso no coincide con ninguna de tus notas adhesivas.",
+ "description": "Prueba un término diferente o háznoslo saber\nsi estás seguro de que tu búsqueda es correcta.",
+ "primary_button": {
+ "text": "Agregar nota adhesiva"
+ }
+ }
+ },
+ "toasts": {
+ "errors": {
+ "wrong_name": "El nombre de la nota adhesiva no puede tener más de 100 caracteres.",
+ "already_exists": "Ya existe una nota adhesiva sin descripción"
+ },
+ "created": {
+ "title": "Nota adhesiva creada",
+ "message": "La nota adhesiva se ha creado exitosamente"
+ },
+ "not_created": {
+ "title": "Nota adhesiva no creada",
+ "message": "No se pudo crear la nota adhesiva"
+ },
+ "updated": {
+ "title": "Nota adhesiva actualizada",
+ "message": "La nota adhesiva se ha actualizado exitosamente"
+ },
+ "not_updated": {
+ "title": "Nota adhesiva no actualizada",
+ "message": "No se pudo actualizar la nota adhesiva"
+ },
+ "removed": {
+ "title": "Nota adhesiva eliminada",
+ "message": "La nota adhesiva se ha eliminado exitosamente"
+ },
+ "not_removed": {
+ "title": "Nota adhesiva no eliminada",
+ "message": "No se pudo eliminar la nota adhesiva"
+ }
+ }
+ },
+
+ "role_details": {
+ "guest": {
+ "title": "Invitado",
+ "description": "Los miembros externos de las organizaciones pueden ser invitados como invitados."
+ },
+ "member": {
+ "title": "Miembro",
+ "description": "Capacidad para leer, escribir, editar y eliminar entidades dentro de proyectos, ciclos y módulos"
+ },
+ "admin": {
+ "title": "Administrador",
+ "description": "Todos los permisos establecidos como verdaderos dentro del espacio de trabajo."
+ }
+ },
+
+ "user_roles": {
+ "product_or_project_manager": "Gerente de Producto / Proyecto",
+ "development_or_engineering": "Desarrollo / Ingeniería",
+ "founder_or_executive": "Fundador / Ejecutivo",
+ "freelancer_or_consultant": "Freelancer / Consultor",
+ "marketing_or_growth": "Marketing / Crecimiento",
+ "sales_or_business_development": "Ventas / Desarrollo de Negocios",
+ "support_or_operations": "Soporte / Operaciones",
+ "student_or_professor": "Estudiante / Profesor",
+ "human_resources": "Recursos Humanos",
+ "other": "Otro"
+ },
+
+ "importer": {
+ "github": {
+ "title": "GitHub",
+ "description": "Importa elementos de trabajo desde repositorios de GitHub y sincronízalos."
+ },
+ "jira": {
+ "title": "Jira",
+ "description": "Importa elementos de trabajo y epics desde proyectos y epics de Jira."
+ }
+ },
+
+ "exporter": {
+ "csv": {
+ "title": "CSV",
+ "description": "Exporta elementos de trabajo a un archivo CSV.",
+ "short_description": "Exportar como csv"
+ },
+ "excel": {
+ "title": "Excel",
+ "description": "Exporta elementos de trabajo a un archivo Excel.",
+ "short_description": "Exportar como excel"
+ },
+ "xlsx": {
+ "title": "Excel",
+ "description": "Exporta elementos de trabajo a un archivo Excel.",
+ "short_description": "Exportar como excel"
+ },
+ "json": {
+ "title": "JSON",
+ "description": "Exporta elementos de trabajo a un archivo JSON.",
+ "short_description": "Exportar como json"
+ }
+ },
+ "default_global_view": {
+ "all_issues": "Todos los elementos de trabajo",
+ "assigned": "Asignados",
+ "created": "Creados",
+ "subscribed": "Suscritos"
+ },
+
+ "themes": {
+ "theme_options": {
+ "system_preference": {
+ "label": "Preferencia del sistema"
+ },
+ "light": {
+ "label": "Claro"
+ },
+ "dark": {
+ "label": "Oscuro"
+ },
+ "light_contrast": {
+ "label": "Claro de alto contraste"
+ },
+ "dark_contrast": {
+ "label": "Oscuro de alto contraste"
+ },
+ "custom": {
+ "label": "Tema personalizado"
+ }
+ }
+ },
+ "project_modules": {
+ "status": {
+ "backlog": "Pendientes",
+ "planned": "Planificado",
+ "in_progress": "En progreso",
+ "paused": "Pausado",
+ "completed": "Completado",
+ "cancelled": "Cancelado"
+ },
+ "layout": {
+ "list": "Vista de lista",
+ "board": "Vista de galería",
+ "timeline": "Vista de línea de tiempo"
+ },
+ "order_by": {
+ "name": "Nombre",
+ "progress": "Progreso",
+ "issues": "Número de elementos de trabajo",
+ "due_date": "Fecha de vencimiento",
+ "created_at": "Fecha de creación",
+ "manual": "Manual"
+ }
+ },
+
+ "cycle": {
+ "label": "{count, plural, one {Ciclo} other {Ciclos}}",
+ "no_cycle": "Sin ciclo"
+ },
+
+ "module": {
+ "label": "{count, plural, one {Módulo} other {Módulos}}",
+ "no_module": "Sin módulo"
+ }
}
diff --git a/packages/i18n/src/locales/fr/translations.json b/packages/i18n/src/locales/fr/translations.json
index 164451981f..c67ceceaf2 100644
--- a/packages/i18n/src/locales/fr/translations.json
+++ b/packages/i18n/src/locales/fr/translations.json
@@ -1,4 +1,174 @@
{
+ "sidebar": {
+ "projects": "Projets",
+ "pages": "Pages",
+ "new_work_item": "Nouvel élément de travail",
+ "home": "Accueil",
+ "your_work": "Votre travail",
+ "inbox": "Boîte de réception",
+ "workspace": "Espace de travail",
+ "views": "Vues",
+ "analytics": "Analyses",
+ "work_items": "Éléments de travail",
+ "cycles": "Cycles",
+ "modules": "Modules",
+ "intake": "Intake",
+ "drafts": "Brouillons",
+ "favorites": "Favoris",
+ "pro": "Pro",
+ "upgrade": "Mettre à niveau"
+ },
+
+ "auth": {
+ "common": {
+ "email": {
+ "label": "E-mail",
+ "placeholder": "[email protected]",
+ "errors": {
+ "required": "L'e-mail est requis",
+ "invalid": "L'e-mail est invalide"
+ }
+ },
+ "password": {
+ "label": "Mot de passe",
+ "set_password": "Définir un mot de passe",
+ "placeholder": "Entrer le mot de passe",
+ "confirm_password": {
+ "label": "Confirmer le mot de passe",
+ "placeholder": "Confirmer le mot de passe"
+ },
+ "current_password": {
+ "label": "Mot de passe actuel"
+ },
+ "new_password": {
+ "label": "Nouveau mot de passe",
+ "placeholder": "Entrer le nouveau mot de passe"
+ },
+ "change_password": {
+ "label": {
+ "default": "Changer le mot de passe",
+ "submitting": "Changement du mot de passe"
+ }
+ },
+ "errors": {
+ "match": "Les mots de passe ne correspondent pas",
+ "empty": "Veuillez entrer votre mot de passe",
+ "length": "Le mot de passe doit contenir plus de 8 caractères",
+ "strength": {
+ "weak": "Le mot de passe est faible",
+ "strong": "Le mot de passe est fort"
+ }
+ },
+ "submit": "Définir le mot de passe",
+ "toast": {
+ "change_password": {
+ "success": {
+ "title": "Succès !",
+ "message": "Mot de passe changé avec succès."
+ },
+ "error": {
+ "title": "Erreur !",
+ "message": "Une erreur s'est produite. Veuillez réessayer."
+ }
+ }
+ }
+ },
+ "unique_code": {
+ "label": "Code unique",
+ "placeholder": "obtient-définit-vole",
+ "paste_code": "Collez le code envoyé à votre e-mail",
+ "requesting_new_code": "Demande d'un nouveau code",
+ "sending_code": "Envoi du code"
+ },
+ "already_have_an_account": "Vous avez déjà un compte ?",
+ "login": "Se connecter",
+ "create_account": "Créer un compte",
+ "new_to_plane": "Nouveau sur Plane ?",
+ "back_to_sign_in": "Retour à la connexion",
+ "resend_in": "Renvoyer dans {seconds} secondes",
+ "sign_in_with_unique_code": "Se connecter avec un code unique",
+ "forgot_password": "Mot de passe oublié ?"
+ },
+ "sign_up": {
+ "header": {
+ "label": "Créez un compte pour commencer à gérer le travail avec votre équipe.",
+ "step": {
+ "email": {
+ "header": "S'inscrire",
+ "sub_header": ""
+ },
+ "password": {
+ "header": "S'inscrire",
+ "sub_header": "Inscrivez-vous en utilisant une combinaison e-mail-mot de passe."
+ },
+ "unique_code": {
+ "header": "S'inscrire",
+ "sub_header": "Inscrivez-vous en utilisant un code unique envoyé à l'adresse e-mail ci-dessus."
+ }
+ }
+ },
+ "errors": {
+ "password": {
+ "strength": "Essayez de définir un mot de passe fort pour continuer"
+ }
+ }
+ },
+ "sign_in": {
+ "header": {
+ "label": "Connectez-vous pour commencer à gérer le travail avec votre équipe.",
+ "step": {
+ "email": {
+ "header": "Se connecter ou s'inscrire",
+ "sub_header": ""
+ },
+ "password": {
+ "header": "Se connecter ou s'inscrire",
+ "sub_header": "Utilisez votre combinaison e-mail-mot de passe pour vous connecter."
+ },
+ "unique_code": {
+ "header": "Se connecter ou s'inscrire",
+ "sub_header": "Connectez-vous en utilisant un code unique envoyé à l'adresse e-mail ci-dessus."
+ }
+ }
+ }
+ },
+ "forgot_password": {
+ "title": "Réinitialiser votre mot de passe",
+ "description": "Entrez l'adresse e-mail vérifiée de votre compte utilisateur et nous vous enverrons un lien de réinitialisation du mot de passe.",
+ "email_sent": "Nous avons envoyé le lien de réinitialisation à votre adresse e-mail",
+ "send_reset_link": "Envoyer le lien de réinitialisation",
+ "errors": {
+ "smtp_not_enabled": "Nous constatons que votre administrateur n'a pas activé SMTP, nous ne pourrons pas envoyer de lien de réinitialisation du mot de passe"
+ },
+ "toast": {
+ "success": {
+ "title": "E-mail envoyé",
+ "message": "Vérifiez votre boîte de réception pour un lien de réinitialisation de votre mot de passe. S'il n'apparaît pas dans quelques minutes, vérifiez votre dossier spam."
+ },
+ "error": {
+ "title": "Erreur !",
+ "message": "Une erreur s'est produite. Veuillez réessayer."
+ }
+ }
+ },
+ "reset_password": {
+ "title": "Définir un nouveau mot de passe",
+ "description": "Sécurisez votre compte avec un mot de passe fort"
+ },
+ "set_password": {
+ "title": "Sécurisez votre compte",
+ "description": "La définition d'un mot de passe vous permet de vous connecter en toute sécurité"
+ },
+ "sign_out": {
+ "toast": {
+ "error": {
+ "title": "Erreur !",
+ "message": "Échec de la déconnexion. Veuillez réessayer."
+ }
+ }
+ }
+ },
+
"submit": "Soumettre",
"cancel": "Annuler",
"loading": "Chargement",
@@ -14,32 +184,34 @@
"description": "Description",
"search": "Rechercher",
"add_member": "Ajouter un membre",
- "remove_member": "Supprimer un membre",
+ "adding_members": "Ajout de membres",
+ "remove_member": "Supprimer le membre",
"add_members": "Ajouter des membres",
+ "adding_member": "Ajout de membres",
"remove_members": "Supprimer des membres",
"add": "Ajouter",
+ "adding": "Ajout",
"remove": "Supprimer",
- "add_new": "Ajouter un nouveau",
+ "add_new": "Ajouter nouveau",
"remove_selected": "Supprimer la sélection",
"first_name": "Prénom",
- "last_name": "Nom de famille",
- "email": "Email",
- "display_name": "Pseudonyme",
+ "last_name": "Nom",
+ "email": "E-mail",
+ "display_name": "Nom d'affichage",
"role": "Rôle",
"timezone": "Fuseau horaire",
"avatar": "Avatar",
"cover_image": "Image de couverture",
"password": "Mot de passe",
- "change_cover": "Modifier la couverture",
+ "change_cover": "Changer la couverture",
"language": "Langue",
- "saving": "Enregistrement en cours...",
+ "saving": "Enregistrement",
"save_changes": "Enregistrer les modifications",
"deactivate_account": "Désactiver le compte",
"deactivate_account_description": "Lors de la désactivation d'un compte, toutes les données et ressources de ce compte seront définitivement supprimées et ne pourront pas être récupérées.",
"profile_settings": "Paramètres du profil",
"your_account": "Votre compte",
- "profile": "Profil",
- "security": " Sécurité",
+ "security": "Sécurité",
"activity": "Activité",
"appearance": "Apparence",
"notifications": "Notifications",
@@ -49,116 +221,75 @@
"summary": "Résumé",
"assigned": "Assigné",
"created": "Créé",
- "subscribed": "Souscrit",
- "you_do_not_have_the_permission_to_access_this_page": "Vous n'avez pas les permissions d'accéder à cette page.",
- "failed_to_sign_out_please_try_again": "Impossible de se déconnecter. Veuillez réessayer.",
- "password_changed_successfully": "Mot de passe changé avec succès.",
- "something_went_wrong_please_try_again": "Quelque chose s'est mal passé. Veuillez réessayer.",
- "change_password": "Changer le mot de passe",
- "changing_password": "Changement de mot de passe",
- "current_password": "Mot de passe actuel",
- "new_password": "Nouveau mot de passe",
- "confirm_password": "Confirmer le mot de passe",
- "this_field_is_required": "Ce champ est requis",
- "passwords_dont_match": "Les mots de passe ne correspondent pas",
- "please_enter_your_password": "Veuillez entrer votre mot de passe.",
- "password_length_should_me_more_than_8_characters": "La longueur du mot de passe doit faire au moins 8 caractères.",
- "password_is_weak": "Le mot de passe est faible.",
- "password_is_strong": "Le mot de passe est fort.",
+ "subscribed": "Abonné",
+ "you_do_not_have_the_permission_to_access_this_page": "Vous n'avez pas la permission d'accéder à cette page.",
+ "something_went_wrong_please_try_again": "Une erreur s'est produite. Veuillez réessayer.",
"load_more": "Charger plus",
- "select_or_customize_your_interface_color_scheme": "Sélectionnez ou personnalisez votre schéma de couleurs de l'interface.",
+ "select_or_customize_your_interface_color_scheme": "Sélectionnez ou personnalisez votre schéma de couleurs d'interface.",
"theme": "Thème",
- "system_preference": "Préférence du système",
+ "system_preference": "Préférence système",
"light": "Clair",
- "dark": "Foncé",
- "light_contrast": "Clair de haut contraste",
- "dark_contrast": "Foncé de haut contraste",
+ "dark": "Sombre",
+ "light_contrast": "Contraste élevé clair",
+ "dark_contrast": "Contraste élevé sombre",
"custom": "Thème personnalisé",
"select_your_theme": "Sélectionnez votre thème",
"customize_your_theme": "Personnalisez votre thème",
"background_color": "Couleur de fond",
- "text_color": "Couleur de texte",
- "primary_color": "Couleur primaire (thème)",
- "sidebar_background_color": "Couleur de fond du sidebar",
- "sidebar_text_color": "Couleur de texte du sidebar",
+ "text_color": "Couleur du texte",
+ "primary_color": "Couleur principale (Thème)",
+ "sidebar_background_color": "Couleur de fond de la barre latérale",
+ "sidebar_text_color": "Couleur du texte de la barre latérale",
"set_theme": "Définir le thème",
"enter_a_valid_hex_code_of_6_characters": "Entrez un code hexadécimal valide de 6 caractères",
"background_color_is_required": "La couleur de fond est requise",
- "text_color_is_required": "La couleur de texte est requise",
- "primary_color_is_required": "La couleur primaire est requise",
- "sidebar_background_color_is_required": "La couleur de fond du sidebar est requise",
- "sidebar_text_color_is_required": "La couleur de texte du sidebar est requise",
+ "text_color_is_required": "La couleur du texte est requise",
+ "primary_color_is_required": "La couleur principale est requise",
+ "sidebar_background_color_is_required": "La couleur de fond de la barre latérale est requise",
+ "sidebar_text_color_is_required": "La couleur du texte de la barre latérale est requise",
"updating_theme": "Mise à jour du thème",
"theme_updated_successfully": "Thème mis à jour avec succès",
- "failed_to_update_the_theme": "Impossible de mettre à jour le thème",
- "email_notifications": "Notifications par email",
- "stay_in_the_loop_on_issues_you_are_subscribed_to_enable_this_to_get_notified": "Restez dans la boucle sur les problèmes auxquels vous êtes abonné. Activez cela pour être notifié.",
- "email_notification_setting_updated_successfully": "Paramètres de notification par email mis à jour avec succès",
- "failed_to_update_email_notification_setting": "Impossible de mettre à jour les paramètres de notification par email",
- "notify_me_when": "Me notifier lorsque",
- "property_changes": "Changements de propriété",
- "property_changes_description": "Me notifier lorsque les propriétés du problème comme les assignés, la priorité, les estimations ou tout autre chose changent.",
+ "failed_to_update_the_theme": "Échec de la mise à jour du thème",
+ "email_notifications": "Notifications par e-mail",
+ "stay_in_the_loop_on_issues_you_are_subscribed_to_enable_this_to_get_notified": "Restez informé des éléments de travail auxquels vous êtes abonné. Activez ceci pour être notifié.",
+ "email_notification_setting_updated_successfully": "Paramètre de notification par e-mail mis à jour avec succès",
+ "failed_to_update_email_notification_setting": "Échec de la mise à jour du paramètre de notification par e-mail",
+ "notify_me_when": "Me notifier quand",
+ "property_changes": "Modifications des propriétés",
+ "property_changes_description": "Me notifier lorsque les propriétés des éléments de travail comme les assignés, la priorité, les estimations ou autre changent.",
"state_change": "Changement d'état",
- "state_change_description": "Me notifier lorsque le problème passe à un autre état",
- "issue_completed": "Problème terminé",
- "issue_completed_description": "Me notifier uniquement lorsqu'un problème est terminé",
+ "state_change_description": "Me notifier lorsque les éléments de travail passent à un état différent",
+ "issue_completed": "Élément de travail terminé",
+ "issue_completed_description": "Me notifier uniquement lorsqu'un élément de travail est terminé",
"comments": "Commentaires",
- "comments_description": "Me notifier lorsqu'un utilisateur commente un problème",
- "mentions": "Mention",
- "mentions_description": "Me notifier uniquement lorsqu'un utilisateur mentionne un problème",
- "create_your_workspace": "Créer votre espace de travail",
- "only_your_instance_admin_can_create_workspaces": "Seuls les administrateurs de votre instance peuvent créer des espaces de travail",
- "only_your_instance_admin_can_create_workspaces_description": "Si vous connaissez l'adresse email de votre administrateur d'instance, cliquez sur le bouton ci-dessous pour les contacter.",
- "go_back": "Retour",
- "request_instance_admin": "Demander à l'administrateur de l'instance",
- "plane_logo": "Logo de Plane",
- "workspace_creation_disabled": "Création d'espace de travail désactivée",
- "workspace_request_subject": "Demande de création d'un espace de travail",
- "workspace_request_body": "Bonjour administrateur(s) de l'instance,\n\nVeuillez créer un nouveau espace de travail avec l'URL [/workspace-name] pour [raison de la création de l'espace de travail].\n\nMerci,\n{{firstName}} {{lastName}}\n{{email}}",
- "creating_workspace": "Création de l'espace de travail",
- "workspace_created_successfully": "Espace de travail créé avec succès",
- "create_workspace_page": "Page de création d'espace de travail",
- "workspace_could_not_be_created_please_try_again": "L'espace de travail ne peut pas être créé. Veuillez réessayer.",
- "workspace_could_not_be_created_please_try_again_description": "Une erreur est survenue lors de la création de l'espace de travail. Veuillez réessayer.",
- "this_is_a_required_field": "Ce champ est requis.",
- "name_your_workspace": "Nommez votre espace de travail",
- "workspaces_names_can_contain_only_space_dash_and_alphanumeric_characters": "Les noms des espaces de travail peuvent contenir uniquement des espaces, des tirets et des caractères alphanumériques.",
- "limit_your_name_to_80_characters": "Limitez votre nom à 80 caractères.",
- "set_your_workspace_url": "Définir l'URL de votre espace de travail",
- "limit_your_url_to_48_characters": "Limitez votre URL à 48 caractères.",
- "how_many_people_will_use_this_workspace": "Combien de personnes utiliseront cet espace de travail ?",
- "how_many_people_will_use_this_workspace_description": "Cela nous aidera à déterminer le nombre de sièges que vous devez acheter.",
- "select_a_range": "Sélectionner une plage",
- "urls_can_contain_only_dash_and_alphanumeric_characters": "Les URLs peuvent contenir uniquement des tirets et des caractères alphanumériques.",
- "something_familiar_and_recognizable_is_always_best": "Ce qui est familier et reconnaissable est toujours le meilleur.",
- "workspace_url_is_already_taken": "L'URL de l'espace de travail est déjà utilisée !",
- "old_password": "Mot de passe actuel",
+ "comments_description": "Me notifier lorsque quelqu'un laisse un commentaire sur l'élément de travail",
+ "mentions": "Mentions",
+ "mentions_description": "Me notifier uniquement lorsque quelqu'un me mentionne dans les commentaires ou la description",
+ "old_password": "Ancien mot de passe",
"general_settings": "Paramètres généraux",
- "sign_out": "Déconnexion",
- "signing_out": "Déconnexion en cours",
+ "sign_out": "Se déconnecter",
+ "signing_out": "Déconnexion",
"active_cycles": "Cycles actifs",
- "active_cycles_description": "Surveillez les cycles dans les projets, suivez les issues de haute priorité et zoomez sur les cycles qui nécessitent attention.",
- "on_demand_snapshots_of_all_your_cycles": "Captures instantanées sur demande de tous vos cycles",
+ "active_cycles_description": "Surveillez les cycles à travers les projets, suivez les éléments de travail prioritaires et zoomez sur les cycles qui nécessitent de l'attention.",
+ "on_demand_snapshots_of_all_your_cycles": "Instantanés à la demande de tous vos cycles",
"upgrade": "Mettre à niveau",
- "10000_feet_view": "Vue d'ensemble de tous les cycles actifs",
- "10000_feet_view_description": "Prenez du recul pour voir les cycles en cours dans tous vos projets en même temps au lieu de passer d'un cycle à l'autre dans chaque projet.",
- "get_snapshot_of_each_active_cycle": "Obtenez un aperçu de chaque cycle actif",
- "get_snapshot_of_each_active_cycle_description": "Suivez les métriques de haut niveau pour tous les cycles actifs, observez leur état d'avancement et évaluez leur portée par rapport aux échéances.",
- "compare_burndowns": "Comparez les graphiques d'avancement",
- "compare_burndowns_description": "Surveillez les performances de chacune de vos équipes en consultant le rapport d'avancement de chaque cycle.",
- "quickly_see_make_or_break_issues": "Identifiez rapidement les problèmes critiques",
- "quickly_see_make_or_break_issues_description": "Visualisez les problèmes hautement prioritaires de chaque cycle par rapport aux dates d'échéance. Consultez-les tous par cycle en un seul clic.",
- "zoom_into_cycles_that_need_attention": "Concentrez-vous sur les cycles nécessitant attention",
- "zoom_into_cycles_that_need_attention_description": "Examinez en un clic l'état de tout cycle qui ne répond pas aux attentes.",
- "stay_ahead_of_blockers": "Anticipez les blocages",
- "stay_ahead_of_blockers_description": "Repérez les défis d'un projet à l'autre et identifiez les dépendances entre cycles qui ne sont pas évidentes depuis d'autres vues.",
- "analytics": "Analyse",
- "workspace_invites": "Invitations de l'espace de travail",
- "workspace_settings": "Paramètres de l'espace de travail",
+ "10000_feet_view": "Vue à 10 000 pieds de tous les cycles actifs.",
+ "10000_feet_view_description": "Dézoomez pour voir les cycles en cours dans tous vos projets en même temps au lieu de passer d'un cycle à l'autre dans chaque projet.",
+ "get_snapshot_of_each_active_cycle": "Obtenez un aperçu de chaque cycle actif.",
+ "get_snapshot_of_each_active_cycle_description": "Suivez les métriques de haut niveau pour tous les cycles actifs, voyez leur état d'avancement et obtenez une idée de la portée par rapport aux échéances.",
+ "compare_burndowns": "Comparez les burndowns.",
+ "compare_burndowns_description": "Surveillez les performances de chacune de vos équipes en jetant un coup d'œil au rapport burndown de chaque cycle.",
+ "quickly_see_make_or_break_issues": "Voyez rapidement les éléments de travail critiques.",
+ "quickly_see_make_or_break_issues_description": "Prévisualisez les éléments de travail hautement prioritaires pour chaque cycle par rapport aux dates d'échéance. Voyez-les tous par cycle en un clic.",
+ "zoom_into_cycles_that_need_attention": "Zoomez sur les cycles qui nécessitent de l'attention.",
+ "zoom_into_cycles_that_need_attention_description": "Examinez l'état de tout cycle qui ne correspond pas aux attentes en un clic.",
+ "stay_ahead_of_blockers": "Anticipez les blocages.",
+ "stay_ahead_of_blockers_description": "Repérez les défis d'un projet à l'autre et voyez les dépendances inter-cycles qui ne sont pas évidentes depuis une autre vue.",
+ "analytics": "Analyses",
+ "workspace_invites": "Invitations à l'espace de travail",
"enter_god_mode": "Entrer en mode dieu",
"workspace_logo": "Logo de l'espace de travail",
- "new_issue": "Nouveau problème",
- "home": "Accueil",
+ "new_issue": "Nouvel élément de travail",
"your_work": "Votre travail",
"drafts": "Brouillons",
"projects": "Projets",
@@ -166,44 +297,49 @@
"workspace": "Espace de travail",
"archives": "Archives",
"settings": "Paramètres",
- "failed_to_move_favorite": "Impossible de déplacer le favori",
+ "failed_to_move_favorite": "Échec du déplacement du favori",
"favorites": "Favoris",
- "no_favorites_yet": "Aucun favori pour le moment",
+ "no_favorites_yet": "Pas encore de favoris",
"create_folder": "Créer un dossier",
"new_folder": "Nouveau dossier",
"favorite_updated_successfully": "Favori mis à jour avec succès",
"favorite_created_successfully": "Favori créé avec succès",
"folder_already_exists": "Le dossier existe déjà",
"folder_name_cannot_be_empty": "Le nom du dossier ne peut pas être vide",
- "something_went_wrong": "Quelque chose s'est mal passé",
- "failed_to_reorder_favorite": "Impossible de réordonner le favori",
+ "something_went_wrong": "Une erreur s'est produite",
+ "failed_to_reorder_favorite": "Échec de la réorganisation du favori",
"favorite_removed_successfully": "Favori supprimé avec succès",
- "failed_to_create_favorite": "Impossible de créer le favori",
- "failed_to_rename_favorite": "Impossible de renommer le favori",
+ "failed_to_create_favorite": "Échec de la création du favori",
+ "failed_to_rename_favorite": "Échec du renommage du favori",
"project_link_copied_to_clipboard": "Lien du projet copié dans le presse-papiers",
"link_copied": "Lien copié",
"add_project": "Ajouter un projet",
"create_project": "Créer un projet",
"failed_to_remove_project_from_favorites": "Impossible de supprimer le projet des favoris. Veuillez réessayer.",
"project_created_successfully": "Projet créé avec succès",
- "project_created_successfully_description": "Projet créé avec succès. Vous pouvez maintenant ajouter des issues à ce projet.",
+ "project_created_successfully_description": "Projet créé avec succès. Vous pouvez maintenant commencer à ajouter des éléments de travail.",
"project_cover_image_alt": "Image de couverture du projet",
"name_is_required": "Le nom est requis",
- "title_should_be_less_than_255_characters": "Le titre ne doit pas dépasser 255 caractères",
+ "title_should_be_less_than_255_characters": "Le titre doit faire moins de 255 caractères",
"project_name": "Nom du projet",
- "project_id_must_be_at_least_1_character": "L'ID du projet doit être au moins de 1 caractère",
- "project_id_must_be_at_most_5_characters": "L'ID du projet doit être au plus de 5 caractères",
+ "project_id_must_be_at_least_1_character": "L'ID du projet doit comporter au moins 1 caractère",
+ "project_id_must_be_at_most_5_characters": "L'ID du projet doit comporter au plus 5 caractères",
"project_id": "ID du projet",
- "project_id_tooltip_content": "Aide à identifier les issues du projet de manière unique. Max 5 caractères.",
- "description_placeholder": "Description...",
+ "project_id_tooltip_content": "Vous aide à identifier uniquement les éléments de travail dans le projet. Maximum 5 caractères.",
+ "description_placeholder": "Description",
"only_alphanumeric_non_latin_characters_allowed": "Seuls les caractères alphanumériques et non latins sont autorisés.",
"project_id_is_required": "L'ID du projet est requis",
+ "project_id_allowed_char": "Seuls les caractères alphanumériques et non latins sont autorisés.",
+ "project_id_min_char": "L'ID du projet doit comporter au moins 1 caractère",
+ "project_id_max_char": "L'ID du projet doit comporter au plus 5 caractères",
+ "project_description_placeholder": "Entrez la description du projet",
"select_network": "Sélectionner le réseau",
"lead": "Responsable",
+ "date_range": "Plage de dates",
"private": "Privé",
"public": "Public",
- "accessible_only_by_invite": "Accessible uniquement par invitation",
- "anyone_in_the_workspace_except_guests_can_join": "Tout le monde dans l'espace de travail, sauf les invités, peut rejoindre",
+ "accessible_only_by_invite": "Accessible uniquement sur invitation",
+ "anyone_in_the_workspace_except_guests_can_join": "Tout le monde dans l'espace de travail sauf les invités peut rejoindre",
"creating": "Création",
"creating_project": "Création du projet",
"adding_project_to_favorites": "Ajout du projet aux favoris",
@@ -218,40 +354,39 @@
"publish": "Publier",
"copy_link": "Copier le lien",
"leave_project": "Quitter le projet",
- "join_the_project_to_rearrange": "Rejoindre le projet pour réorganiser",
+ "join_the_project_to_rearrange": "Rejoignez le projet pour réorganiser",
"drag_to_rearrange": "Glisser pour réorganiser",
"congrats": "Félicitations !",
- "project": "Projet",
"open_project": "Ouvrir le projet",
- "issues": "Problèmes",
+ "issues": "Éléments de travail",
"cycles": "Cycles",
"modules": "Modules",
"pages": "Pages",
"intake": "Intake",
"time_tracking": "Suivi du temps",
"work_management": "Gestion du travail",
- "projects_and_issues": "Projets et problèmes",
- "projects_and_issues_description": "Activer ou désactiver ces fonctionnalités pour ce projet.",
- "cycles_description": "Organisez votre travail en périodes définies selon vos besoins par projet et modifiez la fréquence d'une période à l'autre.",
- "modules_description": "Regroupez le travail en sous-projets avec leurs propres responsables et assignés.",
- "views_description": "Enregistrez vos tris, filtres et options d'affichage pour plus tard ou partagez-les.",
- "pages_description": "Rédigez tout type de contenu librement.",
- "intake_description": "Restez informé des tickets auxquels vous êtes abonné. Activez cette option pour recevoir des notifications.",
- "time_tracking_description": "Suivez le temps passé sur les tickets et les projets.",
- "work_management_description": "Gérez votre travail et vos projets en toute simplicité.",
+ "projects_and_issues": "Projets et éléments de travail",
+ "projects_and_issues_description": "Activez ou désactivez ces éléments pour ce projet.",
+ "cycles_description": "Planifiez le travail comme vous le souhaitez par projet et changez la fréquence d'une période à l'autre.",
+ "modules_description": "Regroupez le travail en configurations de type sous-projet avec leurs propres responsables et assignés.",
+ "views_description": "Enregistrez les tris, filtres et options d'affichage pour plus tard ou partagez-les.",
+ "pages_description": "Écrivez n'importe quoi comme vous écrivez n'importe quoi.",
+ "intake_description": "Restez informé des éléments de travail auxquels vous êtes abonné. Activez ceci pour être notifié.",
+ "time_tracking_description": "Suivez le temps passé sur les éléments de travail et les projets.",
+ "work_management_description": "Gérez votre travail et vos projets facilement.",
"documentation": "Documentation",
"message_support": "Contacter le support",
"contact_sales": "Contacter les ventes",
- "hyper_mode": "Mode hyper",
+ "hyper_mode": "Mode Hyper",
"keyboard_shortcuts": "Raccourcis clavier",
- "whats_new": "Nouveautés ?",
+ "whats_new": "Quoi de neuf ?",
"version": "Version",
"we_are_having_trouble_fetching_the_updates": "Nous avons des difficultés à récupérer les mises à jour.",
- "our_changelogs": "Notre journal de modifications",
- "for_the_latest_updates": "Pour les dernières mises à jour.",
+ "our_changelogs": "nos journaux des modifications",
+ "for_the_latest_updates": "pour les dernières mises à jour.",
"please_visit": "Veuillez visiter",
"docs": "Documentation",
- "full_changelog": "Journal complet",
+ "full_changelog": "Journal des modifications complet",
"support": "Support",
"discord": "Discord",
"powered_by_plane_pages": "Propulsé par Plane Pages",
@@ -262,45 +397,46 @@
"we_see_that_someone_has_invited_you_to_join_a_workspace_description": "Nous voyons que quelqu'un vous a invité à rejoindre un espace de travail",
"join_a_workspace_description": "Rejoindre un espace de travail",
"accept_and_join": "Accepter et rejoindre",
- "go_home": "Retour à l'accueil",
+ "go_home": "Aller à l'accueil",
"no_pending_invites": "Aucune invitation en attente",
- "you_can_see_here_if_someone_invites_you_to_a_workspace": "Vous pouvez voir ici si quelqu'un vous invite à rejoindre un espace de travail",
+ "you_can_see_here_if_someone_invites_you_to_a_workspace": "Vous pouvez voir ici si quelqu'un vous invite à un espace de travail",
"back_to_home": "Retour à l'accueil",
- "workspace_name": "espace-de-travail",
+ "workspace_name": "nom-espace-de-travail",
"deactivate_your_account": "Désactiver votre compte",
- "deactivate_your_account_description": "Une fois désactivé, vous ne pourrez pas être assigné à des problèmes et être facturé pour votre espace de travail. Pour réactiver votre compte, vous aurez besoin d'une invitation à un espace de travail à cette adresse email.",
+ "deactivate_your_account_description": "Une fois désactivé, vous ne pourrez plus être assigné à des éléments de travail ni être facturé pour votre espace de travail. Pour réactiver votre compte, vous aurez besoin d'une invitation à un espace de travail avec cette adresse e-mail.",
"deactivating": "Désactivation",
"confirm": "Confirmer",
+ "confirming": "Confirmation",
"draft_created": "Brouillon créé",
- "issue_created_successfully": "Problème créé avec succès",
- "draft_creation_failed": "Création du brouillon échouée",
- "issue_creation_failed": "Création du problème échouée",
- "draft_issue": "Problème en brouillon",
- "issue_updated_successfully": "Problème mis à jour avec succès",
- "issue_could_not_be_updated": "Le problème n'a pas pu être mis à jour",
+ "issue_created_successfully": "Élément de travail créé avec succès",
+ "draft_creation_failed": "Échec de la création du brouillon",
+ "issue_creation_failed": "Échec de la création de l'élément de travail",
+ "draft_issue": "Élément de travail en brouillon",
+ "issue_updated_successfully": "Élément de travail mis à jour avec succès",
+ "issue_could_not_be_updated": "L'élément de travail n'a pas pu être mis à jour",
"create_a_draft": "Créer un brouillon",
"save_to_drafts": "Enregistrer dans les brouillons",
"save": "Enregistrer",
"update": "Mettre à jour",
"updating": "Mise à jour",
- "create_new_issue": "Créer un nouveau problème",
+ "create_new_issue": "Créer un nouvel élément de travail",
"editor_is_not_ready_to_discard_changes": "L'éditeur n'est pas prêt à annuler les modifications",
- "failed_to_move_issue_to_project": "Impossible de déplacer le problème vers le projet",
+ "failed_to_move_issue_to_project": "Échec du déplacement de l'élément de travail vers le projet",
"create_more": "Créer plus",
"add_to_project": "Ajouter au projet",
"discard": "Annuler",
- "duplicate_issue_found": "Problème en double trouvé",
- "duplicate_issues_found": "Problèmes en double trouvés",
+ "duplicate_issue_found": "Élément de travail en double trouvé",
+ "duplicate_issues_found": "Éléments de travail en double trouvés",
"no_matching_results": "Aucun résultat correspondant",
"title_is_required": "Le titre est requis",
"title": "Titre",
"state": "État",
"priority": "Priorité",
- "none": "Aucune",
+ "none": "Aucun",
"urgent": "Urgent",
- "high": "Haute",
- "medium": "Moyenne",
- "low": "Basse",
+ "high": "Élevé",
+ "medium": "Moyen",
+ "low": "Faible",
"members": "Membres",
"assignee": "Assigné",
"assignees": "Assignés",
@@ -308,12 +444,1876 @@
"labels": "Étiquettes",
"create_new_label": "Créer une nouvelle étiquette",
"start_date": "Date de début",
+ "end_date": "Date de fin",
"due_date": "Date d'échéance",
- "cycle": "Cycle",
"estimate": "Estimation",
- "change_parent_issue": "Modifier le problème parent",
- "remove_parent_issue": "Supprimer le problème parent",
+ "change_parent_issue": "Changer l'élément de travail parent",
+ "remove_parent_issue": "Supprimer l'élément de travail parent",
"add_parent": "Ajouter un parent",
- "loading_members": "Chargement des membres...",
- "inbox": "Boîte de réception"
+ "loading_members": "Chargement des membres",
+ "view_link_copied_to_clipboard": "Lien de la vue copié dans le presse-papiers.",
+ "required": "Requis",
+ "optional": "Optionnel",
+ "Cancel": "Annuler",
+ "edit": "Modifier",
+ "archive": "Archiver",
+ "restor": "Restaurer",
+ "open_in_new_tab": "Ouvrir dans un nouvel onglet",
+ "delete": "Supprimer",
+ "deleting": "Suppression",
+ "make_a_copy": "Faire une copie",
+ "move_to_project": "Déplacer vers le projet",
+ "good": "Bonjour",
+ "morning": "matin",
+ "afternoon": "après-midi",
+ "evening": "soir",
+ "show_all": "Tout afficher",
+ "show_less": "Afficher moins",
+ "no_data_yet": "Pas encore de données",
+ "syncing": "Synchronisation",
+ "add_work_item": "Ajouter un élément de travail",
+ "advanced_description_placeholder": "Appuyez sur '/' pour les commandes",
+ "create_work_item": "Créer un élément de travail",
+ "attachments": "Pièces jointes",
+ "declining": "Refus",
+ "declined": "Refusé",
+ "decline": "Refuser",
+ "unassigned": "Non assigné",
+ "work_items": "Éléments de travail",
+ "add_link": "Ajouter un lien",
+ "points": "Points",
+ "no_assignee": "Pas d'assigné",
+ "no_assignees_yet": "Pas encore d'assignés",
+ "no_labels_yet": "Pas encore d'étiquettes",
+ "ideal": "Idéal",
+ "current": "Actuel",
+ "no_matching_members": "Aucun membre correspondant",
+ "leaving": "Départ",
+ "removing": "Suppression",
+ "leave": "Quitter",
+ "refresh": "Actualiser",
+ "refreshing": "Actualisation",
+ "refresh_status": "Actualiser l'état",
+ "prev": "Précédent",
+ "next": "Suivant",
+ "re_generating": "Régénération",
+ "re_generate": "Régénérer",
+ "re_generate_key": "Régénérer la clé",
+ "export": "Exporter",
+ "member": "{count, plural, one{# membre} other{# membres}}",
+
+ "project_view": {
+ "sort_by": {
+ "created_at": "Créé le",
+ "updated_at": "Mis à jour le",
+ "name": "Nom"
+ }
+ },
+
+ "toast": {
+ "success": "Succès !",
+ "error": "Erreur !"
+ },
+
+ "links": {
+ "toasts": {
+ "created": {
+ "title": "Lien créé",
+ "message": "Le lien a été créé avec succès"
+ },
+ "not_created": {
+ "title": "Lien non créé",
+ "message": "Le lien n'a pas pu être créé"
+ },
+ "updated": {
+ "title": "Lien mis à jour",
+ "message": "Le lien a été mis à jour avec succès"
+ },
+ "not_updated": {
+ "title": "Lien non mis à jour",
+ "message": "Le lien n'a pas pu être mis à jour"
+ },
+ "removed": {
+ "title": "Lien supprimé",
+ "message": "Le lien a été supprimé avec succès"
+ },
+ "not_removed": {
+ "title": "Lien non supprimé",
+ "message": "Le lien n'a pas pu être supprimé"
+ }
+ }
+ },
+
+ "home": {
+ "empty": {
+ "create_project": {
+ "title": "Créer un projet",
+ "description": "La plupart des choses commencent par un projet dans Plane.",
+ "cta": "Commencer"
+ },
+ "invite_team": {
+ "title": "Inviter votre équipe",
+ "description": "Construisez, déployez et gérez avec vos collègues.",
+ "cta": "Les faire entrer"
+ },
+ "configure_workspace": {
+ "title": "Configurez votre espace de travail.",
+ "description": "Activez ou désactivez des fonctionnalités ou allez plus loin.",
+ "cta": "Configurer cet espace de travail"
+ },
+ "personalize_account": {
+ "title": "Faites de Plane le vôtre.",
+ "description": "Choisissez votre photo, vos couleurs et plus encore.",
+ "cta": "Personnaliser maintenant"
+ },
+ "widgets": {
+ "title": "C'est calme sans widgets, activez-les",
+ "description": "Il semble que tous vos widgets soient désactivés. Activez-les\nmaintenant pour améliorer votre expérience !",
+ "primary_button": {
+ "text": "Gérer les widgets"
+ }
+ }
+ },
+ "quick_links": {
+ "empty": "Enregistrez des liens vers des éléments de travail que vous souhaitez avoir à portée de main.",
+ "add": "Ajouter un lien rapide",
+ "title": "Lien rapide",
+ "title_plural": "Liens rapides"
+ },
+ "recents": {
+ "title": "Récents",
+ "empty": {
+ "project": "Vos projets récents apparaîtront ici une fois que vous en aurez visité un.",
+ "page": "Vos pages récentes apparaîtront ici une fois que vous en aurez visité une.",
+ "issue": "Vos éléments de travail récents apparaîtront ici une fois que vous en aurez visité un.",
+ "default": "Vous n'avez pas encore d'éléments récents."
+ },
+ "filters": {
+ "all": "Tous les éléments",
+ "projects": "Projets",
+ "pages": "Pages",
+ "issues": "Éléments de travail"
+ }
+ },
+ "new_at_plane": {
+ "title": "Nouveau sur Plane"
+ },
+ "quick_tutorial": {
+ "title": "Tutoriel rapide"
+ },
+ "widget": {
+ "reordered_successfully": "Widget réorganisé avec succès.",
+ "reordering_failed": "Une erreur s'est produite lors de la réorganisation du widget."
+ },
+ "manage_widgets": "Gérer les widgets",
+ "title": "Accueil",
+ "star_us_on_github": "Donnez-nous une étoile sur GitHub"
+ },
+
+ "link": {
+ "modal": {
+ "url": {
+ "text": "URL",
+ "required": "L'URL n'est pas valide",
+ "placeholder": "Tapez ou collez une URL"
+ },
+ "title": {
+ "text": "Titre d'affichage",
+ "placeholder": "Comment souhaitez-vous voir ce lien"
+ }
+ }
+ },
+
+ "common": {
+ "all": "Tout",
+ "states": "États",
+ "state": "État",
+ "state_groups": "Groupes d'états",
+ "priority": "Priorité",
+ "team_project": "Projet d'équipe",
+ "project": "Projet",
+ "cycle": "Cycle",
+ "cycles": "Cycles",
+ "module": "Module",
+ "modules": "Modules",
+ "labels": "Étiquettes",
+ "assignees": "Assignés",
+ "assignee": "Assigné",
+ "created_by": "Créé par",
+ "none": "Aucun",
+ "link": "Lien",
+ "estimate": "Estimation",
+ "layout": "Disposition",
+ "filters": "Filtres",
+ "display": "Affichage",
+ "load_more": "Charger plus",
+ "activity": "Activité",
+ "analytics": "Analyses",
+ "dates": "Dates",
+ "success": "Succès !",
+ "something_went_wrong": "Quelque chose s'est mal passé",
+ "error": {
+ "label": "Erreur !",
+ "message": "Une erreur s'est produite. Veuillez réessayer."
+ },
+ "group_by": "Grouper par",
+ "epic": "Epic",
+ "epics": "Epics",
+ "work_item": "Élément de travail",
+ "sub_work_item": "Sous-élément de travail",
+ "add": "Ajouter",
+ "warning": "Avertissement",
+ "updating": "Mise à jour",
+ "adding": "Ajout",
+ "update": "Mettre à jour",
+ "creating": "Création",
+ "create": "Créer",
+ "cancel": "Annuler",
+ "description": "Description",
+ "title": "Titre",
+ "attachment": "Pièce jointe",
+ "general": "Général",
+ "features": "Fonctionnalités",
+ "automation": "Automatisation",
+ "project_name": "Nom du projet",
+ "project_id": "ID du projet",
+ "project_timezone": "Fuseau horaire du projet",
+ "created_on": "Créé le",
+ "update_project": "Mettre à jour le projet",
+ "identifier_already_exists": "L'identifiant existe déjà",
+ "add_more": "Ajouter plus",
+ "defaults": "Par défaut",
+ "add_label": "Ajouter une étiquette",
+ "estimates": "Estimations",
+ "customize_time_range": "Personnaliser la plage de temps",
+ "loading": "Chargement",
+ "attachments": "Pièces jointes",
+ "properties": "Propriétés",
+ "parent": "Parent",
+ "remove": "Supprimer",
+ "archiving": "Archivage",
+ "archive": "Archiver",
+ "access": {
+ "public": "Public",
+ "private": "Privé"
+ },
+ "done": "Terminé",
+ "sub_work_items": "Sous-éléments de travail",
+ "comment": "Commentaire",
+ "workspace_level": "Niveau espace de travail",
+ "order_by": {
+ "label": "Trier par",
+ "manual": "Manuel",
+ "last_created": "Dernier créé",
+ "last_updated": "Dernière mise à jour",
+ "start_date": "Date de début",
+ "due_date": "Date d'échéance",
+ "asc": "Croissant",
+ "desc": "Décroissant",
+ "updated_on": "Mis à jour le"
+ },
+ "sort": {
+ "asc": "Croissant",
+ "desc": "Décroissant",
+ "created_on": "Créé le",
+ "updated_on": "Mis à jour le"
+ },
+ "comments": "Commentaires",
+ "updates": "Mises à jour",
+ "clear_all": "Tout effacer",
+ "copied": "Copié !",
+ "link_copied": "Lien copié !",
+ "link_copied_to_clipboard": "Lien copié dans le presse-papiers",
+ "copied_to_clipboard": "Lien de l'élément de travail copié dans le presse-papiers",
+ "is_copied_to_clipboard": "L'élément de travail est copié dans le presse-papiers",
+ "no_links_added_yet": "Aucun lien ajouté pour l'instant",
+ "add_link": "Ajouter un lien",
+ "links": "Liens",
+ "go_to_workspace": "Aller à l'espace de travail",
+ "progress": "Progression",
+ "optional": "Optionnel",
+ "join": "Rejoindre",
+ "go_back": "Retour",
+ "continue": "Continuer",
+ "resend": "Renvoyer",
+ "relations": "Relations",
+ "errors": {
+ "default": {
+ "title": "Erreur !",
+ "message": "Quelque chose s'est mal passé. Veuillez réessayer."
+ },
+ "required": "Ce champ est obligatoire",
+ "entity_required": "{entity} est requis"
+ },
+ "update_link": "Mettre à jour le lien",
+ "attach": "Joindre",
+ "create_new": "Créer nouveau",
+ "add_existing": "Ajouter existant",
+ "type_or_paste_a_url": "Tapez ou collez une URL",
+ "url_is_invalid": "L'URL n'est pas valide",
+ "display_title": "Titre d'affichage",
+ "link_title_placeholder": "Comment souhaitez-vous voir ce lien",
+ "url": "URL",
+ "side_peek": "Aperçu latéral",
+ "modal": "Modal",
+ "full_screen": "Plein écran",
+ "close_peek_view": "Fermer l'aperçu",
+ "toggle_peek_view_layout": "Basculer la disposition de l'aperçu",
+ "options": "Options",
+ "duration": "Durée",
+ "today": "Aujourd'hui",
+ "week": "Semaine",
+ "month": "Mois",
+ "quarter": "Trimestre",
+ "press_for_commands": "Appuyez sur '/' pour les commandes",
+ "click_to_add_description": "Cliquez pour ajouter une description",
+ "search": {
+ "label": "Rechercher",
+ "placeholder": "Tapez pour rechercher",
+ "no_matches_found": "Aucune correspondance trouvée",
+ "no_matching_results": "Aucun résultat correspondant"
+ },
+ "actions": {
+ "edit": "Modifier",
+ "make_a_copy": "Faire une copie",
+ "open_in_new_tab": "Ouvrir dans un nouvel onglet",
+ "copy_link": "Copier le lien",
+ "archive": "Archiver",
+ "delete": "Supprimer",
+ "remove_relation": "Supprimer la relation",
+ "subscribe": "S'abonner",
+ "unsubscribe": "Se désabonner",
+ "clear_sorting": "Effacer le tri",
+ "show_weekends": "Afficher les week-ends",
+ "enable": "Activer",
+ "disable": "Désactiver"
+ },
+ "name": "Nom",
+ "discard": "Abandonner",
+ "confirm": "Confirmer",
+ "confirming": "Confirmation",
+ "read_the_docs": "Lire la documentation",
+ "default": "Par défaut",
+ "active": "Actif",
+ "enabled": "Activé",
+ "disabled": "Désactivé",
+ "mandate": "Mandat",
+ "mandatory": "Obligatoire",
+ "yes": "Oui",
+ "no": "Non",
+ "please_wait": "Veuillez patienter",
+ "enabling": "Activation",
+ "disabling": "Désactivation",
+ "beta": "Bêta",
+ "or": "ou",
+ "next": "Suivant",
+ "back": "Retour",
+ "cancelling": "Annulation",
+ "configuring": "Configuration",
+ "clear": "Effacer",
+ "import": "Importer",
+ "connect": "Connecter",
+ "authorizing": "Autorisation",
+ "processing": "Traitement",
+ "no_data_available": "Aucune donnée disponible",
+ "from": "de {name}",
+ "authenticated": "Authentifié",
+ "select": "Sélectionner",
+ "upgrade": "Mettre à niveau",
+ "add_seats": "Ajouter des sièges",
+ "label": "Étiquette",
+ "priorities": "Priorités",
+ "projects": "Projets",
+ "workspace": "Espace de travail",
+ "workspaces": "Espaces de travail",
+ "team": "Équipe",
+ "teams": "Équipes",
+ "entity": "Entité",
+ "entities": "Entités",
+ "task": "Tâche",
+ "tasks": "Tâches",
+ "section": "Section",
+ "sections": "Sections",
+ "edit": "Modifier",
+ "connecting": "Connexion",
+ "connected": "Connecté",
+ "disconnect": "Déconnecter",
+ "disconnecting": "Déconnexion",
+ "installing": "Installation",
+ "install": "Installer"
+ },
+
+ "form": {
+ "title": {
+ "required": "Le titre est requis",
+ "max_length": "Le titre doit contenir moins de {length} caractères"
+ }
+ },
+
+ "entity": {
+ "grouping_title": "Regroupement {entity}",
+ "priority": "Priorité {entity}",
+ "all": "Tous les {entity}",
+ "drop_here_to_move": "Déposez ici pour déplacer le {entity}",
+ "delete": {
+ "label": "Supprimer {entity}",
+ "success": "{entity} supprimé avec succès",
+ "failed": "Échec de la suppression de {entity}"
+ },
+ "update": {
+ "failed": "Échec de la mise à jour de {entity}",
+ "success": "{entity} mis à jour avec succès"
+ },
+ "link_copied_to_clipboard": "Lien {entity} copié dans le presse-papiers",
+ "fetch": {
+ "failed": "Erreur lors de la récupération de {entity}"
+ },
+ "add": {
+ "success": "{entity} ajouté avec succès",
+ "failed": "Erreur lors de l'ajout de {entity}"
+ }
+ },
+
+ "epic": {
+ "all": "Tous les Epics",
+ "label": "{count, plural, one {Epic} other {Epics}}",
+ "new": "Nouvel Epic",
+ "adding": "Ajout d'un epic",
+ "create": {
+ "success": "Epic créé avec succès"
+ },
+ "add": {
+ "press_enter": "Appuyez sur 'Entrée' pour ajouter un autre epic",
+ "label": "Ajouter un Epic"
+ },
+ "title": {
+ "label": "Titre de l'Epic",
+ "required": "Le titre de l'Epic est requis."
+ }
+ },
+
+ "issue": {
+ "label": "{count, plural, one {Élément de travail} other {Éléments de travail}}",
+ "all": "Tous les éléments de travail",
+ "edit": "Modifier l'élément de travail",
+ "title": {
+ "label": "Titre de l'élément de travail",
+ "required": "Le titre de l'élément de travail est requis."
+ },
+ "add": {
+ "press_enter": "Appuyez sur 'Entrée' pour ajouter un autre élément de travail",
+ "label": "Ajouter un élément de travail",
+ "cycle": {
+ "failed": "L'élément de travail n'a pas pu être ajouté au cycle. Veuillez réessayer.",
+ "success": "{count, plural, one {Élément de travail} other {Éléments de travail}} ajouté(s) au cycle avec succès.",
+ "loading": "Ajout de {count, plural, one {l'élément de travail} other {éléments de travail}} au cycle"
+ },
+ "assignee": "Ajouter des assignés",
+ "start_date": "Ajouter une date de début",
+ "due_date": "Ajouter une date d'échéance",
+ "parent": "Ajouter un élément de travail parent",
+ "sub_issue": "Ajouter un sous-élément de travail",
+ "relation": "Ajouter une relation",
+ "link": "Ajouter un lien",
+ "existing": "Ajouter un élément de travail existant"
+ },
+ "remove": {
+ "label": "Supprimer l'élément de travail",
+ "cycle": {
+ "loading": "Suppression de l'élément de travail du cycle",
+ "success": "Élément de travail supprimé du cycle avec succès.",
+ "failed": "L'élément de travail n'a pas pu être supprimé du cycle. Veuillez réessayer."
+ },
+ "module": {
+ "loading": "Suppression de l'élément de travail du module",
+ "success": "Élément de travail supprimé du module avec succès.",
+ "failed": "L'élément de travail n'a pas pu être supprimé du module. Veuillez réessayer."
+ },
+ "parent": {
+ "label": "Supprimer l'élément de travail parent"
+ }
+ },
+ "new": "Nouvel élément de travail",
+ "adding": "Ajout d'un élément de travail",
+ "create": {
+ "success": "Élément de travail créé avec succès"
+ },
+ "priority": {
+ "urgent": "Urgent",
+ "high": "Haute",
+ "medium": "Moyenne",
+ "low": "Basse"
+ },
+ "display": {
+ "properties": {
+ "label": "Propriétés d'affichage",
+ "id": "ID",
+ "issue_type": "Type d'élément de travail",
+ "sub_issue_count": "Nombre de sous-éléments",
+ "attachment_count": "Nombre de pièces jointes",
+ "created_on": "Créé le",
+ "sub_issue": "Sous-élément de travail"
+ },
+ "extra": {
+ "show_sub_issues": "Afficher les sous-éléments",
+ "show_empty_groups": "Afficher les groupes vides"
+ }
+ },
+ "layouts": {
+ "ordered_by_label": "Cette disposition est triée par",
+ "list": "Liste",
+ "kanban": "Tableau",
+ "calendar": "Calendrier",
+ "spreadsheet": "Tableau",
+ "gantt": "Chronologie",
+ "title": {
+ "list": "Disposition en liste",
+ "kanban": "Disposition en tableau",
+ "calendar": "Disposition en calendrier",
+ "spreadsheet": "Disposition en tableau",
+ "gantt": "Disposition en chronologie"
+ }
+ },
+ "states": {
+ "active": "Actif",
+ "backlog": "Backlog"
+ },
+ "comments": {
+ "placeholder": "Ajouter un commentaire",
+ "switch": {
+ "private": "Passer en commentaire privé",
+ "public": "Passer en commentaire public"
+ },
+ "create": {
+ "success": "Commentaire créé avec succès",
+ "error": "Échec de la création du commentaire. Veuillez réessayer plus tard."
+ },
+ "update": {
+ "success": "Commentaire mis à jour avec succès",
+ "error": "Échec de la mise à jour du commentaire. Veuillez réessayer plus tard."
+ },
+ "remove": {
+ "success": "Commentaire supprimé avec succès",
+ "error": "Échec de la suppression du commentaire. Veuillez réessayer plus tard."
+ },
+ "upload": {
+ "error": "Échec du téléchargement du fichier. Veuillez réessayer plus tard."
+ }
+ },
+ "empty_state": {
+ "issue_detail": {
+ "title": "L'élément de travail n'existe pas",
+ "description": "L'élément de travail que vous recherchez n'existe pas, a été archivé ou a été supprimé.",
+ "primary_button": {
+ "text": "Voir les autres éléments de travail"
+ }
+ }
+ },
+ "sibling": {
+ "label": "Éléments de travail frères"
+ },
+ "archive": {
+ "description": "Seuls les éléments de travail\nterminés ou annulés peuvent être archivés",
+ "label": "Archiver l'élément de travail",
+ "confirm_message": "Êtes-vous sûr de vouloir archiver l'élément de travail ? Tous vos éléments archivés peuvent être restaurés ultérieurement.",
+ "success": {
+ "label": "Archivage réussi",
+ "message": "Vos archives se trouvent dans les archives du projet."
+ },
+ "failed": {
+ "message": "L'élément de travail n'a pas pu être archivé. Veuillez réessayer."
+ }
+ },
+ "restore": {
+ "success": {
+ "title": "Restauration réussie",
+ "message": "Votre élément de travail se trouve dans les éléments de travail du projet."
+ },
+ "failed": {
+ "message": "L'élément de travail n'a pas pu être restauré. Veuillez réessayer."
+ }
+ },
+ "relation": {
+ "relates_to": "En relation avec",
+ "duplicate": "Doublon de",
+ "blocked_by": "Bloqué par",
+ "blocking": "Bloque"
+ },
+ "copy_link": "Copier le lien de l'élément de travail",
+ "delete": {
+ "label": "Supprimer l'élément de travail",
+ "error": "Erreur lors de la suppression de l'élément de travail"
+ },
+ "subscription": {
+ "actions": {
+ "subscribed": "Abonnement à l'élément de travail réussi",
+ "unsubscribed": "Désabonnement de l'élément de travail réussi"
+ }
+ },
+ "select": {
+ "error": "Veuillez sélectionner au moins un élément de travail",
+ "empty": "Aucun élément de travail sélectionné",
+ "add_selected": "Ajouter les éléments de travail sélectionnés"
+ },
+ "open_in_full_screen": "Ouvrir l'élément de travail en plein écran"
+ },
+
+ "attachment": {
+ "error": "Le fichier n'a pas pu être joint. Essayez de le télécharger à nouveau.",
+ "only_one_file_allowed": "Un seul fichier peut être téléchargé à la fois.",
+ "file_size_limit": "Le fichier doit faire {size}MB ou moins.",
+ "drag_and_drop": "Glissez-déposez n'importe où pour télécharger",
+ "delete": "Supprimer la pièce jointe"
+ },
+
+ "label": {
+ "select": "Sélectionner une étiquette",
+ "create": {
+ "success": "Étiquette créée avec succès",
+ "failed": "Échec de la création de l'étiquette",
+ "already_exists": "L'étiquette existe déjà",
+ "type": "Tapez pour ajouter une nouvelle étiquette"
+ }
+ },
+
+ "sub_work_item": {
+ "update": {
+ "success": "Sous-élément de travail mis à jour avec succès",
+ "error": "Erreur lors de la mise à jour du sous-élément de travail"
+ },
+ "remove": {
+ "success": "Sous-élément de travail supprimé avec succès",
+ "error": "Erreur lors de la suppression du sous-élément de travail"
+ }
+ },
+
+ "view": {
+ "label": "{count, plural, one {Vue} other {Vues}}",
+ "create": {
+ "label": "Créer une vue"
+ },
+ "update": {
+ "label": "Mettre à jour la vue"
+ }
+ },
+
+ "inbox_issue": {
+ "status": {
+ "pending": {
+ "title": "En attente",
+ "description": "En attente"
+ },
+ "declined": {
+ "title": "Refusé",
+ "description": "Refusé"
+ },
+ "snoozed": {
+ "title": "Reporté",
+ "description": "{days, plural, one{# jour} other{# jours}} restant(s)"
+ },
+ "accepted": {
+ "title": "Accepté",
+ "description": "Accepté"
+ },
+ "duplicate": {
+ "title": "Doublon",
+ "description": "Doublon"
+ }
+ },
+ "modals": {
+ "decline": {
+ "title": "Refuser l'élément de travail",
+ "content": "Êtes-vous sûr de vouloir refuser l'élément de travail {value} ?"
+ },
+ "delete": {
+ "title": "Supprimer l'élément de travail",
+ "content": "Êtes-vous sûr de vouloir supprimer l'élément de travail {value} ?",
+ "success": "Élément de travail supprimé avec succès"
+ }
+ },
+ "errors": {
+ "snooze_permission": "Seuls les administrateurs du projet peuvent reporter/annuler le report des éléments de travail",
+ "accept_permission": "Seuls les administrateurs du projet peuvent accepter les éléments de travail",
+ "decline_permission": "Seuls les administrateurs du projet peuvent refuser les éléments de travail"
+ },
+ "actions": {
+ "accept": "Accepter",
+ "decline": "Refuser",
+ "snooze": "Reporter",
+ "unsnooze": "Annuler le report",
+ "copy": "Copier le lien de l'élément de travail",
+ "delete": "Supprimer",
+ "open": "Ouvrir l'élément de travail",
+ "mark_as_duplicate": "Marquer comme doublon",
+ "move": "Déplacer {value} vers les éléments de travail du projet"
+ },
+ "source": {
+ "in-app": "in-app"
+ },
+ "order_by": {
+ "created_at": "Créé le",
+ "updated_at": "Mis à jour le",
+ "id": "ID"
+ },
+ "label": "Intake",
+ "page_label": "{workspace} - Intake",
+ "modal": {
+ "title": "Créer un élément de travail Intake"
+ },
+ "tabs": {
+ "open": "Ouvert",
+ "closed": "Fermé"
+ },
+ "empty_state": {
+ "sidebar_open_tab": {
+ "title": "Aucun élément de travail ouvert",
+ "description": "Trouvez les éléments de travail ouverts ici. Créez un nouvel élément de travail."
+ },
+ "sidebar_closed_tab": {
+ "title": "Aucun élément de travail fermé",
+ "description": "Tous les éléments de travail, qu'ils soient acceptés ou refusés, peuvent être trouvés ici."
+ },
+ "sidebar_filter": {
+ "title": "Aucun élément de travail correspondant",
+ "description": "Aucun élément de travail ne correspond au filtre appliqué dans Intake. Créez un nouvel élément de travail."
+ },
+ "detail": {
+ "title": "Sélectionnez un élément de travail pour voir ses détails."
+ }
+ }
+ },
+
+ "workspace_creation": {
+ "heading": "Créez votre espace de travail",
+ "subheading": "Pour commencer à utiliser Plane, vous devez créer ou rejoindre un espace de travail.",
+ "form": {
+ "name": {
+ "label": "Nommez votre espace de travail",
+ "placeholder": "Quelque chose de familier et reconnaissable est toujours préférable."
+ },
+ "url": {
+ "label": "Définissez l'URL de votre espace de travail",
+ "placeholder": "Tapez ou collez une URL",
+ "edit_slug": "Vous ne pouvez modifier que le slug de l'URL"
+ },
+ "organization_size": {
+ "label": "Combien de personnes utiliseront cet espace de travail ?",
+ "placeholder": "Sélectionnez une plage"
+ }
+ },
+ "errors": {
+ "creation_disabled": {
+ "title": "Seul l'administrateur de votre instance peut créer des espaces de travail",
+ "description": "Si vous connaissez l'adresse e-mail de votre administrateur d'instance, cliquez sur le bouton ci-dessous pour le contacter.",
+ "request_button": "Contacter l'administrateur d'instance"
+ },
+ "validation": {
+ "name_alphanumeric": "Les noms d'espaces de travail ne peuvent contenir que (' '), ('-'), ('_') et des caractères alphanumériques.",
+ "name_length": "Limitez votre nom à 80 caractères.",
+ "url_alphanumeric": "Les URL ne peuvent contenir que ('-') et des caractères alphanumériques.",
+ "url_length": "Limitez votre URL à 48 caractères.",
+ "url_already_taken": "L'URL de l'espace de travail est déjà prise !"
+ }
+ },
+ "request_email": {
+ "subject": "Demande d'un nouvel espace de travail",
+ "body": "Bonjour administrateur(s) d'instance,\n\nVeuillez créer un nouvel espace de travail avec l'URL [/workspace-name] pour [objectif de création de l'espace de travail].\n\nMerci,\n{firstName} {lastName}\n{email}"
+ },
+ "button": {
+ "default": "Créer l'espace de travail",
+ "loading": "Création de l'espace de travail"
+ },
+ "toast": {
+ "success": {
+ "title": "Succès",
+ "message": "Espace de travail créé avec succès"
+ },
+ "error": {
+ "title": "Erreur",
+ "message": "L'espace de travail n'a pas pu être créé. Veuillez réessayer."
+ }
+ }
+ },
+
+ "workspace_dashboard": {
+ "empty_state": {
+ "general": {
+ "title": "Aperçu de vos projets, activités et métriques",
+ "description": "Bienvenue sur Plane, nous sommes ravis de vous avoir parmi nous. Créez votre premier projet et suivez vos éléments de travail, et cette page se transformera en un espace qui vous aide à progresser. Les administrateurs verront également les éléments qui aident leur équipe à progresser.",
+ "primary_button": {
+ "text": "Construisez votre premier projet",
+ "comic": {
+ "title": "Tout commence par un projet dans Plane",
+ "description": "Un projet peut être la feuille de route d'un produit, une campagne marketing ou le lancement d'une nouvelle voiture."
+ }
+ }
+ }
+ }
+ },
+
+ "workspace_analytics": {
+ "label": "Analytique",
+ "page_label": "{workspace} - Analytique",
+ "open_tasks": "Total des tâches ouvertes",
+ "error": "Une erreur s'est produite lors de la récupération des données.",
+ "work_items_closed_in": "Éléments de travail fermés dans",
+ "selected_projects": "Projets sélectionnés",
+ "total_members": "Total des membres",
+ "total_cycles": "Total des Cycles",
+ "total_modules": "Total des Modules",
+ "pending_work_items": {
+ "title": "Éléments de travail en attente",
+ "empty_state": "L'analyse des éléments de travail en attente par collègues apparaît ici."
+ },
+ "work_items_closed_in_a_year": {
+ "title": "Éléments de travail fermés dans l'année",
+ "empty_state": "Fermez des éléments de travail pour voir leur analyse sous forme de graphique."
+ },
+ "most_work_items_created": {
+ "title": "Plus d'éléments de travail créés",
+ "empty_state": "Les collègues et le nombre d'éléments de travail créés par eux apparaissent ici."
+ },
+ "most_work_items_closed": {
+ "title": "Plus d'éléments de travail fermés",
+ "empty_state": "Les collègues et le nombre d'éléments de travail fermés par eux apparaissent ici."
+ },
+ "tabs": {
+ "scope_and_demand": "Portée et Demande",
+ "custom": "Analytique Personnalisée"
+ },
+ "empty_state": {
+ "general": {
+ "title": "Suivez les progrès, les charges de travail et les allocations. Repérez les tendances, supprimez les blocages et accélérez le travail",
+ "description": "Visualisez la portée par rapport à la demande, les estimations et l'augmentation de la portée. Obtenez les performances par membres de l'équipe et équipes, et assurez-vous que votre projet se déroule dans les délais.",
+ "primary_button": {
+ "text": "Commencez votre premier projet",
+ "comic": {
+ "title": "L'analytique fonctionne mieux avec les Cycles + Modules",
+ "description": "D'abord, planifiez vos éléments de travail dans des Cycles et, si possible, regroupez les éléments de travail qui s'étendent sur plus d'un cycle dans des Modules. Consultez les deux dans la navigation de gauche."
+ }
+ }
+ }
+ }
+ },
+
+ "workspace_projects": {
+ "label": "{count, plural, one {Projet} other {Projets}}",
+ "create": {
+ "label": "Ajouter un Projet"
+ },
+ "network": {
+ "private": {
+ "title": "Privé",
+ "description": "Accessible uniquement sur invitation"
+ },
+ "public": {
+ "title": "Public",
+ "description": "Accessible à tous dans l'espace de travail sauf les invités"
+ }
+ },
+ "error": {
+ "permission": "Vous n'avez pas la permission d'effectuer cette action.",
+ "cycle_delete": "Échec de la suppression du cycle",
+ "module_delete": "Échec de la suppression du module",
+ "issue_delete": "Échec de la suppression de l'élément de travail"
+ },
+ "state": {
+ "backlog": "Backlog",
+ "unstarted": "Non commencé",
+ "started": "Commencé",
+ "completed": "Terminé",
+ "cancelled": "Annulé"
+ },
+ "sort": {
+ "manual": "Manuel",
+ "name": "Nom",
+ "created_at": "Date de création",
+ "members_length": "Nombre de membres"
+ },
+ "scope": {
+ "my_projects": "Mes projets",
+ "archived_projects": "Archivés"
+ },
+ "common": {
+ "months_count": "{months, plural, one{# mois} other{# mois}}"
+ },
+ "empty_state": {
+ "general": {
+ "title": "Aucun projet actif",
+ "description": "Considérez chaque projet comme le parent d'un travail orienté objectif. Les projets sont l'endroit où vivent les Tâches, les Cycles et les Modules et, avec vos collègues, vous aident à atteindre cet objectif. Créez un nouveau projet ou filtrez les projets archivés.",
+ "primary_button": {
+ "text": "Commencez votre premier projet",
+ "comic": {
+ "title": "Tout commence par un projet dans Plane",
+ "description": "Un projet peut être la feuille de route d'un produit, une campagne marketing ou le lancement d'une nouvelle voiture."
+ }
+ }
+ },
+ "no_projects": {
+ "title": "Aucun projet",
+ "description": "Pour créer des éléments de travail ou gérer votre travail, vous devez créer un projet ou faire partie d'un projet.",
+ "primary_button": {
+ "text": "Commencez votre premier projet",
+ "comic": {
+ "title": "Tout commence par un projet dans Plane",
+ "description": "Un projet peut être la feuille de route d'un produit, une campagne marketing ou le lancement d'une nouvelle voiture."
+ }
+ }
+ },
+ "filter": {
+ "title": "Aucun projet correspondant",
+ "description": "Aucun projet détecté avec les critères correspondants. \n Créez plutôt un nouveau projet."
+ },
+ "search": {
+ "description": "Aucun projet détecté avec les critères correspondants.\nCréez plutôt un nouveau projet"
+ }
+ }
+ },
+
+ "workspace_views": {
+ "add_view": "Ajouter une vue",
+ "empty_state": {
+ "all-issues": {
+ "title": "Aucun élément de travail dans le projet",
+ "description": "Premier projet terminé ! Maintenant, découpez votre travail en morceaux traçables avec des éléments de travail. Allons-y !",
+ "primary_button": {
+ "text": "Créer un nouvel élément de travail"
+ }
+ },
+ "assigned": {
+ "title": "Aucun élément de travail pour le moment",
+ "description": "Les éléments de travail qui vous sont assignés peuvent être suivis ici.",
+ "primary_button": {
+ "text": "Créer un nouvel élément de travail"
+ }
+ },
+ "created": {
+ "title": "Aucun élément de travail pour le moment",
+ "description": "Tous les éléments de travail que vous créez arrivent ici, suivez-les directement ici.",
+ "primary_button": {
+ "text": "Créer un nouvel élément de travail"
+ }
+ },
+ "subscribed": {
+ "title": "Aucun élément de travail pour le moment",
+ "description": "Abonnez-vous aux éléments de travail qui vous intéressent, suivez-les tous ici."
+ },
+ "custom-view": {
+ "title": "Aucun élément de travail pour le moment",
+ "description": "Les éléments de travail qui correspondent aux filtres, suivez-les tous ici."
+ }
+ }
+ },
+
+ "workspace_settings": {
+ "label": "Paramètres de l'espace de travail",
+ "page_label": "{workspace} - Paramètres généraux",
+ "key_created": "Clé créée",
+ "copy_key": "Copiez et sauvegardez cette clé secrète dans Plane Pages. Vous ne pourrez plus voir cette clé après avoir cliqué sur Fermer. Un fichier CSV contenant la clé a été téléchargé.",
+ "token_copied": "Jeton copié dans le presse-papiers.",
+ "settings": {
+ "general": {
+ "title": "Général",
+ "upload_logo": "Télécharger le logo",
+ "edit_logo": "Modifier le logo",
+ "name": "Nom de l'espace de travail",
+ "company_size": "Taille de l'entreprise",
+ "url": "URL de l'espace de travail",
+ "update_workspace": "Mettre à jour l'espace de travail",
+ "delete_workspace": "Supprimer l'espace de travail",
+ "delete_workspace_description": "Lors de la suppression d'un espace de travail, toutes les données et ressources au sein de cet espace de travail seront définitivement supprimées et ne pourront pas être récupérées.",
+ "delete_btn": "Supprimer mon espace de travail",
+ "errors": {
+ "name": {
+ "required": "Le nom est requis",
+ "max_length": "Le nom de l'espace de travail ne doit pas dépasser 80 caractères"
+ },
+ "company_size": {
+ "required": "La taille de l'entreprise est requise"
+ }
+ }
+ },
+ "members": {
+ "title": "Membres",
+ "add_member": "Ajouter un membre",
+ "invitations_sent_successfully": "Invitations envoyées avec succès",
+ "leave_confirmation": "Êtes-vous sûr de vouloir quitter l'espace de travail ? Vous n'aurez plus accès à cet espace de travail. Cette action ne peut pas être annulée.",
+ "details": {
+ "full_name": "Nom complet",
+ "display_name": "Nom d'affichage",
+ "email_address": "Adresse e-mail",
+ "account_type": "Type de compte",
+ "authentication": "Authentification",
+ "joining_date": "Date d'adhésion"
+ },
+ "modal": {
+ "title": "Inviter des personnes à collaborer",
+ "description": "Invitez des personnes à collaborer sur votre espace de travail.",
+ "button": "Envoyer les invitations",
+ "button_loading": "Envoi des invitations",
+ "placeholder": "[email protected]",
+ "errors": {
+ "required": "Nous avons besoin d'une adresse e-mail pour les inviter.",
+ "invalid": "L'e-mail est invalide"
+ }
+ }
+ },
+ "billing_and_plans": {
+ "title": "Facturation & Plans",
+ "current_plan": "Plan actuel",
+ "free_plan": "Vous utilisez actuellement le plan gratuit",
+ "view_plans": "Voir les plans"
+ },
+ "exports": {
+ "title": "Exportations",
+ "exporting": "Exportation",
+ "previous_exports": "Exportations précédentes",
+ "export_separate_files": "Exporter les données dans des fichiers séparés",
+ "modal": {
+ "title": "Exporter vers",
+ "toasts": {
+ "success": {
+ "title": "Exportation réussie",
+ "message": "Vous pourrez télécharger les {entity} exportés depuis l'exportation précédente."
+ },
+ "error": {
+ "title": "Échec de l'exportation",
+ "message": "L'exportation a échoué. Veuillez réessayer."
+ }
+ }
+ }
+ },
+ "webhooks": {
+ "title": "Webhooks",
+ "add_webhook": "Ajouter un webhook",
+ "modal": {
+ "title": "Créer un webhook",
+ "details": "Détails du webhook",
+ "payload": "URL de la charge utile",
+ "question": "Quels événements souhaitez-vous déclencher avec ce webhook ?",
+ "error": "L'URL est requise"
+ },
+ "secret_key": {
+ "title": "Clé secrète",
+ "message": "Générer un jeton pour signer la charge utile du webhook"
+ },
+ "options": {
+ "all": "Envoyez-moi tout",
+ "individual": "Sélectionner des événements individuels"
+ },
+ "toasts": {
+ "created": {
+ "title": "Webhook créé",
+ "message": "Le webhook a été créé avec succès"
+ },
+ "not_created": {
+ "title": "Webhook non créé",
+ "message": "Le webhook n'a pas pu être créé"
+ },
+ "updated": {
+ "title": "Webhook mis à jour",
+ "message": "Le webhook a été mis à jour avec succès"
+ },
+ "not_updated": {
+ "title": "Webhook non mis à jour",
+ "message": "Le webhook n'a pas pu être mis à jour"
+ },
+ "removed": {
+ "title": "Webhook supprimé",
+ "message": "Le webhook a été supprimé avec succès"
+ },
+ "not_removed": {
+ "title": "Webhook non supprimé",
+ "message": "Le webhook n'a pas pu être supprimé"
+ },
+ "secret_key_copied": {
+ "message": "Clé secrète copiée dans le presse-papiers."
+ },
+ "secret_key_not_copied": {
+ "message": "Une erreur s'est produite lors de la copie de la clé secrète."
+ }
+ }
+ },
+ "api_tokens": {
+ "title": "Jetons API",
+ "add_token": "Ajouter un jeton API",
+ "create_token": "Créer un jeton",
+ "never_expires": "N'expire jamais",
+ "generate_token": "Générer un jeton",
+ "generating": "Génération",
+ "delete": {
+ "title": "Supprimer le jeton API",
+ "description": "Toute application utilisant ce jeton n'aura plus accès aux données de Plane. Cette action ne peut pas être annulée.",
+ "success": {
+ "title": "Succès !",
+ "message": "Le jeton API a été supprimé avec succès"
+ },
+ "error": {
+ "title": "Erreur !",
+ "message": "Le jeton API n'a pas pu être supprimé"
+ }
+ }
+ }
+ },
+ "empty_state": {
+ "api_tokens": {
+ "title": "Aucun jeton API créé",
+ "description": "Les API Plane peuvent être utilisées pour intégrer vos données dans Plane avec n'importe quel système externe. Créez un jeton pour commencer."
+ },
+ "webhooks": {
+ "title": "Aucun webhook ajouté",
+ "description": "Créez des webhooks pour recevoir des mises à jour en temps réel et automatiser des actions."
+ },
+ "exports": {
+ "title": "Aucune exportation pour le moment",
+ "description": "Chaque fois que vous exportez, vous aurez également une copie ici pour référence."
+ },
+ "imports": {
+ "title": "Aucune importation pour le moment",
+ "description": "Trouvez toutes vos importations précédentes ici et téléchargez-les."
+ }
+ }
+ },
+
+ "profile": {
+ "label": "Profil",
+ "page_label": "Votre travail",
+ "work": "Travail",
+ "details": {
+ "joined_on": "Inscrit le",
+ "time_zone": "Fuseau horaire"
+ },
+ "stats": {
+ "workload": "Charge de travail",
+ "overview": "Vue d'ensemble",
+ "created": "Éléments de travail créés",
+ "assigned": "Éléments de travail assignés",
+ "subscribed": "Éléments de travail suivis",
+ "state_distribution": {
+ "title": "Éléments de travail par état",
+ "empty": "Créez des éléments de travail pour les visualiser par état dans le graphique pour une meilleure analyse."
+ },
+ "priority_distribution": {
+ "title": "Éléments de travail par priorité",
+ "empty": "Créez des éléments de travail pour les visualiser par priorité dans le graphique pour une meilleure analyse."
+ },
+ "recent_activity": {
+ "title": "Activité récente",
+ "empty": "Nous n'avons pas trouvé de données. Veuillez consulter vos contributions",
+ "button": "Télécharger l'activité du jour",
+ "button_loading": "Téléchargement"
+ }
+ },
+ "actions": {
+ "profile": "Profil",
+ "security": "Sécurité",
+ "activity": "Activité",
+ "appearance": "Apparence",
+ "notifications": "Notifications"
+ },
+ "tabs": {
+ "summary": "Résumé",
+ "assigned": "Assigné",
+ "created": "Créé",
+ "subscribed": "Suivi",
+ "activity": "Activité"
+ },
+ "empty_state": {
+ "activity": {
+ "title": "Aucune activité pour le moment",
+ "description": "Commencez par créer un nouvel élément de travail ! Ajoutez-y des détails et des propriétés. Explorez davantage Plane pour voir votre activité."
+ },
+ "assigned": {
+ "title": "Aucun élément de travail ne vous est assigné",
+ "description": "Les éléments de travail qui vous sont assignés peuvent être suivis ici."
+ },
+ "created": {
+ "title": "Aucun élément de travail pour le moment",
+ "description": "Tous les éléments de travail que vous créez apparaissent ici, suivez-les directement ici."
+ },
+ "subscribed": {
+ "title": "Aucun élément de travail pour le moment",
+ "description": "Abonnez-vous aux éléments de travail qui vous intéressent, suivez-les tous ici."
+ }
+ }
+ },
+
+ "project_settings": {
+ "general": {
+ "enter_project_id": "Saisissez l'ID du projet",
+ "please_select_a_timezone": "Veuillez sélectionner un fuseau horaire",
+ "archive_project": {
+ "title": "Archiver le projet",
+ "description": "L'archivage d'un projet le retirera de votre navigation latérale, bien que vous pourrez toujours y accéder depuis votre page de projets. Vous pouvez restaurer le projet ou le supprimer quand vous le souhaitez.",
+ "button": "Archiver le projet"
+ },
+ "delete_project": {
+ "title": "Supprimer le projet",
+ "description": "Lors de la suppression d'un projet, toutes les données et ressources de ce projet seront définitivement supprimées et ne pourront pas être récupérées.",
+ "button": "Supprimer mon projet"
+ },
+ "toast": {
+ "success": "Projet mis à jour avec succès",
+ "error": "Le projet n'a pas pu être mis à jour. Veuillez réessayer."
+ }
+ },
+ "members": {
+ "label": "Membres",
+ "project_lead": "Chef de projet",
+ "default_assignee": "Assigné par défaut",
+ "guest_super_permissions": {
+ "title": "Accorder l'accès en lecture à tous les éléments de travail pour les utilisateurs invités :",
+ "sub_heading": "Cela permettra aux invités d'avoir un accès en lecture à tous les éléments de travail du projet."
+ },
+ "invite_members": {
+ "title": "Inviter des membres",
+ "sub_heading": "Invitez des membres à travailler sur votre projet.",
+ "select_co_worker": "Sélectionner un collaborateur"
+ }
+ },
+ "states": {
+ "describe_this_state_for_your_members": "Décrivez cet état pour vos membres."
+ },
+ "labels": {
+ "label_title": "Titre de l'étiquette",
+ "label_title_is_required": "Le titre de l'étiquette est requis",
+ "label_max_char": "Le nom de l'étiquette ne doit pas dépasser 255 caractères",
+ "toast": {
+ "error": "Erreur lors de la mise à jour de l'étiquette"
+ }
+ },
+ "estimates": {
+ "title": "Activer les estimations pour mon projet",
+ "description": "Elles vous aident à communiquer la complexité et la charge de travail de l'équipe."
+ },
+ "automations": {
+ "label": "Automatisations",
+ "auto-archive": {
+ "title": "Archiver automatiquement les éléments de travail fermés",
+ "description": "Plane archivera automatiquement les éléments de travail qui ont été terminés ou annulés.",
+ "duration": "Archiver automatiquement les éléments de travail qui sont fermés depuis"
+ },
+ "auto-close": {
+ "title": "Fermer automatiquement les éléments de travail",
+ "description": "Plane fermera automatiquement les éléments de travail qui n'ont pas été terminés ou annulés.",
+ "duration": "Fermer automatiquement les éléments de travail inactifs depuis",
+ "auto_close_status": "Statut de fermeture automatique"
+ }
+ },
+
+ "empty_state": {
+ "labels": {
+ "title": "Aucune étiquette pour le moment",
+ "description": "Créez des étiquettes pour aider à organiser et filtrer les éléments de travail dans votre projet."
+ },
+ "estimates": {
+ "title": "Aucun système d'estimation pour le moment",
+ "description": "Créez un ensemble d'estimations pour communiquer la quantité de travail par élément de travail.",
+ "primary_button": "Ajouter un système d'estimation"
+ }
+ }
+ },
+
+ "project_cycles": {
+ "add_cycle": "Ajouter un cycle",
+ "more_details": "Plus de détails",
+ "cycle": "Cycle",
+ "update_cycle": "Mettre à jour le cycle",
+ "create_cycle": "Créer un cycle",
+ "no_matching_cycles": "Aucun cycle correspondant",
+ "remove_filters_to_see_all_cycles": "Supprimez les filtres pour voir tous les cycles",
+ "remove_search_criteria_to_see_all_cycles": "Supprimez les critères de recherche pour voir tous les cycles",
+ "only_completed_cycles_can_be_archived": "Seuls les cycles terminés peuvent être archivés",
+ "active_cycle": {
+ "label": "Cycle actif",
+ "progress": "Progression",
+ "chart": "Graphique d'avancement",
+ "priority_issue": "Éléments de travail prioritaires",
+ "assignees": "Assignés",
+ "issue_burndown": "Graphique d'avancement des éléments",
+ "ideal": "Idéal",
+ "current": "Actuel",
+ "labels": "Étiquettes"
+ },
+ "upcoming_cycle": {
+ "label": "Cycle à venir"
+ },
+ "completed_cycle": {
+ "label": "Cycle terminé"
+ },
+ "status": {
+ "days_left": "Jours restants",
+ "completed": "Terminé",
+ "yet_to_start": "Pas encore commencé",
+ "in_progress": "En cours",
+ "draft": "Brouillon"
+ },
+ "action": {
+ "restore": {
+ "title": "Restaurer le cycle",
+ "success": {
+ "title": "Cycle restauré",
+ "description": "Le cycle a été restauré."
+ },
+ "failed": {
+ "title": "Échec de la restauration du cycle",
+ "description": "Le cycle n'a pas pu être restauré. Veuillez réessayer."
+ }
+ },
+ "favorite": {
+ "loading": "Ajout du cycle aux favoris",
+ "success": {
+ "description": "Cycle ajouté aux favoris.",
+ "title": "Succès !"
+ },
+ "failed": {
+ "description": "Impossible d'ajouter le cycle aux favoris. Veuillez réessayer.",
+ "title": "Erreur !"
+ }
+ },
+ "unfavorite": {
+ "loading": "Suppression du cycle des favoris",
+ "success": {
+ "description": "Cycle retiré des favoris.",
+ "title": "Succès !"
+ },
+ "failed": {
+ "description": "Impossible de retirer le cycle des favoris. Veuillez réessayer.",
+ "title": "Erreur !"
+ }
+ },
+ "update": {
+ "loading": "Mise à jour du cycle",
+ "success": {
+ "description": "Cycle mis à jour avec succès.",
+ "title": "Succès !"
+ },
+ "failed": {
+ "description": "Erreur lors de la mise à jour du cycle. Veuillez réessayer.",
+ "title": "Erreur !"
+ },
+ "error": {
+ "already_exists": "Vous avez déjà un cycle aux dates indiquées. Si vous souhaitez créer un cycle en brouillon, vous pouvez le faire en supprimant les deux dates."
+ }
+ }
+ },
+ "empty_state": {
+ "general": {
+ "title": "Regroupez et planifiez votre travail en Cycles.",
+ "description": "Découpez le travail en périodes définies, planifiez à rebours depuis la date limite de votre projet pour fixer les dates, et progressez concrètement en équipe.",
+ "primary_button": {
+ "text": "Définissez votre premier cycle",
+ "comic": {
+ "title": "Les cycles sont des périodes répétitives.",
+ "description": "Un sprint, une itération, ou tout autre terme que vous utilisez pour le suivi hebdomadaire ou bimensuel du travail est un cycle."
+ }
+ }
+ },
+ "no_issues": {
+ "title": "Aucun élément de travail ajouté au cycle",
+ "description": "Ajoutez ou créez des éléments de travail que vous souhaitez planifier et livrer dans ce cycle",
+ "primary_button": {
+ "text": "Créer un nouvel élément de travail"
+ },
+ "secondary_button": {
+ "text": "Ajouter un élément existant"
+ }
+ },
+ "completed_no_issues": {
+ "title": "Aucun élément de travail dans le cycle",
+ "description": "Aucun élément de travail dans le cycle. Les éléments sont soit transférés soit masqués. Pour voir les éléments masqués s'il y en a, mettez à jour vos propriétés d'affichage en conséquence."
+ },
+ "active": {
+ "title": "Aucun cycle actif",
+ "description": "Un cycle actif inclut toute période qui englobe la date d'aujourd'hui dans sa plage. Trouvez ici la progression et les détails du cycle actif."
+ },
+ "archived": {
+ "title": "Aucun cycle archivé pour le moment",
+ "description": "Pour organiser votre projet, archivez les cycles terminés. Retrouvez-les ici une fois archivés."
+ }
+ }
+ },
+
+ "project_issues": {
+ "empty_state": {
+ "no_issues": {
+ "title": "Créez un élément de travail et assignez-le à quelqu'un, même à vous-même",
+ "description": "Pensez aux éléments de travail comme des tâches, du travail, ou des JTBD (Jobs To Be Done). Un élément de travail et ses sous-éléments sont généralement des actions temporelles assignées aux membres de votre équipe. Votre équipe crée, assigne et complète des éléments de travail pour faire progresser votre projet vers son objectif.",
+ "primary_button": {
+ "text": "Créez votre premier élément de travail",
+ "comic": {
+ "title": "Les éléments de travail sont les blocs de construction dans Plane.",
+ "description": "Refondre l'interface de Plane, Renouveler l'image de marque de l'entreprise, ou Lancer le nouveau système d'injection de carburant sont des exemples d'éléments de travail qui ont probablement des sous-éléments."
+ }
+ }
+ },
+ "no_archived_issues": {
+ "title": "Aucun élément de travail archivé pour le moment",
+ "description": "Manuellement ou par automatisation, vous pouvez archiver les éléments de travail terminés ou annulés. Retrouvez-les ici une fois archivés.",
+ "primary_button": {
+ "text": "Configurer l'automatisation"
+ }
+ },
+ "issues_empty_filter": {
+ "title": "Aucun élément de travail trouvé correspondant aux filtres appliqués",
+ "secondary_button": {
+ "text": "Effacer tous les filtres"
+ }
+ }
+ }
+ },
+
+ "project_module": {
+ "add_module": "Ajouter un module",
+ "update_module": "Mettre à jour le module",
+ "create_module": "Créer un module",
+ "archive_module": "Archiver le module",
+ "restore_module": "Restaurer le module",
+ "delete_module": "Supprimer le module",
+ "empty_state": {
+ "general": {
+ "title": "Associez vos jalons de projet aux Modules et suivez facilement le travail agrégé.",
+ "description": "Un groupe d'éléments de travail qui appartiennent à un parent logique et hiérarchique forme un module. Considérez-les comme un moyen de suivre le travail par jalons de projet. Ils ont leurs propres périodes et délais ainsi que des analyses pour vous aider à voir à quel point vous êtes proche ou loin d'un jalon.",
+ "primary_button": {
+ "text": "Construisez votre premier module",
+ "comic": {
+ "title": "Les modules aident à regrouper le travail par hiérarchie.",
+ "description": "Un module panier, un module châssis et un module entrepôt sont tous de bons exemples de ce regroupement."
+ }
+ }
+ },
+ "no_issues": {
+ "title": "Aucun élément de travail dans le module",
+ "description": "Créez ou ajoutez des éléments de travail que vous souhaitez accomplir dans le cadre de ce module",
+ "primary_button": {
+ "text": "Créer de nouveaux éléments de travail"
+ },
+ "secondary_button": {
+ "text": "Ajouter un élément existant"
+ }
+ },
+ "archived": {
+ "title": "Aucun module archivé pour le moment",
+ "description": "Pour organiser votre projet, archivez les modules terminés ou annulés. Retrouvez-les ici une fois archivés."
+ },
+ "sidebar": {
+ "in_active": "Ce module n'est pas encore actif.",
+ "invalid_date": "Date invalide. Veuillez entrer une date valide."
+ }
+ },
+ "quick_actions": {
+ "archive_module": "Archiver le module",
+ "archive_module_description": "Seuls les modules terminés ou\nannulés peuvent être archivés.",
+ "delete_module": "Supprimer le module"
+ },
+ "toast": {
+ "copy": {
+ "success": "Lien du module copié dans le presse-papiers"
+ },
+ "delete": {
+ "success": "Module supprimé avec succès",
+ "error": "Échec de la suppression du module"
+ }
+ }
+ },
+
+ "project_views": {
+ "empty_state": {
+ "general": {
+ "title": "Enregistrez des vues filtrées pour votre projet. Créez-en autant que nécessaire",
+ "description": "Les vues sont un ensemble de filtres enregistrés que vous utilisez fréquemment ou auxquels vous souhaitez avoir un accès facile. Tous vos collègues dans un projet peuvent voir les vues de chacun et choisir celle qui convient le mieux à leurs besoins.",
+ "primary_button": {
+ "text": "Créez votre première vue",
+ "comic": {
+ "title": "Les vues fonctionnent sur les propriétés des éléments de travail.",
+ "description": "Vous pouvez créer une vue ici avec autant de propriétés comme filtres que vous le jugez approprié."
+ }
+ }
+ },
+ "filter": {
+ "title": "Aucune vue correspondante",
+ "description": "Aucune vue ne correspond aux critères de recherche. \n Créez plutôt une nouvelle vue."
+ }
+ }
+ },
+
+ "project_page": {
+ "empty_state": {
+ "general": {
+ "title": "Rédigez une note, un document ou une base de connaissances complète. Obtenez l'aide de Galileo, l'assistant IA de Plane, pour commencer",
+ "description": "Les Pages sont un espace de réflexion dans Plane. Prenez des notes de réunion, formatez-les facilement, intégrez des éléments de travail, disposez-les à l'aide d'une bibliothèque de composants, et gardez-les tous dans le contexte de votre projet. Pour faciliter la rédaction de tout document, faites appel à Galileo, l'IA de Plane, avec un raccourci ou un clic sur un bouton.",
+ "primary_button": {
+ "text": "Créez votre première page"
+ }
+ },
+ "private": {
+ "title": "Pas encore de pages privées",
+ "description": "Gardez vos pensées privées ici. Quand vous serez prêt à partager, l'équipe n'est qu'à un clic.",
+ "primary_button": {
+ "text": "Créez votre première page"
+ }
+ },
+ "public": {
+ "title": "Pas encore de pages publiques",
+ "description": "Consultez ici les pages partagées avec tout le monde dans votre projet.",
+ "primary_button": {
+ "text": "Créez votre première page"
+ }
+ },
+ "archived": {
+ "title": "Pas encore de pages archivées",
+ "description": "Archivez les pages qui ne sont pas dans votre radar. Accédez-y ici quand nécessaire."
+ }
+ }
+ },
+
+ "command_k": {
+ "empty_state": {
+ "search": {
+ "title": "Aucun résultat trouvé"
+ }
+ }
+ },
+
+ "issue_relation": {
+ "empty_state": {
+ "search": {
+ "title": "Aucun élément de travail correspondant trouvé"
+ },
+ "no_issues": {
+ "title": "Aucun élément de travail trouvé"
+ }
+ }
+ },
+
+ "issue_comment": {
+ "empty_state": {
+ "general": {
+ "title": "Pas encore de commentaires",
+ "description": "Les commentaires peuvent être utilisés comme espace de discussion et de suivi pour les éléments de travail"
+ }
+ }
+ },
+
+ "notification": {
+ "label": "Boîte de réception",
+ "page_label": "{workspace} - Boîte de réception",
+ "options": {
+ "mark_all_as_read": "Tout marquer comme lu",
+ "mark_read": "Marquer comme lu",
+ "mark_unread": "Marquer comme non lu",
+ "refresh": "Actualiser",
+ "filters": "Filtres de la boîte de réception",
+ "show_unread": "Afficher les non lus",
+ "show_snoozed": "Afficher les reportés",
+ "show_archived": "Afficher les archivés",
+ "mark_archive": "Archiver",
+ "mark_unarchive": "Désarchiver",
+ "mark_snooze": "Reporter",
+ "mark_unsnooze": "Annuler le report"
+ },
+ "toasts": {
+ "read": "Notification marquée comme lue",
+ "unread": "Notification marquée comme non lue",
+ "archived": "Notification marquée comme archivée",
+ "unarchived": "Notification marquée comme non archivée",
+ "snoozed": "Notification reportée",
+ "unsnoozed": "Report de la notification annulé"
+ },
+ "empty_state": {
+ "detail": {
+ "title": "Sélectionnez pour voir les détails."
+ },
+ "all": {
+ "title": "Aucun élément de travail assigné",
+ "description": "Les mises à jour des éléments de travail qui vous sont assignés peuvent être \n vues ici"
+ },
+ "mentions": {
+ "title": "Aucun élément de travail assigné",
+ "description": "Les mises à jour des éléments de travail qui vous sont assignés peuvent être \n vues ici"
+ }
+ },
+ "tabs": {
+ "all": "Tout",
+ "mentions": "Mentions"
+ },
+ "filter": {
+ "assigned": "Assigné à moi",
+ "created": "Créé par moi",
+ "subscribed": "Suivi par moi"
+ },
+ "snooze": {
+ "1_day": "1 jour",
+ "3_days": "3 jours",
+ "5_days": "5 jours",
+ "1_week": "1 semaine",
+ "2_weeks": "2 semaines",
+ "custom": "Personnalisé"
+ }
+ },
+
+ "active_cycle": {
+ "empty_state": {
+ "progress": {
+ "title": "Ajoutez des éléments de travail au cycle pour voir sa progression"
+ },
+ "chart": {
+ "title": "Ajoutez des éléments de travail au cycle pour voir le graphique d'avancement."
+ },
+ "priority_issue": {
+ "title": "Observez en un coup d'œil les éléments de travail prioritaires traités dans le cycle."
+ },
+ "assignee": {
+ "title": "Ajoutez des assignés aux éléments de travail pour voir une répartition du travail par assigné."
+ },
+ "label": {
+ "title": "Ajoutez des étiquettes aux éléments de travail pour voir la répartition du travail par étiquette."
+ }
+ }
+ },
+
+ "disabled_project": {
+ "empty_state": {
+ "inbox": {
+ "title": "L'Intake n'est pas activé pour le projet.",
+ "description": "L'Intake vous aide à gérer les demandes entrantes dans votre projet et à les ajouter comme éléments de travail dans votre flux. Activez l'Intake depuis les paramètres du projet pour gérer les demandes.",
+ "primary_button": {
+ "text": "Gérer les fonctionnalités"
+ }
+ },
+ "cycle": {
+ "title": "Les Cycles ne sont pas activés pour ce projet.",
+ "description": "Découpez le travail en segments temporels, planifiez à rebours depuis la date limite de votre projet pour définir les dates, et progressez concrètement en équipe. Activez la fonctionnalité Cycles pour votre projet pour commencer à les utiliser.",
+ "primary_button": {
+ "text": "Gérer les fonctionnalités"
+ }
+ },
+ "module": {
+ "title": "Les Modules ne sont pas activés pour le projet.",
+ "description": "Les Modules sont les éléments constitutifs de votre projet. Activez les modules depuis les paramètres du projet pour commencer à les utiliser.",
+ "primary_button": {
+ "text": "Gérer les fonctionnalités"
+ }
+ },
+ "page": {
+ "title": "Les Pages ne sont pas activées pour le projet.",
+ "description": "Les Pages sont les éléments constitutifs de votre projet. Activez les pages depuis les paramètres du projet pour commencer à les utiliser.",
+ "primary_button": {
+ "text": "Gérer les fonctionnalités"
+ }
+ },
+ "view": {
+ "title": "Les Vues ne sont pas activées pour le projet.",
+ "description": "Les Vues sont les éléments constitutifs de votre projet. Activez les vues depuis les paramètres du projet pour commencer à les utiliser.",
+ "primary_button": {
+ "text": "Gérer les fonctionnalités"
+ }
+ }
+ }
+ },
+ "workspace_draft_issues": {
+ "draft_an_issue": "Créer un brouillon d'élément de travail",
+ "empty_state": {
+ "title": "Les éléments de travail partiellement rédigés, et bientôt les commentaires, apparaîtront ici.",
+ "description": "Pour essayer cela, commencez à ajouter un élément de travail et laissez-le à mi-chemin ou créez votre premier brouillon ci-dessous. 😉",
+ "primary_button": {
+ "text": "Créez votre premier brouillon"
+ }
+ },
+ "delete_modal": {
+ "title": "Supprimer le brouillon",
+ "description": "Êtes-vous sûr de vouloir supprimer ce brouillon ? Cette action ne peut pas être annulée."
+ },
+ "toasts": {
+ "created": {
+ "success": "Brouillon créé",
+ "error": "L'élément de travail n'a pas pu être créé. Veuillez réessayer."
+ },
+ "deleted": {
+ "success": "Brouillon supprimé"
+ }
+ }
+ },
+
+ "stickies": {
+ "title": "Vos notes adhésives",
+ "placeholder": "cliquez pour écrire ici",
+ "all": "Toutes les notes adhésives",
+ "no-data": "Notez une idée, capturez une révélation ou enregistrez une inspiration. Ajoutez une note adhésive pour commencer.",
+ "add": "Ajouter une note adhésive",
+ "search_placeholder": "Rechercher par titre",
+ "delete": "Supprimer la note adhésive",
+ "delete_confirmation": "Êtes-vous sûr de vouloir supprimer cette note adhésive ?",
+ "empty_state": {
+ "simple": "Notez une idée, capturez une révélation ou enregistrez une inspiration. Ajoutez une note adhésive pour commencer.",
+ "general": {
+ "title": "Les notes adhésives sont des notes rapides et des tâches que vous prenez à la volée.",
+ "description": "Capturez vos pensées et idées facilement en créant des notes adhésives que vous pouvez consulter à tout moment et de n'importe où.",
+ "primary_button": {
+ "text": "Ajouter une note adhésive"
+ }
+ },
+ "search": {
+ "title": "Cela ne correspond à aucune de vos notes adhésives.",
+ "description": "Essayez un terme différent ou faites-nous savoir\nsi vous êtes sûr que votre recherche est correcte.",
+ "primary_button": {
+ "text": "Ajouter une note adhésive"
+ }
+ }
+ },
+ "toasts": {
+ "errors": {
+ "wrong_name": "Le nom de la note adhésive ne peut pas dépasser 100 caractères.",
+ "already_exists": "Il existe déjà une note adhésive sans description"
+ },
+ "created": {
+ "title": "Note adhésive créée",
+ "message": "La note adhésive a été créée avec succès"
+ },
+ "not_created": {
+ "title": "Note adhésive non créée",
+ "message": "La note adhésive n'a pas pu être créée"
+ },
+ "updated": {
+ "title": "Note adhésive mise à jour",
+ "message": "La note adhésive a été mise à jour avec succès"
+ },
+ "not_updated": {
+ "title": "Note adhésive non mise à jour",
+ "message": "La note adhésive n'a pas pu être mise à jour"
+ },
+ "removed": {
+ "title": "Note adhésive supprimée",
+ "message": "La note adhésive a été supprimée avec succès"
+ },
+ "not_removed": {
+ "title": "Note adhésive non supprimée",
+ "message": "La note adhésive n'a pas pu être supprimée"
+ }
+ }
+ },
+
+ "role_details": {
+ "guest": {
+ "title": "Invité",
+ "description": "Les membres externes des organisations peuvent être invités en tant qu'invités."
+ },
+ "member": {
+ "title": "Membre",
+ "description": "Capacité à lire, écrire, modifier et supprimer des entités dans les projets, cycles et modules"
+ },
+ "admin": {
+ "title": "Administrateur",
+ "description": "Toutes les permissions sont activées dans l'espace de travail."
+ }
+ },
+
+ "user_roles": {
+ "product_or_project_manager": "Chef de produit / Chef de projet",
+ "development_or_engineering": "Développement / Ingénierie",
+ "founder_or_executive": "Fondateur / Dirigeant",
+ "freelancer_or_consultant": "Freelance / Consultant",
+ "marketing_or_growth": "Marketing / Croissance",
+ "sales_or_business_development": "Ventes / Développement commercial",
+ "support_or_operations": "Support / Opérations",
+ "student_or_professor": "Étudiant / Professeur",
+ "human_resources": "Ressources Humaines",
+ "other": "Autre"
+ },
+
+ "importer": {
+ "github": {
+ "title": "GitHub",
+ "description": "Importez des éléments de travail depuis les dépôts GitHub et synchronisez-les."
+ },
+ "jira": {
+ "title": "Jira",
+ "description": "Importez des éléments de travail et des epics depuis les projets et epics Jira."
+ }
+ },
+
+ "exporter": {
+ "csv": {
+ "title": "CSV",
+ "description": "Exportez les éléments de travail vers un fichier CSV.",
+ "short_description": "Exporter en csv"
+ },
+ "excel": {
+ "title": "Excel",
+ "description": "Exportez les éléments de travail vers un fichier Excel.",
+ "short_description": "Exporter en excel"
+ },
+ "xlsx": {
+ "title": "Excel",
+ "description": "Exportez les éléments de travail vers un fichier Excel.",
+ "short_description": "Exporter en excel"
+ },
+ "json": {
+ "title": "JSON",
+ "description": "Exportez les éléments de travail vers un fichier JSON.",
+ "short_description": "Exporter en json"
+ }
+ },
+ "default_global_view": {
+ "all_issues": "Tous les éléments de travail",
+ "assigned": "Assignés",
+ "created": "Créés",
+ "subscribed": "Suivis"
+ },
+
+ "themes": {
+ "theme_options": {
+ "system_preference": {
+ "label": "Préférence système"
+ },
+ "light": {
+ "label": "Clair"
+ },
+ "dark": {
+ "label": "Sombre"
+ },
+ "light_contrast": {
+ "label": "Contraste clair élevé"
+ },
+ "dark_contrast": {
+ "label": "Contraste sombre élevé"
+ },
+ "custom": {
+ "label": "Thème personnalisé"
+ }
+ }
+ },
+ "project_modules": {
+ "status": {
+ "backlog": "Backlog",
+ "planned": "Planifié",
+ "in_progress": "En cours",
+ "paused": "En pause",
+ "completed": "Terminé",
+ "cancelled": "Annulé"
+ },
+ "layout": {
+ "list": "Vue liste",
+ "board": "Vue galerie",
+ "timeline": "Vue chronologique"
+ },
+ "order_by": {
+ "name": "Nom",
+ "progress": "Progression",
+ "issues": "Nombre d'éléments de travail",
+ "due_date": "Date d'échéance",
+ "created_at": "Date de création",
+ "manual": "Manuel"
+ }
+ },
+
+ "cycle": {
+ "label": "{count, plural, one {Cycle} other {Cycles}}",
+ "no_cycle": "Pas de cycle"
+ },
+
+ "module": {
+ "label": "{count, plural, one {Module} other {Modules}}",
+ "no_module": "Pas de module"
+ }
}
diff --git a/packages/i18n/src/locales/ja/translations.json b/packages/i18n/src/locales/ja/translations.json
index 77f7b32db2..3b71443fa0 100644
--- a/packages/i18n/src/locales/ja/translations.json
+++ b/packages/i18n/src/locales/ja/translations.json
@@ -1,4 +1,174 @@
{
+ "sidebar": {
+ "projects": "プロジェクト",
+ "pages": "ページ",
+ "new_work_item": "新規作業項目",
+ "home": "ホーム",
+ "your_work": "あなたの作業",
+ "inbox": "受信トレイ",
+ "workspace": "ワークスペース",
+ "views": "ビュー",
+ "analytics": "アナリティクス",
+ "work_items": "作業項目",
+ "cycles": "サイクル",
+ "modules": "モジュール",
+ "intake": "インテーク",
+ "drafts": "下書き",
+ "favorites": "お気に入り",
+ "pro": "プロ",
+ "upgrade": "アップグレード"
+ },
+
+ "auth": {
+ "common": {
+ "email": {
+ "label": "メールアドレス",
+ "placeholder": "[email protected]",
+ "errors": {
+ "required": "メールアドレスは必須です",
+ "invalid": "メールアドレスが無効です"
+ }
+ },
+ "password": {
+ "label": "パスワード",
+ "set_password": "パスワードを設定",
+ "placeholder": "パスワードを入力",
+ "confirm_password": {
+ "label": "パスワードの確認",
+ "placeholder": "パスワードを確認"
+ },
+ "current_password": {
+ "label": "現在のパスワード"
+ },
+ "new_password": {
+ "label": "新しいパスワード",
+ "placeholder": "新しいパスワードを入力"
+ },
+ "change_password": {
+ "label": {
+ "default": "パスワードを変更",
+ "submitting": "パスワードを変更中"
+ }
+ },
+ "errors": {
+ "match": "パスワードが一致しません",
+ "empty": "パスワードを入力してください",
+ "length": "パスワードは8文字以上である必要があります",
+ "strength": {
+ "weak": "パスワードが弱すぎます",
+ "strong": "パスワードは十分な強度です"
+ }
+ },
+ "submit": "パスワードを設定",
+ "toast": {
+ "change_password": {
+ "success": {
+ "title": "成功!",
+ "message": "パスワードが正常に変更されました。"
+ },
+ "error": {
+ "title": "エラー!",
+ "message": "問題が発生しました。もう一度お試しください。"
+ }
+ }
+ }
+ },
+ "unique_code": {
+ "label": "ユニークコード",
+ "placeholder": "gets-sets-flys",
+ "paste_code": "メールで送信されたコードを貼り付けてください",
+ "requesting_new_code": "新しいコードをリクエスト中",
+ "sending_code": "コードを送信中"
+ },
+ "already_have_an_account": "すでにアカウントをお持ちですか?",
+ "login": "ログイン",
+ "create_account": "アカウントを作成",
+ "new_to_plane": "Planeは初めてですか?",
+ "back_to_sign_in": "サインインに戻る",
+ "resend_in": "{seconds}秒後に再送信",
+ "sign_in_with_unique_code": "ユニークコードでサインイン",
+ "forgot_password": "パスワードをお忘れですか?"
+ },
+ "sign_up": {
+ "header": {
+ "label": "チームと作業を管理するためのアカウントを作成してください。",
+ "step": {
+ "email": {
+ "header": "サインアップ",
+ "sub_header": ""
+ },
+ "password": {
+ "header": "サインアップ",
+ "sub_header": "メールアドレスとパスワードの組み合わせでサインアップ。"
+ },
+ "unique_code": {
+ "header": "サインアップ",
+ "sub_header": "上記のメールアドレスに送信されたユニークコードでサインアップ。"
+ }
+ }
+ },
+ "errors": {
+ "password": {
+ "strength": "強力なパスワードを設定して続行してください"
+ }
+ }
+ },
+ "sign_in": {
+ "header": {
+ "label": "チームと作業を管理するためにログインしてください。",
+ "step": {
+ "email": {
+ "header": "ログインまたはサインアップ",
+ "sub_header": ""
+ },
+ "password": {
+ "header": "ログインまたはサインアップ",
+ "sub_header": "メールアドレスとパスワードの組み合わせでログイン。"
+ },
+ "unique_code": {
+ "header": "ログインまたはサインアップ",
+ "sub_header": "上記のメールアドレスに送信されたユニークコードでログイン。"
+ }
+ }
+ }
+ },
+ "forgot_password": {
+ "title": "パスワードをリセット",
+ "description": "確認済みのユーザーアカウントのメールアドレスを入力してください。パスワードリセットリンクを送信します。",
+ "email_sent": "リセットリンクをメールアドレスに送信しました",
+ "send_reset_link": "リセットリンクを送信",
+ "errors": {
+ "smtp_not_enabled": "管理者がSMTPを有効にしていないため、パスワードリセットリンクを送信できません"
+ },
+ "toast": {
+ "success": {
+ "title": "メール送信完了",
+ "message": "パスワードをリセットするためのリンクを受信トレイで確認してください。数分以内に表示されない場合は、迷惑メールフォルダを確認してください。"
+ },
+ "error": {
+ "title": "エラー!",
+ "message": "問題が発生しました。もう一度お試しください。"
+ }
+ }
+ },
+ "reset_password": {
+ "title": "新しいパスワードを設定",
+ "description": "強力なパスワードでアカウントを保護"
+ },
+ "set_password": {
+ "title": "アカウントを保護",
+ "description": "パスワードを設定して安全にログイン"
+ },
+ "sign_out": {
+ "toast": {
+ "error": {
+ "title": "エラー!",
+ "message": "サインアウトに失敗しました。もう一度お試しください。"
+ }
+ }
+ }
+ },
+
"submit": "送信",
"cancel": "キャンセル",
"loading": "読み込み中",
@@ -14,10 +184,13 @@
"description": "説明",
"search": "検索",
"add_member": "メンバーを追加",
+ "adding_members": "メンバーを追加中",
"remove_member": "メンバーを削除",
"add_members": "メンバーを追加",
+ "adding_member": "メンバーを追加中",
"remove_members": "メンバーを削除",
"add": "追加",
+ "adding": "追加中",
"remove": "削除",
"add_new": "新規追加",
"remove_selected": "選択項目を削除",
@@ -32,16 +205,15 @@
"password": "パスワード",
"change_cover": "カバーを変更",
"language": "言語",
- "saving": "保存中...",
+ "saving": "保存中",
"save_changes": "変更を保存",
"deactivate_account": "アカウントを無効化",
- "deactivate_account_description": "アカウントを無効化すると、そのアカウント内のすべてのデータとリソースが完全に削除され、復元することはできません。",
- "profile_settings": "プロフィール設定",
- "your_account": "アカウント",
- "profile": "プロフィール",
+ "deactivate_account_description": "アカウントを無効化すると、そのアカウント内のすべてのデータとリソースが完全に削除され、復元できなくなります。",
+ "profile_settings": "プロフィール設定",
+ "your_account": "あなたのアカウント",
"security": "セキュリティ",
- "activity": "アクティビティ",
- "appearance": "アピアンス",
+ "activity": "アクティビティ",
+ "appearance": "外観",
"notifications": "通知",
"workspaces": "ワークスペース",
"create_workspace": "ワークスペースを作成",
@@ -49,116 +221,75 @@
"summary": "概要",
"assigned": "割り当て済み",
"created": "作成済み",
- "subscribed": "購読済み",
+ "subscribed": "購読中",
"you_do_not_have_the_permission_to_access_this_page": "このページにアクセスする権限がありません。",
- "failed_to_sign_out_please_try_again": "サインアウトに失敗しました。もう一度お試しください。",
- "password_changed_successfully": "パスワードが正常に変更されました。",
- "something_went_wrong_please_try_again": "何かがうまくいきませんでした。もう一度お試しください。",
- "change_password": "パスワードを変更",
- "passwords_dont_match": "パスワードが一致しません",
- "current_password": "現在のパスワード",
- "new_password": "新しいパスワード",
- "confirm_password": "パスワードを確認",
- "this_field_is_required": "このフィールドは必須です",
- "changing_password": "パスワードを変更中",
- "please_enter_your_password": "パスワードを入力してください。",
- "password_length_should_me_more_than_8_characters": "パスワードの長さは8文字以上である必要があります。",
- "password_is_weak": "パスワードが弱いです。",
- "password_is_strong": "パスワードが強いです。",
+ "something_went_wrong_please_try_again": "問題が発生しました。もう一度お試しください。",
"load_more": "もっと読み込む",
- "select_or_customize_your_interface_color_scheme": "インターフェースのカラースキームを選択またはカスタマイズしてください。",
+ "select_or_customize_your_interface_color_scheme": "インターフェースの配色を選択またはカスタマイズしてください。",
"theme": "テーマ",
- "system_preference": "システム設定",
+ "system_preference": "システム設定に従う",
"light": "ライト",
"dark": "ダーク",
- "light_contrast": "ライト高コントラスト",
- "dark_contrast": "ダーク高コントラスト",
+ "light_contrast": "ライトハイコントラスト",
+ "dark_contrast": "ダークハイコントラスト",
"custom": "カスタムテーマ",
"select_your_theme": "テーマを選択",
"customize_your_theme": "テーマをカスタマイズ",
"background_color": "背景色",
- "text_color": "テキスト色",
- "primary_color": "プライマリ(テーマ)色",
- "sidebar_background_color": "サイドバー背景色",
- "sidebar_text_color": "サイドバーテキスト色",
+ "text_color": "文字色",
+ "primary_color": "プライマリ(テーマ)カラー",
+ "sidebar_background_color": "サイドバーの背景色",
+ "sidebar_text_color": "サイドバーの文字色",
"set_theme": "テーマを設定",
"enter_a_valid_hex_code_of_6_characters": "6文字の有効な16進コードを入力してください",
"background_color_is_required": "背景色は必須です",
- "text_color_is_required": "テキスト色は必須です",
- "primary_color_is_required": "プライマリ色は必須です",
- "sidebar_background_color_is_required": "サイドバー背景色は必須です",
- "sidebar_text_color_is_required": "サイドバーテキスト色は必須です",
+ "text_color_is_required": "文字色は必須です",
+ "primary_color_is_required": "プライマリカラーは必須です",
+ "sidebar_background_color_is_required": "サイドバーの背景色は必須です",
+ "sidebar_text_color_is_required": "サイドバーの文字色は必須です",
"updating_theme": "テーマを更新中",
"theme_updated_successfully": "テーマが正常に更新されました",
"failed_to_update_the_theme": "テーマの更新に失敗しました",
"email_notifications": "メール通知",
- "stay_in_the_loop_on_issues_you_are_subscribed_to_enable_this_to_get_notified": "購読している問題についての通知を受け取るには、これを有効にしてください。",
+ "stay_in_the_loop_on_issues_you_are_subscribed_to_enable_this_to_get_notified": "購読している作業項目の最新情報を受け取ります。通知を受け取るには有効にしてください。",
"email_notification_setting_updated_successfully": "メール通知設定が正常に更新されました",
"failed_to_update_email_notification_setting": "メール通知設定の更新に失敗しました",
- "notify_me_when": "通知する条件",
+ "notify_me_when": "通知を受け取るタイミング",
"property_changes": "プロパティの変更",
- "property_changes_description": "担当者、優先度、見積もりなどのプロパティが変更されたときに通知します。",
+ "property_changes_description": "作業項目の担当者、優先度、見積もりなどのプロパティが変更されたときに通知します。",
"state_change": "状態の変更",
- "state_change_description": "問題が別の状態に移動したときに通知します",
- "issue_completed": "問題が完了",
- "issue_completed_description": "問題が完了したときのみ通知します",
+ "state_change_description": "作業項目が異なる状態に移動したときに通知します",
+ "issue_completed": "作業項目の完了",
+ "issue_completed_description": "作業項目が完了したときのみ通知します",
"comments": "コメント",
- "comments_description": "誰かが問題にコメントを残したときに通知します",
+ "comments_description": "誰かが作業項目にコメントを残したときに通知します",
"mentions": "メンション",
- "mentions_description": "コメントや説明で誰かが自分をメンションしたときのみ通知します",
- "create_your_workspace": "ワークスペースを作成",
- "only_your_instance_admin_can_create_workspaces": "ワークスペースを作成できるのはインスタンス管理者のみです",
- "only_your_instance_admin_can_create_workspaces_description": "インスタンス管理者のメールアドレスを知っている場合は、以下のボタンをクリックして連絡を取ってください。",
- "go_back": "戻る",
- "request_instance_admin": "インスタンス管理者にリクエスト",
- "plane_logo": "プレーンロゴ",
- "workspace_creation_disabled": "ワークスペースの作成が無効化されています",
- "workspace_request_subject": "新しいワークスペースのリクエスト",
- "workspace_request_body": "インスタンス管理者様\n\nURL [/workspace-name] で新しいワークスペースを作成してください。[ワークスペース作成の目的]\n\nありがとうございます。\n{{firstName}} {{lastName}}\n{{email}}",
- "creating_workspace": "ワークスペースを作成中",
- "workspace_created_successfully": "ワークスペースが正常に作成されました",
- "create_workspace_page": "ワークスペース作成ページ",
- "workspace_could_not_be_created_please_try_again": "ワークスペースを作成できませんでした。もう一度お試しください。",
- "workspace_could_not_be_created_please_try_again_description": "ワークスペースの作成中にエラーが発生しました。もう一度お試しください。",
- "this_is_a_required_field": "これは必須フィールドです。",
- "name_your_workspace": "ワークスペースに名前を付ける",
- "workspaces_names_can_contain_only_space_dash_and_alphanumeric_characters": "ワークスペース名にはスペース、ダッシュ、アンダースコア、英数字のみを含めることができます。",
- "limit_your_name_to_80_characters": "名前は80文字以内にしてください。",
- "set_your_workspace_url": "ワークスペースのURLを設定",
- "limit_your_url_to_48_characters": "URLは48文字以内にしてください。",
- "how_many_people_will_use_this_workspace": "このワークスペースを使用する人数は?",
- "how_many_people_will_use_this_workspace_description": "購入するシート数を決定するのに役立ちます。",
- "select_a_range": "範囲を選択",
- "urls_can_contain_only_dash_and_alphanumeric_characters": "URLにはダッシュと英数字のみを含めることができます。",
- "something_familiar_and_recognizable_is_always_best": "親しみやすく認識しやすいものが常に最適です。",
- "workspace_url_is_already_taken": "ワークスペースのURLは既に使用されています!",
- "old_password": "古いパスワード",
+ "mentions_description": "誰かがコメントや説明で自分をメンションしたときのみ通知します",
+ "old_password": "現在のパスワード",
"general_settings": "一般設定",
"sign_out": "サインアウト",
"signing_out": "サインアウト中",
"active_cycles": "アクティブサイクル",
- "active_cycles_description": "プロジェクト全体のサイクルを監視し、高優先度の問題を追跡し、注意が必要なサイクルにズームインします。",
+ "active_cycles_description": "プロジェクト全体のサイクルを監視し、優先度の高い作業項目を追跡し、注意が必要なサイクルにズームインします。",
"on_demand_snapshots_of_all_your_cycles": "すべてのサイクルのオンデマンドスナップショット",
"upgrade": "アップグレード",
- "10000_feet_view": "すべてのアクティブサイクルの10,000フィートビュー。",
- "10000_feet_view_description": "各プロジェクトのサイクルを個別に見るのではなく、すべてのプロジェクトのサイクルを一度に見るためにズームアウトします。",
- "get_snapshot_of_each_active_cycle": "各アクティブサイクルのスナップショットを取得します。",
- "get_snapshot_of_each_active_cycle_description": "すべてのアクティブサイクルの高レベルのメトリクスを追跡し、進捗状況を確認し、期限に対するスコープの感覚を得ます。",
- "compare_burndowns": "バーンダウンを比較します。",
- "compare_burndowns_description": "各チームのパフォーマンスを監視し、各サイクルのバーンダウンレポートを覗き見します。",
- "quickly_see_make_or_break_issues": "重要な問題をすばやく確認します。",
- "quickly_see_make_or_break_issues_description": "各サイクルの期限に対する高優先度の問題をプレビューします。1クリックでサイクルごとにすべてを確認できます。",
- "zoom_into_cycles_that_need_attention": "注意が必要なサイクルにズームインします。",
- "zoom_into_cycles_that_need_attention_description": "期待に沿わないサイクルの状態を1クリックで調査します。",
- "stay_ahead_of_blockers": "ブロッカーを先取りします。",
- "stay_ahead_of_blockers_description": "プロジェクト間の課題を見つけ、他のビューからは明らかでないサイクル間の依存関係を確認します。",
- "analytics": "分析",
+ "10000_feet_view": "すべてのアクティブサイクルの俯瞰図",
+ "10000_feet_view_description": "各プロジェクトのサイクル間を移動する代わりに、すべてのプロジェクトの実行中のサイクルを一度に確認できます。",
+ "get_snapshot_of_each_active_cycle": "各アクティブサイクルのスナップショットを取得",
+ "get_snapshot_of_each_active_cycle_description": "すべてのアクティブサイクルの主要な指標を追跡し、進捗状況を確認し、期限に対する範囲を把握します。",
+ "compare_burndowns": "バーンダウンを比較",
+ "compare_burndowns_description": "各サイクルのバーンダウンレポートを確認して、各チームのパフォーマンスを監視します。",
+ "quickly_see_make_or_break_issues": "重要な作業項目をすぐに確認",
+ "quickly_see_make_or_break_issues_description": "期限に対する各サイクルの優先度の高い作業項目をプレビューします。ワンクリックでサイクルごとにすべての項目を確認できます。",
+ "zoom_into_cycles_that_need_attention": "注意が必要なサイクルにズームイン",
+ "zoom_into_cycles_that_need_attention_description": "期待に沿わないサイクルの状態をワンクリックで調査します。",
+ "stay_ahead_of_blockers": "ブロッカーに先手を打つ",
+ "stay_ahead_of_blockers_description": "プロジェクト間の課題を特定し、他のビューでは明らかでないサイクル間の依存関係を確認します。",
+ "analytics": "アナリティクス",
"workspace_invites": "ワークスペースの招待",
- "workspace_settings": "ワークスペース設定",
"enter_god_mode": "ゴッドモードに入る",
- "workspace_logo": "ワークスペースロゴ",
- "new_issue": "新しい問題",
- "home": "ホーム",
+ "workspace_logo": "ワークスペースのロゴ",
+ "new_issue": "新規作業項目",
"your_work": "あなたの作業",
"drafts": "下書き",
"projects": "プロジェクト",
@@ -168,15 +299,15 @@
"settings": "設定",
"failed_to_move_favorite": "お気に入りの移動に失敗しました",
"favorites": "お気に入り",
- "no_favorites_yet": "まだお気に入りはありません",
- "create_folder": "フォルダーを作成",
- "new_folder": "新しいフォルダー",
+ "no_favorites_yet": "まだお気に入りがありません",
+ "create_folder": "フォルダを作成",
+ "new_folder": "新規フォルダ",
"favorite_updated_successfully": "お気に入りが正常に更新されました",
"favorite_created_successfully": "お気に入りが正常に作成されました",
- "folder_already_exists": "フォルダーは既に存在します",
- "folder_name_cannot_be_empty": "フォルダー名を空にすることはできません",
- "something_went_wrong": "何かがうまくいきませんでした",
- "failed_to_reorder_favorite": "お気に入りの並べ替えに失敗しました",
+ "folder_already_exists": "フォルダは既に存在します",
+ "folder_name_cannot_be_empty": "フォルダ名を空にすることはできません",
+ "something_went_wrong": "問題が発生しました",
+ "failed_to_reorder_favorite": "お気に入りの並び替えに失敗しました",
"favorite_removed_successfully": "お気に入りが正常に削除されました",
"failed_to_create_favorite": "お気に入りの作成に失敗しました",
"failed_to_rename_favorite": "お気に入りの名前変更に失敗しました",
@@ -184,117 +315,122 @@
"link_copied": "リンクがコピーされました",
"add_project": "プロジェクトを追加",
"create_project": "プロジェクトを作成",
- "failed_to_remove_project_from_favorites": "お気に入りからプロジェクトを削除できませんでした。もう一度お試しください。",
+ "failed_to_remove_project_from_favorites": "プロジェクトをお気に入りから削除できませんでした。もう一度お試しください。",
"project_created_successfully": "プロジェクトが正常に作成されました",
- "project_created_successfully_description": "プロジェクトが正常に作成されました。今すぐ問題を追加し始めることができます。",
- "project_cover_image_alt": "プロジェクトカバー画像",
+ "project_created_successfully_description": "プロジェクトが正常に作成されました。作業項目を追加できるようになりました。",
+ "project_cover_image_alt": "プロジェクトのカバー画像",
"name_is_required": "名前は必須です",
"title_should_be_less_than_255_characters": "タイトルは255文字未満である必要があります",
"project_name": "プロジェクト名",
- "project_id_must_be_at_least_1_character": "プロジェクトIDは少なくとも1文字である必要があります",
- "project_id_must_be_at_most_5_characters": "プロジェクトIDは最大5文字である必要があります",
+ "project_id_must_be_at_least_1_character": "プロジェクトIDは最低1文字必要です",
+ "project_id_must_be_at_most_5_characters": "プロジェクトIDは最大5文字までです",
"project_id": "プロジェクトID",
- "project_id_tooltip_content": "プロジェクト内の問題を一意に識別するのに役立ちます。最大5文字。",
- "description_placeholder": "説明...",
- "only_alphanumeric_non_latin_characters_allowed": "英数字と非ラテン文字のみが許可されます。",
+ "project_id_tooltip_content": "プロジェクト内の作業項目を一意に識別するのに役立ちます。最大5文字。",
+ "description_placeholder": "説明",
+ "only_alphanumeric_non_latin_characters_allowed": "英数字と非ラテン文字のみ使用できます。",
"project_id_is_required": "プロジェクトIDは必須です",
+ "project_id_allowed_char": "英数字と非ラテン文字のみ使用できます。",
+ "project_id_min_char": "プロジェクトIDは最低1文字必要です",
+ "project_id_max_char": "プロジェクトIDは最大5文字までです",
+ "project_description_placeholder": "プロジェクトの説明を入力",
"select_network": "ネットワークを選択",
"lead": "リード",
+ "date_range": "日付範囲",
"private": "プライベート",
"public": "パブリック",
- "accessible_only_by_invite": "招待によってのみアクセス可能",
- "anyone_in_the_workspace_except_guests_can_join": "ゲストを除くワークスペース内の誰でも参加できます",
+ "accessible_only_by_invite": "招待のみアクセス可能",
+ "anyone_in_the_workspace_except_guests_can_join": "ゲスト以外のワークスペースのメンバーが参加可能",
"creating": "作成中",
"creating_project": "プロジェクトを作成中",
"adding_project_to_favorites": "プロジェクトをお気に入りに追加中",
"project_added_to_favorites": "プロジェクトがお気に入りに追加されました",
"couldnt_add_the_project_to_favorites": "プロジェクトをお気に入りに追加できませんでした。もう一度お試しください。",
- "removing_project_from_favorites": "お気に入りからプロジェクトを削除中",
+ "removing_project_from_favorites": "プロジェクトをお気に入りから削除中",
"project_removed_from_favorites": "プロジェクトがお気に入りから削除されました",
- "couldnt_remove_the_project_from_favorites": "お気に入りからプロジェクトを削除できませんでした。もう一度お試しください。",
+ "couldnt_remove_the_project_from_favorites": "プロジェクトをお気に入りから削除できませんでした。もう一度お試しください。",
"add_to_favorites": "お気に入りに追加",
"remove_from_favorites": "お気に入りから削除",
"publish_settings": "公開設定",
"publish": "公開",
"copy_link": "リンクをコピー",
- "leave_project": "プロジェクトを離れる",
- "join_the_project_to_rearrange": "プロジェクトに参加して並べ替え",
- "drag_to_rearrange": "ドラッグして並べ替え",
+ "leave_project": "プロジェクトを退出",
+ "join_the_project_to_rearrange": "並び替えるにはプロジェクトに参加してください",
+ "drag_to_rearrange": "ドラッグして並び替え",
"congrats": "おめでとうございます!",
- "project": "プロジェクト",
"open_project": "プロジェクトを開く",
- "issues": "問題",
- "cycles": "サイクル",
- "modules": "モジュール",
- "pages": "ページ",
- "intake": "インテーク",
- "time_tracking": "時間追跡",
+ "issues": "作業項目",
+ "cycles": "Cycles",
+ "modules": "Modules",
+ "pages": "Pages",
+ "intake": "Intake",
+ "time_tracking": "時間トラッキング",
"work_management": "作業管理",
- "projects_and_issues": "プロジェクトと問題",
- "projects_and_issues_description": "このプロジェクトでオンまたはオフに切り替えます。",
- "cycles_description": "プロジェクトごとに作業をタイムボックス化し、期間ごとに頻度を変更します。",
- "modules_description": "独自のリードと担当者を持つサブプロジェクトのようなセットアップに作業をグループ化します。",
- "views_description": "後で使用するために、または共有するためにソート、フィルター、表示オプションを保存します。",
- "pages_description": "何かを書くように何かを書く。",
- "intake_description": "購読している問題についての通知を受け取るには、これを有効にしてください。",
- "time_tracking_description": "問題とプロジェクトに費やした時間を追跡します。",
+ "projects_and_issues": "プロジェクトと作業項目",
+ "projects_and_issues_description": "このプロジェクトでオン/オフを切り替えます。",
+ "cycles_description": "プロジェクトごとに作業を時間枠で区切り、期間を次の期間に変更します。",
+ "modules_description": "サブプロジェクトのような設定で、独自のリーダーと担当者を持つグループ作業を行います。",
+ "views_description": "並び替え、フィルター、表示オプションを後で使用するために保存するか、共有します。",
+ "pages_description": "何でも書けるように何でも書きます。",
+ "intake_description": "購読している作業項目の最新情報を受け取ります。通知を受け取るには有効にしてください。",
+ "time_tracking_description": "作業項目とプロジェクトの作業時間を追跡します。",
"work_management_description": "作業とプロジェクトを簡単に管理します。",
"documentation": "ドキュメント",
- "message_support": "サポートにメッセージを送る",
- "contact_sales": "営業に連絡",
- "hyper_mode": "ハイパーモード",
+ "message_support": "サポートにメッセージ",
+ "contact_sales": "営業に問い合わせ",
+ "hyper_mode": "Hyper Mode",
"keyboard_shortcuts": "キーボードショートカット",
- "whats_new": "新着情報",
+ "whats_new": "新機能",
"version": "バージョン",
- "we_are_having_trouble_fetching_the_updates": "更新の取得に問題が発生しています。",
- "our_changelogs": "私たちの変更履歴",
+ "we_are_having_trouble_fetching_the_updates": "更新情報の取得に問題が発生しています。",
+ "our_changelogs": "変更履歴",
"for_the_latest_updates": "最新の更新情報については",
- "please_visit": "訪問してください",
+ "please_visit": "をご覧ください",
"docs": "ドキュメント",
"full_changelog": "完全な変更履歴",
"support": "サポート",
- "discord": "ディスコード",
- "powered_by_plane_pages": "Plane Pagesによって提供されています",
+ "discord": "Discord",
+ "powered_by_plane_pages": "Powered by Plane Pages",
"please_select_at_least_one_invitation": "少なくとも1つの招待を選択してください。",
- "please_select_at_least_one_invitation_description": "ワークスペースに参加するために少なくとも1つの招待を選択してください。",
- "we_see_that_someone_has_invited_you_to_join_a_workspace": "誰かがワークスペースに参加するようにあなたを招待したことがわかります",
+ "please_select_at_least_one_invitation_description": "ワークスペースに参加するには少なくとも1つの招待を選択してください。",
+ "we_see_that_someone_has_invited_you_to_join_a_workspace": "誰かがあなたをワークスペースに招待しています",
"join_a_workspace": "ワークスペースに参加",
- "we_see_that_someone_has_invited_you_to_join_a_workspace_description": "誰かがワークスペースに参加するようにあなたを招待したことがわかります",
+ "we_see_that_someone_has_invited_you_to_join_a_workspace_description": "誰かがあなたをワークスペースに招待しています",
"join_a_workspace_description": "ワークスペースに参加",
- "accept_and_join": "受け入れて参加",
- "go_home": "ホームに戻る",
+ "accept_and_join": "承諾して参加",
+ "go_home": "ホームへ",
"no_pending_invites": "保留中の招待はありません",
"you_can_see_here_if_someone_invites_you_to_a_workspace": "誰かがワークスペースに招待した場合、ここで確認できます",
"back_to_home": "ホームに戻る",
"workspace_name": "ワークスペース名",
"deactivate_your_account": "アカウントを無効化",
- "deactivate_your_account_description": "無効化すると、問題を割り当てられなくなり、ワークスペースの請求もされなくなります。アカウントを再有効化するには、このメールアドレスに招待されたワークスペースが必要です。",
+ "deactivate_your_account_description": "無効化すると、作業項目を割り当てられなくなり、ワークスペースの請求対象外となります。アカウントを再有効化するには、このメールアドレスでワークスペースへの招待が必要です。",
"deactivating": "無効化中",
"confirm": "確認",
+ "confirming": "確認中",
"draft_created": "下書きが作成されました",
- "issue_created_successfully": "問題が正常に作成されました",
- "draft_creation_failed": "下書き作成に失敗しました",
- "issue_creation_failed": "問題作成に失敗しました",
- "draft_issue": "下書き問題",
- "issue_updated_successfully": "問題が正常に更新されました",
- "issue_could_not_be_updated": "問題を更新できませんでした",
+ "issue_created_successfully": "作業項目が正常に作成されました",
+ "draft_creation_failed": "下書きの作成に失敗しました",
+ "issue_creation_failed": "作業項目の作成に失敗しました",
+ "draft_issue": "作業項目の下書き",
+ "issue_updated_successfully": "作業項目が正常に更新されました",
+ "issue_could_not_be_updated": "作業項目を更新できませんでした",
"create_a_draft": "下書きを作成",
"save_to_drafts": "下書きに保存",
"save": "保存",
"update": "更新",
"updating": "更新中",
- "create_new_issue": "新しい問題を作成",
+ "create_new_issue": "新規作業項目を作成",
"editor_is_not_ready_to_discard_changes": "エディターは変更を破棄する準備ができていません",
- "failed_to_move_issue_to_project": "問題をプロジェクトに移動できませんでした",
- "create_more": "作成する",
+ "failed_to_move_issue_to_project": "作業項目をプロジェクトに移動できませんでした",
+ "create_more": "さらに作成",
"add_to_project": "プロジェクトに追加",
"discard": "破棄",
- "duplicate_issue_found": "重複問題が見つかりました",
- "duplicate_issues_found": "重複問題が見つかりました",
- "no_matching_results": "一致する結果はありません",
+ "duplicate_issue_found": "重複する作業項目が見つかりました",
+ "duplicate_issues_found": "重複する作業項目が見つかりました",
+ "no_matching_results": "一致する結果がありません",
"title_is_required": "タイトルは必須です",
"title": "タイトル",
- "state": "ステータス",
+ "state": "状態",
"priority": "優先度",
"none": "なし",
"urgent": "緊急",
@@ -302,18 +438,1882 @@
"medium": "中",
"low": "低",
"members": "メンバー",
- "assignee": "アサイン者",
- "assignees": "アサイン者",
+ "assignee": "担当者",
+ "assignees": "担当者",
"you": "あなた",
"labels": "ラベル",
- "create_new_label": "新しいラベルを作成",
+ "create_new_label": "新規ラベルを作成",
"start_date": "開始日",
- "due_date": "期限日",
- "cycle": "サイクル",
+ "end_date": "終了日",
+ "due_date": "期限",
"estimate": "見積もり",
- "change_parent_issue": "親問題を変更",
- "remove_parent_issue": "親問題を削除",
- "add_parent": "親問題を追加",
- "loading_members": "メンバーを読み込んでいます...",
- "inbox": "受信箱"
+ "change_parent_issue": "親作業項目を変更",
+ "remove_parent_issue": "親作業項目を削除",
+ "add_parent": "親を追加",
+ "loading_members": "メンバーを読み込み中",
+ "view_link_copied_to_clipboard": "ビューリンクがクリップボードにコピーされました。",
+ "required": "必須",
+ "optional": "任意",
+ "Cancel": "キャンセル",
+ "edit": "編集",
+ "archive": "アーカイブ",
+ "restor": "復元",
+ "open_in_new_tab": "新しいタブで開く",
+ "delete": "削除",
+ "deleting": "削除中",
+ "make_a_copy": "コピーを作成",
+ "move_to_project": "プロジェクトに移動",
+ "good": "おはよう",
+ "morning": "ございます",
+ "afternoon": "こんにちは",
+ "evening": "こんばんは",
+ "show_all": "すべて表示",
+ "show_less": "表示を減らす",
+ "no_data_yet": "まだデータがありません",
+ "syncing": "同期中",
+ "add_work_item": "作業項目を追加",
+ "advanced_description_placeholder": "コマンドには '/' を押してください",
+ "create_work_item": "作業項目を作成",
+ "attachments": "添付ファイル",
+ "declining": "辞退中",
+ "declined": "辞退済み",
+ "decline": "辞退",
+ "unassigned": "未割り当て",
+ "work_items": "作業項目",
+ "add_link": "リンクを追加",
+ "points": "ポイント",
+ "no_assignee": "担当者なし",
+ "no_assignees_yet": "まだ担当者がいません",
+ "no_labels_yet": "まだラベルがありません",
+ "ideal": "理想",
+ "current": "現在",
+ "no_matching_members": "一致するメンバーがいません",
+ "leaving": "退出中",
+ "removing": "削除中",
+ "leave": "退出",
+ "refresh": "更新",
+ "refreshing": "更新中",
+ "refresh_status": "状態を更新",
+ "prev": "前へ",
+ "next": "次へ",
+ "re_generating": "再生成中",
+ "re_generate": "再生成",
+ "re_generate_key": "キーを再生成",
+ "export": "エクスポート",
+ "member": "{count, plural, other{# メンバー}}",
+
+ "project_view": {
+ "sort_by": {
+ "created_at": "作成日時",
+ "updated_at": "更新日時",
+ "name": "名前"
+ }
+ },
+
+ "toast": {
+ "success": "成功!",
+ "error": "エラー!"
+ },
+
+ "links": {
+ "toasts": {
+ "created": {
+ "title": "リンクが作成されました",
+ "message": "リンクが正常に作成されました"
+ },
+ "not_created": {
+ "title": "リンクが作成されませんでした",
+ "message": "リンクを作成できませんでした"
+ },
+ "updated": {
+ "title": "リンクが更新されました",
+ "message": "リンクが正常に更新されました"
+ },
+ "not_updated": {
+ "title": "リンクが更新されませんでした",
+ "message": "リンクを更新できませんでした"
+ },
+ "removed": {
+ "title": "リンクが削除されました",
+ "message": "リンクが正常に削除されました"
+ },
+ "not_removed": {
+ "title": "リンクが削除されませんでした",
+ "message": "リンクを削除できませんでした"
+ }
+ }
+ },
+
+ "home": {
+ "empty": {
+ "create_project": {
+ "title": "プロジェクトを作成",
+ "description": "Planeのほとんどはプロジェクトから始まります。",
+ "cta": "始める"
+ },
+ "invite_team": {
+ "title": "チームを招待",
+ "description": "同僚と一緒に構築、デプロイ、管理しましょう。",
+ "cta": "招待する"
+ },
+ "configure_workspace": {
+ "title": "ワークスペースを設定する。",
+ "description": "機能のオン/オフを切り替えたり、さらに詳細な設定を行ったりできます。",
+ "cta": "このワークスペースを設定"
+ },
+ "personalize_account": {
+ "title": "Planeをあなた好みにカスタマイズ。",
+ "description": "プロフィール画像、カラー、その他の設定を選択してください。",
+ "cta": "今すぐパーソナライズ"
+ },
+ "widgets": {
+ "title": "ウィジェットがないと静かですね、オンにしましょう",
+ "description": "すべてのウィジェットがオフになっているようです。体験を向上させるために\n今すぐ有効にしましょう!",
+ "primary_button": {
+ "text": "ウィジェットを管理"
+ }
+ }
+ },
+ "quick_links": {
+ "empty": "手元に置いておきたい作業関連のリンクを保存してください。",
+ "add": "クイックリンクを追加",
+ "title": "クイックリンク",
+ "title_plural": "クイックリンク"
+ },
+ "recents": {
+ "title": "最近",
+ "empty": {
+ "project": "プロジェクトを訪問すると、最近のプロジェクトがここに表示されます。",
+ "page": "ページを訪問すると、最近のページがここに表示されます。",
+ "issue": "作業項目を訪問すると、最近の作業項目がここに表示されます。",
+ "default": "まだ最近の項目がありません。"
+ },
+ "filters": {
+ "all": "すべての項目",
+ "projects": "プロジェクト",
+ "pages": "ページ",
+ "issues": "作業項目"
+ }
+ },
+ "new_at_plane": {
+ "title": "Planeの新機能"
+ },
+ "quick_tutorial": {
+ "title": "クイックチュートリアル"
+ },
+ "widget": {
+ "reordered_successfully": "ウィジェットの並び替えが完了しました。",
+ "reordering_failed": "ウィジェットの並び替え中にエラーが発生しました。"
+ },
+ "manage_widgets": "ウィジェットを管理",
+ "title": "ホーム",
+ "star_us_on_github": "GitHubでスターをつける"
+ },
+
+ "link": {
+ "modal": {
+ "url": {
+ "text": "URL",
+ "required": "URLが無効です",
+ "placeholder": "URLを入力または貼り付け"
+ },
+ "title": {
+ "text": "表示タイトル",
+ "placeholder": "このリンクをどのように表示したいか"
+ }
+ }
+ },
+
+ "common": {
+ "all": "すべて",
+ "states": "ステータス",
+ "state": "ステータス",
+ "state_groups": "ステータスグループ",
+ "priority": "優先度",
+ "team_project": "チームプロジェクト",
+ "project": "プロジェクト",
+ "cycle": "サイクル",
+ "cycles": "サイクル",
+ "module": "モジュール",
+ "modules": "モジュール",
+ "labels": "ラベル",
+ "assignees": "担当者",
+ "assignee": "担当者",
+ "created_by": "作成者",
+ "none": "なし",
+ "link": "リンク",
+ "estimate": "見積もり",
+ "layout": "レイアウト",
+ "filters": "フィルター",
+ "display": "表示",
+ "load_more": "もっと読み込む",
+ "activity": "アクティビティ",
+ "analytics": "アナリティクス",
+ "dates": "日付",
+ "success": "成功!",
+ "something_went_wrong": "問題が発生しました",
+ "error": {
+ "label": "エラー!",
+ "message": "エラーが発生しました。もう一度お試しください。"
+ },
+ "group_by": "グループ化",
+ "epic": "エピック",
+ "epics": "エピック",
+ "work_item": "作業項目",
+ "sub_work_item": "サブ作業項目",
+ "add": "追加",
+ "warning": "警告",
+ "updating": "更新中",
+ "adding": "追加中",
+ "update": "更新",
+ "creating": "作成中",
+ "create": "作成",
+ "cancel": "キャンセル",
+ "description": "説明",
+ "title": "タイトル",
+ "attachment": "添付ファイル",
+ "general": "一般",
+ "features": "機能",
+ "automation": "自動化",
+ "project_name": "プロジェクト名",
+ "project_id": "プロジェクトID",
+ "project_timezone": "プロジェクトのタイムゾーン",
+ "created_on": "作成日",
+ "update_project": "プロジェクトを更新",
+ "identifier_already_exists": "識別子は既に存在します",
+ "add_more": "さらに追加",
+ "defaults": "デフォルト",
+ "add_label": "ラベルを追加",
+ "estimates": "見積もり",
+ "customize_time_range": "期間をカスタマイズ",
+ "loading": "読み込み中",
+ "attachments": "添付ファイル",
+ "properties": "プロパティ",
+ "parent": "親",
+ "remove": "削除",
+ "archiving": "アーカイブ中",
+ "archive": "アーカイブ",
+ "access": {
+ "public": "公開",
+ "private": "非公開"
+ },
+ "done": "完了",
+ "sub_work_items": "サブ作業項目",
+ "comment": "コメント",
+ "workspace_level": "ワークスペースレベル",
+ "order_by": {
+ "label": "並び順",
+ "manual": "手動",
+ "last_created": "最終作成日",
+ "last_updated": "最終更新日",
+ "start_date": "開始日",
+ "due_date": "期限日",
+ "asc": "昇順",
+ "desc": "降順",
+ "updated_on": "更新日"
+ },
+ "sort": {
+ "asc": "昇順",
+ "desc": "降順",
+ "created_on": "作成日",
+ "updated_on": "更新日"
+ },
+ "comments": "コメント",
+ "updates": "更新",
+ "clear_all": "すべてクリア",
+ "copied": "コピーしました!",
+ "link_copied": "リンクをコピーしました!",
+ "link_copied_to_clipboard": "リンクをクリップボードにコピーしました",
+ "copied_to_clipboard": "作業項目のリンクをクリップボードにコピーしました",
+ "is_copied_to_clipboard": "作業項目をクリップボードにコピーしました",
+ "no_links_added_yet": "リンクはまだ追加されていません",
+ "add_link": "リンクを追加",
+ "links": "リンク",
+ "go_to_workspace": "ワークスペースへ移動",
+ "progress": "進捗",
+ "optional": "任意",
+ "join": "参加",
+ "go_back": "戻る",
+ "continue": "続ける",
+ "resend": "再送信",
+ "relations": "関連",
+ "errors": {
+ "default": {
+ "title": "エラー!",
+ "message": "問題が発生しました。もう一度お試しください。"
+ },
+ "required": "この項目は必須です",
+ "entity_required": "{entity}は必須です"
+ },
+ "update_link": "リンクを更新",
+ "attach": "添付",
+ "create_new": "新規作成",
+ "add_existing": "既存を追加",
+ "type_or_paste_a_url": "URLを入力または貼り付け",
+ "url_is_invalid": "URLが無効です",
+ "display_title": "表示タイトル",
+ "link_title_placeholder": "このリンクをどのように表示したいか",
+ "url": "URL",
+ "side_peek": "サイドピーク",
+ "modal": "モーダル",
+ "full_screen": "全画面",
+ "close_peek_view": "ピークビューを閉じる",
+ "toggle_peek_view_layout": "ピークビューのレイアウトを切り替え",
+ "options": "オプション",
+ "duration": "期間",
+ "today": "今日",
+ "week": "週",
+ "month": "月",
+ "quarter": "四半期",
+ "press_for_commands": "コマンドは「/」を押してください",
+ "click_to_add_description": "クリックして説明を追加",
+ "search": {
+ "label": "検索",
+ "placeholder": "検索するキーワードを入力",
+ "no_matches_found": "一致する結果が見つかりません",
+ "no_matching_results": "一致する結果がありません"
+ },
+ "actions": {
+ "edit": "編集",
+ "make_a_copy": "コピーを作成",
+ "open_in_new_tab": "新しいタブで開く",
+ "copy_link": "リンクをコピー",
+ "archive": "アーカイブ",
+ "delete": "削除",
+ "remove_relation": "関連を削除",
+ "subscribe": "購読",
+ "unsubscribe": "購読解除",
+ "clear_sorting": "並び替えをクリア",
+ "show_weekends": "週末を表示",
+ "enable": "有効化",
+ "disable": "無効化"
+ },
+ "name": "名前",
+ "discard": "破棄",
+ "confirm": "確認",
+ "confirming": "確認中",
+ "read_the_docs": "ドキュメントを読む",
+ "default": "デフォルト",
+ "active": "アクティブ",
+ "enabled": "有効",
+ "disabled": "無効",
+ "mandate": "必須",
+ "mandatory": "必須",
+ "yes": "はい",
+ "no": "いいえ",
+ "please_wait": "お待ちください",
+ "enabling": "有効化中",
+ "disabling": "無効化中",
+ "beta": "ベータ",
+ "or": "または",
+ "next": "次へ",
+ "back": "戻る",
+ "cancelling": "キャンセル中",
+ "configuring": "設定中",
+ "clear": "クリア",
+ "import": "インポート",
+ "connect": "接続",
+ "authorizing": "認証中",
+ "processing": "処理中",
+ "no_data_available": "データがありません",
+ "from": "{name}から",
+ "authenticated": "認証済み",
+ "select": "選択",
+ "upgrade": "アップグレード",
+ "add_seats": "シートを追加",
+ "label": "ラベル",
+ "priorities": "優先度",
+ "projects": "プロジェクト",
+ "workspace": "ワークスペース",
+ "workspaces": "ワークスペース",
+ "team": "チーム",
+ "teams": "チーム",
+ "entity": "エンティティ",
+ "entities": "エンティティ",
+ "task": "タスク",
+ "tasks": "タスク",
+ "section": "セクション",
+ "sections": "セクション",
+ "edit": "編集",
+ "connecting": "接続中",
+ "connected": "接続済み",
+ "disconnect": "切断",
+ "disconnecting": "切断中",
+ "installing": "インストール中",
+ "install": "インストール"
+ },
+
+ "form": {
+ "title": {
+ "required": "タイトルは必須です",
+ "max_length": "タイトルは{length}文字未満である必要があります"
+ }
+ },
+
+ "entity": {
+ "grouping_title": "{entity}のグループ化",
+ "priority": "{entity}の優先度",
+ "all": "すべての{entity}",
+ "drop_here_to_move": "ここにドロップして{entity}を移動",
+ "delete": {
+ "label": "{entity}を削除",
+ "success": "{entity}を削除しました",
+ "failed": "{entity}の削除に失敗しました"
+ },
+ "update": {
+ "failed": "{entity}の更新に失敗しました",
+ "success": "{entity}を更新しました"
+ },
+ "link_copied_to_clipboard": "{entity}のリンクをクリップボードにコピーしました",
+ "fetch": {
+ "failed": "{entity}の取得中にエラーが発生しました"
+ },
+ "add": {
+ "success": "{entity}を追加しました",
+ "failed": "{entity}の追加中にエラーが発生しました"
+ }
+ },
+
+ "epic": {
+ "all": "すべてのエピック",
+ "label": "{count, plural, one {エピック} other {エピック}}",
+ "new": "新規エピック",
+ "adding": "エピックを追加中",
+ "create": {
+ "success": "エピックを作成しました"
+ },
+ "add": {
+ "press_enter": "Enterを押して別のエピックを追加",
+ "label": "エピックを追加"
+ },
+ "title": {
+ "label": "エピックのタイトル",
+ "required": "エピックのタイトルは必須です。"
+ }
+ },
+
+ "issue": {
+ "label": "{count, plural, one {作業項目} other {作業項目}}",
+ "all": "すべての作業項目",
+ "edit": "作業項目を編集",
+ "title": {
+ "label": "作業項目のタイトル",
+ "required": "作業項目のタイトルは必須です。"
+ },
+ "add": {
+ "press_enter": "Enterを押して別の作業項目を追加",
+ "label": "作業項目を追加",
+ "cycle": {
+ "failed": "作業項目をサイクルに追加できませんでした。もう一度お試しください。",
+ "success": "{count, plural, one {作業項目} other {作業項目}}をサイクルに追加しました。",
+ "loading": "{count, plural, one {作業項目} other {作業項目}}をサイクルに追加中"
+ },
+ "assignee": "担当者を追加",
+ "start_date": "開始日を追加",
+ "due_date": "期限日を追加",
+ "parent": "親作業項目を追加",
+ "sub_issue": "サブ作業項目を追加",
+ "relation": "関連を追加",
+ "link": "リンクを追加",
+ "existing": "既存の作業項目を追加"
+ },
+ "remove": {
+ "label": "作業項目を削除",
+ "cycle": {
+ "loading": "サイクルから作業項目を削除中",
+ "success": "作業項目をサイクルから削除しました。",
+ "failed": "作業項目をサイクルから削除できませんでした。もう一度お試しください。"
+ },
+ "module": {
+ "loading": "モジュールから作業項目を削除中",
+ "success": "作業項目をモジュールから削除しました。",
+ "failed": "作業項目をモジュールから削除できませんでした。もう一度お試しください。"
+ },
+ "parent": {
+ "label": "親作業項目を削除"
+ }
+ },
+ "new": "新規作業項目",
+ "adding": "作業項目を追加中",
+ "create": {
+ "success": "作業項目を作成しました"
+ },
+ "priority": {
+ "urgent": "緊急",
+ "high": "高",
+ "medium": "中",
+ "low": "低"
+ },
+ "display": {
+ "properties": {
+ "label": "表示プロパティ",
+ "id": "ID",
+ "issue_type": "作業項目タイプ",
+ "sub_issue_count": "サブ作業項目数",
+ "attachment_count": "添付ファイル数",
+ "created_on": "作成日",
+ "sub_issue": "サブ作業項目"
+ },
+ "extra": {
+ "show_sub_issues": "サブ作業項目を表示",
+ "show_empty_groups": "空のグループを表示"
+ }
+ },
+ "layouts": {
+ "ordered_by_label": "このレイアウトは次の順序で並べ替えられています:",
+ "list": "リスト",
+ "kanban": "ボード",
+ "calendar": "カレンダー",
+ "spreadsheet": "テーブル",
+ "gantt": "タイムライン",
+ "title": {
+ "list": "リストレイアウト",
+ "kanban": "ボードレイアウト",
+ "calendar": "カレンダーレイアウト",
+ "spreadsheet": "テーブルレイアウト",
+ "gantt": "タイムラインレイアウト"
+ }
+ },
+ "states": {
+ "active": "アクティブ",
+ "backlog": "バックログ"
+ },
+ "comments": {
+ "placeholder": "コメントを追加",
+ "switch": {
+ "private": "プライベートコメントに切り替え",
+ "public": "公開コメントに切り替え"
+ },
+ "create": {
+ "success": "コメントを作成しました",
+ "error": "コメントの作成に失敗しました。後でもう一度お試しください。"
+ },
+ "update": {
+ "success": "コメントを更新しました",
+ "error": "コメントの更新に失敗しました。後でもう一度お試しください。"
+ },
+ "remove": {
+ "success": "コメントを削除しました",
+ "error": "コメントの削除に失敗しました。後でもう一度お試しください。"
+ },
+ "upload": {
+ "error": "アセットのアップロードに失敗しました。後でもう一度お試しください。"
+ }
+ },
+ "empty_state": {
+ "issue_detail": {
+ "title": "作業項目が存在しません",
+ "description": "お探しの作業項目は存在しないか、アーカイブされているか、削除されています。",
+ "primary_button": {
+ "text": "他の作業項目を表示"
+ }
+ }
+ },
+ "sibling": {
+ "label": "兄弟作業項目"
+ },
+ "archive": {
+ "description": "完了またはキャンセルされた\n作業項目のみアーカイブできます",
+ "label": "作業項目をアーカイブ",
+ "confirm_message": "作業項目をアーカイブしてもよろしいですか?アーカイブされた作業項目は後で復元できます。",
+ "success": {
+ "label": "アーカイブ成功",
+ "message": "アーカイブはプロジェクトのアーカイブで確認できます。"
+ },
+ "failed": {
+ "message": "作業項目をアーカイブできませんでした。もう一度お試しください。"
+ }
+ },
+ "restore": {
+ "success": {
+ "title": "復元成功",
+ "message": "作業項目はプロジェクトの作業項目で確認できます。"
+ },
+ "failed": {
+ "message": "作業項目を復元できませんでした。もう一度お試しください。"
+ }
+ },
+ "relation": {
+ "relates_to": "関連する",
+ "duplicate": "重複する",
+ "blocked_by": "ブロックされている",
+ "blocking": "ブロックしている"
+ },
+ "copy_link": "作業項目のリンクをコピー",
+ "delete": {
+ "label": "作業項目を削除",
+ "error": "作業項目の削除中にエラーが発生しました"
+ },
+ "subscription": {
+ "actions": {
+ "subscribed": "作業項目を購読しました",
+ "unsubscribed": "作業項目の購読を解除しました"
+ }
+ },
+ "select": {
+ "error": "少なくとも1つの作業項目を選択してください",
+ "empty": "作業項目が選択されていません",
+ "add_selected": "選択した作業項目を追加"
+ },
+ "open_in_full_screen": "作業項目をフルスクリーンで開く"
+ },
+
+ "attachment": {
+ "error": "ファイルを添付できませんでした。もう一度アップロードしてください。",
+ "only_one_file_allowed": "一度にアップロードできるファイルは1つだけです。",
+ "file_size_limit": "ファイルサイズは{size}MB以下である必要があります。",
+ "drag_and_drop": "どこにでもドラッグ&ドロップでアップロード",
+ "delete": "添付ファイルを削除"
+ },
+
+ "label": {
+ "select": "ラベルを選択",
+ "create": {
+ "success": "ラベルを作成しました",
+ "failed": "ラベルの作成に失敗しました",
+ "already_exists": "ラベルは既に存在します",
+ "type": "新しいラベルを追加するには入力してください"
+ }
+ },
+
+ "sub_work_item": {
+ "update": {
+ "success": "サブ作業項目を更新しました",
+ "error": "サブ作業項目の更新中にエラーが発生しました"
+ },
+ "remove": {
+ "success": "サブ作業項目を削除しました",
+ "error": "サブ作業項目の削除中にエラーが発生しました"
+ }
+ },
+
+ "view": {
+ "label": "{count, plural, one {ビュー} other {ビュー}}",
+ "create": {
+ "label": "ビューを作成"
+ },
+ "update": {
+ "label": "ビューを更新"
+ }
+ },
+
+ "inbox_issue": {
+ "status": {
+ "pending": {
+ "title": "保留中",
+ "description": "保留中"
+ },
+ "declined": {
+ "title": "却下",
+ "description": "却下"
+ },
+ "snoozed": {
+ "title": "スヌーズ",
+ "description": "残り{days, plural, one{# 日} other{# 日}}"
+ },
+ "accepted": {
+ "title": "承認済み",
+ "description": "承認済み"
+ },
+ "duplicate": {
+ "title": "重複",
+ "description": "重複"
+ }
+ },
+ "modals": {
+ "decline": {
+ "title": "作業項目を却下",
+ "content": "作業項目{value}を却下してもよろしいですか?"
+ },
+ "delete": {
+ "title": "作業項目を削除",
+ "content": "作業項目{value}を削除してもよろしいですか?",
+ "success": "作業項目を削除しました"
+ }
+ },
+ "errors": {
+ "snooze_permission": "プロジェクト管理者のみが作業項目をスヌーズ/スヌーズ解除できます",
+ "accept_permission": "プロジェクト管理者のみが作業項目を承認できます",
+ "decline_permission": "プロジェクト管理者のみが作業項目を却下できます"
+ },
+ "actions": {
+ "accept": "承認",
+ "decline": "却下",
+ "snooze": "スヌーズ",
+ "unsnooze": "スヌーズ解除",
+ "copy": "作業項目のリンクをコピー",
+ "delete": "削除",
+ "open": "作業項目を開く",
+ "mark_as_duplicate": "重複としてマーク",
+ "move": "{value}をプロジェクトの作業項目に移動"
+ },
+ "source": {
+ "in-app": "アプリ内"
+ },
+ "order_by": {
+ "created_at": "作成日",
+ "updated_at": "更新日",
+ "id": "ID"
+ },
+ "label": "インテーク",
+ "page_label": "{workspace} - インテーク",
+ "modal": {
+ "title": "インテーク作業項目を作成"
+ },
+ "tabs": {
+ "open": "オープン",
+ "closed": "クローズ"
+ },
+ "empty_state": {
+ "sidebar_open_tab": {
+ "title": "オープンな作業項目がありません",
+ "description": "オープンな作業項目はここで見つかります。新しい作業項目を作成してください。"
+ },
+ "sidebar_closed_tab": {
+ "title": "クローズされた作業項目がありません",
+ "description": "承認または却下されたすべての作業項目はここで見つかります。"
+ },
+ "sidebar_filter": {
+ "title": "一致する作業項目がありません",
+ "description": "インテークに適用されたフィルターに一致する作業項目がありません。新しい作業項目を作成してください。"
+ },
+ "detail": {
+ "title": "詳細を表示する作業項目を選択してください。"
+ }
+ }
+ },
+
+ "workspace_creation": {
+ "heading": "ワークスペースを作成",
+ "subheading": "Planeを使用するには、ワークスペースを作成するか参加する必要があります。",
+ "form": {
+ "name": {
+ "label": "ワークスペース名を設定",
+ "placeholder": "馴染みがあり認識しやすい名前が最適です。"
+ },
+ "url": {
+ "label": "ワークスペースのURLを設定",
+ "placeholder": "URLを入力または貼り付け",
+ "edit_slug": "URLのスラッグのみ編集可能です"
+ },
+ "organization_size": {
+ "label": "このワークスペースを何人で使用しますか?",
+ "placeholder": "範囲を選択"
+ }
+ },
+ "errors": {
+ "creation_disabled": {
+ "title": "インスタンス管理者のみがワークスペースを作成できます",
+ "description": "インスタンス管理者のメールアドレスをご存知の場合は、下のボタンをクリックして連絡を取ってください。",
+ "request_button": "インスタンス管理者にリクエスト"
+ },
+ "validation": {
+ "name_alphanumeric": "ワークスペース名には (' '), ('-'), ('_') と英数字のみ使用できます。",
+ "name_length": "名前は80文字以内にしてください。",
+ "url_alphanumeric": "URLには ('-') と英数字のみ使用できます。",
+ "url_length": "URLは48文字以内にしてください。",
+ "url_already_taken": "ワークスペースのURLは既に使用されています!"
+ }
+ },
+ "request_email": {
+ "subject": "新規ワークスペースのリクエスト",
+ "body": "インスタンス管理者様\n\n[ワークスペース作成の目的]のために、URL [/workspace-name] の新規ワークスペースを作成していただけますでしょうか。\n\nよろしくお願いいたします。\n{firstName} {lastName}\n{email}"
+ },
+ "button": {
+ "default": "ワークスペースを作成",
+ "loading": "ワークスペースを作成中"
+ },
+ "toast": {
+ "success": {
+ "title": "成功",
+ "message": "ワークスペースが正常に作成されました"
+ },
+ "error": {
+ "title": "エラー",
+ "message": "ワークスペースを作成できませんでした。もう一度お試しください。"
+ }
+ }
+ },
+
+ "workspace_dashboard": {
+ "empty_state": {
+ "general": {
+ "title": "プロジェクト、アクティビティ、メトリクスの概要",
+ "description": "Planeへようこそ。ご利用いただき嬉しく思います。最初のプロジェクトを作成して作業項目を追跡すると、このページは進捗を把握するのに役立つスペースに変わります。管理者はチームの進捗に役立つ項目も表示されます。",
+ "primary_button": {
+ "text": "最初のプロジェクトを作成",
+ "comic": {
+ "title": "Planeではすべてがプロジェクトから始まります",
+ "description": "プロジェクトは製品のロードマップ、マーケティングキャンペーン、新車の発売などになります。"
+ }
+ }
+ }
+ }
+ },
+
+ "workspace_analytics": {
+ "label": "アナリティクス",
+ "page_label": "{workspace} - アナリティクス",
+ "open_tasks": "オープンタスクの合計",
+ "error": "データの取得中にエラーが発生しました。",
+ "work_items_closed_in": "クローズされた作業項目",
+ "selected_projects": "選択されたプロジェクト",
+ "total_members": "メンバー総数",
+ "total_cycles": "サイクル総数",
+ "total_modules": "モジュール総数",
+ "pending_work_items": {
+ "title": "保留中の作業項目",
+ "empty_state": "同僚による保留中の作業項目の分析がここに表示されます。"
+ },
+ "work_items_closed_in_a_year": {
+ "title": "1年間でクローズされた作業項目",
+ "empty_state": "作業項目をクローズすると、グラフ形式で分析が表示されます。"
+ },
+ "most_work_items_created": {
+ "title": "作成された作業項目が最も多い",
+ "empty_state": "同僚と作成した作業項目の数がここに表示されます。"
+ },
+ "most_work_items_closed": {
+ "title": "クローズされた作業項目が最も多い",
+ "empty_state": "同僚とクローズした作業項目の数がここに表示されます。"
+ },
+ "tabs": {
+ "scope_and_demand": "スコープと需要",
+ "custom": "カスタムアナリティクス"
+ },
+ "empty_state": {
+ "general": {
+ "title": "進捗、ワークロード、割り当てを追跡。傾向を把握し、ブロッカーを解消して、作業をより速く進めましょう",
+ "description": "スコープと需要、見積もり、スコープクリープを確認できます。チームメンバーとチームのパフォーマンスを把握し、プロジェクトが予定通りに進むようにします。",
+ "primary_button": {
+ "text": "最初のプロジェクトを開始",
+ "comic": {
+ "title": "アナリティクスはサイクル + モジュールで最も効果を発揮",
+ "description": "まず、作業項目をサイクルでタイムボックス化し、可能であれば、複数のサイクルにまたがる作業項目をモジュールにグループ化します。左のナビゲーションで両方を確認してください。"
+ }
+ }
+ }
+ }
+ },
+
+ "workspace_projects": {
+ "label": "{count, plural, one {プロジェクト} other {プロジェクト}}",
+ "create": {
+ "label": "プロジェクトを追加"
+ },
+ "network": {
+ "private": {
+ "title": "非公開",
+ "description": "招待された人のみアクセス可能"
+ },
+ "public": {
+ "title": "公開",
+ "description": "ゲスト以外のワークスペースの全員が参加可能"
+ }
+ },
+ "error": {
+ "permission": "この操作を実行する権限がありません。",
+ "cycle_delete": "サイクルの削除に失敗しました",
+ "module_delete": "モジュールの削除に失敗しました",
+ "issue_delete": "作業項目の削除に失敗しました"
+ },
+ "state": {
+ "backlog": "バックログ",
+ "unstarted": "未開始",
+ "started": "開始済み",
+ "completed": "完了",
+ "cancelled": "キャンセル"
+ },
+ "sort": {
+ "manual": "手動",
+ "name": "名前",
+ "created_at": "作成日",
+ "members_length": "メンバー数"
+ },
+ "scope": {
+ "my_projects": "自分のプロジェクト",
+ "archived_projects": "アーカイブ済み"
+ },
+ "common": {
+ "months_count": "{months, plural, one{# ヶ月} other{# ヶ月}}"
+ },
+ "empty_state": {
+ "general": {
+ "title": "アクティブなプロジェクトがありません",
+ "description": "各プロジェクトは目標指向の作業の親として考えてください。プロジェクトには作業、サイクル、モジュールが含まれ、同僚と共にその目標の達成を支援します。新しいプロジェクトを作成するか、アーカイブされたプロジェクトをフィルタリングしてください。",
+ "primary_button": {
+ "text": "最初のプロジェクトを開始",
+ "comic": {
+ "title": "Planeではすべてがプロジェクトから始まります",
+ "description": "プロジェクトは製品のロードマップ、マーケティングキャンペーン、新車の発売などになります。"
+ }
+ }
+ },
+ "no_projects": {
+ "title": "プロジェクトがありません",
+ "description": "作業項目を作成したり作業を管理したりするには、プロジェクトを作成するか、プロジェクトのメンバーになる必要があります。",
+ "primary_button": {
+ "text": "最初のプロジェクトを開始",
+ "comic": {
+ "title": "Planeではすべてがプロジェクトから始まります",
+ "description": "プロジェクトは製品のロードマップ、マーケティングキャンペーン、新車の発売などになります。"
+ }
+ }
+ },
+ "filter": {
+ "title": "一致するプロジェクトがありません",
+ "description": "条件に一致するプロジェクトが見つかりません。\n代わりに新しいプロジェクトを作成してください。"
+ },
+ "search": {
+ "description": "条件に一致するプロジェクトが見つかりません。\n代わりに新しいプロジェクトを作成してください。"
+ }
+ }
+ },
+
+ "workspace_views": {
+ "add_view": "ビューを追加",
+ "empty_state": {
+ "all-issues": {
+ "title": "プロジェクトに作業項目がありません",
+ "description": "最初のプロジェクトが完了しました!次は、作業を追跡可能な作業項目に分割しましょう。始めましょう!",
+ "primary_button": {
+ "text": "新しい作業項目を作成"
+ }
+ },
+ "assigned": {
+ "title": "作業項目がまだありません",
+ "description": "あなたに割り当てられた作業項目をここで追跡できます。",
+ "primary_button": {
+ "text": "新しい作業項目を作成"
+ }
+ },
+ "created": {
+ "title": "作業項目がまだありません",
+ "description": "あなたが作成したすべての作業項目がここに表示され、直接追跡できます。",
+ "primary_button": {
+ "text": "新しい作業項目を作成"
+ }
+ },
+ "subscribed": {
+ "title": "作業項目がまだありません",
+ "description": "興味のある作業項目を購読して、ここですべてを追跡できます。"
+ },
+ "custom-view": {
+ "title": "作業項目がまだありません",
+ "description": "フィルターに該当する作業項目をここで追跡できます。"
+ }
+ }
+ },
+
+ "workspace_settings": {
+ "label": "ワークスペース設定",
+ "page_label": "{workspace} - 一般設定",
+ "key_created": "キーが作成されました",
+ "copy_key": "このシークレットキーをコピーしてPlaneページに保存してください。閉じた後はこのキーを見ることができません。キーを含むCSVファイルがダウンロードされました。",
+ "token_copied": "トークンがクリップボードにコピーされました。",
+ "settings": {
+ "general": {
+ "title": "一般",
+ "upload_logo": "ロゴをアップロード",
+ "edit_logo": "ロゴを編集",
+ "name": "ワークスペース名",
+ "company_size": "会社の規模",
+ "url": "ワークスペースURL",
+ "update_workspace": "ワークスペースを更新",
+ "delete_workspace": "ワークスペースを削除",
+ "delete_workspace_description": "ワークスペースを削除すると、そのワークスペース内のすべてのデータとリソースが永久に削除され、復元できなくなります。",
+ "delete_btn": "ワークスペースを削除",
+ "errors": {
+ "name": {
+ "required": "名前は必須です",
+ "max_length": "ワークスペース名は80文字を超えることはできません"
+ },
+ "company_size": {
+ "required": "会社の規模は必須です"
+ }
+ }
+ },
+ "members": {
+ "title": "メンバー",
+ "add_member": "メンバーを追加",
+ "invitations_sent_successfully": "招待が正常に送信されました",
+ "leave_confirmation": "ワークスペースから退出してもよろしいですか?このワークスペースにアクセスできなくなります。この操作は取り消せません。",
+ "details": {
+ "full_name": "フルネーム",
+ "display_name": "表示名",
+ "email_address": "メールアドレス",
+ "account_type": "アカウントタイプ",
+ "authentication": "認証",
+ "joining_date": "参加日"
+ },
+ "modal": {
+ "title": "共同作業者を招待",
+ "description": "ワークスペースに共同作業者を招待します。",
+ "button": "招待を送信",
+ "button_loading": "招待を送信中",
+ "placeholder": "[email protected]",
+ "errors": {
+ "required": "招待するにはメールアドレスが必要です。",
+ "invalid": "メールアドレスが無効です"
+ }
+ }
+ },
+ "billing_and_plans": {
+ "title": "請求とプラン",
+ "current_plan": "現在のプラン",
+ "free_plan": "現在フリープランを使用中です",
+ "view_plans": "プランを表示"
+ },
+ "exports": {
+ "title": "エクスポート",
+ "exporting": "エクスポート中",
+ "previous_exports": "過去のエクスポート",
+ "export_separate_files": "データを個別のファイルにエクスポート",
+ "modal": {
+ "title": "エクスポート先",
+ "toasts": {
+ "success": {
+ "title": "エクスポート成功",
+ "message": "エクスポートした{entity}は過去のエクスポートからダウンロードできます。"
+ },
+ "error": {
+ "title": "エクスポート失敗",
+ "message": "エクスポートに失敗しました。もう一度お試しください。"
+ }
+ }
+ }
+ },
+ "webhooks": {
+ "title": "Webhook",
+ "add_webhook": "Webhookを追加",
+ "modal": {
+ "title": "Webhookを作成",
+ "details": "Webhook詳細",
+ "payload": "ペイロードURL",
+ "question": "このWebhookをトリガーするイベントを選択してください",
+ "error": "URLは必須です"
+ },
+ "secret_key": {
+ "title": "シークレットキー",
+ "message": "Webhookペイロードにサインインするためのトークンを生成"
+ },
+ "options": {
+ "all": "すべてを送信",
+ "individual": "個別のイベントを選択"
+ },
+ "toasts": {
+ "created": {
+ "title": "Webhook作成完了",
+ "message": "Webhookが正常に作成されました"
+ },
+ "not_created": {
+ "title": "Webhook作成失敗",
+ "message": "Webhookを作成できませんでした"
+ },
+ "updated": {
+ "title": "Webhook更新完了",
+ "message": "Webhookが正常に更新されました"
+ },
+ "not_updated": {
+ "title": "Webhook更新失敗",
+ "message": "Webhookを更新できませんでした"
+ },
+ "removed": {
+ "title": "Webhook削除完了",
+ "message": "Webhookが正常に削除されました"
+ },
+ "not_removed": {
+ "title": "Webhook削除失敗",
+ "message": "Webhookを削除できませんでした"
+ },
+ "secret_key_copied": {
+ "message": "シークレットキーがクリップボードにコピーされました。"
+ },
+ "secret_key_not_copied": {
+ "message": "シークレットキーのコピー中にエラーが発生しました。"
+ }
+ }
+ },
+ "api_tokens": {
+ "title": "APIトークン",
+ "add_token": "APIトークンを追加",
+ "create_token": "トークンを作成",
+ "never_expires": "無期限",
+ "generate_token": "トークンを生成",
+ "generating": "生成中",
+ "delete": {
+ "title": "APIトークンを削除",
+ "description": "このトークンを使用しているアプリケーションはPlaneのデータにアクセスできなくなります。この操作は取り消せません。",
+ "success": {
+ "title": "成功!",
+ "message": "APIトークンが正常に削除されました"
+ },
+ "error": {
+ "title": "エラー!",
+ "message": "APIトークンを削除できませんでした"
+ }
+ }
+ }
+ },
+ "empty_state": {
+ "api_tokens": {
+ "title": "APIトークンがまだ作成されていません",
+ "description": "PlaneのAPIを使用して、Planeのデータを外部システムと統合できます。トークンを作成して始めましょう。"
+ },
+ "webhooks": {
+ "title": "Webhookが追加されていません",
+ "description": "Webhookを作成してリアルタイムの更新を受け取り、アクションを自動化します。"
+ },
+ "exports": {
+ "title": "エクスポートがまだありません",
+ "description": "エクスポートすると、参照用のコピーがここに保存されます。"
+ },
+ "imports": {
+ "title": "インポートがまだありません",
+ "description": "過去のインポートをここで確認し、ダウンロードできます。"
+ }
+ }
+ },
+
+ "profile": {
+ "label": "プロフィール",
+ "page_label": "あなたの作業",
+ "work": "作業",
+ "details": {
+ "joined_on": "参加日",
+ "time_zone": "タイムゾーン"
+ },
+ "stats": {
+ "workload": "作業負荷",
+ "overview": "概要",
+ "created": "作成した作業項目",
+ "assigned": "割り当てられた作業項目",
+ "subscribed": "購読中の作業項目",
+ "state_distribution": {
+ "title": "状態別作業項目",
+ "empty": "より良い分析のために、作業項目を作成してグラフで状態別に表示します。"
+ },
+ "priority_distribution": {
+ "title": "優先度別作業項目",
+ "empty": "より良い分析のために、作業項目を作成してグラフで優先度別に表示します。"
+ },
+ "recent_activity": {
+ "title": "最近のアクティビティ",
+ "empty": "データが見つかりませんでした。入力内容を確認してください",
+ "button": "今日のアクティビティをダウンロード",
+ "button_loading": "ダウンロード中"
+ }
+ },
+ "actions": {
+ "profile": "プロフィール",
+ "security": "セキュリティ",
+ "activity": "アクティビティ",
+ "appearance": "外観",
+ "notifications": "通知"
+ },
+ "tabs": {
+ "summary": "サマリー",
+ "assigned": "割り当て済み",
+ "created": "作成済み",
+ "subscribed": "購読中",
+ "activity": "アクティビティ"
+ },
+ "empty_state": {
+ "activity": {
+ "title": "アクティビティがまだありません",
+ "description": "新しい作業項目を作成して始めましょう!詳細とプロパティを追加してください。Planeをさらに探索してアクティビティを確認しましょう。"
+ },
+ "assigned": {
+ "title": "割り当てられた作業項目がありません",
+ "description": "あなたに割り当てられた作業項目をここで追跡できます。"
+ },
+ "created": {
+ "title": "作業項目がまだありません",
+ "description": "あなたが作成したすべての作業項目がここに表示され、直接追跡できます。"
+ },
+ "subscribed": {
+ "title": "作業項目がまだありません",
+ "description": "興味のある作業項目を購読して、ここですべてを追跡できます。"
+ }
+ }
+ },
+
+ "project_settings": {
+ "general": {
+ "enter_project_id": "プロジェクトIDを入力",
+ "please_select_a_timezone": "タイムゾーンを選択してください",
+ "archive_project": {
+ "title": "プロジェクトをアーカイブ",
+ "description": "プロジェクトをアーカイブすると、サイドナビゲーションから非表示になりますが、プロジェクトページからアクセスすることはできます。プロジェクトを復元または削除することもできます。",
+ "button": "プロジェクトをアーカイブ"
+ },
+ "delete_project": {
+ "title": "プロジェクトを削除",
+ "description": "プロジェクトを削除すると、そのプロジェクト内のすべてのデータとリソースが永久に削除され、復元できなくなります。",
+ "button": "プロジェクトを削除"
+ },
+ "toast": {
+ "success": "プロジェクトが正常に更新されました",
+ "error": "プロジェクトを更新できませんでした。もう一度お試しください。"
+ }
+ },
+ "members": {
+ "label": "メンバー",
+ "project_lead": "プロジェクトリーダー",
+ "default_assignee": "デフォルトの担当者",
+ "guest_super_permissions": {
+ "title": "ゲストユーザーにすべての作業項目の閲覧権限を付与:",
+ "sub_heading": "これにより、ゲストはプロジェクトのすべての作業項目を閲覧できるようになります。"
+ },
+ "invite_members": {
+ "title": "メンバーを招待",
+ "sub_heading": "プロジェクトに参加するメンバーを招待します。",
+ "select_co_worker": "共同作業者を選択"
+ }
+ },
+ "states": {
+ "describe_this_state_for_your_members": "このステータスについてメンバーに説明してください。"
+ },
+ "labels": {
+ "label_title": "ラベルタイトル",
+ "label_title_is_required": "ラベルタイトルは必須です",
+ "label_max_char": "ラベル名は255文字を超えることはできません",
+ "toast": {
+ "error": "ラベルの更新中にエラーが発生しました"
+ }
+ },
+ "estimates": {
+ "title": "プロジェクトの見積もりを有効にする",
+ "description": "チームの複雑さと作業負荷を伝えるのに役立ちます。"
+ },
+ "automations": {
+ "label": "自動化",
+ "auto-archive": {
+ "title": "完了した作業項目を自動アーカイブ",
+ "description": "Planeは完了またはキャンセルされた作業項目を自動的にアーカイブします。",
+ "duration": "次の期間完了している作業項目を自動アーカイブ"
+ },
+ "auto-close": {
+ "title": "作業項目を自動クローズ",
+ "description": "Planeは完了またはキャンセルされていない作業項目を自動的にクローズします。",
+ "duration": "次の期間非アクティブな作業項目を自動クローズ",
+ "auto_close_status": "自動クローズステータス"
+ }
+ },
+
+ "empty_state": {
+ "labels": {
+ "title": "ラベルがまだありません",
+ "description": "プロジェクトの作業項目を整理してフィルタリングするためのラベルを作成します。"
+ },
+ "estimates": {
+ "title": "見積もりシステムがまだありません",
+ "description": "作業項目ごとの作業量を伝えるための見積もりセットを作成します。",
+ "primary_button": "見積もりシステムを追加"
+ }
+ }
+ },
+
+ "project_cycles": {
+ "add_cycle": "サイクルを追加",
+ "more_details": "詳細情報",
+ "cycle": "サイクル",
+ "update_cycle": "サイクルを更新",
+ "create_cycle": "サイクルを作成",
+ "no_matching_cycles": "一致するサイクルがありません",
+ "remove_filters_to_see_all_cycles": "すべてのサイクルを表示するにはフィルターを解除してください",
+ "remove_search_criteria_to_see_all_cycles": "すべてのサイクルを表示するには検索条件を解除してください",
+ "only_completed_cycles_can_be_archived": "完了したサイクルのみアーカイブできます",
+ "active_cycle": {
+ "label": "アクティブなサイクル",
+ "progress": "進捗",
+ "chart": "バーンダウンチャート",
+ "priority_issue": "優先作業項目",
+ "assignees": "担当者",
+ "issue_burndown": "作業項目バーンダウン",
+ "ideal": "理想",
+ "current": "現在",
+ "labels": "ラベル"
+ },
+ "upcoming_cycle": {
+ "label": "今後のサイクル"
+ },
+ "completed_cycle": {
+ "label": "完了したサイクル"
+ },
+ "status": {
+ "days_left": "残り日数",
+ "completed": "完了",
+ "yet_to_start": "開始前",
+ "in_progress": "進行中",
+ "draft": "下書き"
+ },
+ "action": {
+ "restore": {
+ "title": "サイクルを復元",
+ "success": {
+ "title": "サイクルが復元されました",
+ "description": "サイクルが復元されました。"
+ },
+ "failed": {
+ "title": "サイクルの復元に失敗",
+ "description": "サイクルを復元できませんでした。もう一度お試しください。"
+ }
+ },
+ "favorite": {
+ "loading": "お気に入りにサイクルを追加中",
+ "success": {
+ "description": "サイクルがお気に入りに追加されました。",
+ "title": "成功!"
+ },
+ "failed": {
+ "description": "サイクルをお気に入りに追加できませんでした。もう一度お試しください。",
+ "title": "エラー!"
+ }
+ },
+ "unfavorite": {
+ "loading": "お気に入りからサイクルを削除中",
+ "success": {
+ "description": "サイクルがお気に入りから削除されました。",
+ "title": "成功!"
+ },
+ "failed": {
+ "description": "サイクルをお気に入りから削除できませんでした。もう一度お試しください。",
+ "title": "エラー!"
+ }
+ },
+ "update": {
+ "loading": "サイクルを更新中",
+ "success": {
+ "description": "サイクルが正常に更新されました。",
+ "title": "成功!"
+ },
+ "failed": {
+ "description": "サイクルの更新中にエラーが発生しました。もう一度お試しください。",
+ "title": "エラー!"
+ },
+ "error": {
+ "already_exists": "指定した日付のサイクルは既に存在します。下書きサイクルを作成する場合は、両方の日付を削除してください。"
+ }
+ }
+ },
+ "empty_state": {
+ "general": {
+ "title": "サイクルで作業をグループ化してタイムボックス化します。",
+ "description": "作業をタイムボックス化された単位に分割し、プロジェクトの期限から逆算して日付を設定し、チームとして具体的な進捗を作ります。",
+ "primary_button": {
+ "text": "最初のサイクルを設定",
+ "comic": {
+ "title": "サイクルは繰り返されるタイムボックスです。",
+ "description": "スプリント、イテレーション、または週次や隔週の作業追跡に使用するその他の用語がサイクルです。"
+ }
+ }
+ },
+ "no_issues": {
+ "title": "サイクルに作業項目が追加されていません",
+ "description": "このサイクル内でタイムボックス化して提供したい作業項目を追加または作成します",
+ "primary_button": {
+ "text": "新しい作業項目を作成"
+ },
+ "secondary_button": {
+ "text": "既存の作業項目を追加"
+ }
+ },
+ "completed_no_issues": {
+ "title": "サイクルに作業項目がありません",
+ "description": "サイクルに作業項目がありません。作業項目は転送されたか非表示になっています。非表示の作業項目がある場合は、表示プロパティを更新して確認してください。"
+ },
+ "active": {
+ "title": "アクティブなサイクルがありません",
+ "description": "アクティブなサイクルには、その期間内に今日の日付が含まれるものが該当します。アクティブなサイクルの進捗と詳細をここで確認できます。"
+ },
+ "archived": {
+ "title": "アーカイブされたサイクルがまだありません",
+ "description": "プロジェクトを整理するために、完了したサイクルをアーカイブします。アーカイブ後はここで確認できます。"
+ }
+ }
+ },
+
+ "project_issues": {
+ "empty_state": {
+ "no_issues": {
+ "title": "作業項目を作成して誰かに割り当てましょう。自分自身でも構いません",
+ "description": "作業項目は、仕事、タスク、作業、またはJTBD(私たちが好む用語)と考えてください。作業項目とそのサブ作業項目は通常、チームメンバーに割り当てられる時間ベースのアクションアイテムです。チームは作業項目を作成、割り当て、完了することでプロジェクトの目標に向かって進みます。",
+ "primary_button": {
+ "text": "最初の作業項目を作成",
+ "comic": {
+ "title": "作業項目はPlaneの構成要素です。",
+ "description": "PlaneのUIの再設計、会社のリブランド、新しい燃料噴射システムの立ち上げなどは、サブ作業項目を持つ可能性が高い作業項目の例です。"
+ }
+ }
+ },
+ "no_archived_issues": {
+ "title": "アーカイブされた作業項目がまだありません",
+ "description": "手動または自動化を通じて、完了またはキャンセルされた作業項目をアーカイブできます。アーカイブ後はここで確認できます。",
+ "primary_button": {
+ "text": "自動化を設定"
+ }
+ },
+ "issues_empty_filter": {
+ "title": "適用されたフィルターに一致する作業項目が見つかりません",
+ "secondary_button": {
+ "text": "すべてのフィルターをクリア"
+ }
+ }
+ }
+ },
+
+ "project_module": {
+ "add_module": "モジュールを追加",
+ "update_module": "モジュールを更新",
+ "create_module": "モジュールを作成",
+ "archive_module": "モジュールをアーカイブ",
+ "restore_module": "モジュールを復元",
+ "delete_module": "モジュールを削除",
+ "empty_state": {
+ "general": {
+ "title": "プロジェクトのマイルストーンをモジュールにマッピングし、集計された作業を簡単に追跡できます。",
+ "description": "論理的で階層的な親に属する作業項目のグループがモジュールを形成します。プロジェクトのマイルストーンで作業を追跡する方法として考えてください。期間や期限があり、マイルストーンまでの進捗状況を確認できる分析機能も備えています。",
+ "primary_button": {
+ "text": "最初のモジュールを作成",
+ "comic": {
+ "title": "モジュールは階層的に作業をグループ化するのに役立ちます。",
+ "description": "カートモジュール、シャーシモジュール、倉庫モジュールは、このグループ化の良い例です。"
+ }
+ }
+ },
+ "no_issues": {
+ "title": "モジュールに作業項目がありません",
+ "description": "このモジュールの一部として達成したい作業項目を作成または追加してください",
+ "primary_button": {
+ "text": "新しい作業項目を作成"
+ },
+ "secondary_button": {
+ "text": "既存の作業項目を追加"
+ }
+ },
+ "archived": {
+ "title": "アーカイブされたモジュールがまだありません",
+ "description": "プロジェクトを整理するために、完了またはキャンセルされたモジュールをアーカイブします。アーカイブ後はここで確認できます。"
+ },
+ "sidebar": {
+ "in_active": "このモジュールはまだアクティブではありません。",
+ "invalid_date": "無効な日付です。有効な日付を入力してください。"
+ }
+ },
+ "quick_actions": {
+ "archive_module": "モジュールをアーカイブ",
+ "archive_module_description": "完了またはキャンセルされた\nモジュールのみアーカイブできます。",
+ "delete_module": "モジュールを削除"
+ },
+ "toast": {
+ "copy": {
+ "success": "モジュールのリンクがクリップボードにコピーされました"
+ },
+ "delete": {
+ "success": "モジュールが正常に削除されました",
+ "error": "モジュールを削除できませんでした"
+ }
+ }
+ },
+
+ "project_views": {
+ "empty_state": {
+ "general": {
+ "title": "プロジェクトのフィルター付きビューを保存します。必要な数だけ作成できます",
+ "description": "ビューは、頻繁に使用するフィルターや簡単にアクセスしたいフィルターの集合です。プロジェクト内のすべての同僚が全員のビューを確認でき、自分のニーズに最も合うものを選択できます。",
+ "primary_button": {
+ "text": "最初のビューを作成",
+ "comic": {
+ "title": "ビューは作業項目のプロパティの上で機能します。",
+ "description": "ここから、必要に応じて多くのプロパティやフィルターを使用してビューを作成できます。"
+ }
+ }
+ },
+ "filter": {
+ "title": "一致するビューがありません",
+ "description": "検索条件に一致するビューがありません。\n代わりに新しいビューを作成してください。"
+ }
+ }
+ },
+
+ "project_page": {
+ "empty_state": {
+ "general": {
+ "title": "メモ、ドキュメント、または完全なナレッジベースを作成しましょう。PlaneのAIアシスタントGalileoが開始をサポートします",
+ "description": "ページはPlaneの思考整理スペースです。会議のメモを取り、簡単に整形し、作業項目を埋め込み、コンポーネントライブラリを使用してレイアウトし、すべてをプロジェクトのコンテキストに保存できます。ドキュメントを素早く作成するには、ショートカットまたはボタンのクリックでPlaneのAI、Galileoを呼び出してください。",
+ "primary_button": {
+ "text": "最初のページを作成"
+ }
+ },
+ "private": {
+ "title": "プライベートページがまだありません",
+ "description": "プライベートな考えをここに保存しましょう。共有する準備ができたら、チームはクリック一つで共有できます。",
+ "primary_button": {
+ "text": "最初のページを作成"
+ }
+ },
+ "public": {
+ "title": "公開ページがまだありません",
+ "description": "プロジェクト内の全員と共有されているページをここで確認できます。",
+ "primary_button": {
+ "text": "最初のページを作成"
+ }
+ },
+ "archived": {
+ "title": "アーカイブされたページがまだありません",
+ "description": "注目していないページをアーカイブします。必要な時にここでアクセスできます。"
+ }
+ }
+ },
+
+ "command_k": {
+ "empty_state": {
+ "search": {
+ "title": "結果が見つかりません"
+ }
+ }
+ },
+
+ "issue_relation": {
+ "empty_state": {
+ "search": {
+ "title": "一致する作業項目が見つかりません"
+ },
+ "no_issues": {
+ "title": "作業項目が見つかりません"
+ }
+ }
+ },
+
+ "issue_comment": {
+ "empty_state": {
+ "general": {
+ "title": "コメントがまだありません",
+ "description": "コメントは作業項目のディスカッションとフォローアップのスペースとして使用できます"
+ }
+ }
+ },
+
+ "notification": {
+ "label": "受信トレイ",
+ "page_label": "{workspace} - 受信トレイ",
+ "options": {
+ "mark_all_as_read": "すべて既読にする",
+ "mark_read": "既読にする",
+ "mark_unread": "未読にする",
+ "refresh": "更新",
+ "filters": "受信トレイフィルター",
+ "show_unread": "未読を表示",
+ "show_snoozed": "スヌーズを表示",
+ "show_archived": "アーカイブを表示",
+ "mark_archive": "アーカイブ",
+ "mark_unarchive": "アーカイブ解除",
+ "mark_snooze": "スヌーズ",
+ "mark_unsnooze": "スヌーズ解除"
+ },
+ "toasts": {
+ "read": "通知を既読にしました",
+ "unread": "通知を未読にしました",
+ "archived": "通知をアーカイブしました",
+ "unarchived": "通知をアーカイブ解除しました",
+ "snoozed": "通知をスヌーズしました",
+ "unsnoozed": "通知のスヌーズを解除しました"
+ },
+ "empty_state": {
+ "detail": {
+ "title": "詳細を表示するには選択してください。"
+ },
+ "all": {
+ "title": "割り当てられた作業項目がありません",
+ "description": "あなたに割り当てられた作業項目の更新が\nここに表示されます"
+ },
+ "mentions": {
+ "title": "割り当てられた作業項目がありません",
+ "description": "あなたに割り当てられた作業項目の更新が\nここに表示されます"
+ }
+ },
+ "tabs": {
+ "all": "すべて",
+ "mentions": "メンション"
+ },
+ "filter": {
+ "assigned": "自分に割り当て",
+ "created": "自分が作成",
+ "subscribed": "自分が購読"
+ },
+ "snooze": {
+ "1_day": "1日",
+ "3_days": "3日",
+ "5_days": "5日",
+ "1_week": "1週間",
+ "2_weeks": "2週間",
+ "custom": "カスタム"
+ }
+ },
+
+ "active_cycle": {
+ "empty_state": {
+ "progress": {
+ "title": "サイクルの進捗を表示するには作業項目を追加してください"
+ },
+ "chart": {
+ "title": "バーンダウンチャートを表示するには作業項目を追加してください。"
+ },
+ "priority_issue": {
+ "title": "サイクルで取り組まれている優先度の高い作業項目を一目で確認できます。"
+ },
+ "assignee": {
+ "title": "担当者別の作業の内訳を確認するには、作業項目に担当者を追加してください。"
+ },
+ "label": {
+ "title": "ラベル別の作業の内訳を確認するには、作業項目にラベルを追加してください。"
+ }
+ }
+ },
+
+ "disabled_project": {
+ "empty_state": {
+ "inbox": {
+ "title": "インテークがプロジェクトで有効になっていません。",
+ "description": "インテークは、プロジェクトへの受信リクエストを管理し、ワークフローに作業項目として追加するのに役立ちます。リクエストを管理するには、プロジェクト設定でインテークを有効にしてください。",
+ "primary_button": {
+ "text": "機能を管理"
+ }
+ },
+ "cycle": {
+ "title": "サイクルがこのプロジェクトで有効になっていません。",
+ "description": "時間枠で作業を分割し、プロジェクトの期限から逆算して日付を設定し、チームとして具体的な進捗を作ります。サイクルを使用するには、プロジェクトでサイクル機能を有効にしてください。",
+ "primary_button": {
+ "text": "機能を管理"
+ }
+ },
+ "module": {
+ "title": "モジュールがプロジェクトで有効になっていません。",
+ "description": "モジュールはプロジェクトの構成要素です。モジュールを使用するには、プロジェクト設定でモジュールを有効にしてください。",
+ "primary_button": {
+ "text": "機能を管理"
+ }
+ },
+ "page": {
+ "title": "ページがプロジェクトで有効になっていません。",
+ "description": "ページはプロジェクトの構成要素です。ページを使用するには、プロジェクト設定でページを有効にしてください。",
+ "primary_button": {
+ "text": "機能を管理"
+ }
+ },
+ "view": {
+ "title": "ビューがプロジェクトで有効になっていません。",
+ "description": "ビューはプロジェクトの構成要素です。ビューを使用するには、プロジェクト設定でビューを有効にしてください。",
+ "primary_button": {
+ "text": "機能を管理"
+ }
+ }
+ }
+ },
+ "workspace_draft_issues": {
+ "draft_an_issue": "作業項目の下書き",
+ "empty_state": {
+ "title": "書きかけの作業項目、そしてまもなくコメントがここに表示されます。",
+ "description": "試してみるには、作業項目の追加を開始して途中で中断するか、以下で最初の下書きを作成してください。😉",
+ "primary_button": {
+ "text": "最初の下書きを作成"
+ }
+ },
+ "delete_modal": {
+ "title": "下書きを削除",
+ "description": "この下書きを削除してもよろしいですか?この操作は取り消せません。"
+ },
+ "toasts": {
+ "created": {
+ "success": "下書きを作成しました",
+ "error": "作業項目を作成できませんでした。もう一度お試しください。"
+ },
+ "deleted": {
+ "success": "下書きを削除しました"
+ }
+ }
+ },
+
+ "stickies": {
+ "title": "あなたの付箋",
+ "placeholder": "ここをクリックして入力",
+ "all": "すべての付箋",
+ "no-data": "アイデアをメモしたり、ひらめきをキャプチャしたり、閃きを記録したりしましょう。付箋を追加して始めましょう。",
+ "add": "付箋を追加",
+ "search_placeholder": "タイトルで検索",
+ "delete": "付箋を削除",
+ "delete_confirmation": "この付箋を削除してもよろしいですか?",
+ "empty_state": {
+ "simple": "アイデアをメモしたり、ひらめきをキャプチャしたり、閃きを記録したりしましょう。付箋を追加して始めましょう。",
+ "general": {
+ "title": "付箋は、その場で素早く取るメモやToDoです。",
+ "description": "いつでもどこからでもアクセスできる付箋を作成して、思考やアイデアを簡単にキャプチャできます。",
+ "primary_button": {
+ "text": "付箋を追加"
+ }
+ },
+ "search": {
+ "title": "付箋に一致するものがありません。",
+ "description": "別の用語を試すか、検索が正しいと\n確信がある場合はお知らせください。",
+ "primary_button": {
+ "text": "付箋を追加"
+ }
+ }
+ },
+ "toasts": {
+ "errors": {
+ "wrong_name": "付箋の名前は100文字を超えることはできません。",
+ "already_exists": "説明のない付箋がすでに存在します"
+ },
+ "created": {
+ "title": "付箋を作成しました",
+ "message": "付箋が正常に作成されました"
+ },
+ "not_created": {
+ "title": "付箋を作成できませんでした",
+ "message": "付箋を作成できませんでした"
+ },
+ "updated": {
+ "title": "付箋を更新しました",
+ "message": "付箋が正常に更新されました"
+ },
+ "not_updated": {
+ "title": "付箋を更新できませんでした",
+ "message": "付箋を更新できませんでした"
+ },
+ "removed": {
+ "title": "付箋を削除しました",
+ "message": "付箋が正常に削除されました"
+ },
+ "not_removed": {
+ "title": "付箋を削除できませんでした",
+ "message": "付箋を削除できませんでした"
+ }
+ }
+ },
+
+ "role_details": {
+ "guest": {
+ "title": "ゲスト",
+ "description": "組織の外部メンバーをゲストとして招待できます。"
+ },
+ "member": {
+ "title": "メンバー",
+ "description": "プロジェクト、サイクル、モジュール内のエンティティの読み取り、書き込み、編集、削除が可能"
+ },
+ "admin": {
+ "title": "管理者",
+ "description": "ワークスペース内のすべての権限が有効。"
+ }
+ },
+
+ "user_roles": {
+ "product_or_project_manager": "プロダクト/プロジェクトマネージャー",
+ "development_or_engineering": "開発/エンジニアリング",
+ "founder_or_executive": "創業者/エグゼクティブ",
+ "freelancer_or_consultant": "フリーランス/コンサルタント",
+ "marketing_or_growth": "マーケティング/グロース",
+ "sales_or_business_development": "営業/ビジネス開発",
+ "support_or_operations": "サポート/オペレーション",
+ "student_or_professor": "学生/教授",
+ "human_resources": "人事",
+ "other": "その他"
+ },
+
+ "importer": {
+ "github": {
+ "title": "GitHub",
+ "description": "GitHubリポジトリから作業項目をインポートして同期します。"
+ },
+ "jira": {
+ "title": "Jira",
+ "description": "Jiraプロジェクトとエピックから作業項目とエピックをインポートします。"
+ }
+ },
+
+ "exporter": {
+ "csv": {
+ "title": "CSV",
+ "description": "作業項目をCSVファイルにエクスポートします。",
+ "short_description": "CSVとしてエクスポート"
+ },
+ "excel": {
+ "title": "Excel",
+ "description": "作業項目をExcelファイルにエクスポートします。",
+ "short_description": "Excelとしてエクスポート"
+ },
+ "xlsx": {
+ "title": "Excel",
+ "description": "作業項目をExcelファイルにエクスポートします。",
+ "short_description": "Excelとしてエクスポート"
+ },
+ "json": {
+ "title": "JSON",
+ "description": "作業項目をJSONファイルにエクスポートします。",
+ "short_description": "JSONとしてエクスポート"
+ }
+ },
+ "default_global_view": {
+ "all_issues": "すべての作業項目",
+ "assigned": "割り当て済み",
+ "created": "作成済み",
+ "subscribed": "購読中"
+ },
+
+ "themes": {
+ "theme_options": {
+ "system_preference": {
+ "label": "システム設定"
+ },
+ "light": {
+ "label": "ライト"
+ },
+ "dark": {
+ "label": "ダーク"
+ },
+ "light_contrast": {
+ "label": "ライトハイコントラスト"
+ },
+ "dark_contrast": {
+ "label": "ダークハイコントラスト"
+ },
+ "custom": {
+ "label": "カスタムテーマ"
+ }
+ }
+ },
+ "project_modules": {
+ "status": {
+ "backlog": "バックログ",
+ "planned": "計画済み",
+ "in_progress": "進行中",
+ "paused": "一時停止",
+ "completed": "完了",
+ "cancelled": "キャンセル"
+ },
+ "layout": {
+ "list": "リスト表示",
+ "board": "ギャラリー表示",
+ "timeline": "タイムライン表示"
+ },
+ "order_by": {
+ "name": "名前",
+ "progress": "進捗",
+ "issues": "作業項目数",
+ "due_date": "期限",
+ "created_at": "作成日",
+ "manual": "手動"
+ }
+ },
+
+ "cycle": {
+ "label": "{count, plural, one {サイクル} other {サイクル}}",
+ "no_cycle": "サイクルなし"
+ },
+
+ "module": {
+ "label": "{count, plural, one {モジュール} other {モジュール}}",
+ "no_module": "モジュールなし"
+ }
}
diff --git a/packages/i18n/src/locales/zh-CN/translations.json b/packages/i18n/src/locales/zh-CN/translations.json
index f88ca6b6c2..3bfe142ea8 100644
--- a/packages/i18n/src/locales/zh-CN/translations.json
+++ b/packages/i18n/src/locales/zh-CN/translations.json
@@ -1,4 +1,174 @@
{
+ "sidebar": {
+ "projects": "项目",
+ "pages": "页面",
+ "new_work_item": "新工作项",
+ "home": "主页",
+ "your_work": "我的工作",
+ "inbox": "收件箱",
+ "workspace": "工作区",
+ "views": "视图",
+ "analytics": "分析",
+ "work_items": "工作项",
+ "cycles": "周期",
+ "modules": "模块",
+ "intake": "收集",
+ "drafts": "草稿",
+ "favorites": "收藏",
+ "pro": "专业版",
+ "upgrade": "升级"
+ },
+
+ "auth": {
+ "common": {
+ "email": {
+ "label": "邮箱",
+ "placeholder": "[email protected]",
+ "errors": {
+ "required": "邮箱是必填项",
+ "invalid": "邮箱格式无效"
+ }
+ },
+ "password": {
+ "label": "密码",
+ "set_password": "设置密码",
+ "placeholder": "输入密码",
+ "confirm_password": {
+ "label": "确认密码",
+ "placeholder": "确认密码"
+ },
+ "current_password": {
+ "label": "当前密码"
+ },
+ "new_password": {
+ "label": "新密码",
+ "placeholder": "输入新密码"
+ },
+ "change_password": {
+ "label": {
+ "default": "修改密码",
+ "submitting": "正在修改密码"
+ }
+ },
+ "errors": {
+ "match": "密码不匹配",
+ "empty": "请输入密码",
+ "length": "密码长度应超过8个字符",
+ "strength": {
+ "weak": "密码强度较弱",
+ "strong": "密码强度较强"
+ }
+ },
+ "submit": "设置密码",
+ "toast": {
+ "change_password": {
+ "success": {
+ "title": "成功!",
+ "message": "密码修改成功。"
+ },
+ "error": {
+ "title": "错误!",
+ "message": "出现错误。请重试。"
+ }
+ }
+ }
+ },
+ "unique_code": {
+ "label": "唯一码",
+ "placeholder": "gets-sets-flys",
+ "paste_code": "粘贴发送到您邮箱的验证码",
+ "requesting_new_code": "正在请求新验证码",
+ "sending_code": "正在发送验证码"
+ },
+ "already_have_an_account": "已有账号?",
+ "login": "登录",
+ "create_account": "创建账号",
+ "new_to_plane": "首次使用 Plane?",
+ "back_to_sign_in": "返回登录",
+ "resend_in": "{seconds} 秒后重新发送",
+ "sign_in_with_unique_code": "使用唯一码登录",
+ "forgot_password": "忘记密码?"
+ },
+ "sign_up": {
+ "header": {
+ "label": "创建账号以开始与团队一起管理工作。",
+ "step": {
+ "email": {
+ "header": "注册",
+ "sub_header": ""
+ },
+ "password": {
+ "header": "注册",
+ "sub_header": "使用邮箱-密码组合注册。"
+ },
+ "unique_code": {
+ "header": "注册",
+ "sub_header": "使用发送到上述邮箱的唯一码注册。"
+ }
+ }
+ },
+ "errors": {
+ "password": {
+ "strength": "请设置一个强密码以继续"
+ }
+ }
+ },
+ "sign_in": {
+ "header": {
+ "label": "登录以开始与团队一起管理工作。",
+ "step": {
+ "email": {
+ "header": "登录或注册",
+ "sub_header": ""
+ },
+ "password": {
+ "header": "登录或注册",
+ "sub_header": "使用您的邮箱-密码组合登录。"
+ },
+ "unique_code": {
+ "header": "登录或注册",
+ "sub_header": "使用发送到上述邮箱的唯一码登录。"
+ }
+ }
+ }
+ },
+ "forgot_password": {
+ "title": "重置密码",
+ "description": "输入您的用户账号已验证的邮箱地址,我们将向您发送密码重置链接。",
+ "email_sent": "我们已将重置链接发送到您的邮箱",
+ "send_reset_link": "发送重置链接",
+ "errors": {
+ "smtp_not_enabled": "我们发现您的管理员未启用 SMTP,我们将无法发送密码重置链接"
+ },
+ "toast": {
+ "success": {
+ "title": "邮件已发送",
+ "message": "请查看您的收件箱以获取重置密码的链接。如果几分钟内未收到,请检查垃圾邮件文件夹。"
+ },
+ "error": {
+ "title": "错误!",
+ "message": "出现错误。请重试。"
+ }
+ }
+ },
+ "reset_password": {
+ "title": "设置新密码",
+ "description": "使用强密码保护您的账号"
+ },
+ "set_password": {
+ "title": "保护您的账号",
+ "description": "设置密码有助于您安全登录"
+ },
+ "sign_out": {
+ "toast": {
+ "error": {
+ "title": "错误!",
+ "message": "登出失败。请重试。"
+ }
+ }
+ }
+ },
+
"submit": "提交",
"cancel": "取消",
"loading": "加载中",
@@ -14,31 +184,33 @@
"description": "描述",
"search": "搜索",
"add_member": "添加成员",
+ "adding_members": "正在添加成员",
"remove_member": "移除成员",
"add_members": "添加成员",
+ "adding_member": "正在添加成员",
"remove_members": "移除成员",
"add": "添加",
+ "adding": "添加中",
"remove": "移除",
- "add_new": "新增",
- "remove_selected": "移除选中项",
- "first_name": "名字",
- "last_name": "姓氏",
- "email": "电子邮件",
+ "add_new": "添加新的",
+ "remove_selected": "移除所选",
+ "first_name": "名",
+ "last_name": "姓",
+ "email": "邮箱",
"display_name": "显示名称",
"role": "角色",
"timezone": "时区",
"avatar": "头像",
"cover_image": "封面图片",
"password": "密码",
- "change_cover": "更换封面",
+ "change_cover": "更改封面",
"language": "语言",
- "saving": "保存中...",
+ "saving": "保存中",
"save_changes": "保存更改",
- "deactivate_account": "停用账户",
- "deactivate_account_description": "停用账户后,该账户内的所有数据和资源将被永久删除,且无法恢复。",
+ "deactivate_account": "停用账号",
+ "deactivate_account_description": "停用账号后,该账号内的所有数据和资源将被永久删除且无法恢复。",
"profile_settings": "个人资料设置",
- "your_account": "账户",
- "profile": "个人资料",
+ "your_account": "您的账号",
"security": "安全",
"activity": "活动",
"appearance": "外观",
@@ -50,116 +222,75 @@
"assigned": "已分配",
"created": "已创建",
"subscribed": "已订阅",
- "you_do_not_have_the_permission_to_access_this_page": "您没有权限访问此页面。",
- "failed_to_sign_out_please_try_again": "登出失败,请重试。",
- "password_changed_successfully": "密码已成功更改。",
- "something_went_wrong_please_try_again": "出错了,请重试。",
- "change_password": "更改密码",
- "passwords_dont_match": "密码不匹配",
- "current_password": "当前密码",
- "new_password": "新密码",
- "confirm_password": "确认密码",
- "this_field_is_required": "此字段为必填项",
- "changing_password": "正在更改密码",
- "please_enter_your_password": "请输入您的密码。",
- "password_length_should_me_more_than_8_characters": "密码长度应大于8个字符。",
- "password_is_weak": "密码强度较弱。",
- "password_is_strong": "密码强度较强。",
+ "you_do_not_have_the_permission_to_access_this_page": "您没有访问此页面的权限。",
+ "something_went_wrong_please_try_again": "出现错误。请重试。",
"load_more": "加载更多",
- "select_or_customize_your_interface_color_scheme": "选择或自定义界面配色方案。",
+ "select_or_customize_your_interface_color_scheme": "选择或自定义您的界面配色方案。",
"theme": "主题",
"system_preference": "系统偏好",
"light": "浅色",
"dark": "深色",
- "light_contrast": "浅色高对比",
- "dark_contrast": "深色高对比",
+ "light_contrast": "浅色高对比度",
+ "dark_contrast": "深色高对比度",
"custom": "自定义主题",
- "select_your_theme": "选择主题",
- "customize_your_theme": "自定义主题",
+ "select_your_theme": "选择您的主题",
+ "customize_your_theme": "自定义您的主题",
"background_color": "背景颜色",
"text_color": "文字颜色",
- "primary_color": "主色调",
+ "primary_color": "主要(主题)颜色",
"sidebar_background_color": "侧边栏背景颜色",
"sidebar_text_color": "侧边栏文字颜色",
"set_theme": "设置主题",
- "enter_a_valid_hex_code_of_6_characters": "请输入6位有效的十六进制代码",
+ "enter_a_valid_hex_code_of_6_characters": "输入有效的6位十六进制代码",
"background_color_is_required": "背景颜色为必填项",
"text_color_is_required": "文字颜色为必填项",
- "primary_color_is_required": "主色调为必填项",
+ "primary_color_is_required": "主要颜色为必填项",
"sidebar_background_color_is_required": "侧边栏背景颜色为必填项",
"sidebar_text_color_is_required": "侧边栏文字颜色为必填项",
"updating_theme": "正在更新主题",
- "theme_updated_successfully": "主题已成功更新",
+ "theme_updated_successfully": "主题更新成功",
"failed_to_update_the_theme": "主题更新失败",
- "email_notifications": "电子邮件通知",
- "stay_in_the_loop_on_issues_you_are_subscribed_to_enable_this_to_get_notified": "启用此功能以接收您订阅问题的通知。",
- "email_notification_setting_updated_successfully": "电子邮件通知设置已成功更新",
- "failed_to_update_email_notification_setting": "电子邮件通知设置更新失败",
- "notify_me_when": "在以下情况下通知我",
- "property_changes": "属性更改",
- "property_changes_description": "当负责人、优先级、估算等属性更改时通知。",
- "state_change": "状态更改",
- "state_change_description": "当问题状态更改时通知",
- "issue_completed": "问题完成",
- "issue_completed_description": "仅在问题完成时通知",
+ "email_notifications": "邮件通知",
+ "stay_in_the_loop_on_issues_you_are_subscribed_to_enable_this_to_get_notified": "及时了解您订阅的工作项。启用此功能以获取通知。",
+ "email_notification_setting_updated_successfully": "邮件通知设置更新成功",
+ "failed_to_update_email_notification_setting": "邮件通知设置更新失败",
+ "notify_me_when": "在以下情况通知我",
+ "property_changes": "属性变更",
+ "property_changes_description": "当工作项的属性(如负责人、优先级、估算等)发生变更时通知我。",
+ "state_change": "状态变更",
+ "state_change_description": "当工作项移动到不同状态时通知我",
+ "issue_completed": "工作项完成",
+ "issue_completed_description": "仅当工作项完成时通知我",
"comments": "评论",
- "comments_description": "当有人在问题中添加评论时通知",
+ "comments_description": "当有人在工作项上发表评论时通知我",
"mentions": "提及",
- "mentions_description": "仅在评论或描述中提及您时通知",
- "create_your_workspace": "创建工作区",
- "only_your_instance_admin_can_create_workspaces": "只有实例管理员可以创建工作区",
- "only_your_instance_admin_can_create_workspaces_description": "如果您知道实例管理员的电子邮件地址,请点击以下按钮联系他们。",
- "go_back": "返回",
- "request_instance_admin": "请求实例管理员",
- "plane_logo": "Plane 徽标",
- "workspace_creation_disabled": "工作区创建已禁用",
- "workspace_request_subject": "新工作区请求",
- "workspace_request_body": "实例管理员:\n\n请在 URL [/workspace-name] 处创建一个新的工作区。[工作区创建目的]\n\n谢谢。\n{{firstName}} {{lastName}}\n{{email}}",
- "creating_workspace": "正在创建工作区",
- "workspace_created_successfully": "工作区已成功创建",
- "create_workspace_page": "创建工作区页面",
- "workspace_could_not_be_created_please_try_again": "无法创建工作区,请重试。",
- "workspace_could_not_be_created_please_try_again_description": "创建工作区时出错,请重试。",
- "this_is_a_required_field": "此字段为必填项。",
- "name_your_workspace": "为工作区命名",
- "workspaces_names_can_contain_only_space_dash_and_alphanumeric_characters": "工作区名称只能包含空格、破折号和字母数字字符。",
- "limit_your_name_to_80_characters": "名称长度限制为80个字符。",
- "set_your_workspace_url": "设置工作区URL",
- "limit_your_url_to_48_characters": "URL长度限制为48个字符。",
- "how_many_people_will_use_this_workspace": "有多少人将使用此工作区?",
- "how_many_people_will_use_this_workspace_description": "这将帮助确定购买的席位数量。",
- "select_a_range": "选择一个范围",
- "urls_can_contain_only_dash_and_alphanumeric_characters": "URL只能包含破折号和字母数字字符。",
- "something_familiar_and_recognizable_is_always_best": "熟悉且易于识别的名称总是最佳选择。",
- "workspace_url_is_already_taken": "工作区URL已被占用!",
+ "mentions_description": "仅当有人在评论或描述中提及我时通知我",
"old_password": "旧密码",
"general_settings": "常规设置",
- "sign_out": "登出",
- "signing_out": "正在登出",
- "active_cycles": "活跃周期",
- "active_cycles_description": "监控所有项目的周期,跟踪高优先级问题,并关注需要关注的周期。",
- "on_demand_snapshots_of_all_your_cycles": "所有周期的按需快照",
+ "sign_out": "退出登录",
+ "signing_out": "正在退出登录",
+ "active_cycles": "活动周期",
+ "active_cycles_description": "监控各个项目的周期,跟踪高优先级工作项,并关注需要注意的周期。",
+ "on_demand_snapshots_of_all_your_cycles": "所有周期的实时快照",
"upgrade": "升级",
- "10000_feet_view": "所有活跃周期的概览",
- "10000_feet_view_description": "放大查看所有项目的周期,而不是单独查看每个项目的周期。",
- "get_snapshot_of_each_active_cycle": "获取每个活跃周期的快照",
- "get_snapshot_of_each_active_cycle_description": "跟踪所有活跃周期的高级指标,查看进度并了解范围与截止日期的关系。",
- "compare_burndowns": "比较燃尽图",
- "compare_burndowns_description": "监控每个团队的表现,查看每个周期的燃尽报告。",
- "quickly_see_make_or_break_issues": "快速查看关键问题",
- "quickly_see_make_or_break_issues_description": "预览每个周期中与截止日期相关的高优先级问题。一键查看所有周期的详细信息。",
- "zoom_into_cycles_that_need_attention": "关注需要关注的周期",
- "zoom_into_cycles_that_need_attention_description": "一键调查未达预期的周期状态。",
- "stay_ahead_of_blockers": "提前解决阻碍",
- "stay_ahead_of_blockers_description": "发现项目间的挑战,查看其他视图中不明显的周期依赖关系。",
+ "10000_feet_view": "所有活动周期的全局视图。",
+ "10000_feet_view_description": "放大视角,一次性查看所有项目中正在进行的周期,而不是在每个项目中逐个查看周期。",
+ "get_snapshot_of_each_active_cycle": "获取每个活动周期的快照。",
+ "get_snapshot_of_each_active_cycle_description": "跟踪所有活动周期的高级指标,查看其进度状态,并了解与截止日期相关的范围。",
+ "compare_burndowns": "比较燃尽图。",
+ "compare_burndowns_description": "通过查看每个周期的燃尽报告,监控每个团队的表现。",
+ "quickly_see_make_or_break_issues": "快速查看关键工作项。",
+ "quickly_see_make_or_break_issues_description": "预览每个周期中与截止日期相关的高优先级工作项。一键查看每个周期的所有工作项。",
+ "zoom_into_cycles_that_need_attention": "关注需要注意的周期。",
+ "zoom_into_cycles_that_need_attention_description": "一键调查任何不符合预期的周期状态。",
+ "stay_ahead_of_blockers": "提前预防阻塞。",
+ "stay_ahead_of_blockers_description": "发现从一个项目到另一个项目的挑战,并查看从其他视图中不易发现的周期间依赖关系。",
"analytics": "分析",
"workspace_invites": "工作区邀请",
- "workspace_settings": "工作区设置",
- "enter_god_mode": "进入上帝模式",
- "workspace_logo": "工作区徽标",
- "new_issue": "新建问题",
- "home": "首页",
- "your_work": "您的工作",
+ "enter_god_mode": "进入管理员模式",
+ "workspace_logo": "工作区标志",
+ "new_issue": "新工作项",
+ "your_work": "我的工作",
"drafts": "草稿",
"projects": "项目",
"views": "视图",
@@ -168,128 +299,134 @@
"settings": "设置",
"failed_to_move_favorite": "移动收藏失败",
"favorites": "收藏",
- "no_favorites_yet": "尚无收藏",
+ "no_favorites_yet": "暂无收藏",
"create_folder": "创建文件夹",
"new_folder": "新建文件夹",
- "favorite_updated_successfully": "收藏已成功更新",
- "favorite_created_successfully": "收藏已成功创建",
+ "favorite_updated_successfully": "收藏更新成功",
+ "favorite_created_successfully": "收藏创建成功",
"folder_already_exists": "文件夹已存在",
"folder_name_cannot_be_empty": "文件夹名称不能为空",
- "something_went_wrong": "出错了",
+ "something_went_wrong": "出现错误",
"failed_to_reorder_favorite": "重新排序收藏失败",
- "favorite_removed_successfully": "收藏已成功移除",
+ "favorite_removed_successfully": "收藏移除成功",
"failed_to_create_favorite": "创建收藏失败",
"failed_to_rename_favorite": "重命名收藏失败",
"project_link_copied_to_clipboard": "项目链接已复制到剪贴板",
"link_copied": "链接已复制",
"add_project": "添加项目",
"create_project": "创建项目",
- "failed_to_remove_project_from_favorites": "无法从收藏中移除项目,请重试。",
- "project_created_successfully": "项目已成功创建",
- "project_created_successfully_description": "项目已成功创建。您现在可以开始添加问题。",
+ "failed_to_remove_project_from_favorites": "无法从收藏中移除项目。请重试。",
+ "project_created_successfully": "项目创建成功",
+ "project_created_successfully_description": "项目创建成功。您现在可以开始添加工作项了。",
"project_cover_image_alt": "项目封面图片",
"name_is_required": "名称为必填项",
"title_should_be_less_than_255_characters": "标题应少于255个字符",
"project_name": "项目名称",
- "project_id_must_be_at_least_1_character": "项目ID至少为1个字符",
- "project_id_must_be_at_most_5_characters": "项目ID最多为5个字符",
+ "project_id_must_be_at_least_1_character": "项目ID至少需要1个字符",
+ "project_id_must_be_at_most_5_characters": "项目ID最多只能有5个字符",
"project_id": "项目ID",
- "project_id_tooltip_content": "用于唯一标识项目中的问题。最多5个字符。",
- "description_placeholder": "描述...",
+ "project_id_tooltip_content": "帮助您唯一标识项目中的工作项。最多5个字符。",
+ "description_placeholder": "描述",
"only_alphanumeric_non_latin_characters_allowed": "仅允许字母数字和非拉丁字符。",
"project_id_is_required": "项目ID为必填项",
+ "project_id_allowed_char": "仅允许字母数字和非拉丁字符。",
+ "project_id_min_char": "项目ID至少需要1个字符",
+ "project_id_max_char": "项目ID最多只能有5个字符",
+ "project_description_placeholder": "输入项目描述",
"select_network": "选择网络",
"lead": "负责人",
+ "date_range": "日期范围",
"private": "私有",
"public": "公开",
- "accessible_only_by_invite": "仅限邀请访问",
- "anyone_in_the_workspace_except_guests_can_join": "除访客外,工作区中的任何人都可以加入",
+ "accessible_only_by_invite": "仅受邀者可访问",
+ "anyone_in_the_workspace_except_guests_can_join": "除访客外的工作区所有成员都可以加入",
"creating": "创建中",
"creating_project": "正在创建项目",
"adding_project_to_favorites": "正在将项目添加到收藏",
"project_added_to_favorites": "项目已添加到收藏",
- "couldnt_add_the_project_to_favorites": "无法将项目添加到收藏,请重试。",
+ "couldnt_add_the_project_to_favorites": "无法将项目添加到收藏。请重试。",
"removing_project_from_favorites": "正在从收藏中移除项目",
"project_removed_from_favorites": "项目已从收藏中移除",
- "couldnt_remove_the_project_from_favorites": "无法从收藏中移除项目,请重试。",
+ "couldnt_remove_the_project_from_favorites": "无法从收藏中移除项目。请重试。",
"add_to_favorites": "添加到收藏",
"remove_from_favorites": "从收藏中移除",
"publish_settings": "发布设置",
"publish": "发布",
"copy_link": "复制链接",
"leave_project": "离开项目",
- "join_the_project_to_rearrange": "加入项目以重新排序",
- "drag_to_rearrange": "拖动以重新排序",
+ "join_the_project_to_rearrange": "加入项目以重新排列",
+ "drag_to_rearrange": "拖动以重新排列",
"congrats": "恭喜!",
- "project": "项目",
"open_project": "打开项目",
- "issues": "问题",
+ "issues": "工作项",
"cycles": "周期",
"modules": "模块",
"pages": "页面",
- "intake": "接收",
+ "intake": "收集",
"time_tracking": "时间跟踪",
"work_management": "工作管理",
- "projects_and_issues": "项目与问题",
- "projects_and_issues_description": "在此项目上启用或禁用。",
- "cycles_description": "按时间段对项目工作进行时间盒管理,并调整频率。",
- "modules_description": "将工作分组为类似子项目的设置,拥有自己的负责人和分配人。",
- "views_description": "保存排序、过滤和显示选项以供以后使用或共享。",
- "pages_description": "写下一些内容。",
- "intake_description": "启用此功能以接收您订阅问题的通知。",
- "time_tracking_description": "跟踪问题和项目所花费的时间。",
- "work_management_description": "轻松管理工作和项目。",
+ "projects_and_issues": "项目和工作项",
+ "projects_and_issues_description": "在此项目中开启或关闭这些功能。",
+ "cycles_description": "根据项目需要设置时间框,可以根据不同时期更改频率。",
+ "modules_description": "将工作分组为类似子项目的设置,具有各自的负责人和分配者。",
+ "views_description": "保存排序、筛选和显示选项以供后续使用或分享。",
+ "pages_description": "像写任何东西一样写任何东西。",
+ "intake_description": "及时了解您订阅的工作项。启用此功能以获取通知。",
+ "time_tracking_description": "跟踪工作项和项目的时间消耗。",
+ "work_management_description": "轻松管理您的工作和项目。",
"documentation": "文档",
"message_support": "联系支持",
"contact_sales": "联系销售",
- "hyper_mode": "超速模式",
+ "hyper_mode": "超级模式",
"keyboard_shortcuts": "键盘快捷键",
"whats_new": "新功能",
"version": "版本",
- "we_are_having_trouble_fetching_the_updates": "获取更新时出现问题。",
+ "we_are_having_trouble_fetching_the_updates": "我们在获取更新时遇到问题。",
"our_changelogs": "我们的更新日志",
- "for_the_latest_updates": "获取最新更新,请访问",
+ "for_the_latest_updates": "获取最新更新。",
"please_visit": "请访问",
"docs": "文档",
"full_changelog": "完整更新日志",
"support": "支持",
"discord": "Discord",
- "powered_by_plane_pages": "由 Plane Pages 提供支持",
+ "powered_by_plane_pages": "由Plane Pages提供支持",
"please_select_at_least_one_invitation": "请至少选择一个邀请。",
- "please_select_at_least_one_invitation_description": "请至少选择一个邀请以加入工作区。",
- "we_see_that_someone_has_invited_you_to_join_a_workspace": "我们发现有人邀请您加入一个工作区",
+ "please_select_at_least_one_invitation_description": "请至少选择一个加入工作区的邀请。",
+ "we_see_that_someone_has_invited_you_to_join_a_workspace": "我们看到有人邀请您加入工作区",
"join_a_workspace": "加入工作区",
- "we_see_that_someone_has_invited_you_to_join_a_workspace_description": "我们发现有人邀请您加入一个工作区",
+ "we_see_that_someone_has_invited_you_to_join_a_workspace_description": "我们看到有人邀请您加入工作区",
"join_a_workspace_description": "加入工作区",
"accept_and_join": "接受并加入",
"go_home": "返回首页",
"no_pending_invites": "没有待处理的邀请",
- "you_can_see_here_if_someone_invites_you_to_a_workspace": "如果有人邀请您加入工作区,您可以在此处查看",
+ "you_can_see_here_if_someone_invites_you_to_a_workspace": "如果有人邀请您加入工作区,您可以在这里看到",
"back_to_home": "返回首页",
"workspace_name": "工作区名称",
"deactivate_your_account": "停用您的账户",
- "deactivate_your_account_description": "停用后,您将无法再分配问题,工作区的计费也将停止。要重新激活账户,您需要使用此电子邮件地址收到工作区邀请。",
+ "deactivate_your_account_description": "一旦停用,您将无法被分配工作项,也不会被计入工作区的账单。要重新激活您的账户,您需要收到发送到此电子邮件地址的工作区邀请。",
"deactivating": "正在停用",
"confirm": "确认",
+ "confirming": "确认中",
"draft_created": "草稿已创建",
- "issue_created_successfully": "问题已成功创建",
+ "issue_created_successfully": "工作项创建成功",
"draft_creation_failed": "草稿创建失败",
- "issue_creation_failed": "问题创建失败",
- "draft_issue": "草稿问题",
- "issue_updated_successfully": "问题已成功更新",
- "issue_could_not_be_updated": "无法更新问题",
+ "issue_creation_failed": "工作项创建失败",
+ "draft_issue": "草稿工作项",
+ "issue_updated_successfully": "工作项更新成功",
+ "issue_could_not_be_updated": "工作项无法更新",
"create_a_draft": "创建草稿",
- "save_to_drafts": "保存为草稿",
+ "save_to_drafts": "保存到草稿",
"save": "保存",
- "updating": "正在更新",
- "create_new_issue": "创建新问题",
- "editor_is_not_ready_to_discard_changes": "编辑器尚未准备好丢弃更改",
- "failed_to_move_issue_to_project": "无法将问题移动到项目",
+ "update": "更新",
+ "updating": "更新中",
+ "create_new_issue": "创建新工作项",
+ "editor_is_not_ready_to_discard_changes": "编辑器尚未准备好放弃更改",
+ "failed_to_move_issue_to_project": "无法将工作项移动到项目",
"create_more": "创建更多",
"add_to_project": "添加到项目",
- "discard": "丢弃",
- "duplicate_issue_found": "发现重复问题",
- "duplicate_issues_found": "发现重复问题",
+ "discard": "放弃",
+ "duplicate_issue_found": "发现重复的工作项",
+ "duplicate_issues_found": "发现重复的工作项",
"no_matching_results": "没有匹配的结果",
"title_is_required": "标题为必填项",
"title": "标题",
@@ -301,18 +438,1882 @@
"medium": "中",
"low": "低",
"members": "成员",
- "assignee": "分配人",
- "assignees": "分配人",
+ "assignee": "负责人",
+ "assignees": "负责人",
"you": "您",
"labels": "标签",
"create_new_label": "创建新标签",
"start_date": "开始日期",
+ "end_date": "结束日期",
"due_date": "截止日期",
- "cycle": "周期",
"estimate": "估算",
- "change_parent_issue": "更改父问题",
- "remove_parent_issue": "移除父问题",
- "add_parent": "添加父问题",
- "loading_members": "正在加载成员...",
- "inbox": "收件箱"
+ "change_parent_issue": "更改父工作项",
+ "remove_parent_issue": "移除父工作项",
+ "add_parent": "添加父项",
+ "loading_members": "正在加载成员",
+ "view_link_copied_to_clipboard": "视图链接已复制到剪贴板",
+ "required": "必填",
+ "optional": "可选",
+ "Cancel": "取消",
+ "edit": "编辑",
+ "archive": "归档",
+ "restor": "恢复",
+ "open_in_new_tab": "在新标签页中打开",
+ "delete": "删除",
+ "deleting": "删除中",
+ "make_a_copy": "创建副本",
+ "move_to_project": "移动到项目",
+ "good": "早上",
+ "morning": "早上",
+ "afternoon": "下午",
+ "evening": "晚上",
+ "show_all": "显示全部",
+ "show_less": "显示更少",
+ "no_data_yet": "暂无数据",
+ "syncing": "同步中",
+ "add_work_item": "添加工作项",
+ "advanced_description_placeholder": "按'/'使用命令",
+ "create_work_item": "创建工作项",
+ "attachments": "附件",
+ "declining": "拒绝中",
+ "declined": "已拒绝",
+ "decline": "拒绝",
+ "unassigned": "未分配",
+ "work_items": "工作项",
+ "add_link": "添加链接",
+ "points": "点数",
+ "no_assignee": "无负责人",
+ "no_assignees_yet": "暂无负责人",
+ "no_labels_yet": "暂无标签",
+ "ideal": "理想",
+ "current": "当前",
+ "no_matching_members": "没有匹配的成员",
+ "leaving": "离开中",
+ "removing": "移除中",
+ "leave": "离开",
+ "refresh": "刷新",
+ "refreshing": "刷新中",
+ "refresh_status": "刷新状态",
+ "prev": "上一个",
+ "next": "下一个",
+ "re_generating": "重新生成中",
+ "re_generate": "重新生成",
+ "re_generate_key": "重新生成密钥",
+ "export": "导出",
+ "member": "{count, plural, other{# 成员}}",
+
+ "project_view": {
+ "sort_by": {
+ "created_at": "创建时间",
+ "updated_at": "更新时间",
+ "name": "名称"
+ }
+ },
+
+ "toast": {
+ "success": "成功!",
+ "error": "错误!"
+ },
+
+ "links": {
+ "toasts": {
+ "created": {
+ "title": "链接已创建",
+ "message": "链接已成功创建"
+ },
+ "not_created": {
+ "title": "链接未创建",
+ "message": "无法创建链接"
+ },
+ "updated": {
+ "title": "链接已更新",
+ "message": "链接已成功更新"
+ },
+ "not_updated": {
+ "title": "链接未更新",
+ "message": "无法更新链接"
+ },
+ "removed": {
+ "title": "链接已移除",
+ "message": "链接已成功移除"
+ },
+ "not_removed": {
+ "title": "链接未移除",
+ "message": "无法移除链接"
+ }
+ }
+ },
+
+ "home": {
+ "empty": {
+ "create_project": {
+ "title": "创建项目",
+ "description": "在Plane中,大多数事情都从项目开始。",
+ "cta": "开始使用"
+ },
+ "invite_team": {
+ "title": "邀请您的团队",
+ "description": "与同事一起构建、发布和管理。",
+ "cta": "邀请他们加入"
+ },
+ "configure_workspace": {
+ "title": "设置您的工作区",
+ "description": "开启或关闭功能,或进行更多设置。",
+ "cta": "配置此工作区"
+ },
+ "personalize_account": {
+ "title": "让Plane更适合您",
+ "description": "选择您的头像、颜色等。",
+ "cta": "立即个性化"
+ },
+ "widgets": {
+ "title": "没有小部件看起来很安静,开启它们吧",
+ "description": "看起来您的所有小部件都已关闭。现在启用它们\n来提升您的体验!",
+ "primary_button": {
+ "text": "管理小部件"
+ }
+ }
+ },
+ "quick_links": {
+ "empty": "保存您想要方便访问的工作相关链接。",
+ "add": "添加快速链接",
+ "title": "快速链接",
+ "title_plural": "快速链接"
+ },
+ "recents": {
+ "title": "最近",
+ "empty": {
+ "project": "访问项目后,您的最近项目将显示在这里。",
+ "page": "访问页面后,您的最近页面将显示在这里。",
+ "issue": "访问工作项后,您的最近工作项将显示在这里。",
+ "default": "您还没有任何最近项目。"
+ },
+ "filters": {
+ "all": "所有项目",
+ "projects": "项目",
+ "pages": "页面",
+ "issues": "工作项"
+ }
+ },
+ "new_at_plane": {
+ "title": "Plane新功能"
+ },
+ "quick_tutorial": {
+ "title": "快速教程"
+ },
+ "widget": {
+ "reordered_successfully": "小部件重新排序成功。",
+ "reordering_failed": "重新排序小部件时出错。"
+ },
+ "manage_widgets": "管理小部件",
+ "title": "首页",
+ "star_us_on_github": "在GitHub上为我们加星"
+ },
+
+ "link": {
+ "modal": {
+ "url": {
+ "text": "URL",
+ "required": "URL无效",
+ "placeholder": "输入或粘贴URL"
+ },
+ "title": {
+ "text": "显示标题",
+ "placeholder": "您希望如何显示此链接"
+ }
+ }
+ },
+
+ "common": {
+ "all": "全部",
+ "states": "状态",
+ "state": "状态",
+ "state_groups": "状态组",
+ "priority": "优先级",
+ "team_project": "团队项目",
+ "project": "项目",
+ "cycle": "周期",
+ "cycles": "周期",
+ "module": "模块",
+ "modules": "模块",
+ "labels": "标签",
+ "assignees": "负责人",
+ "assignee": "负责人",
+ "created_by": "创建者",
+ "none": "无",
+ "link": "链接",
+ "estimate": "估算",
+ "layout": "布局",
+ "filters": "筛选",
+ "display": "显示",
+ "load_more": "加载更多",
+ "activity": "活动",
+ "analytics": "分析",
+ "dates": "日期",
+ "success": "成功!",
+ "something_went_wrong": "出现错误",
+ "error": {
+ "label": "错误!",
+ "message": "发生错误。请重试。"
+ },
+ "group_by": "分组方式",
+ "epic": "史诗",
+ "epics": "史诗",
+ "work_item": "工作项",
+ "sub_work_item": "子工作项",
+ "add": "添加",
+ "warning": "警告",
+ "updating": "更新中",
+ "adding": "添加中",
+ "update": "更新",
+ "creating": "创建中",
+ "create": "创建",
+ "cancel": "取消",
+ "description": "描述",
+ "title": "标题",
+ "attachment": "附件",
+ "general": "常规",
+ "features": "功能",
+ "automation": "自动化",
+ "project_name": "项目名称",
+ "project_id": "项目ID",
+ "project_timezone": "项目时区",
+ "created_on": "创建于",
+ "update_project": "更新项目",
+ "identifier_already_exists": "标识符已存在",
+ "add_more": "添加更多",
+ "defaults": "默认值",
+ "add_label": "添加标签",
+ "estimates": "估算",
+ "customize_time_range": "自定义时间范围",
+ "loading": "加载中",
+ "attachments": "附件",
+ "properties": "属性",
+ "parent": "父项",
+ "remove": "移除",
+ "archiving": "归档中",
+ "archive": "归档",
+ "access": {
+ "public": "公开",
+ "private": "私有"
+ },
+ "done": "完成",
+ "sub_work_items": "子工作项",
+ "comment": "评论",
+ "workspace_level": "工作区级别",
+ "order_by": {
+ "label": "排序方式",
+ "manual": "手动",
+ "last_created": "最近创建",
+ "last_updated": "最近更新",
+ "start_date": "开始日期",
+ "due_date": "截止日期",
+ "asc": "升序",
+ "desc": "降序",
+ "updated_on": "更新时间"
+ },
+ "sort": {
+ "asc": "升序",
+ "desc": "降序",
+ "created_on": "创建时间",
+ "updated_on": "更新时间"
+ },
+ "comments": "评论",
+ "updates": "更新",
+ "clear_all": "清除全部",
+ "copied": "已复制!",
+ "link_copied": "链接已复制!",
+ "link_copied_to_clipboard": "链接已复制到剪贴板",
+ "copied_to_clipboard": "工作项链接已复制到剪贴板",
+ "is_copied_to_clipboard": "工作项已复制到剪贴板",
+ "no_links_added_yet": "暂无添加的链接",
+ "add_link": "添加链接",
+ "links": "链接",
+ "go_to_workspace": "前往工作区",
+ "progress": "进度",
+ "optional": "可选",
+ "join": "加入",
+ "go_back": "返回",
+ "continue": "继续",
+ "resend": "重新发送",
+ "relations": "关系",
+ "errors": {
+ "default": {
+ "title": "错误!",
+ "message": "发生错误。请重试。"
+ },
+ "required": "此字段为必填项",
+ "entity_required": "{entity}为必填项"
+ },
+ "update_link": "更新链接",
+ "attach": "附加",
+ "create_new": "创建新的",
+ "add_existing": "添加现有",
+ "type_or_paste_a_url": "输入或粘贴URL",
+ "url_is_invalid": "URL无效",
+ "display_title": "显示标题",
+ "link_title_placeholder": "您希望如何显示此链接",
+ "url": "URL",
+ "side_peek": "侧边预览",
+ "modal": "模态框",
+ "full_screen": "全屏",
+ "close_peek_view": "关闭预览视图",
+ "toggle_peek_view_layout": "切换预览视图布局",
+ "options": "选项",
+ "duration": "持续时间",
+ "today": "今天",
+ "week": "周",
+ "month": "月",
+ "quarter": "季度",
+ "press_for_commands": "按'/'使用命令",
+ "click_to_add_description": "点击添加描述",
+ "search": {
+ "label": "搜索",
+ "placeholder": "输入搜索内容",
+ "no_matches_found": "未找到匹配项",
+ "no_matching_results": "没有匹配的结果"
+ },
+ "actions": {
+ "edit": "编辑",
+ "make_a_copy": "创建副本",
+ "open_in_new_tab": "在新标签页中打开",
+ "copy_link": "复制链接",
+ "archive": "归档",
+ "delete": "删除",
+ "remove_relation": "移除关系",
+ "subscribe": "订阅",
+ "unsubscribe": "取消订阅",
+ "clear_sorting": "清除排序",
+ "show_weekends": "显示周末",
+ "enable": "启用",
+ "disable": "禁用"
+ },
+ "name": "名称",
+ "discard": "放弃",
+ "confirm": "确认",
+ "confirming": "确认中",
+ "read_the_docs": "阅读文档",
+ "default": "默认",
+ "active": "活动",
+ "enabled": "已启用",
+ "disabled": "已禁用",
+ "mandate": "授权",
+ "mandatory": "必需的",
+ "yes": "是",
+ "no": "否",
+ "please_wait": "请稍候",
+ "enabling": "正在启用",
+ "disabling": "正在禁用",
+ "beta": "测试版",
+ "or": "或",
+ "next": "下一步",
+ "back": "返回",
+ "cancelling": "正在取消",
+ "configuring": "正在配置",
+ "clear": "清除",
+ "import": "导入",
+ "connect": "连接",
+ "authorizing": "正在授权",
+ "processing": "正在处理",
+ "no_data_available": "暂无数据",
+ "from": "来自 {name}",
+ "authenticated": "已认证",
+ "select": "选择",
+ "upgrade": "升级",
+ "add_seats": "添加席位",
+ "label": "标签",
+ "priorities": "优先级",
+ "projects": "项目",
+ "workspace": "工作区",
+ "workspaces": "工作区",
+ "team": "团队",
+ "teams": "团队",
+ "entity": "实体",
+ "entities": "实体",
+ "task": "任务",
+ "tasks": "任务",
+ "section": "部分",
+ "sections": "部分",
+ "edit": "编辑",
+ "connecting": "正在连接",
+ "connected": "已连接",
+ "disconnect": "断开连接",
+ "disconnecting": "正在断开连接",
+ "installing": "正在安装",
+ "install": "安装"
+ },
+
+ "form": {
+ "title": {
+ "required": "标题为必填项",
+ "max_length": "标题应少于 {length} 个字符"
+ }
+ },
+
+ "entity": {
+ "grouping_title": "{entity}分组",
+ "priority": "{entity}优先级",
+ "all": "所有{entity}",
+ "drop_here_to_move": "拖放到此处以移动{entity}",
+ "delete": {
+ "label": "删除{entity}",
+ "success": "{entity}删除成功",
+ "failed": "{entity}删除失败"
+ },
+ "update": {
+ "failed": "{entity}更新失败",
+ "success": "{entity}更新成功"
+ },
+ "link_copied_to_clipboard": "{entity}链接已复制到剪贴板",
+ "fetch": {
+ "failed": "获取{entity}时出错"
+ },
+ "add": {
+ "success": "{entity}添加成功",
+ "failed": "添加{entity}时出错"
+ }
+ },
+
+ "epic": {
+ "all": "所有史诗",
+ "label": "{count, plural, one {史诗} other {史诗}}",
+ "new": "新建史诗",
+ "adding": "正在添加史诗",
+ "create": {
+ "success": "史诗创建成功"
+ },
+ "add": {
+ "press_enter": "按'Enter'添加另一个史诗",
+ "label": "添加史诗"
+ },
+ "title": {
+ "label": "史诗标题",
+ "required": "史诗标题为必填项"
+ }
+ },
+
+ "issue": {
+ "label": "{count, plural, one {工作项} other {工作项}}",
+ "all": "所有工作项",
+ "edit": "编辑工作项",
+ "title": {
+ "label": "工作项标题",
+ "required": "工作项标题为必填项"
+ },
+ "add": {
+ "press_enter": "按'Enter'添加另一个工作项",
+ "label": "添加工作项",
+ "cycle": {
+ "failed": "无法将工作项添加到周期。请重试。",
+ "success": "{count, plural, one {工作项} other {工作项}}已成功添加到周期。",
+ "loading": "正在将{count, plural, one {工作项} other {工作项}}添加到周期"
+ },
+ "assignee": "添加负责人",
+ "start_date": "添加开始日期",
+ "due_date": "添加截止日期",
+ "parent": "添加父工作项",
+ "sub_issue": "添加子工作项",
+ "relation": "添加关系",
+ "link": "添加链接",
+ "existing": "添加现有工作项"
+ },
+ "remove": {
+ "label": "移除工作项",
+ "cycle": {
+ "loading": "正在从周期中移除工作项",
+ "success": "已成功从周期中移除工作项。",
+ "failed": "无法从周期中移除工作项。请重试。"
+ },
+ "module": {
+ "loading": "正在从模块中移除工作项",
+ "success": "已成功从模块中移除工作项。",
+ "failed": "无法从模块中移除工作项。请重试。"
+ },
+ "parent": {
+ "label": "移除父工作项"
+ }
+ },
+ "new": "新建工作项",
+ "adding": "正在添加工作项",
+ "create": {
+ "success": "工作项创建成功"
+ },
+ "priority": {
+ "urgent": "紧急",
+ "high": "高",
+ "medium": "中",
+ "low": "低"
+ },
+ "display": {
+ "properties": {
+ "label": "显示属性",
+ "id": "ID",
+ "issue_type": "工作项类型",
+ "sub_issue_count": "子工作项数量",
+ "attachment_count": "附件数量",
+ "created_on": "创建于",
+ "sub_issue": "子工作项"
+ },
+ "extra": {
+ "show_sub_issues": "显示子工作项",
+ "show_empty_groups": "显示空组"
+ }
+ },
+ "layouts": {
+ "ordered_by_label": "此布局按以下方式排序",
+ "list": "列表",
+ "kanban": "看板",
+ "calendar": "日历",
+ "spreadsheet": "表格",
+ "gantt": "时间线",
+ "title": {
+ "list": "列表布局",
+ "kanban": "看板布局",
+ "calendar": "日历布局",
+ "spreadsheet": "表格布局",
+ "gantt": "时间线布局"
+ }
+ },
+ "states": {
+ "active": "活动",
+ "backlog": "待办"
+ },
+ "comments": {
+ "placeholder": "添加评论",
+ "switch": {
+ "private": "切换为私密评论",
+ "public": "切换为公开评论"
+ },
+ "create": {
+ "success": "评论创建成功",
+ "error": "评论创建失败。请稍后重试。"
+ },
+ "update": {
+ "success": "评论更新成功",
+ "error": "评论更新失败。请稍后重试。"
+ },
+ "remove": {
+ "success": "评论删除成功",
+ "error": "评论删除失败。请稍后重试。"
+ },
+ "upload": {
+ "error": "资源上传失败。请稍后重试。"
+ }
+ },
+ "empty_state": {
+ "issue_detail": {
+ "title": "工作项不存在",
+ "description": "您查找的工作项不存在、已归档或已删除。",
+ "primary_button": {
+ "text": "查看其他工作项"
+ }
+ }
+ },
+ "sibling": {
+ "label": "同级工作项"
+ },
+ "archive": {
+ "description": "只有已完成或已取消的\n工作项可以归档",
+ "label": "归档工作项",
+ "confirm_message": "您确定要归档此工作项吗?所有已归档的工作项稍后可以恢复。",
+ "success": {
+ "label": "归档成功",
+ "message": "您的归档可以在项目归档中找到。"
+ },
+ "failed": {
+ "message": "无法归档工作项。请重试。"
+ }
+ },
+ "restore": {
+ "success": {
+ "title": "恢复成功",
+ "message": "您的工作项可以在项目工作项中找到。"
+ },
+ "failed": {
+ "message": "无法恢复工作项。请重试。"
+ }
+ },
+ "relation": {
+ "relates_to": "关联到",
+ "duplicate": "重复于",
+ "blocked_by": "被阻止于",
+ "blocking": "阻止"
+ },
+ "copy_link": "复制工作项链接",
+ "delete": {
+ "label": "删除工作项",
+ "error": "删除工作项时出错"
+ },
+ "subscription": {
+ "actions": {
+ "subscribed": "工作项订阅成功",
+ "unsubscribed": "工作项取消订阅成功"
+ }
+ },
+ "select": {
+ "error": "请至少选择一个工作项",
+ "empty": "未选择工作项",
+ "add_selected": "添加所选工作项"
+ },
+ "open_in_full_screen": "在全屏中打开工作项"
+ },
+
+ "attachment": {
+ "error": "无法附加文件。请重新上传。",
+ "only_one_file_allowed": "一次只能上传一个文件。",
+ "file_size_limit": "文件大小必须小于或等于 {size}MB。",
+ "drag_and_drop": "拖放到任意位置以上传",
+ "delete": "删除附件"
+ },
+
+ "label": {
+ "select": "选择标签",
+ "create": {
+ "success": "标签创建成功",
+ "failed": "标签创建失败",
+ "already_exists": "标签已存在",
+ "type": "输入以添加新标签"
+ }
+ },
+
+ "sub_work_item": {
+ "update": {
+ "success": "子工作项更新成功",
+ "error": "更新子工作项时出错"
+ },
+ "remove": {
+ "success": "子工作项移除成功",
+ "error": "移除子工作项时出错"
+ }
+ },
+
+ "view": {
+ "label": "{count, plural, one {视图} other {视图}}",
+ "create": {
+ "label": "创建视图"
+ },
+ "update": {
+ "label": "更新视图"
+ }
+ },
+
+ "inbox_issue": {
+ "status": {
+ "pending": {
+ "title": "待处理",
+ "description": "待处理"
+ },
+ "declined": {
+ "title": "已拒绝",
+ "description": "已拒绝"
+ },
+ "snoozed": {
+ "title": "已暂停",
+ "description": "还剩{days, plural, one{# 天} other{# 天}}"
+ },
+ "accepted": {
+ "title": "已接受",
+ "description": "已接受"
+ },
+ "duplicate": {
+ "title": "重复",
+ "description": "重复"
+ }
+ },
+ "modals": {
+ "decline": {
+ "title": "拒绝工作项",
+ "content": "您确定要拒绝工作项 {value} 吗?"
+ },
+ "delete": {
+ "title": "删除工作项",
+ "content": "您确定要删除工作项 {value} 吗?",
+ "success": "工作项删除成功"
+ }
+ },
+ "errors": {
+ "snooze_permission": "只有项目管理员可以暂停/取消暂停工作项",
+ "accept_permission": "只有项目管理员可以接受工作项",
+ "decline_permission": "只有项目管理员可以拒绝工作项"
+ },
+ "actions": {
+ "accept": "接受",
+ "decline": "拒绝",
+ "snooze": "暂停",
+ "unsnooze": "取消暂停",
+ "copy": "复制工作项链接",
+ "delete": "删除",
+ "open": "打开工作项",
+ "mark_as_duplicate": "标记为重复",
+ "move": "将 {value} 移至项目工作项"
+ },
+ "source": {
+ "in-app": "应用内"
+ },
+ "order_by": {
+ "created_at": "创建时间",
+ "updated_at": "更新时间",
+ "id": "ID"
+ },
+ "label": "收集",
+ "page_label": "{workspace} - 收集",
+ "modal": {
+ "title": "创建收集工作项"
+ },
+ "tabs": {
+ "open": "未处理",
+ "closed": "已处理"
+ },
+ "empty_state": {
+ "sidebar_open_tab": {
+ "title": "没有未处理的工作项",
+ "description": "在此处查找未处理的工作项。创建新工作项。"
+ },
+ "sidebar_closed_tab": {
+ "title": "没有已处理的工作项",
+ "description": "所有已接受或已拒绝的工作项都可以在这里找到。"
+ },
+ "sidebar_filter": {
+ "title": "没有匹配的工作项",
+ "description": "收集中没有符合筛选条件的工作项。创建新工作项。"
+ },
+ "detail": {
+ "title": "选择一个工作项以查看其详细信息。"
+ }
+ }
+ },
+
+ "workspace_creation": {
+ "heading": "创建您的工作区",
+ "subheading": "要开始使用 Plane,您需要创建或加入一个工作区。",
+ "form": {
+ "name": {
+ "label": "为您的工作区命名",
+ "placeholder": "熟悉且易于识别的名称总是最好的。"
+ },
+ "url": {
+ "label": "设置您的工作区 URL",
+ "placeholder": "输入或粘贴 URL",
+ "edit_slug": "您只能编辑 URL 的标识符部分"
+ },
+ "organization_size": {
+ "label": "有多少人将使用这个工作区?",
+ "placeholder": "选择一个范围"
+ }
+ },
+ "errors": {
+ "creation_disabled": {
+ "title": "只有您的实例管理员可以创建工作区",
+ "description": "如果您知道实例管理员的电子邮件地址,请点击下方按钮与他们联系。",
+ "request_button": "请求实例管理员"
+ },
+ "validation": {
+ "name_alphanumeric": "工作区名称只能包含 (' '), ('-'), ('_') 和字母数字字符。",
+ "name_length": "名称限制在 80 个字符以内。",
+ "url_alphanumeric": "URL 只能包含 ('-') 和字母数字字符。",
+ "url_length": "URL 限制在 48 个字符以内。",
+ "url_already_taken": "工作区 URL 已被占用!"
+ }
+ },
+ "request_email": {
+ "subject": "请求新工作区",
+ "body": "您好,实例管理员:\n\n请为 [创建工作区的目的] 创建一个 URL 为 [/workspace-name] 的新工作区。\n\n谢谢,\n{firstName} {lastName}\n{email}"
+ },
+ "button": {
+ "default": "创建工作区",
+ "loading": "正在创建工作区"
+ },
+ "toast": {
+ "success": {
+ "title": "成功",
+ "message": "工作区创建成功"
+ },
+ "error": {
+ "title": "错误",
+ "message": "工作区创建失败。请重试。"
+ }
+ }
+ },
+
+ "workspace_dashboard": {
+ "empty_state": {
+ "general": {
+ "title": "项目、活动和指标概览",
+ "description": "欢迎使用 Plane,我们很高兴您能来到这里。创建您的第一个项目并跟踪您的工作项,这个页面将转变为帮助您进展的空间。管理员还将看到帮助团队进展的项目。",
+ "primary_button": {
+ "text": "构建您的第一个项目",
+ "comic": {
+ "title": "在 Plane 中一切都从项目开始",
+ "description": "项目可以是产品路线图、营销活动或新车发布。"
+ }
+ }
+ }
+ }
+ },
+
+ "workspace_analytics": {
+ "label": "分析",
+ "page_label": "{workspace} - 分析",
+ "open_tasks": "总开放任务",
+ "error": "获取数据时出现错误。",
+ "work_items_closed_in": "已关闭的工作项",
+ "selected_projects": "已选择的项目",
+ "total_members": "总成员数",
+ "total_cycles": "总周期数",
+ "total_modules": "总模块数",
+ "pending_work_items": {
+ "title": "待处理工作项",
+ "empty_state": "同事的待处理工作项分析将显示在这里。"
+ },
+ "work_items_closed_in_a_year": {
+ "title": "一年内关闭的工作项",
+ "empty_state": "关闭工作项以查看以图表形式显示的分析。"
+ },
+ "most_work_items_created": {
+ "title": "创建最多工作项",
+ "empty_state": "同事及其创建的工作项数量将显示在这里。"
+ },
+ "most_work_items_closed": {
+ "title": "关闭最多工作项",
+ "empty_state": "同事及其关闭的工作项数量将显示在这里。"
+ },
+ "tabs": {
+ "scope_and_demand": "范围和需求",
+ "custom": "自定义分析"
+ },
+ "empty_state": {
+ "general": {
+ "title": "跟踪进度、工作量和分配。发现趋势、消除障碍并加快工作进度",
+ "description": "查看范围与需求、估算和范围蔓延。获取团队成员和团队的表现,确保您的项目按时运行。",
+ "primary_button": {
+ "text": "开始您的第一个项目",
+ "comic": {
+ "title": "分析在周期 + 模块中效果最佳",
+ "description": "首先,将您的工作项限定在周期中,如果可能的话,将跨越多个周期的工作项分组到模块中。在左侧导航栏中查看这两项。"
+ }
+ }
+ }
+ }
+ },
+
+ "workspace_projects": {
+ "label": "{count, plural, one {项目} other {项目}}",
+ "create": {
+ "label": "添加项目"
+ },
+ "network": {
+ "private": {
+ "title": "私有",
+ "description": "仅限邀请访问"
+ },
+ "public": {
+ "title": "公开",
+ "description": "工作区中除访客外的任何人都可以加入"
+ }
+ },
+ "error": {
+ "permission": "您没有执行此操作的权限。",
+ "cycle_delete": "删除周期失败",
+ "module_delete": "删除模块失败",
+ "issue_delete": "删除工作项失败"
+ },
+ "state": {
+ "backlog": "待办",
+ "unstarted": "未开始",
+ "started": "进行中",
+ "completed": "已完成",
+ "cancelled": "已取消"
+ },
+ "sort": {
+ "manual": "手动",
+ "name": "名称",
+ "created_at": "创建日期",
+ "members_length": "成员数量"
+ },
+ "scope": {
+ "my_projects": "我的项目",
+ "archived_projects": "已归档"
+ },
+ "common": {
+ "months_count": "{months, plural, one{# 个月} other{# 个月}}"
+ },
+ "empty_state": {
+ "general": {
+ "title": "没有活动项目",
+ "description": "将每个项目视为目标导向工作的父级。项目是工作项、周期和模块所在的地方,与您的同事一起帮助您实现目标。创建新项目或筛选已归档的项目。",
+ "primary_button": {
+ "text": "开始您的第一个项目",
+ "comic": {
+ "title": "在 Plane 中一切都从项目开始",
+ "description": "项目可以是产品路线图、营销活动或新车发布。"
+ }
+ }
+ },
+ "no_projects": {
+ "title": "没有项目",
+ "description": "要创建工作项或管理您的工作,您需要创建一个项目或成为项目的一部分。",
+ "primary_button": {
+ "text": "开始您的第一个项目",
+ "comic": {
+ "title": "在 Plane 中一切都从项目开始",
+ "description": "项目可以是产品路线图、营销活动或新车发布。"
+ }
+ }
+ },
+ "filter": {
+ "title": "没有匹配的项目",
+ "description": "未检测到符合匹配条件的项目。\n创建一个新项目。"
+ },
+ "search": {
+ "description": "未检测到符合匹配条件的项目。\n创建一个新项目"
+ }
+ }
+ },
+
+ "workspace_views": {
+ "add_view": "添加视图",
+ "empty_state": {
+ "all-issues": {
+ "title": "项目中没有工作项",
+ "description": "第一个项目完成!现在,将您的工作分解成可跟踪的工作项。让我们开始吧!",
+ "primary_button": {
+ "text": "创建新工作项"
+ }
+ },
+ "assigned": {
+ "title": "还没有工作项",
+ "description": "可以在这里跟踪分配给您的工作项。",
+ "primary_button": {
+ "text": "创建新工作项"
+ }
+ },
+ "created": {
+ "title": "还没有工作项",
+ "description": "您创建的所有工作项都会出现在这里,直接在这里跟踪它们。",
+ "primary_button": {
+ "text": "创建新工作项"
+ }
+ },
+ "subscribed": {
+ "title": "还没有工作项",
+ "description": "订阅您感兴趣的工作项,在这里跟踪所有这些工作项。"
+ },
+ "custom-view": {
+ "title": "还没有工作项",
+ "description": "符合筛选条件的工作项,在这里跟踪所有这些工作项。"
+ }
+ }
+ },
+
+ "workspace_settings": {
+ "label": "工作区设置",
+ "page_label": "{workspace} - 常规设置",
+ "key_created": "密钥已创建",
+ "copy_key": "复制并将此密钥保存在 Plane Pages 中。关闭后您将无法看到此密钥。包含密钥的 CSV 文件已下载。",
+ "token_copied": "令牌已复制到剪贴板。",
+ "settings": {
+ "general": {
+ "title": "常规",
+ "upload_logo": "上传标志",
+ "edit_logo": "编辑标志",
+ "name": "工作区名称",
+ "company_size": "公司规模",
+ "url": "工作区网址",
+ "update_workspace": "更新工作区",
+ "delete_workspace": "删除工作区",
+ "delete_workspace_description": "删除工作区时,该工作区内的所有数据和资源将被永久删除且无法恢复。",
+ "delete_btn": "删除我的工作区",
+ "errors": {
+ "name": {
+ "required": "名称为必填项",
+ "max_length": "工作区名称不应超过80个字符"
+ },
+ "company_size": {
+ "required": "公司规模为必填项"
+ }
+ }
+ },
+ "members": {
+ "title": "成员",
+ "add_member": "添加成员",
+ "invitations_sent_successfully": "邀请发送成功",
+ "leave_confirmation": "您确定要离开工作区吗?您将无法再访问此工作区。此操作无法撤消。",
+ "details": {
+ "full_name": "全名",
+ "display_name": "显示名称",
+ "email_address": "电子邮件地址",
+ "account_type": "账户类型",
+ "authentication": "身份验证",
+ "joining_date": "加入日期"
+ },
+ "modal": {
+ "title": "邀请人员协作",
+ "description": "邀请人员在您的工作区中协作。",
+ "button": "发送邀请",
+ "button_loading": "正在发送邀请",
+ "placeholder": "[email protected]",
+ "errors": {
+ "required": "我们需要一个电子邮件地址来邀请他们。",
+ "invalid": "电子邮件无效"
+ }
+ }
+ },
+ "billing_and_plans": {
+ "title": "账单与计划",
+ "current_plan": "当前计划",
+ "free_plan": "您目前使用的是免费计划",
+ "view_plans": "查看计划"
+ },
+ "exports": {
+ "title": "导出",
+ "exporting": "导出中",
+ "previous_exports": "以前的导出",
+ "export_separate_files": "将数据导出为单独的文件",
+ "modal": {
+ "title": "导出到",
+ "toasts": {
+ "success": {
+ "title": "导出成功",
+ "message": "您可以从之前的导出中下载导出的{entity}"
+ },
+ "error": {
+ "title": "导出失败",
+ "message": "导出未成功。请重试。"
+ }
+ }
+ }
+ },
+ "webhooks": {
+ "title": "Webhooks",
+ "add_webhook": "添加 webhook",
+ "modal": {
+ "title": "创建 webhook",
+ "details": "Webhook 详情",
+ "payload": "负载 URL",
+ "question": "您希望触发此 webhook 的事件有哪些?",
+ "error": "URL 为必填项"
+ },
+ "secret_key": {
+ "title": "密钥",
+ "message": "生成令牌以登录 webhook 负载"
+ },
+ "options": {
+ "all": "发送所有内容",
+ "individual": "选择单个事件"
+ },
+ "toasts": {
+ "created": {
+ "title": "Webhook 已创建",
+ "message": "Webhook 已成功创建"
+ },
+ "not_created": {
+ "title": "Webhook 未创建",
+ "message": "无法创建 webhook"
+ },
+ "updated": {
+ "title": "Webhook 已更新",
+ "message": "Webhook 已成功更新"
+ },
+ "not_updated": {
+ "title": "Webhook 未更新",
+ "message": "无法更新 webhook"
+ },
+ "removed": {
+ "title": "Webhook 已移除",
+ "message": "Webhook 已成功移除"
+ },
+ "not_removed": {
+ "title": "Webhook 未移除",
+ "message": "无法移除 webhook"
+ },
+ "secret_key_copied": {
+ "message": "密钥已复制到剪贴板。"
+ },
+ "secret_key_not_copied": {
+ "message": "复制密钥时出错。"
+ }
+ }
+ },
+ "api_tokens": {
+ "title": "API 令牌",
+ "add_token": "添加 API 令牌",
+ "create_token": "创建令牌",
+ "never_expires": "永不过期",
+ "generate_token": "生成令牌",
+ "generating": "生成中",
+ "delete": {
+ "title": "删除 API 令牌",
+ "description": "使用此令牌的任何应用程序将无法再访问 Plane 数据。此操作无法撤消。",
+ "success": {
+ "title": "成功!",
+ "message": "API 令牌已成功删除"
+ },
+ "error": {
+ "title": "错误!",
+ "message": "无法删除 API 令牌"
+ }
+ }
+ }
+ },
+ "empty_state": {
+ "api_tokens": {
+ "title": "尚未创建 API 令牌",
+ "description": "Plane API 可用于将您在 Plane 中的数据与任何外部系统集成。创建令牌以开始使用。"
+ },
+ "webhooks": {
+ "title": "尚未添加 webhook",
+ "description": "创建 webhook 以接收实时更新并自动执行操作。"
+ },
+ "exports": {
+ "title": "尚无导出",
+ "description": "每次导出时,您都会在这里有一个副本以供参考。"
+ },
+ "imports": {
+ "title": "尚无导入",
+ "description": "在这里查找所有以前的导入并下载它们。"
+ }
+ }
+ },
+
+ "profile": {
+ "label": "个人资料",
+ "page_label": "您的工作",
+ "work": "工作",
+ "details": {
+ "joined_on": "加入时间",
+ "time_zone": "时区"
+ },
+ "stats": {
+ "workload": "工作量",
+ "overview": "概览",
+ "created": "已创建的工作项",
+ "assigned": "已分配的工作项",
+ "subscribed": "已订阅的工作项",
+ "state_distribution": {
+ "title": "按状态分类的工作项",
+ "empty": "创建工作项以在图表中查看按状态分类的工作项,以便更好地分析。"
+ },
+ "priority_distribution": {
+ "title": "按优先级分类的工作项",
+ "empty": "创建工作项以在图表中查看按优先级分类的工作项,以便更好地分析。"
+ },
+ "recent_activity": {
+ "title": "最近活动",
+ "empty": "我们找不到数据。请查看您的输入",
+ "button": "下载今天的活动",
+ "button_loading": "下载中"
+ }
+ },
+ "actions": {
+ "profile": "个人资料",
+ "security": "安全",
+ "activity": "活动",
+ "appearance": "外观",
+ "notifications": "通知"
+ },
+ "tabs": {
+ "summary": "摘要",
+ "assigned": "已分配",
+ "created": "已创建",
+ "subscribed": "已订阅",
+ "activity": "活动"
+ },
+ "empty_state": {
+ "activity": {
+ "title": "尚无活动",
+ "description": "通过创建新工作项开始!为其添加详细信息和属性。在 Plane 中探索更多内容以查看您的活动。"
+ },
+ "assigned": {
+ "title": "没有分配给您的工作项",
+ "description": "可以从这里跟踪分配给您的工作项。"
+ },
+ "created": {
+ "title": "尚无工作项",
+ "description": "您创建的所有工作项都会出现在这里,直接在这里跟踪它们。"
+ },
+ "subscribed": {
+ "title": "尚无工作项",
+ "description": "订阅您感兴趣的工作项,在这里跟踪所有这些工作项。"
+ }
+ }
+ },
+
+ "project_settings": {
+ "general": {
+ "enter_project_id": "输入项目 ID",
+ "please_select_a_timezone": "请选择时区",
+ "archive_project": {
+ "title": "归档项目",
+ "description": "归档项目将从您的侧边导航中取消列出您的项目,但您仍然可以从项目页面访问它。您可以随时恢复或删除项目。",
+ "button": "归档项目"
+ },
+ "delete_project": {
+ "title": "删除项目",
+ "description": "删除项目时,该项目内的所有数据和资源将被永久删除且无法恢复。",
+ "button": "删除我的项目"
+ },
+ "toast": {
+ "success": "项目更新成功",
+ "error": "项目无法更新。请重试。"
+ }
+ },
+ "members": {
+ "label": "成员",
+ "project_lead": "项目负责人",
+ "default_assignee": "默认受理人",
+ "guest_super_permissions": {
+ "title": "为访客用户授予查看所有工作项的权限:",
+ "sub_heading": "这将允许访客查看所有项目工作项。"
+ },
+ "invite_members": {
+ "title": "邀请成员",
+ "sub_heading": "邀请成员参与您的项目。",
+ "select_co_worker": "选择同事"
+ }
+ },
+ "states": {
+ "describe_this_state_for_your_members": "为您的成员描述此状态。"
+ },
+ "labels": {
+ "label_title": "标签标题",
+ "label_title_is_required": "标签标题为必填项",
+ "label_max_char": "标签名称不应超过255个字符",
+ "toast": {
+ "error": "更新标签时出错"
+ }
+ },
+ "estimates": {
+ "title": "为我的项目启用估算",
+ "description": "它们有助于您传达团队的复杂性和工作量。"
+ },
+ "automations": {
+ "label": "自动化",
+ "auto-archive": {
+ "title": "自动归档已关闭的工作项",
+ "description": "Plane 将自动归档已完成或已取消的工作项。",
+ "duration": "自动归档已关闭"
+ },
+ "auto-close": {
+ "title": "自动关闭工作项",
+ "description": "Plane 将自动关闭尚未完成或取消的工作项。",
+ "duration": "自动关闭不活跃",
+ "auto_close_status": "自动关闭状态"
+ }
+ },
+
+ "empty_state": {
+ "labels": {
+ "title": "尚无标签",
+ "description": "创建标签以帮助组织和筛选项目中的工作项。"
+ },
+ "estimates": {
+ "title": "尚无估算系统",
+ "description": "创建一组估算以传达每个工作项的工作量。",
+ "primary_button": "添加估算系统"
+ }
+ }
+ },
+
+ "project_cycles": {
+ "add_cycle": "添加周期",
+ "more_details": "更多详情",
+ "cycle": "周期",
+ "update_cycle": "更新周期",
+ "create_cycle": "创建周期",
+ "no_matching_cycles": "没有匹配的周期",
+ "remove_filters_to_see_all_cycles": "移除筛选器以查看所有周期",
+ "remove_search_criteria_to_see_all_cycles": "移除搜索条件以查看所有周期",
+ "only_completed_cycles_can_be_archived": "只能归档已完成的周期",
+ "active_cycle": {
+ "label": "活动周期",
+ "progress": "进度",
+ "chart": "燃尽图",
+ "priority_issue": "优先工作项",
+ "assignees": "受理人",
+ "issue_burndown": "工作项燃尽",
+ "ideal": "理想",
+ "current": "当前",
+ "labels": "标签"
+ },
+ "upcoming_cycle": {
+ "label": "即将到来的周期"
+ },
+ "completed_cycle": {
+ "label": "已完成的周期"
+ },
+ "status": {
+ "days_left": "剩余天数",
+ "completed": "已完成",
+ "yet_to_start": "尚未开始",
+ "in_progress": "进行中",
+ "draft": "草稿"
+ },
+ "action": {
+ "restore": {
+ "title": "恢复周期",
+ "success": {
+ "title": "周期已恢复",
+ "description": "周期已被恢复。"
+ },
+ "failed": {
+ "title": "周期恢复失败",
+ "description": "无法恢复周期。请重试。"
+ }
+ },
+ "favorite": {
+ "loading": "正在将周期添加到收藏",
+ "success": {
+ "description": "周期已添加到收藏。",
+ "title": "成功!"
+ },
+ "failed": {
+ "description": "无法将周期添加到收藏。请重试。",
+ "title": "错误!"
+ }
+ },
+ "unfavorite": {
+ "loading": "正在从收藏中移除周期",
+ "success": {
+ "description": "周期已从收藏中移除。",
+ "title": "成功!"
+ },
+ "failed": {
+ "description": "无法从收藏中移除周期。请重试。",
+ "title": "错误!"
+ }
+ },
+ "update": {
+ "loading": "正在更新周期",
+ "success": {
+ "description": "周期更新成功。",
+ "title": "成功!"
+ },
+ "failed": {
+ "description": "更新周期时出错。请重试。",
+ "title": "错误!"
+ },
+ "error": {
+ "already_exists": "在给定日期范围内已存在周期,如果您想创建草稿周期,可以通过移除两个日期来实现。"
+ }
+ }
+ },
+ "empty_state": {
+ "general": {
+ "title": "在周期中分组和时间框定您的工作。",
+ "description": "将工作按时间框分解,从项目截止日期倒推设置日期,并作为团队取得切实的进展。",
+ "primary_button": {
+ "text": "设置您的第一个周期",
+ "comic": {
+ "title": "周期是重复的时间框。",
+ "description": "冲刺、迭代或您用于每周或每两周跟踪工作的任何其他术语都是一个周期。"
+ }
+ }
+ },
+ "no_issues": {
+ "title": "尚未向周期添加工作项",
+ "description": "添加或创建您希望在此周期内时间框定和交付的工作项",
+ "primary_button": {
+ "text": "创建新工作项"
+ },
+ "secondary_button": {
+ "text": "添加现有工作项"
+ }
+ },
+ "completed_no_issues": {
+ "title": "周期中没有工作项",
+ "description": "周期中没有工作项。工作项已被转移或隐藏。要查看隐藏的工作项(如果有),请相应更新您的显示属性。"
+ },
+ "active": {
+ "title": "没有活动周期",
+ "description": "活动周期包括其范围内包含今天日期的任何时期。在这里查找活动周期的进度和详细信息。"
+ },
+ "archived": {
+ "title": "尚无已归档的周期",
+ "description": "为了整理您的项目,归档已完成的周期。归档后可以在这里找到它们。"
+ }
+ }
+ },
+
+ "project_issues": {
+ "empty_state": {
+ "no_issues": {
+ "title": "创建工作项并将其分配给某人,甚至是您自己",
+ "description": "将工作项视为工作、任务或待完成的工作。工作项及其子工作项通常是基于时间的、分配给团队成员的可执行项。您的团队通过创建、分配和完成工作项来推动项目实现其目标。",
+ "primary_button": {
+ "text": "创建您的第一个工作项",
+ "comic": {
+ "title": "工作项是 Plane 中的基本构建块。",
+ "description": "重新设计 Plane 界面、重塑公司品牌或启动新的燃料喷射系统都是可能包含子工作项的工作项示例。"
+ }
+ }
+ },
+ "no_archived_issues": {
+ "title": "尚无已归档的工作项",
+ "description": "通过手动或自动化方式,您可以归档已完成或已取消的工作项。归档后可以在这里找到它们。",
+ "primary_button": {
+ "text": "设置自动化"
+ }
+ },
+ "issues_empty_filter": {
+ "title": "未找到符合筛选条件的工作项",
+ "secondary_button": {
+ "text": "清除所有筛选条件"
+ }
+ }
+ }
+ },
+
+ "project_module": {
+ "add_module": "添加模块",
+ "update_module": "更新模块",
+ "create_module": "创建模块",
+ "archive_module": "归档模块",
+ "restore_module": "恢复模块",
+ "delete_module": "删除模块",
+ "empty_state": {
+ "general": {
+ "title": "将项目里程碑映射到模块,轻松跟踪汇总工作。",
+ "description": "属于逻辑层次结构父级的一组工作项形成一个模块。将其视为按项目里程碑跟踪工作的方式。它们有自己的周期和截止日期以及分析功能,帮助您了解距离里程碑的远近。",
+ "primary_button": {
+ "text": "构建您的第一个模块",
+ "comic": {
+ "title": "模块帮助按层次结构对工作进行分组。",
+ "description": "购物车模块、底盘模块和仓库模块都是这种分组的好例子。"
+ }
+ }
+ },
+ "no_issues": {
+ "title": "模块中没有工作项",
+ "description": "创建或添加您想作为此模块一部分完成的工作项",
+ "primary_button": {
+ "text": "创建新工作项"
+ },
+ "secondary_button": {
+ "text": "添加现有工作项"
+ }
+ },
+ "archived": {
+ "title": "尚无已归档的模块",
+ "description": "为了整理您的项目,归档已完成或已取消的模块。归档后可以在这里找到它们。"
+ },
+ "sidebar": {
+ "in_active": "此模块尚未激活。",
+ "invalid_date": "日期无效。请输入有效日期。"
+ }
+ },
+ "quick_actions": {
+ "archive_module": "归档模块",
+ "archive_module_description": "只有已完成或已取消的\n模块可以归档。",
+ "delete_module": "删除模块"
+ },
+ "toast": {
+ "copy": {
+ "success": "模块链接已复制到剪贴板"
+ },
+ "delete": {
+ "success": "模块删除成功",
+ "error": "删除模块失败"
+ }
+ }
+ },
+
+ "project_views": {
+ "empty_state": {
+ "general": {
+ "title": "为您的项目保存筛选视图。根据需要创建任意数量",
+ "description": "视图是您经常使用或想要轻松访问的一组已保存的筛选条件。项目中的所有同事都可以看到每个人的视图,并选择最适合他们需求的视图。",
+ "primary_button": {
+ "text": "创建您的第一个视图",
+ "comic": {
+ "title": "视图基于工作项属性运作。",
+ "description": "您可以在此处创建一个视图,根据需要使用任意数量的属性作为筛选条件。"
+ }
+ }
+ },
+ "filter": {
+ "title": "没有匹配的视图",
+ "description": "没有符合搜索条件的视图。\n创建一个新视图。"
+ }
+ }
+ },
+
+ "project_page": {
+ "empty_state": {
+ "general": {
+ "title": "写笔记、文档或完整的知识库。让 Plane 的 AI 助手 Galileo 帮助您开始",
+ "description": "页面是 Plane 中的思维记录空间。记录会议笔记,轻松格式化,嵌入工作项,使用组件库进行布局,并将它们全部保存在项目上下文中。要快速完成任何文档,可以通过快捷键或点击按钮调用 Plane 的 AI Galileo。",
+ "primary_button": {
+ "text": "创建您的第一个页面"
+ }
+ },
+ "private": {
+ "title": "尚无私人页面",
+ "description": "在这里保存您的私人想法。准备好分享时,团队就在一键之遥。",
+ "primary_button": {
+ "text": "创建您的第一个页面"
+ }
+ },
+ "public": {
+ "title": "尚无公共页面",
+ "description": "在这里查看与项目中所有人共享的页面。",
+ "primary_button": {
+ "text": "创建您的第一个页面"
+ }
+ },
+ "archived": {
+ "title": "尚无已归档的页面",
+ "description": "归档不在您关注范围内的页面。需要时可以在这里访问它们。"
+ }
+ }
+ },
+
+ "command_k": {
+ "empty_state": {
+ "search": {
+ "title": "未找到结果"
+ }
+ }
+ },
+
+ "issue_relation": {
+ "empty_state": {
+ "search": {
+ "title": "未找到匹配的工作项"
+ },
+ "no_issues": {
+ "title": "未找到工作项"
+ }
+ }
+ },
+
+ "issue_comment": {
+ "empty_state": {
+ "general": {
+ "title": "尚无评论",
+ "description": "评论可用作工作项的讨论和跟进空间"
+ }
+ }
+ },
+
+ "notification": {
+ "label": "收件箱",
+ "page_label": "{workspace} - 收件箱",
+ "options": {
+ "mark_all_as_read": "全部标记为已读",
+ "mark_read": "标记为已读",
+ "mark_unread": "标记为未读",
+ "refresh": "刷新",
+ "filters": "收件箱筛选",
+ "show_unread": "显示未读",
+ "show_snoozed": "显示已暂停",
+ "show_archived": "显示已归档",
+ "mark_archive": "归档",
+ "mark_unarchive": "取消归档",
+ "mark_snooze": "暂停",
+ "mark_unsnooze": "取消暂停"
+ },
+ "toasts": {
+ "read": "通知已标记为已读",
+ "unread": "通知已标记为未读",
+ "archived": "通知已标记为已归档",
+ "unarchived": "通知已标记为未归档",
+ "snoozed": "通知已暂停",
+ "unsnoozed": "通知已取消暂停"
+ },
+ "empty_state": {
+ "detail": {
+ "title": "选择以查看详情。"
+ },
+ "all": {
+ "title": "没有分配的工作项",
+ "description": "在这里可以看到分配给您的工作项的更新"
+ },
+ "mentions": {
+ "title": "没有分配的工作项",
+ "description": "在这里可以看到分配给您的工作项的更新"
+ }
+ },
+ "tabs": {
+ "all": "全部",
+ "mentions": "提及"
+ },
+ "filter": {
+ "assigned": "分配给我",
+ "created": "由我创建",
+ "subscribed": "由我订阅"
+ },
+ "snooze": {
+ "1_day": "1 天",
+ "3_days": "3 天",
+ "5_days": "5 天",
+ "1_week": "1 周",
+ "2_weeks": "2 周",
+ "custom": "自定义"
+ }
+ },
+
+ "active_cycle": {
+ "empty_state": {
+ "progress": {
+ "title": "向周期添加工作项以查看其进度"
+ },
+ "chart": {
+ "title": "向周期添加工作项以查看燃尽图。"
+ },
+ "priority_issue": {
+ "title": "一目了然地观察周期中处理的高优先级工作项。"
+ },
+ "assignee": {
+ "title": "为工作项添加负责人以查看按负责人划分的工作明细。"
+ },
+ "label": {
+ "title": "为工作项添加标签以查看按标签划分的工作明细。"
+ }
+ }
+ },
+
+ "disabled_project": {
+ "empty_state": {
+ "inbox": {
+ "title": "项目未启用收集功能。",
+ "description": "收集功能帮助您管理项目的传入请求,并将其添加为工作流中的工作项。从项目设置启用收集功能以管理请求。",
+ "primary_button": {
+ "text": "管理功能"
+ }
+ },
+ "cycle": {
+ "title": "此项目未启用周期功能。",
+ "description": "按时间框将工作分解,从项目截止日期倒推设置日期,并作为团队取得切实的进展。为您的项目启用周期功能以开始使用它们。",
+ "primary_button": {
+ "text": "管理功能"
+ }
+ },
+ "module": {
+ "title": "项目未启用模块功能。",
+ "description": "模块是项目的基本构建块。从项目设置启用模块以开始使用它们。",
+ "primary_button": {
+ "text": "管理功能"
+ }
+ },
+ "page": {
+ "title": "项目未启用页面功能。",
+ "description": "页面是项目的基本构建块。从项目设置启用页面以开始使用它们。",
+ "primary_button": {
+ "text": "管理功能"
+ }
+ },
+ "view": {
+ "title": "项目未启用视图功能。",
+ "description": "视图是项目的基本构建块。从项目设置启用视图以开始使用它们。",
+ "primary_button": {
+ "text": "管理功能"
+ }
+ }
+ }
+ },
+ "workspace_draft_issues": {
+ "draft_an_issue": "起草工作项",
+ "empty_state": {
+ "title": "半写的工作项,以及即将推出的评论将在这里显示。",
+ "description": "要试用此功能,请开始添加工作项并中途离开,或在下方创建您的第一个草稿。😉",
+ "primary_button": {
+ "text": "创建您的第一个草稿"
+ }
+ },
+ "delete_modal": {
+ "title": "删除草稿",
+ "description": "您确定要删除此草稿吗?此操作无法撤消。"
+ },
+ "toasts": {
+ "created": {
+ "success": "草稿已创建",
+ "error": "无法创建工作项。请重试。"
+ },
+ "deleted": {
+ "success": "草稿已删除"
+ }
+ }
+ },
+
+ "stickies": {
+ "title": "您的便签",
+ "placeholder": "点击此处输入",
+ "all": "所有便签",
+ "no-data": "记下一个想法,捕捉一个灵感,或记录一个突发奇想。添加便签开始使用。",
+ "add": "添加便签",
+ "search_placeholder": "按标题搜索",
+ "delete": "删除便签",
+ "delete_confirmation": "您确定要删除此便签吗?",
+ "empty_state": {
+ "simple": "记下一个想法,捕捉一个灵感,或记录一个突发奇想。添加便签开始使用。",
+ "general": {
+ "title": "便签是您随手记下的快速笔记和待办事项。",
+ "description": "通过创建随时随地都可以访问的便签,轻松捕捉您的想法和创意。",
+ "primary_button": {
+ "text": "添加便签"
+ }
+ },
+ "search": {
+ "title": "这与您的任何便签都不匹配。",
+ "description": "尝试使用不同的术语,或如果您确定\n搜索是正确的,请告诉我们。",
+ "primary_button": {
+ "text": "添加便签"
+ }
+ }
+ },
+ "toasts": {
+ "errors": {
+ "wrong_name": "便签名称不能超过100个字符。",
+ "already_exists": "已存在一个没有描述的便签"
+ },
+ "created": {
+ "title": "便签已创建",
+ "message": "便签已成功创建"
+ },
+ "not_created": {
+ "title": "便签未创建",
+ "message": "无法创建便签"
+ },
+ "updated": {
+ "title": "便签已更新",
+ "message": "便签已成功更新"
+ },
+ "not_updated": {
+ "title": "便签未更新",
+ "message": "无法更新便签"
+ },
+ "removed": {
+ "title": "便签已移除",
+ "message": "便签已成功移除"
+ },
+ "not_removed": {
+ "title": "便签未移除",
+ "message": "无法移除便签"
+ }
+ }
+ },
+
+ "role_details": {
+ "guest": {
+ "title": "访客",
+ "description": "组织的外部成员可以被邀请为访客。"
+ },
+ "member": {
+ "title": "成员",
+ "description": "可以在项目、周期和模块内读取、写入、编辑和删除实体"
+ },
+ "admin": {
+ "title": "管理员",
+ "description": "在工作区内所有权限均设置为允许。"
+ }
+ },
+
+ "user_roles": {
+ "product_or_project_manager": "产品/项目经理",
+ "development_or_engineering": "开发/工程",
+ "founder_or_executive": "创始人/高管",
+ "freelancer_or_consultant": "自由职业者/顾问",
+ "marketing_or_growth": "市场/增长",
+ "sales_or_business_development": "销售/业务发展",
+ "support_or_operations": "支持/运营",
+ "student_or_professor": "学生/教授",
+ "human_resources": "人力资源",
+ "other": "其他"
+ },
+
+ "importer": {
+ "github": {
+ "title": "GitHub",
+ "description": "从 GitHub 仓库导入工作项并同步。"
+ },
+ "jira": {
+ "title": "Jira",
+ "description": "从 Jira 项目和史诗导入工作项和史诗。"
+ }
+ },
+
+ "exporter": {
+ "csv": {
+ "title": "CSV",
+ "description": "将工作项导出为 CSV 文件。",
+ "short_description": "导出为 CSV"
+ },
+ "excel": {
+ "title": "Excel",
+ "description": "将工作项导出为 Excel 文件。",
+ "short_description": "导出为 Excel"
+ },
+ "xlsx": {
+ "title": "Excel",
+ "description": "将工作项导出为 Excel 文件。",
+ "short_description": "导出为 Excel"
+ },
+ "json": {
+ "title": "JSON",
+ "description": "将工作项导出为 JSON 文件。",
+ "short_description": "导出为 JSON"
+ }
+ },
+ "default_global_view": {
+ "all_issues": "所有工作项",
+ "assigned": "已分配",
+ "created": "已创建",
+ "subscribed": "已订阅"
+ },
+
+ "themes": {
+ "theme_options": {
+ "system_preference": {
+ "label": "系统偏好"
+ },
+ "light": {
+ "label": "浅色"
+ },
+ "dark": {
+ "label": "深色"
+ },
+ "light_contrast": {
+ "label": "浅色高对比度"
+ },
+ "dark_contrast": {
+ "label": "深色高对比度"
+ },
+ "custom": {
+ "label": "自定义主题"
+ }
+ }
+ },
+ "project_modules": {
+ "status": {
+ "backlog": "待办",
+ "planned": "已计划",
+ "in_progress": "进行中",
+ "paused": "已暂停",
+ "completed": "已完成",
+ "cancelled": "已取消"
+ },
+ "layout": {
+ "list": "列表布局",
+ "board": "画廊布局",
+ "timeline": "时间线布局"
+ },
+ "order_by": {
+ "name": "名称",
+ "progress": "进度",
+ "issues": "工作项数量",
+ "due_date": "截止日期",
+ "created_at": "创建日期",
+ "manual": "手动"
+ }
+ },
+
+ "cycle": {
+ "label": "{count, plural, one {周期} other {周期}}",
+ "no_cycle": "无周期"
+ },
+
+ "module": {
+ "label": "{count, plural, one {模块} other {模块}}",
+ "no_module": "无模块"
+ }
}
diff --git a/packages/i18n/src/store/index.ts b/packages/i18n/src/store/index.ts
index d5bd3e598d..78e1311adb 100644
--- a/packages/i18n/src/store/index.ts
+++ b/packages/i18n/src/store/index.ts
@@ -1,8 +1,11 @@
import IntlMessageFormat from "intl-messageformat";
import get from "lodash/get";
-import { makeAutoObservable } from "mobx";
+import merge from "lodash/merge";
+import { makeAutoObservable, runInAction } from "mobx";
// constants
import { FALLBACK_LANGUAGE, SUPPORTED_LANGUAGES, STORAGE_KEY } from "../constants";
+// core translations imports
+import coreEn from "../locales/en/core.json";
// types
import { TLanguage, ILanguageOption, ITranslations } from "../types";
@@ -12,42 +15,35 @@ import { TLanguage, ILanguageOption, ITranslations } from "../types";
* Uses IntlMessageFormat to format the translations
*/
export class TranslationStore {
+ // Core translations that are always loaded
+ private coreTranslations: ITranslations = {
+ en: coreEn,
+ };
// List of translations for each language
private translations: ITranslations = {};
// Cache for IntlMessageFormat instances
private messageCache: Map<string, IntlMessageFormat> = new Map();
// Current language
currentLocale: TLanguage = FALLBACK_LANGUAGE;
+ // Loading state
+ isLoading: boolean = true;
+ isInitialized: boolean = false;
+ // Set of loaded languages
+ private loadedLanguages: Set<TLanguage> = new Set();
/**
* Constructor for the TranslationStore class
*/
constructor() {
makeAutoObservable(this);
+ // Initialize with core translations immediately
+ this.translations = this.coreTranslations;
+ // Initialize language
this.initializeLanguage();
+ // Load all the translations
this.loadTranslations();
}
- /**
- * Loads translations from JSON files and initializes the message cache
- */
- private async loadTranslations() {
- try {
- // dynamic import of translations
- const translations = {
- en: (await import("../locales/en/translations.json")).default,
- fr: (await import("../locales/fr/translations.json")).default,
- es: (await import("../locales/es/translations.json")).default,
- ja: (await import("../locales/ja/translations.json")).default,
- "zh-CN": (await import("../locales/zh-CN/translations.json")).default,
- };
- this.translations = translations;
- this.messageCache.clear(); // Clear cache when translations change
- } catch (error) {
- console.error("Failed to load translations:", error);
- }
- }
-
/** Initializes the language based on the local storage or browser language */
private initializeLanguage() {
if (typeof window === "undefined") return;
@@ -62,6 +58,100 @@ export class TranslationStore {
this.setLanguage(browserLang);
}
+ /** Loads the translations for the current language */
+ private async loadTranslations(): Promise<void> {
+ try {
+ // Set initialized to true (Core translations are already loaded)
+ runInAction(() => {
+ this.isInitialized = true;
+ });
+ // Load current and fallback languages in parallel
+ await this.loadPrimaryLanguages();
+ // Load all remaining languages in parallel
+ this.loadRemainingLanguages();
+ } catch (error) {
+ console.error("Failed in translation initialization:", error);
+ runInAction(() => {
+ this.isLoading = false;
+ });
+ }
+ }
+
+ private async loadPrimaryLanguages(): Promise<void> {
+ try {
+ // Load current and fallback languages in parallel
+ const languagesToLoad = new Set<TLanguage>([this.currentLocale]);
+ // Add fallback language only if different from current
+ if (this.currentLocale !== FALLBACK_LANGUAGE) {
+ languagesToLoad.add(FALLBACK_LANGUAGE);
+ }
+ // Load all primary languages in parallel
+ const loadPromises = Array.from(languagesToLoad).map((lang) => this.loadLanguageTranslations(lang));
+ await Promise.all(loadPromises);
+ // Update loading state
+ runInAction(() => {
+ this.isLoading = false;
+ });
+ } catch (error) {
+ console.error("Failed to load primary languages:", error);
+ runInAction(() => {
+ this.isLoading = false;
+ });
+ }
+ }
+
+ private loadRemainingLanguages(): void {
+ const remainingLanguages = SUPPORTED_LANGUAGES.map((lang) => lang.value).filter(
+ (lang) =>
+ !this.loadedLanguages.has(lang as TLanguage) && lang !== this.currentLocale && lang !== FALLBACK_LANGUAGE
+ );
+ // Load all remaining languages in parallel
+ Promise.all(remainingLanguages.map((lang) => this.loadLanguageTranslations(lang as TLanguage))).catch((error) => {
+ console.error("Failed to load some remaining languages:", error);
+ });
+ }
+
+ private async loadLanguageTranslations(language: TLanguage): Promise<void> {
+ // Skip if already loaded
+ if (this.loadedLanguages.has(language)) return;
+
+ try {
+ const translations = await this.importLanguageFile(language);
+ runInAction(() => {
+ // Use lodash merge for deep merging
+ this.translations[language] = merge({}, this.coreTranslations[language] || {}, translations.default);
+ // Add to loaded languages
+ this.loadedLanguages.add(language);
+ // Clear cache
+ this.messageCache.clear();
+ });
+ } catch (error) {
+ console.error(`Failed to load translations for ${language}:`, error);
+ }
+ }
+
+ /**
+ * Imports the translations for the given language
+ * @param language - The language to import the translations for
+ * @returns {Promise<any>}
+ */
+ private importLanguageFile(language: TLanguage): Promise<any> {
+ switch (language) {
+ case "en":
+ return import("../locales/en/translations.json");
+ case "fr":
+ return import("../locales/fr/translations.json");
+ case "es":
+ return import("../locales/es/translations.json");
+ case "ja":
+ return import("../locales/ja/translations.json");
+ case "zh-CN":
+ return import("../locales/zh-CN/translations.json");
+ default:
+ throw new Error(`Unsupported language: ${language}`);
+ }
+ }
+
/** Checks if the language is valid based on the supported languages */
private isValidLanguage(lang: string | null): lang is TLanguage {
return lang !== null && this.availableLanguages.some((l) => l.value === lang);
@@ -173,20 +263,26 @@ export class TranslationStore {
* Sets the current language and updates the translations
* @param lng - The new language
*/
- setLanguage(lng: TLanguage): void {
+ async setLanguage(lng: TLanguage): Promise<void> {
try {
if (!this.isValidLanguage(lng)) {
throw new Error(`Invalid language: ${lng}`);
}
- if (typeof window !== "undefined") {
- localStorage.setItem(STORAGE_KEY, lng);
+ // Safeguard in case background loading failed
+ if (!this.loadedLanguages.has(lng)) {
+ await this.loadLanguageTranslations(lng);
}
- this.currentLocale = lng;
- this.messageCache.clear(); // Clear cache when language changes
+
if (typeof window !== "undefined") {
+ localStorage.setItem(STORAGE_KEY, lng);
document.documentElement.lang = lng;
}
+
+ runInAction(() => {
+ this.currentLocale = lng;
+ this.messageCache.clear(); // Clear cache when language changes
+ });
} catch (error) {
console.error("Failed to set language:", error);
}
diff --git a/packages/types/src/inbox.d.ts b/packages/types/src/inbox.d.ts
index 5ae6c160e8..30ad0120c8 100644
--- a/packages/types/src/inbox.d.ts
+++ b/packages/types/src/inbox.d.ts
@@ -2,23 +2,6 @@ import { TPaginationInfo } from "./common";
import { TIssuePriorities } from "./issues";
import { TIssue } from "./issues/base";
-enum EInboxIssueCurrentTab {
- OPEN = "open",
- CLOSED = "closed",
-}
-
-enum EInboxIssueStatus {
- PENDING = -2,
- DECLINED = -1,
- SNOOZED = 0,
- ACCEPTED = 1,
- DUPLICATE = 2,
-}
-
-export type TInboxIssueCurrentTab = EInboxIssueCurrentTab;
-
-export type TInboxIssueStatus = EInboxIssueStatus;
-
// filters
export type TInboxIssueFilterMemberKeys = "assignees" | "created_by";
@@ -38,10 +21,7 @@ export type TInboxIssueFilter = {
// sorting filters
export type TInboxIssueSortingKeys = "order_by" | "sort_by";
-export type TInboxIssueSortingOrderByKeys =
- | "issue__created_at"
- | "issue__updated_at"
- | "issue__sequence_id";
+export type TInboxIssueSortingOrderByKeys = "issue__created_at" | "issue__updated_at" | "issue__sequence_id";
export type TInboxIssueSortingSortByKeys = "asc" | "desc";
@@ -78,17 +58,6 @@ export type TInboxDuplicateIssueDetails = {
name: string;
};
-export type TInboxIssue = {
- id: string;
- status: TInboxIssueStatus;
- snoozed_till: Date | null;
- duplicate_to: string | undefined;
- source: string;
- issue: TIssue;
- created_by: string;
- duplicate_issue_detail: TInboxDuplicateIssueDetails | undefined;
-};
-
export type TInboxIssuePaginationInfo = TPaginationInfo & {
total_results: number;
};
diff --git a/packages/types/src/issues.d.ts b/packages/types/src/issues.d.ts
index f77408fd6c..a630d0ba20 100644
--- a/packages/types/src/issues.d.ts
+++ b/packages/types/src/issues.d.ts
@@ -15,7 +15,7 @@ import type {
TIssueGroupByOptions,
TIssueOrderByOptions,
TIssueGroupingFilters,
- TIssueExtraOptions
+ TIssueExtraOptions,
} from "@plane/types";
export interface IIssueCycle {
diff --git a/packages/types/src/project/projects.d.ts b/packages/types/src/project/projects.d.ts
index 035762ab71..b04b982846 100644
--- a/packages/types/src/project/projects.d.ts
+++ b/packages/types/src/project/projects.d.ts
@@ -1,3 +1,4 @@
+import { EUserProjectRoles } from "@plane/constants";
import type {
IProjectViewProps,
IUser,
@@ -16,7 +17,7 @@ export interface IPartialProject {
identifier: string;
sort_order: number | null;
logo_props: TLogoProps;
- member_role: TUserPermissions | null;
+ member_role?: TUserPermissions | EUserProjectRoles | null;
archived_at: string | null;
workspace: IWorkspace | string;
cycle_view: boolean;
@@ -118,7 +119,7 @@ export interface IProjectMembership {
}
export interface IProjectBulkAddFormData {
- members: { role: TUserPermissions; member_id: string }[];
+ members: { role: TUserPermissions | EUserProjectRoles; member_id: string }[];
}
export interface IGithubRepository {
diff --git a/packages/types/src/views.d.ts b/packages/types/src/views.d.ts
index 54e1a395c3..32b5889ca8 100644
--- a/packages/types/src/views.d.ts
+++ b/packages/types/src/views.d.ts
@@ -1,4 +1,4 @@
-import { EViewAccess } from "@/constants/views";
+import { EViewAccess } from "@plane/constants";
import { TLogoProps } from "./common";
import {
IIssueDisplayFilterOptions,
diff --git a/packages/types/src/workspace-views.d.ts b/packages/types/src/workspace-views.d.ts
index 5bc9007676..eb207128d0 100644
--- a/packages/types/src/workspace-views.d.ts
+++ b/packages/types/src/workspace-views.d.ts
@@ -1,4 +1,4 @@
-import { EViewAccess } from "@/constants/views";
+import { EViewAccess } from "@plane/constants";
import {
IWorkspaceViewProps,
IIssueDisplayFilterOptions,
diff --git a/packages/types/src/workspace.d.ts b/packages/types/src/workspace.d.ts
index 500eaa7b51..021ea173e3 100644
--- a/packages/types/src/workspace.d.ts
+++ b/packages/types/src/workspace.d.ts
@@ -5,6 +5,7 @@ import type {
IUserLite,
IWorkspaceViewProps,
} from "@plane/types";
+import { EUserWorkspaceRoles } from "@plane/constants"; // TODO: check if importing this over here causes circular dependency
import { TUserPermissions } from "./enums";
export interface IWorkspace {
@@ -69,7 +70,7 @@ export type Properties = {
export interface IWorkspaceMember {
id: string;
member: IUserLite;
- role: TUserPermissions;
+ role: TUserPermissions | EUserWorkspaceRoles;
created_at?: string;
avatar_url?: string;
email?: string;
@@ -87,7 +88,7 @@ export interface IWorkspaceMemberMe {
default_props: IWorkspaceViewProps;
id: string;
member: string;
- role: TUserPermissions;
+ role: TUserPermissions | EUserWorkspaceRoles;
updated_at: Date;
updated_by: string;
view_props: IWorkspaceViewProps;
diff --git a/space/app/layout.tsx b/space/app/layout.tsx
index e457ae5d1d..60a7287eb1 100644
--- a/space/app/layout.tsx
+++ b/space/app/layout.tsx
@@ -15,7 +15,7 @@ export const metadata: Metadata = {
url: "https://sites.plane.so/",
},
keywords:
- "software development, customer feedback, software, accelerate, code management, release management, project management, issue tracking, agile, scrum, kanban, collaboration",
+ "software development, customer feedback, software, accelerate, code management, release management, project management, work item tracking, agile, scrum, kanban, collaboration",
twitter: {
site: "@planepowers",
},
@@ -32,7 +32,9 @@ export default function RootLayout({ children }: { children: React.ReactNode })
<link rel="shortcut icon" href={`${SPACE_BASE_PATH}/favicon/favicon.ico`} />
</head>
<body>
- <AppProvider>{children}</AppProvider>
+ <AppProvider>
+ <>{children}</>
+ </AppProvider>
</body>
</html>
);
diff --git a/space/app/provider.tsx b/space/app/provider.tsx
index c3ab6673f5..e8566bc9d9 100644
--- a/space/app/provider.tsx
+++ b/space/app/provider.tsx
@@ -2,6 +2,7 @@
import { FC, ReactNode } from "react";
// components
+import { TranslationProvider } from "@plane/i18n";
import { InstanceProvider } from "@/lib/instance-provider";
import { StoreProvider } from "@/lib/store-provider";
import { ToastProvider } from "@/lib/toast-provider";
@@ -15,9 +16,11 @@ export const AppProvider: FC<IAppProvider> = (props) => {
return (
<StoreProvider>
- <ToastProvider>
- <InstanceProvider>{children}</InstanceProvider>
- </ToastProvider>
+ <TranslationProvider>
+ <ToastProvider>
+ <InstanceProvider>{children}</InstanceProvider>
+ </ToastProvider>
+ </TranslationProvider>
</StoreProvider>
);
};
diff --git a/space/core/components/account/auth-forms/auth-header.tsx b/space/core/components/account/auth-forms/auth-header.tsx
index 8921c70b81..95a539ddfc 100644
--- a/space/core/components/account/auth-forms/auth-header.tsx
+++ b/space/core/components/account/auth-forms/auth-header.tsx
@@ -25,7 +25,7 @@ const Titles: TAuthHeaderDetails = {
},
[EAuthModes.SIGN_UP]: {
header: "View, comment, and do more",
- subHeader: "Sign up or log in to work with Plane Issues and Pages.",
+ subHeader: "Sign up or log in to work with Plane work items and Pages.",
},
};
@@ -38,7 +38,7 @@ export const AuthHeader: FC<TAuthHeader> = (props) => {
}
return {
- header: "Comment or react to issues",
+ header: "Comment or react to work itemss",
subHeader: "Use plane to add your valuable inputs to features.",
};
};
diff --git a/space/core/components/instance/instance-failure-view.tsx b/space/core/components/instance/instance-failure-view.tsx
index 50f677c107..ed4c36f355 100644
--- a/space/core/components/instance/instance-failure-view.tsx
+++ b/space/core/components/instance/instance-failure-view.tsx
@@ -25,7 +25,7 @@ export const InstanceFailureView: FC = () => {
<h3 className="font-medium text-2xl text-white ">Unable to fetch instance details.</h3>
<p className="font-medium text-base text-center">
We were unable to fetch the details of the instance. <br />
- Fret not, it might just be a connectivity issue.
+ Fret not, it might just be a connectivity work items.
</p>
</div>
<div className="flex justify-center">
diff --git a/space/core/components/issues/filters/applied-filters/filters-list.tsx b/space/core/components/issues/filters/applied-filters/filters-list.tsx
index 4a4ed4eda2..65ac296022 100644
--- a/space/core/components/issues/filters/applied-filters/filters-list.tsx
+++ b/space/core/components/issues/filters/applied-filters/filters-list.tsx
@@ -3,6 +3,7 @@
import { observer } from "mobx-react";
import { X } from "lucide-react";
// types
+import { useTranslation } from "@plane/i18n";
import { TFilters } from "@/types/issue";
// components
import { AppliedPriorityFilters } from "./priority";
@@ -18,6 +19,7 @@ export const replaceUnderscoreIfSnakeCase = (str: string) => str.replace(/_/g, "
export const AppliedFiltersList: React.FC<Props> = observer((props) => {
const { appliedFilters = {}, handleRemoveAllFilters, handleRemoveFilter } = props;
+ const { t } = useTranslation();
return (
<div className="flex flex-wrap items-stretch gap-2">
@@ -72,7 +74,7 @@ export const AppliedFiltersList: React.FC<Props> = observer((props) => {
onClick={handleRemoveAllFilters}
className="flex items-center gap-2 rounded-md border border-custom-border-200 px-2 py-1 text-xs text-custom-text-300 hover:text-custom-text-200"
>
- Clear all
+ {t("common.clear_all")}
<X size={12} strokeWidth={2} />
</button>
</div>
diff --git a/space/core/components/issues/filters/priority.tsx b/space/core/components/issues/filters/priority.tsx
index 4f16f89ba8..d3b7dd67fb 100644
--- a/space/core/components/issues/filters/priority.tsx
+++ b/space/core/components/issues/filters/priority.tsx
@@ -2,8 +2,9 @@
import React, { useState } from "react";
import { observer } from "mobx-react";
-// ui
import { ISSUE_PRIORITY_FILTERS } from "@plane/constants";
+import { useTranslation } from "@plane/i18n";
+// ui
import { PriorityIcon } from "@plane/ui";
// components
import { FilterHeader, FilterOption } from "./helpers";
@@ -18,6 +19,9 @@ type Props = {
export const FilterPriority: React.FC<Props> = observer((props) => {
const { appliedFilters, handleUpdate, searchQuery } = props;
+ // hooks
+ const { t } = useTranslation();
+
const [previewEnabled, setPreviewEnabled] = useState(true);
const appliedFiltersCount = appliedFilters?.length ?? 0;
@@ -40,11 +44,11 @@ export const FilterPriority: React.FC<Props> = observer((props) => {
isChecked={appliedFilters?.includes(priority.key) ? true : false}
onClick={() => handleUpdate(priority.key)}
icon={<PriorityIcon priority={priority.key} className="h-3.5 w-3.5" />}
- title={priority.title}
+ title={t(priority.titleTranslationKey)}
/>
))
) : (
- <p className="text-xs italic text-custom-text-400">No matches found</p>
+ <p className="text-xs italic text-custom-text-400">{t("common.search.no_matches_found")}</p>
)}
</div>
)}
diff --git a/space/core/components/issues/issue-layouts/issue-layout-HOC.tsx b/space/core/components/issues/issue-layouts/issue-layout-HOC.tsx
index cbb8aa551d..193d7c5515 100644
--- a/space/core/components/issues/issue-layouts/issue-layout-HOC.tsx
+++ b/space/core/components/issues/issue-layouts/issue-layout-HOC.tsx
@@ -26,7 +26,7 @@ export const IssueLayoutHOC = observer((props: Props) => {
}
if (getGroupIssueCount(undefined, undefined, false) === 0) {
- return <div className="flex w-full h-full items-center justify-center">No Issues Found</div>;
+ return <div className="flex w-full h-full items-center justify-center">No work items Found</div>;
}
return <>{props.children}</>;
diff --git a/space/core/components/issues/issue-layouts/kanban/default.tsx b/space/core/components/issues/issue-layouts/kanban/default.tsx
index 50f7b0f713..6ad7b2e0f1 100644
--- a/space/core/components/issues/issue-layouts/kanban/default.tsx
+++ b/space/core/components/issues/issue-layouts/kanban/default.tsx
@@ -94,7 +94,7 @@ export const KanBan: React.FC<IKanBan> = observer((props) => {
<div className="sticky top-0 z-[2] w-full flex-shrink-0 bg-custom-background-90 py-1">
<HeaderGroupByCard
groupBy={groupBy}
- icon={subList.icon}
+ icon={subList.icon as any}
title={subList.name}
count={getGroupIssueCount(subList.id, undefined, false) ?? 0}
/>
diff --git a/space/core/components/issues/issue-layouts/kanban/swimlanes.tsx b/space/core/components/issues/issue-layouts/kanban/swimlanes.tsx
index 902dff670d..48dd4047c3 100644
--- a/space/core/components/issues/issue-layouts/kanban/swimlanes.tsx
+++ b/space/core/components/issues/issue-layouts/kanban/swimlanes.tsx
@@ -131,10 +131,14 @@ const SubGroupSwimlaneHeader: React.FC<ISubGroupSwimlaneHeader> = observer(
const subGroupByVisibilityToggle = visibilitySubGroupByGroupCount(groupCount, showEmptyGroup);
if (subGroupByVisibilityToggle === false) return <></>;
-
return (
<div key={`${subGroupBy}_${group.id}`} className="flex w-[350px] flex-shrink-0 flex-col">
- <HeaderGroupByCard groupBy={groupBy} icon={group.icon} title={group.name} count={groupCount} />
+ <HeaderGroupByCard
+ groupBy={groupBy}
+ icon={group.icon}
+ title={group.name}
+ count={groupCount}
+ />
</div>
);
})}
@@ -262,7 +266,7 @@ const SubGroup: React.FC<ISubGroup> = observer((props) => {
<div className="sticky top-[50px] z-[3] py-1 flex w-full items-center bg-custom-background-100 border-y-[0.5px] border-custom-border-200">
<div className="sticky left-0 flex-shrink-0">
<HeaderSubGroupByCard
- icon={group.icon}
+ icon={group.icon as any}
title={group.name || ""}
count={issueCount}
isExpanded={isExpanded}
diff --git a/space/core/components/issues/issue-layouts/list/list-group.tsx b/space/core/components/issues/issue-layouts/list/list-group.tsx
index 75d280d0d0..0a8c5ebb0d 100644
--- a/space/core/components/issues/issue-layouts/list/list-group.tsx
+++ b/space/core/components/issues/issue-layouts/list/list-group.tsx
@@ -2,6 +2,7 @@
import { Fragment, MutableRefObject, forwardRef, useRef, useState } from "react";
import { observer } from "mobx-react";
+import { useTranslation } from "@plane/i18n";
// plane types
import { IGroupByColumn, TIssueGroupByOptions, IIssueDisplayProperties, TPaginationData, TLoader } from "@plane/types";
// plane utils
@@ -62,6 +63,8 @@ export const ListGroup = observer((props: Props) => {
} = props;
const [isExpanded, setIsExpanded] = useState(true);
const groupRef = useRef<HTMLDivElement | null>(null);
+ // hooks
+ const { t } = useTranslation();
const [intersectionElement, setIntersectionElement] = useState<HTMLDivElement | null>(null);
@@ -85,7 +88,7 @@ export const ListGroup = observer((props: Props) => {
}
onClick={() => loadMoreIssues(group.id)}
>
- Load More &darr;
+ {t("common.load_more")} &darr;
</div>
);
diff --git a/space/core/components/issues/issue-layouts/properties/all-properties.tsx b/space/core/components/issues/issue-layouts/properties/all-properties.tsx
index 66e9ab2960..813a261ce2 100644
--- a/space/core/components/issues/issue-layouts/properties/all-properties.tsx
+++ b/space/core/components/issues/issue-layouts/properties/all-properties.tsx
@@ -137,7 +137,7 @@ export const IssueProperties: React.FC<IIssueProperties> = observer((props) => {
displayPropertyKey="sub_issue_count"
shouldRenderProperty={(properties) => !!properties.sub_issue_count && !!issue.sub_issues_count}
>
- <Tooltip tooltipHeading="Sub-issues" tooltipContent={`${issue.sub_issues_count}`}>
+ <Tooltip tooltipHeading="Sub-work items" tooltipContent={`${issue.sub_issues_count}`}>
<div
className={cn(
"flex h-5 flex-shrink-0 items-center justify-center gap-2 overflow-hidden rounded border-[0.5px] border-custom-border-300 px-2.5 py-1",
diff --git a/space/core/components/issues/issue-layouts/properties/priority.tsx b/space/core/components/issues/issue-layouts/properties/priority.tsx
index 7b4bbda771..e3bb6e178e 100644
--- a/space/core/components/issues/issue-layouts/properties/priority.tsx
+++ b/space/core/components/issues/issue-layouts/properties/priority.tsx
@@ -1,5 +1,6 @@
"use client";
+import { useTranslation } from "@plane/i18n";
// types
import { TIssuePriorities } from "@plane/types";
import { Tooltip } from "@plane/ui";
@@ -13,17 +14,19 @@ export const IssueBlockPriority = ({
priority: TIssuePriorities | null;
shouldShowName?: boolean;
}) => {
+ // hooks
+ const { t } = useTranslation();
const priority_detail = priority != null ? getIssuePriorityFilters(priority) : null;
if (priority_detail === null) return <></>;
return (
- <Tooltip tooltipHeading="Priority" tooltipContent={priority_detail?.title}>
+ <Tooltip tooltipHeading="Priority" tooltipContent={t(priority_detail?.titleTranslationKey || "")}>
<div className="flex items-center relative w-full h-full">
<div className={`grid h-5 w-5 place-items-center rounded border-[0.5px] gap-2 ${priority_detail?.className}`}>
<span className="material-symbols-rounded text-sm">{priority_detail?.icon}</span>
</div>
- {shouldShowName && <span className="pl-2 text-sm">{priority_detail?.title}</span>}
+ {shouldShowName && <span className="pl-2 text-sm">{t(priority_detail?.titleTranslationKey || "")}</span>}
</div>
</Tooltip>
);
diff --git a/space/core/components/issues/issue-layouts/utils.tsx b/space/core/components/issues/issue-layouts/utils.tsx
index 4bd85433ee..97021feb4f 100644
--- a/space/core/components/issues/issue-layouts/utils.tsx
+++ b/space/core/components/issues/issue-layouts/utils.tsx
@@ -50,7 +50,7 @@ export const getGroupByColumns = (
case "created_by":
return getCreatedByColumns(member) as any;
default:
- if (includeNone) return [{ id: `All Issues`, name: `All Issues`, payload: {}, icon: undefined }];
+ if (includeNone) return [{ id: `All Issues`, name: `All work items`, payload: {}, icon: undefined }];
}
};
diff --git a/space/core/components/issues/navbar/layout-selection.tsx b/space/core/components/issues/navbar/layout-selection.tsx
index 1b8344d024..36c8f8e243 100644
--- a/space/core/components/issues/navbar/layout-selection.tsx
+++ b/space/core/components/issues/navbar/layout-selection.tsx
@@ -5,6 +5,8 @@ import { observer } from "mobx-react";
import { useRouter, useSearchParams } from "next/navigation";
// ui
import { SITES_ISSUE_LAYOUTS } from "@plane/constants";
+// plane i18n
+import { useTranslation } from "@plane/i18n";
import { Tooltip } from "@plane/ui";
// helpers
import { queryParamGenerator } from "@/helpers/query-param-generator";
@@ -19,6 +21,8 @@ type Props = {
export const IssuesLayoutSelection: FC<Props> = observer((props) => {
const { anchor } = props;
+ // hooks
+ const { t } = useTranslation();
// router
const router = useRouter();
const searchParams = useSearchParams();
@@ -45,7 +49,7 @@ export const IssuesLayoutSelection: FC<Props> = observer((props) => {
if (!layoutOptions[layout.key]) return;
return (
- <Tooltip key={layout.key} tooltipContent={layout.title}>
+ <Tooltip key={layout.key} tooltipContent={t(layout.titleTranslationKey)}>
<button
type="button"
className={`group grid h-[22px] w-7 place-items-center overflow-hidden rounded transition-all hover:bg-custom-background-100 ${
diff --git a/space/core/components/issues/peek-overview/header.tsx b/space/core/components/issues/peek-overview/header.tsx
index 156137f608..eb49fbc4c1 100644
--- a/space/core/components/issues/peek-overview/header.tsx
+++ b/space/core/components/issues/peek-overview/header.tsx
@@ -50,7 +50,7 @@ export const PeekOverviewHeader: React.FC<Props> = observer((props) => {
setToast({
type: TOAST_TYPE.SUCCESS,
title: "Link copied!",
- message: "Issue link copied to clipboard.",
+ message: "Work item link copied to clipboard.",
});
});
};
diff --git a/space/core/components/issues/peek-overview/issue-properties.tsx b/space/core/components/issues/peek-overview/issue-properties.tsx
index 38dd7ef6f9..596993bc21 100644
--- a/space/core/components/issues/peek-overview/issue-properties.tsx
+++ b/space/core/components/issues/peek-overview/issue-properties.tsx
@@ -3,6 +3,7 @@
import { observer } from "mobx-react";
import { useParams } from "next/navigation";
import { CalendarCheck2, Signal } from "lucide-react";
+import { useTranslation } from "@plane/i18n";
// ui
import { DoubleCircleIcon, StateGroupIcon, TOAST_TYPE, setToast } from "@plane/ui";
import { getIssuePriorityFilters } from "@plane/utils";
@@ -24,6 +25,8 @@ type Props = {
};
export const PeekOverviewIssueProperties: React.FC<Props> = observer(({ issueDetails, mode }) => {
+ // hooks
+ const { t } = useTranslation();
const { getStateById } = useStates();
const state = getStateById(issueDetails?.state_id ?? undefined);
@@ -40,7 +43,7 @@ export const PeekOverviewIssueProperties: React.FC<Props> = observer(({ issueDet
setToast({
type: TOAST_TYPE.INFO,
title: "Link copied!",
- message: "Issue link copied to clipboard",
+ message: "Work item link copied to clipboard",
});
});
};
@@ -95,7 +98,7 @@ export const PeekOverviewIssueProperties: React.FC<Props> = observer(({ issueDet
<Icon iconName={priority?.icon} />
</span>
)}
- <span>{priority?.title ?? "None"}</span>
+ <span>{t(priority?.titleTranslationKey || "common.none")}</span>
</div>
</div>
</div>
diff --git a/space/package.json b/space/package.json
index ff174a1d33..207f95938d 100644
--- a/space/package.json
+++ b/space/package.json
@@ -20,6 +20,7 @@
"@mui/material": "^5.14.1",
"@plane/constants": "*",
"@plane/editor": "*",
+ "@plane/i18n": "*",
"@plane/types": "*",
"@plane/ui": "*",
"@plane/services": "*",
diff --git a/space/public/site.webmanifest.json b/space/public/site.webmanifest.json
index 4c32ec6e38..8885d137bb 100644
--- a/space/public/site.webmanifest.json
+++ b/space/public/site.webmanifest.json
@@ -1,7 +1,7 @@
{
"name": "Plane Space",
"short_name": "Plane Space",
- "description": "Plane helps you plan your issues, cycles, and product modules.",
+ "description": "Plane helps you plan your work items, cycles, and product modules.",
"start_url": ".",
"display": "standalone",
"background_color": "#f9fafb",
diff --git a/web/app/[workspaceSlug]/(projects)/analytics/header.tsx b/web/app/[workspaceSlug]/(projects)/analytics/header.tsx
index fe55f8cbdc..2c3247bd7f 100644
--- a/web/app/[workspaceSlug]/(projects)/analytics/header.tsx
+++ b/web/app/[workspaceSlug]/(projects)/analytics/header.tsx
@@ -41,7 +41,12 @@ export const WorkspaceAnalyticsHeader = observer(() => {
<Breadcrumbs>
<Breadcrumbs.BreadcrumbItem
type="text"
- link={<BreadcrumbLink label={t("analytics")} icon={<BarChart2 className="h-4 w-4 text-custom-text-300" />} />}
+ link={
+ <BreadcrumbLink
+ label={t("workspace_analytics.label")}
+ icon={<BarChart2 className="h-4 w-4 text-custom-text-300" />}
+ />
+ }
/>
</Breadcrumbs>
{analytics_tab === "custom" ? (
diff --git a/web/app/[workspaceSlug]/(projects)/analytics/page.tsx b/web/app/[workspaceSlug]/(projects)/analytics/page.tsx
index 5b5a365308..8875e1465f 100644
--- a/web/app/[workspaceSlug]/(projects)/analytics/page.tsx
+++ b/web/app/[workspaceSlug]/(projects)/analytics/page.tsx
@@ -5,27 +5,40 @@ import { observer } from "mobx-react";
import { useSearchParams } from "next/navigation";
import { Tab } from "@headlessui/react";
// plane package imports
-import { ANALYTICS_TABS } from "@plane/constants";
+import { ANALYTICS_TABS, EUserPermissionsLevel, EUserPermissions } from "@plane/constants";
+import { useTranslation } from "@plane/i18n";
import { Header, EHeaderVariant } from "@plane/ui";
// components
import { CustomAnalytics, ScopeAndDemand } from "@/components/analytics";
import { PageHead } from "@/components/core";
-import { EmptyState } from "@/components/empty-state";
-// constants
-import { EmptyStateType } from "@/constants/empty-state";
+import { ComicBoxButton, DetailedEmptyState } from "@/components/empty-state";
// hooks
-import { useCommandPalette, useEventTracker, useProject, useWorkspace } from "@/hooks/store";
+import { useCommandPalette, useEventTracker, useProject, useUserPermissions, useWorkspace } from "@/hooks/store";
+import { useResolvedAssetPath } from "@/hooks/use-resolved-asset-path";
const AnalyticsPage = observer(() => {
const searchParams = useSearchParams();
const analytics_tab = searchParams.get("analytics_tab");
+ // plane imports
+ const { t } = useTranslation();
// store hooks
const { toggleCreateProjectModal } = useCommandPalette();
const { setTrackElement } = useEventTracker();
const { workspaceProjectIds, loader } = useProject();
const { currentWorkspace } = useWorkspace();
+ const { allowPermissions } = useUserPermissions();
+ // helper hooks
+ const resolvedPath = useResolvedAssetPath({ basePath: "/empty-state/onboarding/analytics" });
// derived values
- const pageTitle = currentWorkspace?.name ? `${currentWorkspace?.name} - Analytics` : undefined;
+ const pageTitle = currentWorkspace?.name
+ ? t(`workspace_analytics.page_label`, { workspace: currentWorkspace?.name })
+ : undefined;
+
+ // permissions
+ const canPerformEmptyStateActions = allowPermissions(
+ [EUserPermissions.ADMIN, EUserPermissions.MEMBER],
+ EUserPermissionsLevel.WORKSPACE
+ );
// TODO: refactor loader implementation
return (
@@ -46,7 +59,7 @@ const AnalyticsPage = observer(() => {
selected ? "text-custom-primary-100 " : "hover:text-custom-text-200"
}`}
>
- {tab.title}
+ {t(tab.i18n_title)}
<div
className={`border absolute bottom-0 right-0 left-0 rounded-t-md ${selected ? "border-custom-primary-100" : "border-transparent group-hover:border-custom-border-200"}`}
/>
@@ -67,12 +80,22 @@ const AnalyticsPage = observer(() => {
</Tab.Group>
</div>
) : (
- <EmptyState
- type={EmptyStateType.WORKSPACE_ANALYTICS}
- primaryButtonOnClick={() => {
- setTrackElement("Analytics empty state");
- toggleCreateProjectModal(true);
- }}
+ <DetailedEmptyState
+ title={t("workspace_analytics.empty_state.general.title")}
+ description={t("workspace_analytics.empty_state.general.description")}
+ assetPath={resolvedPath}
+ customPrimaryButton={
+ <ComicBoxButton
+ label={t("workspace_analytics.empty_state.general.primary_button.text")}
+ title={t("workspace_analytics.empty_state.general.primary_button.comic.title")}
+ description={t("workspace_analytics.empty_state.general.primary_button.comic.description")}
+ onClick={() => {
+ setTrackElement("Analytics empty state");
+ toggleCreateProjectModal(true);
+ }}
+ disabled={!canPerformEmptyStateActions}
+ />
+ }
/>
)}
</>
diff --git a/web/app/[workspaceSlug]/(projects)/drafts/header.tsx b/web/app/[workspaceSlug]/(projects)/drafts/header.tsx
index 68597b509a..5e1cc66ef6 100644
--- a/web/app/[workspaceSlug]/(projects)/drafts/header.tsx
+++ b/web/app/[workspaceSlug]/(projects)/drafts/header.tsx
@@ -3,7 +3,8 @@
import { useState } from "react";
import { observer } from "mobx-react";
import { PenSquare } from "lucide-react";
-import { EIssuesStoreType } from "@plane/constants";
+import { EIssuesStoreType, EUserPermissions, EUserPermissionsLevel } from "@plane/constants";
+import { useTranslation } from "@plane/i18n";
// ui
import { Breadcrumbs, Button, Header } from "@plane/ui";
// components
@@ -12,8 +13,6 @@ import { CreateUpdateIssueModal } from "@/components/issues";
// hooks
import { useProject, useUserPermissions, useWorkspaceDraftIssues } from "@/hooks/store";
-// plane-web
-import { EUserPermissions, EUserPermissionsLevel } from "@/plane-web/constants/user-permissions";
export const WorkspaceDraftHeader = observer(() => {
// state
@@ -22,7 +21,9 @@ export const WorkspaceDraftHeader = observer(() => {
const { allowPermissions } = useUserPermissions();
const { paginationInfo } = useWorkspaceDraftIssues();
const { joinedProjectIds } = useProject();
- // check if user is authorized to create draft issue
+
+ const { t } = useTranslation();
+ // check if user is authorized to create draft work item
const isAuthorizedUser = allowPermissions(
[EUserPermissions.ADMIN, EUserPermissions.MEMBER],
EUserPermissionsLevel.WORKSPACE
@@ -42,7 +43,9 @@ export const WorkspaceDraftHeader = observer(() => {
<Breadcrumbs>
<Breadcrumbs.BreadcrumbItem
type="text"
- link={<BreadcrumbLink label={`Drafts`} icon={<PenSquare className="h-4 w-4 text-custom-text-300" />} />}
+ link={
+ <BreadcrumbLink label={t("drafts")} icon={<PenSquare className="h-4 w-4 text-custom-text-300" />} />
+ }
/>
</Breadcrumbs>
{paginationInfo?.total_count && paginationInfo?.total_count > 0 ? (
@@ -62,7 +65,7 @@ export const WorkspaceDraftHeader = observer(() => {
onClick={() => setIsDraftIssueModalOpen(true)}
disabled={!isAuthorizedUser}
>
- Draft<span className="hidden sm:inline-block"> an issue</span>
+ {t("workspace_draft_issues.draft_an_issue")}
</Button>
)}
</Header.RightItem>
diff --git a/web/app/[workspaceSlug]/(projects)/header.tsx b/web/app/[workspaceSlug]/(projects)/header.tsx
index a7a19afe6b..16c106dad4 100644
--- a/web/app/[workspaceSlug]/(projects)/header.tsx
+++ b/web/app/[workspaceSlug]/(projects)/header.tsx
@@ -7,11 +7,12 @@ import { Home } from "lucide-react";
import githubBlackImage from "/public/logos/github-black.png";
import githubWhiteImage from "/public/logos/github-white.png";
// ui
+import { GITHUB_REDIRECTED } from "@plane/constants";
+import { useTranslation } from "@plane/i18n";
import { Breadcrumbs, Header } from "@plane/ui";
// components
import { BreadcrumbLink } from "@/components/common";
// constants
-import { GITHUB_REDIRECTED } from "@/constants/event-tracker";
// hooks
import { useEventTracker } from "@/hooks/store";
@@ -19,6 +20,7 @@ export const WorkspaceDashboardHeader = () => {
// hooks
const { captureEvent } = useEventTracker();
const { resolvedTheme } = useTheme();
+ const { t } = useTranslation();
return (
<>
@@ -28,7 +30,9 @@ export const WorkspaceDashboardHeader = () => {
<Breadcrumbs>
<Breadcrumbs.BreadcrumbItem
type="text"
- link={<BreadcrumbLink label="Home" icon={<Home className="h-4 w-4 text-custom-text-300" />} />}
+ link={
+ <BreadcrumbLink label={t("home.title")} icon={<Home className="h-4 w-4 text-custom-text-300" />} />
+ }
/>
</Breadcrumbs>
</div>
@@ -51,7 +55,7 @@ export const WorkspaceDashboardHeader = () => {
width={16}
alt="GitHub Logo"
/>
- <span className="hidden text-xs font-medium sm:hidden md:block">Star us on GitHub</span>
+ <span className="hidden text-xs font-medium sm:hidden md:block">{t("home.star_us_on_github")}</span>
</a>
</Header.RightItem>
</Header>
diff --git a/web/app/[workspaceSlug]/(projects)/notifications/page.tsx b/web/app/[workspaceSlug]/(projects)/notifications/page.tsx
index 4ea0c8e425..8afe768d80 100644
--- a/web/app/[workspaceSlug]/(projects)/notifications/page.tsx
+++ b/web/app/[workspaceSlug]/(projects)/notifications/page.tsx
@@ -4,21 +4,24 @@ import { useCallback, useEffect } from "react";
import { observer } from "mobx-react";
import { useParams } from "next/navigation";
import useSWR from "swr";
+// plane imports
+import { ENotificationLoader, ENotificationQueryParamType } from "@plane/constants";
+import { useTranslation } from "@plane/i18n";
// components
import { LogoSpinner } from "@/components/common";
import { PageHead } from "@/components/core";
-import { EmptyState } from "@/components/empty-state";
+import { SimpleEmptyState } from "@/components/empty-state";
import { InboxContentRoot } from "@/components/inbox";
import { IssuePeekOverview } from "@/components/issues";
-// constants
-import { EmptyStateType } from "@/constants/empty-state";
-import { ENotificationLoader, ENotificationQueryParamType } from "@/constants/notification";
// hooks
import { useIssueDetail, useUserPermissions, useWorkspace, useWorkspaceNotifications } from "@/hooks/store";
+import { useResolvedAssetPath } from "@/hooks/use-resolved-asset-path";
import { useWorkspaceIssueProperties } from "@/hooks/use-workspace-issue-properties";
const WorkspaceDashboardPage = observer(() => {
const { workspaceSlug } = useParams();
+ // plane hooks
+ const { t } = useTranslation();
// hooks
const { currentWorkspace } = useWorkspace();
const {
@@ -31,11 +34,14 @@ const WorkspaceDashboardPage = observer(() => {
const { fetchUserProjectInfo } = useUserPermissions();
const { setPeekIssue } = useIssueDetail();
// derived values
- const pageTitle = currentWorkspace?.name ? `${currentWorkspace?.name} - Inbox` : undefined;
+ const pageTitle = currentWorkspace?.name
+ ? t("notification.page_label", { workspace: currentWorkspace?.name })
+ : undefined;
const { workspace_slug, project_id, issue_id, is_inbox_issue } =
notificationLiteByNotificationId(currentSelectedNotificationId);
+ const resolvedPath = useResolvedAssetPath({ basePath: "/empty-state/intake/issue-detail" });
- // fetching workspace issue properties
+ // fetching workspace work item properties
useWorkspaceIssueProperties(workspaceSlug);
// fetch workspace notifications
@@ -82,7 +88,7 @@ const WorkspaceDashboardPage = observer(() => {
<div className="w-full h-full overflow-hidden overflow-y-auto">
{!currentSelectedNotificationId ? (
<div className="w-full h-screen flex justify-center items-center">
- <EmptyState type={EmptyStateType.NOTIFICATION_DETAIL_EMPTY_STATE} layout="screen-simple" />
+ <SimpleEmptyState title={t("notification.empty_state.detail.title")} assetPath={resolvedPath} />
</div>
) : (
<>
diff --git a/web/app/[workspaceSlug]/(projects)/page.tsx b/web/app/[workspaceSlug]/(projects)/page.tsx
index 52f0faffef..7a808decd2 100644
--- a/web/app/[workspaceSlug]/(projects)/page.tsx
+++ b/web/app/[workspaceSlug]/(projects)/page.tsx
@@ -2,6 +2,7 @@
import { observer } from "mobx-react";
// components
+import { useTranslation } from "@plane/i18n";
import { PageHead, AppHeader, ContentWrapper } from "@/components/core";
import { WorkspaceHomeView } from "@/components/home";
// hooks
@@ -11,8 +12,9 @@ import { WorkspaceDashboardHeader } from "./header";
const WorkspaceDashboardPage = observer(() => {
const { currentWorkspace } = useWorkspace();
+ const { t } = useTranslation();
// derived values
- const pageTitle = currentWorkspace?.name ? `${currentWorkspace?.name} - Home` : undefined;
+ const pageTitle = currentWorkspace?.name ? `${currentWorkspace?.name} - ${t("home.title")}` : undefined;
return (
<>
diff --git a/web/app/[workspaceSlug]/(projects)/profile/[userId]/activity/page.tsx b/web/app/[workspaceSlug]/(projects)/profile/[userId]/activity/page.tsx
index bf1f88d15b..f3b7199044 100644
--- a/web/app/[workspaceSlug]/(projects)/profile/[userId]/activity/page.tsx
+++ b/web/app/[workspaceSlug]/(projects)/profile/[userId]/activity/page.tsx
@@ -3,6 +3,8 @@
import { useState } from "react";
import { observer } from "mobx-react";
// ui
+import { EUserPermissions, EUserPermissionsLevel } from "@plane/constants";
+import { useTranslation } from "@plane/i18n";
import { Button } from "@plane/ui";
// components
import { PageHead } from "@/components/core";
@@ -10,7 +12,6 @@ import { DownloadActivityButton, WorkspaceActivityListPage } from "@/components/
// hooks
import { useUserPermissions } from "@/hooks/store";
// plane-web constants
-import { EUserPermissions, EUserPermissionsLevel } from "@/plane-web/constants/user-permissions";
const PER_PAGE = 100;
@@ -21,6 +22,8 @@ const ProfileActivityPage = observer(() => {
const [resultsCount, setResultsCount] = useState(0);
// router
const { allowPermissions } = useUserPermissions();
+ //hooks
+ const { t } = useTranslation();
const updateTotalPages = (count: number) => setTotalPages(count);
@@ -50,7 +53,7 @@ const ProfileActivityPage = observer(() => {
<PageHead title="Profile - Activity" />
<div className="flex h-full w-full flex-col overflow-hidden py-5">
<div className="flex items-center justify-between gap-2 px-5 md:px-9">
- <h3 className="text-lg font-medium">Recent activity</h3>
+ <h3 className="text-lg font-medium">{t("profile.stats.recent_activity.title")}</h3>
{canDownloadActivity && <DownloadActivityButton />}
</div>
<div className="vertical-scrollbar scrollbar-md flex h-full flex-col overflow-y-auto px-5 md:px-9">
@@ -58,7 +61,7 @@ const ProfileActivityPage = observer(() => {
{pageCount < totalPages && resultsCount !== 0 && (
<div className="flex w-full items-center justify-center text-xs">
<Button variant="accent-primary" size="sm" onClick={handleLoadMore}>
- Load more
+ {t("common.load_more")}
</Button>
</div>
)}
diff --git a/web/app/[workspaceSlug]/(projects)/profile/[userId]/header.tsx b/web/app/[workspaceSlug]/(projects)/profile/[userId]/header.tsx
index 13a944c881..e97b4751f3 100644
--- a/web/app/[workspaceSlug]/(projects)/profile/[userId]/header.tsx
+++ b/web/app/[workspaceSlug]/(projects)/profile/[userId]/header.tsx
@@ -6,15 +6,15 @@ import { observer } from "mobx-react";
import Link from "next/link";
import { useParams } from "next/navigation";
import { ChevronDown, PanelRight } from "lucide-react";
+import { PROFILE_VIEWER_TAB, PROFILE_ADMINS_TAB, EUserPermissions, EUserPermissionsLevel } from "@plane/constants";
+import { useTranslation } from "@plane/i18n";
import { IUserProfileProjectSegregation } from "@plane/types";
import { Breadcrumbs, Header, CustomMenu, UserActivityIcon } from "@plane/ui";
import { BreadcrumbLink } from "@/components/common";
// components
import { ProfileIssuesFilter } from "@/components/profile";
-import { PROFILE_ADMINS_TAB, PROFILE_VIEWER_TAB } from "@/constants/profile";
import { cn } from "@/helpers/common.helper";
import { useAppTheme, useUser, useUserPermissions } from "@/hooks/store";
-import { EUserPermissions, EUserPermissionsLevel } from "@/plane-web/constants/user-permissions";
type TUserProfileHeader = {
userProjectsData: IUserProfileProjectSegregation | undefined;
@@ -30,6 +30,7 @@ export const UserProfileHeader: FC<TUserProfileHeader> = observer((props) => {
const { toggleProfileSidebar, profileSidebarCollapsed } = useAppTheme();
const { data: currentUser } = useUser();
const { workspaceUserInfo, allowPermissions } = useUserPermissions();
+ const { t } = useTranslation();
// derived values
const isAuthorized = allowPermissions(
[EUserPermissions.ADMIN, EUserPermissions.MEMBER],
@@ -44,7 +45,7 @@ export const UserProfileHeader: FC<TUserProfileHeader> = observer((props) => {
const isCurrentUser = currentUser?.id === userId;
- const breadcrumbLabel = `${isCurrentUser ? "Your" : userName} Work`;
+ const breadcrumbLabel = isCurrentUser ? t("profile.page_label") : `${userName} ${t("profile.work")}`;
return (
<Header>
@@ -86,7 +87,7 @@ export const UserProfileHeader: FC<TUserProfileHeader> = observer((props) => {
href={`/${workspaceSlug}/profile/${userId}/${tab.route}`}
className="w-full text-custom-text-300"
>
- {tab.label}
+ {t(tab.i18n_label)}
</Link>
</CustomMenu.MenuItem>
))}
diff --git a/web/app/[workspaceSlug]/(projects)/profile/[userId]/layout.tsx b/web/app/[workspaceSlug]/(projects)/profile/[userId]/layout.tsx
index d6743e8f2b..fb223f2dd4 100644
--- a/web/app/[workspaceSlug]/(projects)/profile/[userId]/layout.tsx
+++ b/web/app/[workspaceSlug]/(projects)/profile/[userId]/layout.tsx
@@ -4,16 +4,15 @@ import { observer } from "mobx-react";
import { useParams, usePathname } from "next/navigation";
import useSWR from "swr";
// components
+import { PROFILE_VIEWER_TAB, PROFILE_ADMINS_TAB, EUserPermissions, EUserPermissionsLevel } from "@plane/constants";
import { useTranslation } from "@plane/i18n";
import { AppHeader, ContentWrapper } from "@/components/core";
import { ProfileSidebar } from "@/components/profile";
// constants
import { USER_PROFILE_PROJECT_SEGREGATION } from "@/constants/fetch-keys";
-import { PROFILE_ADMINS_TAB, PROFILE_VIEWER_TAB } from "@/constants/profile";
// hooks
import { useUserPermissions } from "@/hooks/store";
import useSize from "@/hooks/use-window-size";
-import { EUserPermissions, EUserPermissionsLevel } from "@/plane-web/constants/user-permissions";
// local components
import { UserService } from "@/services/user.service";
import { UserProfileHeader } from "./header";
@@ -66,7 +65,7 @@ const UseProfileLayout: React.FC<Props> = observer((props) => {
<AppHeader
header={
<UserProfileHeader
- type={currentTab?.label}
+ type={currentTab?.i18n_label}
userProjectsData={userProjectsData}
showProfileIssuesFilter={isIssuesTab}
/>
diff --git a/web/app/[workspaceSlug]/(projects)/profile/[userId]/mobile-header.tsx b/web/app/[workspaceSlug]/(projects)/profile/[userId]/mobile-header.tsx
index 21d230347c..49fa5d2e5a 100644
--- a/web/app/[workspaceSlug]/(projects)/profile/[userId]/mobile-header.tsx
+++ b/web/app/[workspaceSlug]/(projects)/profile/[userId]/mobile-header.tsx
@@ -6,21 +6,30 @@ import { useParams } from "next/navigation";
// icons
import { ChevronDown } from "lucide-react";
// plane constants
-import { EIssueLayoutTypes, EIssueFilterType, EIssuesStoreType } from "@plane/constants";
+import {
+ EIssueLayoutTypes,
+ EIssueFilterType,
+ EIssuesStoreType,
+ ISSUE_LAYOUTS,
+ ISSUE_DISPLAY_FILTERS_BY_PAGE,
+} from "@plane/constants";
+// plane i18n
+import { useTranslation } from "@plane/i18n";
// types
import { IIssueDisplayFilterOptions, IIssueDisplayProperties, IIssueFilterOptions, TIssueLayouts } from "@plane/types";
// ui
import { CustomMenu } from "@plane/ui";
// components
-import { DisplayFiltersSelection, FilterSelection, FiltersDropdown } from "@/components/issues";
-// constants
-import { ISSUE_DISPLAY_FILTERS_BY_LAYOUT, ISSUE_LAYOUTS } from "@/constants/issue";
+import { DisplayFiltersSelection, FilterSelection, FiltersDropdown, IssueLayoutIcon } from "@/components/issues";
+
// helpers
import { isIssueFilterActive } from "@/helpers/filter.helper";
// hooks
import { useIssues, useLabel } from "@/hooks/store";
export const ProfileIssuesMobileHeader = observer(() => {
+ // plane i18n
+ const { t } = useTranslation();
// router
const { workspaceSlug, userId } = useParams();
// store hook
@@ -112,7 +121,7 @@ export const ProfileIssuesMobileHeader = observer(() => {
placement="bottom-start"
customButton={
<div className="flex flex-center text-sm text-custom-text-200">
- Layout
+ {t("common.layout")}
<ChevronDown className="ml-2 h-4 w-4 text-custom-text-200 my-auto" strokeWidth={2} />
</div>
}
@@ -129,19 +138,19 @@ export const ProfileIssuesMobileHeader = observer(() => {
}}
className="flex items-center gap-2"
>
- <layout.icon className="h-3 w-3" />
- <div className="text-custom-text-300">{layout.title}</div>
+ <IssueLayoutIcon layout={ISSUE_LAYOUTS[index].key} className="h-3 w-3" />
+ <div className="text-custom-text-300">{t(layout.i18n_title)}</div>
</CustomMenu.MenuItem>
);
})}
</CustomMenu>
<div className="flex flex-grow items-center justify-center border-l border-custom-border-200 text-sm text-custom-text-200">
<FiltersDropdown
- title="Filters"
+ title={t("common.filters")}
placement="bottom-end"
menuButton={
<div className="flex flex-center text-sm text-custom-text-200">
- Filters
+ {t("common.filters")}
<ChevronDown className="ml-2 h-4 w-4 text-custom-text-200" strokeWidth={2} />
</div>
}
@@ -149,7 +158,7 @@ export const ProfileIssuesMobileHeader = observer(() => {
>
<FilterSelection
layoutDisplayFiltersOptions={
- activeLayout ? ISSUE_DISPLAY_FILTERS_BY_LAYOUT.profile_issues[activeLayout] : undefined
+ activeLayout ? ISSUE_DISPLAY_FILTERS_BY_PAGE.profile_issues[activeLayout] : undefined
}
filters={issueFilters?.filters ?? {}}
handleFiltersUpdate={handleFiltersUpdate}
@@ -163,18 +172,18 @@ export const ProfileIssuesMobileHeader = observer(() => {
</div>
<div className="flex flex-grow items-center justify-center border-l border-custom-border-200 text-sm text-custom-text-200">
<FiltersDropdown
- title="Display"
+ title={t("common.display")}
placement="bottom-end"
menuButton={
<div className="flex flex-center text-sm text-custom-text-200">
- Display
+ {t("common.display")}
<ChevronDown className="ml-2 h-4 w-4 text-custom-text-200" strokeWidth={2} />
</div>
}
>
<DisplayFiltersSelection
layoutDisplayFiltersOptions={
- activeLayout ? ISSUE_DISPLAY_FILTERS_BY_LAYOUT.profile_issues[activeLayout] : undefined
+ activeLayout ? ISSUE_DISPLAY_FILTERS_BY_PAGE.profile_issues[activeLayout] : undefined
}
displayFilters={issueFilters?.displayFilters ?? {}}
handleDisplayFiltersUpdate={handleDisplayFilters}
diff --git a/web/app/[workspaceSlug]/(projects)/profile/[userId]/navbar.tsx b/web/app/[workspaceSlug]/(projects)/profile/[userId]/navbar.tsx
index e002f8f664..a91836518a 100644
--- a/web/app/[workspaceSlug]/(projects)/profile/[userId]/navbar.tsx
+++ b/web/app/[workspaceSlug]/(projects)/profile/[userId]/navbar.tsx
@@ -2,12 +2,12 @@ import React from "react";
import Link from "next/link";
import { useParams, usePathname } from "next/navigation";
+import { PROFILE_VIEWER_TAB, PROFILE_ADMINS_TAB } from "@plane/constants";
import { useTranslation } from "@plane/i18n";
// components
// constants
import { Header, EHeaderVariant } from "@plane/ui";
-import { PROFILE_ADMINS_TAB, PROFILE_VIEWER_TAB } from "@/constants/profile";
type Props = {
isAuthorized: boolean;
@@ -33,7 +33,7 @@ export const ProfileNavbar: React.FC<Props> = (props) => {
: "border-transparent"
}`}
>
- {t(tab.label)}
+ {t(tab.i18n_label)}
</span>
</Link>
))}
diff --git a/web/app/[workspaceSlug]/(projects)/profile/[userId]/page.tsx b/web/app/[workspaceSlug]/(projects)/profile/[userId]/page.tsx
index 480e30aed3..0db37129c2 100644
--- a/web/app/[workspaceSlug]/(projects)/profile/[userId]/page.tsx
+++ b/web/app/[workspaceSlug]/(projects)/profile/[userId]/page.tsx
@@ -3,6 +3,8 @@
import { useParams } from "next/navigation";
import useSWR from "swr";
// types
+import { GROUP_CHOICES } from "@plane/constants";
+import { useTranslation } from "@plane/i18n";
import { IUserStateDistribution, TStateGroups } from "@plane/types";
// components
import { ContentWrapper } from "@plane/ui";
@@ -16,7 +18,6 @@ import {
} from "@/components/profile";
// constants
import { USER_PROFILE_DATA } from "@/constants/fetch-keys";
-import { GROUP_CHOICES } from "@/constants/project";
// services
import { UserService } from "@/services/user.service";
@@ -26,6 +27,7 @@ const userService = new UserService();
export default function ProfileOverviewPage() {
const { workspaceSlug, userId } = useParams();
+ const { t } = useTranslation();
const { data: userProfile } = useSWR(
workspaceSlug && userId ? USER_PROFILE_DATA(workspaceSlug.toString(), userId.toString()) : null,
workspaceSlug && userId ? () => userService.getUserProfileData(workspaceSlug.toString(), userId.toString()) : null
@@ -40,7 +42,7 @@ export default function ProfileOverviewPage() {
return (
<>
- <PageHead title="Your work" />
+ <PageHead title={t("profile.page_label")} />
<ContentWrapper className="space-y-7">
<ProfileStats userProfile={userProfile} />
<ProfileWorkload stateDistribution={stateDistribution} />
diff --git a/web/app/[workspaceSlug]/(projects)/projects/(detail)/[projectId]/archives/header.tsx b/web/app/[workspaceSlug]/(projects)/projects/(detail)/[projectId]/archives/header.tsx
index 8ad2198e6b..7f2799cd63 100644
--- a/web/app/[workspaceSlug]/(projects)/projects/(detail)/[projectId]/archives/header.tsx
+++ b/web/app/[workspaceSlug]/(projects)/projects/(detail)/[projectId]/archives/header.tsx
@@ -27,7 +27,7 @@ const PROJECT_ARCHIVES_BREADCRUMB_LIST: {
};
} = {
issues: {
- label: "Issues",
+ label: "Work items",
href: "/issues",
icon: LayersIcon,
},
@@ -92,7 +92,7 @@ export const ProjectArchivesHeader: FC<TProps> = observer((props: TProps) => {
{activeTab === "issues" && issueCount && issueCount > 0 ? (
<Tooltip
isMobile={isMobile}
- tooltipContent={`There are ${issueCount} ${issueCount > 1 ? "issues" : "issue"} in project's archived`}
+ tooltipContent={`There are ${issueCount} ${issueCount > 1 ? "work items" : "work item"} in project's archived`}
position="bottom"
>
<span className="cursor-default flex items-center text-center justify-center px-2.5 py-0.5 flex-shrink-0 bg-custom-primary-100/20 text-custom-primary-100 text-xs font-semibold rounded-xl">
diff --git a/web/app/[workspaceSlug]/(projects)/projects/(detail)/[projectId]/archives/issues/(detail)/header.tsx b/web/app/[workspaceSlug]/(projects)/projects/(detail)/[projectId]/archives/issues/(detail)/header.tsx
index c68185676f..7b9e84a9e1 100644
--- a/web/app/[workspaceSlug]/(projects)/projects/(detail)/[projectId]/archives/issues/(detail)/header.tsx
+++ b/web/app/[workspaceSlug]/(projects)/projects/(detail)/[projectId]/archives/issues/(detail)/header.tsx
@@ -52,7 +52,7 @@ export const ProjectArchivedIssueDetailsHeader = observer(() => {
link={
<BreadcrumbLink
href={`/${workspaceSlug}/projects/${projectId}/archives/issues`}
- label="Issues"
+ label="Work items"
icon={<LayersIcon className="h-4 w-4 text-custom-text-300" />}
/>
}
diff --git a/web/app/[workspaceSlug]/(projects)/projects/(detail)/[projectId]/archives/issues/(list)/page.tsx b/web/app/[workspaceSlug]/(projects)/projects/(detail)/[projectId]/archives/issues/(list)/page.tsx
index b2298d540c..afa6c0d724 100644
--- a/web/app/[workspaceSlug]/(projects)/projects/(detail)/[projectId]/archives/issues/(list)/page.tsx
+++ b/web/app/[workspaceSlug]/(projects)/projects/(detail)/[projectId]/archives/issues/(list)/page.tsx
@@ -15,7 +15,7 @@ const ProjectArchivedIssuesPage = observer(() => {
const { getProjectById } = useProject();
// derived values
const project = projectId ? getProjectById(projectId.toString()) : undefined;
- const pageTitle = project?.name && `${project?.name} - Archived issues`;
+ const pageTitle = project?.name && `${project?.name} - Archived work items`;
return (
<>
diff --git a/web/app/[workspaceSlug]/(projects)/projects/(detail)/[projectId]/cycles/(detail)/header.tsx b/web/app/[workspaceSlug]/(projects)/projects/(detail)/[projectId]/cycles/(detail)/header.tsx
index e93965a3c9..508da58a21 100644
--- a/web/app/[workspaceSlug]/(projects)/projects/(detail)/[projectId]/cycles/(detail)/header.tsx
+++ b/web/app/[workspaceSlug]/(projects)/projects/(detail)/[projectId]/cycles/(detail)/header.tsx
@@ -7,7 +7,16 @@ import { useParams } from "next/navigation";
// icons
import { ArrowRight, PanelRight } from "lucide-react";
// plane constants
-import { EIssueLayoutTypes, EIssueFilterType, EIssuesStoreType } from "@plane/constants";
+import {
+ EIssueLayoutTypes,
+ EIssueFilterType,
+ EIssuesStoreType,
+ ISSUE_DISPLAY_FILTERS_BY_PAGE,
+ EUserPermissions,
+ EUserPermissionsLevel,
+} from "@plane/constants";
+// i18n
+import { useTranslation } from "@plane/i18n";
// types
import { IIssueDisplayFilterOptions, IIssueDisplayProperties, IIssueFilterOptions } from "@plane/types";
// ui
@@ -16,8 +25,6 @@ import { Breadcrumbs, Button, ContrastIcon, CustomMenu, Tooltip, Header } from "
import { ProjectAnalyticsModal } from "@/components/analytics";
import { BreadcrumbLink } from "@/components/common";
import { DisplayFiltersSelection, FiltersDropdown, FilterSelection, LayoutSelection } from "@/components/issues";
-// constants
-import { ISSUE_DISPLAY_FILTERS_BY_LAYOUT } from "@/constants/issue";
// helpers
import { cn } from "@/helpers/common.helper";
import { isIssueFilterActive } from "@/helpers/filter.helper";
@@ -39,7 +46,6 @@ import useLocalStorage from "@/hooks/use-local-storage";
import { usePlatformOS } from "@/hooks/use-platform-os";
// plane web
import { ProjectBreadcrumb } from "@/plane-web/components/breadcrumbs";
-import { EUserPermissions, EUserPermissionsLevel } from "@/plane-web/constants/user-permissions";
const CycleDropdownOption: React.FC<{ cycleId: string }> = ({ cycleId }) => {
// router
@@ -72,6 +78,8 @@ export const CycleIssuesHeader: React.FC = observer(() => {
projectId: string;
cycleId: string;
};
+ // i18n
+ const { t } = useTranslation();
// store hooks
const {
issuesFilter: { issueFilters, updateFilters },
@@ -184,7 +192,7 @@ export const CycleIssuesHeader: React.FC = observer(() => {
type="text"
link={
<BreadcrumbLink
- label="Cycles"
+ label={t("common.cycles")}
href={`/${workspaceSlug}/projects/${projectId}/cycles`}
icon={<ContrastIcon className="h-4 w-4 text-custom-text-300" />}
/>
@@ -203,7 +211,7 @@ export const CycleIssuesHeader: React.FC = observer(() => {
<Tooltip
isMobile={isMobile}
tooltipContent={`There are ${issuesCount} ${
- issuesCount > 1 ? "issues" : "issue"
+ issuesCount > 1 ? "work items" : "work item"
} in this cycle`}
position="bottom"
>
@@ -239,7 +247,7 @@ export const CycleIssuesHeader: React.FC = observer(() => {
selectedLayout={activeLayout}
/>
<FiltersDropdown
- title="Filters"
+ title={t("common.filters")}
placement="bottom-end"
isFiltersApplied={isIssueFilterActive(issueFilters)}
>
@@ -247,7 +255,7 @@ export const CycleIssuesHeader: React.FC = observer(() => {
filters={issueFilters?.filters ?? {}}
handleFiltersUpdate={handleFiltersUpdate}
layoutDisplayFiltersOptions={
- activeLayout ? ISSUE_DISPLAY_FILTERS_BY_LAYOUT.issues[activeLayout] : undefined
+ activeLayout ? ISSUE_DISPLAY_FILTERS_BY_PAGE.issues[activeLayout] : undefined
}
displayFilters={issueFilters?.displayFilters ?? {}}
handleDisplayFiltersUpdate={handleDisplayFilters}
@@ -258,10 +266,10 @@ export const CycleIssuesHeader: React.FC = observer(() => {
moduleViewDisabled={!currentProjectDetails?.module_view}
/>
</FiltersDropdown>
- <FiltersDropdown title="Display" placement="bottom-end">
+ <FiltersDropdown title={t("common.display")} placement="bottom-end">
<DisplayFiltersSelection
layoutDisplayFiltersOptions={
- activeLayout ? ISSUE_DISPLAY_FILTERS_BY_LAYOUT.issues[activeLayout] : undefined
+ activeLayout ? ISSUE_DISPLAY_FILTERS_BY_PAGE.issues[activeLayout] : undefined
}
displayFilters={issueFilters?.displayFilters ?? {}}
handleDisplayFiltersUpdate={handleDisplayFilters}
@@ -276,18 +284,18 @@ export const CycleIssuesHeader: React.FC = observer(() => {
{canUserCreateIssue && (
<>
<Button onClick={() => setAnalyticsModal(true)} variant="neutral-primary" size="sm">
- Analytics
+ {t("common.analytics")}
</Button>
{!isCompletedCycle && (
<Button
className="h-full self-start"
onClick={() => {
- setTrackElement("Cycle issues page");
+ setTrackElement("Cycle work items page");
toggleCreateIssueModal(true, EIssuesStoreType.CYCLE);
}}
size="sm"
>
- Add issue
+ {t("issue.add.label")}
</Button>
)}
</>
diff --git a/web/app/[workspaceSlug]/(projects)/projects/(detail)/[projectId]/cycles/(detail)/mobile-header.tsx b/web/app/[workspaceSlug]/(projects)/projects/(detail)/[projectId]/cycles/(detail)/mobile-header.tsx
index 1f85665fa8..31eb5b249f 100644
--- a/web/app/[workspaceSlug]/(projects)/projects/(detail)/[projectId]/cycles/(detail)/mobile-header.tsx
+++ b/web/app/[workspaceSlug]/(projects)/projects/(detail)/[projectId]/cycles/(detail)/mobile-header.tsx
@@ -5,32 +5,42 @@ import { useParams } from "next/navigation";
// icons
import { Calendar, ChevronDown, Kanban, List } from "lucide-react";
// plane constants
-import { EIssueLayoutTypes, EIssueFilterType, EIssuesStoreType } from "@plane/constants";
+import {
+ EIssueLayoutTypes,
+ EIssueFilterType,
+ EIssuesStoreType,
+ ISSUE_LAYOUTS,
+ ISSUE_DISPLAY_FILTERS_BY_PAGE,
+} from "@plane/constants";
+// i18n
+import { useTranslation } from "@plane/i18n";
// types
import { IIssueDisplayFilterOptions, IIssueDisplayProperties, IIssueFilterOptions } from "@plane/types";
// ui
import { CustomMenu } from "@plane/ui";
// components
import { ProjectAnalyticsModal } from "@/components/analytics";
-import { DisplayFiltersSelection, FilterSelection, FiltersDropdown } from "@/components/issues";
-// constants
-import { ISSUE_DISPLAY_FILTERS_BY_LAYOUT, ISSUE_LAYOUTS } from "@/constants/issue";
+import { DisplayFiltersSelection, FilterSelection, FiltersDropdown, IssueLayoutIcon } from "@/components/issues";
// helpers
import { isIssueFilterActive } from "@/helpers/filter.helper";
// hooks
import { useIssues, useCycle, useProjectState, useLabel, useMember, useProject } from "@/hooks/store";
export const CycleIssuesMobileHeader = () => {
+ // i18n
+ const { t } = useTranslation();
+
const [analyticsModal, setAnalyticsModal] = useState(false);
const { getCycleById } = useCycle();
const layouts = [
- { key: "list", title: "List", icon: List },
- { key: "kanban", title: "Board", icon: Kanban },
- { key: "calendar", title: "Calendar", icon: Calendar },
+ { key: "list", titleTranslationKey: "issue.layouts.list", icon: List },
+ { key: "kanban", titleTranslationKey: "issue.layouts.kanban", icon: Kanban },
+ { key: "calendar", titleTranslationKey: "issue.layouts.calendar", icon: Calendar },
];
const { workspaceSlug, projectId, cycleId } = useParams();
const cycleDetails = cycleId ? getCycleById(cycleId.toString()) : undefined;
+
// store hooks
const { currentProjectDetails } = useProject();
const {
@@ -123,7 +133,9 @@ export const CycleIssuesMobileHeader = () => {
maxHeight={"md"}
className="flex flex-grow justify-center text-custom-text-200 text-sm"
placement="bottom-start"
- customButton={<span className="flex flex-grow justify-center text-custom-text-200 text-sm">Layout</span>}
+ customButton={
+ <span className="flex flex-grow justify-center text-custom-text-200 text-sm">{t("common.layout")}</span>
+ }
customButtonClassName="flex flex-grow justify-center text-custom-text-200 text-sm"
closeOnSelect
>
@@ -135,18 +147,18 @@ export const CycleIssuesMobileHeader = () => {
}}
className="flex items-center gap-2"
>
- <layout.icon className="w-3 h-3" />
- <div className="text-custom-text-300">{layout.title}</div>
+ <IssueLayoutIcon layout={ISSUE_LAYOUTS[index].key} className="w-3 h-3" />
+ <div className="text-custom-text-300">{t(layout.titleTranslationKey)}</div>
</CustomMenu.MenuItem>
))}
</CustomMenu>
<div className="flex flex-grow justify-center border-l border-custom-border-200 items-center text-custom-text-200 text-sm">
<FiltersDropdown
- title="Filters"
+ title={t("common.filters")}
placement="bottom-end"
menuButton={
<span className="flex items-center text-custom-text-200 text-sm">
- Filters
+ {t("common.filters")}
<ChevronDown className="text-custom-text-200 h-4 w-4 ml-2" />
</span>
}
@@ -156,7 +168,7 @@ export const CycleIssuesMobileHeader = () => {
filters={issueFilters?.filters ?? {}}
handleFiltersUpdate={handleFiltersUpdate}
layoutDisplayFiltersOptions={
- activeLayout ? ISSUE_DISPLAY_FILTERS_BY_LAYOUT.issues[activeLayout] : undefined
+ activeLayout ? ISSUE_DISPLAY_FILTERS_BY_PAGE.issues[activeLayout] : undefined
}
displayFilters={issueFilters?.displayFilters ?? {}}
handleDisplayFiltersUpdate={handleDisplayFilters}
@@ -170,18 +182,18 @@ export const CycleIssuesMobileHeader = () => {
</div>
<div className="flex flex-grow justify-center border-l border-custom-border-200 items-center text-custom-text-200 text-sm">
<FiltersDropdown
- title="Display"
+ title={t("common.display")}
placement="bottom-end"
menuButton={
<span className="flex items-center text-custom-text-200 text-sm">
- Display
+ {t("common.display")}
<ChevronDown className="text-custom-text-200 h-4 w-4 ml-2" />
</span>
}
>
<DisplayFiltersSelection
layoutDisplayFiltersOptions={
- activeLayout ? ISSUE_DISPLAY_FILTERS_BY_LAYOUT.issues[activeLayout] : undefined
+ activeLayout ? ISSUE_DISPLAY_FILTERS_BY_PAGE.issues[activeLayout] : undefined
}
displayFilters={issueFilters?.displayFilters ?? {}}
handleDisplayFiltersUpdate={handleDisplayFilters}
@@ -198,7 +210,7 @@ export const CycleIssuesMobileHeader = () => {
onClick={() => setAnalyticsModal(true)}
className="flex flex-grow justify-center text-custom-text-200 text-sm border-l border-custom-border-200"
>
- Analytics
+ {t("common.analytics")}
</span>
</div>
</>
diff --git a/web/app/[workspaceSlug]/(projects)/projects/(detail)/[projectId]/cycles/(list)/header.tsx b/web/app/[workspaceSlug]/(projects)/projects/(detail)/[projectId]/cycles/(list)/header.tsx
index 7954023831..2339c2731c 100644
--- a/web/app/[workspaceSlug]/(projects)/projects/(detail)/[projectId]/cycles/(list)/header.tsx
+++ b/web/app/[workspaceSlug]/(projects)/projects/(detail)/[projectId]/cycles/(list)/header.tsx
@@ -3,6 +3,8 @@
import { FC } from "react";
import { observer } from "mobx-react";
// ui
+import { EUserPermissions, EUserPermissionsLevel } from "@plane/constants";
+import { useTranslation } from "@plane/i18n";
import { Breadcrumbs, Button, ContrastIcon, Header } from "@plane/ui";
// components
import { BreadcrumbLink } from "@/components/common";
@@ -13,7 +15,6 @@ import { useAppRouter } from "@/hooks/use-app-router";
// plane web
import { ProjectBreadcrumb } from "@/plane-web/components/breadcrumbs";
// constants
-import { EUserPermissions, EUserPermissionsLevel } from "@/plane-web/constants/user-permissions";
export const CyclesListHeader: FC = observer(() => {
// router
@@ -23,6 +24,7 @@ export const CyclesListHeader: FC = observer(() => {
const { setTrackElement } = useEventTracker();
const { allowPermissions } = useUserPermissions();
const { currentProjectDetails, loader } = useProject();
+ const { t } = useTranslation();
const canUserCreateCycle = allowPermissions(
[EUserPermissions.ADMIN, EUserPermissions.MEMBER],
@@ -36,7 +38,12 @@ export const CyclesListHeader: FC = observer(() => {
<ProjectBreadcrumb />
<Breadcrumbs.BreadcrumbItem
type="text"
- link={<BreadcrumbLink label="Cycles" icon={<ContrastIcon className="h-4 w-4 text-custom-text-300" />} />}
+ link={
+ <BreadcrumbLink
+ label={t("cycle.label", { count: 2 })}
+ icon={<ContrastIcon className="h-4 w-4 text-custom-text-300" />}
+ />
+ }
/>
</Breadcrumbs>
</Header.LeftItem>
@@ -51,7 +58,8 @@ export const CyclesListHeader: FC = observer(() => {
toggleCreateCycleModal(true);
}}
>
- <div className="hidden sm:block">Add</div> Cycle
+ <div className="sm:hidden block">{t("add")}</div>
+ <div className="hidden sm:block">{t("project_cycles.add_cycle")}</div>
</Button>
</Header.RightItem>
) : (
diff --git a/web/app/[workspaceSlug]/(projects)/projects/(detail)/[projectId]/cycles/(list)/page.tsx b/web/app/[workspaceSlug]/(projects)/projects/(detail)/[projectId]/cycles/(list)/page.tsx
index 5b1793d5d1..d6b4eea15b 100644
--- a/web/app/[workspaceSlug]/(projects)/projects/(detail)/[projectId]/cycles/(list)/page.tsx
+++ b/web/app/[workspaceSlug]/(projects)/projects/(detail)/[projectId]/cycles/(list)/page.tsx
@@ -3,20 +3,22 @@
import { useState } from "react";
import { observer } from "mobx-react";
import { useParams } from "next/navigation";
-// types
+// plane imports
+import { EUserPermissionsLevel, EUserProjectRoles } from "@plane/constants";
+import { useTranslation } from "@plane/i18n";
import { TCycleFilters } from "@plane/types";
// components
import { Header, EHeaderVariant } from "@plane/ui";
import { PageHead } from "@/components/core";
import { CyclesView, CycleCreateUpdateModal, CycleAppliedFiltersList } from "@/components/cycles";
-import { EmptyState } from "@/components/empty-state";
+import { ComicBoxButton, DetailedEmptyState } from "@/components/empty-state";
import { CycleModuleListLayout } from "@/components/ui";
-// constants
-import { EmptyStateType } from "@/constants/empty-state";
// helpers
import { calculateTotalFilters } from "@/helpers/filter.helper";
// hooks
-import { useEventTracker, useCycle, useProject, useCycleFilter } from "@/hooks/store";
+import { useEventTracker, useCycle, useProject, useCycleFilter, useUserPermissions } from "@/hooks/store";
+import { useAppRouter } from "@/hooks/use-app-router";
+import { useResolvedAssetPath } from "@/hooks/use-resolved-asset-path";
const ProjectCyclesPage = observer(() => {
// states
@@ -26,13 +28,23 @@ const ProjectCyclesPage = observer(() => {
const { currentProjectCycleIds, loader } = useCycle();
const { getProjectById, currentProjectDetails } = useProject();
// router
+ const router = useAppRouter();
const { workspaceSlug, projectId } = useParams();
+ // plane hooks
+ const { t } = useTranslation();
// cycle filters hook
const { clearAllFilters, currentProjectFilters, updateFilters } = useCycleFilter();
+ const { allowPermissions } = useUserPermissions();
// derived values
const totalCycles = currentProjectCycleIds?.length ?? 0;
const project = projectId ? getProjectById(projectId?.toString()) : undefined;
- const pageTitle = project?.name ? `${project?.name} - Cycles` : undefined;
+ const pageTitle = project?.name ? `${project?.name} - ${t("cycles.label", { count: 2 })}` : undefined;
+ const hasAdminLevelPermission = allowPermissions([EUserProjectRoles.ADMIN], EUserPermissionsLevel.PROJECT);
+ const hasMemberLevelPermission = allowPermissions(
+ [EUserProjectRoles.ADMIN, EUserProjectRoles.MEMBER],
+ EUserPermissionsLevel.PROJECT
+ );
+ const resolvedPath = useResolvedAssetPath({ basePath: "/empty-state/disabled-feature/cycles" });
const handleRemoveFilter = (key: keyof TCycleFilters, value: string | null) => {
if (!projectId) return;
@@ -50,9 +62,17 @@ const ProjectCyclesPage = observer(() => {
if (currentProjectDetails?.cycle_view === false)
return (
<div className="flex items-center justify-center h-full w-full">
- <EmptyState
- type={EmptyStateType.DISABLED_PROJECT_CYCLE}
- primaryButtonLink={`/${workspaceSlug}/projects/${projectId}/settings/features`}
+ <DetailedEmptyState
+ title={t("disabled_project.empty_state.cycle.title")}
+ description={t("disabled_project.empty_state.cycle.description")}
+ assetPath={resolvedPath}
+ primaryButton={{
+ text: t("disabled_project.empty_state.cycle.primary_button.text"),
+ onClick: () => {
+ router.push(`/${workspaceSlug}/projects/${projectId}/settings/features`);
+ },
+ disabled: !hasAdminLevelPermission,
+ }}
/>
</div>
);
@@ -71,12 +91,22 @@ const ProjectCyclesPage = observer(() => {
/>
{totalCycles === 0 ? (
<div className="h-full place-items-center">
- <EmptyState
- type={EmptyStateType.PROJECT_CYCLES}
- primaryButtonOnClick={() => {
- setTrackElement("Cycle empty state");
- setCreateModal(true);
- }}
+ <DetailedEmptyState
+ title={t("project_cycles.empty_state.general.title")}
+ description={t("project_cycles.empty_state.general.description")}
+ assetPath={resolvedPath}
+ customPrimaryButton={
+ <ComicBoxButton
+ label={t("project_cycles.empty_state.general.primary_button.text")}
+ title={t("project_cycles.empty_state.general.primary_button.comic.title")}
+ description={t("project_cycles.empty_state.general.primary_button.comic.description")}
+ onClick={() => {
+ setTrackElement("Cycle empty state");
+ setCreateModal(true);
+ }}
+ disabled={!hasMemberLevelPermission}
+ />
+ }
/>
</div>
) : (
diff --git a/web/app/[workspaceSlug]/(projects)/projects/(detail)/[projectId]/draft-issues/header.tsx b/web/app/[workspaceSlug]/(projects)/projects/(detail)/[projectId]/draft-issues/header.tsx
index c4cdb3bdcb..2200b31f12 100644
--- a/web/app/[workspaceSlug]/(projects)/projects/(detail)/[projectId]/draft-issues/header.tsx
+++ b/web/app/[workspaceSlug]/(projects)/projects/(detail)/[projectId]/draft-issues/header.tsx
@@ -4,7 +4,9 @@ import { FC, useCallback } from "react";
import { observer } from "mobx-react";
import { useParams } from "next/navigation";
// plane constants
-import { EIssueLayoutTypes, EIssueFilterType, EIssuesStoreType } from "@plane/constants";
+import { EIssueLayoutTypes, EIssueFilterType, EIssuesStoreType, ISSUE_DISPLAY_FILTERS_BY_PAGE } from "@plane/constants";
+// i18n
+import { useTranslation } from "@plane/i18n";
// types
import { IIssueDisplayFilterOptions, IIssueDisplayProperties, IIssueFilterOptions } from "@plane/types";
// ui
@@ -12,8 +14,6 @@ import { Breadcrumbs, LayersIcon, Tooltip } from "@plane/ui";
// components
import { BreadcrumbLink } from "@/components/common";
import { DisplayFiltersSelection, FiltersDropdown, FilterSelection, LayoutSelection } from "@/components/issues";
-// constants
-import { ISSUE_DISPLAY_FILTERS_BY_LAYOUT } from "@/constants/issue";
// helpers
import { isIssueFilterActive } from "@/helpers/filter.helper";
// hooks
@@ -24,6 +24,8 @@ import { ProjectBreadcrumb } from "@/plane-web/components/breadcrumbs";
// FIXME: Deprecated. Remove it
export const ProjectDraftIssueHeader: FC = observer(() => {
+ // i18n
+ const { t } = useTranslation();
// router
const { workspaceSlug, projectId } = useParams() as { workspaceSlug: string; projectId: string };
// store hooks
@@ -96,14 +98,17 @@ export const ProjectDraftIssueHeader: FC = observer(() => {
<Breadcrumbs.BreadcrumbItem
type="text"
link={
- <BreadcrumbLink label="Draft Issues" icon={<LayersIcon className="h-4 w-4 text-custom-text-300" />} />
+ <BreadcrumbLink
+ label="Draft work items"
+ icon={<LayersIcon className="h-4 w-4 text-custom-text-300" />}
+ />
}
/>
</Breadcrumbs>
{issueCount && issueCount > 0 ? (
<Tooltip
isMobile={isMobile}
- tooltipContent={`There are ${issueCount} ${issueCount > 1 ? "issues" : "issue"} in project's draft`}
+ tooltipContent={`There are ${issueCount} ${issueCount > 1 ? "work items" : "work item"} in project's draft`}
position="bottom"
>
<span className="cursor-default flex items-center text-center justify-center px-2.5 py-0.5 flex-shrink-0 bg-custom-primary-100/20 text-custom-primary-100 text-xs font-semibold rounded-xl">
@@ -119,14 +124,18 @@ export const ProjectDraftIssueHeader: FC = observer(() => {
onChange={(layout) => handleLayoutChange(layout)}
selectedLayout={activeLayout}
/>
- <FiltersDropdown title="Filters" placement="bottom-end" isFiltersApplied={isIssueFilterActive(issueFilters)}>
+ <FiltersDropdown
+ title={t("common.filters")}
+ placement="bottom-end"
+ isFiltersApplied={isIssueFilterActive(issueFilters)}
+ >
<FilterSelection
filters={issueFilters?.filters ?? {}}
handleFiltersUpdate={handleFiltersUpdate}
displayFilters={issueFilters?.displayFilters ?? {}}
handleDisplayFiltersUpdate={handleDisplayFilters}
layoutDisplayFiltersOptions={
- activeLayout ? ISSUE_DISPLAY_FILTERS_BY_LAYOUT.issues[activeLayout] : undefined
+ activeLayout ? ISSUE_DISPLAY_FILTERS_BY_PAGE.issues[activeLayout] : undefined
}
labels={projectLabels}
memberIds={projectMemberIds ?? undefined}
@@ -135,10 +144,10 @@ export const ProjectDraftIssueHeader: FC = observer(() => {
moduleViewDisabled={!currentProjectDetails?.module_view}
/>
</FiltersDropdown>
- <FiltersDropdown title="Display" placement="bottom-end">
+ <FiltersDropdown title={t("common.display")} placement="bottom-end">
<DisplayFiltersSelection
layoutDisplayFiltersOptions={
- activeLayout ? ISSUE_DISPLAY_FILTERS_BY_LAYOUT.issues[activeLayout] : undefined
+ activeLayout ? ISSUE_DISPLAY_FILTERS_BY_PAGE.issues[activeLayout] : undefined
}
displayFilters={issueFilters?.displayFilters ?? {}}
handleDisplayFiltersUpdate={handleDisplayFilters}
diff --git a/web/app/[workspaceSlug]/(projects)/projects/(detail)/[projectId]/draft-issues/page.tsx b/web/app/[workspaceSlug]/(projects)/projects/(detail)/[projectId]/draft-issues/page.tsx
index 924b830cff..d233cb17a5 100644
--- a/web/app/[workspaceSlug]/(projects)/projects/(detail)/[projectId]/draft-issues/page.tsx
+++ b/web/app/[workspaceSlug]/(projects)/projects/(detail)/[projectId]/draft-issues/page.tsx
@@ -17,7 +17,7 @@ const ProjectDraftIssuesPage = observer(() => {
const { getProjectById } = useProject();
// derived values
const project = projectId ? getProjectById(projectId.toString()) : undefined;
- const pageTitle = project?.name ? `${project?.name} - Draft Issues` : undefined;
+ const pageTitle = project?.name ? `${project?.name} - Draft work items` : undefined;
return (
<>
@@ -30,7 +30,7 @@ const ProjectDraftIssuesPage = observer(() => {
className="flex items-center gap-1.5 rounded-full border border-custom-border-200 px-3 py-1.5 text-xs"
>
<PenSquare className="h-4 w-4" />
- <span>Draft Issues</span>
+ <span>Draft work items</span>
<X className="h-3 w-3" />
</button>
</div>
@@ -40,4 +40,4 @@ const ProjectDraftIssuesPage = observer(() => {
);
});
-export default ProjectDraftIssuesPage;
\ No newline at end of file
+export default ProjectDraftIssuesPage;
diff --git a/web/app/[workspaceSlug]/(projects)/projects/(detail)/[projectId]/inbox/page.tsx b/web/app/[workspaceSlug]/(projects)/projects/(detail)/[projectId]/inbox/page.tsx
index 36aa37e302..5cb8509e0a 100644
--- a/web/app/[workspaceSlug]/(projects)/projects/(detail)/[projectId]/inbox/page.tsx
+++ b/web/app/[workspaceSlug]/(projects)/projects/(detail)/[projectId]/inbox/page.tsx
@@ -2,41 +2,62 @@
import { observer } from "mobx-react";
// components
import { useParams, useSearchParams } from "next/navigation";
+import { EUserPermissionsLevel } from "@plane/constants";
+import { EUserProjectRoles } from "@plane/constants/src/user";
+import { useTranslation } from "@plane/i18n";
import { PageHead } from "@/components/core";
-import { EmptyState } from "@/components/empty-state";
+import { DetailedEmptyState } from "@/components/empty-state";
import { InboxIssueRoot } from "@/components/inbox";
-// constants
-import { EmptyStateType } from "@/constants/empty-state";
// helpers
import { EInboxIssueCurrentTab } from "@/helpers/inbox.helper";
// hooks
-import { useProject } from "@/hooks/store";
+import { useProject, useUserPermissions } from "@/hooks/store";
+import { useAppRouter } from "@/hooks/use-app-router";
+import { useResolvedAssetPath } from "@/hooks/use-resolved-asset-path";
const ProjectInboxPage = observer(() => {
/// router
+ const router = useAppRouter();
const { workspaceSlug, projectId } = useParams();
-
const searchParams = useSearchParams();
-
const navigationTab = searchParams.get("currentTab");
const inboxIssueId = searchParams.get("inboxIssueId");
-
+ // plane hooks
+ const { t } = useTranslation();
// hooks
const { currentProjectDetails } = useProject();
+ const { allowPermissions } = useUserPermissions();
+ // derived values
+ const canPerformEmptyStateActions = allowPermissions([EUserProjectRoles.ADMIN], EUserPermissionsLevel.PROJECT);
+ const resolvedPath = useResolvedAssetPath({ basePath: "/empty-state/disabled-feature/intake" });
// No access to inbox
if (currentProjectDetails?.inbox_view === false)
return (
<div className="flex items-center justify-center h-full w-full">
- <EmptyState
- type={EmptyStateType.DISABLED_PROJECT_INBOX}
- primaryButtonLink={`/${workspaceSlug}/projects/${projectId}/settings/features`}
+ <DetailedEmptyState
+ title={t("disabled_project.empty_state.inbox.title")}
+ description={t("disabled_project.empty_state.inbox.description")}
+ assetPath={resolvedPath}
+ primaryButton={{
+ text: t("disabled_project.empty_state.inbox.primary_button.text"),
+ onClick: () => {
+ router.push(`/${workspaceSlug}/projects/${projectId}/settings/features`);
+ },
+ disabled: !canPerformEmptyStateActions,
+ }}
/>
</div>
);
// derived values
- const pageTitle = currentProjectDetails?.name ? `${currentProjectDetails?.name} - Intake` : "Plane - Intake";
+ const pageTitle = currentProjectDetails?.name
+ ? t("inbox_issue.page_label", {
+ workspace: currentProjectDetails?.name,
+ })
+ : t("inbox_issue.page_label", {
+ workspace: "Plane",
+ });
const currentNavigationTab = navigationTab
? navigationTab === "open"
diff --git a/web/app/[workspaceSlug]/(projects)/projects/(detail)/[projectId]/issues/(detail)/[issueId]/page.tsx b/web/app/[workspaceSlug]/(projects)/projects/(detail)/[projectId]/issues/(detail)/[issueId]/page.tsx
index 5b68ae688e..ffc50ccb47 100644
--- a/web/app/[workspaceSlug]/(projects)/projects/(detail)/[projectId]/issues/(detail)/[issueId]/page.tsx
+++ b/web/app/[workspaceSlug]/(projects)/projects/(detail)/[projectId]/issues/(detail)/[issueId]/page.tsx
@@ -5,6 +5,8 @@ import { observer } from "mobx-react";
import { useParams } from "next/navigation";
import { useTheme } from "next-themes";
import useSWR from "swr";
+// i18n
+import { useTranslation } from "@plane/i18n";
// ui
import { Loader } from "@plane/ui";
// components
@@ -19,6 +21,8 @@ import emptyIssueDark from "@/public/empty-state/search/issues-dark.webp";
import emptyIssueLight from "@/public/empty-state/search/issues-light.webp";
const IssueDetailsPage = observer(() => {
+ // i18n
+ const { t } = useTranslation();
// router
const router = useAppRouter();
const { workspaceSlug, projectId, issueId } = useParams();
@@ -31,7 +35,7 @@ const IssueDetailsPage = observer(() => {
} = useIssueDetail();
const { getProjectById } = useProject();
const { toggleIssueDetailSidebar, issueDetailSidebarCollapsed } = useAppTheme();
- // fetching issue details
+ // fetching work item details
const { isLoading, error } = useSWR(
workspaceSlug && projectId && issueId ? `ISSUE_DETAIL_${workspaceSlug}_${projectId}_${issueId}` : null,
workspaceSlug && projectId && issueId
@@ -64,10 +68,10 @@ const IssueDetailsPage = observer(() => {
{error ? (
<EmptyState
image={resolvedTheme === "dark" ? emptyIssueDark : emptyIssueLight}
- title="Issue does not exist"
- description="The issue you are looking for does not exist, has been archived, or has been deleted."
+ title={t("issue.empty_state.issue_detail.title")}
+ description={t("issue.empty_state.issue_detail.description")}
primaryButton={{
- text: "View other issues",
+ text: t("issue.empty_state.issue_detail.primary_button.text"),
onClick: () => router.push(`/${workspaceSlug}/projects/${projectId}/issues`),
}}
/>
diff --git a/web/app/[workspaceSlug]/(projects)/projects/(detail)/[projectId]/issues/(detail)/header.tsx b/web/app/[workspaceSlug]/(projects)/projects/(detail)/[projectId]/issues/(detail)/header.tsx
index 699c9865ff..c737e15184 100644
--- a/web/app/[workspaceSlug]/(projects)/projects/(detail)/[projectId]/issues/(detail)/header.tsx
+++ b/web/app/[workspaceSlug]/(projects)/projects/(detail)/[projectId]/issues/(detail)/header.tsx
@@ -2,6 +2,8 @@
import { observer } from "mobx-react";
import { useParams } from "next/navigation";
+// i18n
+import { useTranslation } from "@plane/i18n";
// ui
import { Breadcrumbs, LayersIcon, Header } from "@plane/ui";
// components
@@ -14,6 +16,7 @@ import { useAppRouter } from "@/hooks/use-app-router";
import { ProjectBreadcrumb } from "@/plane-web/components/breadcrumbs";
export const ProjectIssueDetailsHeader = observer(() => {
+ const { t } = useTranslation();
// router
const router = useAppRouter();
const { workspaceSlug, projectId, issueId } = useParams();
@@ -37,7 +40,7 @@ export const ProjectIssueDetailsHeader = observer(() => {
link={
<BreadcrumbLink
href={`/${workspaceSlug}/projects/${projectId}/issues`}
- label="Issues"
+ label={t("issue.label", { count: 2 })} // count is for pluralization
icon={<LayersIcon className="h-4 w-4 text-custom-text-300" />}
/>
}
diff --git a/web/app/[workspaceSlug]/(projects)/projects/(detail)/[projectId]/issues/(list)/mobile-header.tsx b/web/app/[workspaceSlug]/(projects)/projects/(detail)/[projectId]/issues/(list)/mobile-header.tsx
index 29f2637b76..6b86cd88d9 100644
--- a/web/app/[workspaceSlug]/(projects)/projects/(detail)/[projectId]/issues/(list)/mobile-header.tsx
+++ b/web/app/[workspaceSlug]/(projects)/projects/(detail)/[projectId]/issues/(list)/mobile-header.tsx
@@ -6,26 +6,39 @@ import { useParams } from "next/navigation";
// icons
import { Calendar, ChevronDown, Kanban, List } from "lucide-react";
// plane constants
-import { EIssueLayoutTypes, EIssueFilterType, EIssuesStoreType } from "@plane/constants";
+import {
+ EIssueLayoutTypes,
+ EIssueFilterType,
+ EIssuesStoreType,
+ ISSUE_LAYOUTS,
+ ISSUE_DISPLAY_FILTERS_BY_PAGE,
+} from "@plane/constants";
+// i18n
+import { useTranslation } from "@plane/i18n";
// types
import { IIssueDisplayFilterOptions, IIssueDisplayProperties, IIssueFilterOptions } from "@plane/types";
// ui
import { CustomMenu } from "@plane/ui";
// components
import { ProjectAnalyticsModal } from "@/components/analytics";
-import { DisplayFiltersSelection, FilterSelection, FiltersDropdown } from "@/components/issues/issue-layouts";
-// constants
-import { ISSUE_DISPLAY_FILTERS_BY_LAYOUT, ISSUE_LAYOUTS } from "@/constants/issue";
+import {
+ DisplayFiltersSelection,
+ FilterSelection,
+ FiltersDropdown,
+ IssueLayoutIcon,
+} from "@/components/issues/issue-layouts";
// helpers
import { isIssueFilterActive } from "@/helpers/filter.helper";
// hooks
import { useIssues, useLabel, useMember, useProject, useProjectState } from "@/hooks/store";
export const ProjectIssuesMobileHeader = observer(() => {
+ // i18n
+ const { t } = useTranslation();
const layouts = [
- { key: "list", title: "List", icon: List },
- { key: "kanban", title: "Board", icon: Kanban },
- { key: "calendar", title: "Calendar", icon: Calendar },
+ { key: "list", titleTranslationKey: "issue.layouts.list", icon: List },
+ { key: "kanban", titleTranslationKey: "issue.layouts.kanban", icon: Kanban },
+ { key: "calendar", titleTranslationKey: "issue.layouts.calendar", icon: Calendar },
];
const [analyticsModal, setAnalyticsModal] = useState(false);
const { workspaceSlug, projectId } = useParams() as {
@@ -104,7 +117,7 @@ export const ProjectIssuesMobileHeader = observer(() => {
placement="bottom-start"
customButton={
<div className="flex flex-start text-sm text-custom-text-200">
- Layout
+ {t("common.layout")}
<ChevronDown className="ml-2 h-4 w-4 text-custom-text-200 my-auto" strokeWidth={2} />
</div>
}
@@ -119,18 +132,18 @@ export const ProjectIssuesMobileHeader = observer(() => {
}}
className="flex items-center gap-2"
>
- <layout.icon className="h-3 w-3" />
- <div className="text-custom-text-300">{layout.title}</div>
+ <IssueLayoutIcon layout={ISSUE_LAYOUTS[index].key} className="h-3 w-3" />
+ <div className="text-custom-text-300">{t(layout.titleTranslationKey)}</div>
</CustomMenu.MenuItem>
))}
</CustomMenu>
<div className="flex flex-grow items-center justify-center border-l border-custom-border-200 text-sm text-custom-text-200">
<FiltersDropdown
- title="Filters"
+ title={t("common.filters")}
placement="bottom-end"
menuButton={
<span className="flex items-center text-sm text-custom-text-200">
- Filters
+ {t("common.filters")}
<ChevronDown className="ml-2 h-4 w-4 text-custom-text-200" />
</span>
}
@@ -142,7 +155,7 @@ export const ProjectIssuesMobileHeader = observer(() => {
displayFilters={issueFilters?.displayFilters ?? {}}
handleDisplayFiltersUpdate={handleDisplayFilters}
layoutDisplayFiltersOptions={
- activeLayout ? ISSUE_DISPLAY_FILTERS_BY_LAYOUT.issues[activeLayout] : undefined
+ activeLayout ? ISSUE_DISPLAY_FILTERS_BY_PAGE.issues[activeLayout] : undefined
}
labels={projectLabels}
memberIds={projectMemberIds ?? undefined}
@@ -154,18 +167,18 @@ export const ProjectIssuesMobileHeader = observer(() => {
</div>
<div className="flex flex-grow items-center justify-center border-l border-custom-border-200 text-sm text-custom-text-200">
<FiltersDropdown
- title="Display"
+ title={t("common.display")}
placement="bottom-end"
menuButton={
<span className="flex items-center text-sm text-custom-text-200">
- Display
+ {t("common.display")}
<ChevronDown className="ml-2 h-4 w-4 text-custom-text-200" />
</span>
}
>
<DisplayFiltersSelection
layoutDisplayFiltersOptions={
- activeLayout ? ISSUE_DISPLAY_FILTERS_BY_LAYOUT.issues[activeLayout] : undefined
+ activeLayout ? ISSUE_DISPLAY_FILTERS_BY_PAGE.issues[activeLayout] : undefined
}
displayFilters={issueFilters?.displayFilters ?? {}}
handleDisplayFiltersUpdate={handleDisplayFilters}
@@ -181,7 +194,7 @@ export const ProjectIssuesMobileHeader = observer(() => {
onClick={() => setAnalyticsModal(true)}
className="flex flex-grow justify-center border-l border-custom-border-200 text-sm text-custom-text-200"
>
- Analytics
+ {t("common.analytics")}
</button>
</div>
</>
diff --git a/web/app/[workspaceSlug]/(projects)/projects/(detail)/[projectId]/issues/(list)/page.tsx b/web/app/[workspaceSlug]/(projects)/projects/(detail)/[projectId]/issues/(list)/page.tsx
index 7ea73bb1c9..6b83f367b1 100644
--- a/web/app/[workspaceSlug]/(projects)/projects/(detail)/[projectId]/issues/(list)/page.tsx
+++ b/web/app/[workspaceSlug]/(projects)/projects/(detail)/[projectId]/issues/(list)/page.tsx
@@ -3,6 +3,8 @@
import { observer } from "mobx-react";
import Head from "next/head";
import { useParams } from "next/navigation";
+// i18n
+import { useTranslation } from "@plane/i18n";
// components
import { PageHead } from "@/components/core";
import { ProjectLayoutRoot } from "@/components/issues";
@@ -11,6 +13,8 @@ import { useProject } from "@/hooks/store";
const ProjectIssuesPage = observer(() => {
const { projectId } = useParams();
+ // i18n
+ const { t } = useTranslation();
// store
const { getProjectById } = useProject();
@@ -20,13 +24,15 @@ const ProjectIssuesPage = observer(() => {
// derived values
const project = getProjectById(projectId.toString());
- const pageTitle = project?.name ? `${project?.name} - Issues` : undefined;
+ const pageTitle = project?.name ? `${project?.name} - ${t("issue.label", { count: 2 })}` : undefined; // Count is for pluralization
return (
<>
<PageHead title={pageTitle} />
<Head>
- <title>{project?.name} - Issues</title>
+ <title>
+ {project?.name} - {t("issue.label", { count: 2 })}
+ </title>
</Head>
<div className="h-full w-full">
<ProjectLayoutRoot />
diff --git a/web/app/[workspaceSlug]/(projects)/projects/(detail)/[projectId]/modules/(detail)/header.tsx b/web/app/[workspaceSlug]/(projects)/projects/(detail)/[projectId]/modules/(detail)/header.tsx
index 0107d7bfa9..3c5eb7cc72 100644
--- a/web/app/[workspaceSlug]/(projects)/projects/(detail)/[projectId]/modules/(detail)/header.tsx
+++ b/web/app/[workspaceSlug]/(projects)/projects/(detail)/[projectId]/modules/(detail)/header.tsx
@@ -7,7 +7,14 @@ import { useParams } from "next/navigation";
// icons
import { ArrowRight, PanelRight } from "lucide-react";
// plane constants
-import { EIssueLayoutTypes, EIssuesStoreType, EIssueFilterType } from "@plane/constants";
+import {
+ EIssueLayoutTypes,
+ EIssuesStoreType,
+ EIssueFilterType,
+ ISSUE_DISPLAY_FILTERS_BY_PAGE,
+ EUserPermissions,
+ EUserPermissionsLevel,
+} from "@plane/constants";
// types
import { IIssueDisplayFilterOptions, IIssueDisplayProperties, IIssueFilterOptions } from "@plane/types";
// ui
@@ -16,8 +23,6 @@ import { Breadcrumbs, Button, CustomMenu, DiceIcon, Tooltip, Header } from "@pla
import { ProjectAnalyticsModal } from "@/components/analytics";
import { BreadcrumbLink } from "@/components/common";
import { DisplayFiltersSelection, FiltersDropdown, FilterSelection, LayoutSelection } from "@/components/issues";
-// constants
-import { ISSUE_DISPLAY_FILTERS_BY_LAYOUT } from "@/constants/issue";
// helpers
import { cn } from "@/helpers/common.helper";
import { isIssueFilterActive } from "@/helpers/filter.helper";
@@ -40,7 +45,6 @@ import useLocalStorage from "@/hooks/use-local-storage";
import { usePlatformOS } from "@/hooks/use-platform-os";
// plane web
import { ProjectBreadcrumb } from "@/plane-web/components/breadcrumbs";
-import { EUserPermissions, EUserPermissionsLevel } from "@/plane-web/constants/user-permissions";
const ModuleDropdownOption: React.FC<{ moduleId: string }> = ({ moduleId }) => {
// router
@@ -202,7 +206,7 @@ export const ModuleIssuesHeader: React.FC = observer(() => {
<Tooltip
isMobile={isMobile}
tooltipContent={`There are ${issuesCount} ${
- issuesCount > 1 ? "issues" : "issue"
+ issuesCount > 1 ? "work items" : "work item"
} in this module`}
position="bottom"
>
@@ -247,7 +251,7 @@ export const ModuleIssuesHeader: React.FC = observer(() => {
displayFilters={issueFilters?.displayFilters ?? {}}
handleDisplayFiltersUpdate={handleDisplayFilters}
layoutDisplayFiltersOptions={
- activeLayout ? ISSUE_DISPLAY_FILTERS_BY_LAYOUT.issues[activeLayout] : undefined
+ activeLayout ? ISSUE_DISPLAY_FILTERS_BY_PAGE.issues[activeLayout] : undefined
}
labels={projectLabels}
memberIds={projectMemberIds ?? undefined}
@@ -259,7 +263,7 @@ export const ModuleIssuesHeader: React.FC = observer(() => {
<FiltersDropdown title="Display" placement="bottom-end">
<DisplayFiltersSelection
layoutDisplayFiltersOptions={
- activeLayout ? ISSUE_DISPLAY_FILTERS_BY_LAYOUT.issues[activeLayout] : undefined
+ activeLayout ? ISSUE_DISPLAY_FILTERS_BY_PAGE.issues[activeLayout] : undefined
}
displayFilters={issueFilters?.displayFilters ?? {}}
handleDisplayFiltersUpdate={handleDisplayFilters}
@@ -285,12 +289,12 @@ export const ModuleIssuesHeader: React.FC = observer(() => {
<Button
className="hidden sm:flex"
onClick={() => {
- setTrackElement("Module issues page");
+ setTrackElement("Module work items page");
toggleCreateIssueModal(true, EIssuesStoreType.MODULE);
}}
size="sm"
>
- Add issue
+ Add work item
</Button>
</>
) : (
diff --git a/web/app/[workspaceSlug]/(projects)/projects/(detail)/[projectId]/modules/(detail)/mobile-header.tsx b/web/app/[workspaceSlug]/(projects)/projects/(detail)/[projectId]/modules/(detail)/mobile-header.tsx
index 63cf32ef6e..1f000bae2e 100644
--- a/web/app/[workspaceSlug]/(projects)/projects/(detail)/[projectId]/modules/(detail)/mobile-header.tsx
+++ b/web/app/[workspaceSlug]/(projects)/projects/(detail)/[projectId]/modules/(detail)/mobile-header.tsx
@@ -6,16 +6,27 @@ import { useParams } from "next/navigation";
// icons
import { Calendar, ChevronDown, Kanban, List } from "lucide-react";
// plane constants
-import { EIssueLayoutTypes, EIssueFilterType, EIssuesStoreType } from "@plane/constants";
+import {
+ EIssueLayoutTypes,
+ EIssueFilterType,
+ EIssuesStoreType,
+ ISSUE_LAYOUTS,
+ ISSUE_DISPLAY_FILTERS_BY_PAGE,
+} from "@plane/constants";
+// plane i18n
+import { useTranslation } from "@plane/i18n";
// types
import { IIssueDisplayFilterOptions, IIssueDisplayProperties, IIssueFilterOptions } from "@plane/types";
// ui
import { CustomMenu } from "@plane/ui";
// components
import { ProjectAnalyticsModal } from "@/components/analytics";
-import { DisplayFiltersSelection, FilterSelection, FiltersDropdown } from "@/components/issues/issue-layouts";
-// constants
-import { ISSUE_DISPLAY_FILTERS_BY_LAYOUT, ISSUE_LAYOUTS } from "@/constants/issue";
+import {
+ DisplayFiltersSelection,
+ FilterSelection,
+ FiltersDropdown,
+ IssueLayoutIcon,
+} from "@/components/issues/issue-layouts";
// helpers
import { isIssueFilterActive } from "@/helpers/filter.helper";
// hooks
@@ -25,10 +36,11 @@ export const ModuleIssuesMobileHeader = observer(() => {
const [analyticsModal, setAnalyticsModal] = useState(false);
const { currentProjectDetails } = useProject();
const { getModuleById } = useModule();
+ const { t } = useTranslation();
const layouts = [
- { key: "list", title: "List", icon: List },
- { key: "kanban", title: "Board", icon: Kanban },
- { key: "calendar", title: "Calendar", icon: Calendar },
+ { key: "list", i18n_title: "issue.layouts.list", icon: List },
+ { key: "kanban", i18n_title: "issue.layouts.kanban", icon: Kanban },
+ { key: "calendar", i18n_title: "issue.layouts.calendar", icon: Calendar },
];
const { workspaceSlug, projectId, moduleId } = useParams() as {
workspaceSlug: string;
@@ -116,8 +128,8 @@ export const ModuleIssuesMobileHeader = observer(() => {
}}
className="flex items-center gap-2"
>
- <layout.icon className="h-3 w-3" />
- <div className="text-custom-text-300">{layout.title}</div>
+ <IssueLayoutIcon layout={ISSUE_LAYOUTS[index].key} className="h-3 w-3" />
+ <div className="text-custom-text-300">{t(layout.i18n_title)}</div>
</CustomMenu.MenuItem>
))}
</CustomMenu>
@@ -139,7 +151,7 @@ export const ModuleIssuesMobileHeader = observer(() => {
displayFilters={issueFilters?.displayFilters ?? {}}
handleDisplayFiltersUpdate={handleDisplayFilters}
layoutDisplayFiltersOptions={
- activeLayout ? ISSUE_DISPLAY_FILTERS_BY_LAYOUT.issues[activeLayout] : undefined
+ activeLayout ? ISSUE_DISPLAY_FILTERS_BY_PAGE.issues[activeLayout] : undefined
}
labels={projectLabels}
memberIds={projectMemberIds ?? undefined}
@@ -162,7 +174,7 @@ export const ModuleIssuesMobileHeader = observer(() => {
>
<DisplayFiltersSelection
layoutDisplayFiltersOptions={
- activeLayout ? ISSUE_DISPLAY_FILTERS_BY_LAYOUT.issues[activeLayout] : undefined
+ activeLayout ? ISSUE_DISPLAY_FILTERS_BY_PAGE.issues[activeLayout] : undefined
}
displayFilters={issueFilters?.displayFilters ?? {}}
handleDisplayFiltersUpdate={handleDisplayFilters}
diff --git a/web/app/[workspaceSlug]/(projects)/projects/(detail)/[projectId]/modules/(list)/header.tsx b/web/app/[workspaceSlug]/(projects)/projects/(detail)/[projectId]/modules/(list)/header.tsx
index 268ea5253f..58194fbf30 100644
--- a/web/app/[workspaceSlug]/(projects)/projects/(detail)/[projectId]/modules/(list)/header.tsx
+++ b/web/app/[workspaceSlug]/(projects)/projects/(detail)/[projectId]/modules/(list)/header.tsx
@@ -1,6 +1,9 @@
"use client";
import { observer } from "mobx-react";
+// plane imports
+import { EUserPermissions, EUserPermissionsLevel } from "@plane/constants";
+import { useTranslation } from "@plane/i18n";
// ui
import { Breadcrumbs, Button, DiceIcon, Header } from "@plane/ui";
// components
@@ -12,7 +15,6 @@ import { useAppRouter } from "@/hooks/use-app-router";
// plane web
import { ProjectBreadcrumb } from "@/plane-web/components/breadcrumbs";
// constants
-import { EUserPermissions, EUserPermissionsLevel } from "@/plane-web/constants/user-permissions";
export const ModulesListHeader: React.FC = observer(() => {
// router
@@ -24,6 +26,8 @@ export const ModulesListHeader: React.FC = observer(() => {
const { loader } = useProject();
+ const { t } = useTranslation();
+
// auth
const canUserCreateModule = allowPermissions(
[EUserPermissions.ADMIN, EUserPermissions.MEMBER],
@@ -38,7 +42,9 @@ export const ModulesListHeader: React.FC = observer(() => {
<ProjectBreadcrumb />
<Breadcrumbs.BreadcrumbItem
type="text"
- link={<BreadcrumbLink label="Modules" icon={<DiceIcon className="h-4 w-4 text-custom-text-300" />} />}
+ link={
+ <BreadcrumbLink label={t("modules")} icon={<DiceIcon className="h-4 w-4 text-custom-text-300" />} />
+ }
/>
</Breadcrumbs>
</div>
@@ -54,7 +60,8 @@ export const ModulesListHeader: React.FC = observer(() => {
toggleCreateModuleModal(true);
}}
>
- <div className="hidden sm:block">Add</div> Module
+ <div className="sm:hidden block">{t("add")}</div>
+ <div className="hidden sm:block">{t("project_module.add_module")}</div>
</Button>
) : (
<></>
diff --git a/web/app/[workspaceSlug]/(projects)/projects/(detail)/[projectId]/modules/(list)/mobile-header.tsx b/web/app/[workspaceSlug]/(projects)/projects/(detail)/[projectId]/modules/(list)/mobile-header.tsx
index 12301c9d44..629dca36a1 100644
--- a/web/app/[workspaceSlug]/(projects)/projects/(detail)/[projectId]/modules/(list)/mobile-header.tsx
+++ b/web/app/[workspaceSlug]/(projects)/projects/(detail)/[projectId]/modules/(list)/mobile-header.tsx
@@ -2,13 +2,16 @@
import { observer } from "mobx-react";
import { ChevronDown } from "lucide-react";
+import { MODULE_VIEW_LAYOUTS } from "@plane/constants";
+import { useTranslation } from "@plane/i18n";
import { CustomMenu, Row } from "@plane/ui";
-import { MODULE_VIEW_LAYOUTS } from "@/constants/module";
+import { ModuleLayoutIcon } from "@/components/modules";
import { useModuleFilter, useProject } from "@/hooks/store";
export const ModulesListMobileHeader = observer(() => {
const { currentProjectDetails } = useProject();
const { updateDisplayFilters } = useModuleFilter();
+ const { t } = useTranslation();
return (
<div className="flex justify-start md:hidden">
@@ -34,8 +37,8 @@ export const ModulesListMobileHeader = observer(() => {
}}
className="flex items-center gap-2"
>
- <layout.icon className="w-3 h-3" />
- <div className="text-custom-text-300">{layout.title}</div>
+ <ModuleLayoutIcon layoutType={layout.key} />
+ <div className="text-custom-text-300">{t(layout.i18n_title)}</div>
</CustomMenu.MenuItem>
);
})}
diff --git a/web/app/[workspaceSlug]/(projects)/projects/(detail)/[projectId]/modules/(list)/page.tsx b/web/app/[workspaceSlug]/(projects)/projects/(detail)/[projectId]/modules/(list)/page.tsx
index 9417016e38..572cb3862f 100644
--- a/web/app/[workspaceSlug]/(projects)/projects/(detail)/[projectId]/modules/(list)/page.tsx
+++ b/web/app/[workspaceSlug]/(projects)/projects/(detail)/[projectId]/modules/(list)/page.tsx
@@ -4,27 +4,36 @@ import { useCallback } from "react";
import { observer } from "mobx-react";
import { useParams } from "next/navigation";
// types
+import { EUserPermissionsLevel, EUserProjectRoles } from "@plane/constants";
+import { useTranslation } from "@plane/i18n";
import { TModuleFilters } from "@plane/types";
// components
import { PageHead } from "@/components/core";
-import { EmptyState } from "@/components/empty-state";
+import { DetailedEmptyState } from "@/components/empty-state";
import { ModuleAppliedFiltersList, ModulesListView } from "@/components/modules";
-// constants
-import { EmptyStateType } from "@/constants/empty-state";
// helpers
import { calculateTotalFilters } from "@/helpers/filter.helper";
// hooks
-import { useModuleFilter, useProject } from "@/hooks/store";
+import { useModuleFilter, useProject, useUserPermissions } from "@/hooks/store";
+import { useAppRouter } from "@/hooks/use-app-router";
+import { useResolvedAssetPath } from "@/hooks/use-resolved-asset-path";
const ProjectModulesPage = observer(() => {
+ // router
+ const router = useAppRouter();
const { workspaceSlug, projectId } = useParams();
+ // plane hooks
+ const { t } = useTranslation();
// store
const { getProjectById, currentProjectDetails } = useProject();
const { currentProjectFilters, currentProjectDisplayFilters, clearAllFilters, updateFilters, updateDisplayFilters } =
useModuleFilter();
+ const { allowPermissions } = useUserPermissions();
// derived values
const project = projectId ? getProjectById(projectId.toString()) : undefined;
const pageTitle = project?.name ? `${project?.name} - Modules` : undefined;
+ const canPerformEmptyStateActions = allowPermissions([EUserProjectRoles.ADMIN], EUserPermissionsLevel.PROJECT);
+ const resolvedPath = useResolvedAssetPath({ basePath: "/empty-state/disabled-feature/modules" });
const handleRemoveFilter = useCallback(
(key: keyof TModuleFilters, value: string | null) => {
@@ -45,9 +54,17 @@ const ProjectModulesPage = observer(() => {
if (currentProjectDetails?.module_view === false)
return (
<div className="flex items-center justify-center h-full w-full">
- <EmptyState
- type={EmptyStateType.DISABLED_PROJECT_MODULE}
- primaryButtonLink={`/${workspaceSlug}/projects/${projectId}/settings/features`}
+ <DetailedEmptyState
+ title={t("disabled_project.empty_state.module.title")}
+ description={t("disabled_project.empty_state.module.description")}
+ assetPath={resolvedPath}
+ primaryButton={{
+ text: t("disabled_project.empty_state.module.primary_button.text"),
+ onClick: () => {
+ router.push(`/${workspaceSlug}/projects/${projectId}/settings/features`);
+ },
+ disabled: !canPerformEmptyStateActions,
+ }}
/>
</div>
);
diff --git a/web/app/[workspaceSlug]/(projects)/projects/(detail)/[projectId]/pages/(list)/header.tsx b/web/app/[workspaceSlug]/(projects)/projects/(detail)/[projectId]/pages/(list)/header.tsx
index 1588e69de8..0173148df1 100644
--- a/web/app/[workspaceSlug]/(projects)/projects/(detail)/[projectId]/pages/(list)/header.tsx
+++ b/web/app/[workspaceSlug]/(projects)/projects/(detail)/[projectId]/pages/(list)/header.tsx
@@ -4,14 +4,14 @@ import { useState } from "react";
import { observer } from "mobx-react";
import { useParams, useRouter, useSearchParams } from "next/navigation";
import { FileText } from "lucide-react";
+// constants
+import { EPageAccess } from "@plane/constants";
// plane types
import { TPage } from "@plane/types";
// plane ui
import { Breadcrumbs, Button, Header, setToast, TOAST_TYPE } from "@plane/ui";
// helpers
import { BreadcrumbLink } from "@/components/common";
-// constants
-import { EPageAccess } from "@/constants/page";
// hooks
import { useEventTracker, useProject, useProjectPages } from "@/hooks/store";
// plane web
diff --git a/web/app/[workspaceSlug]/(projects)/projects/(detail)/[projectId]/pages/(list)/page.tsx b/web/app/[workspaceSlug]/(projects)/projects/(detail)/[projectId]/pages/(list)/page.tsx
index 93f37ea83b..547584f51a 100644
--- a/web/app/[workspaceSlug]/(projects)/projects/(detail)/[projectId]/pages/(list)/page.tsx
+++ b/web/app/[workspaceSlug]/(projects)/projects/(detail)/[projectId]/pages/(list)/page.tsx
@@ -2,27 +2,35 @@
import { observer } from "mobx-react";
import { useParams, useSearchParams } from "next/navigation";
-// types
+// plane imports
+import { EUserPermissionsLevel, EUserProjectRoles } from "@plane/constants";
+import { useTranslation } from "@plane/i18n";
import { TPageNavigationTabs } from "@plane/types";
// components
import { PageHead } from "@/components/core";
-import { EmptyState } from "@/components/empty-state";
+import { DetailedEmptyState } from "@/components/empty-state";
import { PagesListRoot, PagesListView } from "@/components/pages";
-// constants
-import { EmptyStateType } from "@/constants/empty-state";
// hooks
-import { useProject } from "@/hooks/store";
+import { useProject, useUserPermissions } from "@/hooks/store";
+import { useAppRouter } from "@/hooks/use-app-router";
+import { useResolvedAssetPath } from "@/hooks/use-resolved-asset-path";
const ProjectPagesPage = observer(() => {
// router
+ const router = useAppRouter();
const searchParams = useSearchParams();
const type = searchParams.get("type");
const { workspaceSlug, projectId } = useParams();
+ // plane hooks
+ const { t } = useTranslation();
// store hooks
const { getProjectById, currentProjectDetails } = useProject();
+ const { allowPermissions } = useUserPermissions();
// derived values
const project = projectId ? getProjectById(projectId.toString()) : undefined;
const pageTitle = project?.name ? `${project?.name} - Pages` : undefined;
+ const canPerformEmptyStateActions = allowPermissions([EUserProjectRoles.ADMIN], EUserPermissionsLevel.PROJECT);
+ const resolvedPath = useResolvedAssetPath({ basePath: "/empty-state/disabled-feature/pages" });
const currentPageType = (): TPageNavigationTabs => {
const pageType = type?.toString();
@@ -37,9 +45,17 @@ const ProjectPagesPage = observer(() => {
if (currentProjectDetails?.page_view === false)
return (
<div className="flex items-center justify-center h-full w-full">
- <EmptyState
- type={EmptyStateType.DISABLED_PROJECT_PAGE}
- primaryButtonLink={`/${workspaceSlug}/projects/${projectId}/settings/features`}
+ <DetailedEmptyState
+ title={t("disabled_project.empty_state.page.title")}
+ description={t("disabled_project.empty_state.page.description")}
+ assetPath={resolvedPath}
+ primaryButton={{
+ text: t("disabled_project.empty_state.page.primary_button.text"),
+ onClick: () => {
+ router.push(`/${workspaceSlug}/projects/${projectId}/settings/features`);
+ },
+ disabled: !canPerformEmptyStateActions,
+ }}
/>
</div>
);
diff --git a/web/app/[workspaceSlug]/(projects)/projects/(detail)/[projectId]/settings/automations/page.tsx b/web/app/[workspaceSlug]/(projects)/projects/(detail)/[projectId]/settings/automations/page.tsx
index 141cc39fed..5fc536d91b 100644
--- a/web/app/[workspaceSlug]/(projects)/projects/(detail)/[projectId]/settings/automations/page.tsx
+++ b/web/app/[workspaceSlug]/(projects)/projects/(detail)/[projectId]/settings/automations/page.tsx
@@ -3,6 +3,8 @@
import React from "react";
import { observer } from "mobx-react";
import { useParams } from "next/navigation";
+import { EUserPermissions, EUserPermissionsLevel } from "@plane/constants";
+import { useTranslation } from "@plane/i18n";
import { IProject } from "@plane/types";
// ui
import { TOAST_TYPE, setToast } from "@plane/ui";
@@ -12,7 +14,6 @@ import { AutoArchiveAutomation, AutoCloseAutomation } from "@/components/automat
import { PageHead } from "@/components/core";
// hooks
import { useProject, useUserPermissions } from "@/hooks/store";
-import { EUserPermissions, EUserPermissionsLevel } from "@/plane-web/constants/user-permissions";
const AutomationSettingsPage = observer(() => {
// router
@@ -21,6 +22,8 @@ const AutomationSettingsPage = observer(() => {
const { workspaceUserInfo, allowPermissions } = useUserPermissions();
const { currentProjectDetails: projectDetails, updateProject } = useProject();
+ const { t } = useTranslation();
+
// derived values
const canPerformProjectAdminActions = allowPermissions([EUserPermissions.ADMIN], EUserPermissionsLevel.PROJECT);
@@ -48,7 +51,7 @@ const AutomationSettingsPage = observer(() => {
<PageHead title={pageTitle} />
<section className={`w-full overflow-y-auto ${canPerformProjectAdminActions ? "" : "opacity-60"}`}>
<div className="flex flex-col items-start border-b border-custom-border-100 pb-3.5">
- <h3 className="text-xl font-medium leading-normal">Automations</h3>
+ <h3 className="text-xl font-medium leading-normal">{t("project_settings.automations.label")}</h3>
</div>
<AutoArchiveAutomation handleChange={handleChange} />
<AutoCloseAutomation handleChange={handleChange} />
diff --git a/web/app/[workspaceSlug]/(projects)/projects/(detail)/[projectId]/settings/estimates/page.tsx b/web/app/[workspaceSlug]/(projects)/projects/(detail)/[projectId]/settings/estimates/page.tsx
index 14f7707672..0a19713e88 100644
--- a/web/app/[workspaceSlug]/(projects)/projects/(detail)/[projectId]/settings/estimates/page.tsx
+++ b/web/app/[workspaceSlug]/(projects)/projects/(detail)/[projectId]/settings/estimates/page.tsx
@@ -3,12 +3,12 @@
import { observer } from "mobx-react";
import { useParams } from "next/navigation";
// components
+import { EUserPermissions, EUserPermissionsLevel } from "@plane/constants";
import { NotAuthorizedView } from "@/components/auth-screens";
import { PageHead } from "@/components/core";
import { EstimateRoot } from "@/components/estimates";
// hooks
import { useProject, useUserPermissions } from "@/hooks/store";
-import { EUserPermissions, EUserPermissionsLevel } from "@/plane-web/constants/user-permissions";
const EstimatesSettingsPage = observer(() => {
const { workspaceSlug, projectId } = useParams();
diff --git a/web/app/[workspaceSlug]/(projects)/projects/(detail)/[projectId]/settings/features/page.tsx b/web/app/[workspaceSlug]/(projects)/projects/(detail)/[projectId]/settings/features/page.tsx
index 05bde8c9e1..23aa8ad45c 100644
--- a/web/app/[workspaceSlug]/(projects)/projects/(detail)/[projectId]/settings/features/page.tsx
+++ b/web/app/[workspaceSlug]/(projects)/projects/(detail)/[projectId]/settings/features/page.tsx
@@ -3,12 +3,12 @@
import { observer } from "mobx-react";
import { useParams } from "next/navigation";
// components
+import { EUserPermissions, EUserPermissionsLevel } from "@plane/constants";
import { NotAuthorizedView } from "@/components/auth-screens";
import { PageHead } from "@/components/core";
import { ProjectFeaturesList } from "@/components/project";
// hooks
import { useProject, useUserPermissions } from "@/hooks/store";
-import { EUserPermissions, EUserPermissionsLevel } from "@/plane-web/constants/user-permissions";
const FeaturesSettingsPage = observer(() => {
const { workspaceSlug, projectId } = useParams();
diff --git a/web/app/[workspaceSlug]/(projects)/projects/(detail)/[projectId]/settings/header.tsx b/web/app/[workspaceSlug]/(projects)/projects/(detail)/[projectId]/settings/header.tsx
index ecc7146ba9..6fa36db34e 100644
--- a/web/app/[workspaceSlug]/(projects)/projects/(detail)/[projectId]/settings/header.tsx
+++ b/web/app/[workspaceSlug]/(projects)/projects/(detail)/[projectId]/settings/header.tsx
@@ -5,6 +5,8 @@ import { observer } from "mobx-react";
import { useParams } from "next/navigation";
// ui
import { Settings } from "lucide-react";
+import { EUserPermissionsLevel } from "@plane/constants";
+import { useTranslation } from "@plane/i18n";
import { Breadcrumbs, CustomMenu, Header } from "@plane/ui";
// components
import { BreadcrumbLink } from "@/components/common";
@@ -14,7 +16,6 @@ import { useAppRouter } from "@/hooks/use-app-router";
// plane web
import { ProjectBreadcrumb } from "@/plane-web/components/breadcrumbs";
import { PROJECT_SETTINGS_LINKS } from "@/plane-web/constants/project";
-import { EUserPermissionsLevel } from "@/plane-web/constants/user-permissions";
export const ProjectSettingHeader: FC = observer(() => {
// router
@@ -24,6 +25,8 @@ export const ProjectSettingHeader: FC = observer(() => {
const { allowPermissions } = useUserPermissions();
const { loader } = useProject();
+ const { t } = useTranslation();
+
return (
<Header>
<Header.LeftItem>
@@ -65,7 +68,7 @@ export const ProjectSettingHeader: FC = observer(() => {
key={item.key}
onClick={() => router.push(`/${workspaceSlug}/projects/${projectId}${item.href}`)}
>
- {item.label}
+ {t(item.i18n_label)}
</CustomMenu.MenuItem>
)
)}
diff --git a/web/app/[workspaceSlug]/(projects)/projects/(detail)/[projectId]/settings/labels/page.tsx b/web/app/[workspaceSlug]/(projects)/projects/(detail)/[projectId]/settings/labels/page.tsx
index 2705ff4901..17a466a801 100644
--- a/web/app/[workspaceSlug]/(projects)/projects/(detail)/[projectId]/settings/labels/page.tsx
+++ b/web/app/[workspaceSlug]/(projects)/projects/(detail)/[projectId]/settings/labels/page.tsx
@@ -5,12 +5,12 @@ import { combine } from "@atlaskit/pragmatic-drag-and-drop/combine";
import { autoScrollForElements } from "@atlaskit/pragmatic-drag-and-drop-auto-scroll/element";
import { observer } from "mobx-react";
// components
+import { EUserPermissions, EUserPermissionsLevel } from "@plane/constants";
import { NotAuthorizedView } from "@/components/auth-screens";
import { PageHead } from "@/components/core";
import { ProjectSettingsLabelList } from "@/components/labels";
// hooks
import { useProject, useUserPermissions } from "@/hooks/store";
-import { EUserPermissions, EUserPermissionsLevel } from "@/plane-web/constants/user-permissions";
const LabelsSettingsPage = observer(() => {
// store hooks
diff --git a/web/app/[workspaceSlug]/(projects)/projects/(detail)/[projectId]/settings/members/page.tsx b/web/app/[workspaceSlug]/(projects)/projects/(detail)/[projectId]/settings/members/page.tsx
index 0d05187b18..565e187545 100644
--- a/web/app/[workspaceSlug]/(projects)/projects/(detail)/[projectId]/settings/members/page.tsx
+++ b/web/app/[workspaceSlug]/(projects)/projects/(detail)/[projectId]/settings/members/page.tsx
@@ -2,12 +2,12 @@
import { observer } from "mobx-react";
// components
+import { EUserPermissions, EUserPermissionsLevel } from "@plane/constants";
import { NotAuthorizedView } from "@/components/auth-screens";
import { PageHead } from "@/components/core";
import { ProjectMemberList, ProjectSettingsMemberDefaults } from "@/components/project";
// hooks
import { useProject, useUserPermissions } from "@/hooks/store";
-import { EUserPermissions, EUserPermissionsLevel } from "@/plane-web/constants/user-permissions";
const MembersSettingsPage = observer(() => {
// store
diff --git a/web/app/[workspaceSlug]/(projects)/projects/(detail)/[projectId]/settings/page.tsx b/web/app/[workspaceSlug]/(projects)/projects/(detail)/[projectId]/settings/page.tsx
index e21532c643..96ff1bcc3f 100644
--- a/web/app/[workspaceSlug]/(projects)/projects/(detail)/[projectId]/settings/page.tsx
+++ b/web/app/[workspaceSlug]/(projects)/projects/(detail)/[projectId]/settings/page.tsx
@@ -5,6 +5,7 @@ import { observer } from "mobx-react";
import { useParams } from "next/navigation";
import useSWR from "swr";
// components
+import { EUserPermissions, EUserPermissionsLevel } from "@plane/constants";
import { PageHead } from "@/components/core";
import {
ArchiveRestoreProjectModal,
@@ -16,7 +17,6 @@ import {
} from "@/components/project";
// hooks
import { useProject, useUserPermissions } from "@/hooks/store";
-import { EUserPermissions, EUserPermissionsLevel } from "@/plane-web/constants/user-permissions";
const GeneralSettingsPage = observer(() => {
// states
@@ -43,8 +43,6 @@ const GeneralSettingsPage = observer(() => {
);
const pageTitle = currentProjectDetails?.name ? `${currentProjectDetails?.name} - General Settings` : undefined;
- // const currentNetwork = NETWORK_CHOICES.find((n) => n.key === projectDetails?.network);
- // const selectedNetwork = NETWORK_CHOICES.find((n) => n.key === watch("network"));
return (
<>
diff --git a/web/app/[workspaceSlug]/(projects)/projects/(detail)/[projectId]/settings/sidebar.tsx b/web/app/[workspaceSlug]/(projects)/projects/(detail)/[projectId]/settings/sidebar.tsx
index 7a352ce0fe..7bb1984c89 100644
--- a/web/app/[workspaceSlug]/(projects)/projects/(detail)/[projectId]/settings/sidebar.tsx
+++ b/web/app/[workspaceSlug]/(projects)/projects/(detail)/[projectId]/settings/sidebar.tsx
@@ -5,6 +5,8 @@ import range from "lodash/range";
import { observer } from "mobx-react";
import Link from "next/link";
import { useParams, usePathname } from "next/navigation";
+import { EUserPermissionsLevel } from "@plane/constants";
+import { useTranslation } from "@plane/i18n";
// ui
import { Loader } from "@plane/ui";
// components
@@ -13,7 +15,6 @@ import { SidebarNavItem } from "@/components/sidebar";
import { useUserPermissions } from "@/hooks/store";
// plane web constants
import { PROJECT_SETTINGS_LINKS } from "@/plane-web/constants/project";
-import { EUserPermissionsLevel } from "@/plane-web/constants/user-permissions";
export const ProjectSettingsSidebar = observer(() => {
const { workspaceSlug, projectId } = useParams();
@@ -21,6 +22,8 @@ export const ProjectSettingsSidebar = observer(() => {
// mobx store
const { allowPermissions, projectUserInfo } = useUserPermissions();
+ const { t } = useTranslation();
+
// derived values
const currentProjectRole = projectUserInfo?.[workspaceSlug?.toString()]?.[projectId?.toString()]?.role;
@@ -58,7 +61,7 @@ export const ProjectSettingsSidebar = observer(() => {
isActive={link.highlight(pathname, `/${workspaceSlug}/projects/${projectId}`)}
className="text-sm font-medium px-4 py-2"
>
- {link.label}
+ {t(link.i18n_label)}
</SidebarNavItem>
</Link>
)
diff --git a/web/app/[workspaceSlug]/(projects)/projects/(detail)/[projectId]/settings/states/page.tsx b/web/app/[workspaceSlug]/(projects)/projects/(detail)/[projectId]/settings/states/page.tsx
index af9bf5618e..54fca1c082 100644
--- a/web/app/[workspaceSlug]/(projects)/projects/(detail)/[projectId]/settings/states/page.tsx
+++ b/web/app/[workspaceSlug]/(projects)/projects/(detail)/[projectId]/settings/states/page.tsx
@@ -2,13 +2,14 @@
import { observer } from "mobx-react";
import { useParams } from "next/navigation";
+import { EUserPermissions, EUserPermissionsLevel } from "@plane/constants";
+import { useTranslation } from "@plane/i18n";
// components
import { NotAuthorizedView } from "@/components/auth-screens";
import { PageHead } from "@/components/core";
import { ProjectStateRoot } from "@/components/project-states";
// hook
import { useProject, useUserPermissions } from "@/hooks/store";
-import { EUserPermissions, EUserPermissionsLevel } from "@/plane-web/constants/user-permissions";
const StatesSettingsPage = observer(() => {
const { workspaceSlug, projectId } = useParams();
@@ -16,6 +17,8 @@ const StatesSettingsPage = observer(() => {
const { currentProjectDetails } = useProject();
const { workspaceUserInfo, allowPermissions } = useUserPermissions();
+ const { t } = useTranslation();
+
// derived values
const pageTitle = currentProjectDetails?.name ? `${currentProjectDetails?.name} - States` : undefined;
// derived values
@@ -32,7 +35,7 @@ const StatesSettingsPage = observer(() => {
<>
<PageHead title={pageTitle} />
<div className="flex items-center border-b border-custom-border-100">
- <h3 className="text-xl font-medium">States</h3>
+ <h3 className="text-xl font-medium">{t("common.states")}</h3>
</div>
{workspaceSlug && projectId && (
<ProjectStateRoot workspaceSlug={workspaceSlug.toString()} projectId={projectId.toString()} />
diff --git a/web/app/[workspaceSlug]/(projects)/projects/(detail)/[projectId]/views/(detail)/[viewId]/header.tsx b/web/app/[workspaceSlug]/(projects)/projects/(detail)/[projectId]/views/(detail)/[viewId]/header.tsx
index b4de9b6404..cc9a8fff6e 100644
--- a/web/app/[workspaceSlug]/(projects)/projects/(detail)/[projectId]/views/(detail)/[viewId]/header.tsx
+++ b/web/app/[workspaceSlug]/(projects)/projects/(detail)/[projectId]/views/(detail)/[viewId]/header.tsx
@@ -6,7 +6,15 @@ import Link from "next/link";
import { useParams } from "next/navigation";
import { Layers, Lock } from "lucide-react";
// plane constants
-import { EIssueLayoutTypes, EIssueFilterType, EIssuesStoreType } from "@plane/constants";
+import {
+ EIssueLayoutTypes,
+ EIssueFilterType,
+ EIssuesStoreType,
+ ISSUE_DISPLAY_FILTERS_BY_PAGE,
+ EViewAccess,
+ EUserPermissions,
+ EUserPermissionsLevel,
+} from "@plane/constants";
// types
import { IIssueDisplayFilterOptions, IIssueDisplayProperties, IIssueFilterOptions } from "@plane/types";
// ui
@@ -16,8 +24,6 @@ import { BreadcrumbLink, Logo } from "@/components/common";
import { DisplayFiltersSelection, FiltersDropdown, FilterSelection, LayoutSelection } from "@/components/issues";
// constants
import { ViewQuickActions } from "@/components/views";
-import { ISSUE_DISPLAY_FILTERS_BY_LAYOUT } from "@/constants/issue";
-import { EViewAccess } from "@/constants/views";
// helpers
import { isIssueFilterActive } from "@/helpers/filter.helper";
import { truncateText } from "@/helpers/string.helper";
@@ -35,7 +41,6 @@ import {
} from "@/hooks/store";
// plane web
import { ProjectBreadcrumb } from "@/plane-web/components/breadcrumbs";
-import { EUserPermissions, EUserPermissionsLevel } from "@/plane-web/constants/user-permissions";
export const ProjectViewIssuesHeader: React.FC = observer(() => {
// refs
@@ -242,7 +247,7 @@ export const ProjectViewIssuesHeader: React.FC = observer(() => {
displayFilters={issueFilters?.displayFilters ?? {}}
handleDisplayFiltersUpdate={handleDisplayFilters}
layoutDisplayFiltersOptions={
- activeLayout ? ISSUE_DISPLAY_FILTERS_BY_LAYOUT.issues[activeLayout] : undefined
+ activeLayout ? ISSUE_DISPLAY_FILTERS_BY_PAGE.issues[activeLayout] : undefined
}
projectId={projectId.toString()}
labels={projectLabels}
@@ -255,7 +260,7 @@ export const ProjectViewIssuesHeader: React.FC = observer(() => {
<FiltersDropdown title="Display" placement="bottom-end">
<DisplayFiltersSelection
layoutDisplayFiltersOptions={
- activeLayout ? ISSUE_DISPLAY_FILTERS_BY_LAYOUT.issues[activeLayout] : undefined
+ activeLayout ? ISSUE_DISPLAY_FILTERS_BY_PAGE.issues[activeLayout] : undefined
}
displayFilters={issueFilters?.displayFilters ?? {}}
handleDisplayFiltersUpdate={handleDisplayFilters}
@@ -277,7 +282,7 @@ export const ProjectViewIssuesHeader: React.FC = observer(() => {
}}
size="sm"
>
- Add issue
+ Add work item
</Button>
) : (
<></>
diff --git a/web/app/[workspaceSlug]/(projects)/projects/(detail)/[projectId]/views/(list)/page.tsx b/web/app/[workspaceSlug]/(projects)/projects/(detail)/[projectId]/views/(list)/page.tsx
index 387f6e5b42..d4a3051ec9 100644
--- a/web/app/[workspaceSlug]/(projects)/projects/(detail)/[projectId]/views/(list)/page.tsx
+++ b/web/app/[workspaceSlug]/(projects)/projects/(detail)/[projectId]/views/(list)/page.tsx
@@ -4,29 +4,37 @@ import { useCallback } from "react";
import { observer } from "mobx-react";
import { useParams } from "next/navigation";
// components
+import { EUserPermissionsLevel, EUserProjectRoles, EViewAccess } from "@plane/constants";
+import { useTranslation } from "@plane/i18n";
import { TViewFilterProps } from "@plane/types";
import { Header, EHeaderVariant } from "@plane/ui";
import { PageHead } from "@/components/core";
-import { EmptyState } from "@/components/empty-state";
+import { DetailedEmptyState } from "@/components/empty-state";
import { ProjectViewsList } from "@/components/views";
import { ViewAppliedFiltersList } from "@/components/views/applied-filters";
-import { EmptyStateType } from "@/constants/empty-state";
// constants
-import { EViewAccess } from "@/constants/views";
// helpers
import { calculateTotalFilters } from "@/helpers/filter.helper";
// hooks
-import { useProject, useProjectView } from "@/hooks/store";
+import { useProject, useProjectView, useUserPermissions } from "@/hooks/store";
+import { useAppRouter } from "@/hooks/use-app-router";
+import { useResolvedAssetPath } from "@/hooks/use-resolved-asset-path";
const ProjectViewsPage = observer(() => {
// router
+ const router = useAppRouter();
const { workspaceSlug, projectId } = useParams();
+ // plane hooks
+ const { t } = useTranslation();
// store
const { getProjectById, currentProjectDetails } = useProject();
const { filters, updateFilters, clearAllFilters } = useProjectView();
+ const { allowPermissions } = useUserPermissions();
// derived values
const project = projectId ? getProjectById(projectId.toString()) : undefined;
const pageTitle = project?.name ? `${project?.name} - Views` : undefined;
+ const canPerformEmptyStateActions = allowPermissions([EUserProjectRoles.ADMIN], EUserPermissionsLevel.PROJECT);
+ const resolvedPath = useResolvedAssetPath({ basePath: "/empty-state/disabled-feature/views" });
const handleRemoveFilter = useCallback(
(key: keyof TViewFilterProps, value: string | EViewAccess | null) => {
@@ -53,9 +61,17 @@ const ProjectViewsPage = observer(() => {
if (currentProjectDetails?.issue_views_view === false)
return (
<div className="flex items-center justify-center h-full w-full">
- <EmptyState
- type={EmptyStateType.DISABLED_PROJECT_VIEW}
- primaryButtonLink={`/${workspaceSlug}/projects/${projectId}/settings/features`}
+ <DetailedEmptyState
+ title={t("disabled_project.empty_state.view.title")}
+ description={t("disabled_project.empty_state.view.description")}
+ assetPath={resolvedPath}
+ primaryButton={{
+ text: t("disabled_project.empty_state.view.primary_button.text"),
+ onClick: () => {
+ router.push(`/${workspaceSlug}/projects/${projectId}/settings/features`);
+ },
+ disabled: !canPerformEmptyStateActions,
+ }}
/>
</div>
);
diff --git a/web/app/[workspaceSlug]/(projects)/settings/api-tokens/page.tsx b/web/app/[workspaceSlug]/(projects)/settings/api-tokens/page.tsx
index fd2ed9669b..21334ff23c 100644
--- a/web/app/[workspaceSlug]/(projects)/settings/api-tokens/page.tsx
+++ b/web/app/[workspaceSlug]/(projects)/settings/api-tokens/page.tsx
@@ -4,20 +4,20 @@ import React, { useState } from "react";
import { observer } from "mobx-react";
import { useParams } from "next/navigation";
import useSWR from "swr";
-// ui
+// plane imports
+import { EUserPermissions, EUserPermissionsLevel } from "@plane/constants";
+import { useTranslation } from "@plane/i18n";
import { Button } from "@plane/ui";
// component
import { ApiTokenListItem, CreateApiTokenModal } from "@/components/api-token";
import { NotAuthorizedView } from "@/components/auth-screens";
import { PageHead } from "@/components/core";
-import { EmptyState } from "@/components/empty-state";
+import { DetailedEmptyState } from "@/components/empty-state";
import { APITokenSettingsLoader } from "@/components/ui";
-// constants
-import { EmptyStateType } from "@/constants/empty-state";
import { API_TOKENS_LIST } from "@/constants/fetch-keys";
// store hooks
import { useUserPermissions, useWorkspace } from "@/hooks/store";
-import { EUserPermissions, EUserPermissionsLevel } from "@/plane-web/constants/user-permissions";
+import { useResolvedAssetPath } from "@/hooks/use-resolved-asset-path";
// services
import { APITokenService } from "@/services/api_token.service";
@@ -28,11 +28,14 @@ const ApiTokensPage = observer(() => {
const [isCreateTokenModalOpen, setIsCreateTokenModalOpen] = useState(false);
// router
const { workspaceSlug } = useParams();
+ // plane hooks
+ const { t } = useTranslation();
// store hooks
const { currentWorkspace } = useWorkspace();
const { workspaceUserInfo, allowPermissions } = useUserPermissions();
// derived values
const canPerformWorkspaceAdminActions = allowPermissions([EUserPermissions.ADMIN], EUserPermissionsLevel.WORKSPACE);
+ const resolvedPath = useResolvedAssetPath({ basePath: "/empty-state/workspace-settings/api-tokens" });
const { data: tokens } = useSWR(
workspaceSlug && canPerformWorkspaceAdminActions ? API_TOKENS_LIST(workspaceSlug.toString()) : null,
@@ -40,7 +43,9 @@ const ApiTokensPage = observer(() => {
workspaceSlug && canPerformWorkspaceAdminActions ? apiTokenService.getApiTokens(workspaceSlug.toString()) : null
);
- const pageTitle = currentWorkspace?.name ? `${currentWorkspace.name} - API Tokens` : undefined;
+ const pageTitle = currentWorkspace?.name
+ ? `${currentWorkspace.name} - ${t("workspace_settings.settings.api_tokens.title")}`
+ : undefined;
if (workspaceUserInfo && !canPerformWorkspaceAdminActions) {
return <NotAuthorizedView section="settings" />;
@@ -58,9 +63,9 @@ const ApiTokensPage = observer(() => {
{tokens.length > 0 ? (
<>
<div className="flex items-center justify-between border-b border-custom-border-200 pb-3.5">
- <h3 className="text-xl font-medium">API tokens</h3>
+ <h3 className="text-xl font-medium">{t("workspace_settings.settings.api_tokens.title")}</h3>
<Button variant="primary" onClick={() => setIsCreateTokenModalOpen(true)}>
- Add API token
+ {t("workspace_settings.settings.api_tokens.add_token")}
</Button>
</div>
<div>
@@ -72,13 +77,17 @@ const ApiTokensPage = observer(() => {
) : (
<div className="flex h-full w-full flex-col">
<div className="flex items-center justify-between gap-4 border-b border-custom-border-200 pb-3.5">
- <h3 className="text-xl font-medium">API tokens</h3>
+ <h3 className="text-xl font-medium">{t("workspace_settings.settings.api_tokens.title")}</h3>
<Button variant="primary" onClick={() => setIsCreateTokenModalOpen(true)}>
- Add API token
+ {t("workspace_settings.settings.api_tokens.add_token")}
</Button>
</div>
<div className="h-full w-full flex items-center justify-center">
- <EmptyState type={EmptyStateType.WORKSPACE_SETTINGS_API_TOKENS} />
+ <DetailedEmptyState
+ title={t("workspace_settings.empty_state.api_tokens.title")}
+ description={t("workspace_settings.empty_state.api_tokens.description")}
+ assetPath={resolvedPath}
+ />
</div>
</div>
)}
diff --git a/web/app/[workspaceSlug]/(projects)/settings/billing/page.tsx b/web/app/[workspaceSlug]/(projects)/settings/billing/page.tsx
index 03f0cce5ec..801b04b378 100644
--- a/web/app/[workspaceSlug]/(projects)/settings/billing/page.tsx
+++ b/web/app/[workspaceSlug]/(projects)/settings/billing/page.tsx
@@ -2,13 +2,13 @@
import { observer } from "mobx-react";
// component
+import { EUserPermissions, EUserPermissionsLevel } from "@plane/constants";
import { NotAuthorizedView } from "@/components/auth-screens";
import { PageHead } from "@/components/core";
// hooks
import { useUserPermissions, useWorkspace } from "@/hooks/store";
// plane web components
import { BillingRoot } from "@/plane-web/components/workspace";
-import { EUserPermissions, EUserPermissionsLevel } from "@/plane-web/constants/user-permissions";
const BillingSettingsPage = observer(() => {
// store hooks
diff --git a/web/app/[workspaceSlug]/(projects)/settings/exports/page.tsx b/web/app/[workspaceSlug]/(projects)/settings/exports/page.tsx
index dc3f3aafce..1b63406de3 100644
--- a/web/app/[workspaceSlug]/(projects)/settings/exports/page.tsx
+++ b/web/app/[workspaceSlug]/(projects)/settings/exports/page.tsx
@@ -2,6 +2,8 @@
import { observer } from "mobx-react";
// components
+import { EUserPermissions, EUserPermissionsLevel } from "@plane/constants";
+import { useTranslation } from "@plane/i18n";
import { NotAuthorizedView } from "@/components/auth-screens";
import { PageHead } from "@/components/core";
import ExportGuide from "@/components/exporter/guide";
@@ -9,19 +11,21 @@ import ExportGuide from "@/components/exporter/guide";
import { cn } from "@/helpers/common.helper";
// hooks
import { useUserPermissions, useWorkspace } from "@/hooks/store";
-import { EUserPermissions, EUserPermissionsLevel } from "@/plane-web/constants/user-permissions";
const ExportsPage = observer(() => {
// store hooks
const { workspaceUserInfo, allowPermissions } = useUserPermissions();
const { currentWorkspace } = useWorkspace();
+ const { t } = useTranslation();
// derived values
const canPerformWorkspaceMemberActions = allowPermissions(
[EUserPermissions.ADMIN, EUserPermissions.MEMBER],
EUserPermissionsLevel.WORKSPACE
);
- const pageTitle = currentWorkspace?.name ? `${currentWorkspace.name} - Exports` : undefined;
+ const pageTitle = currentWorkspace?.name
+ ? `${currentWorkspace.name} - ${t("workspace_settings.settings.exports.title")}`
+ : undefined;
// if user is not authorized to view this page
if (workspaceUserInfo && !canPerformWorkspaceMemberActions) {
@@ -37,7 +41,7 @@ const ExportsPage = observer(() => {
})}
>
<div className="flex items-center border-b border-custom-border-100 pb-3.5">
- <h3 className="text-xl font-medium">Exports</h3>
+ <h3 className="text-xl font-medium">{t("workspace_settings.settings.exports.title")}</h3>
</div>
<ExportGuide />
</div>
diff --git a/web/app/[workspaceSlug]/(projects)/settings/header.tsx b/web/app/[workspaceSlug]/(projects)/settings/header.tsx
index d98db1a65b..003e727431 100644
--- a/web/app/[workspaceSlug]/(projects)/settings/header.tsx
+++ b/web/app/[workspaceSlug]/(projects)/settings/header.tsx
@@ -4,6 +4,7 @@ import { FC } from "react";
import { observer } from "mobx-react";
import { Settings } from "lucide-react";
// ui
+import { useTranslation } from "@plane/i18n";
import { Breadcrumbs, Header } from "@plane/ui";
// components
import { BreadcrumbLink } from "@/components/common";
@@ -12,6 +13,7 @@ import { useWorkspace } from "@/hooks/store";
export const WorkspaceSettingHeader: FC = observer(() => {
const { currentWorkspace, loader } = useWorkspace();
+ const { t } = useTranslation();
return (
<Header>
@@ -27,7 +29,7 @@ export const WorkspaceSettingHeader: FC = observer(() => {
/>
}
/>
- <Breadcrumbs.BreadcrumbItem type="text" link={<BreadcrumbLink label="Settings" />} />
+ <Breadcrumbs.BreadcrumbItem type="text" link={<BreadcrumbLink label={t("settings")} />} />
</Breadcrumbs>
</Header.LeftItem>
</Header>
diff --git a/web/app/[workspaceSlug]/(projects)/settings/imports/page.tsx b/web/app/[workspaceSlug]/(projects)/settings/imports/page.tsx
index dc0815751a..718742804a 100644
--- a/web/app/[workspaceSlug]/(projects)/settings/imports/page.tsx
+++ b/web/app/[workspaceSlug]/(projects)/settings/imports/page.tsx
@@ -2,11 +2,11 @@
import { observer } from "mobx-react";
// components
+import { EUserPermissions, EUserPermissionsLevel } from "@plane/constants";
import { PageHead } from "@/components/core";
import IntegrationGuide from "@/components/integration/guide";
// hooks
import { useUserPermissions, useWorkspace } from "@/hooks/store";
-import { EUserPermissions, EUserPermissionsLevel } from "@/plane-web/constants/user-permissions";
const ImportsPage = observer(() => {
// store hooks
diff --git a/web/app/[workspaceSlug]/(projects)/settings/integrations/page.tsx b/web/app/[workspaceSlug]/(projects)/settings/integrations/page.tsx
index 290eb24ca3..ef31bd82fe 100644
--- a/web/app/[workspaceSlug]/(projects)/settings/integrations/page.tsx
+++ b/web/app/[workspaceSlug]/(projects)/settings/integrations/page.tsx
@@ -3,6 +3,7 @@ import { observer } from "mobx-react";
import { useParams } from "next/navigation";
import useSWR from "swr";
// components
+import { EUserPermissions, EUserPermissionsLevel } from "@plane/constants";
import { PageHead } from "@/components/core";
import { SingleIntegrationCard } from "@/components/integration";
import { IntegrationAndImportExportBanner, IntegrationsSettingsLoader } from "@/components/ui";
@@ -10,7 +11,6 @@ import { IntegrationAndImportExportBanner, IntegrationsSettingsLoader } from "@/
import { APP_INTEGRATIONS } from "@/constants/fetch-keys";
// hooks
import { useUserPermissions, useWorkspace } from "@/hooks/store";
-import { EUserPermissions, EUserPermissionsLevel } from "@/plane-web/constants/user-permissions";
// services
import { IntegrationService } from "@/services/integrations";
diff --git a/web/app/[workspaceSlug]/(projects)/settings/layout.tsx b/web/app/[workspaceSlug]/(projects)/settings/layout.tsx
index 9bd133cc14..788ca02ae8 100644
--- a/web/app/[workspaceSlug]/(projects)/settings/layout.tsx
+++ b/web/app/[workspaceSlug]/(projects)/settings/layout.tsx
@@ -3,12 +3,12 @@
import { FC, ReactNode } from "react";
import { observer } from "mobx-react";
// components
+import { EUserPermissions, EUserPermissionsLevel } from "@plane/constants";
import { NotAuthorizedView } from "@/components/auth-screens";
import { AppHeader } from "@/components/core";
// hooks
import { useUserPermissions } from "@/hooks/store";
// plane web constants
-import { EUserPermissions, EUserPermissionsLevel } from "@/plane-web/constants/user-permissions";
// local components
import { WorkspaceSettingHeader } from "./header";
import { MobileWorkspaceSettingsTabs } from "./mobile-header-tabs";
diff --git a/web/app/[workspaceSlug]/(projects)/settings/members/page.tsx b/web/app/[workspaceSlug]/(projects)/settings/members/page.tsx
index ab23261d91..936eda0ba1 100644
--- a/web/app/[workspaceSlug]/(projects)/settings/members/page.tsx
+++ b/web/app/[workspaceSlug]/(projects)/settings/members/page.tsx
@@ -5,6 +5,8 @@ import { observer } from "mobx-react";
import { useParams } from "next/navigation";
import { Search } from "lucide-react";
// types
+import { MEMBER_INVITED, EUserPermissions, EUserPermissionsLevel } from "@plane/constants";
+import { useTranslation } from "@plane/i18n";
import { IWorkspaceBulkInviteFormData } from "@plane/types";
// ui
import { Button, TOAST_TYPE, setToast } from "@plane/ui";
@@ -13,13 +15,11 @@ import { NotAuthorizedView } from "@/components/auth-screens";
import { PageHead } from "@/components/core";
import { SendWorkspaceInvitationModal, WorkspaceMembersList } from "@/components/workspace";
// constants
-import { MEMBER_INVITED } from "@/constants/event-tracker";
// helpers
import { cn } from "@/helpers/common.helper";
import { getUserRole } from "@/helpers/user.helper";
// hooks
import { useEventTracker, useMember, useUserPermissions, useWorkspace } from "@/hooks/store";
-import { EUserPermissions, EUserPermissionsLevel } from "@/plane-web/constants/user-permissions";
const WorkspaceMembersSettingsPage = observer(() => {
// states
@@ -34,6 +34,7 @@ const WorkspaceMembersSettingsPage = observer(() => {
workspace: { inviteMembersToWorkspace },
} = useMember();
const { currentWorkspace } = useWorkspace();
+ const { t } = useTranslation();
// derived values
const canPerformWorkspaceAdminActions = allowPermissions([EUserPermissions.ADMIN], EUserPermissionsLevel.WORKSPACE);
@@ -62,7 +63,7 @@ const WorkspaceMembersSettingsPage = observer(() => {
setToast({
type: TOAST_TYPE.SUCCESS,
title: "Success!",
- message: "Invitations sent successfully.",
+ message: t("workspace_settings.settings.members.invitations_sent_successfully"),
});
})
.catch((err) => {
@@ -80,7 +81,7 @@ const WorkspaceMembersSettingsPage = observer(() => {
setToast({
type: TOAST_TYPE.ERROR,
title: "Error!",
- message: `${err.error ?? "Something went wrong. Please try again."}`,
+ message: `${err.error ?? t("something_went_wrong_please_try_again")}`,
});
});
};
@@ -107,12 +108,12 @@ const WorkspaceMembersSettingsPage = observer(() => {
})}
>
<div className="flex justify-between gap-4 pb-3.5 items-start ">
- <h4 className="text-xl font-medium">Members</h4>
+ <h4 className="text-xl font-medium">{t("workspace_settings.settings.members.title")}</h4>
<div className="ml-auto flex items-center gap-1.5 rounded-md border border-custom-border-200 bg-custom-background-100 px-2.5 py-1.5">
<Search className="h-3.5 w-3.5 text-custom-text-400" />
<input
className="w-full max-w-[234px] border-none bg-transparent text-sm outline-none placeholder:text-custom-text-400"
- placeholder="Search..."
+ placeholder={`${t("search")}...`}
value={searchQuery}
autoFocus
onChange={(e) => setSearchQuery(e.target.value)}
@@ -120,7 +121,7 @@ const WorkspaceMembersSettingsPage = observer(() => {
</div>
{canPerformWorkspaceAdminActions && (
<Button variant="primary" size="sm" onClick={() => setInviteModal(true)}>
- Add member
+ {t("workspace_settings.settings.members.add_member")}
</Button>
)}
</div>
diff --git a/web/app/[workspaceSlug]/(projects)/settings/mobile-header-tabs.tsx b/web/app/[workspaceSlug]/(projects)/settings/mobile-header-tabs.tsx
index ee3035220c..b699a1ff26 100644
--- a/web/app/[workspaceSlug]/(projects)/settings/mobile-header-tabs.tsx
+++ b/web/app/[workspaceSlug]/(projects)/settings/mobile-header-tabs.tsx
@@ -1,11 +1,10 @@
import { observer } from "mobx-react";
import { useParams, usePathname } from "next/navigation";
+import { WORKSPACE_SETTINGS_LINKS, EUserPermissionsLevel } from "@plane/constants";
+import { useTranslation } from "@plane/i18n";
// hooks
import { useUserPermissions } from "@/hooks/store";
import { useAppRouter } from "@/hooks/use-app-router";
-// plane web constants
-import { EUserPermissionsLevel } from "@/plane-web/constants/user-permissions";
-import { WORKSPACE_SETTINGS_LINKS } from "@/plane-web/constants/workspace";
// plane web helpers
import { shouldRenderSettingLink } from "@/plane-web/helpers/workspace.helper";
@@ -13,6 +12,7 @@ export const MobileWorkspaceSettingsTabs = observer(() => {
const router = useAppRouter();
const { workspaceSlug } = useParams();
const pathname = usePathname();
+ const { t } = useTranslation();
// mobx store
const { allowPermissions } = useUserPermissions();
@@ -31,7 +31,7 @@ export const MobileWorkspaceSettingsTabs = observer(() => {
key={index}
onClick={() => router.push(`/${workspaceSlug}${item.href}`)}
>
- {item.label}
+ {t(item.i18n_label)}
</div>
)
)}
diff --git a/web/app/[workspaceSlug]/(projects)/settings/page.tsx b/web/app/[workspaceSlug]/(projects)/settings/page.tsx
index c628e313c5..6088cf0a50 100644
--- a/web/app/[workspaceSlug]/(projects)/settings/page.tsx
+++ b/web/app/[workspaceSlug]/(projects)/settings/page.tsx
@@ -2,6 +2,7 @@
import { observer } from "mobx-react";
// components
+import { useTranslation } from "@plane/i18n";
import { PageHead } from "@/components/core";
import { WorkspaceDetails } from "@/components/workspace";
// hooks
@@ -10,8 +11,11 @@ import { useWorkspace } from "@/hooks/store";
const WorkspaceSettingsPage = observer(() => {
// store hooks
const { currentWorkspace } = useWorkspace();
+ const { t } = useTranslation();
// derived values
- const pageTitle = currentWorkspace?.name ? `${currentWorkspace.name} - General Settings` : undefined;
+ const pageTitle = currentWorkspace?.name
+ ? t("workspace_settings.page_label", { workspace: currentWorkspace.name })
+ : undefined;
return (
<>
diff --git a/web/app/[workspaceSlug]/(projects)/settings/sidebar.tsx b/web/app/[workspaceSlug]/(projects)/settings/sidebar.tsx
index 6bce5daa32..a120655364 100644
--- a/web/app/[workspaceSlug]/(projects)/settings/sidebar.tsx
+++ b/web/app/[workspaceSlug]/(projects)/settings/sidebar.tsx
@@ -4,13 +4,12 @@ import React from "react";
import { observer } from "mobx-react";
import Link from "next/link";
import { useParams, usePathname } from "next/navigation";
+import { WORKSPACE_SETTINGS_LINKS, EUserPermissionsLevel } from "@plane/constants";
+import { useTranslation } from "@plane/i18n";
// components
import { SidebarNavItem } from "@/components/sidebar";
// hooks
import { useUserPermissions } from "@/hooks/store";
-// plane web constants
-import { EUserPermissionsLevel } from "@/plane-web/constants/user-permissions";
-import { WORKSPACE_SETTINGS_LINKS } from "@/plane-web/constants/workspace";
// plane web helpers
import { shouldRenderSettingLink } from "@/plane-web/helpers/workspace.helper";
@@ -19,12 +18,13 @@ export const WorkspaceSettingsSidebar = observer(() => {
const { workspaceSlug } = useParams();
const pathname = usePathname();
// mobx store
+ const { t } = useTranslation();
const { allowPermissions } = useUserPermissions();
return (
<div className="flex w-[280px] flex-col gap-6">
<div className="flex flex-col gap-2">
- <span className="text-xs font-semibold text-custom-sidebar-text-400">SETTINGS</span>
+ <span className="text-xs font-semibold text-custom-sidebar-text-400 uppercase">{t("settings")}</span>
<div className="flex w-full flex-col gap-1">
{WORKSPACE_SETTINGS_LINKS.map(
(link) =>
@@ -36,7 +36,7 @@ export const WorkspaceSettingsSidebar = observer(() => {
isActive={link.highlight(pathname, `/${workspaceSlug}`)}
className="text-sm font-medium px-4 py-2"
>
- {link.label}
+ {t(link.i18n_label)}
</SidebarNavItem>
</Link>
)
diff --git a/web/app/[workspaceSlug]/(projects)/settings/webhooks/[webhookId]/page.tsx b/web/app/[workspaceSlug]/(projects)/settings/webhooks/[webhookId]/page.tsx
index 4669f40649..5edc914e90 100644
--- a/web/app/[workspaceSlug]/(projects)/settings/webhooks/[webhookId]/page.tsx
+++ b/web/app/[workspaceSlug]/(projects)/settings/webhooks/[webhookId]/page.tsx
@@ -4,6 +4,7 @@ import { useState } from "react";
import { observer } from "mobx-react";
import { useParams } from "next/navigation";
import useSWR from "swr";
+import { EUserPermissions, EUserPermissionsLevel } from "@plane/constants";
import { IWebhook } from "@plane/types";
// ui
import { TOAST_TYPE, setToast } from "@plane/ui";
@@ -13,7 +14,6 @@ import { PageHead } from "@/components/core";
import { DeleteWebhookModal, WebhookDeleteSection, WebhookForm } from "@/components/web-hooks";
// hooks
import { useUserPermissions, useWebhook, useWorkspace } from "@/hooks/store";
-import { EUserPermissions, EUserPermissionsLevel } from "@/plane-web/constants/user-permissions";
const WebhookDetailsPage = observer(() => {
// states
diff --git a/web/app/[workspaceSlug]/(projects)/settings/webhooks/page.tsx b/web/app/[workspaceSlug]/(projects)/settings/webhooks/page.tsx
index 86c922f07f..2623660da8 100644
--- a/web/app/[workspaceSlug]/(projects)/settings/webhooks/page.tsx
+++ b/web/app/[workspaceSlug]/(projects)/settings/webhooks/page.tsx
@@ -4,39 +4,43 @@ import React, { useEffect, useState } from "react";
import { observer } from "mobx-react";
import { useParams } from "next/navigation";
import useSWR from "swr";
-// ui
+// plane imports
+import { EUserPermissions, EUserPermissionsLevel } from "@plane/constants";
+import { useTranslation } from "@plane/i18n";
import { Button } from "@plane/ui";
// components
import { NotAuthorizedView } from "@/components/auth-screens";
import { PageHead } from "@/components/core";
-import { EmptyState } from "@/components/empty-state";
+import { DetailedEmptyState } from "@/components/empty-state";
import { WebhookSettingsLoader } from "@/components/ui";
import { WebhooksList, CreateWebhookModal } from "@/components/web-hooks";
-// constants
-import { EmptyStateType } from "@/constants/empty-state";
// hooks
import { useUserPermissions, useWebhook, useWorkspace } from "@/hooks/store";
-import { EUserPermissions, EUserPermissionsLevel } from "@/plane-web/constants/user-permissions";
+import { useResolvedAssetPath } from "@/hooks/use-resolved-asset-path";
const WebhooksListPage = observer(() => {
// states
const [showCreateWebhookModal, setShowCreateWebhookModal] = useState(false);
// router
const { workspaceSlug } = useParams();
+ // plane hooks
+ const { t } = useTranslation();
// mobx store
const { workspaceUserInfo, allowPermissions } = useUserPermissions();
-
const { fetchWebhooks, webhooks, clearSecretKey, webhookSecretKey, createWebhook } = useWebhook();
const { currentWorkspace } = useWorkspace();
-
+ // derived values
const canPerformWorkspaceAdminActions = allowPermissions([EUserPermissions.ADMIN], EUserPermissionsLevel.WORKSPACE);
+ const resolvedPath = useResolvedAssetPath({ basePath: "/empty-state/workspace-settings/webhooks" });
useSWR(
workspaceSlug && canPerformWorkspaceAdminActions ? `WEBHOOKS_LIST_${workspaceSlug}` : null,
workspaceSlug && canPerformWorkspaceAdminActions ? () => fetchWebhooks(workspaceSlug.toString()) : null
);
- const pageTitle = currentWorkspace?.name ? `${currentWorkspace.name} - Webhooks` : undefined;
+ const pageTitle = currentWorkspace?.name
+ ? `${currentWorkspace.name} - ${t("workspace_settings.settings.webhooks.title")}`
+ : undefined;
// clear secret key when modal is closed.
useEffect(() => {
@@ -65,9 +69,9 @@ const WebhooksListPage = observer(() => {
{Object.keys(webhooks).length > 0 ? (
<div className="flex h-full w-full flex-col">
<div className="flex items-center justify-between gap-4 border-b border-custom-border-200 pb-3.5">
- <div className="text-xl font-medium">Webhooks</div>
+ <div className="text-xl font-medium">{t("workspace_settings.settings.webhooks.title")}</div>
<Button variant="primary" size="sm" onClick={() => setShowCreateWebhookModal(true)}>
- Add webhook
+ {t("workspace_settings.settings.webhooks.add_webhook")}
</Button>
</div>
<WebhooksList />
@@ -75,13 +79,17 @@ const WebhooksListPage = observer(() => {
) : (
<div className="flex h-full w-full flex-col">
<div className="flex items-center justify-between gap-4 border-b border-custom-border-200 pb-3.5">
- <div className="text-xl font-medium">Webhooks</div>
+ <div className="text-xl font-medium">{t("workspace_settings.settings.webhooks.title")}</div>
<Button variant="primary" size="sm" onClick={() => setShowCreateWebhookModal(true)}>
- Add webhook
+ {t("workspace_settings.settings.webhooks.add_webhook")}
</Button>
</div>
<div className="h-full w-full flex items-center justify-center">
- <EmptyState type={EmptyStateType.WORKSPACE_SETTINGS_WEBHOOKS} />
+ <DetailedEmptyState
+ title={t("workspace_settings.empty_state.webhooks.title")}
+ description={t("workspace_settings.empty_state.webhooks.description")}
+ assetPath={resolvedPath}
+ />
</div>
</div>
)}
diff --git a/web/app/[workspaceSlug]/(projects)/sidebar.tsx b/web/app/[workspaceSlug]/(projects)/sidebar.tsx
index 11d23e35f0..6b98e6bdbf 100644
--- a/web/app/[workspaceSlug]/(projects)/sidebar.tsx
+++ b/web/app/[workspaceSlug]/(projects)/sidebar.tsx
@@ -2,6 +2,7 @@ import { FC, useEffect, useRef } from "react";
import isEmpty from "lodash/isEmpty";
import { observer } from "mobx-react";
// plane helpers
+import { EUserPermissions, EUserPermissionsLevel } from "@plane/constants";
import { useOutsideClickDetector } from "@plane/hooks";
// components
import {
@@ -22,7 +23,6 @@ import useSize from "@/hooks/use-window-size";
// plane web components
import { SidebarAppSwitcher } from "@/plane-web/components/sidebar";
import { SidebarTeamsList } from "@/plane-web/components/workspace/sidebar/teams-sidebar-list";
-import { EUserPermissions, EUserPermissionsLevel } from "@/plane-web/constants/user-permissions";
export const AppSidebar: FC = observer(() => {
// store hooks
diff --git a/web/app/[workspaceSlug]/(projects)/workspace-views/[globalViewId]/page.tsx b/web/app/[workspaceSlug]/(projects)/workspace-views/[globalViewId]/page.tsx
index b75ff3ab17..bf7d78a6da 100644
--- a/web/app/[workspaceSlug]/(projects)/workspace-views/[globalViewId]/page.tsx
+++ b/web/app/[workspaceSlug]/(projects)/workspace-views/[globalViewId]/page.tsx
@@ -3,12 +3,13 @@
import { useState } from "react";
import { observer } from "mobx-react";
import { useParams } from "next/navigation";
+// plane imports
+import { DEFAULT_GLOBAL_VIEWS_LIST } from "@plane/constants";
// components
import { PageHead } from "@/components/core";
import { AllIssueLayoutRoot, GlobalViewsAppliedFiltersRoot } from "@/components/issues";
import { GlobalViewsHeader } from "@/components/workspace";
// constants
-import { DEFAULT_GLOBAL_VIEWS_LIST } from "@/constants/workspace";
// hooks
import { useWorkspace } from "@/hooks/store";
diff --git a/web/app/[workspaceSlug]/(projects)/workspace-views/header.tsx b/web/app/[workspaceSlug]/(projects)/workspace-views/header.tsx
index e1ec683ec3..5a5ee0a6ef 100644
--- a/web/app/[workspaceSlug]/(projects)/workspace-views/header.tsx
+++ b/web/app/[workspaceSlug]/(projects)/workspace-views/header.tsx
@@ -5,7 +5,8 @@ import { observer } from "mobx-react";
import { useParams } from "next/navigation";
import { Layers } from "lucide-react";
// plane constants
-import { EIssueFilterType, EIssuesStoreType } from "@plane/constants";
+import { EIssueFilterType, EIssuesStoreType, ISSUE_DISPLAY_FILTERS_BY_PAGE } from "@plane/constants";
+import { useTranslation } from "@plane/i18n";
// types
import { IIssueDisplayFilterOptions, IIssueDisplayProperties, IIssueFilterOptions } from "@plane/types";
// ui
@@ -14,8 +15,6 @@ import { Breadcrumbs, Button, Header } from "@plane/ui";
import { BreadcrumbLink } from "@/components/common";
import { DisplayFiltersSelection, FiltersDropdown, FilterSelection } from "@/components/issues";
import { CreateUpdateWorkspaceViewModal } from "@/components/workspace";
-// constants
-import { ISSUE_DISPLAY_FILTERS_BY_LAYOUT } from "@/constants/issue";
// helpers
import { isIssueFilterActive } from "@/helpers/filter.helper";
// hooks
@@ -35,6 +34,7 @@ export const GlobalIssuesHeader = observer(() => {
const {
workspace: { workspaceMemberIds },
} = useMember();
+ const { t } = useTranslation();
const issueFilters = globalViewId ? filters[globalViewId.toString()] : undefined;
@@ -105,7 +105,7 @@ export const GlobalIssuesHeader = observer(() => {
<Breadcrumbs>
<Breadcrumbs.BreadcrumbItem
type="text"
- link={<BreadcrumbLink label={`Views`} icon={<Layers className="h-4 w-4 text-custom-text-300" />} />}
+ link={<BreadcrumbLink label={t("views")} icon={<Layers className="h-4 w-4 text-custom-text-300" />} />}
/>
</Breadcrumbs>
</Header.LeftItem>
@@ -114,12 +114,12 @@ export const GlobalIssuesHeader = observer(() => {
{!isLocked ? (
<>
<FiltersDropdown
- title="Filters"
+ title={t("common.filters")}
placement="bottom-end"
isFiltersApplied={isIssueFilterActive(issueFilters)}
>
<FilterSelection
- layoutDisplayFiltersOptions={ISSUE_DISPLAY_FILTERS_BY_LAYOUT.my_issues.spreadsheet}
+ layoutDisplayFiltersOptions={ISSUE_DISPLAY_FILTERS_BY_PAGE.my_issues.spreadsheet}
filters={issueFilters?.filters ?? {}}
handleFiltersUpdate={handleFiltersUpdate}
displayFilters={issueFilters?.displayFilters ?? {}}
@@ -128,9 +128,9 @@ export const GlobalIssuesHeader = observer(() => {
memberIds={workspaceMemberIds ?? undefined}
/>
</FiltersDropdown>
- <FiltersDropdown title="Display" placement="bottom-end">
+ <FiltersDropdown title={t("common.display")} placement="bottom-end">
<DisplayFiltersSelection
- layoutDisplayFiltersOptions={ISSUE_DISPLAY_FILTERS_BY_LAYOUT.my_issues.spreadsheet}
+ layoutDisplayFiltersOptions={ISSUE_DISPLAY_FILTERS_BY_PAGE.my_issues.spreadsheet}
displayFilters={issueFilters?.displayFilters ?? {}}
handleDisplayFiltersUpdate={handleDisplayFilters}
displayProperties={issueFilters?.displayProperties ?? {}}
@@ -143,7 +143,7 @@ export const GlobalIssuesHeader = observer(() => {
)}
<Button variant="primary" size="sm" onClick={() => setCreateViewModal(true)}>
- Add view
+ {t("workspace_views.add_view")}
</Button>
</Header.RightItem>
</Header>
diff --git a/web/app/[workspaceSlug]/(projects)/workspace-views/page.tsx b/web/app/[workspaceSlug]/(projects)/workspace-views/page.tsx
index 7de4425847..87d0cfc58d 100644
--- a/web/app/[workspaceSlug]/(projects)/workspace-views/page.tsx
+++ b/web/app/[workspaceSlug]/(projects)/workspace-views/page.tsx
@@ -4,13 +4,15 @@ import React, { useState } from "react";
import { observer } from "mobx-react";
// icons
import { Search } from "lucide-react";
+// plane imports
+import { DEFAULT_GLOBAL_VIEWS_LIST } from "@plane/constants";
+import { useTranslation } from "@plane/i18n";
// ui
import { Input } from "@plane/ui";
// components
import { PageHead } from "@/components/core";
import { GlobalDefaultViewListItem, GlobalViewsList } from "@/components/workspace";
// constants
-import { DEFAULT_GLOBAL_VIEWS_LIST } from "@/constants/workspace";
// hooks
import { useWorkspace } from "@/hooks/store";
@@ -18,6 +20,7 @@ const WorkspaceViewsPage = observer(() => {
const [query, setQuery] = useState("");
// store
const { currentWorkspace } = useWorkspace();
+ const { t } = useTranslation();
// derived values
const pageTitle = currentWorkspace?.name ? `${currentWorkspace?.name} - All Views` : undefined;
@@ -36,7 +39,7 @@ const WorkspaceViewsPage = observer(() => {
/>
</div>
<div className="flex flex-col h-full w-full vertical-scrollbar scrollbar-lg">
- {DEFAULT_GLOBAL_VIEWS_LIST.filter((v) => v.label.toLowerCase().includes(query.toLowerCase())).map(
+ {DEFAULT_GLOBAL_VIEWS_LIST.filter((v) => t(v.i18n_label).toLowerCase().includes(query.toLowerCase())).map(
(option) => (
<GlobalDefaultViewListItem key={option.key} view={option} />
)
diff --git a/web/app/accounts/forgot-password/page.tsx b/web/app/accounts/forgot-password/page.tsx
index 91516c5b95..22a241db65 100644
--- a/web/app/accounts/forgot-password/page.tsx
+++ b/web/app/accounts/forgot-password/page.tsx
@@ -1,5 +1,6 @@
"use client";
+import { observer } from "mobx-react";
import Image from "next/image";
import Link from "next/link";
import { useSearchParams } from "next/navigation";
@@ -7,10 +8,10 @@ import { useTheme } from "next-themes";
import { Controller, useForm } from "react-hook-form";
// icons
import { CircleCheck } from "lucide-react";
-// ui
+// plane imports
+import { FORGOT_PASS_LINK, NAVIGATE_TO_SIGNUP } from "@plane/constants";
+import { useTranslation } from "@plane/i18n";
import { Button, Input, TOAST_TYPE, getButtonStyling, setToast } from "@plane/ui";
-// constants
-import { FORGOT_PASS_LINK, NAVIGATE_TO_SIGNUP } from "@/constants/event-tracker";
// helpers
import { EPageTypes } from "@/helpers/authentication.helper";
import { cn } from "@/helpers/common.helper";
@@ -20,12 +21,12 @@ import { useEventTracker } from "@/hooks/store";
import useTimer from "@/hooks/use-timer";
// wrappers
import { AuthenticationWrapper } from "@/lib/wrappers";
-// services
// images
import PlaneBackgroundPatternDark from "@/public/auth/background-pattern-dark.svg";
import PlaneBackgroundPattern from "@/public/auth/background-pattern.svg";
import BlackHorizontalLogo from "@/public/plane-logos/black-horizontal-with-blue-logo.png";
import WhiteHorizontalLogo from "@/public/plane-logos/white-horizontal-with-blue-logo.png";
+// services
import { AuthService } from "@/services/auth.service";
type TForgotPasswordFormValues = {
@@ -39,10 +40,12 @@ const defaultValues: TForgotPasswordFormValues = {
// services
const authService = new AuthService();
-export default function ForgotPasswordPage() {
+const ForgotPasswordPage = observer(() => {
// search params
const searchParams = useSearchParams();
const email = searchParams.get("email");
+ // plane hooks
+ const { t } = useTranslation();
// store hooks
const { captureEvent } = useEventTracker();
// hooks
@@ -73,9 +76,8 @@ export default function ForgotPasswordPage() {
});
setToast({
type: TOAST_TYPE.SUCCESS,
- title: "Email sent",
- message:
- "Check your inbox for a link to reset your password. If it doesn't appear within a few minutes, check your spam folder.",
+ title: t("auth.forgot_password.toast.success.title"),
+ message: t("auth.forgot_password.toast.success.message"),
});
setResendCodeTimer(30);
})
@@ -85,8 +87,8 @@ export default function ForgotPasswordPage() {
});
setToast({
type: TOAST_TYPE.ERROR,
- title: "Error!",
- message: err?.error ?? "Something went wrong. Please try again.",
+ title: t("auth.forgot_password.toast.error.title"),
+ message: err?.error ?? t("auth.forgot_password.toast.error.message"),
});
});
};
@@ -111,13 +113,13 @@ export default function ForgotPasswordPage() {
</Link>
</div>
<div className="flex flex-col items-end sm:items-center sm:gap-2 sm:flex-row text-center text-sm font-medium text-onboarding-text-300">
- New to Plane?{" "}
+ {t("auth.common.new_to_plane")}
<Link
href="/"
onClick={() => captureEvent(NAVIGATE_TO_SIGNUP, {})}
className="font-semibold text-custom-primary-100 hover:underline"
>
- Create an account
+ {t("auth.common.create_account")}
</Link>
</div>
</div>
@@ -125,23 +127,21 @@ export default function ForgotPasswordPage() {
<div className="relative flex flex-col space-y-6">
<div className="text-center space-y-1 py-4">
<h3 className="flex gap-4 justify-center text-3xl font-bold text-onboarding-text-100">
- Reset your password
+ {t("auth.forgot_password.title")}
</h3>
- <p className="font-medium text-onboarding-text-400">
- Enter your user account{"'"}s verified email address and we will send you a password reset link.
- </p>
+ <p className="font-medium text-onboarding-text-400">{t("auth.forgot_password.description")}</p>
</div>
<form onSubmit={handleSubmit(handleForgotPassword)} className="mt-5 space-y-4">
<div className="space-y-1">
<label className="text-sm text-onboarding-text-300 font-medium" htmlFor="email">
- Email
+ {t("auth.common.email.label")}
</label>
<Controller
control={control}
name="email"
rules={{
- required: "Email is required",
- validate: (value) => checkEmailValidity(value) || "Email is invalid",
+ required: t("auth.common.email.errors.required"),
+ validate: (value) => checkEmailValidity(value) || t("auth.common.email.errors.invalid"),
}}
render={({ field: { value, onChange, ref } }) => (
<Input
@@ -152,7 +152,7 @@ export default function ForgotPasswordPage() {
onChange={onChange}
ref={ref}
hasError={Boolean(errors.email)}
- placeholder="[email protected]"
+ placeholder={t("auth.common.email.placeholder")}
className="h-[46px] w-full border border-onboarding-border-100 !bg-onboarding-background-200 pr-12 placeholder:text-onboarding-text-400"
autoComplete="on"
disabled={resendTimerCode > 0}
@@ -162,7 +162,7 @@ export default function ForgotPasswordPage() {
{resendTimerCode > 0 && (
<p className="flex w-full items-start px-1 gap-1 text-xs font-medium text-green-700">
<CircleCheck height={12} width={12} className="mt-0.5" />
- We sent the reset link to your email address
+ {t("auth.forgot_password.email_sent")}
</p>
)}
</div>
@@ -174,10 +174,12 @@ export default function ForgotPasswordPage() {
disabled={!isValid}
loading={isSubmitting || resendTimerCode > 0}
>
- {resendTimerCode > 0 ? `Resend in ${resendTimerCode} seconds` : "Send reset link"}
+ {resendTimerCode > 0
+ ? t("auth.common.resend_in", { seconds: resendTimerCode })
+ : t("auth.forgot_password.send_reset_link")}
</Button>
<Link href="/" className={cn("w-full", getButtonStyling("link-neutral", "lg"))}>
- Back to sign in
+ {t("auth.common.back_to_sign_in")}
</Link>
</form>
</div>
@@ -186,4 +188,6 @@ export default function ForgotPasswordPage() {
</div>
</AuthenticationWrapper>
);
-}
+});
+
+export default ForgotPasswordPage;
diff --git a/web/app/accounts/reset-password/page.tsx b/web/app/accounts/reset-password/page.tsx
index 04d6e3115b..e0230f205f 100644
--- a/web/app/accounts/reset-password/page.tsx
+++ b/web/app/accounts/reset-password/page.tsx
@@ -1,6 +1,7 @@
"use client";
import { useEffect, useMemo, useState } from "react";
+import { observer } from "mobx-react";
import Image from "next/image";
import Link from "next/link";
import { useSearchParams } from "next/navigation";
@@ -8,6 +9,7 @@ import { useSearchParams } from "next/navigation";
import { useTheme } from "next-themes";
import { Eye, EyeOff } from "lucide-react";
// ui
+import { useTranslation } from "@plane/i18n";
import { Button, Input } from "@plane/ui";
// components
import { AuthBanner, PasswordStrengthMeter } from "@/components/account";
@@ -45,7 +47,7 @@ const defaultValues: TResetPasswordFormValues = {
// services
const authService = new AuthService();
-export default function ResetPasswordPage() {
+const ResetPasswordPage = observer(() => {
// search params
const searchParams = useSearchParams();
const uidb64 = searchParams.get("uidb64");
@@ -65,7 +67,8 @@ export default function ResetPasswordPage() {
const [isPasswordInputFocused, setIsPasswordInputFocused] = useState(false);
const [isRetryPasswordInputFocused, setIsRetryPasswordInputFocused] = useState(false);
const [errorInfo, setErrorInfo] = useState<TAuthErrorInfo | undefined>(undefined);
-
+ // plane hooks
+ const { t } = useTranslation();
// hooks
const { resolvedTheme } = useTheme();
@@ -127,9 +130,9 @@ export default function ResetPasswordPage() {
<div className="relative flex flex-col space-y-6">
<div className="text-center space-y-1 py-4">
<h3 className="flex gap-4 justify-center text-3xl font-bold text-onboarding-text-100">
- Set new password
+ {t("auth.reset_password.title")}
</h3>
- <p className="font-medium text-onboarding-text-400">Secure your account with a strong password</p>
+ <p className="font-medium text-onboarding-text-400">{t("auth.reset_password.description")}</p>
</div>
{errorInfo && errorInfo?.type === EErrorAlertType.BANNER_ALERT && (
<AuthBanner bannerData={errorInfo} handleBannerData={(value) => setErrorInfo(value)} />
@@ -142,7 +145,7 @@ export default function ResetPasswordPage() {
<input type="hidden" name="csrfmiddlewaretoken" value={csrfToken} />
<div className="space-y-1">
<label className="text-sm text-onboarding-text-300 font-medium" htmlFor="email">
- Email
+ {t("auth.common.email.label")}
</label>
<div className="relative flex items-center rounded-md bg-onboarding-background-200">
<Input
@@ -151,7 +154,7 @@ export default function ResetPasswordPage() {
type="email"
value={resetFormData.email}
//hasError={Boolean(errors.email)}
- placeholder="[email protected]"
+ placeholder={t("auth.common.email.placeholder")}
className="h-[46px] w-full border border-onboarding-border-100 !bg-onboarding-background-200 pr-12 text-onboarding-text-400 cursor-not-allowed"
autoComplete="on"
disabled
@@ -160,7 +163,7 @@ export default function ResetPasswordPage() {
</div>
<div className="space-y-1">
<label className="text-sm text-onboarding-text-300 font-medium" htmlFor="password">
- Password
+ {t("auth.common.password.label")}
</label>
<div className="relative flex items-center rounded-md bg-onboarding-background-200">
<Input
@@ -169,7 +172,7 @@ export default function ResetPasswordPage() {
value={resetFormData.password}
onChange={(e) => handleFormChange("password", e.target.value)}
//hasError={Boolean(errors.password)}
- placeholder="Enter password"
+ placeholder={t("auth.common.password.placeholder")}
className="h-[46px] w-full border border-onboarding-border-100 !bg-onboarding-background-200 pr-12 placeholder:text-onboarding-text-400"
minLength={8}
onFocus={() => setIsPasswordInputFocused(true)}
@@ -193,7 +196,7 @@ export default function ResetPasswordPage() {
</div>
<div className="space-y-1">
<label className="text-sm text-onboarding-text-300 font-medium" htmlFor="confirm_password">
- Confirm password
+ {t("auth.common.password.confirm_password.label")}
</label>
<div className="relative flex items-center rounded-md bg-onboarding-background-200">
<Input
@@ -201,7 +204,7 @@ export default function ResetPasswordPage() {
name="confirm_password"
value={resetFormData.confirm_password}
onChange={(e) => handleFormChange("confirm_password", e.target.value)}
- placeholder="Confirm password"
+ placeholder={t("auth.common.password.confirm_password.placeholder")}
className="h-[46px] w-full border border-onboarding-border-100 !bg-onboarding-background-200 pr-12 placeholder:text-onboarding-text-400"
onFocus={() => setIsRetryPasswordInputFocused(true)}
onBlur={() => setIsRetryPasswordInputFocused(false)}
@@ -220,10 +223,12 @@ export default function ResetPasswordPage() {
</div>
{!!resetFormData.confirm_password &&
resetFormData.password !== resetFormData.confirm_password &&
- renderPasswordMatchError && <span className="text-sm text-red-500">Passwords don{"'"}t match</span>}
+ renderPasswordMatchError && (
+ <span className="text-sm text-red-500">{t("auth.common.password.errors.match")}</span>
+ )}
</div>
<Button type="submit" variant="primary" className="w-full" size="lg" disabled={isButtonDisabled}>
- Set password
+ {t("auth.common.password.submit")}
</Button>
</form>
</div>
@@ -232,4 +237,6 @@ export default function ResetPasswordPage() {
</div>
</AuthenticationWrapper>
);
-}
+});
+
+export default ResetPasswordPage;
diff --git a/web/app/accounts/set-password/page.tsx b/web/app/accounts/set-password/page.tsx
index f3ac35b76f..5bfa7c08f5 100644
--- a/web/app/accounts/set-password/page.tsx
+++ b/web/app/accounts/set-password/page.tsx
@@ -8,7 +8,8 @@ import { useSearchParams } from "next/navigation";
// icons
import { useTheme } from "next-themes";
import { Eye, EyeOff } from "lucide-react";
-// ui
+// plane imports
+import { useTranslation } from "@plane/i18n";
import { Button, Input, TOAST_TYPE, setToast } from "@plane/ui";
// components
import { PasswordStrengthMeter } from "@/components/account";
@@ -60,9 +61,10 @@ const SetPasswordPage = observer(() => {
const [csrfToken, setCsrfToken] = useState<string | undefined>(undefined);
const [isPasswordInputFocused, setIsPasswordInputFocused] = useState(false);
const [isRetryPasswordInputFocused, setIsRetryPasswordInputFocused] = useState(false);
+ // plane hooks
+ const { t } = useTranslation();
// hooks
const { resolvedTheme } = useTheme();
- // hooks
const { data: user, handleSetPassword } = useUser();
useEffect(() => {
@@ -95,8 +97,8 @@ const SetPasswordPage = observer(() => {
} catch (err: any) {
setToast({
type: TOAST_TYPE.ERROR,
- title: "Error!",
- message: err?.error ?? "Something went wrong. Please try again.",
+ title: t("common.errors.default.title"),
+ message: err?.error ?? t("common.errors.default.message"),
});
}
};
@@ -108,7 +110,8 @@ const SetPasswordPage = observer(() => {
const logo = resolvedTheme === "light" ? BlackHorizontalLogo : WhiteHorizontalLogo;
return (
- <AuthenticationWrapper pageType={EPageTypes.SET_PASSWORD}>
+ // TODO: change to EPageTypes.SET_PASSWORD
+ <AuthenticationWrapper pageType={EPageTypes.NON_AUTHENTICATED}>
<div className="relative w-screen h-screen overflow-hidden">
<div className="absolute inset-0 z-0">
<Image
@@ -129,14 +132,14 @@ const SetPasswordPage = observer(() => {
<div className="relative flex flex-col space-y-6">
<div className="text-center space-y-1 py-4">
<h3 className="flex gap-4 justify-center text-3xl font-bold text-onboarding-text-100">
- Secure your account
+ {t("auth.set_password.title")}
</h3>
- <p className="font-medium text-onboarding-text-400">Setting password helps you login securely</p>
+ <p className="font-medium text-onboarding-text-400">{t("auth.set_password.description")}</p>
</div>
<form className="mt-5 space-y-4" onSubmit={(e) => handleSubmit(e)}>
<div className="space-y-1">
<label className="text-sm text-onboarding-text-300 font-medium" htmlFor="email">
- Email
+ {t("auth.common.email.label")}
</label>
<div className="relative flex items-center rounded-md bg-onboarding-background-200">
<Input
@@ -145,7 +148,7 @@ const SetPasswordPage = observer(() => {
type="email"
value={user?.email}
//hasError={Boolean(errors.email)}
- placeholder="[email protected]"
+ placeholder={t("auth.common.email.placeholder")}
className="h-[46px] w-full border border-onboarding-border-100 !bg-onboarding-background-200 pr-12 text-onboarding-text-400 cursor-not-allowed"
autoComplete="on"
disabled
@@ -154,7 +157,7 @@ const SetPasswordPage = observer(() => {
</div>
<div className="space-y-1">
<label className="text-sm text-onboarding-text-300 font-medium" htmlFor="password">
- Set a password
+ {t("auth.common.password.label")}
</label>
<div className="relative flex items-center rounded-md bg-onboarding-background-200">
<Input
@@ -163,7 +166,7 @@ const SetPasswordPage = observer(() => {
value={passwordFormData.password}
onChange={(e) => handleFormChange("password", e.target.value)}
//hasError={Boolean(errors.password)}
- placeholder="Enter password"
+ placeholder={t("auth.common.password.placeholder")}
className="h-[46px] w-full border border-onboarding-border-100 !bg-onboarding-background-200 pr-12 placeholder:text-onboarding-text-400"
minLength={8}
onFocus={() => setIsPasswordInputFocused(true)}
@@ -187,7 +190,7 @@ const SetPasswordPage = observer(() => {
</div>
<div className="space-y-1">
<label className="text-sm text-onboarding-text-300 font-medium" htmlFor="confirm_password">
- Confirm password
+ {t("auth.common.password.confirm_password.label")}
</label>
<div className="relative flex items-center rounded-md bg-onboarding-background-200">
<Input
@@ -195,7 +198,7 @@ const SetPasswordPage = observer(() => {
name="confirm_password"
value={passwordFormData.confirm_password}
onChange={(e) => handleFormChange("confirm_password", e.target.value)}
- placeholder="Confirm password"
+ placeholder={t("auth.common.password.confirm_password.placeholder")}
className="h-[46px] w-full border border-onboarding-border-100 !bg-onboarding-background-200 pr-12 placeholder:text-onboarding-text-400"
onFocus={() => setIsRetryPasswordInputFocused(true)}
onBlur={() => setIsRetryPasswordInputFocused(false)}
@@ -214,10 +217,12 @@ const SetPasswordPage = observer(() => {
</div>
{!!passwordFormData.confirm_password &&
passwordFormData.password !== passwordFormData.confirm_password &&
- renderPasswordMatchError && <span className="text-sm text-red-500">Passwords don{"'"}t match</span>}
+ renderPasswordMatchError && (
+ <span className="text-sm text-red-500">{t("auth.common.password.errors.match")}</span>
+ )}
</div>
<Button type="submit" variant="primary" className="w-full" size="lg" disabled={isButtonDisabled}>
- Continue
+ {t("common.continue")}
</Button>
</form>
</div>
diff --git a/web/app/create-workspace/page.tsx b/web/app/create-workspace/page.tsx
index 77b71492f3..8425320345 100644
--- a/web/app/create-workspace/page.tsx
+++ b/web/app/create-workspace/page.tsx
@@ -42,11 +42,12 @@ const CreateWorkspacePage = observer(() => {
// methods
const getMailtoHref = () => {
- const subject = t("workspace_request_subject");
- const body = t("workspace_request_body")
- .replace("{{firstName}}", currentUser?.first_name || "")
- .replace("{{lastName}}", currentUser?.last_name || "")
- .replace("{{email}}", currentUser?.email || "");
+ const subject = t("workspace_creation.request_email.subject");
+ const body = t("workspace_creation.request_email.body", {
+ firstName: currentUser?.first_name || "",
+ lastName: currentUser?.last_name || "",
+ email: currentUser?.email || "",
+ });
return `mailto:?subject=${encodeURIComponent(subject)}&body=${encodeURIComponent(body)}`;
};
@@ -67,7 +68,7 @@ const CreateWorkspacePage = observer(() => {
href="/"
>
<div className="h-[30px] w-[133px]">
- <Image src={logo} alt={t("plane_logo")} />
+ <Image src={logo} alt="Plane logo" />
</div>
</Link>
<div className="absolute right-4 top-1/4 -translate-y-1/2 text-sm text-custom-text-100 sm:fixed sm:right-16 sm:top-12 sm:translate-y-0 sm:py-5">
@@ -77,30 +78,25 @@ const CreateWorkspacePage = observer(() => {
<div className="relative flex h-full justify-center px-8 pb-8 sm:w-10/12 sm:items-center sm:justify-start sm:p-0 sm:pr-[8.33%] md:w-9/12 lg:w-4/5">
{isWorkspaceCreationDisabled ? (
<div className="w-4/5 h-full flex flex-col items-center justify-center text-lg font-medium gap-1">
- <Image
- src={WorkspaceCreationDisabled}
- width={200}
- alt={t("workspace_creation_disabled")}
- className="mb-4"
- />
+ <Image src={WorkspaceCreationDisabled} width={200} alt="Workspace creation disabled" className="mb-4" />
<div className="text-lg font-medium text-center">
- {t("only_your_instance_admin_can_create_workspaces")}
+ {t("workspace_creation.errors.creation_disabled.title")}
</div>
<p className="text-sm text-custom-text-300 break-words text-center">
- {t("only_your_instance_admin_can_create_workspaces_description")}
+ {t("workspace_creation.errors.creation_disabled.description")}
</p>
<div className="flex gap-4 mt-6">
<Button variant="primary" onClick={() => router.back()}>
- {t("go_back")}
+ {t("common.go_back")}
</Button>
<a href={getMailtoHref()} className={getButtonStyling("outline-primary", "md")}>
- {t("request_instance_admin")}
+ {t("workspace_creation.errors.creation_disabled.request_button")}
</a>
</div>
</div>
) : (
<div className="w-full space-y-7 sm:space-y-10">
- <h4 className="text-2xl font-semibold">{t("create_your_workspace")}</h4>
+ <h4 className="text-2xl font-semibold">{t("workspace_creation.heading")}</h4>
<div className="sm:w-3/4 md:w-2/5">
<CreateWorkspaceForm
onSubmit={onSubmit}
diff --git a/web/app/invitations/page.tsx b/web/app/invitations/page.tsx
index 705294430d..1c5887beff 100644
--- a/web/app/invitations/page.tsx
+++ b/web/app/invitations/page.tsx
@@ -8,6 +8,8 @@ import Link from "next/link";
import { useTheme } from "next-themes";
import useSWR, { mutate } from "swr";
import { CheckCircle2 } from "lucide-react";
+// plane imports
+import { ROLE, MEMBER_ACCEPTED, EUserPermissions } from "@plane/constants";
import { useTranslation } from "@plane/i18n";
// types
import type { IWorkspaceMemberInvitation } from "@plane/types";
@@ -15,10 +17,7 @@ import type { IWorkspaceMemberInvitation } from "@plane/types";
import { Button, TOAST_TYPE, setToast } from "@plane/ui";
// components
import { EmptyState } from "@/components/common";
-// constants
-import { MEMBER_ACCEPTED } from "@/constants/event-tracker";
import { USER_WORKSPACES_LIST } from "@/constants/fetch-keys";
-import { ROLE } from "@/constants/workspace";
// helpers
import { truncateText } from "@/helpers/string.helper";
import { getUserRole } from "@/helpers/user.helper";
@@ -27,8 +26,6 @@ import { useEventTracker, useUser, useUserProfile, useWorkspace } from "@/hooks/
import { useAppRouter } from "@/hooks/use-app-router";
// services
import { AuthenticationWrapper } from "@/lib/wrappers";
-// plane web constants
-import { EUserPermissions } from "@/plane-web/constants/user-permissions";
// plane web services
import { WorkspaceService } from "@/plane-web/services";
// images
diff --git a/web/app/layout.tsx b/web/app/layout.tsx
index 648f70357d..71b7b71d28 100644
--- a/web/app/layout.tsx
+++ b/web/app/layout.tsx
@@ -6,7 +6,8 @@ import "@/styles/command-pallette.css";
import "@/styles/emoji.css";
import "@/styles/react-day-picker.css";
// meta data info
-import { SITE_NAME, SITE_DESCRIPTION } from "@/constants/meta";
+
+import { SITE_DESCRIPTION, SITE_NAME } from "@plane/constants";
// helpers
import { API_BASE_URL, cn } from "@/helpers/common.helper";
// local
@@ -17,12 +18,11 @@ export const metadata: Metadata = {
description: SITE_DESCRIPTION,
openGraph: {
title: "Plane | Simple, extensible, open-source project management tool.",
- description:
- "Open-source project management tool to manage issues, sprints, and product roadmaps with peace of mind.",
+ description: "Open-source project management tool to manage work items, cycles, and product roadmaps easily",
url: "https://app.plane.so/",
},
keywords:
- "software development, plan, ship, software, accelerate, code management, release management, project management, issue tracking, agile, scrum, kanban, collaboration",
+ "software development, plan, ship, software, accelerate, code management, release management, project management, work item tracking, agile, scrum, kanban, collaboration",
twitter: {
site: "@planepowers",
},
diff --git a/web/app/onboarding/page.tsx b/web/app/onboarding/page.tsx
index 6d915dfcbc..a26bef3a60 100644
--- a/web/app/onboarding/page.tsx
+++ b/web/app/onboarding/page.tsx
@@ -4,6 +4,7 @@ import { useEffect, useState } from "react";
import { observer } from "mobx-react";
import useSWR from "swr";
// types
+import { USER_ONBOARDING_COMPLETED } from "@plane/constants";
import { TOnboardingSteps, TUserProfile } from "@plane/types";
// ui
import { TOAST_TYPE, setToast } from "@plane/ui";
@@ -11,7 +12,6 @@ import { TOAST_TYPE, setToast } from "@plane/ui";
import { LogoSpinner } from "@/components/common";
import { InviteMembers, CreateOrJoinWorkspaces, ProfileSetup } from "@/components/onboarding";
// constants
-import { USER_ONBOARDING_COMPLETED } from "@/constants/event-tracker";
import { USER_WORKSPACES_LIST } from "@/constants/fetch-keys";
// helpers
import { EPageTypes } from "@/helpers/authentication.helper";
diff --git a/web/app/page.tsx b/web/app/page.tsx
index 63ef855cab..f63845fcb9 100644
--- a/web/app/page.tsx
+++ b/web/app/page.tsx
@@ -7,10 +7,11 @@ import Link from "next/link";
// ui
import { useTheme } from "next-themes";
// components
+import { NAVIGATE_TO_SIGNUP } from "@plane/constants";
+import { useTranslation } from "@plane/i18n";
import { AuthRoot } from "@/components/account";
import { PageHead } from "@/components/core";
// constants
-import { NAVIGATE_TO_SIGNUP } from "@/constants/event-tracker";
// helpers
import { EAuthModes, EPageTypes } from "@/helpers/authentication.helper";
// hooks
@@ -27,6 +28,8 @@ import WhiteHorizontalLogo from "@/public/plane-logos/white-horizontal-with-blue
const HomePage = observer(() => {
const { resolvedTheme } = useTheme();
+ // plane hooks
+ const { t } = useTranslation();
// hooks
const { captureEvent } = useEventTracker();
@@ -37,7 +40,7 @@ const HomePage = observer(() => {
<AuthenticationWrapper pageType={EPageTypes.NON_AUTHENTICATED}>
<>
<div className="relative w-screen h-screen overflow-hidden">
- <PageHead title="Log in - Plane" />
+ <PageHead title={t("auth.common.login") + " - Plane"} />
<div className="absolute inset-0 z-0">
<Image
src={resolvedTheme === "dark" ? PlaneBackgroundPatternDark : PlaneBackgroundPattern}
@@ -53,13 +56,13 @@ const HomePage = observer(() => {
</Link>
</div>
<div className="flex flex-col items-end sm:items-center sm:gap-2 sm:flex-row text-center text-sm font-medium text-onboarding-text-300">
- New to Plane?{" "}
+ {t("auth.common.new_to_plane")}
<Link
href="/sign-up"
onClick={() => captureEvent(NAVIGATE_TO_SIGNUP, {})}
className="font-semibold text-custom-primary-100 hover:underline"
>
- Create an account
+ {t("auth.common.create_account")}
</Link>
</div>
</div>
diff --git a/web/app/profile/activity/page.tsx b/web/app/profile/activity/page.tsx
index a2a8cad851..ca6c9511d0 100644
--- a/web/app/profile/activity/page.tsx
+++ b/web/app/profile/activity/page.tsx
@@ -7,24 +7,27 @@ import { useTranslation } from "@plane/i18n";
import { Button } from "@plane/ui";
// components
import { PageHead } from "@/components/core";
-import { EmptyState } from "@/components/empty-state";
+import { DetailedEmptyState } from "@/components/empty-state";
import {
ProfileActivityListPage,
ProfileSettingContentHeader,
ProfileSettingContentWrapper,
} from "@/components/profile";
-// constants
-import { EmptyStateType } from "@/constants/empty-state";
+// hooks
+import { useResolvedAssetPath } from "@/hooks/use-resolved-asset-path";
const PER_PAGE = 100;
const ProfileActivityPage = observer(() => {
- const { t } = useTranslation();
// states
const [pageCount, setPageCount] = useState(1);
const [totalPages, setTotalPages] = useState(0);
const [resultsCount, setResultsCount] = useState(0);
const [isEmpty, setIsEmpty] = useState(false);
+ // plane hooks
+ const { t } = useTranslation();
+ // derived values
+ const resolvedPath = useResolvedAssetPath({ basePath: "/empty-state/profile/activity" });
const updateTotalPages = (count: number) => setTotalPages(count);
@@ -50,7 +53,13 @@ const ProfileActivityPage = observer(() => {
const isLoadMoreVisible = pageCount < totalPages && resultsCount !== 0;
if (isEmpty) {
- return <EmptyState type={EmptyStateType.PROFILE_ACTIVITY} layout="screen-detailed" />;
+ return (
+ <DetailedEmptyState
+ title={t("profile.empty_state.activity.title")}
+ description={t("profile.empty_state.activity.description")}
+ assetPath={resolvedPath}
+ />
+ );
}
return (
diff --git a/web/app/profile/appearance/page.tsx b/web/app/profile/appearance/page.tsx
index 5b1a96c5be..c89bcdf3c3 100644
--- a/web/app/profile/appearance/page.tsx
+++ b/web/app/profile/appearance/page.tsx
@@ -3,6 +3,8 @@
import { useEffect, useState } from "react";
import { observer } from "mobx-react";
import { useTheme } from "next-themes";
+// plane imports
+import { I_THEME_OPTION, THEME_OPTIONS } from "@plane/constants";
import { useTranslation } from "@plane/i18n";
import { IUserTheme } from "@plane/types";
import { setPromiseToast } from "@plane/ui";
@@ -11,7 +13,6 @@ import { LogoSpinner } from "@/components/common";
import { CustomThemeSelector, ThemeSwitch, PageHead } from "@/components/core";
import { ProfileSettingContentHeader, ProfileSettingContentWrapper } from "@/components/profile";
// constants
-import { I_THEME_OPTION, THEME_OPTIONS } from "@/constants/themes";
// helpers
import { applyTheme, unsetCustomCssVariables } from "@/helpers/theme.helper";
// hooks
diff --git a/web/app/profile/notifications/page.tsx b/web/app/profile/notifications/page.tsx
index cbdcd147d7..5e154fdffc 100644
--- a/web/app/profile/notifications/page.tsx
+++ b/web/app/profile/notifications/page.tsx
@@ -25,7 +25,7 @@ export default function ProfileNotificationPage() {
return (
<>
- <PageHead title={`${t("profile")} - ${t("notifications")}`} />
+ <PageHead title={`${t("profile.label")} - ${t("notifications")}`} />
<ProfileSettingContentWrapper>
<ProfileSettingContentHeader
title={t("email_notifications")}
diff --git a/web/app/profile/page.tsx b/web/app/profile/page.tsx
index 22a0d4ba14..66b59ab9f6 100644
--- a/web/app/profile/page.tsx
+++ b/web/app/profile/page.tsx
@@ -23,7 +23,7 @@ const ProfileSettingsPage = observer(() => {
return (
<>
- <PageHead title={`${t("profile")} - ${t("general_settings")}`} />
+ <PageHead title={`${t("profile.label")} - ${t("general_settings")}`} />
<ProfileSettingContentWrapper>
<ProfileForm user={currentUser} profile={userProfile.data} />
</ProfileSettingContentWrapper>
diff --git a/web/app/profile/security/page.tsx b/web/app/profile/security/page.tsx
index 48996de34f..86098f122b 100644
--- a/web/app/profile/security/page.tsx
+++ b/web/app/profile/security/page.tsx
@@ -79,16 +79,16 @@ const SecurityPage = observer(() => {
setShowPassword(defaultShowPassword);
setToast({
type: TOAST_TYPE.SUCCESS,
- title: t("success"),
- message: t("password_changed_successfully"),
+ title: t("auth.common.password.toast.change_password.success.title"),
+ message: t("auth.common.password.toast.change_password.success.message"),
});
} catch (err: any) {
const errorInfo = authErrorHandler(err.error_code?.toString());
setToast({
type: TOAST_TYPE.ERROR,
- title: errorInfo?.title ?? "Error!",
+ title: errorInfo?.title ?? t("auth.common.password.toast.error.title"),
message:
- typeof errorInfo?.message === "string" ? errorInfo.message : t("something_went_wrong_please_try_again"),
+ typeof errorInfo?.message === "string" ? errorInfo.message : t("auth.common.password.toast.error.message"),
});
}
};
@@ -112,17 +112,17 @@ const SecurityPage = observer(() => {
<>
<PageHead title="Profile - Security" />
<ProfileSettingContentWrapper>
- <ProfileSettingContentHeader title={t("change_password")} />
+ <ProfileSettingContentHeader title={t("auth.common.password.change_password.label.default")} />
<form onSubmit={handleSubmit(handleChangePassword)} className="flex flex-col gap-8 py-6">
<div className="flex flex-col gap-10 w-full max-w-96">
<div className="space-y-1">
- <h4 className="text-sm">{t("current_password")}</h4>
+ <h4 className="text-sm">{t("auth.common.password.current_password.label")}</h4>
<div className="relative flex items-center rounded-md">
<Controller
control={control}
name="old_password"
rules={{
- required: t("this_field_is_required"),
+ required: t("common.errors.required"),
}}
render={({ field: { value, onChange } }) => (
<Input
@@ -151,20 +151,20 @@ const SecurityPage = observer(() => {
{errors.old_password && <span className="text-xs text-red-500">{errors.old_password.message}</span>}
</div>
<div className="space-y-1">
- <h4 className="text-sm">{t("new_password")}</h4>
+ <h4 className="text-sm">{t("auth.common.password.new_password.label")}</h4>
<div className="relative flex items-center rounded-md">
<Controller
control={control}
name="new_password"
rules={{
- required: t("this_field_is_required"),
+ required: t("common.errors.required"),
}}
render={({ field: { value, onChange } }) => (
<Input
id="new_password"
type={showPassword?.password ? "text" : "password"}
value={value}
- placeholder={t("new_password")}
+ placeholder={t("auth.common.password.new_password.placeholder")}
onChange={onChange}
className="w-full"
hasError={Boolean(errors.new_password)}
@@ -191,19 +191,19 @@ const SecurityPage = observer(() => {
)}
</div>
<div className="space-y-1">
- <h4 className="text-sm">{t("confirm_password")}</h4>
+ <h4 className="text-sm">{t("auth.common.password.confirm_password.label")}</h4>
<div className="relative flex items-center rounded-md">
<Controller
control={control}
name="confirm_password"
rules={{
- required: t("this_field_is_required"),
+ required: t("common.errors.required"),
}}
render={({ field: { value, onChange } }) => (
<Input
id="confirm_password"
type={showPassword?.confirmPassword ? "text" : "password"}
- placeholder={t("confirm_password")}
+ placeholder={t("auth.common.password.confirm_password.placeholder")}
value={value}
onChange={onChange}
className="w-full"
@@ -226,14 +226,16 @@ const SecurityPage = observer(() => {
)}
</div>
{!!confirmPassword && password !== confirmPassword && renderPasswordMatchError && (
- <span className="text-sm text-red-500">{t("passwords_dont_match")}</span>
+ <span className="text-sm text-red-500">{t("auth.common.password.errors.match")}</span>
)}
</div>
</div>
<div className="flex items-center justify-between py-2">
<Button variant="primary" type="submit" loading={isSubmitting} disabled={isButtonDisabled}>
- {isSubmitting ? `${t("changing_password")}...` : t("change_password")}
+ {isSubmitting
+ ? `${t("auth.common.password.change_password.label.submitting")}`
+ : t("auth.common.password.change_password.label.default")}
</Button>
</div>
</form>
diff --git a/web/app/profile/sidebar.tsx b/web/app/profile/sidebar.tsx
index d3b9864216..07fd746c64 100644
--- a/web/app/profile/sidebar.tsx
+++ b/web/app/profile/sidebar.tsx
@@ -5,15 +5,26 @@ import { observer } from "mobx-react";
import Link from "next/link";
import { usePathname } from "next/navigation";
// icons
-import { ChevronLeft, LogOut, MoveLeft, Plus, UserPlus } from "lucide-react";
+import {
+ ChevronLeft,
+ LogOut,
+ MoveLeft,
+ Plus,
+ UserPlus,
+ Activity,
+ Bell,
+ CircleUser,
+ KeyRound,
+ Settings2,
+} from "lucide-react";
// plane imports
+import { PROFILE_ACTION_LINKS } from "@plane/constants";
import { useOutsideClickDetector } from "@plane/hooks";
import { useTranslation } from "@plane/i18n";
import { TOAST_TYPE, Tooltip, setToast } from "@plane/ui";
// components
import { SidebarNavItem } from "@/components/sidebar";
// constants
-import { PROFILE_ACTION_LINKS } from "@/constants/profile";
// helpers
import { cn } from "@/helpers/common.helper";
import { getFileURL } from "@/helpers/file.helper";
@@ -36,6 +47,19 @@ const WORKSPACE_ACTION_LINKS = [
},
];
+export const ProjectActionIcons = ({ type, size, className }: { type: string; size?: number; className?: string }) => {
+ const icons = {
+ profile: CircleUser,
+ security: KeyRound,
+ activity: Activity,
+ appearance: Settings2,
+ notifications: Bell,
+ };
+
+ if (type === undefined) return null;
+ const Icon = icons[type as keyof typeof icons];
+ return <Icon size={size} className={className} />;
+};
export const ProfileLayoutSidebar = observer(() => {
// states
const [isSigningOut, setIsSigningOut] = useState(false);
@@ -92,8 +116,8 @@ export const ProfileLayoutSidebar = observer(() => {
.catch(() =>
setToast({
type: TOAST_TYPE.ERROR,
- title: t("error"),
- message: t("failed_to_sign_out_please_try_again"),
+ title: t("sign_out.toast.error.title"),
+ message: t("sign_out.toast.error.message"),
})
)
.finally(() => setIsSigningOut(false));
@@ -145,8 +169,9 @@ export const ProfileLayoutSidebar = observer(() => {
isActive={link.highlight(pathname)}
>
<div className="flex items-center gap-1.5 py-[1px]">
- <link.Icon className="size-4" />
- {!sidebarCollapsed && <p className="text-sm leading-5 font-medium">{t(link.key)}</p>}
+ <ProjectActionIcons type={link.key} size={16} />
+
+ {!sidebarCollapsed && <p className="text-sm leading-5 font-medium">{t(link.i18n_label)}</p>}
</div>
</SidebarNavItem>
</Tooltip>
diff --git a/web/app/provider.tsx b/web/app/provider.tsx
index 34526ffd14..b120882f7d 100644
--- a/web/app/provider.tsx
+++ b/web/app/provider.tsx
@@ -5,10 +5,9 @@ import dynamic from "next/dynamic";
import { useTheme, ThemeProvider } from "next-themes";
import { SWRConfig } from "swr";
// Plane Imports
+import { WEB_SWR_CONFIG } from "@plane/constants";
import { TranslationProvider } from "@plane/i18n";
import { Toast } from "@plane/ui";
-// constants
-import { SWR_CONFIG } from "@/constants/swr-config";
//helpers
import { resolveGeneralTheme } from "@/helpers/theme.helper";
// nprogress
@@ -47,7 +46,7 @@ export const AppProvider: FC<IAppProvider> = (props) => {
<InstanceWrapper>
<IntercomProvider>
<PostHogProvider>
- <SWRConfig value={SWR_CONFIG}>{children}</SWRConfig>
+ <SWRConfig value={WEB_SWR_CONFIG}>{children}</SWRConfig>
</PostHogProvider>
</IntercomProvider>
</InstanceWrapper>
diff --git a/web/app/sign-up/page.tsx b/web/app/sign-up/page.tsx
index f08ccbae7b..aa18cf085a 100644
--- a/web/app/sign-up/page.tsx
+++ b/web/app/sign-up/page.tsx
@@ -6,9 +6,10 @@ import Link from "next/link";
// ui
import { useTheme } from "next-themes";
// components
+import { NAVIGATE_TO_SIGNIN } from "@plane/constants";
+import { useTranslation } from "@plane/i18n";
import { AuthRoot } from "@/components/account";
// constants
-import { NAVIGATE_TO_SIGNIN } from "@/constants/event-tracker";
// helpers
import { EAuthModes, EPageTypes } from "@/helpers/authentication.helper";
// hooks
@@ -23,6 +24,8 @@ import WhiteHorizontalLogo from "@/public/plane-logos/white-horizontal-with-blue
export type AuthType = "sign-in" | "sign-up";
const SignInPage = observer(() => {
+ // plane hooks
+ const { t } = useTranslation();
// store hooks
const { captureEvent } = useEventTracker();
// hooks
@@ -48,13 +51,13 @@ const SignInPage = observer(() => {
</Link>
</div>
<div className="flex flex-col items-end sm:items-center sm:gap-2 sm:flex-row text-center text-sm font-medium text-onboarding-text-300">
- Already have an account?{" "}
+ {t("auth.common.already_have_an_account")}
<Link
href="/"
onClick={() => captureEvent(NAVIGATE_TO_SIGNIN, {})}
className="font-semibold text-custom-primary-100 hover:underline"
>
- Log in
+ {t("auth.common.login")}
</Link>
</div>
</div>
diff --git a/web/app/workspace-invitations/page.tsx b/web/app/workspace-invitations/page.tsx
index a682901989..8d981fff42 100644
--- a/web/app/workspace-invitations/page.tsx
+++ b/web/app/workspace-invitations/page.tsx
@@ -82,7 +82,7 @@ const WorkspaceInvitationPage = observer(() => {
) : (
<EmptySpace
title={`You have been invited to ${invitationDetail.workspace.name}`}
- description="Your workspace is where you'll create projects, collaborate on your issues, and organize different streams of work in your Plane account."
+ description="Your workspace is where you'll create projects, collaborate on your work items, and organize different streams of work in your Plane account."
>
<EmptySpaceItem Icon={Check} title="Accept" action={handleAccept} />
<EmptySpaceItem Icon={X} title="Ignore" action={handleReject} />
@@ -92,14 +92,14 @@ const WorkspaceInvitationPage = observer(() => {
invitationDetail?.accepted ? (
<EmptySpace
title={`You are already a member of ${invitationDetail.workspace.name}`}
- description="Your workspace is where you'll create projects, collaborate on your issues, and organize different streams of work in your Plane account."
+ description="Your workspace is where you'll create projects, collaborate on your work items, and organize different streams of work in your Plane account."
>
<EmptySpaceItem Icon={Boxes} title="Continue to home" href="/" />
</EmptySpace>
) : (
<EmptySpace
title="This invitation link is not active anymore."
- description="Your workspace is where you'll create projects, collaborate on your issues, and organize different streams of work in your Plane account."
+ description="Your workspace is where you'll create projects, collaborate on your work items, and organize different streams of work in your Plane account."
link={{ text: "Or start from an empty project", href: "/" }}
>
{!currentUser ? (
diff --git a/web/ce/components/active-cycles/workspace-active-cycles-upgrade.tsx b/web/ce/components/active-cycles/workspace-active-cycles-upgrade.tsx
index b832aa5952..e8a13f0361 100644
--- a/web/ce/components/active-cycles/workspace-active-cycles-upgrade.tsx
+++ b/web/ce/components/active-cycles/workspace-active-cycles-upgrade.tsx
@@ -38,9 +38,9 @@ export const WORKSPACE_ACTIVE_CYCLES_DETAILS = [
},
{
key: "quickly_see_make_or_break_issues",
- title: "Quickly see make-or-break issues. ",
+ title: "Quickly see make-or-break work items. ",
description:
- "Preview high-priority issues for each cycle against due dates. See all of them per cycle in one click.",
+ "Preview high-priority work items for each cycle against due dates. See all of them per cycle in one click.",
icon: AlertOctagon,
},
{
diff --git a/web/ce/components/cycles/active-cycle/root.tsx b/web/ce/components/cycles/active-cycle/root.tsx
index 5ebddc63f2..6b2ecb928b 100644
--- a/web/ce/components/cycles/active-cycle/root.tsx
+++ b/web/ce/components/cycles/active-cycle/root.tsx
@@ -3,7 +3,8 @@
import { useMemo } from "react";
import { observer } from "mobx-react";
import { Disclosure } from "@headlessui/react";
-// ui
+// plane imports
+import { useTranslation } from "@plane/i18n";
import { Row } from "@plane/ui";
// components
import {
@@ -14,10 +15,10 @@ import {
CyclesListItem,
} from "@/components/cycles";
import useCyclesDetails from "@/components/cycles/active-cycle/use-cycles-details";
-import { EmptyState } from "@/components/empty-state";
-// constants
-import { EmptyStateType } from "@/constants/empty-state";
+import { DetailedEmptyState } from "@/components/empty-state";
+// hooks
import { useCycle } from "@/hooks/store";
+import { useResolvedAssetPath } from "@/hooks/use-resolved-asset-path";
import { ActiveCycleIssueDetails } from "@/store/issue/cycle";
interface IActiveCycleDetails {
@@ -29,9 +30,13 @@ interface IActiveCycleDetails {
export const ActiveCycleRoot: React.FC<IActiveCycleDetails> = observer((props) => {
const { workspaceSlug, projectId, cycleId: propsCycleId, showHeader = true } = props;
+ // plane hooks
+ const { t } = useTranslation();
+ // store hooks
const { currentProjectActiveCycleId } = useCycle();
// derived values
const cycleId = propsCycleId ?? currentProjectActiveCycleId;
+ const activeCycleResolvedPath = useResolvedAssetPath({ basePath: "/empty-state/cycle/active" });
// fetch cycle details
const {
handleFiltersUpdate,
@@ -43,7 +48,11 @@ export const ActiveCycleRoot: React.FC<IActiveCycleDetails> = observer((props) =
() => (
<>
{!cycleId || !activeCycle ? (
- <EmptyState type={EmptyStateType.PROJECT_CYCLE_ACTIVE} size="sm" />
+ <DetailedEmptyState
+ title={t("project_cycles.empty_state.active.title")}
+ description={t("project_cycles.empty_state.active.description")}
+ assetPath={activeCycleResolvedPath}
+ />
) : (
<div className="flex flex-col border-b border-custom-border-200">
{cycleId && (
@@ -88,7 +97,7 @@ export const ActiveCycleRoot: React.FC<IActiveCycleDetails> = observer((props) =
{({ open }) => (
<>
<Disclosure.Button className="sticky top-0 z-[2] w-full flex-shrink-0 border-b border-custom-border-200 bg-custom-background-90 cursor-pointer">
- <CycleListGroupHeader title="Active cycle" type="current" isExpanded={open} />
+ <CycleListGroupHeader title={t("project_cycles.active_cycle.label")} type="current" isExpanded={open} />
</Disclosure.Button>
<Disclosure.Panel>{ActiveCyclesComponent}</Disclosure.Panel>
</>
diff --git a/web/ce/components/cycles/analytics-sidebar/base.tsx b/web/ce/components/cycles/analytics-sidebar/base.tsx
index 87f07e387c..c259a4a81d 100644
--- a/web/ce/components/cycles/analytics-sidebar/base.tsx
+++ b/web/ce/components/cycles/analytics-sidebar/base.tsx
@@ -2,6 +2,7 @@
import { FC, Fragment } from "react";
import { observer } from "mobx-react";
// plane ui
+import { useTranslation } from "@plane/i18n";
import { TCycleEstimateType } from "@plane/types";
import { Loader } from "@plane/ui";
// components
@@ -23,6 +24,7 @@ export const SidebarChart: FC<ProgressChartProps> = observer((props) => {
// hooks
const { getEstimateTypeByCycleId, getCycleById, fetchCycleDetails, fetchArchivedCycleDetails, setEstimateType } =
useCycle();
+ const { t } = useTranslation();
// derived data
const cycleDetails = validateCycleSnapshot(getCycleById(cycleId));
@@ -66,11 +68,11 @@ export const SidebarChart: FC<ProgressChartProps> = observer((props) => {
<div className="relative flex items-center gap-2">
<div className="flex items-center justify-center gap-1 text-xs">
<span className="h-2.5 w-2.5 rounded-full bg-[#A9BBD0]" />
- <span>Ideal</span>
+ <span>{t("ideal")}</span>
</div>
<div className="flex items-center justify-center gap-1 text-xs">
<span className="h-2.5 w-2.5 rounded-full bg-[#4C8FFF]" />
- <span>Current</span>
+ <span>{t("current")}</span>
</div>
</div>
{cycleStartDate && cycleEndDate && completionChartDistributionData ? (
@@ -80,7 +82,7 @@ export const SidebarChart: FC<ProgressChartProps> = observer((props) => {
startDate={cycleStartDate}
endDate={cycleEndDate}
totalIssues={estimateType === "points" ? totalEstimatePoints : totalIssues}
- plotTitle={estimateType === "points" ? "points" : "issues"}
+ plotTitle={estimateType === "points" ? t("points") : t("work_items")}
/>
</Fragment>
) : (
diff --git a/web/ce/components/issues/header.tsx b/web/ce/components/issues/header.tsx
index e231096ce6..abe44d506f 100644
--- a/web/ce/components/issues/header.tsx
+++ b/web/ce/components/issues/header.tsx
@@ -5,7 +5,8 @@ import { useParams } from "next/navigation";
// icons
import { Circle, ExternalLink } from "lucide-react";
// plane constants
-import { EIssuesStoreType } from "@plane/constants";
+import { EIssuesStoreType, EUserPermissions, EUserPermissionsLevel } from "@plane/constants";
+import { useTranslation } from "@plane/i18n";
// ui
import { Breadcrumbs, Button, LayersIcon, Tooltip, Header } from "@plane/ui";
// components
@@ -21,7 +22,6 @@ import { useAppRouter } from "@/hooks/use-app-router";
import { usePlatformOS } from "@/hooks/use-platform-os";
// plane web
import { ProjectBreadcrumb } from "@/plane-web/components/breadcrumbs";
-import { EUserPermissions, EUserPermissionsLevel } from "@/plane-web/constants/user-permissions";
export const IssuesHeader = observer(() => {
// router
@@ -31,6 +31,8 @@ export const IssuesHeader = observer(() => {
const {
issues: { getGroupIssueCount },
} = useIssues(EIssuesStoreType.PROJECT);
+ // i18n
+ const { t } = useTranslation();
const { currentProjectDetails, loader } = useProject();
@@ -57,13 +59,18 @@ export const IssuesHeader = observer(() => {
<Breadcrumbs.BreadcrumbItem
type="text"
- link={<BreadcrumbLink label="Issues" icon={<LayersIcon className="h-4 w-4 text-custom-text-300" />} />}
+ link={
+ <BreadcrumbLink
+ label={t("issue.label", { count: 2 })} // count is for pluralization
+ icon={<LayersIcon className="h-4 w-4 text-custom-text-300" />}
+ />
+ }
/>
</Breadcrumbs>
{issuesCount && issuesCount > 0 ? (
<Tooltip
isMobile={isMobile}
- tooltipContent={`There are ${issuesCount} ${issuesCount > 1 ? "issues" : "issue"} in this project`}
+ tooltipContent={`There are ${issuesCount} ${issuesCount > 1 ? "work items" : "work item"} in this project`}
position="bottom"
>
<CountChip count={issuesCount} />
@@ -78,7 +85,7 @@ export const IssuesHeader = observer(() => {
rel="noopener noreferrer"
>
<Circle className="h-1.5 w-1.5 fill-custom-primary-100" strokeWidth={2} />
- Public
+ {t("workspace_projects.network.public.title")}
<ExternalLink className="hidden h-3 w-3 group-hover:block" strokeWidth={2} />
</a>
) : (
@@ -97,12 +104,13 @@ export const IssuesHeader = observer(() => {
{canUserCreateIssue ? (
<Button
onClick={() => {
- setTrackElement("Project issues page");
+ setTrackElement("Project work items page");
toggleCreateIssueModal(true, EIssuesStoreType.PROJECT);
}}
size="sm"
>
- <div className="hidden sm:block">Add</div> Issue
+ <div className="block sm:hidden">{t("issue.label", { count: 1 })}</div>
+ <div className="hidden sm:block">{t("issue.add.label")}</div>
</Button>
) : (
<></>
diff --git a/web/ce/components/issues/issue-details/issue-identifier.tsx b/web/ce/components/issues/issue-details/issue-identifier.tsx
index fbd9439842..1e87d387ec 100644
--- a/web/ce/components/issues/issue-details/issue-identifier.tsx
+++ b/web/ce/components/issues/issue-details/issue-identifier.tsx
@@ -50,7 +50,7 @@ export const IdentifierText: React.FC<TIdentifierTextProps> = (props) => {
navigator.clipboard.writeText(identifier).then(() => {
setToast({
type: TOAST_TYPE.SUCCESS,
- title: "Issue ID copied to clipboard",
+ title: "Work item ID copied to clipboard",
});
});
}
diff --git a/web/ce/components/issues/worklog/activity/filter-root.tsx b/web/ce/components/issues/worklog/activity/filter-root.tsx
index 2d11ae3414..a4dc62a6d5 100644
--- a/web/ce/components/issues/worklog/activity/filter-root.tsx
+++ b/web/ce/components/issues/worklog/activity/filter-root.tsx
@@ -2,9 +2,9 @@
import { FC } from "react";
// components
+import { TActivityFilters, ACTIVITY_FILTER_TYPE_OPTIONS, TActivityFilterOption } from "@plane/constants";
import { ActivityFilter } from "@/components/issues";
// plane web constants
-import { TActivityFilters, ACTIVITY_FILTER_TYPE_OPTIONS, TActivityFilterOption } from "@/plane-web/constants/issues";
export type TActivityFilterRoot = {
selectedFilters: TActivityFilters[];
@@ -20,7 +20,7 @@ export const ActivityFilterRoot: FC<TActivityFilterRoot> = (props) => {
const filterKey = key as TActivityFilters;
return {
key: filterKey,
- label: value.label,
+ labelTranslationKey: value.labelTranslationKey,
isSelected: selectedFilters.includes(filterKey),
onClick: () => toggleFilter(filterKey),
};
diff --git a/web/ce/components/pages/editor/embed/issue-embed-upgrade-card.tsx b/web/ce/components/pages/editor/embed/issue-embed-upgrade-card.tsx
index d9ea1b8a07..b4f68028d8 100644
--- a/web/ce/components/pages/editor/embed/issue-embed-upgrade-card.tsx
+++ b/web/ce/components/pages/editor/embed/issue-embed-upgrade-card.tsx
@@ -18,7 +18,7 @@ export const IssueEmbedUpgradeCard: React.FC<any> = (props) => (
<div className="flex items-center gap-4">
<ProIcon className="flex-shrink-0 size-4" />
<p className="text-custom-text !text-base">
- Embed and access issues in pages seamlessly, upgrade to Plane Pro now.
+ Embed and access work items in pages seamlessly, upgrade to Plane Pro now.
</p>
</div>
<a
diff --git a/web/ce/components/projects/create/attributes.tsx b/web/ce/components/projects/create/attributes.tsx
index 4b3a2cbdd3..a40f123176 100644
--- a/web/ce/components/projects/create/attributes.tsx
+++ b/web/ce/components/projects/create/attributes.tsx
@@ -1,15 +1,14 @@
"use client";
import { FC } from "react";
import { Controller, useFormContext } from "react-hook-form";
+import { NETWORK_CHOICES, ETabIndices } from "@plane/constants";
import { useTranslation } from "@plane/i18n";
import { IProject } from "@plane/types";
// ui
import { CustomSelect } from "@plane/ui";
// components
import { MemberDropdown } from "@/components/dropdowns";
-// constants
-import { NETWORK_CHOICES } from "@/constants/project";
-import { ETabIndices } from "@/constants/tab-indices";
+import { ProjectNetworkIcon } from "@/components/project";
// helpers
import { getTabIndex } from "@/helpers/tab-indices.helper";
@@ -39,8 +38,8 @@ const ProjectAttributes: FC<Props> = (props) => {
<div className="flex items-center gap-1 h-full">
{currentNetwork ? (
<>
- <currentNetwork.icon className="h-3 w-3" />
- {currentNetwork.label}
+ <ProjectNetworkIcon iconKey={currentNetwork.iconKey} />
+ {t(currentNetwork.i18n_label)}
</>
) : (
<span className="text-custom-text-400">{t("select_network")}</span>
@@ -56,10 +55,10 @@ const ProjectAttributes: FC<Props> = (props) => {
{NETWORK_CHOICES.map((network) => (
<CustomSelect.Option key={network.key} value={network.key}>
<div className="flex items-start gap-2">
- <network.icon className="h-3.5 w-3.5" />
+ <ProjectNetworkIcon iconKey={network.iconKey} className="h-3.5 w-3.5" />
<div className="-mt-1">
- <p>{network.label}</p>
- <p className="text-xs text-custom-text-400">{network.description}</p>
+ <p>{t(network.i18n_label)}</p>
+ <p className="text-xs text-custom-text-400">{t(network.description)}</p>
</div>
</div>
</CustomSelect.Option>
diff --git a/web/ce/components/projects/create/root.tsx b/web/ce/components/projects/create/root.tsx
index 8d77d2c015..c8ba67d503 100644
--- a/web/ce/components/projects/create/root.tsx
+++ b/web/ce/components/projects/create/root.tsx
@@ -3,6 +3,7 @@
import { useState, FC } from "react";
import { observer } from "mobx-react";
import { FormProvider, useForm } from "react-hook-form";
+import { PROJECT_UNSPLASH_COVERS, PROJECT_CREATED } from "@plane/constants";
import { useTranslation } from "@plane/i18n";
// ui
import { setToast, TOAST_TYPE } from "@plane/ui";
@@ -10,8 +11,6 @@ import { setToast, TOAST_TYPE } from "@plane/ui";
import ProjectCommonAttributes from "@/components/project/create/common-attributes";
import ProjectCreateHeader from "@/components/project/create/header";
import ProjectCreateButtons from "@/components/project/create/project-create-buttons";
-import { PROJECT_CREATED } from "@/constants/event-tracker";
-import { PROJECT_UNSPLASH_COVERS } from "@/constants/project";
// helpers
import { getRandomEmoji } from "@/helpers/emoji.helper";
// hooks
diff --git a/web/ce/components/projects/mobile-header.tsx b/web/ce/components/projects/mobile-header.tsx
index 3804721600..9e51c67999 100644
--- a/web/ce/components/projects/mobile-header.tsx
+++ b/web/ce/components/projects/mobile-header.tsx
@@ -4,6 +4,8 @@ import { observer } from "mobx-react";
import { useParams } from "next/navigation";
// icons
import { ChevronDown, ListFilter } from "lucide-react";
+// i18n
+import { useTranslation } from "@plane/i18n";
// types
import { TProjectFilters } from "@plane/types";
// hooks
@@ -15,6 +17,8 @@ import { calculateTotalFilters } from "@/helpers/filter.helper";
import { useMember, useProjectFilter } from "@/hooks/store";
export const ProjectsListMobileHeader = observer(() => {
+ // i18n
+ const { t } = useTranslation();
// router
const { workspaceSlug } = useParams();
const {
@@ -63,12 +67,12 @@ export const ProjectsListMobileHeader = observer(() => {
<div className="border-l border-custom-border-200 flex justify-around w-full">
<FiltersDropdown
icon={<ListFilter className="h-3 w-3" />}
- title="Filters"
+ title={t("common.filters")}
placement="bottom-end"
menuButton={
<div className="flex text-sm items-center gap-2 neutral-primary text-custom-text-200">
<ListFilter className="h-3 w-3" />
- Filters
+ {t("common.filters")}
<ChevronDown className="h-3 w-3" strokeWidth={2} />
</div>
}
diff --git a/web/ce/components/projects/settings/intake/header.tsx b/web/ce/components/projects/settings/intake/header.tsx
index 38270f3c91..32a93894f1 100644
--- a/web/ce/components/projects/settings/intake/header.tsx
+++ b/web/ce/components/projects/settings/intake/header.tsx
@@ -5,6 +5,8 @@ import { observer } from "mobx-react";
import { useParams } from "next/navigation";
import { RefreshCcw } from "lucide-react";
// ui
+import { EUserPermissions, EUserPermissionsLevel } from "@plane/constants";
+import { useTranslation } from "@plane/i18n";
import { Breadcrumbs, Button, Intake, Header } from "@plane/ui";
// components
import { BreadcrumbLink } from "@/components/common";
@@ -13,7 +15,6 @@ import { InboxIssueCreateModalRoot } from "@/components/inbox";
import { useProject, useProjectInbox, useUserPermissions } from "@/hooks/store";
// plane web
import { ProjectBreadcrumb } from "@/plane-web/components/breadcrumbs";
-import { EUserPermissions, EUserPermissionsLevel } from "@/plane-web/constants/user-permissions";
export const ProjectInboxHeader: FC = observer(() => {
// states
@@ -22,6 +23,7 @@ export const ProjectInboxHeader: FC = observer(() => {
const { workspaceSlug, projectId } = useParams();
// store hooks
const { allowPermissions } = useUserPermissions();
+ const { t } = useTranslation();
const { currentProjectDetails, loader: currentProjectDetailsLoader } = useProject();
const { loader } = useProjectInbox();
@@ -41,14 +43,14 @@ export const ProjectInboxHeader: FC = observer(() => {
<Breadcrumbs.BreadcrumbItem
type="text"
- link={<BreadcrumbLink label="Intake" icon={<Intake className="h-4 w-4 text-custom-text-300" />} />}
+ link={<BreadcrumbLink label={t("intake")} icon={<Intake className="h-4 w-4 text-custom-text-300" />} />}
/>
</Breadcrumbs>
{loader === "pagination-loading" && (
<div className="flex items-center gap-1.5 text-custom-text-300">
<RefreshCcw className="h-3.5 w-3.5 animate-spin" />
- <p className="text-sm">Syncing...</p>
+ <p className="text-sm">{t("syncing")}...</p>
</div>
)}
</div>
@@ -64,7 +66,7 @@ export const ProjectInboxHeader: FC = observer(() => {
/>
<Button variant="primary" size="sm" onClick={() => setCreateIssueModal(true)}>
- Add issue
+ {t("add_work_item")}
</Button>
</div>
) : (
diff --git a/web/ce/components/projects/settings/useProjectColumns.tsx b/web/ce/components/projects/settings/useProjectColumns.tsx
index 8103e9eefa..bd9e589ad1 100644
--- a/web/ce/components/projects/settings/useProjectColumns.tsx
+++ b/web/ce/components/projects/settings/useProjectColumns.tsx
@@ -1,9 +1,9 @@
import { useState } from "react";
import { useParams } from "next/navigation";
+import { EUserPermissions, EUserPermissionsLevel } from "@plane/constants";
import { IWorkspaceMember } from "@plane/types";
import { AccountTypeColumn, NameColumn } from "@/components/project/settings/member-columns";
import { useUser, useUserPermissions } from "@/hooks/store";
-import { EUserPermissions, EUserPermissionsLevel } from "@/plane-web/constants/user-permissions";
export interface RowData {
member: IWorkspaceMember;
diff --git a/web/ce/components/relations/activity.ts b/web/ce/components/relations/activity.ts
index ad0d4f3052..30f08cb749 100644
--- a/web/ce/components/relations/activity.ts
+++ b/web/ce/components/relations/activity.ts
@@ -5,15 +5,15 @@ export const getRelationActivityContent = (activity: TIssueActivity | undefined)
switch (activity.field) {
case "blocking":
- return activity.old_value === "" ? `marked this issue is blocking issue ` : `removed the blocking issue `;
+ return activity.old_value === "" ? `marked this work item is blocking work item ` : `removed the blocking work item `;
case "blocked_by":
return activity.old_value === ""
- ? `marked this issue is being blocked by `
- : `removed this issue being blocked by issue `;
+ ? `marked this work item is being blocked by `
+ : `removed this work item being blocked by work item `;
case "duplicate":
- return activity.old_value === "" ? `marked this issue as duplicate of ` : `removed this issue as a duplicate of `;
+ return activity.old_value === "" ? `marked this work item as duplicate of ` : `removed this work item as a duplicate of `;
case "relates_to":
- return activity.old_value === "" ? `marked that this issue relates to ` : `removed the relation from `;
+ return activity.old_value === "" ? `marked that this work item relates to ` : `removed the relation from `;
}
return;
diff --git a/web/ce/components/relations/index.tsx b/web/ce/components/relations/index.tsx
index 5517ac0635..7f906564a0 100644
--- a/web/ce/components/relations/index.tsx
+++ b/web/ce/components/relations/index.tsx
@@ -8,28 +8,28 @@ export * from "./activity";
export const ISSUE_RELATION_OPTIONS: Record<TIssueRelationTypes, TRelationObject> = {
relates_to: {
key: "relates_to",
- label: "Relates to",
+ i18n_label: "issue.relation.relates_to",
className: "bg-custom-background-80 text-custom-text-200",
icon: (size) => <RelatedIcon height={size} width={size} className="text-custom-text-200" />,
- placeholder: "Add related issues",
+ placeholder: "Add related work items",
},
duplicate: {
key: "duplicate",
- label: "Duplicate of",
+ i18n_label: "issue.relation.duplicate",
className: "bg-custom-background-80 text-custom-text-200",
icon: (size) => <CopyPlus size={size} className="text-custom-text-200" />,
placeholder: "None",
},
blocked_by: {
key: "blocked_by",
- label: "Blocked by",
+ i18n_label: "issue.relation.blocked_by",
className: "bg-red-500/20 text-red-700",
icon: (size) => <CircleDot size={size} className="text-custom-text-200" />,
placeholder: "None",
},
blocking: {
key: "blocking",
- label: "Blocking",
+ i18n_label: "issue.relation.blocking",
className: "bg-yellow-500/20 text-yellow-700",
icon: (size) => <XCircle size={size} className="text-custom-text-200" />,
placeholder: "None",
diff --git a/web/ce/components/workflow/state-item-child.tsx b/web/ce/components/workflow/state-item-child.tsx
index 2c07fd9ff0..af686bbe57 100644
--- a/web/ce/components/workflow/state-item-child.tsx
+++ b/web/ce/components/workflow/state-item-child.tsx
@@ -1,11 +1,11 @@
import { SetStateAction } from "react";
import { observer } from "mobx-react";
// Plane
+import { DISPLAY_WORKFLOW_PRO_CTA } from "@plane/constants";
import { IState } from "@plane/types";
// components
import { StateItemTitle } from "@/components/project-states/state-item-title";
// constants
-import { DISPLAY_WORKFLOW_PRO_CTA } from "@/constants/state";
//
import { AddStateTransition } from "./add-state-transition";
diff --git a/web/ce/components/workspace-notifications/notification-card/root.tsx b/web/ce/components/workspace-notifications/notification-card/root.tsx
index bfff113baf..2aff9edfea 100644
--- a/web/ce/components/workspace-notifications/notification-card/root.tsx
+++ b/web/ce/components/workspace-notifications/notification-card/root.tsx
@@ -2,10 +2,12 @@
import { FC } from "react";
import { observer } from "mobx-react";
+// plane imports
+import { ENotificationLoader, ENotificationQueryParamType } from "@plane/constants";
// components
+import { useTranslation } from "@plane/i18n";
import { NotificationItem } from "@/components/workspace-notifications";
// constants
-import { ENotificationLoader, ENotificationQueryParamType } from "@/constants/notification";
// hooks
import { useWorkspaceNotifications } from "@/hooks/store";
@@ -19,6 +21,7 @@ export const NotificationCardListRoot: FC<TNotificationCardListRoot> = observer(
// hooks
const { loader, paginationInfo, getNotifications, notificationIdsByWorkspaceId } = useWorkspaceNotifications();
const notificationIds = notificationIdsByWorkspaceId(workspaceId);
+ const { t } = useTranslation();
const getNextNotifications = async () => {
try {
@@ -40,12 +43,12 @@ export const NotificationCardListRoot: FC<TNotificationCardListRoot> = observer(
<>
{loader === ENotificationLoader.PAGINATION_LOADER ? (
<div className="py-4 flex justify-center items-center text-sm font-medium">
- <div className="text-custom-primary-90">Loading...</div>
+ <div className="text-custom-primary-90">{t("loading")}...</div>
</div>
) : (
<div className="py-4 flex justify-center items-center text-sm font-medium" onClick={getNextNotifications}>
<div className="text-custom-primary-90 hover:text-custom-primary-100 transition-all cursor-pointer">
- Load more
+ {t("load_more")}
</div>
</div>
)}
diff --git a/web/ce/components/workspace/billing/root.tsx b/web/ce/components/workspace/billing/root.tsx
index 4acba0af06..e9c6bd8f7c 100644
--- a/web/ce/components/workspace/billing/root.tsx
+++ b/web/ce/components/workspace/billing/root.tsx
@@ -1,21 +1,27 @@
import { MARKETING_PRICING_PAGE_LINK } from "@plane/constants";
+import { useTranslation } from "@plane/i18n";
import { Button } from "@plane/ui";
-export const BillingRoot = () => (
- <section className="w-full overflow-y-auto">
- <div>
- <div className="flex items-center border-b border-custom-border-100 pb-3.5">
- <h3 className="text-xl font-medium">Billing and Plans</h3>
- </div>
- </div>
- <div className="py-6">
+export const BillingRoot = () => {
+ const { t } = useTranslation();
+ return (
+ <section className="w-full overflow-y-auto">
<div>
- <h4 className="text-md mb-1 leading-6">Current plan</h4>
- <p className="mb-3 text-sm text-custom-text-200">You are currently using the free plan</p>
- <a href={MARKETING_PRICING_PAGE_LINK} target="_blank" rel="noreferrer">
- <Button variant="neutral-primary">View plans</Button>
- </a>
+ <div className="flex items-center border-b border-custom-border-100 pb-3.5">
+ <h3 className="text-xl font-medium">{t("workspace_settings.settings.billing_and_plans.title")}</h3>
+ </div>
+ </div>
+ <div className="py-6">
+ <div>
+ <h4 className="text-md mb-1 leading-6">{t("workspace_settings.settings.billing_and_plans.current_plan")}</h4>
+ <p className="mb-3 text-sm text-custom-text-200">
+ {t("workspace_settings.settings.billing_and_plans.free_plan")}
+ </p>
+ <a href={MARKETING_PRICING_PAGE_LINK} target="_blank" rel="noreferrer">
+ <Button variant="neutral-primary">{t("workspace_settings.settings.billing_and_plans.view_plans")}</Button>
+ </a>
+ </div>
</div>
- </div>
- </section>
-);
+ </section>
+ );
+};
diff --git a/web/ce/components/workspace/delete-workspace-section.tsx b/web/ce/components/workspace/delete-workspace-section.tsx
index 93836284f8..81fc754593 100644
--- a/web/ce/components/workspace/delete-workspace-section.tsx
+++ b/web/ce/components/workspace/delete-workspace-section.tsx
@@ -2,6 +2,7 @@ import { FC, useState } from "react";
import { observer } from "mobx-react";
import { ChevronDown, ChevronUp } from "lucide-react";
// types
+import { useTranslation } from "@plane/i18n";
import { IWorkspace } from "@plane/types";
// ui
import { Button, Collapsible } from "@plane/ui";
@@ -17,6 +18,7 @@ export const DeleteWorkspaceSection: FC<TDeleteWorkspace> = observer((props) =>
// states
const [isOpen, setIsOpen] = useState(false);
const [deleteWorkspaceModal, setDeleteWorkspaceModal] = useState(false);
+ const { t } = useTranslation();
return (
<>
@@ -34,19 +36,20 @@ export const DeleteWorkspaceSection: FC<TDeleteWorkspace> = observer((props) =>
buttonClassName="flex w-full items-center justify-between py-4"
title={
<>
- <span className="text-lg tracking-tight">Delete workspace</span>
+ <span className="text-lg tracking-tight">
+ {t("workspace_settings.settings.general.delete_workspace")}
+ </span>
{isOpen ? <ChevronUp className="h-5 w-5" /> : <ChevronDown className="h-5 w-5" />}
</>
}
>
<div className="flex flex-col gap-4">
<span className="text-base tracking-tight">
- When deleting a workspace, all of the data and resources within that workspace will be permanently
- removed and cannot be recovered.
+ {t("workspace_settings.settings.general.delete_workspace_description")}
</span>
<div>
<Button variant="danger" onClick={() => setDeleteWorkspaceModal(true)}>
- Delete my workspace
+ {t("workspace_settings.settings.general.delete_btn")}
</Button>
</div>
</div>
diff --git a/web/ce/components/workspace/edition-badge.tsx b/web/ce/components/workspace/edition-badge.tsx
index 82d4f47d24..effb5501b4 100644
--- a/web/ce/components/workspace/edition-badge.tsx
+++ b/web/ce/components/workspace/edition-badge.tsx
@@ -1,12 +1,12 @@
import { useState } from "react";
import { observer } from "mobx-react";
+import packageJson from "package.json";
import { useTranslation } from "@plane/i18n";
// ui
import { Button, Tooltip } from "@plane/ui";
// hooks
import { usePlatformOS } from "@/hooks/use-platform-os";
// assets
-import packageJson from "package.json";
// local components
import { PaidPlanUpgradeModal } from "./upgrade";
@@ -29,7 +29,7 @@ export const WorkspaceEditionBadge = observer(() => {
className="w-fit min-w-24 cursor-pointer rounded-2xl px-2 py-1 text-center text-sm font-medium outline-none"
onClick={() => setIsPaidPlanPurchaseModalOpen(true)}
>
- {t("upgrade")}
+ {t("sidebar.upgrade")}
</Button>
</Tooltip>
</>
diff --git a/web/ce/components/workspace/settings/useMemberColumns.tsx b/web/ce/components/workspace/settings/useMemberColumns.tsx
index 64c92cf52a..c340518784 100644
--- a/web/ce/components/workspace/settings/useMemberColumns.tsx
+++ b/web/ce/components/workspace/settings/useMemberColumns.tsx
@@ -1,8 +1,9 @@
import { useState } from "react";
import { useParams } from "next/navigation";
+import { EUserPermissions, EUserPermissionsLevel } from "@plane/constants";
+import { useTranslation } from "@plane/i18n";
import { AccountTypeColumn, NameColumn, RowData } from "@/components/workspace/settings/member-columns";
import { useUser, useUserPermissions } from "@/hooks/store";
-import { EUserPermissions, EUserPermissionsLevel } from "@/plane-web/constants/user-permissions";
export const useMemberColumns = () => {
// states
@@ -12,6 +13,7 @@ export const useMemberColumns = () => {
const { data: currentUser } = useUser();
const { allowPermissions } = useUserPermissions();
+ const { t } = useTranslation();
const getFormattedDate = (dateStr: string) => {
const date = new Date(dateStr);
@@ -26,7 +28,7 @@ export const useMemberColumns = () => {
const columns = [
{
key: "Full name",
- content: "Full name",
+ content: t("workspace_settings.settings.members.details.full_name"),
thClassName: "text-left",
tdRender: (rowData: RowData) => (
<NameColumn
@@ -41,25 +43,25 @@ export const useMemberColumns = () => {
{
key: "Display name",
- content: "Display name",
+ content: t("workspace_settings.settings.members.details.display_name"),
tdRender: (rowData: RowData) => <div className="w-32">{rowData.member.display_name}</div>,
},
{
key: "Email address",
- content: "Email address",
+ content: t("workspace_settings.settings.members.details.email_address"),
tdRender: (rowData: RowData) => <div className="w-48 truncate">{rowData.member.email}</div>,
},
{
key: "Account type",
- content: "Account type",
+ content: t("workspace_settings.settings.members.details.account_type"),
tdRender: (rowData: RowData) => <AccountTypeColumn rowData={rowData} workspaceSlug={workspaceSlug as string} />,
},
{
key: "Authentication",
- content: "Authentication",
+ content: t("workspace_settings.settings.members.details.authentication"),
tdRender: (rowData: RowData) => (
<div className="capitalize">{rowData.member.last_login_medium?.replace("-", " ")}</div>
),
@@ -67,7 +69,7 @@ export const useMemberColumns = () => {
{
key: "Joining date",
- content: "Joining date",
+ content: t("workspace_settings.settings.members.details.joining_date"),
tdRender: (rowData: RowData) => <div>{getFormattedDate(rowData?.member?.joining_date || "")}</div>,
},
];
diff --git a/web/ce/components/workspace/upgrade-badge.tsx b/web/ce/components/workspace/upgrade-badge.tsx
index 3fc3654cfb..1abb731e7f 100644
--- a/web/ce/components/workspace/upgrade-badge.tsx
+++ b/web/ce/components/workspace/upgrade-badge.tsx
@@ -1,5 +1,6 @@
import { FC } from "react";
// helpers
+import { useTranslation } from "@plane/i18n";
import { cn } from "@/helpers/common.helper";
type TUpgradeBadge = {
@@ -10,6 +11,8 @@ type TUpgradeBadge = {
export const UpgradeBadge: FC<TUpgradeBadge> = (props) => {
const { className, size = "sm" } = props;
+ const { t } = useTranslation();
+
return (
<div
className={cn(
@@ -21,7 +24,7 @@ export const UpgradeBadge: FC<TUpgradeBadge> = (props) => {
className
)}
>
- Pro
+ {t("sidebar.pro")}
</div>
);
};
diff --git a/web/ce/components/workspace/upgrade/paid-plans-upgrade-modal.tsx b/web/ce/components/workspace/upgrade/paid-plans-upgrade-modal.tsx
index 0f6d0681eb..88201af63c 100644
--- a/web/ce/components/workspace/upgrade/paid-plans-upgrade-modal.tsx
+++ b/web/ce/components/workspace/upgrade/paid-plans-upgrade-modal.tsx
@@ -22,7 +22,7 @@ const ONE_PLAN_FEATURES = [
"OIDC + SAML for SSO",
"Active Cycles",
"Real-time collab + public views and page",
- "Link pages in issues and vice-versa",
+ "Link pages in work items and vice-versa",
"Time-tracking + limited bulk ops",
"Docker, Kubernetes and more",
];
diff --git a/web/ce/constants/index.ts b/web/ce/constants/index.ts
index 123db122c8..895c18c3db 100644
--- a/web/ce/constants/index.ts
+++ b/web/ce/constants/index.ts
@@ -1,7 +1,4 @@
export * from "./ai";
export * from "./estimates";
export * from "./gantt-chart";
-export * from "./issues";
export * from "./project";
-export * from "./user-permissions";
-export * from "./workspace";
diff --git a/web/ce/constants/issues.ts b/web/ce/constants/issues.ts
deleted file mode 100644
index 70a34577f7..0000000000
--- a/web/ce/constants/issues.ts
+++ /dev/null
@@ -1,38 +0,0 @@
-import { ILayoutDisplayFiltersOptions, TIssueActivityComment } from "@plane/types";
-
-export enum EActivityFilterType {
- ACTIVITY = "ACTIVITY",
- COMMENT = "COMMENT",
-}
-
-export type TActivityFilters = EActivityFilterType;
-
-export const ACTIVITY_FILTER_TYPE_OPTIONS: Record<EActivityFilterType, { label: string }> = {
- [EActivityFilterType.ACTIVITY]: {
- label: "Updates",
- },
- [EActivityFilterType.COMMENT]: {
- label: "Comments",
- },
-};
-
-export const defaultActivityFilters: TActivityFilters[] = [EActivityFilterType.ACTIVITY, EActivityFilterType.COMMENT];
-
-export type TActivityFilterOption = {
- key: TActivityFilters;
- label: string;
- isSelected: boolean;
- onClick: () => void;
-};
-
-export const filterActivityOnSelectedFilters = (
- activity: TIssueActivityComment[],
- filter: TActivityFilters[]
-): TIssueActivityComment[] =>
- activity.filter((activity) => filter.includes(activity.activity_type as TActivityFilters));
-
-export const ENABLE_ISSUE_DEPENDENCIES = false;
-
-export const ADDITIONAL_ISSUE_DISPLAY_FILTERS_BY_LAYOUT: {
- [pageType: string]: { [layoutType: string]: ILayoutDisplayFiltersOptions };
-} = {};
diff --git a/web/ce/constants/project/settings/features.tsx b/web/ce/constants/project/settings/features.tsx
index 786767c015..99e6101d57 100644
--- a/web/ce/constants/project/settings/features.tsx
+++ b/web/ce/constants/project/settings/features.tsx
@@ -34,7 +34,7 @@ export type TProjectFeatures = {
export const PROJECT_FEATURES_LIST: TProjectFeatures = {
project_features: {
key: "projects_and_issues",
- title: "Projects and issues",
+ title: "Projects and work items",
description: "Toggle these on or off this project.",
featureList: {
cycles: {
@@ -77,7 +77,7 @@ export const PROJECT_FEATURES_LIST: TProjectFeatures = {
key: "intake",
property: "inbox_view",
title: "Intake",
- description: "Consider and discuss issues before you add them to your project.",
+ description: "Consider and discuss work items before you add them to your project.",
icon: <Intake className="h-5 w-5 flex-shrink-0 text-custom-text-300" />,
isPro: false,
isEnabled: true,
diff --git a/web/ce/constants/project/settings/tabs.ts b/web/ce/constants/project/settings/tabs.ts
index 4d9207cc60..50bff11151 100644
--- a/web/ce/constants/project/settings/tabs.ts
+++ b/web/ce/constants/project/settings/tabs.ts
@@ -1,14 +1,14 @@
// icons
+import { EUserPermissions } from "@plane/constants";
import { SettingIcon } from "@/components/icons/attachment";
// types
import { Props } from "@/components/icons/types";
// constants
-import { EUserPermissions } from "../../user-permissions";
export const PROJECT_SETTINGS = {
general: {
key: "general",
- label: "General",
+ i18n_label: "common.general",
href: `/settings`,
access: [EUserPermissions.ADMIN, EUserPermissions.MEMBER, EUserPermissions.GUEST],
highlight: (pathname: string, baseUrl: string) => pathname === `${baseUrl}/settings/`,
@@ -16,7 +16,7 @@ export const PROJECT_SETTINGS = {
},
members: {
key: "members",
- label: "Members",
+ i18n_label: "members",
href: `/settings/members`,
access: [EUserPermissions.ADMIN, EUserPermissions.MEMBER],
highlight: (pathname: string, baseUrl: string) => pathname === `${baseUrl}/settings/members/`,
@@ -24,7 +24,7 @@ export const PROJECT_SETTINGS = {
},
features: {
key: "features",
- label: "Features",
+ i18n_label: "common.features",
href: `/settings/features`,
access: [EUserPermissions.ADMIN],
highlight: (pathname: string, baseUrl: string) => pathname === `${baseUrl}/settings/features/`,
@@ -32,7 +32,7 @@ export const PROJECT_SETTINGS = {
},
states: {
key: "states",
- label: "States",
+ i18n_label: "common.states",
href: `/settings/states`,
access: [EUserPermissions.ADMIN, EUserPermissions.MEMBER],
highlight: (pathname: string, baseUrl: string) => pathname === `${baseUrl}/settings/states/`,
@@ -40,7 +40,7 @@ export const PROJECT_SETTINGS = {
},
labels: {
key: "labels",
- label: "Labels",
+ i18n_label: "common.labels",
href: `/settings/labels`,
access: [EUserPermissions.ADMIN, EUserPermissions.MEMBER],
highlight: (pathname: string, baseUrl: string) => pathname === `${baseUrl}/settings/labels/`,
@@ -48,7 +48,7 @@ export const PROJECT_SETTINGS = {
},
estimates: {
key: "estimates",
- label: "Estimates",
+ i18n_label: "common.estimates",
href: `/settings/estimates`,
access: [EUserPermissions.ADMIN],
highlight: (pathname: string, baseUrl: string) => pathname === `${baseUrl}/settings/estimates/`,
@@ -56,7 +56,7 @@ export const PROJECT_SETTINGS = {
},
automations: {
key: "automations",
- label: "Automations",
+ i18n_label: "project_settings.automations.label",
href: `/settings/automations`,
access: [EUserPermissions.ADMIN],
highlight: (pathname: string, baseUrl: string) => pathname === `${baseUrl}/settings/automations/`,
@@ -66,7 +66,7 @@ export const PROJECT_SETTINGS = {
export const PROJECT_SETTINGS_LINKS: {
key: string;
- label: string;
+ i18n_label: string;
href: string;
access: EUserPermissions[];
highlight: (pathname: string, baseUrl: string) => boolean;
diff --git a/web/ce/constants/user-permissions/index.ts b/web/ce/constants/user-permissions/index.ts
deleted file mode 100644
index e37a2aae92..0000000000
--- a/web/ce/constants/user-permissions/index.ts
+++ /dev/null
@@ -1,36 +0,0 @@
-export enum EUserPermissionsLevel {
- WORKSPACE = "WORKSPACE",
- PROJECT = "PROJECT",
-}
-export type TUserPermissionsLevel = EUserPermissionsLevel;
-
-export enum EUserPermissions {
- ADMIN = 20,
- MEMBER = 15,
- GUEST = 5,
-}
-export type TUserPermissions = EUserPermissions;
-
-export type TUserAllowedPermissionsObject = {
- create: TUserPermissions[];
- update: TUserPermissions[];
- delete: TUserPermissions[];
- read: TUserPermissions[];
-};
-export type TUserAllowedPermissions = {
- workspace: {
- [key: string]: Partial<TUserAllowedPermissionsObject>;
- };
- project: {
- [key: string]: Partial<TUserAllowedPermissionsObject>;
- };
-};
-
-export const USER_ALLOWED_PERMISSIONS: TUserAllowedPermissions = {
- workspace: {
- dashboard: {
- read: [EUserPermissions.ADMIN, EUserPermissions.MEMBER, EUserPermissions.GUEST],
- },
- },
- project: {},
-};
diff --git a/web/ce/constants/workspace.ts b/web/ce/constants/workspace.ts
deleted file mode 100644
index b976111b55..0000000000
--- a/web/ce/constants/workspace.ts
+++ /dev/null
@@ -1,72 +0,0 @@
-// icons
-import { SettingIcon } from "@/components/icons/attachment";
-import { Props } from "@/components/icons/types";
-import { EUserPermissions } from "./user-permissions";
-// constants
-
-export const WORKSPACE_SETTINGS = {
- general: {
- key: "general",
- label: "General",
- href: `/settings`,
- access: [EUserPermissions.ADMIN],
- highlight: (pathname: string, baseUrl: string) => pathname === `${baseUrl}/settings/`,
- Icon: SettingIcon,
- },
- members: {
- key: "members",
- label: "Members",
- href: `/settings/members`,
- access: [EUserPermissions.ADMIN],
- highlight: (pathname: string, baseUrl: string) => pathname === `${baseUrl}/settings/members/`,
- Icon: SettingIcon,
- },
- "billing-and-plans": {
- key: "billing-and-plans",
- label: "Billing and plans",
- href: `/settings/billing`,
- access: [EUserPermissions.ADMIN],
- highlight: (pathname: string, baseUrl: string) => pathname === `${baseUrl}/settings/billing/`,
- Icon: SettingIcon,
- },
- export: {
- key: "export",
- label: "Exports",
- href: `/settings/exports`,
- access: [EUserPermissions.ADMIN],
- highlight: (pathname: string, baseUrl: string) => pathname === `${baseUrl}/settings/exports/`,
- Icon: SettingIcon,
- },
- webhooks: {
- key: "webhooks",
- label: "Webhooks",
- href: `/settings/webhooks`,
- access: [EUserPermissions.ADMIN],
- highlight: (pathname: string, baseUrl: string) => pathname === `${baseUrl}/settings/webhooks/`,
- Icon: SettingIcon,
- },
- "api-tokens": {
- key: "api-tokens",
- label: "API tokens",
- href: `/settings/api-tokens`,
- access: [EUserPermissions.ADMIN],
- highlight: (pathname: string, baseUrl: string) => pathname === `${baseUrl}/settings/api-tokens/`,
- Icon: SettingIcon,
- },
-};
-
-export const WORKSPACE_SETTINGS_LINKS: {
- key: string;
- label: string;
- href: string;
- access: EUserPermissions[];
- highlight: (pathname: string, baseUrl: string) => boolean;
- Icon: React.FC<Props>;
-}[] = [
- WORKSPACE_SETTINGS["general"],
- WORKSPACE_SETTINGS["members"],
- WORKSPACE_SETTINGS["billing-and-plans"],
- WORKSPACE_SETTINGS["export"],
- WORKSPACE_SETTINGS["webhooks"],
- WORKSPACE_SETTINGS["api-tokens"],
-];
diff --git a/web/ce/helpers/command-palette.ts b/web/ce/helpers/command-palette.ts
index fccfcbaa4d..28576735f7 100644
--- a/web/ce/helpers/command-palette.ts
+++ b/web/ce/helpers/command-palette.ts
@@ -8,8 +8,8 @@ export const getGlobalShortcutsList: () => TCommandPaletteActionList = () => {
return {
c: {
- title: "Create a new issue",
- description: "Create a new issue in the current project",
+ title: "Create a new work item",
+ description: "Create a new work item in the current project",
action: () => toggleCreateIssueModal(true),
},
};
@@ -58,13 +58,13 @@ export const getProjectShortcutsList: () => TCommandPaletteActionList = () => {
action: () => toggleCreateViewModal(true),
},
backspace: {
- title: "Bulk delete issues",
- description: "Bulk delete issues in the current project",
+ title: "Bulk delete work items",
+ description: "Bulk delete work items in the current project",
action: () => toggleBulkDeleteIssueModal(true),
},
delete: {
- title: "Bulk delete issues",
- description: "Bulk delete issues in the current project",
+ title: "Bulk delete work items",
+ description: "Bulk delete work items in the current project",
action: () => toggleBulkDeleteIssueModal(true),
},
};
@@ -79,16 +79,16 @@ export const getNavigationShortcutsList = (): TCommandPaletteShortcut[] => [
export const getCommonShortcutsList = (platform: string): TCommandPaletteShortcut[] => [
{ keys: "P", description: "Create project" },
- { keys: "C", description: "Create issue" },
+ { keys: "C", description: "Create work item" },
{ keys: "Q", description: "Create cycle" },
{ keys: "M", description: "Create module" },
{ keys: "V", description: "Create view" },
{ keys: "D", description: "Create page" },
- { keys: "Delete", description: "Bulk delete issues" },
+ { keys: "Delete", description: "Bulk delete work items" },
{ keys: "Shift,/", description: "Open shortcuts guide" },
{
keys: platform === "MacOS" ? "Ctrl,control,C" : "Ctrl,Alt,C",
- description: "Copy issue URL from the issue details page",
+ description: "Copy work item URL from the work item details page",
},
];
diff --git a/web/ce/hooks/use-file-size.ts b/web/ce/hooks/use-file-size.ts
index c19df40e55..025c8ddfd1 100644
--- a/web/ce/hooks/use-file-size.ts
+++ b/web/ce/hooks/use-file-size.ts
@@ -1,5 +1,5 @@
-// constants
-import { MAX_STATIC_FILE_SIZE } from "@/constants/common";
+// plane imports
+import { MAX_FILE_SIZE } from "@plane/constants";
// hooks
import { useInstance } from "@/hooks/store";
@@ -12,6 +12,6 @@ export const useFileSize = (): TReturnProps => {
const { config } = useInstance();
return {
- maxFileSize: config?.file_size_limit ?? MAX_STATIC_FILE_SIZE,
+ maxFileSize: config?.file_size_limit ?? MAX_FILE_SIZE,
};
};
diff --git a/web/ce/services/project/view.service.ts b/web/ce/services/project/view.service.ts
index 6cb76222ad..9a6ee12a22 100644
--- a/web/ce/services/project/view.service.ts
+++ b/web/ce/services/project/view.service.ts
@@ -1,5 +1,5 @@
+import { EViewAccess } from "@plane/constants";
import { TPublishViewSettings } from "@plane/types";
-import { EViewAccess } from "@/constants/views";
import { API_BASE_URL } from "@/helpers/common.helper";
import { ViewService as CoreViewService } from "@/services/view.service";
diff --git a/web/ce/services/workspace.service.ts b/web/ce/services/workspace.service.ts
index 59fe39c69c..9dcfb7f6c5 100644
--- a/web/ce/services/workspace.service.ts
+++ b/web/ce/services/workspace.service.ts
@@ -1,4 +1,4 @@
-import { EViewAccess } from "@/constants/views";
+import { EViewAccess } from "@plane/constants";
import { API_BASE_URL } from "@/helpers/common.helper";
import { WorkspaceService as CoreWorkspaceService } from "@/services/workspace.service";
diff --git a/web/ce/store/issue/issue-details/activity.store.ts b/web/ce/store/issue/issue-details/activity.store.ts
index 72c725010b..93b925aba9 100644
--- a/web/ce/store/issue/issue-details/activity.store.ts
+++ b/web/ce/store/issue/issue-details/activity.store.ts
@@ -8,7 +8,7 @@ import update from "lodash/update";
import { action, makeObservable, observable, runInAction } from "mobx";
import { computedFn } from "mobx-utils";
// plane package imports
-import { EIssueServiceType, E_SORT_ORDER } from "@plane/constants";
+import { EIssueServiceType, E_SORT_ORDER, EActivityFilterType } from "@plane/constants";
import {
TIssueActivityComment,
TIssueActivity,
@@ -17,7 +17,6 @@ import {
TIssueServiceType,
} from "@plane/types";
// plane web constants
-import { EActivityFilterType } from "@/plane-web/constants/issues";
// services
import { IssueActivityService } from "@/services/issue";
// store
diff --git a/web/core/components/account/auth-forms/auth-header.tsx b/web/core/components/account/auth-forms/auth-header.tsx
index 4f0949aa28..b609fe0a5c 100644
--- a/web/core/components/account/auth-forms/auth-header.tsx
+++ b/web/core/components/account/auth-forms/auth-header.tsx
@@ -1,5 +1,7 @@
import { FC, ReactNode } from "react";
+import { observer } from "mobx-react";
import useSWR from "swr";
+import { useTranslation } from "@plane/i18n";
import { IWorkspaceMemberInvitation } from "@plane/types";
// components
import { LogoSpinner } from "@/components/common";
@@ -21,38 +23,40 @@ type TAuthHeader = {
const Titles = {
[EAuthModes.SIGN_IN]: {
[EAuthSteps.EMAIL]: {
- header: "Log in or sign up",
+ header: "auth.sign_in.header.step.email.header",
subHeader: "",
},
[EAuthSteps.PASSWORD]: {
- header: "Log in or sign up",
- subHeader: "Use your email-password combination to log in.",
+ header: "auth.sign_in.header.step.password.header",
+ subHeader: "auth.sign_in.header.step.password.sub_header",
},
[EAuthSteps.UNIQUE_CODE]: {
- header: "Log in or Sign up",
- subHeader: "Log in using a unique code sent to the email address above.",
+ header: "auth.sign_in.header.step.unique_code.header",
+ subHeader: "auth.sign_in.header.step.unique_code.sub_header",
},
},
[EAuthModes.SIGN_UP]: {
[EAuthSteps.EMAIL]: {
- header: "Sign up",
+ header: "auth.sign_up.header.step.email.header",
subHeader: "",
},
[EAuthSteps.PASSWORD]: {
- header: "Sign up",
- subHeader: "Sign up using an email-password combination.",
+ header: "auth.sign_up.header.step.password.header",
+ subHeader: "auth.sign_up.header.step.password.sub_header",
},
[EAuthSteps.UNIQUE_CODE]: {
- header: "Sign up",
- subHeader: "Sign up using a unique code sent to the email address above.",
+ header: "auth.sign_up.header.step.unique_code.header",
+ subHeader: "auth.sign_up.header.step.unique_code.sub_header",
},
},
};
const workSpaceService = new WorkspaceService();
-export const AuthHeader: FC<TAuthHeader> = (props) => {
+export const AuthHeader: FC<TAuthHeader> = observer((props) => {
const { workspaceSlug, invitationId, invitationEmail, authMode, currentAuthStep, children } = props;
+ // plane imports
+ const { t } = useTranslation();
const { data: invitation, isLoading } = useSWR(
workspaceSlug && invitationId ? `WORKSPACE_INVITATION_${workspaceSlug}_${invitationId}` : null,
@@ -74,13 +78,12 @@ export const AuthHeader: FC<TAuthHeader> = (props) => {
return {
header: (
<div className="relative inline-flex items-center gap-2">
- Join <WorkspaceLogo logo={workspace?.logo} name={workspace?.name} classNames="w-8 h-9 flex-shrink-0" />{" "}
+ {t("common.join")}{" "}
+ <WorkspaceLogo logo={workspace?.logo} name={workspace?.name} classNames="w-8 h-9 flex-shrink-0" />{" "}
{workspace.name}
</div>
),
- subHeader: `${
- mode == EAuthModes.SIGN_UP ? "Create an account" : "Sign in"
- } to start managing work with your team.`,
+ subHeader: mode == EAuthModes.SIGN_UP ? "auth.sign_up.header.label" : "auth.sign_in.header.label",
};
}
@@ -99,10 +102,12 @@ export const AuthHeader: FC<TAuthHeader> = (props) => {
return (
<>
<div className="space-y-1 text-center">
- <h3 className="text-3xl font-bold text-onboarding-text-100">{header}</h3>
- <p className="font-medium text-onboarding-text-400">{subHeader}</p>
+ <h3 className="text-3xl font-bold text-onboarding-text-100">
+ {typeof header === "string" ? t(header) : header}
+ </h3>
+ <p className="font-medium text-onboarding-text-400">{t(subHeader)}</p>
</div>
{children}
</>
);
-};
+});
diff --git a/web/core/components/account/auth-forms/auth-root.tsx b/web/core/components/account/auth-forms/auth-root.tsx
index d3fa45fa74..004e81682b 100644
--- a/web/core/components/account/auth-forms/auth-root.tsx
+++ b/web/core/components/account/auth-forms/auth-root.tsx
@@ -1,6 +1,7 @@
import React, { FC, useEffect, useState } from "react";
import { observer } from "mobx-react";
import { useSearchParams } from "next/navigation";
+import { useTranslation } from "@plane/i18n";
import { IEmailCheckData } from "@plane/types";
// components
import {
@@ -51,6 +52,8 @@ export const AuthRoot: FC<TAuthRoot> = observer((props) => {
const [email, setEmail] = useState(emailParam ? emailParam.toString() : "");
const [errorInfo, setErrorInfo] = useState<TAuthErrorInfo | undefined>(undefined);
const [isExistingEmail, setIsExistingEmail] = useState(false);
+ // plane hooks
+ const { t } = useTranslation();
// hooks
const { config } = useInstance();
diff --git a/web/core/components/account/auth-forms/email.tsx b/web/core/components/account/auth-forms/email.tsx
index f0b88407a8..724f524421 100644
--- a/web/core/components/account/auth-forms/email.tsx
+++ b/web/core/components/account/auth-forms/email.tsx
@@ -4,9 +4,9 @@ import { FC, FormEvent, useMemo, useRef, useState } from "react";
import { observer } from "mobx-react";
// icons
import { CircleAlert, XCircle } from "lucide-react";
-// types
+// plane imports
+import { useTranslation } from "@plane/i18n";
import { IEmailCheckData } from "@plane/types";
-// ui
import { Button, Input, Spinner } from "@plane/ui";
// helpers
import { cn } from "@/helpers/common.helper";
@@ -22,9 +22,10 @@ export const AuthEmailForm: FC<TAuthEmailForm> = observer((props) => {
// states
const [isSubmitting, setIsSubmitting] = useState(false);
const [email, setEmail] = useState(defaultEmail);
-
+ // plane hooks
+ const { t } = useTranslation();
const emailError = useMemo(
- () => (email && !checkEmailValidity(email) ? { email: "Email is invalid" } : undefined),
+ () => (email && !checkEmailValidity(email) ? { email: "auth.common.email.errors.invalid" } : undefined),
[email]
);
@@ -40,14 +41,14 @@ export const AuthEmailForm: FC<TAuthEmailForm> = observer((props) => {
const isButtonDisabled = email.length === 0 || Boolean(emailError?.email) || isSubmitting;
- const [isFocused, setIsFocused] = useState(true)
+ const [isFocused, setIsFocused] = useState(true);
const inputRef = useRef<HTMLInputElement>(null);
return (
<form onSubmit={handleFormSubmit} className="mt-5 space-y-4">
<div className="space-y-1">
<label className="text-sm text-onboarding-text-300 font-medium" htmlFor="email">
- Email
+ {t("auth.common.email.label")}
</label>
<div
className={cn(
@@ -55,8 +56,12 @@ export const AuthEmailForm: FC<TAuthEmailForm> = observer((props) => {
!isFocused && Boolean(emailError?.email) ? `border-red-500` : `border-onboarding-border-100`
)}
tabIndex={-1}
- onFocus={() => {setIsFocused(true)}}
- onBlur={() => {setIsFocused(false)}}
+ onFocus={() => {
+ setIsFocused(true);
+ }}
+ onBlur={() => {
+ setIsFocused(false);
+ }}
>
<Input
id="email"
@@ -64,13 +69,13 @@ export const AuthEmailForm: FC<TAuthEmailForm> = observer((props) => {
type="email"
value={email}
onChange={(e) => setEmail(e.target.value)}
- placeholder="[email protected]"
+ placeholder={t("auth.common.email.placeholder")}
className={`disable-autofill-style h-[46px] w-full placeholder:text-onboarding-text-400 autofill:bg-red-500 border-0 focus:bg-none active:bg-transparent`}
autoComplete="on"
autoFocus
ref={inputRef}
/>
- {email.length > 0 && (
+ {email.length > 0 && (
<XCircle
className="h-[46px] w-11 px-3 stroke-custom-text-400 hover:cursor-pointer text-xs"
onClick={() => {
@@ -83,13 +88,13 @@ export const AuthEmailForm: FC<TAuthEmailForm> = observer((props) => {
{emailError?.email && !isFocused && (
<p className="flex items-center gap-1 text-xs text-red-600 px-0.5">
<CircleAlert height={12} width={12} />
- {emailError.email}
+ {t(emailError.email)}
</p>
)}
</div>
<Button type="submit" variant="primary" className="w-full" size="lg" disabled={isButtonDisabled}>
- {isSubmitting ? <Spinner height="20px" width="20px" /> : "Continue"}
+ {isSubmitting ? <Spinner height="20px" width="20px" /> : t("common.continue")}
</Button>
</form>
);
-});
\ No newline at end of file
+});
diff --git a/web/core/components/account/auth-forms/forgot-password-popover.tsx b/web/core/components/account/auth-forms/forgot-password-popover.tsx
index 31bafce26b..4062d9a68c 100644
--- a/web/core/components/account/auth-forms/forgot-password-popover.tsx
+++ b/web/core/components/account/auth-forms/forgot-password-popover.tsx
@@ -2,6 +2,8 @@ import { Fragment, useState } from "react";
import { usePopper } from "react-popper";
import { X } from "lucide-react";
import { Popover } from "@headlessui/react";
+// plane imports
+import { useTranslation } from "@plane/i18n";
export const ForgotPasswordPopover = () => {
// popper-js refs
@@ -19,6 +21,8 @@ export const ForgotPasswordPopover = () => {
},
],
});
+ // plane hooks
+ const { t } = useTranslation();
return (
<Popover className="relative">
@@ -28,7 +32,7 @@ export const ForgotPasswordPopover = () => {
ref={setReferenceElement}
className="text-xs font-medium text-custom-primary-100 outline-none"
>
- Forgot your password?
+ {t("auth.common.forgot_password")}
</button>
</Popover.Button>
<Popover.Panel className="fixed z-10">
@@ -40,9 +44,7 @@ export const ForgotPasswordPopover = () => {
{...attributes.popper}
>
<span className="flex-shrink-0">🤥</span>
- <p className="text-xs">
- We see that your god hasn{"'"}t enabled SMTP, we will not be able to send a password reset link
- </p>
+ <p className="text-xs">{t("auth.forgot_password.errors.smtp_not_enabled")}</p>
<button type="button" className="flex-shrink-0" onClick={() => close()}>
<X className="h-3 w-3 text-onboarding-text-200" />
</button>
diff --git a/web/core/components/account/auth-forms/password.tsx b/web/core/components/account/auth-forms/password.tsx
index 088dc31949..979899679a 100644
--- a/web/core/components/account/auth-forms/password.tsx
+++ b/web/core/components/account/auth-forms/password.tsx
@@ -5,17 +5,13 @@ import { observer } from "mobx-react";
import Link from "next/link";
// icons
import { Eye, EyeOff, Info, X, XCircle } from "lucide-react";
-// ui
+// plane imports
+import { FORGOT_PASSWORD, SIGN_IN_WITH_CODE, SIGN_IN_WITH_PASSWORD, SIGN_UP_WITH_PASSWORD } from "@plane/constants";
+import { useTranslation } from "@plane/i18n";
import { Button, Input, Spinner } from "@plane/ui";
// components
import { ForgotPasswordPopover, PasswordStrengthMeter } from "@/components/account";
// constants
-import {
- FORGOT_PASSWORD,
- SIGN_IN_WITH_CODE,
- SIGN_IN_WITH_PASSWORD,
- SIGN_UP_WITH_PASSWORD,
-} from "@/constants/event-tracker";
// helpers
import { EAuthModes, EAuthSteps } from "@/helpers/authentication.helper";
import { API_BASE_URL } from "@/helpers/common.helper";
@@ -49,6 +45,8 @@ const authService = new AuthService();
export const AuthPasswordForm: React.FC<Props> = observer((props: Props) => {
const { email, isSMTPConfigured, handleAuthStep, handleEmailClear, mode, nextPath } = props;
+ // plane imports
+ const { t } = useTranslation();
// hooks
const { captureEvent } = useEventTracker();
// ref
@@ -92,7 +90,7 @@ export const AuthPasswordForm: React.FC<Props> = observer((props: Props) => {
href={`/accounts/forgot-password?email=${encodeURIComponent(email)}`}
className="text-xs font-medium text-custom-primary-100"
>
- Forgot your password?
+ {t("auth.common.forgot_password")}
</Link>
) : (
<ForgotPasswordPopover />
@@ -134,7 +132,7 @@ export const AuthPasswordForm: React.FC<Props> = observer((props: Props) => {
<div className="w-4 h-4 flex-shrink-0 relative flex justify-center items-center">
<Info size={16} className="text-red-500" />
</div>
- <div className="w-full text-sm font-medium text-red-500">Try setting-up a strong password to proceed</div>
+ <div className="w-full text-sm font-medium text-red-500">{t("auth.sign_up.errors.password.strength")}</div>
<div
className="relative ml-auto w-6 h-6 rounded-sm flex justify-center items-center transition-all cursor-pointer hover:bg-red-500/20 text-custom-primary-100/80"
onClick={() => setBannerMessage(false)}
@@ -158,7 +156,7 @@ export const AuthPasswordForm: React.FC<Props> = observer((props: Props) => {
if (isPasswordValid) {
setIsSubmitting(true);
captureEvent(mode === EAuthModes.SIGN_IN ? SIGN_IN_WITH_PASSWORD : SIGN_UP_WITH_PASSWORD);
- formRef.current && formRef.current.submit(); // Manually submit the form if the condition is met
+ if (formRef.current) formRef.current.submit(); // Manually submit the form if the condition is met
} else {
setBannerMessage(true);
}
@@ -170,7 +168,7 @@ export const AuthPasswordForm: React.FC<Props> = observer((props: Props) => {
{nextPath && <input type="hidden" value={nextPath} name="next_path" />}
<div className="space-y-1">
<label className="text-sm font-medium text-onboarding-text-300" htmlFor="email">
- Email
+ {t("auth.common.email.label")}
</label>
<div
className={`relative flex items-center rounded-md bg-onboarding-background-200 border border-onboarding-border-100`}
@@ -181,7 +179,7 @@ export const AuthPasswordForm: React.FC<Props> = observer((props: Props) => {
type="email"
value={passwordFormData.email}
onChange={(e) => handleFormChange("email", e.target.value)}
- placeholder="[email protected]"
+ placeholder={t("auth.common.email.placeholder")}
className={`disable-autofill-style h-[46px] w-full placeholder:text-onboarding-text-400 border-0`}
disabled
/>
@@ -196,7 +194,7 @@ export const AuthPasswordForm: React.FC<Props> = observer((props: Props) => {
<div className="space-y-1">
<label className="text-sm text-onboarding-text-300 font-medium" htmlFor="password">
- {mode === EAuthModes.SIGN_IN ? "Password" : "Set a password"}
+ {mode === EAuthModes.SIGN_IN ? t("auth.common.password.label") : t("auth.common.password.set_password")}
</label>
<div className="relative flex items-center rounded-md bg-onboarding-background-200">
<Input
@@ -204,7 +202,7 @@ export const AuthPasswordForm: React.FC<Props> = observer((props: Props) => {
name="password"
value={passwordFormData.password}
onChange={(e) => handleFormChange("password", e.target.value)}
- placeholder="Enter password"
+ placeholder={t("auth.common.password.placeholder")}
className="disable-autofill-style h-[46px] w-full border border-onboarding-border-100 !bg-onboarding-background-200 pr-12 placeholder:text-onboarding-text-400"
onFocus={() => setIsPasswordInputFocused(true)}
onBlur={() => setIsPasswordInputFocused(false)}
@@ -229,7 +227,7 @@ export const AuthPasswordForm: React.FC<Props> = observer((props: Props) => {
{mode === EAuthModes.SIGN_UP && (
<div className="space-y-1">
<label className="text-sm text-onboarding-text-300 font-medium" htmlFor="confirm_password">
- Confirm password
+ {t("auth.common.password.confirm_password.label")}
</label>
<div className="relative flex items-center rounded-md bg-onboarding-background-200">
<Input
@@ -237,7 +235,7 @@ export const AuthPasswordForm: React.FC<Props> = observer((props: Props) => {
name="confirm_password"
value={passwordFormData.confirm_password}
onChange={(e) => handleFormChange("confirm_password", e.target.value)}
- placeholder="Confirm password"
+ placeholder={t("auth.common.password.confirm_password.placeholder")}
className="disable-autofill-style h-[46px] w-full border border-onboarding-border-100 !bg-onboarding-background-200 pr-12 placeholder:text-onboarding-text-400"
onFocus={() => setIsRetryPasswordInputFocused(true)}
onBlur={() => setIsRetryPasswordInputFocused(false)}
@@ -256,7 +254,9 @@ export const AuthPasswordForm: React.FC<Props> = observer((props: Props) => {
</div>
{!!passwordFormData.confirm_password &&
passwordFormData.password !== passwordFormData.confirm_password &&
- renderPasswordMatchError && <span className="text-sm text-red-500">Passwords don{"'"}t match</span>}
+ renderPasswordMatchError && (
+ <span className="text-sm text-red-500">{t("auth.common.password.errors.match")}</span>
+ )}
</div>
)}
@@ -267,9 +267,9 @@ export const AuthPasswordForm: React.FC<Props> = observer((props: Props) => {
{isSubmitting ? (
<Spinner height="20px" width="20px" />
) : isSMTPConfigured ? (
- "Continue"
+ t("common.continue")
) : (
- "Go to workspace"
+ t("common.go_to_workspace")
)}
</Button>
{isSMTPConfigured && (
@@ -280,7 +280,7 @@ export const AuthPasswordForm: React.FC<Props> = observer((props: Props) => {
className="w-full"
size="lg"
>
- Sign in with unique code
+ {t("auth.common.sign_in_with_unique_code")}
</Button>
)}
</>
diff --git a/web/core/components/account/auth-forms/unique-code.tsx b/web/core/components/account/auth-forms/unique-code.tsx
index 530874eb9c..b301f268b1 100644
--- a/web/core/components/account/auth-forms/unique-code.tsx
+++ b/web/core/components/account/auth-forms/unique-code.tsx
@@ -2,9 +2,10 @@
import React, { useEffect, useState } from "react";
import { CircleCheck, XCircle } from "lucide-react";
+import { CODE_VERIFIED } from "@plane/constants";
+import { useTranslation } from "@plane/i18n";
import { Button, Input, Spinner } from "@plane/ui";
// constants
-import { CODE_VERIFIED } from "@/constants/event-tracker";
// helpers
import { EAuthModes } from "@/helpers/authentication.helper";
import { API_BASE_URL } from "@/helpers/common.helper";
@@ -49,6 +50,8 @@ export const AuthUniqueCodeForm: React.FC<TAuthUniqueCodeForm> = (props) => {
const [isSubmitting, setIsSubmitting] = useState(false);
// timer
const { timer: resendTimerCode, setTimer: setResendCodeTimer } = useTimer(0);
+ // plane hooks
+ const { t } = useTranslation();
const handleFormChange = (key: keyof TUniqueCodeFormValues, value: string) =>
setUniqueCodeFormData((prev) => ({ ...prev, [key]: value }));
@@ -94,7 +97,7 @@ export const AuthUniqueCodeForm: React.FC<TAuthUniqueCodeForm> = (props) => {
{nextPath && <input type="hidden" value={nextPath} name="next_path" />}
<div className="space-y-1">
<label className="text-sm font-medium text-onboarding-text-300" htmlFor="email">
- Email
+ {t("auth.common.email.label")}
</label>
<div
className={`relative flex items-center rounded-md bg-onboarding-background-200 border border-onboarding-border-100`}
@@ -105,7 +108,7 @@ export const AuthUniqueCodeForm: React.FC<TAuthUniqueCodeForm> = (props) => {
type="email"
value={uniqueCodeFormData.email}
onChange={(e) => handleFormChange("email", e.target.value)}
- placeholder="[email protected]"
+ placeholder={t("auth.common.email.placeholder")}
className={`disable-autofill-style h-[46px] w-full placeholder:text-onboarding-text-400 border-0`}
autoComplete="on"
disabled
@@ -121,20 +124,20 @@ export const AuthUniqueCodeForm: React.FC<TAuthUniqueCodeForm> = (props) => {
<div className="space-y-1">
<label className="text-sm font-medium text-onboarding-text-300" htmlFor="code">
- Unique code
+ {t("auth.common.unique_code.label")}
</label>
<Input
name="code"
value={uniqueCodeFormData.code}
onChange={(e) => handleFormChange("code", e.target.value)}
- placeholder="gets-sets-flys"
+ placeholder={t("auth.common.unique_code.placeholder")}
className="disable-autofill-style h-[46px] w-full border border-onboarding-border-100 !bg-onboarding-background-200 pr-12 placeholder:text-onboarding-text-400"
autoFocus
/>
<div className="flex w-full items-center justify-between px-1 text-xs pt-1">
<p className="flex items-center gap-1 font-medium text-green-700">
<CircleCheck height={12} width={12} />
- Paste the code sent to your email
+ {t("auth.common.unique_code.paste_code")}
</p>
<button
type="button"
@@ -147,17 +150,17 @@ export const AuthUniqueCodeForm: React.FC<TAuthUniqueCodeForm> = (props) => {
disabled={isRequestNewCodeDisabled}
>
{resendTimerCode > 0
- ? `Resend in ${resendTimerCode}s`
+ ? t("auth.common.resend_in", { seconds: resendTimerCode })
: isRequestingNewCode
- ? "Requesting new code"
- : "Resend"}
+ ? t("auth.common.unique_code.requesting_new_code")
+ : t("common.resend")}
</button>
</div>
</div>
<div className="space-y-2.5">
<Button type="submit" variant="primary" className="w-full" size="lg" disabled={isButtonDisabled}>
- {isRequestingNewCode ? "Sending code" : isSubmitting ? <Spinner height="20px" width="20px" /> : "Continue"}
+ {isRequestingNewCode ? t("auth.common.unique_code.sending_code") : isSubmitting ? <Spinner height="20px" width="20px" /> : t("common.continue")}
</Button>
</div>
</form>
diff --git a/web/core/components/account/password-strength-meter.tsx b/web/core/components/account/password-strength-meter.tsx
index 358320eb51..1f0abae9c9 100644
--- a/web/core/components/account/password-strength-meter.tsx
+++ b/web/core/components/account/password-strength-meter.tsx
@@ -26,35 +26,35 @@ export const PasswordStrengthMeter: FC<TPasswordStrengthMeter> = (props) => {
case E_PASSWORD_STRENGTH.EMPTY: {
return {
bars: [`bg-custom-text-100`, `bg-custom-text-100`, `bg-custom-text-100`],
- text: t("please_enter_your_password"),
+ text: t("auth.common.password.errors.empty"),
textColor: "text-custom-text-100",
};
}
case E_PASSWORD_STRENGTH.LENGTH_NOT_VALID: {
return {
bars: [`bg-red-500`, `bg-custom-text-100`, `bg-custom-text-100`],
- text: t("password_length_should_me_more_than_8_characters"),
+ text: t("auth.common.password.errors.length"),
textColor: "text-red-500",
};
}
case E_PASSWORD_STRENGTH.STRENGTH_NOT_VALID: {
return {
bars: [`bg-red-500`, `bg-custom-text-100`, `bg-custom-text-100`],
- text: t("password_is_weak"),
+ text: t("auth.common.password.errors.strength.weak"),
textColor: "text-red-500",
};
}
case E_PASSWORD_STRENGTH.STRENGTH_VALID: {
return {
bars: [`bg-green-500`, `bg-green-500`, `bg-green-500`],
- text: t("password_is_strong"),
+ text: t("auth.common.password.errors.strength.strong"),
textColor: "text-green-500",
};
}
default: {
return {
bars: [`bg-custom-text-100`, `bg-custom-text-100`, `bg-custom-text-100`],
- text: t("please_enter_your_password"),
+ text: t("auth.common.password.errors.empty"),
textColor: "text-custom-text-100",
};
}
diff --git a/web/core/components/analytics/custom-analytics/graph/custom-tooltip.tsx b/web/core/components/analytics/custom-analytics/graph/custom-tooltip.tsx
index 10b63df3d3..853c541e71 100644
--- a/web/core/components/analytics/custom-analytics/graph/custom-tooltip.tsx
+++ b/web/core/components/analytics/custom-analytics/graph/custom-tooltip.tsx
@@ -43,7 +43,7 @@ export const CustomTooltip: React.FC<Props> = ({ datum, analytics, params }) =>
} else tooltipValue = datum.id;
} else {
if (ANALYTICS_DATE_KEYS.includes(params.x_axis)) tooltipValue = datum.indexValue;
- else tooltipValue = datum.id === "count" ? "Issue count" : "Estimate";
+ else tooltipValue = datum.id === "count" ? "Work item count" : "Estimate";
}
return (
diff --git a/web/core/components/analytics/custom-analytics/graph/index.tsx b/web/core/components/analytics/custom-analytics/graph/index.tsx
index 57531e373e..87627bba37 100644
--- a/web/core/components/analytics/custom-analytics/graph/index.tsx
+++ b/web/core/components/analytics/custom-analytics/graph/index.tsx
@@ -32,7 +32,7 @@ export const AnalyticsGraph: React.FC<Props> = ({ analytics, barGraphData, param
let data: number[] = [];
if (params.segment)
- // find the total no of issues in each segment
+ // find the total no of work items in each segment
data = Object.keys(analytics.distribution).map((segment) => {
let totalSegmentIssues = 0;
diff --git a/web/core/components/analytics/custom-analytics/main-content.tsx b/web/core/components/analytics/custom-analytics/main-content.tsx
index 8c1f8451f3..b990c53bc7 100644
--- a/web/core/components/analytics/custom-analytics/main-content.tsx
+++ b/web/core/components/analytics/custom-analytics/main-content.tsx
@@ -46,7 +46,7 @@ export const CustomAnalyticsMainContent: React.FC<Props> = (props) => {
) : (
<div className="grid h-full place-items-center p-5">
<div className="space-y-4 text-custom-text-200">
- <p className="text-sm">No matching issues found. Try changing the parameters.</p>
+ <p className="text-sm">No matching work items found. Try changing the parameters.</p>
</div>
</div>
)
diff --git a/web/core/components/analytics/custom-analytics/sidebar/projects-list.tsx b/web/core/components/analytics/custom-analytics/sidebar/projects-list.tsx
index ff6a11ce0b..c07867378a 100644
--- a/web/core/components/analytics/custom-analytics/sidebar/projects-list.tsx
+++ b/web/core/components/analytics/custom-analytics/sidebar/projects-list.tsx
@@ -2,6 +2,7 @@ import { observer } from "mobx-react";
// icons
import { Contrast, LayoutGrid, Users, Loader as Spinner } from "lucide-react";
// plane imports
+import { useTranslation } from "@plane/i18n";
import { Loader } from "@plane/ui";
// components
import { Logo } from "@/components/common";
@@ -20,11 +21,12 @@ export const CustomAnalyticsSidebarProjectsList: React.FC<Props> = observer((pro
const { projectIds, isLoading, isUpdating } = props;
// store hooks
const { getProjectById, getProjectAnalyticsCountById } = useProject();
+ const { t } = useTranslation();
return (
<div className="relative flex flex-col gap-4 h-full">
<div className="flex gap-2 items-center">
- <h4 className="font-medium">Selected Projects</h4>
+ <h4 className="font-medium">{t("workspace_analytics.selected_projects")}</h4>
{isUpdating && <Spinner className="animate-spin size-3" />}
</div>
<div className="relative space-y-6 overflow-hidden overflow-y-auto vertical-scrollbar scrollbar-md">
@@ -57,21 +59,21 @@ export const CustomAnalyticsSidebarProjectsList: React.FC<Props> = observer((pro
<div className="flex items-center justify-between gap-2 text-xs">
<div className="flex items-center gap-2">
<Users className="text-custom-text-200" size={14} strokeWidth={2} />
- <h6>Total members</h6>
+ <h6>{t("workspace_analytics.total_members")}</h6>
</div>
<span className="text-custom-text-200">{projectAnalyticsCount?.total_members}</span>
</div>
<div className="flex items-center justify-between gap-2 text-xs">
<div className="flex items-center gap-2">
<Contrast className="text-custom-text-200" size={14} strokeWidth={2} />
- <h6>Total cycles</h6>
+ <h6>{t("workspace_analytics.total_cycles")}</h6>
</div>
<span className="text-custom-text-200">{projectAnalyticsCount?.total_cycles}</span>
</div>
<div className="flex items-center justify-between gap-2 text-xs">
<div className="flex items-center gap-2">
<LayoutGrid className="text-custom-text-200" size={14} strokeWidth={2} />
- <h6>Total modules</h6>
+ <h6>{t("workspace_analytics.total_modules")}</h6>
</div>
<span className="text-custom-text-200">{projectAnalyticsCount?.total_modules}</span>
</div>
diff --git a/web/core/components/analytics/custom-analytics/sidebar/sidebar-header.tsx b/web/core/components/analytics/custom-analytics/sidebar/sidebar-header.tsx
index 9873d08a87..707a149221 100644
--- a/web/core/components/analytics/custom-analytics/sidebar/sidebar-header.tsx
+++ b/web/core/components/analytics/custom-analytics/sidebar/sidebar-header.tsx
@@ -1,9 +1,10 @@
import { observer } from "mobx-react";
import { useParams } from "next/navigation";
// components
+import { NETWORK_CHOICES } from "@plane/constants";
+import { useTranslation } from "@plane/i18n";
import { Logo } from "@/components/common";
// constants
-import { NETWORK_CHOICES } from "@/constants/project";
// helpers
import { renderFormattedDate } from "@/helpers/date-time.helper";
// hooks
@@ -16,6 +17,7 @@ export const CustomAnalyticsSidebarHeader = observer(() => {
const { getCycleById } = useCycle();
const { getModuleById } = useModule();
const { getUserDetails } = useMember();
+ const { t } = useTranslation();
const cycleDetails = cycleId ? getCycleById(cycleId.toString()) : undefined;
const moduleDetails = moduleId ? getModuleById(moduleId.toString()) : undefined;
@@ -91,7 +93,7 @@ export const CustomAnalyticsSidebarHeader = observer(() => {
<div className="mt-4 space-y-4">
<div className="flex items-center gap-2 text-xs">
<h6 className="text-custom-text-200">Network</h6>
- <span>{NETWORK_CHOICES.find((n) => n.key === projectDetails?.network)?.label ?? ""}</span>
+ <span>{t(NETWORK_CHOICES.find((n) => n.key === projectDetails?.network)?.i18n_label ?? "")}</span>
</div>
</div>
</div>
diff --git a/web/core/components/analytics/custom-analytics/sidebar/sidebar.tsx b/web/core/components/analytics/custom-analytics/sidebar/sidebar.tsx
index 170d3ed680..5df139205a 100644
--- a/web/core/components/analytics/custom-analytics/sidebar/sidebar.tsx
+++ b/web/core/components/analytics/custom-analytics/sidebar/sidebar.tsx
@@ -7,6 +7,7 @@ import useSWR, { mutate } from "swr";
// icons
import { CalendarDays, Download, RefreshCw } from "lucide-react";
// types
+import { useTranslation } from "@plane/i18n";
import { IAnalyticsParams, IAnalyticsResponse, IExportAnalyticsFormData, IWorkspace } from "@plane/types";
// ui
import { Button, LayersIcon, TOAST_TYPE, setToast } from "@plane/ui";
@@ -42,6 +43,7 @@ export const CustomAnalyticsSidebar: React.FC<Props> = observer((props) => {
const { data: currentUser } = useUser();
const { workspaceProjectIds, getProjectById, fetchProjectAnalyticsCount } = useProject();
const { getWorkspaceById } = useWorkspace();
+ const { t } = useTranslation();
const { fetchCycleDetails, getCycleById } = useCycle();
const { fetchModuleDetails, getModuleById } = useModule();
// fetch project analytics count
@@ -160,7 +162,7 @@ export const CustomAnalyticsSidebar: React.FC<Props> = observer((props) => {
<div className="flex items-center gap-1 rounded-md bg-custom-background-80 px-3 py-1 text-xs text-custom-text-200">
<LayersIcon height={14} width={14} />
{analytics ? analytics.total : "..."}
- <div className={cn(isProjectLevel ? "hidden md:block" : "")}>Issues</div>
+ <div className={cn(isProjectLevel ? "hidden md:block" : "")}>{t("work_items")}</div>
</div>
{isProjectLevel && (
<div className="flex items-center gap-1 rounded-md bg-custom-background-80 px-3 py-1 text-xs text-custom-text-200">
@@ -199,10 +201,10 @@ export const CustomAnalyticsSidebar: React.FC<Props> = observer((props) => {
mutate(ANALYTICS(workspaceSlug.toString(), params));
}}
>
- <div className={cn(isProjectLevel ? "hidden md:block" : "")}>Refresh</div>
+ <div className={cn(isProjectLevel ? "hidden md:block" : "", "capitalize")}>{t("refresh")}</div>
</Button>
<Button variant="primary" prependIcon={<Download className="h-3.5 w-3.5" />} onClick={exportAnalytics}>
- <div className={cn(isProjectLevel ? "hidden md:block" : "")}>Export as CSV</div>
+ <div className={cn(isProjectLevel ? "hidden md:block" : "")}>{t("exporter.csv.short_description")}</div>
</Button>
</div>
</div>
diff --git a/web/core/components/analytics/project-modal/main-content.tsx b/web/core/components/analytics/project-modal/main-content.tsx
index b572efdcb0..cd3813f80c 100644
--- a/web/core/components/analytics/project-modal/main-content.tsx
+++ b/web/core/components/analytics/project-modal/main-content.tsx
@@ -3,6 +3,7 @@ import { observer } from "mobx-react";
import { Tab } from "@headlessui/react";
// plane package imports
import { ANALYTICS_TABS } from "@plane/constants";
+import { useTranslation } from "@plane/i18n";
import { ICycle, IModule, IProject } from "@plane/types";
// components
import { CustomAnalytics, ScopeAndDemand } from "@/components/analytics";
@@ -16,7 +17,7 @@ type Props = {
export const ProjectAnalyticsModalMainContent: React.FC<Props> = observer((props) => {
const { fullScreen, cycleDetails, moduleDetails } = props;
-
+ const { t } = useTranslation();
return (
<Tab.Group as={React.Fragment}>
<Tab.List as="div" className="flex space-x-2 border-b h-[50px] border-custom-border-200 px-0 md:px-3">
@@ -28,7 +29,7 @@ export const ProjectAnalyticsModalMainContent: React.FC<Props> = observer((props
selected ? "text-custom-primary-100 " : "hover:text-custom-text-200"
}`}
>
- {tab.title}
+ {t(tab.i18n_title)}
<div
className={`border absolute bottom-0 right-0 left-0 rounded-t-md ${selected ? "border-custom-primary-100" : "border-transparent group-hover:border-custom-border-200"}`}
/>
diff --git a/web/core/components/analytics/scope-and-demand/demand.tsx b/web/core/components/analytics/scope-and-demand/demand.tsx
index 39a04cf9bd..fefdc8fc6e 100644
--- a/web/core/components/analytics/scope-and-demand/demand.tsx
+++ b/web/core/components/analytics/scope-and-demand/demand.tsx
@@ -1,52 +1,58 @@
+// plane imports
+import { STATE_GROUPS } from "@plane/constants";
+import { useTranslation } from "@plane/i18n";
// types
import { IDefaultAnalyticsResponse, TStateGroups } from "@plane/types";
// constants
import { Card } from "@plane/ui";
-import { STATE_GROUPS } from "@/constants/state";
type Props = {
defaultAnalytics: IDefaultAnalyticsResponse;
};
-export const AnalyticsDemand: React.FC<Props> = ({ defaultAnalytics }) => (
- <Card>
- <div>
- <h4 className="text-base font-medium text-custom-text-100">Total open tasks</h4>
- <h3 className="mt-1 text-xl font-semibold">{defaultAnalytics.open_issues}</h3>
- </div>
- <div className="space-y-6 pb-2">
- {defaultAnalytics?.open_issues_classified.map((group) => {
- const percentage = ((group.state_count / defaultAnalytics.total_issues) * 100).toFixed(0);
+export const AnalyticsDemand: React.FC<Props> = ({ defaultAnalytics }) => {
+ const { t } = useTranslation();
- return (
- <div key={group.state_group} className="space-y-2">
- <div className="flex items-center justify-between gap-2 text-xs">
- <div className="flex items-center gap-1">
- <span
- className="h-2 w-2 rounded-full"
+ return (
+ <Card>
+ <div>
+ <h4 className="text-base font-medium text-custom-text-100">{t("workspace_analytics.open_tasks")}</h4>
+ <h3 className="mt-1 text-xl font-semibold">{defaultAnalytics.open_issues}</h3>
+ </div>
+ <div className="space-y-6 pb-2">
+ {defaultAnalytics?.open_issues_classified.map((group) => {
+ const percentage = ((group.state_count / defaultAnalytics.total_issues) * 100).toFixed(0);
+
+ return (
+ <div key={group.state_group} className="space-y-2">
+ <div className="flex items-center justify-between gap-2 text-xs">
+ <div className="flex items-center gap-1">
+ <span
+ className="h-2 w-2 rounded-full"
+ style={{
+ backgroundColor: STATE_GROUPS[group.state_group as TStateGroups].color,
+ }}
+ />
+ <h6 className="capitalize">{group.state_group}</h6>
+ <span className="ml-1 rounded-3xl bg-custom-background-80 px-2 py-0.5 text-[0.65rem] text-custom-text-200">
+ {group.state_count}
+ </span>
+ </div>
+ <p className="text-custom-text-200">{percentage}%</p>
+ </div>
+ <div className="bar relative h-1 w-full rounded bg-custom-background-80">
+ <div
+ className="absolute left-0 top-0 h-1 rounded duration-300"
style={{
+ width: `${percentage}%`,
backgroundColor: STATE_GROUPS[group.state_group as TStateGroups].color,
}}
/>
- <h6 className="capitalize">{group.state_group}</h6>
- <span className="ml-1 rounded-3xl bg-custom-background-80 px-2 py-0.5 text-[0.65rem] text-custom-text-200">
- {group.state_count}
- </span>
</div>
- <p className="text-custom-text-200">{percentage}%</p>
</div>
- <div className="bar relative h-1 w-full rounded bg-custom-background-80">
- <div
- className="absolute left-0 top-0 h-1 rounded duration-300"
- style={{
- width: `${percentage}%`,
- backgroundColor: STATE_GROUPS[group.state_group as TStateGroups].color,
- }}
- />
- </div>
- </div>
- );
- })}
- </div>
- </Card>
-);
+ );
+ })}
+ </div>
+ </Card>
+ );
+};
diff --git a/web/core/components/analytics/scope-and-demand/leaderboard.tsx b/web/core/components/analytics/scope-and-demand/leaderboard.tsx
index 69b1c5d67b..76f96be4a2 100644
--- a/web/core/components/analytics/scope-and-demand/leaderboard.tsx
+++ b/web/core/components/analytics/scope-and-demand/leaderboard.tsx
@@ -1,4 +1,5 @@
// plane ui
+import { useTranslation } from "@plane/i18n";
import { Card } from "@plane/ui";
// components
import { ProfileEmptyState } from "@/components/ui";
@@ -21,45 +22,48 @@ type Props = {
workspaceSlug: string;
};
-export const AnalyticsLeaderBoard: React.FC<Props> = ({ users, title, emptyStateMessage, workspaceSlug }) => (
- <Card>
- <h6 className="text-base font-medium">{title}</h6>
- {users.length > 0 ? (
- <div className="mt-3 space-y-3">
- {users.map((user) => (
- <a
- key={user?.display_name ?? "None"}
- href={`/${workspaceSlug}/profile/${user.id}`}
- target="_blank"
- rel="noopener noreferrer"
- className="flex items-start justify-between gap-4 text-xs"
- >
- <div className="flex items-center gap-2">
- {user.avatar_url && user.avatar_url !== "" ? (
- <div className="relative h-4 w-4 flex-shrink-0 rounded-full">
- <img
- src={getFileURL(user.avatar_url)}
- className="absolute left-0 top-0 h-full w-full rounded-full object-cover"
- alt={user?.display_name ?? "None"}
- />
- </div>
- ) : (
- <div className="grid h-4 w-4 flex-shrink-0 place-items-center rounded-full bg-gray-700 text-[11px] capitalize text-white">
- {user?.display_name !== "" ? user?.display_name?.[0] : "?"}
- </div>
- )}
- <span className="break-words text-custom-text-200">
- {user?.display_name !== "" ? `${user?.display_name}` : "No assignee"}
- </span>
- </div>
- <span className="flex-shrink-0">{user.count}</span>
- </a>
- ))}
- </div>
- ) : (
- <div className="px-7 py-4">
- <ProfileEmptyState title="No Data yet" description={emptyStateMessage} image={emptyUsers} />
- </div>
- )}
- </Card>
-);
+export const AnalyticsLeaderBoard: React.FC<Props> = ({ users, title, emptyStateMessage, workspaceSlug }) => {
+ const { t } = useTranslation();
+ return (
+ <Card>
+ <h6 className="text-base font-medium">{title}</h6>
+ {users.length > 0 ? (
+ <div className="mt-3 space-y-3">
+ {users.map((user) => (
+ <a
+ key={user?.display_name ?? "None"}
+ href={`/${workspaceSlug}/profile/${user.id}`}
+ target="_blank"
+ rel="noopener noreferrer"
+ className="flex items-start justify-between gap-4 text-xs"
+ >
+ <div className="flex items-center gap-2">
+ {user.avatar_url && user.avatar_url !== "" ? (
+ <div className="relative h-4 w-4 flex-shrink-0 rounded-full">
+ <img
+ src={getFileURL(user.avatar_url)}
+ className="absolute left-0 top-0 h-full w-full rounded-full object-cover"
+ alt={user?.display_name ?? "None"}
+ />
+ </div>
+ ) : (
+ <div className="grid h-4 w-4 flex-shrink-0 place-items-center rounded-full bg-gray-700 text-[11px] capitalize text-white">
+ {user?.display_name !== "" ? user?.display_name?.[0] : "?"}
+ </div>
+ )}
+ <span className="break-words text-custom-text-200">
+ {user?.display_name !== "" ? `${user?.display_name}` : "No assignee"}
+ </span>
+ </div>
+ <span className="flex-shrink-0">{user.count}</span>
+ </a>
+ ))}
+ </div>
+ ) : (
+ <div className="px-7 py-4">
+ <ProfileEmptyState title={t("no_data_yet")} description={emptyStateMessage} image={emptyUsers} />
+ </div>
+ )}
+ </Card>
+ );
+};
diff --git a/web/core/components/analytics/scope-and-demand/scope-and-demand.tsx b/web/core/components/analytics/scope-and-demand/scope-and-demand.tsx
index 6aac07c6a2..ae51727aa0 100644
--- a/web/core/components/analytics/scope-and-demand/scope-and-demand.tsx
+++ b/web/core/components/analytics/scope-and-demand/scope-and-demand.tsx
@@ -2,6 +2,7 @@
import { useParams } from "next/navigation";
import useSWR from "swr";
// ui
+import { useTranslation } from "@plane/i18n";
import { Button, ContentWrapper, Loader } from "@plane/ui";
// components
import { AnalyticsDemand, AnalyticsLeaderBoard, AnalyticsScope, AnalyticsYearWiseIssues } from "@/components/analytics";
@@ -21,6 +22,7 @@ export const ScopeAndDemand: React.FC<Props> = (props) => {
const { fullScreen = true } = props;
const { workspaceSlug, projectId, cycleId, moduleId } = useParams();
+ const { t } = useTranslation();
const isProjectLevel = projectId ? true : false;
@@ -66,8 +68,8 @@ export const ScopeAndDemand: React.FC<Props> = (props) => {
count: user?.count,
id: user?.created_by__id,
}))}
- title="Most issues created"
- emptyStateMessage="Co-workers and the number of issues created by them appears here."
+ title={t("workspace_analytics.most_work_items_created.title")}
+ emptyStateMessage={t("workspace_analytics.most_work_items_created.empty_state")}
workspaceSlug={workspaceSlug?.toString() ?? ""}
/>
<AnalyticsLeaderBoard
@@ -79,8 +81,8 @@ export const ScopeAndDemand: React.FC<Props> = (props) => {
count: user?.count,
id: user?.assignees__id,
}))}
- title="Most issues closed"
- emptyStateMessage="Co-workers and the number of issues closed by them appears here."
+ title={t("workspace_analytics.most_work_items_closed.title")}
+ emptyStateMessage={t("workspace_analytics.most_work_items_closed.empty_state")}
workspaceSlug={workspaceSlug?.toString() ?? ""}
/>
<div className={fullScreen ? "md:col-span-2" : ""}>
@@ -99,10 +101,10 @@ export const ScopeAndDemand: React.FC<Props> = (props) => {
) : (
<div className="grid h-full place-items-center p-5">
<div className="space-y-4 text-custom-text-200">
- <p className="text-sm">There was some error in fetching the data.</p>
+ <p className="text-sm">{t("workspace_analytics.error")}</p>
<div className="flex items-center justify-center gap-2">
<Button variant="primary" onClick={() => mutateDefaultAnalytics()}>
- Refresh
+ {t("refresh")}
</Button>
</div>
</div>
diff --git a/web/core/components/analytics/scope-and-demand/scope.tsx b/web/core/components/analytics/scope-and-demand/scope.tsx
index 6711150975..13cd60d566 100644
--- a/web/core/components/analytics/scope-and-demand/scope.tsx
+++ b/web/core/components/analytics/scope-and-demand/scope.tsx
@@ -1,4 +1,5 @@
// plane types
+import { useTranslation } from "@plane/i18n";
import { IDefaultAnalyticsUser } from "@plane/types";
// plane ui
import { Card } from "@plane/ui";
@@ -14,82 +15,85 @@ type Props = {
pendingAssignedIssues: IDefaultAnalyticsUser[];
};
-export const AnalyticsScope: React.FC<Props> = ({ pendingUnAssignedIssuesUser, pendingAssignedIssues }) => (
- <Card>
- <div className="divide-y divide-custom-border-200">
- <div>
- <div className="flex items-center justify-between">
- <h6 className="text-base font-medium">Pending issues</h6>
- {pendingUnAssignedIssuesUser && (
- <div className="relative flex items-center py-1 px-3 rounded-md gap-2 text-xs text-custom-primary-100 bg-custom-primary-100/10">
- Unassigned: {pendingUnAssignedIssuesUser.count}
- </div>
- )}
- </div>
+export const AnalyticsScope: React.FC<Props> = ({ pendingUnAssignedIssuesUser, pendingAssignedIssues }) => {
+ const { t } = useTranslation();
+ return (
+ <Card>
+ <div className="divide-y divide-custom-border-200">
+ <div>
+ <div className="flex items-center justify-between">
+ <h6 className="text-base font-medium">{t("workspace_analytics.pending_work_items.title")}</h6>
+ {pendingUnAssignedIssuesUser && (
+ <div className="relative flex items-center py-1 px-3 rounded-md gap-2 text-xs text-custom-primary-100 bg-custom-primary-100/10">
+ {t("unassigned")}: {pendingUnAssignedIssuesUser.count}
+ </div>
+ )}
+ </div>
- {pendingAssignedIssues && pendingAssignedIssues.length > 0 ? (
- <BarGraph
- data={pendingAssignedIssues}
- indexBy="assignees__id"
- keys={["count"]}
- height="250px"
- colors={() => `#f97316`}
- customYAxisTickValues={pendingAssignedIssues.map((d) => (d.count > 0 ? d.count : 50))}
- tooltip={(datum) => {
- const assignee = pendingAssignedIssues.find((a) => a.assignees__id === `${datum.indexValue}`);
+ {pendingAssignedIssues && pendingAssignedIssues.length > 0 ? (
+ <BarGraph
+ data={pendingAssignedIssues}
+ indexBy="assignees__id"
+ keys={["count"]}
+ height="250px"
+ colors={() => `#f97316`}
+ customYAxisTickValues={pendingAssignedIssues.map((d) => (d.count > 0 ? d.count : 50))}
+ tooltip={(datum) => {
+ const assignee = pendingAssignedIssues.find((a) => a.assignees__id === `${datum.indexValue}`);
- return (
- <div className="rounded-md border border-custom-border-200 bg-custom-background-80 p-2 text-xs">
- <span className="font-medium text-custom-text-200">
- {assignee ? assignee.assignees__display_name : "No assignee"}:{" "}
- </span>
- {datum.value}
- </div>
- );
- }}
- axisBottom={{
- renderTick: (datum) => {
- const assignee = pendingAssignedIssues[datum.tickIndex] ?? "";
+ return (
+ <div className="rounded-md border border-custom-border-200 bg-custom-background-80 p-2 text-xs">
+ <span className="font-medium text-custom-text-200">
+ {assignee ? assignee.assignees__display_name : "No assignee"}:{" "}
+ </span>
+ {datum.value}
+ </div>
+ );
+ }}
+ axisBottom={{
+ renderTick: (datum) => {
+ const assignee = pendingAssignedIssues[datum.tickIndex] ?? "";
- if (assignee && assignee?.assignees__avatar_url && assignee?.assignees__avatar_url !== "")
- return (
- <g transform={`translate(${datum.x},${datum.y})`}>
- <image
- x={-8}
- y={10}
- width={16}
- height={16}
- xlinkHref={getFileURL(assignee?.assignees__avatar_url)}
- style={{ clipPath: "circle(50%)" }}
- />
- </g>
- );
- else
- return (
- <g transform={`translate(${datum.x},${datum.y})`}>
- <circle cy={18} r={8} fill="#374151" />
- <text x={0} y={21} textAnchor="middle" fontSize={9} fill="#ffffff">
- {datum.value ? `${assignee.assignees__display_name}`.toUpperCase()[0] : "?"}
- </text>
- </g>
- );
- },
- }}
- margin={{ top: 20 }}
- theme={{
- axis: {},
- }}
- />
- ) : (
- <div className="px-7 py-4">
- <ProfileEmptyState
- title="No Data yet"
- description="Analysis of pending issues by co-workers appears here."
- image={emptyBarGraph}
+ if (assignee && assignee?.assignees__avatar_url && assignee?.assignees__avatar_url !== "")
+ return (
+ <g transform={`translate(${datum.x},${datum.y})`}>
+ <image
+ x={-8}
+ y={10}
+ width={16}
+ height={16}
+ xlinkHref={getFileURL(assignee?.assignees__avatar_url)}
+ style={{ clipPath: "circle(50%)" }}
+ />
+ </g>
+ );
+ else
+ return (
+ <g transform={`translate(${datum.x},${datum.y})`}>
+ <circle cy={18} r={8} fill="#374151" />
+ <text x={0} y={21} textAnchor="middle" fontSize={9} fill="#ffffff">
+ {datum.value ? `${assignee.assignees__display_name}`.toUpperCase()[0] : "?"}
+ </text>
+ </g>
+ );
+ },
+ }}
+ margin={{ top: 20 }}
+ theme={{
+ axis: {},
+ }}
/>
- </div>
- )}
+ ) : (
+ <div className="px-7 py-4">
+ <ProfileEmptyState
+ title={t("no_data_yet")}
+ description={t("workspace_analytics.pending_work_items.empty_state")}
+ image={emptyBarGraph}
+ />
+ </div>
+ )}
+ </div>
</div>
- </div>
- </Card>
-);
+ </Card>
+ );
+};
diff --git a/web/core/components/analytics/scope-and-demand/year-wise-issues.tsx b/web/core/components/analytics/scope-and-demand/year-wise-issues.tsx
index b2c5805dd7..0f469db702 100644
--- a/web/core/components/analytics/scope-and-demand/year-wise-issues.tsx
+++ b/web/core/components/analytics/scope-and-demand/year-wise-issues.tsx
@@ -1,4 +1,5 @@
// ui
+import { useTranslation } from "@plane/i18n";
import { IDefaultAnalyticsResponse } from "@plane/types";
import { Card } from "@plane/ui";
import { LineGraph, ProfileEmptyState } from "@/components/ui";
@@ -12,49 +13,52 @@ type Props = {
defaultAnalytics: IDefaultAnalyticsResponse;
};
-export const AnalyticsYearWiseIssues: React.FC<Props> = ({ defaultAnalytics }) => (
- <Card>
- <h1 className="py-3 text-base font-medium">Issues closed in a year</h1>
- {defaultAnalytics.issue_completed_month_wise.length > 0 ? (
- <LineGraph
- data={[
- {
- id: "issues_closed",
- color: "rgb(var(--color-primary-100))",
- data: Object.entries(MONTHS_LIST).map(([index, month]) => ({
- x: month.shortTitle,
- y:
- defaultAnalytics.issue_completed_month_wise.find((data) => data.month === parseInt(index, 10))?.count ||
- 0,
- })),
- },
- ]}
- customYAxisTickValues={defaultAnalytics.issue_completed_month_wise.map((data) => data.count)}
- height="300px"
- colors={(datum) => datum.color}
- curve="monotoneX"
- margin={{ top: 20 }}
- enableSlices="x"
- sliceTooltip={(datum) => (
- <div className="rounded-md border border-custom-border-200 bg-custom-background-80 p-2 text-xs">
- {datum.slice.points[0].data.yFormatted}
- <span className="text-custom-text-200"> issues closed in </span>
- {datum.slice.points[0].data.xFormatted}
- </div>
- )}
- theme={{
- background: "rgb(var(--color-background-100))",
- }}
- enableArea
- />
- ) : (
- <div className="px-7 py-4">
- <ProfileEmptyState
- title="No Data yet"
- description="Close issues to view analysis of the same in the form of a graph."
- image={emptyGraph}
+export const AnalyticsYearWiseIssues: React.FC<Props> = ({ defaultAnalytics }) => {
+ const { t } = useTranslation();
+ return (
+ <Card>
+ <h1 className="py-3 text-base font-medium">{t("workspace_analytics.work_items_closed_in_a_year.title")}</h1>
+ {defaultAnalytics.issue_completed_month_wise.length > 0 ? (
+ <LineGraph
+ data={[
+ {
+ id: "issues_closed",
+ color: "rgb(var(--color-primary-100))",
+ data: Object.entries(MONTHS_LIST).map(([index, month]) => ({
+ x: t(month.shortTitle),
+ y:
+ defaultAnalytics.issue_completed_month_wise.find((data) => data.month === parseInt(index, 10))
+ ?.count || 0,
+ })),
+ },
+ ]}
+ customYAxisTickValues={defaultAnalytics.issue_completed_month_wise.map((data) => data.count)}
+ height="300px"
+ colors={(datum) => datum.color}
+ curve="monotoneX"
+ margin={{ top: 20 }}
+ enableSlices="x"
+ sliceTooltip={(datum) => (
+ <div className="rounded-md border border-custom-border-200 bg-custom-background-80 p-2 text-xs">
+ {datum.slice.points[0].data.yFormatted}
+ <span className="text-custom-text-200"> {t("workspace_analytics.work_items_closed_in")} </span>
+ {datum.slice.points[0].data.xFormatted}
+ </div>
+ )}
+ theme={{
+ background: "rgb(var(--color-background-100))",
+ }}
+ enableArea
/>
- </div>
- )}
- </Card>
-);
+ ) : (
+ <div className="px-7 py-4">
+ <ProfileEmptyState
+ title={t("no_data_yet")}
+ description={t("workspace_analytics.work_items_closed_in_a_year.empty_state")}
+ image={emptyGraph}
+ />
+ </div>
+ )}
+ </Card>
+ );
+};
diff --git a/web/core/components/api-token/delete-token-modal.tsx b/web/core/components/api-token/delete-token-modal.tsx
index 4e7d15fdff..ecc85a5583 100644
--- a/web/core/components/api-token/delete-token-modal.tsx
+++ b/web/core/components/api-token/delete-token-modal.tsx
@@ -4,6 +4,7 @@ import { useState, FC } from "react";
import { useParams } from "next/navigation";
import { mutate } from "swr";
// types
+import { useTranslation } from "@plane/i18n";
import { IApiToken } from "@plane/types";
// ui
import { AlertModalCore, TOAST_TYPE, setToast } from "@plane/ui";
@@ -26,6 +27,7 @@ export const DeleteApiTokenModal: FC<Props> = (props) => {
const [deleteLoading, setDeleteLoading] = useState<boolean>(false);
// router params
const { workspaceSlug } = useParams();
+ const { t } = useTranslation();
const handleClose = () => {
onClose();
@@ -42,8 +44,8 @@ export const DeleteApiTokenModal: FC<Props> = (props) => {
.then(() => {
setToast({
type: TOAST_TYPE.SUCCESS,
- title: "Success!",
- message: "Token deleted successfully.",
+ title: t("workspace_settings.settings.api_tokens.delete.success.title"),
+ message: t("workspace_settings.settings.api_tokens.delete.success.message"),
});
mutate<IApiToken[]>(
@@ -57,8 +59,8 @@ export const DeleteApiTokenModal: FC<Props> = (props) => {
.catch((err) =>
setToast({
type: TOAST_TYPE.ERROR,
- title: "Error!",
- message: err?.message ?? "Something went wrong. Please try again.",
+ title: t("workspace_settings.settings.api_tokens.delete.error.title"),
+ message: err?.message ?? t("workspace_settings.settings.api_tokens.delete.error.message"),
})
)
.finally(() => setDeleteLoading(false));
@@ -70,12 +72,8 @@ export const DeleteApiTokenModal: FC<Props> = (props) => {
handleSubmit={handleDeletion}
isSubmitting={deleteLoading}
isOpen={isOpen}
- title="Delete API token"
- content={
- <>
- Any application using this token will no longer have the access to Plane data. This action cannot be undone.
- </>
- }
+ title={t("workspace_settings.settings.api_tokens.delete.title")}
+ content={<>{t("workspace_settings.settings.api_tokens.delete.description")} </>}
/>
);
};
diff --git a/web/core/components/api-token/modal/form.tsx b/web/core/components/api-token/modal/form.tsx
index 18ade7f2af..17e14ae563 100644
--- a/web/core/components/api-token/modal/form.tsx
+++ b/web/core/components/api-token/modal/form.tsx
@@ -5,6 +5,7 @@ import { add } from "date-fns";
import { Controller, useForm } from "react-hook-form";
import { Calendar } from "lucide-react";
// types
+import { useTranslation } from "@plane/i18n";
import { IApiToken } from "@plane/types";
// ui
import { Button, CustomSelect, Input, TextArea, ToggleSwitch, TOAST_TYPE, setToast } from "@plane/ui";
@@ -76,6 +77,8 @@ export const CreateApiTokenForm: React.FC<Props> = (props) => {
reset,
watch,
} = useForm<IApiToken>({ defaultValues });
+ // hooks
+ const { t } = useTranslation();
const handleFormSubmit = async (data: IApiToken) => {
// if never expires is toggled off, and the user has not selected a custom date or a predefined date, show an error
@@ -115,19 +118,21 @@ export const CreateApiTokenForm: React.FC<Props> = (props) => {
return (
<form onSubmit={handleSubmit(handleFormSubmit)}>
<div className="space-y-5 p-5">
- <h3 className="text-xl font-medium text-custom-text-200">Create token</h3>
+ <h3 className="text-xl font-medium text-custom-text-200">
+ {t("workspace_settings.settings.api_tokens.create_token")}
+ </h3>
<div className="space-y-3">
<div className="space-y-1">
<Controller
control={control}
name="label"
rules={{
- required: "Title is required",
+ required: t("title_is_required"),
maxLength: {
value: 255,
- message: "Title should be less than 255 characters",
+ message: t("title_should_be_less_than_255_characters"),
},
- validate: (val) => val.trim() !== "" || "Title is required",
+ validate: (val) => val.trim() !== "" || t("title_is_required"),
}}
render={({ field: { value, onChange } }) => (
<Input
@@ -135,7 +140,7 @@ export const CreateApiTokenForm: React.FC<Props> = (props) => {
value={value}
onChange={onChange}
hasError={Boolean(errors.label)}
- placeholder="Title"
+ placeholder={t("title")}
className="w-full text-base"
/>
)}
@@ -150,7 +155,7 @@ export const CreateApiTokenForm: React.FC<Props> = (props) => {
value={value}
onChange={onChange}
hasError={Boolean(errors.description)}
- placeholder="Description"
+ placeholder={t("description")}
className="w-full text-base resize-none min-h-24"
/>
)}
@@ -229,14 +234,16 @@ export const CreateApiTokenForm: React.FC<Props> = (props) => {
<div className="flex cursor-pointer items-center justify-center">
<ToggleSwitch value={neverExpires} onChange={() => {}} size="sm" />
</div>
- <span className="text-xs">Never expires</span>
+ <span className="text-xs">{t("workspace_settings.settings.api_tokens.never_expires")}</span>
</div>
<div className="flex items-center gap-2">
<Button variant="neutral-primary" size="sm" onClick={handleClose}>
- Cancel
+ {t("cancel")}
</Button>
<Button variant="primary" size="sm" type="submit" loading={isSubmitting}>
- {isSubmitting ? "Generating" : "Generate token"}
+ {isSubmitting
+ ? t("workspace_settings.settings.api_tokens.generating")
+ : t("workspace_settings.settings.api_tokens.generate_token")}
</Button>
</div>
</div>
diff --git a/web/core/components/api-token/modal/generated-token-details.tsx b/web/core/components/api-token/modal/generated-token-details.tsx
index 8f0a62c3ac..da833cefb3 100644
--- a/web/core/components/api-token/modal/generated-token-details.tsx
+++ b/web/core/components/api-token/modal/generated-token-details.tsx
@@ -1,6 +1,7 @@
"use client";
import { Copy } from "lucide-react";
+import { useTranslation } from "@plane/i18n";
import { IApiToken } from "@plane/types";
// ui
import { Button, Tooltip, TOAST_TYPE, setToast } from "@plane/ui";
@@ -19,12 +20,13 @@ type Props = {
export const GeneratedTokenDetails: React.FC<Props> = (props) => {
const { handleClose, tokenDetails } = props;
const { isMobile } = usePlatformOS();
+ const { t } = useTranslation();
const copyApiToken = (token: string) => {
copyTextToClipboard(token).then(() =>
setToast({
type: TOAST_TYPE.SUCCESS,
- title: "Success!",
- message: "Token copied to clipboard.",
+ title: `${t("success")}!`,
+ message: t("workspace_setting.token_copied"),
})
);
};
@@ -32,11 +34,8 @@ export const GeneratedTokenDetails: React.FC<Props> = (props) => {
return (
<div className="w-full p-5">
<div className="w-full space-y-3 text-wrap">
- <h3 className="text-lg font-medium leading-6 text-custom-text-100">Key created</h3>
- <p className="text-sm text-custom-text-400">
- Copy and save this secret key in Plane Pages. You can{"'"}t see this key after you hit Close. A CSV file
- containing the key has been downloaded.
- </p>
+ <h3 className="text-lg font-medium leading-6 text-custom-text-100">{t("workspace_settings.key_created")}</h3>
+ <p className="text-sm text-custom-text-400">{t("workspace_settings.copy_key")}</p>
</div>
<button
type="button"
@@ -53,7 +52,7 @@ export const GeneratedTokenDetails: React.FC<Props> = (props) => {
{tokenDetails.expired_at ? `Expires ${renderFormattedDate(tokenDetails.expired_at)}` : "Never expires"}
</p>
<Button variant="neutral-primary" size="sm" onClick={handleClose}>
- Close
+ {t("close")}
</Button>
</div>
</div>
diff --git a/web/core/components/archives/archive-tabs-list.tsx b/web/core/components/archives/archive-tabs-list.tsx
index 2e750219f2..5bba6cc204 100644
--- a/web/core/components/archives/archive-tabs-list.tsx
+++ b/web/core/components/archives/archive-tabs-list.tsx
@@ -14,7 +14,7 @@ const ARCHIVES_TAB_LIST: {
}[] = [
{
key: "issues",
- label: "Issues",
+ label: "Work items",
shouldRender: () => true,
},
{
diff --git a/web/core/components/automation/auto-archive-automation.tsx b/web/core/components/automation/auto-archive-automation.tsx
index 84544a1f86..018f69fd46 100644
--- a/web/core/components/automation/auto-archive-automation.tsx
+++ b/web/core/components/automation/auto-archive-automation.tsx
@@ -5,16 +5,16 @@ import { observer } from "mobx-react";
import { useParams } from "next/navigation";
import { ArchiveRestore } from "lucide-react";
// types
+import { PROJECT_AUTOMATION_MONTHS,EUserPermissions, EUserPermissionsLevel } from "@plane/constants";
+import { useTranslation } from "@plane/i18n";
import { IProject } from "@plane/types";
// ui
import { CustomSelect, Loader, ToggleSwitch } from "@plane/ui";
// component
import { SelectMonthModal } from "@/components/automation";
// constants
-import { PROJECT_AUTOMATION_MONTHS } from "@/constants/project";
// hooks
import { useProject, useUserPermissions } from "@/hooks/store";
-import { EUserPermissions, EUserPermissionsLevel } from "@/plane-web/constants/user-permissions";
type Props = {
handleChange: (formData: Partial<IProject>) => Promise<void>;
@@ -30,6 +30,7 @@ export const AutoArchiveAutomation: React.FC<Props> = observer((props) => {
const [monthModal, setmonthModal] = useState(false);
// store hooks
const { allowPermissions } = useUserPermissions();
+ const { t } = useTranslation();
const { currentProjectDetails } = useProject();
@@ -56,9 +57,9 @@ export const AutoArchiveAutomation: React.FC<Props> = observer((props) => {
<ArchiveRestore className="h-4 w-4 flex-shrink-0 text-custom-text-100" />
</div>
<div className="">
- <h4 className="text-sm font-medium">Auto-archive closed issues</h4>
+ <h4 className="text-sm font-medium">{t("project_settings.automations.auto-archive.title")}</h4>
<p className="text-sm tracking-tight text-custom-text-200">
- Plane will auto archive issues that have been completed or canceled.
+ {t("project_settings.automations.auto-archive.description")}
</p>
</div>
</div>
@@ -78,7 +79,9 @@ export const AutoArchiveAutomation: React.FC<Props> = observer((props) => {
currentProjectDetails.archive_in !== 0 && (
<div className="mx-6">
<div className="flex w-full items-center justify-between gap-2 rounded border border-custom-border-200 bg-custom-background-90 px-5 py-4">
- <div className="w-1/2 text-sm font-medium">Auto-archive issues that are closed for</div>
+ <div className="w-1/2 text-sm font-medium">
+ {t("project_settings.automations.auto-archive.duration")}
+ </div>
<div className="w-1/2">
<CustomSelect
value={currentProjectDetails?.archive_in}
@@ -93,8 +96,8 @@ export const AutoArchiveAutomation: React.FC<Props> = observer((props) => {
>
<>
{PROJECT_AUTOMATION_MONTHS.map((month) => (
- <CustomSelect.Option key={month.label} value={month.value}>
- <span className="text-sm">{month.label}</span>
+ <CustomSelect.Option key={month.i18n_label} value={month.value}>
+ <span className="text-sm">{t(month.i18n_label, { month: month.value })}</span>
</CustomSelect.Option>
))}
@@ -103,7 +106,7 @@ export const AutoArchiveAutomation: React.FC<Props> = 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)}
>
- Customize time range
+ {t("customize_time_range")}
</button>
</>
</CustomSelect>
diff --git a/web/core/components/automation/auto-close-automation.tsx b/web/core/components/automation/auto-close-automation.tsx
index 4a5899bde6..da674644d0 100644
--- a/web/core/components/automation/auto-close-automation.tsx
+++ b/web/core/components/automation/auto-close-automation.tsx
@@ -6,16 +6,16 @@ import { useParams } from "next/navigation";
// icons
import { ArchiveX } from "lucide-react";
// types
+import { PROJECT_AUTOMATION_MONTHS, EUserPermissions, EUserPermissionsLevel } from "@plane/constants";
+import { useTranslation } from "@plane/i18n";
import { IProject } from "@plane/types";
// ui
import { CustomSelect, CustomSearchSelect, ToggleSwitch, StateGroupIcon, DoubleCircleIcon, Loader } from "@plane/ui";
// component
import { SelectMonthModal } from "@/components/automation";
// constants
-import { PROJECT_AUTOMATION_MONTHS } from "@/constants/project";
// hooks
import { useProject, useProjectState, useUserPermissions } from "@/hooks/store";
-import { EUserPermissions, EUserPermissionsLevel } from "@/plane-web/constants/user-permissions";
type Props = {
handleChange: (formData: Partial<IProject>) => Promise<void>;
@@ -31,6 +31,7 @@ export const AutoCloseAutomation: React.FC<Props> = observer((props) => {
const { currentProjectDetails } = useProject();
const { projectStates } = useProjectState();
const { allowPermissions } = useUserPermissions();
+ const { t } = useTranslation();
// const stateGroups = projectStateStore.groupedProjectStates ?? undefined;
@@ -82,9 +83,9 @@ export const AutoCloseAutomation: React.FC<Props> = observer((props) => {
<ArchiveX className="h-4 w-4 flex-shrink-0 text-red-500" />
</div>
<div className="">
- <h4 className="text-sm font-medium">Auto-close issues</h4>
+ <h4 className="text-sm font-medium">{t("project_settings.automations.auto-close.title")}</h4>
<p className="text-sm tracking-tight text-custom-text-200">
- Plane will automatically close issues that haven{"'"}t been completed or canceled.
+ {t("project_settings.automations.auto-close.description")}
</p>
</div>
</div>
@@ -105,7 +106,9 @@ export const AutoCloseAutomation: React.FC<Props> = observer((props) => {
<div className="mx-6">
<div className="flex flex-col rounded border border-custom-border-200 bg-custom-background-90">
<div className="flex w-full items-center justify-between gap-2 px-5 py-4">
- <div className="w-1/2 text-sm font-medium">Auto-close issues that are inactive for</div>
+ <div className="w-1/2 text-sm font-medium">
+ {t("project_settings.automations.auto-close.duration")}
+ </div>
<div className="w-1/2">
<CustomSelect
value={currentProjectDetails?.close_in}
@@ -120,8 +123,8 @@ export const AutoCloseAutomation: React.FC<Props> = observer((props) => {
>
<>
{PROJECT_AUTOMATION_MONTHS.map((month) => (
- <CustomSelect.Option key={month.label} value={month.value}>
- {month.label}
+ <CustomSelect.Option key={month.i18n_label} value={month.value}>
+ {t(month.i18n_label, { month: month.value })}
</CustomSelect.Option>
))}
<button
@@ -129,7 +132,7 @@ export const AutoCloseAutomation: React.FC<Props> = observer((props) => {
className="flex w-full select-none items-center rounded px-1 py-1.5 text-custom-text-200 hover:bg-custom-background-80"
onClick={() => setmonthModal(true)}
>
- Customize time range
+ {t("customize_time_range")}
</button>
</>
</CustomSelect>
@@ -137,7 +140,9 @@ export const AutoCloseAutomation: React.FC<Props> = observer((props) => {
</div>
<div className="flex w-full items-center justify-between gap-2 px-5 py-4">
- <div className="w-1/2 text-sm font-medium">Auto-close status</div>
+ <div className="w-1/2 text-sm font-medium">
+ {t("project_settings.automations.auto-close.auto_close_status")}
+ </div>
<div className="w-1/2 ">
<CustomSearchSelect
value={currentProjectDetails?.default_state ?? defaultState}
@@ -162,7 +167,7 @@ export const AutoCloseAutomation: React.FC<Props> = observer((props) => {
)}
{selectedOption?.name
? selectedOption.name
- : (currentDefaultState?.name ?? <span className="text-custom-text-200">State</span>)}
+ : (currentDefaultState?.name ?? <span className="text-custom-text-200">{t("state")}</span>)}
</div>
}
onChange={(val: string) => {
diff --git a/web/core/components/command-palette/actions/issue-actions/actions-list.tsx b/web/core/components/command-palette/actions/issue-actions/actions-list.tsx
index c15a935b5e..b2fce17f2c 100644
--- a/web/core/components/command-palette/actions/issue-actions/actions-list.tsx
+++ b/web/core/components/command-palette/actions/issue-actions/actions-list.tsx
@@ -79,7 +79,7 @@ export const CommandPaletteIssueActions: React.FC<Props> = observer((props) => {
};
return (
- <Command.Group heading="Issue actions">
+ <Command.Group heading="Work item actions">
<Command.Item
onSelect={() => {
setPlaceholder("Change state...");
@@ -143,7 +143,7 @@ export const CommandPaletteIssueActions: React.FC<Props> = observer((props) => {
<Command.Item onSelect={deleteIssue} className="focus:outline-none">
<div className="flex items-center gap-2 text-custom-text-200">
<Trash2 className="h-3.5 w-3.5" />
- Delete issue
+ Delete work item
</div>
</Command.Item>
<Command.Item
@@ -155,7 +155,7 @@ export const CommandPaletteIssueActions: React.FC<Props> = observer((props) => {
>
<div className="flex items-center gap-2 text-custom-text-200">
<LinkIcon className="h-3.5 w-3.5" />
- Copy issue URL
+ Copy work item URL
</div>
</Command.Item>
</Command.Group>
diff --git a/web/core/components/command-palette/actions/issue-actions/change-priority.tsx b/web/core/components/command-palette/actions/issue-actions/change-priority.tsx
index 2f004e8eae..d5fd09a55a 100644
--- a/web/core/components/command-palette/actions/issue-actions/change-priority.tsx
+++ b/web/core/components/command-palette/actions/issue-actions/change-priority.tsx
@@ -5,12 +5,11 @@ import { observer } from "mobx-react";
import { useParams } from "next/navigation";
import { Check } from "lucide-react";
// plane constants
-import { EIssuesStoreType } from "@plane/constants";
+import { EIssuesStoreType, ISSUE_PRIORITIES } from "@plane/constants";
// plane types
import { TIssue, TIssuePriorities } from "@plane/types";
// mobx store
import { PriorityIcon } from "@plane/ui";
-import { ISSUE_PRIORITIES } from "@/constants/issue";
import { useIssues } from "@/hooks/store";
// ui
// types
diff --git a/web/core/components/command-palette/actions/theme-actions.tsx b/web/core/components/command-palette/actions/theme-actions.tsx
index 2ae81d3f31..9df95c00a9 100644
--- a/web/core/components/command-palette/actions/theme-actions.tsx
+++ b/web/core/components/command-palette/actions/theme-actions.tsx
@@ -5,9 +5,10 @@ import { Command } from "cmdk";
import { observer } from "mobx-react";
import { useTheme } from "next-themes";
import { Settings } from "lucide-react";
+// plane imports
+import { THEME_OPTIONS } from "@plane/constants";
+import { useTranslation } from "@plane/i18n";
import { TOAST_TYPE, setToast } from "@plane/ui";
-// constants
-import { THEME_OPTIONS } from "@/constants/themes";
// hooks
import { useUserProfile } from "@/hooks/store";
@@ -20,6 +21,7 @@ export const CommandPaletteThemeActions: FC<Props> = observer((props) => {
const { setTheme } = useTheme();
// hooks
const { updateUserTheme } = useUserProfile();
+ const { t } = useTranslation();
// states
const [mounted, setMounted] = useState(false);
@@ -53,7 +55,7 @@ export const CommandPaletteThemeActions: FC<Props> = observer((props) => {
>
<div className="flex items-center gap-2 text-custom-text-200">
<Settings className="h-4 w-4 text-custom-text-200" />
- {theme.label}
+ {t(theme.i18n_label)}
</div>
</Command.Item>
))}
diff --git a/web/core/components/command-palette/actions/workspace-settings-actions.tsx b/web/core/components/command-palette/actions/workspace-settings-actions.tsx
index dee51c1b62..670788a330 100644
--- a/web/core/components/command-palette/actions/workspace-settings-actions.tsx
+++ b/web/core/components/command-palette/actions/workspace-settings-actions.tsx
@@ -4,13 +4,14 @@ import { Command } from "cmdk";
// hooks
import Link from "next/link";
import { useParams } from "next/navigation";
-
+import { WORKSPACE_SETTINGS_LINKS, EUserPermissionsLevel } from "@plane/constants";
+import { useTranslation } from "@plane/i18n";
+// components
+import { SettingIcon } from "@/components/icons";
// hooks
import { useUserPermissions } from "@/hooks/store";
import { useAppRouter } from "@/hooks/use-app-router";
// plane wev constants
-import { EUserPermissionsLevel } from "@/plane-web/constants/user-permissions";
-import { WORKSPACE_SETTINGS_LINKS } from "@/plane-web/constants/workspace";
// plane web helpers
import { shouldRenderSettingLink } from "@/plane-web/helpers/workspace.helper";
@@ -25,6 +26,7 @@ export const CommandPaletteWorkspaceSettingsActions: React.FC<Props> = (props) =
// router params
const { workspaceSlug } = useParams();
// mobx store
+ const { t } = useTranslation();
const { allowPermissions } = useUserPermissions();
// derived values
@@ -46,8 +48,8 @@ export const CommandPaletteWorkspaceSettingsActions: React.FC<Props> = (props) =
>
<Link href={`/${workspaceSlug}${setting.href}`}>
<div className="flex items-center gap-2 text-custom-text-200">
- <setting.Icon className="h-4 w-4 text-custom-text-200" />
- {setting.label}
+ <SettingIcon className="h-4 w-4 text-custom-text-200" />
+ {t(setting.i18n_label)}
</div>
</Link>
</Command.Item>
diff --git a/web/core/components/command-palette/command-modal.tsx b/web/core/components/command-palette/command-modal.tsx
index b80b0dfe14..db7202319c 100644
--- a/web/core/components/command-palette/command-modal.tsx
+++ b/web/core/components/command-palette/command-modal.tsx
@@ -7,9 +7,10 @@ import { useParams } from "next/navigation";
import useSWR from "swr";
import { FolderPlus, Search, Settings } from "lucide-react";
import { Dialog, Transition } from "@headlessui/react";
-// types
+// plane imports
+import { EUserPermissions, EUserPermissionsLevel } from "@plane/constants";
+import { useTranslation } from "@plane/i18n";
import { IWorkspaceSearchResults } from "@plane/types";
-// ui
import { LayersIcon, Loader, ToggleSwitch, Tooltip } from "@plane/ui";
// components
import {
@@ -23,9 +24,7 @@ import {
CommandPaletteThemeActions,
CommandPaletteWorkspaceSettingsActions,
} from "@/components/command-palette";
-import { EmptyState } from "@/components/empty-state";
-// constants
-import { EmptyStateType } from "@/constants/empty-state";
+import { SimpleEmptyState } from "@/components/empty-state";
// fetch-keys
import { ISSUE_DETAILS } from "@/constants/fetch-keys";
// helpers
@@ -36,21 +35,20 @@ import { useAppRouter } from "@/hooks/use-app-router";
import useDebounce from "@/hooks/use-debounce";
import { usePlatformOS } from "@/hooks/use-platform-os";
// plane web components
+import { useResolvedAssetPath } from "@/hooks/use-resolved-asset-path";
import { IssueIdentifier } from "@/plane-web/components/issues";
// plane web services
import { WorkspaceService } from "@/plane-web/services";
// services
import { IssueService } from "@/services/issue";
-import { EUserPermissions, EUserPermissionsLevel } from "ee/constants/user-permissions";
const workspaceService = new WorkspaceService();
const issueService = new IssueService();
export const CommandModal: React.FC = observer(() => {
- // hooks
- const { workspaceProjectIds } = useProject();
- const { isMobile } = usePlatformOS();
- const { canPerformAnyCreateAction } = useUser();
+ // router
+ const router = useAppRouter();
+ const { workspaceSlug, projectId, issueId } = useParams();
// states
const [placeholder, setPlaceholder] = useState("Type a command or search...");
const [resultsCount, setResultsCount] = useState(0);
@@ -70,26 +68,25 @@ export const CommandModal: React.FC = observer(() => {
});
const [isWorkspaceLevel, setIsWorkspaceLevel] = useState(false);
const [pages, setPages] = useState<string[]>([]);
+ // plane hooks
+ const { t } = useTranslation();
+ // hooks
+ const { workspaceProjectIds } = useProject();
+ const { isMobile } = usePlatformOS();
+ const { canPerformAnyCreateAction } = useUser();
const { isCommandPaletteOpen, toggleCommandPaletteModal, toggleCreateIssueModal, toggleCreateProjectModal } =
useCommandPalette();
const { allowPermissions } = useUserPermissions();
const { setTrackElement } = useEventTracker();
-
- // router
- const router = useAppRouter();
- // router params
- const { workspaceSlug, projectId, issueId } = useParams();
-
+ // derived values
const page = pages[pages.length - 1];
-
const debouncedSearchTerm = useDebounce(searchTerm, 500);
-
const { baseTabIndex } = getTabIndex(undefined, isMobile);
-
const canPerformWorkspaceActions = allowPermissions(
[EUserPermissions.ADMIN, EUserPermissions.MEMBER],
EUserPermissionsLevel.WORKSPACE
);
+ const resolvedPath = useResolvedAssetPath({ basePath: "/empty-state/search/search" });
// TODO: update this to mobx store
const { data: issueDetails } = useSWR(
@@ -268,7 +265,7 @@ export const CommandModal: React.FC = observer(() => {
{!isLoading && resultsCount === 0 && searchTerm !== "" && debouncedSearchTerm !== "" && (
<div className="flex flex-col items-center justify-center px-3 py-8 text-center">
- <EmptyState type={EmptyStateType.COMMAND_K_SEARCH_EMPTY_STATE} layout="screen-simple" />
+ <SimpleEmptyState title={t("command_k.empty_state.search.title")} assetPath={resolvedPath} />
</div>
)}
@@ -304,7 +301,7 @@ export const CommandModal: React.FC = observer(() => {
workspaceProjectIds &&
workspaceProjectIds.length > 0 &&
canPerformAnyCreateAction && (
- <Command.Group heading="Issue">
+ <Command.Group heading="Work item">
<Command.Item
onSelect={() => {
closePalette();
@@ -315,7 +312,7 @@ export const CommandModal: React.FC = observer(() => {
>
<div className="flex items-center gap-2 text-custom-text-200">
<LayersIcon className="h-3.5 w-3.5" />
- Create new issue
+ Create new work item
</div>
<kbd>C</kbd>
</Command.Item>
diff --git a/web/core/components/command-palette/command-palette.tsx b/web/core/components/command-palette/command-palette.tsx
index 4e59234cde..fb2b51821c 100644
--- a/web/core/components/command-palette/command-palette.tsx
+++ b/web/core/components/command-palette/command-palette.tsx
@@ -4,6 +4,7 @@ import React, { useCallback, useEffect, FC, useMemo } from "react";
import { observer } from "mobx-react";
import { useParams } from "next/navigation";
// ui
+import { EUserPermissions, EUserPermissionsLevel } from "@plane/constants";
import { TOAST_TYPE, setToast } from "@plane/ui";
// components
import { CommandModal, ShortcutsModal } from "@/components/command-palette";
@@ -19,7 +20,6 @@ import {
WorkspaceLevelModals,
} from "@/plane-web/components/command-palette/modals";
// plane web constants
-import { EUserPermissions, EUserPermissionsLevel } from "@/plane-web/constants/user-permissions";
// plane web helpers
import {
getGlobalShortcutsList,
diff --git a/web/core/components/command-palette/helpers.tsx b/web/core/components/command-palette/helpers.tsx
index 99c8c310e4..b6310840be 100644
--- a/web/core/components/command-palette/helpers.tsx
+++ b/web/core/components/command-palette/helpers.tsx
@@ -49,7 +49,7 @@ export const commandGroups: {
),
path: (issue: IWorkspaceIssueSearchResult) =>
`/${issue?.workspace__slug}/projects/${issue?.project_id}/issues/${issue?.id}`,
- title: "Issues",
+ title: "Work items",
},
issue_view: {
icon: <Layers className="h-3 w-3" />,
diff --git a/web/core/components/common/access-field.tsx b/web/core/components/common/access-field.tsx
index b619dde44f..f2c50934d2 100644
--- a/web/core/components/common/access-field.tsx
+++ b/web/core/components/common/access-field.tsx
@@ -1,5 +1,6 @@
import { LucideIcon } from "lucide-react";
// plane ui
+import { useTranslation } from "@plane/i18n";
import { Tooltip } from "@plane/ui";
// plane utils
import { cn } from "@plane/utils";
@@ -9,38 +10,44 @@ type Props = {
value: number;
accessSpecifiers: {
key: number;
- label: string;
+ i18n_label?: string;
+ label?: string;
icon: LucideIcon;
}[];
isMobile?: boolean;
};
+// TODO: Remove label once i18n is done
export const AccessField = (props: Props) => {
const { onChange, value, accessSpecifiers, isMobile = false } = props;
+ const { t } = useTranslation();
return (
<div className="flex flex-shrink-0 items-stretch gap-0.5 rounded border-[1px] border-custom-border-200 p-1">
- {accessSpecifiers.map((access, index) => (
- <Tooltip key={access.key} tooltipContent={access.label} isMobile={isMobile}>
- <button
- type="button"
- onClick={() => onChange(access.key)}
- className={cn(
- "flex-shrink-0 relative flex justify-center items-center w-5 h-5 rounded-sm p-1 transition-all",
- value === access.key ? "bg-custom-background-80" : "hover:bg-custom-background-80"
- )}
- tabIndex={2 + index}
- >
- <access.icon
+ {accessSpecifiers.map((access, index) => {
+ const label = access.i18n_label ? t(access.i18n_label) : access.label;
+ return (
+ <Tooltip key={access.key} tooltipContent={label} isMobile={isMobile}>
+ <button
+ type="button"
+ onClick={() => onChange(access.key)}
className={cn(
- "h-3.5 w-3.5 transition-all",
- value === access.key ? "text-custom-text-100" : "text-custom-text-400"
+ "flex-shrink-0 relative flex justify-center items-center w-5 h-5 rounded-sm p-1 transition-all",
+ value === access.key ? "bg-custom-background-80" : "hover:bg-custom-background-80"
)}
- strokeWidth={2}
- />
- </button>
- </Tooltip>
- ))}
+ tabIndex={2 + index}
+ >
+ <access.icon
+ className={cn(
+ "h-3.5 w-3.5 transition-all",
+ value === access.key ? "text-custom-text-100" : "text-custom-text-400"
+ )}
+ strokeWidth={2}
+ />
+ </button>
+ </Tooltip>
+ );
+ })}
</div>
);
};
diff --git a/web/core/components/common/activity/helper.tsx b/web/core/components/common/activity/helper.tsx
index 54ccd56e2b..b3d16e7d04 100644
--- a/web/core/components/common/activity/helper.tsx
+++ b/web/core/components/common/activity/helper.tsx
@@ -271,7 +271,7 @@ export const messages = (activity: TProjectActivity): { message: string | ReactN
};
case "is_issue_type_enabled":
return {
- message: <>{getBooleanActionText(newValue)} issue types</>,
+ message: <>{getBooleanActionText(newValue)} work item types</>,
};
default:
return {
diff --git a/web/core/components/common/applied-filters/date.tsx b/web/core/components/common/applied-filters/date.tsx
index 0f5680c48d..9dcde53a43 100644
--- a/web/core/components/common/applied-filters/date.tsx
+++ b/web/core/components/common/applied-filters/date.tsx
@@ -1,8 +1,8 @@
import { observer } from "mobx-react";
// icons
import { X } from "lucide-react";
-// constants
-import { DATE_BEFORE_FILTER_OPTIONS } from "@/constants/filters";
+// plane constants
+import { DATE_BEFORE_FILTER_OPTIONS } from "@plane/constants";
// helpers
import { renderFormattedDate } from "@/helpers/date-time.helper";
import { capitalizeFirstLetter } from "@/helpers/string.helper";
diff --git a/web/core/components/common/filters/created-at.tsx b/web/core/components/common/filters/created-at.tsx
index 9baf391bec..b1c23f70a8 100644
--- a/web/core/components/common/filters/created-at.tsx
+++ b/web/core/components/common/filters/created-at.tsx
@@ -1,10 +1,9 @@
import React, { useState } from "react";
import { observer } from "mobx-react";
-// components
+// plane constants
+import { DATE_BEFORE_FILTER_OPTIONS } from "@plane/constants";
import { DateFilterModal } from "@/components/core";
import { FilterHeader, FilterOption } from "@/components/issues";
-// constants
-import { DATE_BEFORE_FILTER_OPTIONS } from "@/constants/filters";
// helpers
import { isInDateFormat } from "@/helpers/date-time.helper";
diff --git a/web/core/components/common/latest-feature-block.tsx b/web/core/components/common/latest-feature-block.tsx
index a108e05bf2..35aacddcfe 100644
--- a/web/core/components/common/latest-feature-block.tsx
+++ b/web/core/components/common/latest-feature-block.tsx
@@ -28,7 +28,7 @@ export const LatestFeatureBlock = () => {
<div className="h-[90%]">
<Image
src={latestFeatures}
- alt="Plane Issues"
+ alt="Plane Work items"
className={`-mt-2 ml-10 h-full rounded-md ${
resolvedTheme === "dark" ? "bg-onboarding-background-100" : "bg-custom-primary-70"
}`}
diff --git a/web/core/components/core/activity.tsx b/web/core/components/core/activity.tsx
index 9a06b336b4..e912943da3 100644
--- a/web/core/components/core/activity.tsx
+++ b/web/core/components/core/activity.tsx
@@ -36,7 +36,7 @@ export const IssueLink = ({ activity }: { activity: IIssueActivity }) => {
return (
<Tooltip
- tooltipContent={activity?.issue_detail ? activity.issue_detail.name : "This issue has been deleted"}
+ tooltipContent={activity?.issue_detail ? activity.issue_detail.name : "This work item has been deleted"}
isMobile={isMobile}
>
{activity?.issue_detail ? (
@@ -54,7 +54,7 @@ export const IssueLink = ({ activity }: { activity: IIssueActivity }) => {
</a>
) : (
<span className="inline-flex items-center gap-1 font-medium text-custom-text-100 whitespace-nowrap">
- {" an Issue"}{" "}
+ {" a work item"}{" "}
</span>
)}
</Tooltip>
@@ -100,20 +100,20 @@ const LabelPill = observer(({ labelId, workspaceSlug }: { labelId: string; works
const inboxActivityMessage = {
declined: {
- showIssue: "declined issue",
- noIssue: "declined this issue from intake.",
+ showIssue: "declined work item",
+ noIssue: "declined this work item from intake.",
},
snoozed: {
- showIssue: "snoozed issue",
- noIssue: "snoozed this issue.",
+ showIssue: "snoozed work item",
+ noIssue: "snoozed this work item.",
},
accepted: {
- showIssue: "accepted issue",
- noIssue: "accepted this issue from intake.",
+ showIssue: "accepted work item",
+ noIssue: "accepted this work item from intake.",
},
markedDuplicate: {
- showIssue: "declined issue",
- noIssue: "declined this issue from intake by marking a duplicate issue.",
+ showIssue: "declined work item",
+ noIssue: "declined this work item from intake by marking a duplicate work item.",
},
};
@@ -128,7 +128,7 @@ const getInboxUserActivityMessage = (activity: IIssueActivity, showIssue: boolea
case "2":
return showIssue ? inboxActivityMessage.markedDuplicate.showIssue : inboxActivityMessage.markedDuplicate.noIssue;
default:
- return "updated intake issue status.";
+ return "updated intake work item status.";
}
};
@@ -393,7 +393,7 @@ const activityDetails: {
return (
<>
<span className="flex-shrink-0">
- added {showIssue ? <IssueLink activity={activity} /> : "this issue"}{" "}
+ added {showIssue ? <IssueLink activity={activity} /> : "this work item"}{" "}
<span className="whitespace-nowrap">to the cycle</span>{" "}
</span>
<a
@@ -442,7 +442,7 @@ const activityDetails: {
if (activity.verb === "created")
return (
<>
- added {showIssue ? <IssueLink activity={activity} /> : "this issue"} to the module{" "}
+ added {showIssue ? <IssueLink activity={activity} /> : "this work item"} to the module{" "}
<a
href={`/${workspaceSlug}/projects/${activity.project}/modules/${activity.new_identifier}`}
target="_blank"
@@ -551,7 +551,7 @@ const activityDetails: {
if (activity.old_value === "")
return (
<>
- marked that {showIssue ? <IssueLink activity={activity} /> : "this issue"} relates to{" "}
+ marked that {showIssue ? <IssueLink activity={activity} /> : "this work item"} relates to{" "}
<span className="font-medium text-custom-text-100 whitespace-nowrap">{activity.new_value}</span>.
</>
);
@@ -570,14 +570,14 @@ const activityDetails: {
if (activity.old_value === "")
return (
<>
- marked {showIssue ? <IssueLink activity={activity} /> : "this issue"} is blocking issue{" "}
+ marked {showIssue ? <IssueLink activity={activity} /> : "this work item"} is blocking work item{" "}
<span className="font-medium text-custom-text-100 whitespace-nowrap">{activity.new_value}</span>.
</>
);
else
return (
<>
- removed the blocking issue{" "}
+ removed the blocking work item{" "}
<span className="font-medium text-custom-text-100 whitespace-nowrap">{activity.old_value}</span>.
</>
);
@@ -589,14 +589,14 @@ const activityDetails: {
if (activity.old_value === "")
return (
<>
- marked {showIssue ? <IssueLink activity={activity} /> : "this issue"} is being blocked by{" "}
+ marked {showIssue ? <IssueLink activity={activity} /> : "this work item"} is being blocked by{" "}
<span className="font-medium text-custom-text-100 whitespace-nowrap">{activity.new_value}</span>.
</>
);
else
return (
<>
- removed {showIssue ? <IssueLink activity={activity} /> : "this issue"} being blocked by issue{" "}
+ removed {showIssue ? <IssueLink activity={activity} /> : "this work item"} being blocked by work item{" "}
<span className="font-medium text-custom-text-100 whitespace-nowrap">{activity.old_value}</span>.
</>
);
@@ -608,14 +608,14 @@ const activityDetails: {
if (activity.old_value === "")
return (
<>
- marked {showIssue ? <IssueLink activity={activity} /> : "this issue"} as duplicate of{" "}
+ marked {showIssue ? <IssueLink activity={activity} /> : "this work item"} as duplicate of{" "}
<span className="font-medium text-custom-text-100 whitespace-nowrap">{activity.new_value}</span>.
</>
);
else
return (
<>
- removed {showIssue ? <IssueLink activity={activity} /> : "this issue"} as a duplicate of{" "}
+ removed {showIssue ? <IssueLink activity={activity} /> : "this work item"} as a duplicate of{" "}
<span className="font-medium text-custom-text-100 whitespace-nowrap">{activity.old_value}</span>.
</>
);
@@ -709,7 +709,7 @@ const activityDetails: {
<IssueLink activity={activity} />
</>
)}
- {activity.verb === "2" && ` from intake by marking a duplicate issue.`}
+ {activity.verb === "2" && ` from intake by marking a duplicate work item.`}
</>
),
icon: <Intake className="size-3 text-custom-text-200" aria-hidden="true" />,
diff --git a/web/core/components/core/content-overflow-HOC.tsx b/web/core/components/core/content-overflow-HOC.tsx
index 1b37b0429a..f8089c34bc 100644
--- a/web/core/components/core/content-overflow-HOC.tsx
+++ b/web/core/components/core/content-overflow-HOC.tsx
@@ -1,5 +1,6 @@
import { ReactNode, useEffect, useRef, useState } from "react";
import { observer } from "mobx-react";
+import { useTranslation } from "@plane/i18n";
import { cn } from "@plane/utils";
interface IContentOverflowWrapper {
@@ -31,6 +32,9 @@ export const ContentOverflowWrapper = observer((props: IContentOverflowWrapper)
const contentRef = useRef<HTMLDivElement>(null);
const containerRef = useRef<HTMLDivElement>(null);
+ // hooks
+ const { t } = useTranslation();
+
useEffect(() => {
if (!contentRef?.current) return;
@@ -142,7 +146,7 @@ export const ContentOverflowWrapper = observer((props: IContentOverflowWrapper)
onClick={handleToggle}
disabled={isTransitioning}
>
- {showAll ? "Show less" : "Show all"}
+ {showAll ? t("show_less") : t("show_all")}
</button>
)}
</div>
diff --git a/web/core/components/core/image-picker-popover.tsx b/web/core/components/core/image-picker-popover.tsx
index bef7b4df0d..97f416027b 100644
--- a/web/core/components/core/image-picker-popover.tsx
+++ b/web/core/components/core/image-picker-popover.tsx
@@ -8,14 +8,13 @@ import { useDropzone } from "react-dropzone";
import { Control, Controller } from "react-hook-form";
import useSWR from "swr";
import { Tab, Popover } from "@headlessui/react";
-// plane helpers
+// plane imports
+import { MAX_FILE_SIZE } from "@plane/constants";
import { useOutsideClickDetector } from "@plane/hooks";
// plane types
import { EFileAssetType } from "@plane/types/src/enums";
// ui
import { Button, Input, Loader } from "@plane/ui";
-// constants
-import { MAX_STATIC_FILE_SIZE } from "@/constants/common";
// helpers
import { getFileURL } from "@/helpers/file.helper";
// hooks
@@ -92,7 +91,7 @@ export const ImagePickerPopover: React.FC<Props> = observer((props) => {
accept: {
"image/*": [".png", ".jpg", ".jpeg", ".webp"],
},
- maxSize: MAX_STATIC_FILE_SIZE,
+ maxSize: MAX_FILE_SIZE,
});
const handleSubmit = async () => {
diff --git a/web/core/components/core/modals/bulk-delete-issues-modal.tsx b/web/core/components/core/modals/bulk-delete-issues-modal.tsx
index aec70262ab..642a59bbc7 100644
--- a/web/core/components/core/modals/bulk-delete-issues-modal.tsx
+++ b/web/core/components/core/modals/bulk-delete-issues-modal.tsx
@@ -6,19 +6,18 @@ import { useParams } from "next/navigation";
import { SubmitHandler, useForm } from "react-hook-form";
import { Search } from "lucide-react";
import { Combobox, Dialog, Transition } from "@headlessui/react";
+// plane imports
import { EIssuesStoreType } from "@plane/constants";
-// types
+import { useTranslation } from "@plane/i18n";
import { ISearchIssueResponse, IUser } from "@plane/types";
-// ui
import { Button, Loader, TOAST_TYPE, setToast } from "@plane/ui";
// components
-import { EmptyState } from "@/components/empty-state";
-// constants
-import { EmptyStateType } from "@/constants/empty-state";
+import { SimpleEmptyState } from "@/components/empty-state";
// hooks
import { useIssues } from "@/hooks/store";
import useDebounce from "@/hooks/use-debounce";
// services
+import { useResolvedAssetPath } from "@/hooks/use-resolved-asset-path";
import { ProjectService } from "@/services/project";
// local components
import { BulkDeleteIssuesModalItem } from "./bulk-delete-issues-modal-item";
@@ -39,16 +38,19 @@ export const BulkDeleteIssuesModal: React.FC<Props> = observer((props) => {
const { isOpen, onClose } = props;
// router params
const { workspaceSlug, projectId } = useParams();
- // hooks
- const {
- issues: { removeBulkIssues },
- } = useIssues(EIssuesStoreType.PROJECT);
// states
const [query, setQuery] = useState("");
const [issues, setIssues] = useState<ISearchIssueResponse[]>([]);
const [isSearching, setIsSearching] = useState(false);
-
+ // hooks
+ const {
+ issues: { removeBulkIssues },
+ } = useIssues(EIssuesStoreType.PROJECT);
+ const { t } = useTranslation();
+ // derived values
const debouncedSearchTerm: string = useDebounce(query, 500);
+ const searchResolvedPath = useResolvedAssetPath({ basePath: "/empty-state/search/search" });
+ const issuesResolvedPath = useResolvedAssetPath({ basePath: "/empty-state/search/issues" });
useEffect(() => {
if (!isOpen || !workspaceSlug || !projectId) return;
@@ -88,7 +90,7 @@ export const BulkDeleteIssuesModal: React.FC<Props> = observer((props) => {
setToast({
type: TOAST_TYPE.ERROR,
title: "Error!",
- message: "Please select at least one issue.",
+ message: "Please select at least one work item.",
});
return;
}
@@ -100,7 +102,7 @@ export const BulkDeleteIssuesModal: React.FC<Props> = observer((props) => {
setToast({
type: TOAST_TYPE.SUCCESS,
title: "Success!",
- message: "Issues deleted successfully!",
+ message: "Work items deleted successfully!",
});
handleClose();
})
@@ -117,7 +119,7 @@ export const BulkDeleteIssuesModal: React.FC<Props> = observer((props) => {
issues.length > 0 ? (
<li className="p-2">
{query === "" && (
- <h2 className="mb-2 mt-4 px-3 text-xs font-semibold text-custom-text-100">Select issues to delete</h2>
+ <h2 className="mb-2 mt-4 px-3 text-xs font-semibold text-custom-text-100">Select work items to delete</h2>
)}
<ul className="text-sm text-custom-text-200">
{issues.map((issue) => (
@@ -131,12 +133,11 @@ export const BulkDeleteIssuesModal: React.FC<Props> = observer((props) => {
</li>
) : (
<div className="flex flex-col items-center justify-center px-3 py-8 text-center">
- <EmptyState
- type={
- query === "" ? EmptyStateType.ISSUE_RELATION_EMPTY_STATE : EmptyStateType.ISSUE_RELATION_SEARCH_EMPTY_STATE
- }
- layout="screen-simple"
- />
+ {query === "" ? (
+ <SimpleEmptyState title={t("issue_relation.empty_state.no_issues.title")} assetPath={issuesResolvedPath} />
+ ) : (
+ <SimpleEmptyState title={t("issue_relation.empty_state.search.title")} assetPath={searchResolvedPath} />
+ )}
</div>
);
@@ -203,7 +204,7 @@ export const BulkDeleteIssuesModal: React.FC<Props> = observer((props) => {
Cancel
</Button>
<Button variant="danger" size="sm" onClick={handleSubmit(handleDelete)} loading={isSubmitting}>
- {isSubmitting ? "Deleting..." : "Delete selected issues"}
+ {isSubmitting ? "Deleting..." : "Delete selected work items"}
</Button>
</div>
)}
diff --git a/web/core/components/core/modals/existing-issues-list-modal.tsx b/web/core/components/core/modals/existing-issues-list-modal.tsx
index 659dd7bfb9..63ce2b470c 100644
--- a/web/core/components/core/modals/existing-issues-list-modal.tsx
+++ b/web/core/components/core/modals/existing-issues-list-modal.tsx
@@ -3,6 +3,8 @@
import React, { useEffect, useState } from "react";
import { Rocket, Search, X } from "lucide-react";
import { Combobox, Dialog, Transition } from "@headlessui/react";
+// i18n
+import { useTranslation } from "@plane/i18n";
// types
import { ISearchIssueResponse, TProjectIssuesSearchParams } from "@plane/types";
// ui
@@ -33,6 +35,8 @@ type Props = {
const projectService = new ProjectService();
export const ExistingIssuesListModal: React.FC<Props> = (props) => {
+ const { t } = useTranslation();
+
const {
workspaceSlug,
projectId,
@@ -66,8 +70,8 @@ export const ExistingIssuesListModal: React.FC<Props> = (props) => {
if (selectedIssues.length === 0) {
setToast({
type: TOAST_TYPE.ERROR,
- title: "Error!",
- message: "Please select at least one issue.",
+ title: t("toast.error"),
+ message: t("issue.select.error"),
});
return;
@@ -140,7 +144,7 @@ export const ExistingIssuesListModal: React.FC<Props> = (props) => {
/>
<Combobox.Input
className="h-12 w-full border-0 bg-transparent pl-11 pr-4 text-sm text-custom-text-100 outline-none placeholder:text-custom-text-400 focus:ring-0"
- placeholder="Type to search..."
+ placeholder={t("common.search.placeholder")}
value={searchTerm}
onChange={(e) => setSearchTerm(e.target.value)}
tabIndex={baseTabIndex}
@@ -174,7 +178,7 @@ export const ExistingIssuesListModal: React.FC<Props> = (props) => {
</div>
) : (
<div className="w-min whitespace-nowrap rounded-md border border-custom-border-200 bg-custom-background-80 p-2 text-xs">
- No issues selected
+ {t("issue.select.empty")}
</div>
)}
{workspaceLevelToggle && (
@@ -193,7 +197,7 @@ export const ExistingIssuesListModal: React.FC<Props> = (props) => {
onClick={() => setIsWorkspaceLevel((prevData) => !prevData)}
className="flex-shrink-0"
>
- Workspace Level
+ {t("common.workspace_level")}
</button>
</div>
</Tooltip>
@@ -204,6 +208,7 @@ export const ExistingIssuesListModal: React.FC<Props> = (props) => {
static
className="vertical-scrollbar scrollbar-md max-h-80 scroll-py-2 overflow-y-auto"
>
+ {/* TODO: Translate here */}
{searchTerm !== "" && (
<h5 className="mx-2 text-[0.825rem] text-custom-text-200">
Search results for{" "}
@@ -288,11 +293,11 @@ export const ExistingIssuesListModal: React.FC<Props> = (props) => {
</Combobox>
<div className="flex items-center justify-end gap-2 p-3">
<Button variant="neutral-primary" size="sm" onClick={handleClose}>
- Cancel
+ {t("common.cancel")}
</Button>
{selectedIssues.length > 0 && (
<Button variant="primary" size="sm" onClick={onSubmit} loading={isSubmitting}>
- {isSubmitting ? "Adding..." : "Add selected issues"}
+ {isSubmitting ? t("common.adding") : t("issue.select.add_selected")}
</Button>
)}
</div>
diff --git a/web/core/components/core/modals/issue-search-modal-empty-state.tsx b/web/core/components/core/modals/issue-search-modal-empty-state.tsx
index 578d39a60f..20646efb18 100644
--- a/web/core/components/core/modals/issue-search-modal-empty-state.tsx
+++ b/web/core/components/core/modals/issue-search-modal-empty-state.tsx
@@ -1,10 +1,10 @@
import React from "react";
-// components
+// plane imports
+import { useTranslation } from "@plane/i18n";
import { ISearchIssueResponse } from "@plane/types";
-import { EmptyState } from "@/components/empty-state";
-// types
-import { EmptyStateType } from "@/constants/empty-state";
-// constants
+// components
+import { SimpleEmptyState } from "@/components/empty-state";
+import { useResolvedAssetPath } from "@/hooks/use-resolved-asset-path";
interface EmptyStateProps {
issues: ISearchIssueResponse[];
@@ -19,18 +19,28 @@ export const IssueSearchModalEmptyState: React.FC<EmptyStateProps> = ({
debouncedSearchTerm,
isSearching,
}) => {
- const renderEmptyState = (type: EmptyStateType) => (
- <div className="flex flex-col items-center justify-center px-3 py-8 text-center">
- <EmptyState type={type} layout="screen-simple" />
- </div>
- );
+ // plane hooks
+ const { t } = useTranslation();
+ // derived values
+ const searchResolvedPath = useResolvedAssetPath({ basePath: "/empty-state/search/search" });
+ const issuesResolvedPath = useResolvedAssetPath({ basePath: "/empty-state/search/issues" });
- const emptyState =
- issues.length === 0 && searchTerm !== "" && debouncedSearchTerm !== "" && !isSearching
- ? renderEmptyState(EmptyStateType.ISSUE_RELATION_SEARCH_EMPTY_STATE)
- : issues.length === 0
- ? renderEmptyState(EmptyStateType.ISSUE_RELATION_EMPTY_STATE)
- : null;
+ const EmptyStateContainer = ({ children }: { children: React.ReactNode }) => (
+ <div className="flex flex-col items-center justify-center px-3 py-8 text-center">{children}</div>
+ );
- return emptyState;
+ if (issues.length === 0 && searchTerm !== "" && debouncedSearchTerm !== "" && !isSearching) {
+ return (
+ <EmptyStateContainer>
+ <SimpleEmptyState title={t("issue_relation.empty_state.no_issues.title")} assetPath={issuesResolvedPath} />
+ </EmptyStateContainer>
+ );
+ } else if (issues.length === 0) {
+ return (
+ <EmptyStateContainer>
+ <SimpleEmptyState title={t("issue_relation.empty_state.search.title")} assetPath={searchResolvedPath} />
+ </EmptyStateContainer>
+ );
+ }
+ return null;
};
diff --git a/web/core/components/core/modals/user-image-upload-modal.tsx b/web/core/components/core/modals/user-image-upload-modal.tsx
index ad7a4daacf..286f364151 100644
--- a/web/core/components/core/modals/user-image-upload-modal.tsx
+++ b/web/core/components/core/modals/user-image-upload-modal.tsx
@@ -5,12 +5,10 @@ import { observer } from "mobx-react";
import { useDropzone } from "react-dropzone";
import { UserCircle2 } from "lucide-react";
import { Transition, Dialog } from "@headlessui/react";
-// plane types
+// plane imports
+import { MAX_FILE_SIZE } from "@plane/constants";
import { EFileAssetType } from "@plane/types/src/enums";
-// hooks
import { Button, TOAST_TYPE, setToast } from "@plane/ui";
-// constants
-import { MAX_STATIC_FILE_SIZE } from "@/constants/common";
// helpers
import { getAssetIdFromUrl, getFileURL } from "@/helpers/file.helper";
import { checkURLValidity } from "@/helpers/string.helper";
@@ -40,7 +38,7 @@ export const UserImageUploadModal: React.FC<Props> = observer((props) => {
accept: {
"image/*": [".png", ".jpg", ".jpeg", ".webp"],
},
- maxSize: MAX_STATIC_FILE_SIZE,
+ maxSize: MAX_FILE_SIZE,
multiple: false,
});
diff --git a/web/core/components/core/modals/workspace-image-upload-modal.tsx b/web/core/components/core/modals/workspace-image-upload-modal.tsx
index cc7248a626..df0248c843 100644
--- a/web/core/components/core/modals/workspace-image-upload-modal.tsx
+++ b/web/core/components/core/modals/workspace-image-upload-modal.tsx
@@ -5,12 +5,10 @@ import { useParams } from "next/navigation";
import { useDropzone } from "react-dropzone";
import { UserCircle2 } from "lucide-react";
import { Transition, Dialog } from "@headlessui/react";
-// plane types
+// plane imports
+import { MAX_FILE_SIZE } from "@plane/constants";
import { EFileAssetType } from "@plane/types/src/enums";
-// hooks
import { Button } from "@plane/ui";
-// constants
-import { MAX_STATIC_FILE_SIZE } from "@/constants/common";
// helpers
import { getAssetIdFromUrl, getFileURL } from "@/helpers/file.helper";
import { checkURLValidity } from "@/helpers/string.helper";
@@ -48,7 +46,7 @@ export const WorkspaceImageUploadModal: React.FC<Props> = observer((props) => {
accept: {
"image/*": [".png", ".jpg", ".jpeg", ".webp"],
},
- maxSize: MAX_STATIC_FILE_SIZE,
+ maxSize: MAX_FILE_SIZE,
multiple: false,
});
diff --git a/web/core/components/core/sidebar/progress-chart.tsx b/web/core/components/core/sidebar/progress-chart.tsx
index 25dd3fee5b..bb4eeb4935 100644
--- a/web/core/components/core/sidebar/progress-chart.tsx
+++ b/web/core/components/core/sidebar/progress-chart.tsx
@@ -48,7 +48,7 @@ const ProgressChart: React.FC<Props> = ({
endDate,
totalIssues,
className = "",
- plotTitle = "issues",
+ plotTitle = "work items",
}) => {
const chartData = Object.keys(distribution ?? []).map((key) => ({
currentDate: renderFormattedDateWithoutYear(key),
diff --git a/web/core/components/core/theme/theme-switch.tsx b/web/core/components/core/theme/theme-switch.tsx
index 7a188a48aa..1a188fa03e 100644
--- a/web/core/components/core/theme/theme-switch.tsx
+++ b/web/core/components/core/theme/theme-switch.tsx
@@ -1,10 +1,11 @@
"use client";
import { FC } from "react";
+// plane imports
+import { I_THEME_OPTION, THEME_OPTIONS } from "@plane/constants";
import { useTranslation } from "@plane/i18n";
// constants
import { CustomSelect } from "@plane/ui";
-import { THEME_OPTIONS, I_THEME_OPTION } from "@/constants/themes";
// ui
type Props = {
diff --git a/web/core/components/cycles/active-cycle/cycle-stats.tsx b/web/core/components/cycles/active-cycle/cycle-stats.tsx
index 8c0ec14a31..f932415c38 100644
--- a/web/core/components/cycles/active-cycle/cycle-stats.tsx
+++ b/web/core/components/cycles/active-cycle/cycle-stats.tsx
@@ -6,17 +6,16 @@ import { observer } from "mobx-react";
import { CalendarCheck } from "lucide-react";
// headless ui
import { Tab } from "@headlessui/react";
-// types
+// plane imports
import { EIssuesStoreType } from "@plane/constants";
+import { useTranslation } from "@plane/i18n";
import { ICycle, IIssueFilterOptions } from "@plane/types";
// ui
import { Tooltip, Loader, PriorityIcon, Avatar } from "@plane/ui";
// components
import { SingleProgressStats } from "@/components/core";
import { StateDropdown } from "@/components/dropdowns";
-import { EmptyState } from "@/components/empty-state";
-// constants
-import { EmptyStateType } from "@/constants/empty-state";
+import { SimpleEmptyState } from "@/components/empty-state";
// helpers
import { cn } from "@/helpers/common.helper";
import { renderFormattedDate, renderFormattedDateWithoutYear } from "@/helpers/date-time.helper";
@@ -26,6 +25,7 @@ import { useIssueDetail, useIssues } from "@/hooks/store";
import { useIntersectionObserver } from "@/hooks/use-intersection-observer";
import useLocalStorage from "@/hooks/use-local-storage";
// plane web components
+import { useResolvedAssetPath } from "@/hooks/use-resolved-asset-path";
import { IssueIdentifier } from "@/plane-web/components/issues";
// store
import { ActiveCycleIssueDetails } from "@/store/issue/cycle";
@@ -41,11 +41,18 @@ export type ActiveCycleStatsProps = {
export const ActiveCycleStats: FC<ActiveCycleStatsProps> = observer((props) => {
const { workspaceSlug, projectId, cycle, cycleId, handleFiltersUpdate, cycleIssueDetails } = props;
-
+ // local storage
const { storedValue: tab, setValue: setTab } = useLocalStorage("activeCycleTab", "Assignees");
-
+ // refs
const issuesContainerRef = useRef<HTMLDivElement | null>(null);
+ // states
const [issuesLoaderElement, setIssueLoaderElement] = useState<HTMLDivElement | null>(null);
+ // plane hooks
+ const { t } = useTranslation();
+ // derived values
+ const priorityResolvedPath = useResolvedAssetPath({ basePath: "/empty-state/active-cycle/priority" });
+ const assigneesResolvedPath = useResolvedAssetPath({ basePath: "/empty-state/active-cycle/assignee" });
+ const labelsResolvedPath = useResolvedAssetPath({ basePath: "/empty-state/active-cycle/label" });
const currentValue = (tab: string | null) => {
switch (tab) {
@@ -119,7 +126,7 @@ export const ActiveCycleStats: FC<ActiveCycleStatsProps> = observer((props) => {
)
}
>
- Priority Issues
+ {t("project_cycles.active_cycle.priority_issue")}
</Tab>
<Tab
className={({ selected }) =>
@@ -132,7 +139,7 @@ export const ActiveCycleStats: FC<ActiveCycleStatsProps> = observer((props) => {
)
}
>
- Assignees
+ {t("project_cycles.active_cycle.assignees")}
</Tab>
<Tab
className={({ selected }) =>
@@ -145,7 +152,7 @@ export const ActiveCycleStats: FC<ActiveCycleStatsProps> = observer((props) => {
)
}
>
- Labels
+ {t("project_cycles.active_cycle.labels")}
</Tab>
</Tab.List>
@@ -231,10 +238,9 @@ export const ActiveCycleStats: FC<ActiveCycleStatsProps> = observer((props) => {
</>
) : (
<div className="flex items-center justify-center h-full w-full">
- <EmptyState
- type={EmptyStateType.ACTIVE_CYCLE_PRIORITY_ISSUE_EMPTY_STATE}
- layout="screen-simple"
- size="sm"
+ <SimpleEmptyState
+ title={t("active_cycle.empty_state.priority_issue.title")}
+ assetPath={priorityResolvedPath}
/>
</div>
)
@@ -283,7 +289,7 @@ export const ActiveCycleStats: FC<ActiveCycleStatsProps> = observer((props) => {
<div className="h-5 w-5 rounded-full border-2 border-custom-border-200 bg-custom-background-80">
<img src="/user.png" height="100%" width="100%" className="rounded-full" alt="User" />
</div>
- <span>No assignee</span>
+ <span>{t("no_assignee")}</span>
</div>
}
completed={assignee.completed_issues}
@@ -293,10 +299,9 @@ export const ActiveCycleStats: FC<ActiveCycleStatsProps> = observer((props) => {
})
) : (
<div className="flex items-center justify-center h-full w-full">
- <EmptyState
- type={EmptyStateType.ACTIVE_CYCLE_ASSIGNEE_EMPTY_STATE}
- layout="screen-simple"
- size="sm"
+ <SimpleEmptyState
+ title={t("active_cycle.empty_state.assignee.title")}
+ assetPath={assigneesResolvedPath}
/>
</div>
)
@@ -336,7 +341,7 @@ export const ActiveCycleStats: FC<ActiveCycleStatsProps> = observer((props) => {
))
) : (
<div className="flex items-center justify-center h-full w-full">
- <EmptyState type={EmptyStateType.ACTIVE_CYCLE_LABEL_EMPTY_STATE} layout="screen-simple" size="sm" />
+ <SimpleEmptyState title={t("active_cycle.empty_state.label.title")} assetPath={labelsResolvedPath} />
</div>
)
) : (
diff --git a/web/core/components/cycles/active-cycle/productivity.tsx b/web/core/components/cycles/active-cycle/productivity.tsx
index 74957af03c..613355c7eb 100644
--- a/web/core/components/cycles/active-cycle/productivity.tsx
+++ b/web/core/components/cycles/active-cycle/productivity.tsx
@@ -1,16 +1,17 @@
import { FC, Fragment } from "react";
import { observer } from "mobx-react";
import Link from "next/link";
+// plane imports
+import { useTranslation } from "@plane/i18n";
import { ICycle, TCycleEstimateType } from "@plane/types";
import { Loader } from "@plane/ui";
// components
import ProgressChart from "@/components/core/sidebar/progress-chart";
-import { EmptyState } from "@/components/empty-state";
+import { SimpleEmptyState } from "@/components/empty-state";
// constants
-import { EmptyStateType } from "@/constants/empty-state";
-import { useCycle, useProjectEstimates } from "@/hooks/store";
+import { useCycle } from "@/hooks/store";
// plane web constants
-import { EEstimateSystem } from "@/plane-web/constants/estimates";
+import { useResolvedAssetPath } from "@/hooks/use-resolved-asset-path";
import { EstimateTypeDropdown } from "../dropdowns/estimate-type-dropdown";
export type ActiveCycleProductivityProps = {
@@ -21,11 +22,13 @@ export type ActiveCycleProductivityProps = {
export const ActiveCycleProductivity: FC<ActiveCycleProductivityProps> = observer((props) => {
const { workspaceSlug, projectId, cycle } = props;
+ // plane hooks
+ const { t } = useTranslation();
// hooks
const { getEstimateTypeByCycleId, setEstimateType } = useCycle();
-
// derived values
const estimateType: TCycleEstimateType = (cycle && getEstimateTypeByCycleId(cycle.id)) || "issues";
+ const resolvedPath = useResolvedAssetPath({ basePath: "/empty-state/active-cycle/chart" });
const onChange = async (value: TCycleEstimateType) => {
if (!workspaceSlug || !projectId || !cycle || !cycle.id) return;
@@ -40,7 +43,9 @@ export const ActiveCycleProductivity: FC<ActiveCycleProductivityProps> = observe
<div className="flex flex-col min-h-[17rem] gap-5 px-3.5 py-4 bg-custom-background-100 border border-custom-border-200 rounded-lg">
<div className="relative flex items-center justify-between gap-4">
<Link href={`/${workspaceSlug}/projects/${projectId}/cycles/${cycle?.id}`}>
- <h3 className="text-base text-custom-text-300 font-semibold">Issue burndown</h3>
+ <h3 className="text-base text-custom-text-300 font-semibold">
+ {t("project_cycles.active_cycle.issue_burndown")}
+ </h3>
</Link>
<EstimateTypeDropdown value={estimateType} onChange={onChange} cycleId={cycle.id} projectId={projectId} />
</div>
@@ -53,17 +58,17 @@ export const ActiveCycleProductivity: FC<ActiveCycleProductivityProps> = observe
<div className="flex items-center gap-3 text-custom-text-300">
<div className="flex items-center justify-center gap-1">
<span className="h-2 w-2 rounded-full bg-[#A9BBD0]" />
- <span>Ideal</span>
+ <span>{t("project_cycles.active_cycle.ideal")}</span>
</div>
<div className="flex items-center justify-center gap-1">
<span className="h-2 w-2 rounded-full bg-[#4C8FFF]" />
- <span>Current</span>
+ <span>{t("project_cycles.active_cycle.current")}</span>
</div>
</div>
{estimateType === "points" ? (
<span>{`Pending points - ${cycle.backlog_estimate_points + cycle.unstarted_estimate_points + cycle.started_estimate_points}`}</span>
) : (
- <span>{`Pending issues - ${cycle.backlog_issues + cycle.unstarted_issues + cycle.started_issues}`}</span>
+ <span>{`Pending work items - ${cycle.backlog_issues + cycle.unstarted_issues + cycle.started_issues}`}</span>
)}
</div>
@@ -84,7 +89,7 @@ export const ActiveCycleProductivity: FC<ActiveCycleProductivityProps> = observe
startDate={cycle.start_date ?? ""}
endDate={cycle.end_date ?? ""}
totalIssues={cycle.total_issues || 0}
- plotTitle={"issues"}
+ plotTitle={"work items"}
/>
)}
</Fragment>
@@ -95,7 +100,7 @@ export const ActiveCycleProductivity: FC<ActiveCycleProductivityProps> = observe
) : (
<>
<div className="flex items-center justify-center h-full w-full">
- <EmptyState type={EmptyStateType.ACTIVE_CYCLE_CHART_EMPTY_STATE} layout="screen-simple" size="sm" />
+ <SimpleEmptyState title={t("active_cycle.empty_state.chart.title")} assetPath={resolvedPath} />
</div>
</>
)}
diff --git a/web/core/components/cycles/active-cycle/progress.tsx b/web/core/components/cycles/active-cycle/progress.tsx
index 0dffff5c75..c2f0174f62 100644
--- a/web/core/components/cycles/active-cycle/progress.tsx
+++ b/web/core/components/cycles/active-cycle/progress.tsx
@@ -4,14 +4,14 @@ import { FC } from "react";
import { observer } from "mobx-react";
// plane package imports
import { PROGRESS_STATE_GROUPS_DETAILS } from "@plane/constants";
+import { useTranslation } from "@plane/i18n";
import { ICycle, IIssueFilterOptions } from "@plane/types";
import { LinearProgressIndicator, Loader } from "@plane/ui";
// components
-import { EmptyState } from "@/components/empty-state";
-// constants
-import { EmptyStateType } from "@/constants/empty-state";
+import { SimpleEmptyState } from "@/components/empty-state";
// hooks
import { useProjectState } from "@/hooks/store";
+import { useResolvedAssetPath } from "@/hooks/use-resolved-asset-path";
export type ActiveCycleProgressProps = {
cycle: ICycle | null;
@@ -22,9 +22,10 @@ export type ActiveCycleProgressProps = {
export const ActiveCycleProgress: FC<ActiveCycleProgressProps> = observer((props) => {
const { handleFiltersUpdate, cycle } = props;
+ // plane hooks
+ const { t } = useTranslation();
// store hooks
const { groupedProjectStates } = useProjectState();
-
// derived values
const progressIndicatorData = PROGRESS_STATE_GROUPS_DETAILS.map((group, index) => ({
id: index,
@@ -40,16 +41,17 @@ export const ActiveCycleProgress: FC<ActiveCycleProgressProps> = observer((props
backlog: cycle?.backlog_issues,
}
: {};
+ const resolvedPath = useResolvedAssetPath({ basePath: "/empty-state/active-cycle/progress" });
return cycle && cycle.hasOwnProperty("started_issues") ? (
<div className="flex flex-col min-h-[17rem] gap-5 py-4 px-3.5 bg-custom-background-100 border border-custom-border-200 rounded-lg">
<div className="flex flex-col gap-3">
<div className="flex items-center justify-between gap-4">
- <h3 className="text-base text-custom-text-300 font-semibold">Progress</h3>
+ <h3 className="text-base text-custom-text-300 font-semibold">{t("project_cycles.active_cycle.progress")}</h3>
{cycle.total_issues > 0 && (
<span className="flex gap-1 text-sm text-custom-text-400 font-medium whitespace-nowrap rounded-sm px-3 py-1 ">
{`${cycle.completed_issues + cycle.cancelled_issues}/${cycle.total_issues - cycle.cancelled_issues} ${
- cycle.completed_issues + cycle.cancelled_issues > 1 ? "Issues" : "Issue"
+ cycle.completed_issues + cycle.cancelled_issues > 1 ? "Work items" : "Work item"
} closed`}
</span>
)}
@@ -82,7 +84,7 @@ export const ActiveCycleProgress: FC<ActiveCycleProgressProps> = observer((props
<span className="text-custom-text-300 capitalize font-medium w-16">{group}</span>
</div>
<span className="text-custom-text-300">{`${groupedIssues[group]} ${
- groupedIssues[group] > 1 ? "Issues" : "Issue"
+ groupedIssues[group] > 1 ? "Work items" : "Work item"
}`}</span>
</div>
</div>
@@ -93,7 +95,7 @@ export const ActiveCycleProgress: FC<ActiveCycleProgressProps> = observer((props
<span className="flex items-center gap-2 text-sm text-custom-text-300">
<span>
{`${cycle.cancelled_issues} cancelled ${
- cycle.cancelled_issues > 1 ? "issues are" : "issue is"
+ cycle.cancelled_issues > 1 ? "work items are" : "work item is"
} excluded from this report.`}{" "}
</span>
</span>
@@ -101,7 +103,7 @@ export const ActiveCycleProgress: FC<ActiveCycleProgressProps> = observer((props
</div>
) : (
<div className="flex items-center justify-center h-full w-full">
- <EmptyState type={EmptyStateType.ACTIVE_CYCLE_PROGRESS_EMPTY_STATE} layout="screen-simple" size="sm" />
+ <SimpleEmptyState title={t("active_cycle.empty_state.progress.title")} assetPath={resolvedPath} />
</div>
)}
</div>
diff --git a/web/core/components/cycles/analytics-sidebar/issue-progress.tsx b/web/core/components/cycles/analytics-sidebar/issue-progress.tsx
index 0efdaded51..47f9df5e5d 100644
--- a/web/core/components/cycles/analytics-sidebar/issue-progress.tsx
+++ b/web/core/components/cycles/analytics-sidebar/issue-progress.tsx
@@ -8,6 +8,7 @@ import { useSearchParams } from "next/navigation";
import { ChevronUp, ChevronDown } from "lucide-react";
import { Disclosure, Transition } from "@headlessui/react";
import { EIssueFilterType, EIssuesStoreType } from "@plane/constants";
+import { useTranslation } from "@plane/i18n";
import { ICycle, IIssueFilterOptions, TCyclePlotType, TProgressSnapshot } from "@plane/types";
// components
import { CycleProgressStats } from "@/components/cycles";
@@ -30,7 +31,7 @@ type Options = {
};
export const cycleEstimateOptions: Options[] = [
- { value: "issues", label: "Issues" },
+ { value: "issues", label: "Work items" },
{ value: "points", label: "Points" },
];
export const cycleChartOptions: Options[] = [
@@ -63,6 +64,7 @@ export const CycleAnalyticsProgress: FC<TCycleAnalyticsProgress> = observer((pro
const {
issuesFilter: { issueFilters, updateFilters },
} = useIssues(EIssuesStoreType.CYCLE);
+ const { t } = useTranslation();
// derived values
const cycleDetails = validateCycleSnapshot(getCycleById(cycleId));
@@ -138,7 +140,9 @@ export const CycleAnalyticsProgress: FC<TCycleAnalyticsProgress> = observer((pro
{isCycleDateValid ? (
<div className="relative w-full flex justify-between items-center gap-2">
<Disclosure.Button className="relative flex items-center gap-2 w-full">
- <div className="font-medium text-custom-text-200 text-sm">Progress</div>
+ <div className="font-medium text-custom-text-200 text-sm">
+ {t("project_cycles.active_cycle.progress")}
+ </div>
</Disclosure.Button>
<Disclosure.Button className="ml-auto">
{open ? (
@@ -150,7 +154,9 @@ export const CycleAnalyticsProgress: FC<TCycleAnalyticsProgress> = observer((pro
</div>
) : (
<div className="relative w-full flex justify-between items-center gap-2">
- <div className="font-medium text-custom-text-200 text-sm">Progress</div>
+ <div className="font-medium text-custom-text-200 text-sm">
+ {t("project_cycles.active_cycle.progress")}
+ </div>
</div>
)}
diff --git a/web/core/components/cycles/analytics-sidebar/progress-stats.tsx b/web/core/components/cycles/analytics-sidebar/progress-stats.tsx
index 63203ffdec..4f13b86128 100644
--- a/web/core/components/cycles/analytics-sidebar/progress-stats.tsx
+++ b/web/core/components/cycles/analytics-sidebar/progress-stats.tsx
@@ -4,6 +4,7 @@ import { FC } from "react";
import { observer } from "mobx-react";
import Image from "next/image";
import { Tab } from "@headlessui/react";
+import { useTranslation } from "@plane/i18n";
import {
IIssueFilterOptions,
IIssueFilters,
@@ -73,6 +74,7 @@ type TStateStatComponent = {
export const AssigneeStatComponent = observer((props: TAssigneeStatComponent) => {
const { distribution, isEditable, filters, handleFiltersUpdate } = props;
+ const { t } = useTranslation();
return (
<div>
{distribution && distribution.length > 0 ? (
@@ -104,7 +106,7 @@ export const AssigneeStatComponent = observer((props: TAssigneeStatComponent) =>
<div className="h-4 w-4 rounded-full border-2 border-custom-border-200 bg-custom-background-80">
<img src="/user.png" height="100%" width="100%" className="rounded-full" alt="User" />
</div>
- <span>No assignee</span>
+ <span>{t("no_assignee")}</span>
</div>
}
completed={assignee?.completed ?? 0}
@@ -117,7 +119,7 @@ export const AssigneeStatComponent = observer((props: TAssigneeStatComponent) =>
<div className="flex h-20 w-20 items-center justify-center rounded-full bg-custom-background-80">
<Image src={emptyMembers} className="h-12 w-12" alt="empty members" />
</div>
- <h6 className="text-base text-custom-text-300">No assignees yet</h6>
+ <h6 className="text-base text-custom-text-300">{t("no_assignee")}</h6>
</div>
)}
</div>
@@ -126,6 +128,7 @@ export const AssigneeStatComponent = observer((props: TAssigneeStatComponent) =>
export const LabelStatComponent = observer((props: TLabelStatComponent) => {
const { distribution, isEditable, filters, handleFiltersUpdate } = props;
+ const { t } = useTranslation();
return (
<div>
{distribution && distribution.length > 0 ? (
@@ -142,7 +145,7 @@ export const LabelStatComponent = observer((props: TLabelStatComponent) => {
backgroundColor: label.color ?? "transparent",
}}
/>
- <span className="text-xs text-ellipsis truncate">{label.title ?? "No labels"}</span>
+ <span className="text-xs text-ellipsis truncate">{label.title ?? t("no_labels_yet")}</span>
</div>
}
completed={label.completed}
@@ -165,7 +168,7 @@ export const LabelStatComponent = observer((props: TLabelStatComponent) => {
backgroundColor: label.color ?? "transparent",
}}
/>
- <span className="text-xs">{label.title ?? "No labels"}</span>
+ <span className="text-xs">{label.title ?? t("no_labels_yet")}</span>
</div>
}
completed={label.completed}
@@ -179,7 +182,7 @@ export const LabelStatComponent = observer((props: TLabelStatComponent) => {
<div className="flex h-20 w-20 items-center justify-center rounded-full bg-custom-background-80">
<Image src={emptyLabel} className="h-12 w-12" alt="empty label" />
</div>
- <h6 className="text-base text-custom-text-300">No labels yet</h6>
+ <h6 className="text-base text-custom-text-300">{t("no_labels_yet")}</h6>
</div>
)}
</div>
@@ -222,15 +225,15 @@ export const StateStatComponent = observer((props: TStateStatComponent) => {
const progressStats = [
{
key: "stat-states",
- title: "States",
+ i18n_title: "common.states",
},
{
key: "stat-assignees",
- title: "Assignees",
+ i18n_title: "common.assignees",
},
{
key: "stat-labels",
- title: "Labels",
+ i18n_title: "common.labels",
},
];
@@ -267,6 +270,7 @@ export const CycleProgressStats: FC<TCycleProgressStats> = observer((props) => {
`cycle-analytics-tab-${cycleId}`,
"stat-assignees"
);
+ const { t } = useTranslation();
// derived values
const currentTabIndex = (tab: string): number => progressStats.findIndex((stat) => stat.key === tab);
@@ -337,7 +341,7 @@ export const CycleProgressStats: FC<TCycleProgressStats> = observer((props) => {
key={stat.key}
onClick={() => setCycleTab(stat.key)}
>
- {stat.title}
+ {t(stat.i18n_title)}
</Tab>
))}
</Tab.List>
diff --git a/web/core/components/cycles/analytics-sidebar/sidebar-details.tsx b/web/core/components/cycles/analytics-sidebar/sidebar-details.tsx
index c60b5dae95..eaa460f7ab 100644
--- a/web/core/components/cycles/analytics-sidebar/sidebar-details.tsx
+++ b/web/core/components/cycles/analytics-sidebar/sidebar-details.tsx
@@ -4,6 +4,7 @@ import isEmpty from "lodash/isEmpty";
import { observer } from "mobx-react";
import { LayersIcon, SquareUser, Users } from "lucide-react";
// plane types
+import { useTranslation } from "@plane/i18n";
import { ICycle } from "@plane/types";
// plane ui
import { Avatar, AvatarGroup, TextArea } from "@plane/ui";
@@ -24,6 +25,7 @@ export const CycleSidebarDetails: FC<Props> = observer((props) => {
// hooks
const { getUserDetails } = useMember();
const { areEstimateEnabledByProjectId, currentActiveEstimateId, estimateById } = useProjectEstimates();
+ const { t } = useTranslation();
const areEstimateEnabled = projectId && areEstimateEnabledByProjectId(projectId.toString());
const cycleStatus = cycleDetails?.status?.toLocaleLowerCase();
@@ -32,10 +34,10 @@ export const CycleSidebarDetails: FC<Props> = observer((props) => {
const issueCount =
isCompleted && !isEmpty(cycleDetails?.progress_snapshot)
? cycleDetails?.progress_snapshot?.total_issues === 0
- ? "0 Issue"
+ ? `0 ${t("common.work_item")}`
: `${cycleDetails?.progress_snapshot?.completed_issues}/${cycleDetails?.progress_snapshot?.total_issues}`
: cycleDetails?.total_issues === 0
- ? "0 Issue"
+ ? `0 ${t("common.work_item")}`
: `${cycleDetails?.completed_issues}/${cycleDetails?.total_issues}`;
const estimateType = areEstimateEnabled && currentActiveEstimateId && estimateById(currentActiveEstimateId);
const cycleOwnerDetails = cycleDetails ? getUserDetails(cycleDetails.owned_by_id) : undefined;
@@ -51,10 +53,10 @@ export const CycleSidebarDetails: FC<Props> = observer((props) => {
const issueEstimatePointCount =
isCompleted && !isEmpty(cycleDetails?.progress_snapshot)
? cycleDetails?.progress_snapshot.total_issues === 0
- ? "0 Issue"
+ ? `0 ${t("common.work_item")}`
: `${cycleDetails?.progress_snapshot.completed_estimate_points}/${cycleDetails?.progress_snapshot.total_estimate_points}`
: cycleDetails?.total_issues === 0
- ? "0 Issue"
+ ? `0 ${t("common.work_item")}`
: `${cycleDetails?.completed_estimate_points}/${cycleDetails?.total_estimate_points}`;
return (
<div className="flex flex-col gap-5 w-full">
@@ -70,7 +72,7 @@ export const CycleSidebarDetails: FC<Props> = observer((props) => {
<div className="flex items-center justify-start gap-1">
<div className="flex w-2/5 items-center justify-start gap-2 text-custom-text-300">
<SquareUser className="h-4 w-4" />
- <span className="text-base">Lead</span>
+ <span className="text-base">{t("lead")}</span>
</div>
<div className="flex w-3/5 items-center rounded-sm">
<div className="flex items-center gap-2.5">
@@ -83,7 +85,7 @@ export const CycleSidebarDetails: FC<Props> = observer((props) => {
<div className="flex items-center justify-start gap-1">
<div className="flex w-2/5 items-center justify-start gap-2 text-custom-text-300">
<Users className="h-4 w-4" />
- <span className="text-base">Members</span>
+ <span className="text-base">{t("members")}</span>
</div>
<div className="flex w-3/5 items-center rounded-sm">
<div className="flex items-center gap-2.5">
@@ -104,7 +106,7 @@ export const CycleSidebarDetails: FC<Props> = observer((props) => {
</AvatarGroup>
</>
) : (
- <span className="px-1.5 text-sm text-custom-text-300">No assignees</span>
+ <span className="px-1.5 text-sm text-custom-text-300">{t("no_assignee")}</span>
)}
</div>
</div>
@@ -113,7 +115,7 @@ export const CycleSidebarDetails: FC<Props> = observer((props) => {
<div className="flex items-center justify-start gap-1">
<div className="flex w-2/5 items-center justify-start gap-2 text-custom-text-300">
<LayersIcon className="h-4 w-4" />
- <span className="text-base">Issues</span>
+ <span className="text-base">{t("work_items")}</span>
</div>
<div className="flex w-3/5 items-center">
<span className="px-1.5 text-sm text-custom-text-300">{issueCount}</span>
@@ -127,7 +129,7 @@ export const CycleSidebarDetails: FC<Props> = observer((props) => {
<div className="flex items-center justify-start gap-1">
<div className="flex w-2/5 items-center justify-start gap-2 text-custom-text-300">
<LayersIcon className="h-4 w-4" />
- <span className="text-base">Points</span>
+ <span className="text-base">{t("points")}</span>
</div>
<div className="flex w-3/5 items-center">
<span className="px-1.5 text-sm text-custom-text-300">{issueEstimatePointCount}</span>
diff --git a/web/core/components/cycles/analytics-sidebar/sidebar-header.tsx b/web/core/components/cycles/analytics-sidebar/sidebar-header.tsx
index af645804eb..c8d4cc487b 100644
--- a/web/core/components/cycles/analytics-sidebar/sidebar-header.tsx
+++ b/web/core/components/cycles/analytics-sidebar/sidebar-header.tsx
@@ -5,14 +5,13 @@ import { observer } from "mobx-react";
import { Controller, useForm } from "react-hook-form";
import { ArchiveIcon, ArchiveRestoreIcon, ChevronRight, EllipsisIcon, LinkIcon, Trash2 } from "lucide-react";
// types
+import { CYCLE_STATUS, CYCLE_UPDATED, EUserPermissions, EUserPermissionsLevel } from "@plane/constants";
+import { useTranslation } from "@plane/i18n";
import { ICycle } from "@plane/types";
// ui
import { CustomMenu, setToast, TOAST_TYPE } from "@plane/ui";
// components
import { DateRangeDropdown } from "@/components/dropdowns";
-// constants
-import { CYCLE_STATUS } from "@/constants/cycle";
-import { CYCLE_UPDATED } from "@/constants/event-tracker";
// helpers
import { renderFormattedPayloadDate, getDate } from "@/helpers/date-time.helper";
import { copyUrlToClipboard } from "@/helpers/string.helper";
@@ -20,7 +19,6 @@ import { copyUrlToClipboard } from "@/helpers/string.helper";
import { useCycle, useEventTracker, useUserPermissions } from "@/hooks/store";
import { useAppRouter } from "@/hooks/use-app-router";
// plane web constants
-import { EUserPermissions, EUserPermissionsLevel } from "@/plane-web/constants/user-permissions";
// services
import { CycleService } from "@/services/cycle.service";
// local components
@@ -53,6 +51,7 @@ export const CycleSidebarHeader: FC<Props> = observer((props) => {
const { allowPermissions } = useUserPermissions();
const { updateCycleDetails, restoreCycle } = useCycle();
const { setTrackElement, captureCycleEvent } = useEventTracker();
+ const { t } = useTranslation();
// form info
const { control, reset } = useForm({
@@ -71,16 +70,16 @@ export const CycleSidebarHeader: FC<Props> = observer((props) => {
.then(() => {
setToast({
type: TOAST_TYPE.SUCCESS,
- title: "Restore success",
- message: "Your cycle can be found in project cycles.",
+ title: t("project_cycles.action.restore.success.title"),
+ message: t("project_cycles.action.restore.success.description"),
});
router.push(`/${workspaceSlug.toString()}/projects/${projectId.toString()}/archives/cycles`);
})
.catch(() =>
setToast({
type: TOAST_TYPE.ERROR,
- title: "Error!",
- message: "Cycle could not be restored. Please try again.",
+ title: t("project_cycles.action.restore.failed.title"),
+ message: t("project_cycles.action.restore.failed.description"),
})
);
};
@@ -90,14 +89,14 @@ export const CycleSidebarHeader: FC<Props> = observer((props) => {
.then(() => {
setToast({
type: TOAST_TYPE.SUCCESS,
- title: "Link Copied!",
- message: "Cycle link copied to clipboard.",
+ title: t("common.link_copied"),
+ message: t("common.link_copied_to_clipboard"),
});
})
.catch(() => {
setToast({
type: TOAST_TYPE.ERROR,
- title: "Some error occurred",
+ title: t("common.errors.default.message"),
});
});
};
@@ -167,15 +166,14 @@ export const CycleSidebarHeader: FC<Props> = observer((props) => {
submitChanges(payload, "date_range");
setToast({
type: TOAST_TYPE.SUCCESS,
- title: "Success!",
- message: "Cycle updated successfully.",
+ title: t("project_cycles.action.update.success.title"),
+ message: t("project_cycles.action.update.success.description"),
});
} else {
setToast({
type: TOAST_TYPE.ERROR,
- title: "Error!",
- message:
- "You already have a cycle on the given dates, if you want to create a draft cycle, you can do that by removing both the dates.",
+ title: t("project_cycles.action.update.failed.title"),
+ message: t("project_cycles.action.update.error.already_exists"),
});
reset({ ...cycleDetails });
}
@@ -232,15 +230,15 @@ export const CycleSidebarHeader: FC<Props> = observer((props) => {
{isCompleted ? (
<div className="flex items-center gap-2">
<ArchiveIcon className="h-3 w-3" />
- Archive cycle
+ {t("common.archive")}
</div>
) : (
<div className="flex items-start gap-2">
<ArchiveIcon className="h-3 w-3" />
<div className="-mt-1">
- <p>Archive cycle</p>
+ <p>{t("common.archive")}</p>
<p className="text-xs text-custom-text-400">
- Only completed cycles <br /> can be archived.
+ {t("project_cycles.only_completed_cycles_can_be_archived")}
</p>
</div>
</div>
@@ -251,7 +249,7 @@ export const CycleSidebarHeader: FC<Props> = observer((props) => {
<CustomMenu.MenuItem onClick={handleRestoreCycle}>
<span className="flex items-center justify-start gap-2">
<ArchiveRestoreIcon className="h-3 w-3" />
- <span>Restore cycle</span>
+ <span>{t("project_cycles.action.restore.title")}</span>
</span>
</CustomMenu.MenuItem>
)}
@@ -264,7 +262,7 @@ export const CycleSidebarHeader: FC<Props> = observer((props) => {
>
<span className="flex items-center justify-start gap-2">
<Trash2 className="h-3 w-3" />
- <span>Delete cycle</span>
+ <span>{t("delete")}</span>
</span>
</CustomMenu.MenuItem>
)}
@@ -283,7 +281,7 @@ export const CycleSidebarHeader: FC<Props> = observer((props) => {
backgroundColor: `${currentCycle.color}20`,
}}
>
- {currentCycle.title}
+ {t(currentCycle.i18n_title)}
</span>
)}
</div>
diff --git a/web/core/components/cycles/applied-filters/date.tsx b/web/core/components/cycles/applied-filters/date.tsx
index 488eef12ce..c2ee47be52 100644
--- a/web/core/components/cycles/applied-filters/date.tsx
+++ b/web/core/components/cycles/applied-filters/date.tsx
@@ -1,7 +1,7 @@
import { observer } from "mobx-react";
import { X } from "lucide-react";
// helpers
-import { DATE_AFTER_FILTER_OPTIONS } from "@/constants/filters";
+import { DATE_AFTER_FILTER_OPTIONS } from "@plane/constants";
import { renderFormattedDate } from "@/helpers/date-time.helper";
import { capitalizeFirstLetter } from "@/helpers/string.helper";
// constants
diff --git a/web/core/components/cycles/applied-filters/root.tsx b/web/core/components/cycles/applied-filters/root.tsx
index 9fa74c3936..b53f0ab4d0 100644
--- a/web/core/components/cycles/applied-filters/root.tsx
+++ b/web/core/components/cycles/applied-filters/root.tsx
@@ -1,12 +1,13 @@
import { observer } from "mobx-react";
import { X } from "lucide-react";
+import { EUserPermissions, EUserPermissionsLevel } from "@plane/constants";
+import { useTranslation } from "@plane/i18n";
import { TCycleFilters } from "@plane/types";
// hooks
import { Tag } from "@plane/ui";
import { AppliedDateFilters, AppliedStatusFilters } from "@/components/cycles";
import { replaceUnderscoreIfSnakeCase } from "@/helpers/string.helper";
import { useUserPermissions } from "@/hooks/store";
-import { EUserPermissions, EUserPermissionsLevel } from "@/plane-web/constants/user-permissions";
// components
// helpers
@@ -26,6 +27,7 @@ export const CycleAppliedFiltersList: React.FC<Props> = observer((props) => {
const { appliedFilters, handleClearAllFilters, handleRemoveFilter, alwaysAllowEditing } = props;
// store hooks
const { allowPermissions } = useUserPermissions();
+ const { t } = useTranslation();
if (!appliedFilters) return null;
@@ -77,7 +79,7 @@ export const CycleAppliedFiltersList: React.FC<Props> = observer((props) => {
{isEditingAllowed && (
<button type="button" onClick={handleClearAllFilters}>
<Tag>
- Clear all
+ {t("common.clear_all")}
<X size={12} strokeWidth={2} />
</Tag>
</button>
diff --git a/web/core/components/cycles/applied-filters/status.tsx b/web/core/components/cycles/applied-filters/status.tsx
index d46b565033..7bb2192511 100644
--- a/web/core/components/cycles/applied-filters/status.tsx
+++ b/web/core/components/cycles/applied-filters/status.tsx
@@ -1,6 +1,7 @@
import { observer } from "mobx-react";
import { X } from "lucide-react";
-import { CYCLE_STATUS } from "@/constants/cycle";
+import { CYCLE_STATUS } from "@plane/constants";
+import { useTranslation } from "@plane/i18n";
import { cn } from "@/helpers/common.helper";
type Props = {
@@ -11,6 +12,7 @@ type Props = {
export const AppliedStatusFilters: React.FC<Props> = observer((props) => {
const { handleRemove, values, editable } = props;
+ const { t } = useTranslation();
return (
<>
@@ -25,7 +27,7 @@ export const AppliedStatusFilters: React.FC<Props> = observer((props) => {
statusDetails?.textColor
)}
>
- {statusDetails?.title}
+ {statusDetails && t(statusDetails?.i18n_title)}
{editable && (
<button
type="button"
diff --git a/web/core/components/cycles/archived-cycles/root.tsx b/web/core/components/cycles/archived-cycles/root.tsx
index 06f61b66f5..165b5e4aa3 100644
--- a/web/core/components/cycles/archived-cycles/root.tsx
+++ b/web/core/components/cycles/archived-cycles/root.tsx
@@ -2,28 +2,31 @@ import React from "react";
import { observer } from "mobx-react";
import { useParams } from "next/navigation";
import useSWR from "swr";
-// types
+// plane imports
+import { useTranslation } from "@plane/i18n";
import { TCycleFilters } from "@plane/types";
// components
import { ArchivedCyclesView, CycleAppliedFiltersList } from "@/components/cycles";
-import { EmptyState } from "@/components/empty-state";
+import { DetailedEmptyState } from "@/components/empty-state";
import { CycleModuleListLayout } from "@/components/ui";
-// constants
-import { EmptyStateType } from "@/constants/empty-state";
// helpers
import { calculateTotalFilters } from "@/helpers/filter.helper";
// hooks
import { useCycle, useCycleFilter } from "@/hooks/store";
+import { useResolvedAssetPath } from "@/hooks/use-resolved-asset-path";
export const ArchivedCycleLayoutRoot: React.FC = observer(() => {
// router
const { workspaceSlug, projectId } = useParams();
+ // plane hooks
+ const { t } = useTranslation();
// hooks
const { fetchArchivedCycles, currentProjectArchivedCycleIds, loader } = useCycle();
// cycle filters hook
const { clearAllFilters, currentProjectArchivedFilters, updateFilters } = useCycleFilter();
// derived values
const totalArchivedCycles = currentProjectArchivedCycleIds?.length ?? 0;
+ const resolvedPath = useResolvedAssetPath({ basePath: "/empty-state/archived/empty-cycles" });
useSWR(
workspaceSlug && projectId ? `ARCHIVED_CYCLES_${workspaceSlug.toString()}_${projectId.toString()}` : null,
@@ -64,7 +67,11 @@ export const ArchivedCycleLayoutRoot: React.FC = observer(() => {
)}
{totalArchivedCycles === 0 ? (
<div className="h-full place-items-center">
- <EmptyState type={EmptyStateType.PROJECT_ARCHIVED_NO_CYCLES} />
+ <DetailedEmptyState
+ title={t("project_cycles.empty_state.archived.title")}
+ description={t("project_cycles.empty_state.archived.description")}
+ assetPath={resolvedPath}
+ />
</div>
) : (
<div className="relative h-full w-full overflow-auto">
diff --git a/web/core/components/cycles/cycles-view-header.tsx b/web/core/components/cycles/cycles-view-header.tsx
index c3139bc873..fe5b942dbf 100644
--- a/web/core/components/cycles/cycles-view-header.tsx
+++ b/web/core/components/cycles/cycles-view-header.tsx
@@ -5,6 +5,7 @@ import { ListFilter, Search, X } from "lucide-react";
// plane helpers
import { useOutsideClickDetector } from "@plane/hooks";
// types
+import { useTranslation } from "@plane/i18n";
import { TCycleFilters } from "@plane/types";
// components
import { CycleFiltersSelection } from "@/components/cycles";
@@ -25,6 +26,7 @@ export const CyclesViewHeader: React.FC<Props> = observer((props) => {
const inputRef = useRef<HTMLInputElement>(null);
// hooks
const { currentProjectFilters, searchQuery, updateFilters, updateSearchQuery } = useCycleFilter();
+ const { t } = useTranslation();
// states
const [isSearchOpen, setIsSearchOpen] = useState(searchQuery !== "" ? true : false);
// outside click detector hook
@@ -114,7 +116,7 @@ export const CyclesViewHeader: React.FC<Props> = observer((props) => {
</div>
<FiltersDropdown
icon={<ListFilter className="h-3 w-3" />}
- title="Filters"
+ title={t("common.filters")}
placement="bottom-end"
isFiltersApplied={isFiltersApplied}
>
diff --git a/web/core/components/cycles/cycles-view.tsx b/web/core/components/cycles/cycles-view.tsx
index dea4554129..ef6c9d136a 100644
--- a/web/core/components/cycles/cycles-view.tsx
+++ b/web/core/components/cycles/cycles-view.tsx
@@ -2,6 +2,7 @@ import { FC } from "react";
import { observer } from "mobx-react";
import Image from "next/image";
// components
+import { useTranslation } from "@plane/i18n";
import { CyclesList } from "@/components/cycles";
// ui
import { CycleModuleListLayout } from "@/components/ui";
@@ -21,6 +22,7 @@ export const CyclesView: FC<ICyclesView> = observer((props) => {
// store hooks
const { getFilteredCycleIds, getFilteredCompletedCycleIds, loader, currentProjectActiveCycleId } = useCycle();
const { searchQuery } = useCycleFilter();
+ const { t } = useTranslation();
// derived values
const filteredCycleIds = getFilteredCycleIds(projectId, false);
const filteredCompletedCycleIds = getFilteredCompletedCycleIds(projectId);
@@ -39,11 +41,11 @@ export const CyclesView: FC<ICyclesView> = observer((props) => {
className="mx-auto h-36 w-36 sm:h-48 sm:w-48"
alt="No matching cycles"
/>
- <h5 className="mb-1 mt-7 text-xl font-medium">No matching cycles</h5>
+ <h5 className="mb-1 mt-7 text-xl font-medium">{t("project_cycles.no_matching_cycles")}</h5>
<p className="text-base text-custom-text-400">
{searchQuery.trim() === ""
- ? "Remove the filters to see all cycles"
- : "Remove the search criteria to see all cycles"}
+ ? t("project_cycles.remove_filters_to_see_all_cycles")
+ : t("project_cycles.remove_search_criteria_to_see_all_cycles")}
</p>
</div>
</div>
diff --git a/web/core/components/cycles/delete-modal.tsx b/web/core/components/cycles/delete-modal.tsx
index f89a1cea77..210b1a13a3 100644
--- a/web/core/components/cycles/delete-modal.tsx
+++ b/web/core/components/cycles/delete-modal.tsx
@@ -4,12 +4,12 @@ import { useState } from "react";
import { observer } from "mobx-react";
import { useParams, useSearchParams } from "next/navigation";
// types
+import { PROJECT_ERROR_MESSAGES, CYCLE_DELETED } from "@plane/constants";
+import { useTranslation } from "@plane/i18n";
import { ICycle } from "@plane/types";
// ui
import { AlertModalCore, TOAST_TYPE, setToast } from "@plane/ui";
// constants
-import { CYCLE_DELETED } from "@/constants/event-tracker";
-import { PROJECT_ERROR_MESSAGES } from "@/constants/project";
// hooks
import { useEventTracker, useCycle } from "@/hooks/store";
import { useAppRouter } from "@/hooks/use-app-router";
@@ -29,6 +29,7 @@ export const CycleDeleteModal: React.FC<ICycleDelete> = observer((props) => {
// store hooks
const { captureCycleEvent } = useEventTracker();
const { deleteCycle } = useCycle();
+ const { t } = useTranslation();
// router
const router = useAppRouter();
const { cycleId } = useParams();
@@ -59,9 +60,9 @@ export const CycleDeleteModal: React.FC<ICycleDelete> = observer((props) => {
? PROJECT_ERROR_MESSAGES.permissionError
: PROJECT_ERROR_MESSAGES.cycleDeleteError;
setToast({
- title: currentError.title,
+ title: t(currentError.i18n_title),
type: TOAST_TYPE.ERROR,
- message: currentError.message,
+ message: currentError.i18n_message && t(currentError.i18n_message),
});
captureCycleEvent({
eventName: CYCLE_DELETED,
diff --git a/web/core/components/cycles/dropdowns/filters/end-date.tsx b/web/core/components/cycles/dropdowns/filters/end-date.tsx
index e5b4a7a863..f9b7d2f37b 100644
--- a/web/core/components/cycles/dropdowns/filters/end-date.tsx
+++ b/web/core/components/cycles/dropdowns/filters/end-date.tsx
@@ -1,11 +1,11 @@
import React, { useState } from "react";
import { observer } from "mobx-react";
-
+// constants
+import { DATE_AFTER_FILTER_OPTIONS } from "@plane/constants";
// components
import { DateFilterModal } from "@/components/core";
import { FilterHeader, FilterOption } from "@/components/issues";
-// constants
-import { DATE_AFTER_FILTER_OPTIONS } from "@/constants/filters";
+
// helpers
import { isInDateFormat } from "@/helpers/date-time.helper";
diff --git a/web/core/components/cycles/dropdowns/filters/start-date.tsx b/web/core/components/cycles/dropdowns/filters/start-date.tsx
index 9bfd8f2d8e..eb2032edb6 100644
--- a/web/core/components/cycles/dropdowns/filters/start-date.tsx
+++ b/web/core/components/cycles/dropdowns/filters/start-date.tsx
@@ -1,11 +1,11 @@
import React, { useState } from "react";
import { observer } from "mobx-react";
-
+// constants
+import { DATE_AFTER_FILTER_OPTIONS } from "@plane/constants";
// components
import { DateFilterModal } from "@/components/core";
import { FilterHeader, FilterOption } from "@/components/issues";
-// constants
-import { DATE_AFTER_FILTER_OPTIONS } from "@/constants/filters";
+
// helpers
import { isInDateFormat } from "@/helpers/date-time.helper";
@@ -17,7 +17,6 @@ type Props = {
export const FilterStartDate: React.FC<Props> = observer((props) => {
const { appliedFilters, handleUpdate, searchQuery } = props;
-
const [previewEnabled, setPreviewEnabled] = useState(true);
const [isDateFilterModalOpen, setIsDateFilterModalOpen] = useState(false);
diff --git a/web/core/components/cycles/dropdowns/filters/status.tsx b/web/core/components/cycles/dropdowns/filters/status.tsx
index b2ca62b51d..0e24a2a218 100644
--- a/web/core/components/cycles/dropdowns/filters/status.tsx
+++ b/web/core/components/cycles/dropdowns/filters/status.tsx
@@ -1,10 +1,11 @@
import React, { useState } from "react";
import { observer } from "mobx-react";
+import { CYCLE_STATUS } from "@plane/constants";
+import { useTranslation } from "@plane/i18n";
import { TCycleGroups } from "@plane/types";
// components
import { FilterHeader, FilterOption } from "@/components/issues";
// types
-import { CYCLE_STATUS } from "@/constants/cycle";
// constants
type Props = {
@@ -17,7 +18,8 @@ export const FilterStatus: React.FC<Props> = observer((props) => {
const { appliedFilters, handleUpdate, searchQuery } = props;
// states
const [previewEnabled, setPreviewEnabled] = useState(true);
-
+ //hooks
+ const { t } = useTranslation();
const appliedFiltersCount = appliedFilters?.length ?? 0;
const filteredOptions = CYCLE_STATUS.filter((p) => p.value.includes(searchQuery.toLowerCase()));
@@ -36,7 +38,7 @@ export const FilterStatus: React.FC<Props> = observer((props) => {
key={status.value}
isChecked={appliedFilters?.includes(status.value) ? true : false}
onClick={() => handleUpdate(status.value)}
- title={status.title}
+ title={t(status.i18n_title)}
/>
))
) : (
diff --git a/web/core/components/cycles/form.tsx b/web/core/components/cycles/form.tsx
index 7651c5d443..c5c9c91869 100644
--- a/web/core/components/cycles/form.tsx
+++ b/web/core/components/cycles/form.tsx
@@ -2,14 +2,16 @@
import { useEffect } from "react";
import { Controller, useForm } from "react-hook-form";
+// plane imports
+import { ETabIndices } from "@plane/constants";
// types
+import { useTranslation } from "@plane/i18n";
import { ICycle } from "@plane/types";
// ui
import { Button, Input, TextArea } from "@plane/ui";
// components
import { DateRangeDropdown, ProjectDropdown } from "@/components/dropdowns";
// constants
-import { ETabIndices } from "@/constants/tab-indices";
// helpers
import { getDate, renderFormattedPayloadDate } from "@/helpers/date-time.helper";
import { shouldRenderProject } from "@/helpers/project.helper";
@@ -34,6 +36,7 @@ const defaultValues: Partial<ICycle> = {
export const CycleForm: React.FC<Props> = (props) => {
const { handleFormSubmit, handleClose, status, projectId, setActiveProject, data, isMobile = false } = props;
+ const { t } = useTranslation();
// form data
const {
formState: { errors, isSubmitting, dirtyFields },
@@ -84,7 +87,9 @@ export const CycleForm: React.FC<Props> = (props) => {
)}
/>
)}
- <h3 className="text-xl font-medium text-custom-text-200">{status ? "Update" : "Create"} cycle</h3>
+ <h3 className="text-xl font-medium text-custom-text-200">
+ {status ? t("project_cycles.update_cycle") : t("project_cycles.create_cycle")}
+ </h3>
</div>
<div className="space-y-3">
<div className="space-y-1">
@@ -92,17 +97,17 @@ export const CycleForm: React.FC<Props> = (props) => {
name="name"
control={control}
rules={{
- required: "Title is required",
+ required: t("title_is_required"),
maxLength: {
value: 255,
- message: "Title should be less than 255 characters",
+ message: t("title_should_be_less_than_255_characters"),
},
}}
render={({ field: { value, onChange } }) => (
<Input
name="name"
type="text"
- placeholder="Title"
+ placeholder={t("title")}
className="w-full text-base"
value={value}
inputSize="md"
@@ -122,7 +127,7 @@ export const CycleForm: React.FC<Props> = (props) => {
render={({ field: { value, onChange } }) => (
<TextArea
name="description"
- placeholder="Description"
+ placeholder={t("description")}
className="w-full text-base resize-none min-h-24"
hasError={Boolean(errors?.description)}
value={value}
@@ -171,10 +176,16 @@ export const CycleForm: React.FC<Props> = (props) => {
</div>
<div className="px-5 py-4 flex items-center justify-end gap-2 border-t-[0.5px] border-custom-border-200">
<Button variant="neutral-primary" size="sm" onClick={handleClose} tabIndex={getIndex("cancel")}>
- Cancel
+ {t("common.cancel")}
</Button>
<Button variant="primary" size="sm" type="submit" loading={isSubmitting} tabIndex={getIndex("submit")}>
- {data ? (isSubmitting ? "Updating" : "Update Cycle") : isSubmitting ? "Creating" : "Create Cycle"}
+ {data
+ ? isSubmitting
+ ? t("common.updating")
+ : t("project_cycles.update_cycle")
+ : isSubmitting
+ ? t("common.creating")
+ : t("project_cycles.create_cycle")}
</Button>
</div>
</form>
diff --git a/web/core/components/cycles/list/cycle-list-item-action.tsx b/web/core/components/cycles/list/cycle-list-item-action.tsx
index 8f546d2389..a5b98ca5d5 100644
--- a/web/core/components/cycles/list/cycle-list-item-action.tsx
+++ b/web/core/components/cycles/list/cycle-list-item-action.tsx
@@ -6,6 +6,8 @@ import { useParams, usePathname, useSearchParams } from "next/navigation";
import { Controller, useForm } from "react-hook-form";
import { Eye, Users } from "lucide-react";
// types
+import { CYCLE_FAVORITED, CYCLE_UNFAVORITED, EUserPermissions, EUserPermissionsLevel } from "@plane/constants";
+import { useTranslation } from "@plane/i18n";
import { ICycle, TCycleGroups } from "@plane/types";
// ui
import {
@@ -24,7 +26,6 @@ import { CycleQuickActions, TransferIssuesModal } from "@/components/cycles";
import { DateRangeDropdown } from "@/components/dropdowns";
import { ButtonAvatars } from "@/components/dropdowns/member/avatar";
// constants
-import { CYCLE_FAVORITED, CYCLE_UNFAVORITED } from "@/constants/event-tracker";
// helpers
import { getDate, renderFormattedPayloadDate } from "@/helpers/date-time.helper";
import { getFileURL } from "@/helpers/file.helper";
@@ -36,7 +37,6 @@ import { usePlatformOS } from "@/hooks/use-platform-os";
// plane web components
import { CycleAdditionalActions } from "@/plane-web/components/cycles";
// plane web constants
-import { EUserPermissions, EUserPermissionsLevel } from "@/plane-web/constants/user-permissions";
// services
import { CycleService } from "@/services/cycle.service";
@@ -64,6 +64,7 @@ export const CycleListItemAction: FC<Props> = observer((props) => {
const [transferIssuesModal, setTransferIssuesModal] = useState(false);
// hooks
const { isMobile } = usePlatformOS();
+ const { t } = useTranslation();
// router
const router = useAppRouter();
const searchParams = useSearchParams();
@@ -111,14 +112,14 @@ export const CycleListItemAction: FC<Props> = observer((props) => {
);
setPromiseToast(addToFavoritePromise, {
- loading: "Adding cycle to favorites...",
+ loading: t("project_cycles.action.favorite.loading"),
success: {
- title: "Success!",
- message: () => "Cycle added to favorites.",
+ title: t("project_cycles.action.favorite.success.title"),
+ message: () => t("project_cycles.action.favorite.success.description"),
},
error: {
- title: "Error!",
- message: () => "Couldn't add the cycle to favorites. Please try again.",
+ title: t("project_cycles.action.favorite.failed.title"),
+ message: () => t("project_cycles.action.favorite.failed.description"),
},
});
};
@@ -140,14 +141,14 @@ export const CycleListItemAction: FC<Props> = observer((props) => {
});
setPromiseToast(removeFromFavoritePromise, {
- loading: "Removing cycle from favorites...",
+ loading: t("project_cycles.action.unfavorite.loading"),
success: {
- title: "Success!",
- message: () => "Cycle removed from favorites.",
+ title: t("project_cycles.action.unfavorite.success.title"),
+ message: () => t("project_cycles.action.unfavorite.success.description"),
},
error: {
- title: "Error!",
- message: () => "Couldn't remove the cycle from favorites. Please try again.",
+ title: t("project_cycles.action.unfavorite.failed.title"),
+ message: () => t("project_cycles.action.unfavorite.failed.description"),
},
});
};
@@ -187,15 +188,14 @@ export const CycleListItemAction: FC<Props> = observer((props) => {
submitChanges(payload);
setToast({
type: TOAST_TYPE.SUCCESS,
- title: "Success!",
- message: "Cycle updated successfully.",
+ title: t("project_cycles.action.update.success.title"),
+ message: t("project_cycles.action.update.success.description"),
});
} else {
setToast({
type: TOAST_TYPE.ERROR,
- title: "Error!",
- message:
- "You already have a cycle on the given dates, if you want to create a draft cycle, you can do that by removing both the dates.",
+ title: t("project_cycles.action.update.failed.title"),
+ message: t("project_cycles.action.update.error.already_exists"),
});
reset({ ...cycleDetails });
}
@@ -239,7 +239,7 @@ export const CycleListItemAction: FC<Props> = observer((props) => {
className={`z-[1] flex text-custom-primary-200 text-xs gap-1 flex-shrink-0 ${isMobile || (isActive && !searchParams.has("peekCycle")) ? "flex" : "hidden group-hover:flex"}`}
>
<Eye className="h-4 w-4 my-auto text-custom-primary-200" />
- <span>More details</span>
+ <span>{t("project_cycles.more_details")}</span>
</button>
{showIssueCount && (
@@ -258,7 +258,7 @@ export const CycleListItemAction: FC<Props> = observer((props) => {
}}
>
<TransferIcon className="fill-custom-primary-200 w-4" />
- <span>Transfer {cycleDetails.pending_issues} issues</span>
+ <span>Transfer {cycleDetails.pending_issues} work items</span>
</div>
)}
diff --git a/web/core/components/cycles/list/root.tsx b/web/core/components/cycles/list/root.tsx
index 1531b88aa8..49e3fcbe3e 100644
--- a/web/core/components/cycles/list/root.tsx
+++ b/web/core/components/cycles/list/root.tsx
@@ -2,6 +2,7 @@ import React, { FC } from "react";
import { observer } from "mobx-react";
import { Disclosure } from "@headlessui/react";
// components
+import { useTranslation } from "@plane/i18n";
import { ContentWrapper, ERowVariant } from "@plane/ui";
import { ListLayout } from "@/components/core/list";
import { CycleListGroupHeader, CyclePeekOverview, CyclesListMap } from "@/components/cycles";
@@ -18,6 +19,7 @@ export interface ICyclesList {
export const CyclesList: FC<ICyclesList> = observer((props) => {
const { completedCycleIds, upcomingCycleIds, cycleIds, workspaceSlug, projectId, isArchived = false } = props;
+ const { t } = useTranslation();
return (
<ContentWrapper variant={ERowVariant.HUGGING} className="flex-row">
@@ -36,7 +38,7 @@ export const CyclesList: FC<ICyclesList> = observer((props) => {
<>
<Disclosure.Button className="sticky top-0 z-[2] w-full flex-shrink-0 border-b border-custom-border-200 bg-custom-background-90 cursor-pointer">
<CycleListGroupHeader
- title="Upcoming cycle"
+ title={t("project_cycles.upcoming_cycle.label")}
type="upcoming"
count={upcomingCycleIds.length}
showCount
@@ -55,7 +57,7 @@ export const CyclesList: FC<ICyclesList> = observer((props) => {
<>
<Disclosure.Button className="sticky top-0 z-[2] w-full flex-shrink-0 border-b border-custom-border-200 bg-custom-background-90 cursor-pointer">
<CycleListGroupHeader
- title="Completed cycle"
+ title={t("project_cycles.completed_cycle.label")}
type="completed"
count={completedCycleIds.length}
showCount
diff --git a/web/core/components/cycles/modal.tsx b/web/core/components/cycles/modal.tsx
index 25fabc3f2a..a12193559c 100644
--- a/web/core/components/cycles/modal.tsx
+++ b/web/core/components/cycles/modal.tsx
@@ -4,13 +4,13 @@ import React, { useEffect, useState } from "react";
import { format } from "date-fns";
import { mutate } from "swr";
// types
+import { CYCLE_CREATED, CYCLE_UPDATED } from "@plane/constants";
import type { CycleDateCheckData, ICycle, TCycleTabOptions } from "@plane/types";
// ui
import { EModalPosition, EModalWidth, ModalCore, TOAST_TYPE, setToast } from "@plane/ui";
// components
import { CycleForm } from "@/components/cycles";
// constants
-import { CYCLE_CREATED, CYCLE_UPDATED } from "@/constants/event-tracker";
// hooks
import { useEventTracker, useCycle, useProject } from "@/hooks/store";
import useLocalStorage from "@/hooks/use-local-storage";
diff --git a/web/core/components/cycles/quick-actions.tsx b/web/core/components/cycles/quick-actions.tsx
index 0b8e0794c1..5d27cfe107 100644
--- a/web/core/components/cycles/quick-actions.tsx
+++ b/web/core/components/cycles/quick-actions.tsx
@@ -6,6 +6,8 @@ import { observer } from "mobx-react";
// icons
import { ArchiveRestoreIcon, ExternalLink, LinkIcon, Pencil, Trash2 } from "lucide-react";
// ui
+import { EUserPermissions, EUserPermissionsLevel } from "@plane/constants";
+import { useTranslation } from "@plane/i18n";
import { ArchiveIcon, ContextMenu, CustomMenu, TContextMenuItem, TOAST_TYPE, setToast } from "@plane/ui";
// components
import { ArchiveCycleModal, CycleCreateUpdateModal, CycleDeleteModal } from "@/components/cycles";
@@ -16,7 +18,6 @@ import { copyUrlToClipboard } from "@/helpers/string.helper";
import { useCycle, useEventTracker, useUserPermissions } from "@/hooks/store";
import { useAppRouter } from "@/hooks/use-app-router";
import { useEndCycle, EndCycleModal } from "@/plane-web/components/cycles";
-import { EUserPermissions, EUserPermissionsLevel } from "@/plane-web/constants/user-permissions";
type Props = {
parentRef: React.RefObject<HTMLElement>;
@@ -37,6 +38,7 @@ export const CycleQuickActions: React.FC<Props> = observer((props) => {
const { setTrackElement } = useEventTracker();
const { allowPermissions } = useUserPermissions();
const { getCycleById, restoreCycle } = useCycle();
+ const { t } = useTranslation();
// derived values
const cycleDetails = getCycleById(cycleId);
const isArchived = !!cycleDetails?.archived_at;
@@ -57,8 +59,8 @@ export const CycleQuickActions: React.FC<Props> = observer((props) => {
copyUrlToClipboard(cycleLink).then(() => {
setToast({
type: TOAST_TYPE.SUCCESS,
- title: "Link Copied!",
- message: "Cycle link copied to clipboard.",
+ title: t("common.link_copied"),
+ message: t("common.link_copied_to_clipboard"),
});
});
const handleOpenInNewTab = () => window.open(`/${cycleLink}`, "_blank");
@@ -75,16 +77,16 @@ export const CycleQuickActions: React.FC<Props> = observer((props) => {
.then(() => {
setToast({
type: TOAST_TYPE.SUCCESS,
- title: "Restore success",
- message: "Your cycle can be found in project cycles.",
+ title: t("project_cycles.action.restore.success.title"),
+ message: t("project_cycles.action.restore.success.description"),
});
router.push(`/${workspaceSlug}/projects/${projectId}/archives/cycles`);
})
.catch(() =>
setToast({
type: TOAST_TYPE.ERROR,
- title: "Error!",
- message: "Cycle could not be restored. Please try again.",
+ title: t("project_cycles.action.restore.failed.title"),
+ message: t("project_cycles.action.restore.failed.description"),
})
);
@@ -96,7 +98,7 @@ export const CycleQuickActions: React.FC<Props> = observer((props) => {
const MENU_ITEMS: TContextMenuItem[] = [
{
key: "edit",
- title: "Edit",
+ title: t("edit"),
icon: Pencil,
action: handleEditCycle,
shouldRender: isEditingAllowed && !isCompleted && !isArchived,
@@ -104,22 +106,22 @@ export const CycleQuickActions: React.FC<Props> = observer((props) => {
{
key: "open-new-tab",
action: handleOpenInNewTab,
- title: "Open in new tab",
+ title: t("open_in_new_tab"),
icon: ExternalLink,
shouldRender: !isArchived,
},
{
key: "copy-link",
action: handleCopyText,
- title: "Copy link",
+ title: t("copy_link"),
icon: LinkIcon,
shouldRender: !isArchived,
},
{
key: "archive",
action: handleArchiveCycle,
- title: "Archive",
- description: isCompleted ? undefined : "Only completed cycles can\nbe archived.",
+ title: t("archive"),
+ description: isCompleted ? undefined : t("project_cycles.only_completed_cycles_can_be_archived"),
icon: ArchiveIcon,
className: "items-start",
iconClassName: "mt-1",
@@ -129,14 +131,14 @@ export const CycleQuickActions: React.FC<Props> = observer((props) => {
{
key: "restore",
action: handleRestoreCycle,
- title: "Restore",
+ title: t("restor"),
icon: ArchiveRestoreIcon,
shouldRender: isEditingAllowed && isArchived,
},
{
key: "delete",
action: handleDeleteCycle,
- title: "Delete",
+ title: t("delete"),
icon: Trash2,
shouldRender: isEditingAllowed && !isCompleted && !isArchived,
},
diff --git a/web/core/components/cycles/transfer-issues-modal.tsx b/web/core/components/cycles/transfer-issues-modal.tsx
index 0e9b56c0f7..6259a2bca6 100644
--- a/web/core/components/cycles/transfer-issues-modal.tsx
+++ b/web/core/components/cycles/transfer-issues-modal.tsx
@@ -41,7 +41,7 @@ export const TransferIssuesModal: React.FC<Props> = observer((props) => {
setToast({
type: TOAST_TYPE.SUCCESS,
title: "Success!",
- message: "Issues have been transferred successfully",
+ message: "Work items have been transferred successfully",
});
await getCycleDetails(payload.new_cycle_id);
})
@@ -49,7 +49,7 @@ export const TransferIssuesModal: React.FC<Props> = observer((props) => {
setToast({
type: TOAST_TYPE.ERROR,
title: "Error!",
- message: "Unable to transfer Issues. Please try again.",
+ message: "Unable to transfer work items. Please try again.",
});
});
};
@@ -114,7 +114,7 @@ export const TransferIssuesModal: React.FC<Props> = observer((props) => {
<div className="flex items-center justify-between px-5">
<div className="flex items-center gap-1">
<TransferIcon className="w-5 fill-custom-text-100" />
- <h4 className="text-xl font-medium text-custom-text-100">Transfer Issues</h4>
+ <h4 className="text-xl font-medium text-custom-text-100">Transfer work items</h4>
</div>
<button onClick={handleClose}>
<X className="h-4 w-4" />
@@ -164,7 +164,7 @@ export const TransferIssuesModal: React.FC<Props> = observer((props) => {
<div className="flex w-full items-center justify-center gap-4 p-5 text-sm">
<AlertCircle className="h-3.5 w-3.5 text-custom-text-200" />
<span className="text-center text-custom-text-200">
- You don’t have any current cycle. Please create one to transfer the issues.
+ You don’t have any current cycle. Please create one to transfer the work items.
</span>
</div>
)
diff --git a/web/core/components/cycles/transfer-issues.tsx b/web/core/components/cycles/transfer-issues.tsx
index 016736e011..bf5be1e74b 100644
--- a/web/core/components/cycles/transfer-issues.tsx
+++ b/web/core/components/cycles/transfer-issues.tsx
@@ -27,7 +27,7 @@ export const TransferIssues: React.FC<Props> = (props) => {
onClick={handleClick}
disabled={disabled}
>
- Transfer Issues
+ Transfer work items
</Button>
</div>
)}
diff --git a/web/core/components/dashboard/project-empty-state.tsx b/web/core/components/dashboard/project-empty-state.tsx
index c8cba817a3..eb06d21be0 100644
--- a/web/core/components/dashboard/project-empty-state.tsx
+++ b/web/core/components/dashboard/project-empty-state.tsx
@@ -3,10 +3,10 @@
import { observer } from "mobx-react";
import Image from "next/image";
// ui
+import { EUserPermissions, EUserPermissionsLevel } from "@plane/constants";
import { Button } from "@plane/ui";
// hooks
import { useCommandPalette, useEventTracker, useUserPermissions } from "@/hooks/store";
-import { EUserPermissions, EUserPermissionsLevel } from "@/plane-web/constants/user-permissions";
// assets
import ProjectEmptyStateImage from "@/public/empty-state/onboarding/dashboard-light.webp";
@@ -23,7 +23,7 @@ export const DashboardProjectEmptyState = observer(() => {
<div className="mx-auto flex h-full flex-col justify-center space-y-4 lg:w-3/5">
<h4 className="text-xl font-semibold">Overview of your projects, activity, and metrics</h4>
<p className="text-custom-text-300">
- Welcome to Plane, we are excited to have you here. Create your first project and track your issues, and this
+ Welcome to Plane, we are excited to have you here. Create your first project and track your work items, and this
page will transform into a space that helps you progress. Admins will also see items which help their team
progress.
</p>
diff --git a/web/core/components/dashboard/widgets/assigned-issues.tsx b/web/core/components/dashboard/widgets/assigned-issues.tsx
index 30bfbdad1b..cc2b74314e 100644
--- a/web/core/components/dashboard/widgets/assigned-issues.tsx
+++ b/web/core/components/dashboard/widgets/assigned-issues.tsx
@@ -2,6 +2,7 @@ import { useEffect, useState } from "react";
import { observer } from "mobx-react";
import Link from "next/link";
import { Tab } from "@headlessui/react";
+import { EDurationFilters, FILTERED_ISSUES_TABS_LIST, UNFILTERED_ISSUES_TABS_LIST } from "@plane/constants";
import { TAssignedIssuesWidgetFilters, TAssignedIssuesWidgetResponse } from "@plane/types";
// hooks
import { Card } from "@plane/ui";
@@ -13,7 +14,6 @@ import {
WidgetLoader,
WidgetProps,
} from "@/components/dashboard/widgets";
-import { EDurationFilters, FILTERED_ISSUES_TABS_LIST, UNFILTERED_ISSUES_TABS_LIST } from "@/constants/dashboard";
import { getCustomDates, getRedirectionFilters, getTabKey } from "@/helpers/dashboard.helper";
import { useDashboard } from "@/hooks/store";
// components
diff --git a/web/core/components/dashboard/widgets/created-issues.tsx b/web/core/components/dashboard/widgets/created-issues.tsx
index 083318d310..47dc6c268e 100644
--- a/web/core/components/dashboard/widgets/created-issues.tsx
+++ b/web/core/components/dashboard/widgets/created-issues.tsx
@@ -2,6 +2,7 @@ import { useEffect, useState } from "react";
import { observer } from "mobx-react";
import Link from "next/link";
import { Tab } from "@headlessui/react";
+import { EDurationFilters, FILTERED_ISSUES_TABS_LIST, UNFILTERED_ISSUES_TABS_LIST } from "@plane/constants";
import { TCreatedIssuesWidgetFilters, TCreatedIssuesWidgetResponse } from "@plane/types";
// hooks
import { Card } from "@plane/ui";
@@ -13,7 +14,6 @@ import {
WidgetLoader,
WidgetProps,
} from "@/components/dashboard/widgets";
-import { EDurationFilters, FILTERED_ISSUES_TABS_LIST, UNFILTERED_ISSUES_TABS_LIST } from "@/constants/dashboard";
import { getCustomDates, getRedirectionFilters, getTabKey } from "@/helpers/dashboard.helper";
import { useDashboard } from "@/hooks/store";
// components
diff --git a/web/core/components/dashboard/widgets/dropdowns/duration-filter.tsx b/web/core/components/dashboard/widgets/dropdowns/duration-filter.tsx
index 419cff64b4..2a897de82a 100644
--- a/web/core/components/dashboard/widgets/dropdowns/duration-filter.tsx
+++ b/web/core/components/dashboard/widgets/dropdowns/duration-filter.tsx
@@ -3,11 +3,11 @@
import { useState } from "react";
import { ChevronDown } from "lucide-react";
// components
+import { DURATION_FILTER_OPTIONS, EDurationFilters } from "@plane/constants";
import { CustomMenu } from "@plane/ui";
import { DateFilterModal } from "@/components/core";
// ui
// helpers
-import { DURATION_FILTER_OPTIONS, EDurationFilters } from "@/constants/dashboard";
import { getDurationFilterDropdownLabel } from "@/helpers/dashboard.helper";
// constants
diff --git a/web/core/components/dashboard/widgets/empty-states/assigned-issues.tsx b/web/core/components/dashboard/widgets/empty-states/assigned-issues.tsx
index c9a25cfd39..169547846e 100644
--- a/web/core/components/dashboard/widgets/empty-states/assigned-issues.tsx
+++ b/web/core/components/dashboard/widgets/empty-states/assigned-issues.tsx
@@ -1,10 +1,35 @@
import Image from "next/image";
import { useTheme } from "next-themes";
import { TIssuesListTypes } from "@plane/types";
-// types
-import { ASSIGNED_ISSUES_EMPTY_STATES } from "@/constants/dashboard";
-// constants
+import CompletedIssuesDark from "@/public/empty-state/dashboard/dark/completed-issues.svg";
+import OverdueIssuesDark from "@/public/empty-state/dashboard/dark/overdue-issues.svg";
+import UpcomingIssuesDark from "@/public/empty-state/dashboard/dark/upcoming-issues.svg";
+import CompletedIssuesLight from "@/public/empty-state/dashboard/light/completed-issues.svg";
+import OverdueIssuesLight from "@/public/empty-state/dashboard/light/overdue-issues.svg";
+import UpcomingIssuesLight from "@/public/empty-state/dashboard/light/upcoming-issues.svg";
+export const ASSIGNED_ISSUES_EMPTY_STATES = {
+ pending: {
+ title: "Work items assigned to you that are pending\nwill show up here.",
+ darkImage: UpcomingIssuesDark,
+ lightImage: UpcomingIssuesLight,
+ },
+ upcoming: {
+ title: "Upcoming work items assigned to\nyou will show up here.",
+ darkImage: UpcomingIssuesDark,
+ lightImage: UpcomingIssuesLight,
+ },
+ overdue: {
+ title: "Work items assigned to you that are past\ntheir due date will show up here.",
+ darkImage: OverdueIssuesDark,
+ lightImage: OverdueIssuesLight,
+ },
+ completed: {
+ title: "Work items assigned to you that you have\nmarked Completed will show up here.",
+ darkImage: CompletedIssuesDark,
+ lightImage: CompletedIssuesLight,
+ },
+};
type Props = {
type: TIssuesListTypes;
};
@@ -22,7 +47,7 @@ export const AssignedIssuesEmptyState: React.FC<Props> = (props) => {
return (
<div className="text-center space-y-6 flex flex-col items-center">
<div className="h-24 w-24">
- <Image src={image} className="w-full h-full" alt="Assigned issues" />
+ <Image src={image} className="w-full h-full" alt="Assigned work items" />
</div>
<p className="text-sm font-medium text-custom-text-300 whitespace-pre-line">{typeDetails.title}</p>
</div>
diff --git a/web/core/components/dashboard/widgets/empty-states/created-issues.tsx b/web/core/components/dashboard/widgets/empty-states/created-issues.tsx
index bc812de354..49a96f1fb3 100644
--- a/web/core/components/dashboard/widgets/empty-states/created-issues.tsx
+++ b/web/core/components/dashboard/widgets/empty-states/created-issues.tsx
@@ -1,9 +1,35 @@
import Image from "next/image";
import { useTheme } from "next-themes";
import { TIssuesListTypes } from "@plane/types";
-// types
-import { CREATED_ISSUES_EMPTY_STATES } from "@/constants/dashboard";
-// constants
+import CompletedIssuesDark from "@/public/empty-state/dashboard/dark/completed-issues.svg";
+import OverdueIssuesDark from "@/public/empty-state/dashboard/dark/overdue-issues.svg";
+import UpcomingIssuesDark from "@/public/empty-state/dashboard/dark/upcoming-issues.svg";
+import CompletedIssuesLight from "@/public/empty-state/dashboard/light/completed-issues.svg";
+import OverdueIssuesLight from "@/public/empty-state/dashboard/light/overdue-issues.svg";
+import UpcomingIssuesLight from "@/public/empty-state/dashboard/light/upcoming-issues.svg";
+
+export const CREATED_ISSUES_EMPTY_STATES = {
+ pending: {
+ title: "Work items created by you that are pending\nwill show up here.",
+ darkImage: UpcomingIssuesDark,
+ lightImage: UpcomingIssuesLight,
+ },
+ upcoming: {
+ title: "Upcoming work items you created\nwill show up here.",
+ darkImage: UpcomingIssuesDark,
+ lightImage: UpcomingIssuesLight,
+ },
+ overdue: {
+ title: "Work items created by you that are past their\ndue date will show up here.",
+ darkImage: OverdueIssuesDark,
+ lightImage: OverdueIssuesLight,
+ },
+ completed: {
+ title: "Work items created by you that you have\nmarked completed will show up here.",
+ darkImage: CompletedIssuesDark,
+ lightImage: CompletedIssuesLight,
+ },
+};
type Props = {
type: TIssuesListTypes;
@@ -21,7 +47,7 @@ export const CreatedIssuesEmptyState: React.FC<Props> = (props) => {
return (
<div className="text-center space-y-6 flex flex-col items-center">
<div className="h-24 w-24">
- <Image src={image} className="w-full h-full" alt="Assigned issues" />
+ <Image src={image} className="w-full h-full" alt="Assigned work items" />
</div>
<p className="text-sm font-medium text-custom-text-300 whitespace-pre-line">{typeDetails.title}</p>
</div>
diff --git a/web/core/components/dashboard/widgets/empty-states/issues-by-priority.tsx b/web/core/components/dashboard/widgets/empty-states/issues-by-priority.tsx
index 262c68d699..7f70d3bf30 100644
--- a/web/core/components/dashboard/widgets/empty-states/issues-by-priority.tsx
+++ b/web/core/components/dashboard/widgets/empty-states/issues-by-priority.tsx
@@ -13,10 +13,10 @@ export const IssuesByPriorityEmptyState = () => {
return (
<div className="text-center space-y-6 flex flex-col items-center">
<div className="h-24 w-24">
- <Image src={image} className="w-full h-full" alt="Issues by state group" />
+ <Image src={image} className="w-full h-full" alt="Work items by state group" />
</div>
<p className="text-sm font-medium text-custom-text-300">
- Issues assigned to you, broken down by
+ Work items assigned to you, broken down by
<br />
priority will show up here.
</p>
diff --git a/web/core/components/dashboard/widgets/empty-states/issues-by-state-group.tsx b/web/core/components/dashboard/widgets/empty-states/issues-by-state-group.tsx
index ad7ac82b82..69d4761e5e 100644
--- a/web/core/components/dashboard/widgets/empty-states/issues-by-state-group.tsx
+++ b/web/core/components/dashboard/widgets/empty-states/issues-by-state-group.tsx
@@ -13,10 +13,10 @@ export const IssuesByStateGroupEmptyState = () => {
return (
<div className="text-center space-y-6 flex flex-col items-center">
<div className="h-24 w-24">
- <Image src={image} className="w-full h-full" alt="Issues by state group" />
+ <Image src={image} className="w-full h-full" alt="Work items by state group" />
</div>
<p className="text-sm font-medium text-custom-text-300">
- Issue assigned to you, broken down by state,
+ Work items assigned to you, broken down by state,
<br />
will show up here.
</p>
diff --git a/web/core/components/dashboard/widgets/empty-states/recent-activity.tsx b/web/core/components/dashboard/widgets/empty-states/recent-activity.tsx
index 6daeae5a71..f25f399208 100644
--- a/web/core/components/dashboard/widgets/empty-states/recent-activity.tsx
+++ b/web/core/components/dashboard/widgets/empty-states/recent-activity.tsx
@@ -13,10 +13,10 @@ export const RecentActivityEmptyState = () => {
return (
<div className="text-center space-y-6 flex flex-col items-center">
<div className="h-24 w-24">
- <Image src={image} className="w-full h-full" alt="Issues by state group" />
+ <Image src={image} className="w-full h-full" alt="Work items by state group" />
</div>
<p className="text-sm font-medium text-custom-text-300">
- All your issue activities across
+ All your work items activities across
<br />
projects will show up here.
</p>
diff --git a/web/core/components/dashboard/widgets/issue-panels/issues-list.tsx b/web/core/components/dashboard/widgets/issue-panels/issues-list.tsx
index 2b31d8f27b..925e2ee9af 100644
--- a/web/core/components/dashboard/widgets/issue-panels/issues-list.tsx
+++ b/web/core/components/dashboard/widgets/issue-panels/issues-list.tsx
@@ -83,7 +83,7 @@ export const WidgetIssuesList: React.FC<WidgetIssuesListProps> = (props) => {
"col-span-9": type === "created" && tab === "completed",
})}
>
- Issues
+ Work items
<span className="flex-shrink-0 bg-custom-primary-100/20 text-custom-primary-100 text-xs font-medium rounded-xl px-2 flex items-center text-center justify-center">
{widgetStats.count}
</span>
@@ -126,7 +126,7 @@ export const WidgetIssuesList: React.FC<WidgetIssuesListProps> = (props) => {
"w-min my-3 mx-auto py-1 px-2 text-xs hover:bg-custom-primary-100/20"
)}
>
- View all issues
+ View all work items
</Link>
)}
</>
diff --git a/web/core/components/dashboard/widgets/issue-panels/tabs-list.tsx b/web/core/components/dashboard/widgets/issue-panels/tabs-list.tsx
index d2b7df8ed0..9df044c37b 100644
--- a/web/core/components/dashboard/widgets/issue-panels/tabs-list.tsx
+++ b/web/core/components/dashboard/widgets/issue-panels/tabs-list.tsx
@@ -1,8 +1,8 @@
import { observer } from "mobx-react";
import { Tab } from "@headlessui/react";
-import { TIssuesListTypes } from "@plane/types";
// helpers
-import { EDurationFilters, FILTERED_ISSUES_TABS_LIST, UNFILTERED_ISSUES_TABS_LIST } from "@/constants/dashboard";
+import { EDurationFilters, FILTERED_ISSUES_TABS_LIST, UNFILTERED_ISSUES_TABS_LIST } from "@plane/constants";
+import { TIssuesListTypes } from "@plane/types";
import { cn } from "@/helpers/common.helper";
// types
// constants
diff --git a/web/core/components/dashboard/widgets/issues-by-priority.tsx b/web/core/components/dashboard/widgets/issues-by-priority.tsx
index 9da47bc848..ac67881205 100644
--- a/web/core/components/dashboard/widgets/issues-by-priority.tsx
+++ b/web/core/components/dashboard/widgets/issues-by-priority.tsx
@@ -2,6 +2,7 @@ import { useEffect } from "react";
import { observer } from "mobx-react";
import Link from "next/link";
// types
+import { EDurationFilters } from "@plane/constants";
import { TIssuesByPriorityWidgetFilters, TIssuesByPriorityWidgetResponse } from "@plane/types";
// components
import { Card } from "@plane/ui";
@@ -13,7 +14,6 @@ import {
} from "@/components/dashboard/widgets";
import { IssuesByPriorityGraph } from "@/components/graphs";
// constants
-import { EDurationFilters } from "@/constants/dashboard";
// helpers
import { getCustomDates } from "@/helpers/dashboard.helper";
// hooks
diff --git a/web/core/components/dashboard/widgets/issues-by-state-group.tsx b/web/core/components/dashboard/widgets/issues-by-state-group.tsx
index 53437ca118..fec4204cfc 100644
--- a/web/core/components/dashboard/widgets/issues-by-state-group.tsx
+++ b/web/core/components/dashboard/widgets/issues-by-state-group.tsx
@@ -1,7 +1,9 @@
import { useEffect, useState } from "react";
+import { linearGradientDef } from "@nivo/core";
import { observer } from "mobx-react";
import Link from "next/link";
// types
+import { EDurationFilters, STATE_GROUPS } from "@plane/constants";
import { TIssuesByStateGroupsWidgetFilters, TIssuesByStateGroupsWidgetResponse, TStateGroups } from "@plane/types";
// components
import { Card } from "@plane/ui";
@@ -12,9 +14,6 @@ import {
WidgetProps,
} from "@/components/dashboard/widgets";
import { PieGraph } from "@/components/ui";
-// constants
-import { EDurationFilters, STATE_GROUP_GRAPH_COLORS, STATE_GROUP_GRAPH_GRADIENTS } from "@/constants/dashboard";
-import { STATE_GROUPS } from "@/constants/state";
// helpers
import { getCustomDates } from "@/helpers/dashboard.helper";
// hooks
@@ -23,6 +22,37 @@ import { useAppRouter } from "@/hooks/use-app-router";
const WIDGET_KEY = "issues_by_state_groups";
+export const STATE_GROUP_GRAPH_COLORS: Record<TStateGroups, string> = {
+ backlog: "#CDCED6",
+ unstarted: "#80838D",
+ started: "#FFC53D",
+ completed: "#3E9B4F",
+ cancelled: "#E5484D",
+};
+// colors for work items by state group widget graph arcs
+export const STATE_GROUP_GRAPH_GRADIENTS = [
+ linearGradientDef("gradientBacklog", [
+ { offset: 0, color: "#DEDEDE" },
+ { offset: 100, color: "#BABABE" },
+ ]),
+ linearGradientDef("gradientUnstarted", [
+ { offset: 0, color: "#D4D4D4" },
+ { offset: 100, color: "#878796" },
+ ]),
+ linearGradientDef("gradientStarted", [
+ { offset: 0, color: "#FFD300" },
+ { offset: 100, color: "#FAE270" },
+ ]),
+ linearGradientDef("gradientCompleted", [
+ { offset: 0, color: "#0E8B1B" },
+ { offset: 100, color: "#37CB46" },
+ ]),
+ linearGradientDef("gradientCanceled", [
+ { offset: 0, color: "#C90004" },
+ { offset: 100, color: "#FF7679" },
+ ]),
+];
+
export const IssuesByStateGroupWidget: React.FC<WidgetProps> = observer((props) => {
const { dashboardId, workspaceSlug } = props;
// states
diff --git a/web/core/components/dashboard/widgets/overview-stats.tsx b/web/core/components/dashboard/widgets/overview-stats.tsx
index 6220010277..20421f33b4 100644
--- a/web/core/components/dashboard/widgets/overview-stats.tsx
+++ b/web/core/components/dashboard/widgets/overview-stats.tsx
@@ -30,25 +30,25 @@ export const OverviewStatsWidget: React.FC<WidgetProps> = observer((props) => {
const STATS_LIST = [
{
key: "assigned",
- title: "Issues assigned",
+ title: "Work items assigned",
count: widgetStats?.assigned_issues_count,
link: `/${workspaceSlug}/workspace-views/assigned`,
},
{
key: "overdue",
- title: "Issues overdue",
+ title: "Work items overdue",
count: widgetStats?.pending_issues_count,
link: `/${workspaceSlug}/workspace-views/assigned/?state_group=backlog,unstarted,started&target_date=${today};before`,
},
{
key: "created",
- title: "Issues created",
+ title: "Work items created",
count: widgetStats?.created_issues_count,
link: `/${workspaceSlug}/workspace-views/created`,
},
{
key: "completed",
- title: "Issues completed",
+ title: "Work items completed",
count: widgetStats?.completed_issues_count,
link: `/${workspaceSlug}/workspace-views/assigned?state_group=completed`,
},
diff --git a/web/core/components/dashboard/widgets/recent-activity.tsx b/web/core/components/dashboard/widgets/recent-activity.tsx
index dd21815ccc..84ac985e10 100644
--- a/web/core/components/dashboard/widgets/recent-activity.tsx
+++ b/web/core/components/dashboard/widgets/recent-activity.tsx
@@ -40,7 +40,7 @@ export const RecentActivityWidget: React.FC<WidgetProps> = observer((props) => {
return (
<Card>
<Link href={redirectionLink} className="text-lg font-semibold text-custom-text-300 hover:underline mb-4">
- Your issue activities
+ Your work item activities
</Link>
{widgetStats.length > 0 ? (
<div className="mt-4 space-y-6">
diff --git a/web/core/components/dashboard/widgets/recent-collaborators/collaborators-list.tsx b/web/core/components/dashboard/widgets/recent-collaborators/collaborators-list.tsx
index 2dc1f0d3d9..415809e043 100644
--- a/web/core/components/dashboard/widgets/recent-collaborators/collaborators-list.tsx
+++ b/web/core/components/dashboard/widgets/recent-collaborators/collaborators-list.tsx
@@ -47,7 +47,7 @@ const CollaboratorListItem: React.FC<CollaboratorListItemProps> = observer((prop
{isCurrentUser ? "You" : userDetails?.display_name}
</h6>
<p className="mt-2 text-sm">
- {issueCount} active issue{issueCount > 1 ? "s" : ""}
+ {issueCount} active work items{issueCount > 1 ? "s" : ""}
</p>
</Link>
);
diff --git a/web/core/components/dashboard/widgets/recent-projects.tsx b/web/core/components/dashboard/widgets/recent-projects.tsx
index 6420d48280..3e9c4e257b 100644
--- a/web/core/components/dashboard/widgets/recent-projects.tsx
+++ b/web/core/components/dashboard/widgets/recent-projects.tsx
@@ -5,6 +5,7 @@ import { observer } from "mobx-react";
import Link from "next/link";
import { Plus } from "lucide-react";
// plane types
+import { PROJECT_BACKGROUND_COLORS, EUserPermissions, EUserPermissionsLevel } from "@plane/constants";
import { TRecentProjectsWidgetResponse } from "@plane/types";
// plane ui
import { Avatar, AvatarGroup, Card } from "@plane/ui";
@@ -12,7 +13,6 @@ import { Avatar, AvatarGroup, Card } from "@plane/ui";
import { Logo } from "@/components/common";
import { WidgetLoader, WidgetProps } from "@/components/dashboard/widgets";
// constants
-import { PROJECT_BACKGROUND_COLORS } from "@/constants/dashboard";
// helpers
import { getFileURL } from "@/helpers/file.helper";
// hooks
@@ -25,7 +25,6 @@ import {
useMember,
} from "@/hooks/store";
// plane web constants
-import { EUserPermissions, EUserPermissionsLevel } from "@/plane-web/constants/user-permissions";
const WIDGET_KEY = "recent_projects";
diff --git a/web/core/components/dropdowns/cycle/cycle-options.tsx b/web/core/components/dropdowns/cycle/cycle-options.tsx
index e720fb78c9..69baa558ca 100644
--- a/web/core/components/dropdowns/cycle/cycle-options.tsx
+++ b/web/core/components/dropdowns/cycle/cycle-options.tsx
@@ -8,6 +8,8 @@ import { usePopper } from "react-popper";
// components
import { Check, Search } from "lucide-react";
import { Combobox } from "@headlessui/react";
+// i18n
+import { useTranslation } from "@plane/i18n";
// icon
import { TCycleGroups } from "@plane/types";
// ui
@@ -36,6 +38,8 @@ type CycleOptionsProps = {
export const CycleOptions: FC<CycleOptionsProps> = observer((props) => {
const { projectId, isOpen, referenceElement, placement, canRemoveCycle, currentCycleId } = props;
+ // i18n
+ const { t } = useTranslation();
//state hooks
const [query, setQuery] = useState("");
const [popperElement, setPopperElement] = useState<HTMLDivElement | null>(null);
@@ -103,11 +107,11 @@ export const CycleOptions: FC<CycleOptionsProps> = observer((props) => {
if (canRemoveCycle) {
options?.unshift({
value: null,
- query: "No cycle",
+ query: t("cycle.no_cycle"),
content: (
<div className="flex items-center gap-2">
<ContrastIcon className="h-3 w-3 flex-shrink-0" />
- <span className="flex-grow truncate">No cycle</span>
+ <span className="flex-grow truncate">{t("cycle.no_cycle")}</span>
</div>
),
});
@@ -132,7 +136,7 @@ export const CycleOptions: FC<CycleOptionsProps> = observer((props) => {
className="w-full bg-transparent py-1 text-xs text-custom-text-200 placeholder:text-custom-text-400 focus:outline-none"
value={query}
onChange={(e) => setQuery(e.target.value)}
- placeholder="Search"
+ placeholder={t("common.search.label")}
displayValue={(assigned: any) => assigned?.name}
onKeyDown={searchInputKeyDown}
/>
@@ -159,10 +163,10 @@ export const CycleOptions: FC<CycleOptionsProps> = observer((props) => {
</Combobox.Option>
))
) : (
- <p className="px-1.5 py-1 italic text-custom-text-400">No matches found</p>
+ <p className="px-1.5 py-1 italic text-custom-text-400">{t("common.search.no_matches_found")}</p>
)
) : (
- <p className="px-1.5 py-1 italic text-custom-text-400">Loading...</p>
+ <p className="px-1.5 py-1 italic text-custom-text-400">{t("common.loading")}</p>
)}
</div>
</div>
diff --git a/web/core/components/dropdowns/cycle/index.tsx b/web/core/components/dropdowns/cycle/index.tsx
index 98124a0a19..051c863e8b 100644
--- a/web/core/components/dropdowns/cycle/index.tsx
+++ b/web/core/components/dropdowns/cycle/index.tsx
@@ -3,6 +3,7 @@
import { ReactNode, useRef, useState } from "react";
import { observer } from "mobx-react";
import { ChevronDown } from "lucide-react";
+import { useTranslation } from "@plane/i18n";
// ui
import { ComboDropDown, ContrastIcon } from "@plane/ui";
// helpers
@@ -52,6 +53,8 @@ export const CycleDropdown: React.FC<Props> = observer((props) => {
renderByDefault = true,
currentCycleId,
} = props;
+ // i18n
+ const { t } = useTranslation();
// states
const [isOpen, setIsOpen] = useState(false);
@@ -108,7 +111,7 @@ export const CycleDropdown: React.FC<Props> = observer((props) => {
<DropdownButton
className={buttonClassName}
isActive={isOpen}
- tooltipHeading="Cycle"
+ tooltipHeading={t("common.cycle")}
tooltipContent={selectedName ?? placeholder}
showTooltip={showTooltip}
variant={buttonVariant}
diff --git a/web/core/components/dropdowns/layout.tsx b/web/core/components/dropdowns/layout.tsx
index 9907ab1406..5864f4a293 100644
--- a/web/core/components/dropdowns/layout.tsx
+++ b/web/core/components/dropdowns/layout.tsx
@@ -2,13 +2,15 @@ import { useCallback, useMemo } from "react";
import { observer } from "mobx-react";
import { Check } from "lucide-react";
// plane constants
-import { EIssueLayoutTypes } from "@plane/constants";
+import { EIssueLayoutTypes, ISSUE_LAYOUT_MAP } from "@plane/constants";
+// plane i18n
+import { useTranslation } from "@plane/i18n";
// plane ui
import { Dropdown } from "@plane/ui";
// plane utils
import { cn } from "@plane/utils";
-// constants
-import { ISSUE_LAYOUT_MAP } from "@/constants/issue";
+// components
+import { IssueLayoutIcon } from "@/components/issues";
type TLayoutDropDown = {
onChange: (value: EIssueLayoutTypes) => void;
@@ -18,6 +20,8 @@ type TLayoutDropDown = {
export const LayoutDropDown = observer((props: TLayoutDropDown) => {
const { onChange, value = EIssueLayoutTypes.LIST, disabledLayouts = [] } = props;
+ // plane i18n
+ const { t } = useTranslation();
// derived values
const availableLayouts = useMemo(
() => Object.values(ISSUE_LAYOUT_MAP).filter((layout) => !disabledLayouts.includes(layout.key)),
@@ -35,11 +39,10 @@ export const LayoutDropDown = observer((props: TLayoutDropDown) => {
const buttonContent = useCallback((isOpen: boolean, buttonValue: string | string[] | undefined) => {
const dropdownValue = ISSUE_LAYOUT_MAP[buttonValue as EIssueLayoutTypes];
-
return (
<div className="flex gap-2 items-center text-custom-text-200">
- <dropdownValue.icon strokeWidth={2} className={`size-3.5 text-custom-text-200`} />
- <span className="font-medium text-xs">{dropdownValue.label}</span>
+ <IssueLayoutIcon layout={dropdownValue.key} strokeWidth={2} className={`size-3.5 text-custom-text-200`} />
+ <span className="font-medium text-xs">{t(dropdownValue.i18n_label)}</span>
</div>
);
}, []);
@@ -50,8 +53,8 @@ export const LayoutDropDown = observer((props: TLayoutDropDown) => {
return (
<div className={cn("flex gap-2 items-center text-custom-text-200 w-full justify-between")}>
<div className="flex gap-2 items-center">
- <dropdownValue.icon strokeWidth={2} className={`size-3 text-custom-text-200`} />
- <span className="font-medium text-xs">{dropdownValue.label}</span>
+ <IssueLayoutIcon layout={dropdownValue.key} strokeWidth={2} className={`size-3 text-custom-text-200`} />
+ <span className="font-medium text-xs">{t(dropdownValue.i18n_label)}</span>
</div>
{props.selected && <Check className="h-3.5 w-3.5 flex-shrink-0" />}
</div>
diff --git a/web/core/components/dropdowns/member/member-options.tsx b/web/core/components/dropdowns/member/member-options.tsx
index e5f044d426..085aa8324c 100644
--- a/web/core/components/dropdowns/member/member-options.tsx
+++ b/web/core/components/dropdowns/member/member-options.tsx
@@ -8,6 +8,7 @@ import { createPortal } from "react-dom";
import { usePopper } from "react-popper";
import { Check, Search } from "lucide-react";
import { Combobox } from "@headlessui/react";
+import { EUserPermissions } from "@plane/constants";
import { useTranslation } from "@plane/i18n";
// plane ui
import { Avatar } from "@plane/ui";
@@ -17,7 +18,6 @@ import { getFileURL } from "@/helpers/file.helper";
// hooks
import { useUser, useMember } from "@/hooks/store";
import { usePlatformOS } from "@/hooks/use-platform-os";
-import { EUserPermissions } from "@/plane-web/constants";
interface Props {
memberIds?: string[];
diff --git a/web/core/components/dropdowns/module/index.tsx b/web/core/components/dropdowns/module/index.tsx
index b4f20256be..63d47b72dd 100644
--- a/web/core/components/dropdowns/module/index.tsx
+++ b/web/core/components/dropdowns/module/index.tsx
@@ -3,6 +3,8 @@
import { ReactNode, useEffect, useRef, useState } from "react";
import { observer } from "mobx-react";
import { ChevronDown, X } from "lucide-react";
+// i18n
+import { useTranslation } from "@plane/i18n";
// ui
import { ComboDropDown, DiceIcon, Tooltip } from "@plane/ui";
// helpers
@@ -185,6 +187,8 @@ export const ModuleDropdown: React.FC<Props> = observer((props) => {
value,
renderByDefault = true,
} = props;
+ // i18n
+ const { t } = useTranslation();
// states
const [isOpen, setIsOpen] = useState(false);
// refs
@@ -256,7 +260,7 @@ export const ModuleDropdown: React.FC<Props> = observer((props) => {
<DropdownButton
className={buttonClassName}
isActive={isOpen}
- tooltipHeading="Module"
+ tooltipHeading={t("common.module")}
tooltipContent={
Array.isArray(value)
? `${value
diff --git a/web/core/components/dropdowns/module/module-options.tsx b/web/core/components/dropdowns/module/module-options.tsx
index 2d8d55d28a..d2d3f909d2 100644
--- a/web/core/components/dropdowns/module/module-options.tsx
+++ b/web/core/components/dropdowns/module/module-options.tsx
@@ -7,6 +7,8 @@ import { useParams } from "next/navigation";
import { usePopper } from "react-popper";
import { Check, Search } from "lucide-react";
import { Combobox } from "@headlessui/react";
+// i18n
+import { useTranslation } from "@plane/i18n";
//components
import { DiceIcon } from "@plane/ui";
//store
@@ -35,6 +37,8 @@ interface Props {
export const ModuleOptions = observer((props: Props) => {
const { projectId, isOpen, referenceElement, placement, multiple } = props;
+ // i18n
+ const { t } = useTranslation();
// states
const [query, setQuery] = useState("");
const [popperElement, setPopperElement] = useState<HTMLDivElement | null>(null);
@@ -97,11 +101,11 @@ export const ModuleOptions = observer((props: Props) => {
if (!multiple)
options?.unshift({
value: null,
- query: "No module",
+ query: t("module.no_module"),
content: (
<div className="flex items-center gap-2">
<DiceIcon className="h-3 w-3 flex-shrink-0" />
- <span className="flex-grow truncate">No module</span>
+ <span className="flex-grow truncate">{t("module.no_module")}</span>
</div>
),
});
@@ -125,7 +129,7 @@ export const ModuleOptions = observer((props: Props) => {
className="w-full bg-transparent py-1 text-xs text-custom-text-200 placeholder:text-custom-text-400 focus:outline-none"
value={query}
onChange={(e) => setQuery(e.target.value)}
- placeholder="Search"
+ placeholder={t("common.search.label")}
displayValue={(assigned: any) => assigned?.name}
onKeyDown={searchInputKeyDown}
/>
@@ -157,10 +161,10 @@ export const ModuleOptions = observer((props: Props) => {
</Combobox.Option>
))
) : (
- <p className="px-1.5 py-1 italic text-custom-text-400">No matching results</p>
+ <p className="px-1.5 py-1 italic text-custom-text-400">{t("common.search.no_matching_results")}</p>
)
) : (
- <p className="px-1.5 py-1 italic text-custom-text-400">Loading...</p>
+ <p className="px-1.5 py-1 italic text-custom-text-400">{t("common.loading")}</p>
)}
</div>
</div>
diff --git a/web/core/components/dropdowns/priority.tsx b/web/core/components/dropdowns/priority.tsx
index acf6dc26b1..4009405571 100644
--- a/web/core/components/dropdowns/priority.tsx
+++ b/web/core/components/dropdowns/priority.tsx
@@ -5,13 +5,12 @@ import { useTheme } from "next-themes";
import { usePopper } from "react-popper";
import { Check, ChevronDown, Search, SignalHigh } from "lucide-react";
import { Combobox } from "@headlessui/react";
+import { ISSUE_PRIORITIES } from "@plane/constants";
import { useTranslation } from "@plane/i18n";
// types
import { TIssuePriorities } from "@plane/types";
// ui
import { ComboDropDown, PriorityIcon, Tooltip } from "@plane/ui";
-// constants
-import { ISSUE_PRIORITIES } from "@/constants/issue";
// helpers
import { cn } from "@/helpers/common.helper";
// hooks
@@ -77,7 +76,7 @@ const BorderButton = (props: ButtonProps) => {
return (
<Tooltip
tooltipHeading={t("priority")}
- tooltipContent={t(priorityDetails?.key ?? "none")}
+ tooltipContent={priorityDetails?.title ?? t("common.none")}
disabled={!showTooltip}
isMobile={isMobile}
renderByDefault={renderToolTipByDefault}
@@ -121,7 +120,7 @@ const BorderButton = (props: ButtonProps) => {
) : (
<SignalHigh className="size-3" />
))}
- {!hideText && <span className="flex-grow truncate">{t(priorityDetails?.key ?? "priority") ?? placeholder}</span>}
+ {!hideText && <span className="flex-grow truncate">{priorityDetails?.title ?? placeholder}</span>}
{dropdownArrow && (
<ChevronDown className={cn("h-2.5 w-2.5 flex-shrink-0", dropdownArrowClassName)} aria-hidden="true" />
)}
@@ -204,7 +203,9 @@ const BackgroundButton = (props: ButtonProps) => {
) : (
<SignalHigh className="size-3" />
))}
- {!hideText && <span className="flex-grow truncate">{t(priorityDetails?.key ?? "priority") ?? placeholder}</span>}
+ {!hideText && (
+ <span className="flex-grow truncate">{priorityDetails?.title ?? t("common.priority") ?? placeholder}</span>
+ )}
{dropdownArrow && (
<ChevronDown className={cn("h-2.5 w-2.5 flex-shrink-0", dropdownArrowClassName)} aria-hidden="true" />
)}
@@ -244,7 +245,7 @@ const TransparentButton = (props: ButtonProps) => {
return (
<Tooltip
tooltipHeading={t("priority")}
- tooltipContent={t(priorityDetails?.key ?? "none")}
+ tooltipContent={priorityDetails?.title ?? t("common.none")}
disabled={!showTooltip}
isMobile={isMobile}
renderByDefault={renderToolTipByDefault}
@@ -289,7 +290,9 @@ const TransparentButton = (props: ButtonProps) => {
) : (
<SignalHigh className="size-3" />
))}
- {!hideText && <span className="flex-grow truncate">{t(priorityDetails?.key ?? "priority") ?? placeholder}</span>}
+ {!hideText && (
+ <span className="flex-grow truncate">{priorityDetails?.title ?? t("common.priority") ?? placeholder}</span>
+ )}
{dropdownArrow && (
<ChevronDown className={cn("h-2.5 w-2.5 flex-shrink-0", dropdownArrowClassName)} aria-hidden="true" />
)}
@@ -299,6 +302,8 @@ const TransparentButton = (props: ButtonProps) => {
};
export const PriorityDropdown: React.FC<Props> = (props) => {
+ //hooks
+ const { t } = useTranslation();
const {
button,
buttonClassName,
@@ -312,7 +317,7 @@ export const PriorityDropdown: React.FC<Props> = (props) => {
highlightUrgent = true,
onChange,
onClose,
- placeholder = "Priority",
+ placeholder = t("common.priority"),
placement,
showTooltip = false,
tabIndex,
@@ -340,8 +345,7 @@ export const PriorityDropdown: React.FC<Props> = (props) => {
},
],
});
- //hooks
- const { t } = useTranslation();
+
// next-themes
// TODO: remove this after new theming implementation
const { resolvedTheme } = useTheme();
@@ -352,7 +356,7 @@ export const PriorityDropdown: React.FC<Props> = (props) => {
content: (
<div className="flex items-center gap-2">
<PriorityIcon priority={priority.key} size={14} withContainer />
- <span className="flex-grow truncate">{t(priority.key)}</span>
+ <span className="flex-grow truncate">{priority.title}</span>
</div>
),
}));
diff --git a/web/core/components/dropdowns/state.tsx b/web/core/components/dropdowns/state.tsx
index 59178c1496..566d89fc36 100644
--- a/web/core/components/dropdowns/state.tsx
+++ b/web/core/components/dropdowns/state.tsx
@@ -222,7 +222,7 @@ export const StateDropdown: React.FC<Props> = observer((props) => {
className="w-full bg-transparent py-1 text-xs text-custom-text-200 placeholder:text-custom-text-400 focus:outline-none"
value={query}
onChange={(e) => setQuery(e.target.value)}
- placeholder="Search"
+ placeholder={t("common.search.label")}
displayValue={(assigned: any) => assigned?.name}
onKeyDown={searchInputKeyDown}
/>
diff --git a/web/core/components/editor/embeds/mentions/user.tsx b/web/core/components/editor/embeds/mentions/user.tsx
index 76b8a0f496..a8e4a4b0b2 100644
--- a/web/core/components/editor/embeds/mentions/user.tsx
+++ b/web/core/components/editor/embeds/mentions/user.tsx
@@ -3,10 +3,11 @@ import { observer } from "mobx-react";
import Link from "next/link";
import { useParams } from "next/navigation";
import { usePopper } from "react-popper";
+// plane imports
+import { ROLE } from "@plane/constants";
// plane ui
import { Avatar } from "@plane/ui";
// constants
-import { ROLE } from "@/constants/workspace";
// helpers
import { cn } from "@/helpers/common.helper";
import { getFileURL } from "@/helpers/file.helper";
diff --git a/web/core/components/editor/lite-text-editor/lite-text-editor.tsx b/web/core/components/editor/lite-text-editor/lite-text-editor.tsx
index afaff3d7ea..82cbd12257 100644
--- a/web/core/components/editor/lite-text-editor/lite-text-editor.tsx
+++ b/web/core/components/editor/lite-text-editor/lite-text-editor.tsx
@@ -3,6 +3,8 @@ import React, { useState } from "react";
import { EIssueCommentAccessSpecifier } from "@plane/constants";
// plane editor
import { EditorRefApi, ILiteTextEditor, LiteTextEditorWithRef } from "@plane/editor";
+// i18n
+import { useTranslation } from "@plane/i18n";
// components
import { EditorMentionsRoot, IssueCommentToolbar } from "@/components/editor";
// helpers
@@ -34,6 +36,7 @@ interface LiteTextEditorWrapperProps
}
export const LiteTextEditor = React.forwardRef<EditorRefApi, LiteTextEditorWrapperProps>((props, ref) => {
+ const { t } = useTranslation();
const {
containerClassName,
workspaceSlug,
@@ -46,7 +49,7 @@ export const LiteTextEditor = React.forwardRef<EditorRefApi, LiteTextEditorWrapp
showSubmitButton = true,
isSubmitting = false,
showToolbarInitially = true,
- placeholder = "Add comment...",
+ placeholder = t("issue.comments.placeholder"),
uploadFile,
...rest
} = props;
diff --git a/web/core/components/editor/lite-text-editor/toolbar.tsx b/web/core/components/editor/lite-text-editor/toolbar.tsx
index de56890aca..818e35fae2 100644
--- a/web/core/components/editor/lite-text-editor/toolbar.tsx
+++ b/web/core/components/editor/lite-text-editor/toolbar.tsx
@@ -5,6 +5,8 @@ import { Globe2, Lock, LucideIcon } from "lucide-react";
import { EIssueCommentAccessSpecifier } from "@plane/constants";
// editor
import { EditorRefApi } from "@plane/editor";
+// i18n
+import { useTranslation } from "@plane/i18n";
// ui
import { Button, Tooltip } from "@plane/ui";
// constants
@@ -46,6 +48,7 @@ const COMMENT_ACCESS_SPECIFIERS: TCommentAccessType[] = [
const toolbarItems = TOOLBAR_ITEMS.lite;
export const IssueCommentToolbar: React.FC<Props> = (props) => {
+ const { t } = useTranslation();
const {
accessSpecifier,
executeCommand,
@@ -171,7 +174,7 @@ export const IssueCommentToolbar: React.FC<Props> = (props) => {
disabled={isSubmitButtonDisabled}
loading={isSubmitting}
>
- Comment
+ {t("common.comment")}
</Button>
</div>
)}
diff --git a/web/core/components/empty-state/empty-state.tsx b/web/core/components/empty-state/empty-state.tsx
deleted file mode 100644
index faab4ebc29..0000000000
--- a/web/core/components/empty-state/empty-state.tsx
+++ /dev/null
@@ -1,194 +0,0 @@
-"use client";
-
-import React from "react";
-import { observer } from "mobx-react";
-import Image from "next/image";
-import Link from "next/link";
-
-import { useTheme } from "next-themes";
-// hooks
-// components
-import { Button, TButtonSizes, TButtonVariant } from "@plane/ui";
-// constant
-import { EMPTY_STATE_DETAILS, EmptyStateType } from "@/constants/empty-state";
-// helpers
-import { cn } from "@/helpers/common.helper";
-import { useUserPermissions } from "@/hooks/store";
-import { EUserPermissionsLevel } from "@/plane-web/constants/user-permissions";
-import { ComicBoxButton } from "./comic-box-button";
-
-export type EmptyStateProps = {
- size?: TButtonSizes;
- type: EmptyStateType;
- layout?: "screen-detailed" | "screen-simple";
- additionalPath?: string;
- primaryButtonConfig?: {
- size?: TButtonSizes;
- variant?: TButtonVariant;
- };
- primaryButtonOnClick?: () => void;
- primaryButtonLink?: string;
- secondaryButtonOnClick?: () => void;
-};
-
-export const EmptyState: React.FC<EmptyStateProps> = observer((props) => {
- const {
- size = "lg",
- type,
- layout = "screen-detailed",
- additionalPath = "",
- primaryButtonConfig = {
- size: "lg",
- variant: "primary",
- },
- primaryButtonOnClick,
- primaryButtonLink,
- secondaryButtonOnClick,
- } = props;
- // store
- const { allowPermissions } = useUserPermissions();
- // theme
- const { resolvedTheme } = useTheme();
-
- // if empty state type is not found
- if (!EMPTY_STATE_DETAILS[type]) return null;
-
- // current empty state details
- const { key, title, description, path, primaryButton, secondaryButton, accessType, access } =
- EMPTY_STATE_DETAILS[type];
- // resolved empty state path
- const resolvedEmptyStatePath = `${additionalPath && additionalPath !== "" ? `${path}${additionalPath}` : path}-${
- resolvedTheme === "light" ? "light" : "dark"
- }.webp`;
- // permission
- const isEditingAllowed =
- access &&
- accessType &&
- allowPermissions(
- access,
- accessType === "workspace" ? EUserPermissionsLevel.WORKSPACE : EUserPermissionsLevel.PROJECT
- );
- const anyButton = primaryButton || secondaryButton;
-
- // primary button
- const renderPrimaryButton = () => {
- if (!primaryButton) return null;
-
- const commonProps = {
- size: primaryButtonConfig.size,
- variant: primaryButtonConfig.variant,
- prependIcon: primaryButton.icon,
- onClick: primaryButtonOnClick ? primaryButtonOnClick : undefined,
- disabled: !isEditingAllowed,
- };
-
- if (primaryButton.comicBox) {
- return (
- <ComicBoxButton
- label={primaryButton.text}
- icon={primaryButton.icon}
- title={primaryButton.comicBox?.title}
- description={primaryButton.comicBox?.description}
- onClick={primaryButtonOnClick}
- disabled={!isEditingAllowed}
- />
- );
- } else if (primaryButtonLink) {
- return (
- <Link href={primaryButtonLink}>
- <Button {...commonProps}>{primaryButton.text}</Button>
- </Link>
- );
- } else {
- return <Button {...commonProps}>{primaryButton.text}</Button>;
- }
- };
- // secondary button
- const renderSecondaryButton = () => {
- if (!secondaryButton) return null;
-
- return (
- <Button
- size={size}
- variant="neutral-primary"
- prependIcon={secondaryButton.icon}
- onClick={secondaryButtonOnClick}
- disabled={!isEditingAllowed}
- >
- {secondaryButton.text}
- </Button>
- );
- };
-
- return (
- <>
- {layout === "screen-detailed" && (
- <div className="flex items-center justify-center min-h-full min-w-full overflow-y-auto py-10 md:px-20 px-5">
- <div
- className={cn("flex flex-col gap-5", {
- "md:min-w-[24rem] max-w-[45rem]": size === "sm",
- "md:min-w-[30rem] max-w-[60rem]": size === "lg",
- })}
- >
- <div className="flex flex-col gap-1.5 flex-shrink">
- {description ? (
- <>
- <h3 className="text-xl font-semibold">{title}</h3>
- <p className="text-sm">{description}</p>
- </>
- ) : (
- <h3 className="text-xl font-medium">{title}</h3>
- )}
- </div>
-
- {path && (
- <Image
- src={resolvedEmptyStatePath}
- alt={key || "button image"}
- width={384}
- height={250}
- layout="responsive"
- lazyBoundary="100%"
- />
- )}
-
- {anyButton && (
- <div className="relative flex items-center justify-center gap-2 flex-shrink-0 w-full">
- {renderPrimaryButton()}
- {renderSecondaryButton()}
- </div>
- )}
- </div>
- </div>
- )}
- {layout === "screen-simple" && (
- <div className="text-center flex flex-col gap-2.5 items-center">
- <div className={`${size === "sm" ? "h-24 w-24" : "h-28 w-28"}`}>
- <Image
- src={resolvedEmptyStatePath}
- alt={key || "button image"}
- width={size === "sm" ? 78 : 96}
- height={size === "sm" ? 78 : 96}
- layout="responsive"
- lazyBoundary="100%"
- />
- </div>
- {description ? (
- <>
- <h3 className="text-lg font-medium text-custom-text-300 whitespace-pre-line">{title}</h3>
- <p className="text-base font-medium text-custom-text-400 whitespace-pre-line">{description}</p>
- </>
- ) : (
- <h3 className="text-sm font-medium text-custom-text-400 whitespace-pre-line">{title}</h3>
- )}
- {anyButton && (
- <div className="relative flex items-center justify-center gap-2 flex-shrink-0 w-full">
- {renderPrimaryButton()}
- {renderSecondaryButton()}
- </div>
- )}
- </div>
- )}
- </>
- );
-});
diff --git a/web/core/components/empty-state/index.ts b/web/core/components/empty-state/index.ts
index afa892f271..3ba1c3ad30 100644
--- a/web/core/components/empty-state/index.ts
+++ b/web/core/components/empty-state/index.ts
@@ -1,4 +1,3 @@
-export * from "./empty-state";
export * from "./helper";
export * from "./comic-box-button";
export * from "./detailed-empty-state-root";
diff --git a/web/core/components/empty-state/simple-empty-state-root.tsx b/web/core/components/empty-state/simple-empty-state-root.tsx
index d0ab95076a..ce00a143f9 100644
--- a/web/core/components/empty-state/simple-empty-state-root.tsx
+++ b/web/core/components/empty-state/simple-empty-state-root.tsx
@@ -6,7 +6,7 @@ import Image from "next/image";
// utils
import { cn } from "@plane/utils";
-type EmptyStateSize = "sm" | "md" | "lg";
+type EmptyStateSize = "sm" | "lg";
type Props = {
title: string;
@@ -17,12 +17,8 @@ type Props = {
const sizeConfig = {
sm: {
- container: "size-20",
- dimensions: 78,
- },
- md: {
container: "size-24",
- dimensions: 80,
+ dimensions: 78,
},
lg: {
container: "size-28",
diff --git a/web/core/components/estimates/delete/modal.tsx b/web/core/components/estimates/delete/modal.tsx
index 5ad704249f..0ab68d8ce3 100644
--- a/web/core/components/estimates/delete/modal.tsx
+++ b/web/core/components/estimates/delete/modal.tsx
@@ -63,8 +63,8 @@ export const DeleteEstimateModal: FC<TDeleteEstimateModal> = observer((props) =>
<div className="px-5">
<div className="text-base text-custom-text-200">
Deleting the estimate <span className="font-bold text-custom-text-100">{estimate?.name}</span>
- &nbsp;system will remove it from all issues permanently. This action cannot be undone. If you add estimates
- again, you will need to update all the issues.
+ &nbsp;system will remove it from all work items permanently. This action cannot be undone. If you add
+ estimates again, you will need to update all the work items.
</div>
</div>
diff --git a/web/core/components/estimates/empty-screen.tsx b/web/core/components/estimates/empty-screen.tsx
index e3e59a477e..0155e25196 100644
--- a/web/core/components/estimates/empty-screen.tsx
+++ b/web/core/components/estimates/empty-screen.tsx
@@ -3,6 +3,7 @@
import { FC } from "react";
import Image from "next/image";
import { useTheme } from "next-themes";
+import { useTranslation } from "@plane/i18n";
import { Button } from "@plane/ui";
// public images
import EstimateEmptyDarkImage from "@/public/empty-state/estimates/dark.svg";
@@ -17,6 +18,8 @@ export const EstimateEmptyScreen: FC<TEstimateEmptyScreen> = (props) => {
const { onButtonClick } = props;
const { resolvedTheme } = useTheme();
+ const { t } = useTranslation();
+
const emptyScreenImage = resolvedTheme === "light" ? EstimateEmptyLightImage : EstimateEmptyDarkImage;
return (
@@ -31,13 +34,13 @@ export const EstimateEmptyScreen: FC<TEstimateEmptyScreen> = (props) => {
/>
</div>
<div className="space-y-1.5">
- <h3 className="text-xl font-semibold text-custom-text-100">No estimate systems yet</h3>
- <p className="text-sm text-custom-text-300">
- Create a set of estimates to communicate the amount of work per issue.
- </p>
+ <h3 className="text-xl font-semibold text-custom-text-100">
+ {t("project_settings.empty_state.estimates.title")}
+ </h3>
+ <p className="text-sm text-custom-text-300">{t("project_settings.empty_state.estimates.description")}</p>
</div>
<div>
- <Button onClick={onButtonClick}>Add estimate system</Button>
+ <Button onClick={onButtonClick}>{t("project_settings.empty_state.estimates.primary_button")}</Button>
</div>
</div>
);
diff --git a/web/core/components/estimates/root.tsx b/web/core/components/estimates/root.tsx
index 873ed41008..56a8f5efa8 100644
--- a/web/core/components/estimates/root.tsx
+++ b/web/core/components/estimates/root.tsx
@@ -2,6 +2,7 @@ import { FC, useState } from "react";
import { observer } from "mobx-react";
import useSWR from "swr";
// components
+import { useTranslation } from "@plane/i18n";
import {
EstimateLoaderScreen,
EstimateEmptyScreen,
@@ -31,6 +32,8 @@ export const EstimateRoot: FC<TEstimateRoot> = observer((props) => {
const [estimateToUpdate, setEstimateToUpdate] = useState<string | undefined>();
const [estimateToDelete, setEstimateToDelete] = useState<string | undefined>();
+ const { t } = useTranslation();
+
const { isLoading: isSWRLoading } = useSWR(
workspaceSlug && projectId ? `PROJECT_ESTIMATES_${workspaceSlug}_${projectId}` : null,
async () => workspaceSlug && projectId && getProjectEstimates(workspaceSlug, projectId)
@@ -44,7 +47,7 @@ export const EstimateRoot: FC<TEstimateRoot> = observer((props) => {
<div className="space-y-2">
{/* header */}
<div className="flex flex-col items-start border-b border-custom-border-100 pb-3.5">
- <h3 className="text-xl font-medium leading-normal">Estimates</h3>
+ <h3 className="text-xl font-medium leading-normal">{t("common.estimates")}</h3>
</div>
{/* current active estimate section */}
@@ -53,10 +56,8 @@ export const EstimateRoot: FC<TEstimateRoot> = observer((props) => {
{/* estimates activated deactivated section */}
<div className="relative border-b border-custom-border-200 pb-4 flex justify-between items-center gap-3">
<div className="space-y-1">
- <h3 className="text-lg font-medium text-custom-text-100">Enable estimates for my project</h3>
- <p className="text-sm text-custom-text-200">
- They help you in communicating complexity and workload of the team.
- </p>
+ <h3 className="text-lg font-medium text-custom-text-100">{t("project_settings.estimates.title")}</h3>
+ <p className="text-sm text-custom-text-200">{t("project_settings.estimates.description")}</p>
</div>
<EstimateDisableSwitch workspaceSlug={workspaceSlug} projectId={projectId} isAdmin={isAdmin} />
</div>
diff --git a/web/core/components/exporter/export-modal.tsx b/web/core/components/exporter/export-modal.tsx
index 0c3d6cf0ba..05519d377d 100644
--- a/web/core/components/exporter/export-modal.tsx
+++ b/web/core/components/exporter/export-modal.tsx
@@ -6,6 +6,7 @@ import { observer } from "mobx-react";
import { useParams } from "next/navigation";
import { Dialog, Transition } from "@headlessui/react";
// types
+import { useTranslation } from "@plane/i18n";
import { IUser, IImporterService } from "@plane/types";
// ui
import { Button, CustomSearchSelect, TOAST_TYPE, setToast } from "@plane/ui";
@@ -36,6 +37,7 @@ export const Exporter: React.FC<Props> = observer((props) => {
// store hooks
const { workspaceProjectIds, getProjectById } = useProject();
const { projectsWithCreatePermissions } = useUser();
+ const { t } = useTranslation();
const wsProjectIdsWithCreatePermisisons = projectsWithCreatePermissions
? intersection(workspaceProjectIds, Object.keys(projectsWithCreatePermissions))
@@ -77,18 +79,18 @@ export const Exporter: React.FC<Props> = observer((props) => {
setExportLoading(false);
setToast({
type: TOAST_TYPE.SUCCESS,
- title: "Export Successful",
- message: `You will be able to download the exported ${
- provider === "csv" ? "CSV" : provider === "xlsx" ? "Excel" : provider === "json" ? "JSON" : ""
- } from the previous export.`,
+ title: t("workspace_settings.settings.exports.modal.toasts.success.title"),
+ message: t("workspace_settings.settings.exports.modal.toasts.success.message", {
+ entity: provider === "csv" ? "CSV" : provider === "xlsx" ? "Excel" : provider === "json" ? "JSON" : "",
+ }),
});
})
.catch(() => {
setExportLoading(false);
setToast({
type: TOAST_TYPE.ERROR,
- title: "Error!",
- message: "Export was unsuccessful. Please try again.",
+ title: t("error"),
+ message: t("workspace_settings.settings.exports.modal.toasts.error.message"),
});
});
}
@@ -131,7 +133,7 @@ export const Exporter: React.FC<Props> = observer((props) => {
<div className="flex w-full items-center justify-start gap-6">
<span className="flex items-center justify-start">
<h3 className="text-xl font-medium 2xl:text-2xl">
- Export to{" "}
+ {t("workspace_settings.settings.exports.modal.title")}{" "}
{provider === "csv" ? "CSV" : provider === "xlsx" ? "Excel" : provider === "json" ? "JSON" : ""}
</h3>
</span>
@@ -165,11 +167,13 @@ export const Exporter: React.FC<Props> = observer((props) => {
className="flex max-w-min cursor-pointer items-center gap-2"
>
<input type="checkbox" checked={multiple} onChange={() => setMultiple(!multiple)} />
- <div className="whitespace-nowrap text-sm">Export the data into separate files</div>
+ <div className="whitespace-nowrap text-sm">
+ {t("workspace_settings.settings.exports.export_separate_files")}
+ </div>
</div>
<div className="flex justify-end gap-2">
<Button variant="neutral-primary" size="sm" onClick={handleClose}>
- Cancel
+ {t("cancel")}
</Button>
<Button
variant="primary"
@@ -178,7 +182,9 @@ export const Exporter: React.FC<Props> = observer((props) => {
disabled={exportLoading}
loading={exportLoading}
>
- {exportLoading ? "Exporting..." : "Export"}
+ {exportLoading
+ ? `${t("workspace_settings.settings.exports.exporting")}...`
+ : t("workspace_settings.settings.exports.title")}
</Button>
</div>
</div>
diff --git a/web/core/components/exporter/guide.tsx b/web/core/components/exporter/guide.tsx
index 7ee2899956..1dfd900107 100644
--- a/web/core/components/exporter/guide.tsx
+++ b/web/core/components/exporter/guide.tsx
@@ -8,25 +8,44 @@ import { useParams, useSearchParams } from "next/navigation";
import useSWR, { mutate } from "swr";
// icons
import { MoveLeft, MoveRight, RefreshCw } from "lucide-react";
-// ui
+// plane imports
+import { EXPORTERS_LIST, EUserPermissions, EUserPermissionsLevel } from "@plane/constants";
+import { useTranslation } from "@plane/i18n";
import { Button } from "@plane/ui";
// components
-import { EmptyState } from "@/components/empty-state";
+import { DetailedEmptyState } from "@/components/empty-state";
import { Exporter, SingleExport } from "@/components/exporter";
import { ImportExportSettingsLoader } from "@/components/ui";
// constants
-import { EmptyStateType } from "@/constants/empty-state";
import { EXPORT_SERVICES_LIST } from "@/constants/fetch-keys";
-import { EXPORTERS_LIST } from "@/constants/workspace";
// hooks
import { useProject, useUser, useUserPermissions } from "@/hooks/store";
import { useAppRouter } from "@/hooks/use-app-router";
-import { EUserPermissions, EUserPermissionsLevel } from "@/plane-web/constants/user-permissions";
+import { useResolvedAssetPath } from "@/hooks/use-resolved-asset-path";
+// services images
+import CSVLogo from "@/public/services/csv.svg";
+import ExcelLogo from "@/public/services/excel.svg";
+import JSONLogo from "@/public/services/json.svg";
// services
import { IntegrationService } from "@/services/integrations";
const integrationService = new IntegrationService();
+const getExporterLogo = (provider: string) => {
+ switch (provider) {
+ case "csv":
+ return CSVLogo;
+ case "excel":
+ return ExcelLogo;
+ case "xlsx":
+ return ExcelLogo;
+ case "json":
+ return JSONLogo;
+ default:
+ return "";
+ }
+};
+
const IntegrationGuide = observer(() => {
// states
const [refreshing, setRefreshing] = useState(false);
@@ -37,11 +56,14 @@ const IntegrationGuide = observer(() => {
const { workspaceSlug } = useParams();
const searchParams = useSearchParams();
const provider = searchParams.get("provider");
+ // plane hooks
+ const { t } = useTranslation();
// store hooks
const { data: currentUser, canPerformAnyCreateAction } = useUser();
const { allowPermissions } = useUserPermissions();
-
const { workspaceProjectIds } = useProject();
+ // derived values
+ const resolvedPath = useResolvedAssetPath({ basePath: "/empty-state/workspace-settings/exports" });
const { data: exporterServices } = useSWR(
workspaceSlug && cursor ? EXPORT_SERVICES_LIST(workspaceSlug as string, cursor, `${per_page}`) : null,
@@ -87,11 +109,16 @@ const IntegrationGuide = observer(() => {
<div className="flex w-full items-start justify-between gap-4">
<div className="item-center flex gap-2.5">
<div className="relative h-10 w-10 flex-shrink-0">
- <Image src={service.logo} layout="fill" objectFit="cover" alt={`${service.title} Logo`} />
+ <Image
+ src={getExporterLogo(service?.provider)}
+ layout="fill"
+ objectFit="cover"
+ alt={`${t(service.i18n_title)} Logo`}
+ />
</div>
<div>
- <h3 className="flex items-center gap-4 text-sm font-medium">{service.title}</h3>
- <p className="text-sm tracking-tight text-custom-text-200">{service.description}</p>
+ <h3 className="flex items-center gap-4 text-sm font-medium">{t(service.i18n_title)}</h3>
+ <p className="text-sm tracking-tight text-custom-text-200">{t(service.i18n_description)}</p>
</div>
</div>
<div className="flex-shrink-0">
@@ -102,7 +129,7 @@ const IntegrationGuide = observer(() => {
className="capitalize"
disabled={!isAdmin && (!hasProjects || !canPerformAnyCreateAction)}
>
- {service.type}
+ {t(service.type)}
</Button>
</span>
</Link>
@@ -114,7 +141,9 @@ const IntegrationGuide = observer(() => {
<div>
<div className="flex items-center justify-between border-b border-custom-border-100 pb-3.5 pt-7">
<div className="flex items-center gap-2">
- <h3 className="flex gap-2 text-xl font-medium">Previous exports</h3>
+ <h3 className="flex gap-2 text-xl font-medium">
+ {t("workspace_settings.settings.exports.previous_exports")}
+ </h3>
<button
type="button"
@@ -122,7 +151,7 @@ const IntegrationGuide = observer(() => {
onClick={handleRefresh}
>
<RefreshCw className={`h-3 w-3 ${refreshing ? "animate-spin" : ""}`} />{" "}
- {refreshing ? "Refreshing..." : "Refresh status"}
+ {refreshing ? `${t("refreshing")}...` : t("refresh_status")}
</button>
</div>
<div className="flex items-center gap-2 text-xs">
@@ -136,7 +165,7 @@ const IntegrationGuide = observer(() => {
}`}
>
<MoveLeft className="h-4 w-4" />
- <div className="pr-1">Prev</div>
+ <div className="pr-1">{t("prev")}</div>
</button>
<button
disabled={!exporterServices?.next_page_results}
@@ -147,7 +176,7 @@ const IntegrationGuide = observer(() => {
: "cursor-not-allowed opacity-75"
}`}
>
- <div className="pl-1">Next</div>
+ <div className="pl-1">{t("next")}</div>
<MoveRight className="h-4 w-4" />
</button>
</div>
@@ -164,7 +193,11 @@ const IntegrationGuide = observer(() => {
</div>
) : (
<div className="flex h-full w-full items-center justify-center">
- <EmptyState type={EmptyStateType.WORKSPACE_SETTINGS_EXPORT} size="sm" />
+ <DetailedEmptyState
+ title={t("workspace_settings.empty_state.exports.title")}
+ description={t("workspace_settings.empty_state.exports.description")}
+ assetPath={resolvedPath}
+ />
</div>
)
) : (
diff --git a/web/core/components/gantt-chart/chart/header.tsx b/web/core/components/gantt-chart/chart/header.tsx
index 5a8f4bb65a..7eb858be35 100644
--- a/web/core/components/gantt-chart/chart/header.tsx
+++ b/web/core/components/gantt-chart/chart/header.tsx
@@ -1,5 +1,6 @@
import { observer } from "mobx-react";
import { Expand, Shrink } from "lucide-react";
+import { useTranslation } from "@plane/i18n";
// plane
import { Row } from "@plane/ui";
// components
@@ -23,6 +24,7 @@ type Props = {
};
export const GanttChartHeader: React.FC<Props> = observer((props) => {
+ const { t } = useTranslation();
const { blockIds, fullScreenMode, handleChartView, handleToday, loaderTitle, toggleFullScreenMode, showToday } =
props;
// chart hook
@@ -35,7 +37,7 @@ export const GanttChartHeader: React.FC<Props> = observer((props) => {
>
<div className="ml-auto">
<div className="ml-auto text-sm font-medium">
- {blockIds ? `${blockIds.length} ${loaderTitle}` : "Loading..."}
+ {blockIds ? `${blockIds.length} ${loaderTitle}` : t("common.loading")}
</div>
</div>
@@ -49,7 +51,7 @@ export const GanttChartHeader: React.FC<Props> = observer((props) => {
})}
onClick={() => handleChartView(chartView?.key)}
>
- {chartView?.title}
+ {t(chartView?.i18n_title)}
</div>
))}
</div>
@@ -60,7 +62,7 @@ export const GanttChartHeader: React.FC<Props> = observer((props) => {
className="rounded-sm p-1 px-2 text-xs hover:bg-custom-background-80"
onClick={handleToday}
>
- Today
+ {t("common.today")}
</button>
)}
diff --git a/web/core/components/gantt-chart/data/index.ts b/web/core/components/gantt-chart/data/index.ts
index dc88403303..6db8dda659 100644
--- a/web/core/components/gantt-chart/data/index.ts
+++ b/web/core/components/gantt-chart/data/index.ts
@@ -63,7 +63,7 @@ export const datePreview = (date: Date, includeTime: boolean = false) => {
export const VIEWS_LIST: ChartDataType[] = [
{
key: "week",
- title: "Week",
+ i18n_title: "common.week",
data: {
startDate: new Date(),
currentDate: new Date(),
@@ -74,7 +74,7 @@ export const VIEWS_LIST: ChartDataType[] = [
},
{
key: "month",
- title: "Month",
+ i18n_title: "common.month",
data: {
startDate: new Date(),
currentDate: new Date(),
@@ -85,7 +85,7 @@ export const VIEWS_LIST: ChartDataType[] = [
},
{
key: "quarter",
- title: "Quarter",
+ i18n_title: "common.quarter",
data: {
startDate: new Date(),
currentDate: new Date(),
diff --git a/web/core/components/gantt-chart/sidebar/root.tsx b/web/core/components/gantt-chart/sidebar/root.tsx
index 7202efc55d..7f6866ad68 100644
--- a/web/core/components/gantt-chart/sidebar/root.tsx
+++ b/web/core/components/gantt-chart/sidebar/root.tsx
@@ -1,5 +1,6 @@
import { RefObject } from "react";
import { observer } from "mobx-react";
+import { useTranslation } from "@plane/i18n";
// components
import { Row, ERowVariant } from "@plane/ui";
import { MultipleSelectGroupAction } from "@/components/core";
@@ -27,6 +28,7 @@ type Props = {
};
export const GanttChartSidebar: React.FC<Props> = observer((props) => {
+ const { t } = useTranslation();
const {
blockIds,
blockUpdateHandler,
@@ -77,7 +79,7 @@ export const GanttChartSidebar: React.FC<Props> = observer((props) => {
)}
<h6>{title}</h6>
</div>
- <h6>Duration</h6>
+ <h6>{t("common.duration")}</h6>
</Row>
<Row variant={ERowVariant.HUGGING} className="min-h-full h-max bg-custom-background-100 overflow-hidden">
diff --git a/web/core/components/gantt-chart/types/index.ts b/web/core/components/gantt-chart/types/index.ts
index 83b64a2b5a..ad5b2afde9 100644
--- a/web/core/components/gantt-chart/types/index.ts
+++ b/web/core/components/gantt-chart/types/index.ts
@@ -39,7 +39,7 @@ export interface WeekMonthDataType {
export interface ChartDataType {
key: string;
- title: string;
+ i18n_title: string;
data: ChartDataTypeData;
}
diff --git a/web/core/components/graphs/issues-by-priority.tsx b/web/core/components/graphs/issues-by-priority.tsx
index d0f63f6049..faed3709ec 100644
--- a/web/core/components/graphs/issues-by-priority.tsx
+++ b/web/core/components/graphs/issues-by-priority.tsx
@@ -1,14 +1,80 @@
import { ComputedDatum } from "@nivo/bar";
-import { Theme } from "@nivo/core";
+import { Theme, linearGradientDef } from "@nivo/core";
+import { ISSUE_PRIORITIES } from "@plane/constants";
// components
import { TIssuePriorities } from "@plane/types";
import { BarGraph } from "@/components/ui";
// helpers
-import { PRIORITY_GRAPH_GRADIENTS } from "@/constants/dashboard";
-import { ISSUE_PRIORITIES } from "@/constants/issue";
import { capitalizeFirstLetter } from "@/helpers/string.helper";
-// types
-// constants
+
+// gradients for work items by priority widget graph bars
+export const PRIORITY_GRAPH_GRADIENTS = [
+ linearGradientDef(
+ "gradient_urgent",
+ [
+ { offset: 0, color: "#A90408" },
+ { offset: 100, color: "#DF4D51" },
+ ],
+ {
+ x1: 1,
+ y1: 0,
+ x2: 0,
+ y2: 0,
+ }
+ ),
+ linearGradientDef(
+ "gradient_high",
+ [
+ { offset: 0, color: "#FE6B00" },
+ { offset: 100, color: "#FFAC88" },
+ ],
+ {
+ x1: 1,
+ y1: 0,
+ x2: 0,
+ y2: 0,
+ }
+ ),
+ linearGradientDef(
+ "gradient_medium",
+ [
+ { offset: 0, color: "#F5AC00" },
+ { offset: 100, color: "#FFD675" },
+ ],
+ {
+ x1: 1,
+ y1: 0,
+ x2: 0,
+ y2: 0,
+ }
+ ),
+ linearGradientDef(
+ "gradient_low",
+ [
+ { offset: 0, color: "#1B46DE" },
+ { offset: 100, color: "#4F9BF4" },
+ ],
+ {
+ x1: 1,
+ y1: 0,
+ x2: 0,
+ y2: 0,
+ }
+ ),
+ linearGradientDef(
+ "gradient_none",
+ [
+ { offset: 0, color: "#A0A1A9" },
+ { offset: 100, color: "#B9BBC6" },
+ ],
+ {
+ x1: 1,
+ y1: 0,
+ x2: 0,
+ y2: 0,
+ }
+ ),
+];
type Props = {
borderRadius?: number;
@@ -73,7 +139,7 @@ export const IssuesByPriorityGraph: React.FC<Props> = (props) => {
match: {
id: p.key,
},
- id: `gradient${p.title}`,
+ id: `gradient_${p.key}`,
}))}
onClick={(datum) => {
if (onBarClick) onBarClick(datum);
diff --git a/web/core/components/home/home-dashboard-widgets.tsx b/web/core/components/home/home-dashboard-widgets.tsx
index 8ebdb70664..e391567c4d 100644
--- a/web/core/components/home/home-dashboard-widgets.tsx
+++ b/web/core/components/home/home-dashboard-widgets.tsx
@@ -1,14 +1,14 @@
import { observer } from "mobx-react";
import { useParams } from "next/navigation";
-// plane types
+// plane imports
+import { useTranslation } from "@plane/i18n";
import { THomeWidgetKeys, THomeWidgetProps } from "@plane/types";
// components
-import { EmptyState } from "@/components/empty-state";
-// constants
-import { EmptyStateType } from "@/constants/empty-state";
+import { SimpleEmptyState } from "@/components/empty-state";
// hooks
import { useHome } from "@/hooks/store/use-home";
// plane web components
+import { useResolvedAssetPath } from "@/hooks/use-resolved-asset-path";
import { HomePageHeader } from "@/plane-web/components/home/header";
import { StickiesWidget } from "../stickies";
import { RecentActivityWidget } from "./widgets";
@@ -25,35 +25,39 @@ export const HOME_WIDGETS_LIST: {
quick_links: {
component: DashboardQuickLinks,
fullWidth: false,
- title: "Quicklinks",
+ title: "home.quick_links.title_plural",
},
recents: {
component: RecentActivityWidget,
fullWidth: false,
- title: "Recents",
+ title: "home.recents.title",
},
my_stickies: {
component: StickiesWidget,
fullWidth: false,
- title: "Your stickies",
+ title: "stickies.title",
},
new_at_plane: {
component: null,
fullWidth: false,
- title: "New at Plane",
+ title: "home.new_at_plane.title",
},
quick_tutorial: {
component: null,
fullWidth: false,
- title: "Quick tutorial",
+ title: "home.quick_tutorial.title",
},
};
export const DashboardWidgets = observer(() => {
// router
const { workspaceSlug } = useParams();
+ // plane hooks
+ const { t } = useTranslation();
// store hooks
const { toggleWidgetSettings, widgetsMap, showWidgetSettings, orderedWidgets, isAnyWidgetEnabled } = useHome();
+ // derived values
+ const noWidgetsResolvedPath = useResolvedAssetPath({ basePath: "/empty-state/dashboard/widgets" });
if (!workspaceSlug) return null;
@@ -80,14 +84,10 @@ export const DashboardWidgets = observer(() => {
</div>
) : (
<div className="h-full w-full grid place-items-center">
- <EmptyState
- type={EmptyStateType.HOME_WIDGETS}
- layout="screen-simple"
- primaryButtonOnClick={() => toggleWidgetSettings(true)}
- primaryButtonConfig={{
- size: "sm",
- variant: "neutral-primary",
- }}
+ <SimpleEmptyState
+ title={t("home.empty.widgets.title")}
+ description={t("home.empty.widgets.description")}
+ assetPath={noWidgetsResolvedPath}
/>
</div>
)}
diff --git a/web/core/components/home/index.ts b/web/core/components/home/index.ts
index d783e089a0..09005cb24a 100644
--- a/web/core/components/home/index.ts
+++ b/web/core/components/home/index.ts
@@ -1,4 +1,3 @@
export * from "./widgets";
export * from "./home-dashboard-widgets";
-export * from "./project-empty-state";
export * from "./root";
diff --git a/web/core/components/home/project-empty-state.tsx b/web/core/components/home/project-empty-state.tsx
deleted file mode 100644
index c8cba817a3..0000000000
--- a/web/core/components/home/project-empty-state.tsx
+++ /dev/null
@@ -1,46 +0,0 @@
-"use client";
-
-import { observer } from "mobx-react";
-import Image from "next/image";
-// ui
-import { Button } from "@plane/ui";
-// hooks
-import { useCommandPalette, useEventTracker, useUserPermissions } from "@/hooks/store";
-import { EUserPermissions, EUserPermissionsLevel } from "@/plane-web/constants/user-permissions";
-// assets
-import ProjectEmptyStateImage from "@/public/empty-state/onboarding/dashboard-light.webp";
-
-export const DashboardProjectEmptyState = observer(() => {
- // store hooks
- const { toggleCreateProjectModal } = useCommandPalette();
- const { setTrackElement } = useEventTracker();
- const { allowPermissions } = useUserPermissions();
-
- // derived values
- const canCreateProject = allowPermissions([EUserPermissions.ADMIN], EUserPermissionsLevel.WORKSPACE);
-
- return (
- <div className="mx-auto flex h-full flex-col justify-center space-y-4 lg:w-3/5">
- <h4 className="text-xl font-semibold">Overview of your projects, activity, and metrics</h4>
- <p className="text-custom-text-300">
- Welcome to Plane, we are excited to have you here. Create your first project and track your issues, and this
- page will transform into a space that helps you progress. Admins will also see items which help their team
- progress.
- </p>
- <Image src={ProjectEmptyStateImage} className="w-full" alt="Project empty state" />
- {canCreateProject && (
- <div className="flex justify-center">
- <Button
- variant="primary"
- onClick={() => {
- setTrackElement("Project empty state");
- toggleCreateProjectModal(true);
- }}
- >
- Build your first project
- </Button>
- </div>
- )}
- </div>
- );
-});
diff --git a/web/core/components/home/root.tsx b/web/core/components/home/root.tsx
index c662b26acc..f137db9570 100644
--- a/web/core/components/home/root.tsx
+++ b/web/core/components/home/root.tsx
@@ -2,10 +2,10 @@ import { observer } from "mobx-react";
import { useParams } from "next/navigation";
// components
import useSWR from "swr";
+import { PRODUCT_TOUR_COMPLETED } from "@plane/constants";
import { ContentWrapper } from "@plane/ui";
import { TourRoot } from "@/components/onboarding";
// constants
-import { PRODUCT_TOUR_COMPLETED } from "@/constants/event-tracker";
// helpers
import { cn } from "@/helpers/common.helper";
// hooks
diff --git a/web/core/components/home/user-greetings.tsx b/web/core/components/home/user-greetings.tsx
index 82a94cc806..31fbab185e 100644
--- a/web/core/components/home/user-greetings.tsx
+++ b/web/core/components/home/user-greetings.tsx
@@ -1,6 +1,7 @@
import { FC } from "react";
import { Shapes } from "lucide-react";
// plane types
+import { useTranslation } from "@plane/i18n";
import { IUser } from "@plane/types";
// plane ui
import { Button } from "@plane/ui";
@@ -16,6 +17,8 @@ export const UserGreetingsView: FC<IUserGreetingsView> = (props) => {
const { user, handleWidgetModal } = props;
// current time hook
const { currentTime } = useCurrentTime();
+ // store hooks
+ const { t } = useTranslation();
const hour = new Intl.DateTimeFormat("en-US", {
hour12: false,
@@ -44,7 +47,7 @@ export const UserGreetingsView: FC<IUserGreetingsView> = (props) => {
<div className="flex justify-between">
<div>
<h3 className="text-xl font-semibold text-center">
- Good {greeting}, {user?.first_name} {user?.last_name}
+ {t("good")} {t(greeting)}, {user?.first_name} {user?.last_name}
</h3>
<h6 className="flex items-center gap-2 font-medium text-custom-text-400">
<div>{greeting === "morning" ? "🌤️" : greeting === "afternoon" ? "🌥️" : "🌙️"}</div>
@@ -55,7 +58,7 @@ export const UserGreetingsView: FC<IUserGreetingsView> = (props) => {
</div>
<Button variant="neutral-primary" size="sm" onClick={handleWidgetModal} className="my-auto mb-0">
<Shapes size={16} />
- <div className="text-xs font-medium">Manage widgets</div>
+ <div className="text-xs font-medium">{t("home.manage_widgets")}</div>
</Button>
</div>
);
diff --git a/web/core/components/home/widgets/empty-states/links.tsx b/web/core/components/home/widgets/empty-states/links.tsx
index 40df6aedee..37e04fea73 100644
--- a/web/core/components/home/widgets/empty-states/links.tsx
+++ b/web/core/components/home/widgets/empty-states/links.tsx
@@ -1,10 +1,14 @@
import { Link2 } from "lucide-react";
+import { useTranslation } from "@plane/i18n";
-export const LinksEmptyState = () => (
- <div className="min-h-[110px] w-full flex items-center justify-center gap-2 py-6 bg-custom-background-90 text-custom-text-400 rounded">
- <div className="flex-shrink-0 size-[30px] grid place-items-center">
- <Link2 className="size-6 -rotate-45" />
+export const LinksEmptyState = () => {
+ const { t } = useTranslation();
+ return (
+ <div className="min-h-[110px] flex w-full justify-center py-6 bg-custom-border-100 rounded">
+ <div className="m-auto flex gap-2">
+ <Link2 size={30} className="text-custom-text-400/40 -rotate-45" />
+ <div className="text-custom-text-400 text-sm text-center my-auto">{t("home.quick_links.empty")}</div>
+ </div>
</div>
- <p className="text-sm text-center font-medium">Save links to work things that you{"'"}d like handy.</p>
- </div>
-);
+ );
+};
diff --git a/web/core/components/home/widgets/empty-states/no-projects.tsx b/web/core/components/home/widgets/empty-states/no-projects.tsx
index c3b9a8807a..08a8bdaf4e 100644
--- a/web/core/components/home/widgets/empty-states/no-projects.tsx
+++ b/web/core/components/home/widgets/empty-states/no-projects.tsx
@@ -3,13 +3,13 @@ import Link from "next/link";
import { useParams } from "next/navigation";
import { Briefcase, Hotel, Users } from "lucide-react";
// plane ui
-import { Avatar } from "@plane/ui";
+import { EUserPermissions, EUserPermissionsLevel } from "@plane/constants";
+import { useTranslation } from "@plane/i18n";
// helpers
import { getFileURL } from "@/helpers/file.helper";
// hooks
import { useCommandPalette, useEventTracker, useUser, useUserPermissions } from "@/hooks/store";
// plane web constants
-import { EUserPermissions, EUserPermissionsLevel } from "@/plane-web/constants";
export const NoProjectsEmptyState = () => {
// navigation
@@ -19,6 +19,7 @@ export const NoProjectsEmptyState = () => {
const { toggleCreateProjectModal } = useCommandPalette();
const { setTrackElement } = useEventTracker();
const { data: currentUser } = useUser();
+ const { t } = useTranslation();
// derived values
const canCreateProject = allowPermissions(
[EUserPermissions.ADMIN, EUserPermissions.MEMBER],
@@ -28,11 +29,11 @@ export const NoProjectsEmptyState = () => {
const EMPTY_STATE_DATA = [
{
id: "create-project",
- title: "Create a project.",
- description: "Most things start with a project in Plane.",
- icon: <Briefcase className="size-12 text-custom-primary-100" />,
+ title: "home.empty.create_project.title",
+ description: "home.empty.create_project.description",
+ icon: <Briefcase className="w-[40px] h-[40px] text-custom-primary-100" />,
cta: {
- text: "Get started",
+ text: "home.empty.create_project.cta",
onClick: (e: React.MouseEvent<HTMLButtonElement, MouseEvent>) => {
if (!canCreateProject) return;
e.preventDefault();
@@ -44,39 +45,48 @@ export const NoProjectsEmptyState = () => {
},
{
id: "invite-team",
- title: "Invite your team.",
- description: "Build, ship, and manage with coworkers.",
- icon: <Users className="size-12 text-custom-primary-100" />,
+ title: "home.empty.invite_team.title",
+ description: "home.empty.invite_team.description",
+ icon: <Users className="w-[40px] h-[40px] text-custom-primary-100" />,
cta: {
- text: "Get them in",
+ text: "home.empty.invite_team.cta",
link: `/${workspaceSlug}/settings/members`,
},
},
{
id: "configure-workspace",
- title: "Set up your workspace.",
- description: "Turn features on or off or go beyond that.",
- icon: <Hotel className="size-12 text-custom-primary-100" />,
+ title: "home.empty.configure_workspace.title",
+ description: "home.empty.configure_workspace.description",
+ icon: <Hotel className="w-[40px] h-[40px] text-custom-primary-100" />,
cta: {
- text: "Configure this workspace",
+ text: "home.empty.configure_workspace.cta",
link: "settings",
},
},
{
id: "personalize-account",
- title: "Make Plane yours.",
- description: "Choose your picture, colors, and more.",
- icon: (
- <Avatar
- src={getFileURL(currentUser?.avatar_url ?? "")}
- name={currentUser?.display_name}
- size={48}
- className="text-xl"
- showTooltip={false}
- />
- ),
+ title: "home.empty.personalize_account.title",
+ description: "home.empty.personalize_account.description",
+ icon:
+ currentUser?.avatar_url && currentUser?.avatar_url.trim() !== "" ? (
+ <Link href={`/${workspaceSlug}/profile/${currentUser?.id}`}>
+ <span className="relative flex h-6 w-6 items-center justify-center rounded-full p-4 capitalize text-white">
+ <img
+ src={getFileURL(currentUser?.avatar_url)}
+ className="absolute left-0 top-0 h-full w-full rounded-full object-cover"
+ alt={currentUser?.display_name || currentUser?.email}
+ />
+ </span>
+ </Link>
+ ) : (
+ <Link href={`/${workspaceSlug}/profile/${currentUser?.id}`}>
+ <span className="relative flex h-6 w-6 items-center justify-center rounded-full bg-gray-700 p-4 capitalize text-white text-sm">
+ {(currentUser?.email ?? currentUser?.display_name ?? "?")[0]}
+ </span>
+ </Link>
+ ),
cta: {
- text: "Personalize now",
+ text: "home.empty.personalize_account.cta",
link: "/profile",
},
},
@@ -92,14 +102,15 @@ export const NoProjectsEmptyState = () => {
<div className="grid place-items-center bg-custom-primary-100/10 rounded-full size-24 mb-3">
<span className="text-3xl my-auto">{item.icon}</span>
</div>
- <h3 className="text-base font-medium text-custom-text-100 mb-2">{item.title}</h3>
- <p className="text-sm text-custom-text-300 mb-2">{item.description}</p>
+ <h3 className="text-lg font-medium text-custom-text-100 mb-2">{t(item.title)}</h3>
+ <p className="text-sm text-custom-text-200 mb-4 w-[80%] flex-1">{t(item.description)}</p>
+
{item.cta.link ? (
<Link
href={item.cta.link}
className="text-custom-primary-100 hover:text-custom-primary-200 text-sm font-medium"
>
- {item.cta.text}
+ {t(item.cta.text)}
</Link>
) : (
<button
@@ -107,7 +118,7 @@ export const NoProjectsEmptyState = () => {
className="text-custom-primary-100 hover:text-custom-primary-200 text-sm font-medium"
onClick={item.cta.onClick}
>
- {item.cta.text}
+ {t(item.cta.text)}
</button>
)}
</div>
diff --git a/web/core/components/home/widgets/empty-states/recents.tsx b/web/core/components/home/widgets/empty-states/recents.tsx
index 1398cb467a..5d48d29565 100644
--- a/web/core/components/home/widgets/empty-states/recents.tsx
+++ b/web/core/components/home/widgets/empty-states/recents.tsx
@@ -1,41 +1,41 @@
import { Briefcase, FileText, History } from "lucide-react";
-// plane ui
+import { useTranslation } from "@plane/i18n";
import { LayersIcon } from "@plane/ui";
const getDisplayContent = (type: string) => {
switch (type) {
case "project":
return {
- icon: Briefcase,
- text: "Projects you go into or have assigned work in will show up here.",
+ icon: <Briefcase size={30} className="text-custom-text-400/40" />,
+ text: "home.recents.empty.project",
};
case "page":
return {
- icon: FileText,
- text: "Create, see, or change something on pages you have access to and see them here.",
+ icon: <FileText size={30} className="text-custom-text-400/40" />,
+ text: "home.recents.empty.page",
};
case "issue":
return {
- icon: LayersIcon,
- text: "Let's see some issues to see them show up here.",
+ icon: <LayersIcon className="text-custom-text-400/40 w-[30px] h-[30px]" />,
+ text: "home.recents.empty.issue",
};
default:
return {
- icon: History,
- text: "Whatever you see and act on in Plane will show up here.",
+ icon: <History size={30} className="text-custom-text-400/40" />,
+ text: "home.recents.empty.default",
};
}
};
-
export const RecentsEmptyState = ({ type }: { type: string }) => {
- const displayContent = getDisplayContent(type);
+ const { t } = useTranslation();
+
+ const { icon, text } = getDisplayContent(type);
return (
- <div className="min-h-[110px] w-full flex items-center justify-center gap-2 py-6 bg-custom-background-90 text-custom-text-400 rounded">
- <div className="flex-shrink-0 size-[30px] grid place-items-center">
- <displayContent.icon className="size-6" />
+ <div className="min-h-[120px] flex w-full justify-center py-6 bg-custom-border-100 rounded">
+ <div className="m-auto flex gap-2">
+ {icon} <div className="text-custom-text-400 text-sm text-center my-auto">{t(text)}</div>
</div>
- <p className="text-sm text-center font-medium">{displayContent.text}</p>
</div>
);
};
diff --git a/web/core/components/home/widgets/empty-states/stickies.tsx b/web/core/components/home/widgets/empty-states/stickies.tsx
index 88986ae071..1210ea096c 100644
--- a/web/core/components/home/widgets/empty-states/stickies.tsx
+++ b/web/core/components/home/widgets/empty-states/stickies.tsx
@@ -1,13 +1,15 @@
// plane ui
+import { useTranslation } from "@plane/i18n";
import { RecentStickyIcon } from "@plane/ui";
-export const StickiesEmptyState = () => (
- <div className="min-h-[110px] w-full flex items-center justify-center gap-2 py-6 bg-custom-background-90 text-custom-text-400 rounded">
- <div className="flex-shrink-0 size-[30px] grid place-items-center">
- <RecentStickyIcon className="size-6" />
+export const StickiesEmptyState = () => {
+ const { t } = useTranslation();
+ return (
+ <div className="min-h-[110px] flex w-full justify-center py-6 bg-custom-border-100 rounded">
+ <div className="m-auto flex gap-2">
+ <RecentStickyIcon className="h-[30px] w-[30px] text-custom-text-400/40" />
+ <div className="text-custom-text-400 text-sm text-center my-auto">{t("stickies.empty_state.simple")}</div>
+ </div>
</div>
- <p className="text-sm text-center font-medium">
- Jot down an idea, capture an aha, or record a brainwave. Add a sticky to get started.
- </p>
- </div>
-);
+ );
+};
diff --git a/web/core/components/home/widgets/links/action.tsx b/web/core/components/home/widgets/links/action.tsx
index 361eeaf923..5199b7d4dc 100644
--- a/web/core/components/home/widgets/links/action.tsx
+++ b/web/core/components/home/widgets/links/action.tsx
@@ -1,10 +1,12 @@
import { PlusIcon } from "lucide-react";
+import { useTranslation } from "@plane/i18n";
type TProps = {
onClick: () => void;
};
export const AddLink = (props: TProps) => {
const { onClick } = props;
+ const { t } = useTranslation();
return (
<button
@@ -14,7 +16,7 @@ export const AddLink = (props: TProps) => {
<div className="rounded p-2 bg-custom-background-80/40 w-8 h-8 my-auto">
<PlusIcon className="h-4 w-4 stroke-2 text-custom-text-350" />
</div>
- <div className="text-sm font-medium my-auto">Add quicklink</div>
+ <div className="text-sm font-medium my-auto">{t("home.quick_links.add")}</div>
</button>
);
};
diff --git a/web/core/components/home/widgets/links/create-update-link-modal.tsx b/web/core/components/home/widgets/links/create-update-link-modal.tsx
index 9e45415b33..dccc09f5f3 100644
--- a/web/core/components/home/widgets/links/create-update-link-modal.tsx
+++ b/web/core/components/home/widgets/links/create-update-link-modal.tsx
@@ -5,6 +5,7 @@ import { observer } from "mobx-react";
import { Controller, useForm } from "react-hook-form";
// plane types
// plane ui
+import { useTranslation } from "@plane/i18n";
import { TLink, TLinkEditableFields } from "@plane/types";
import { Button, Input, ModalCore } from "@plane/ui";
import { TLinkOperations } from "./use-links";
@@ -40,6 +41,7 @@ export const LinkCreateUpdateModal: FC<TLinkCreateEditModal> = observer((props)
} = useForm<TLinkCreateFormFieldOptions>({
defaultValues,
});
+ const { t } = useTranslation();
const onClose = () => {
if (handleOnClose) handleOnClose();
@@ -66,17 +68,20 @@ export const LinkCreateUpdateModal: FC<TLinkCreateEditModal> = observer((props)
<ModalCore isOpen={isModalOpen} handleClose={onClose}>
<form onSubmit={handleSubmit(handleFormSubmit)}>
<div className="space-y-5 p-5">
- <h3 className="text-xl font-medium text-custom-text-200">{preloadedData?.id ? "Update" : "Add"} quicklink</h3>
+ <h3 className="text-xl font-medium text-custom-text-200">
+ {preloadedData?.id ? t("update") : t("add")} {t("home.quick_links.title")}
+ </h3>
<div className="mt-2 space-y-3">
<div>
<label htmlFor="url" className="mb-2 text-custom-text-200 text-base font-medium">
- URL
+ {t("link.modal.url.text")}
+ <span className="text-[10px] block">{t("required")}</span>
</label>
<Controller
control={control}
name="url"
rules={{
- required: "URL is required",
+ required: t("link.modal.url.required"),
}}
render={({ field: { value, onChange, ref } }) => (
<Input
@@ -86,17 +91,17 @@ export const LinkCreateUpdateModal: FC<TLinkCreateEditModal> = observer((props)
onChange={onChange}
ref={ref}
hasError={Boolean(errors.url)}
- placeholder="Type or paste a URL"
+ placeholder={t("link.modal.url.placeholder")}
className="w-full"
/>
)}
/>
- {errors.url && <span className="text-xs text-red-500">URL is invalid</span>}
+ {errors.url && <span className="text-xs text-red-500">{t("link.modal.url.required")}</span>}
</div>
<div>
<label htmlFor="title" className="mb-2 text-custom-text-200 text-base font-medium">
- Display title
- <span className="text-[10px] block">Optional</span>
+ {t("link.modal.title.text")}
+ <span className="text-[10px] block">{t("optional")}</span>
</label>
<Controller
control={control}
@@ -109,7 +114,7 @@ export const LinkCreateUpdateModal: FC<TLinkCreateEditModal> = observer((props)
onChange={onChange}
ref={ref}
hasError={Boolean(errors.title)}
- placeholder="What you'd like to see this link as"
+ placeholder={t("link.modal.title.placeholder")}
className="w-full"
/>
)}
@@ -119,10 +124,11 @@ export const LinkCreateUpdateModal: FC<TLinkCreateEditModal> = observer((props)
</div>
<div className="px-5 py-4 flex items-center justify-end gap-2 border-t-[0.5px] border-custom-border-200">
<Button variant="neutral-primary" size="sm" onClick={onClose}>
- Cancel
+ {t("Cancel")}
</Button>
<Button variant="primary" size="sm" type="submit" loading={isSubmitting}>
- {preloadedData?.id ? (isSubmitting ? "Updating" : "Update") : isSubmitting ? "Adding" : "Add"} quicklink
+ {preloadedData?.id ? (isSubmitting ? t("updating") : t("update")) : isSubmitting ? t("adding") : t("add")}{" "}
+ {t("home.quick_links.title")}
</Button>
</div>
</form>
diff --git a/web/core/components/home/widgets/links/link-detail.tsx b/web/core/components/home/widgets/links/link-detail.tsx
index 17c9671730..e632aaa2f7 100644
--- a/web/core/components/home/widgets/links/link-detail.tsx
+++ b/web/core/components/home/widgets/links/link-detail.tsx
@@ -2,8 +2,8 @@
import { FC } from "react";
import { observer } from "mobx-react";
-import { Pencil, Trash2, ExternalLink, Link2, Link } from "lucide-react";
-// plane ui
+import { Pencil, Trash2, ExternalLink, EllipsisVertical, Link2, Link } from "lucide-react";
+import { useTranslation } from "@plane/i18n";
import { TOAST_TYPE, setToast, CustomMenu, TContextMenuItem } from "@plane/ui";
// plane utils
import { cn, copyTextToClipboard } from "@plane/utils";
@@ -26,6 +26,7 @@ export const ProjectLinkDetail: FC<TProjectLinkDetail> = observer((props) => {
const {
quickLinks: { getLinkById, toggleLinkModal, setLinkData },
} = useHome();
+ const { t } = useTranslation();
const linkDetail = getLinkById(linkId);
if (!linkDetail) return <></>;
@@ -41,8 +42,8 @@ export const ProjectLinkDetail: FC<TProjectLinkDetail> = observer((props) => {
copyTextToClipboard(viewLink).then(() => {
setToast({
type: TOAST_TYPE.SUCCESS,
- title: "Link Copied!",
- message: "View link copied to clipboard.",
+ title: t("link_copied"),
+ message: t("view_link_copied_to_clipboard"),
});
});
const handleOpenInNewTab = () => window.open(`${viewLink}`, "_blank");
@@ -51,25 +52,25 @@ export const ProjectLinkDetail: FC<TProjectLinkDetail> = observer((props) => {
{
key: "edit",
action: () => handleEdit(true),
- title: "Edit",
+ title: t("edit"),
icon: Pencil,
},
{
key: "open-new-tab",
action: handleOpenInNewTab,
- title: "Open in new tab",
+ title: t("open_in_new_tab"),
icon: ExternalLink,
},
{
key: "copy-link",
action: handleCopyText,
- title: "Copy link",
+ title: t("copy_link"),
icon: Link,
},
{
key: "delete",
action: () => linkOperations.remove(linkId),
- title: "Delete",
+ title: t("delete"),
icon: Trash2,
},
];
diff --git a/web/core/components/home/widgets/links/root.tsx b/web/core/components/home/widgets/links/root.tsx
index f25f035d16..0cd9d30e6e 100644
--- a/web/core/components/home/widgets/links/root.tsx
+++ b/web/core/components/home/widgets/links/root.tsx
@@ -1,6 +1,7 @@
import { observer } from "mobx-react";
import useSWR from "swr";
import { Plus } from "lucide-react";
+import { useTranslation } from "@plane/i18n";
import { THomeWidgetProps } from "@plane/types";
import { useHome } from "@/hooks/store/use-home";
import { LinkCreateUpdateModal } from "./create-update-link-modal";
@@ -13,6 +14,7 @@ export const DashboardQuickLinks = observer((props: THomeWidgetProps) => {
const {
quickLinks: { isLinkModalOpen, toggleLinkModal, linkData, setLinkData, fetchLinks },
} = useHome();
+ const { t } = useTranslation();
useSWR(
workspaceSlug ? `HOME_LINKS_${workspaceSlug}` : null,
@@ -34,14 +36,14 @@ export const DashboardQuickLinks = observer((props: THomeWidgetProps) => {
/>
<div className="mb-2">
<div className="flex items-center justify-between mb-4">
- <div className="text-base font-semibold text-custom-text-350">Quicklinks</div>
+ <div className="text-base font-semibold text-custom-text-350">{t("home.quick_links.title_plural")}</div>
<button
onClick={() => {
toggleLinkModal(true);
}}
className="flex gap-1 text-sm font-medium text-custom-primary-100 my-auto"
>
- <Plus className="size-4 my-auto" /> <span>Add quicklink</span>
+ <Plus className="size-4 my-auto" /> <span>{t("home.quick_links.add")}</span>
</button>
</div>
<div className="flex flex-wrap w-full">
diff --git a/web/core/components/home/widgets/links/use-links.tsx b/web/core/components/home/widgets/links/use-links.tsx
index a6668d92ef..0cb1f6ac52 100644
--- a/web/core/components/home/widgets/links/use-links.tsx
+++ b/web/core/components/home/widgets/links/use-links.tsx
@@ -1,4 +1,5 @@
import { useMemo } from "react";
+import { useTranslation } from "@plane/i18n";
import { TProjectLink } from "@plane/types";
import { setToast, TOAST_TYPE } from "@plane/ui";
import { useHome } from "@/hooks/store/use-home";
@@ -26,6 +27,7 @@ export const useLinks = (workspaceSlug: string) => {
fetchLinks,
},
} = useHome();
+ const { t } = useTranslation();
const linkOperations: TLinkOperations = useMemo(
() => ({
@@ -34,17 +36,17 @@ export const useLinks = (workspaceSlug: string) => {
if (!workspaceSlug) throw new Error("Missing required fields");
await createLink(workspaceSlug, data);
setToast({
- message: "The link has been successfully created",
+ message: t("links.toasts.created.message"),
type: TOAST_TYPE.SUCCESS,
- title: "Link created",
+ title: t("links.toasts.created.title"),
});
toggleLinkModal(false);
} catch (error: any) {
console.error("error", error);
setToast({
- message: error?.data?.error ?? "The link could not be created",
+ message: error?.data?.error ?? t("links.toasts.not_created.message"),
type: TOAST_TYPE.ERROR,
- title: "Link not created",
+ title: t("links.toasts.not_created.title"),
});
throw error;
}
@@ -54,16 +56,16 @@ export const useLinks = (workspaceSlug: string) => {
if (!workspaceSlug) throw new Error("Missing required fields");
await updateLink(workspaceSlug, linkId, data);
setToast({
- message: "The link has been successfully updated",
+ message: t("links.toasts.updated.message"),
type: TOAST_TYPE.SUCCESS,
- title: "Link updated",
+ title: t("links.toasts.updated.title"),
});
toggleLinkModal(false);
- } catch (error) {
+ } catch (error: any) {
setToast({
- message: "The link could not be updated",
+ message: error?.data?.error ?? t("links.toasts.not_updated.message"),
type: TOAST_TYPE.ERROR,
- title: "Link not updated",
+ title: t("links.toasts.not_updated.title"),
});
throw error;
}
@@ -73,15 +75,15 @@ export const useLinks = (workspaceSlug: string) => {
if (!workspaceSlug) throw new Error("Missing required fields");
await removeLink(workspaceSlug, linkId);
setToast({
- message: "The link has been successfully removed",
+ message: t("links.toasts.removed.message"),
type: TOAST_TYPE.SUCCESS,
- title: "Link removed",
+ title: t("links.toasts.removed.message"),
});
- } catch (error) {
+ } catch (error: any) {
setToast({
- message: "The link could not be removed",
+ message: error?.data?.error ?? t("links.toasts.not_removed.message"),
type: TOAST_TYPE.ERROR,
- title: "Link not removed",
+ title: t("links.toasts.not_removed.title"),
});
}
},
diff --git a/web/core/components/home/widgets/manage/index.tsx b/web/core/components/home/widgets/manage/index.tsx
index 9a2239e2ee..8834ca69dc 100644
--- a/web/core/components/home/widgets/manage/index.tsx
+++ b/web/core/components/home/widgets/manage/index.tsx
@@ -4,6 +4,7 @@ import { FC } from "react";
import { observer } from "mobx-react";
// plane types
// plane ui
+import { useTranslation } from "@plane/i18n";
import { EModalWidth, ModalCore } from "@plane/ui";
import { WidgetList } from "./widget-list";
@@ -16,11 +17,12 @@ export type TProps = {
export const ManageWidgetsModal: FC<TProps> = observer((props) => {
// props
const { workspaceSlug, isModalOpen, handleOnClose } = props;
+ const { t } = useTranslation();
return (
<ModalCore isOpen={isModalOpen} handleClose={handleOnClose} width={EModalWidth.MD}>
<div className="p-4">
- <div className="font-medium text-xl">Manage widgets</div>
+ <div className="font-medium text-xl"> {t("home.manage_widgets")}</div>
<WidgetList workspaceSlug={workspaceSlug} />
</div>
</ModalCore>
diff --git a/web/core/components/home/widgets/manage/widget-item.tsx b/web/core/components/home/widgets/manage/widget-item.tsx
index bfd9ca3881..42cb7f5c0d 100644
--- a/web/core/components/home/widgets/manage/widget-item.tsx
+++ b/web/core/components/home/widgets/manage/widget-item.tsx
@@ -15,6 +15,7 @@ import { observer } from "mobx-react";
import { useParams } from "next/navigation";
import { createRoot } from "react-dom/client";
// plane types
+import { useTranslation } from "@plane/i18n";
import { InstructionType, TWidgetEntityData } from "@plane/types";
// plane ui
import { DropIndicator, ToggleSwitch } from "@plane/ui";
@@ -44,6 +45,7 @@ export const WidgetItem: FC<Props> = observer((props) => {
const elementRef = useRef<HTMLDivElement>(null);
// hooks
const { widgetsMap } = useHome();
+ const { t } = useTranslation();
// derived values
const widget = widgetsMap[widgetId] as TWidgetEntityData;
const widgetTitle = HOME_WIDGETS_LIST[widget.key]?.title;
@@ -128,7 +130,7 @@ export const WidgetItem: FC<Props> = observer((props) => {
>
<div className="flex items-center">
<WidgetItemDragHandle sort_order={widget.sort_order} isDragging={isDragging} />
- <div>{widgetTitle}</div>
+ <div>{t(widgetTitle, { count: 1 })}</div>
</div>
<ToggleSwitch
value={widget.is_enabled}
diff --git a/web/core/components/home/widgets/manage/widget-list.tsx b/web/core/components/home/widgets/manage/widget-list.tsx
index 526d51ba91..85957d8cfa 100644
--- a/web/core/components/home/widgets/manage/widget-list.tsx
+++ b/web/core/components/home/widgets/manage/widget-list.tsx
@@ -4,6 +4,7 @@ import {
ElementDragPayload,
} from "@atlaskit/pragmatic-drag-and-drop/dist/types/internal-types";
import { observer } from "mobx-react";
+import { useTranslation } from "@plane/i18n";
import { setToast, TOAST_TYPE } from "@plane/ui";
import { useHome } from "@/hooks/store/use-home";
import { WidgetItem } from "./widget-item";
@@ -11,6 +12,7 @@ import { getInstructionFromPayload, TargetData } from "./widget.helpers";
export const WidgetList = observer(({ workspaceSlug }: { workspaceSlug: string }) => {
const { orderedWidgets, reorderWidget, toggleWidget } = useHome();
+ const { t } = useTranslation();
const handleDrop = (self: DropTargetRecord, source: ElementDragPayload, location: DragLocationHistory) => {
const dropTargets = location?.current?.dropTargets ?? [];
@@ -31,14 +33,14 @@ export const WidgetList = observer(({ workspaceSlug }: { workspaceSlug: string }
reorderWidget(workspaceSlug, sourceData.id, droppedId, instruction); /** sequence */
setToast({
type: TOAST_TYPE.SUCCESS,
- title: "Success!",
- message: "Widget reordered successfully.",
+ title: t("toast.success"),
+ message: t("home.widget.reordered_successfully"),
});
} catch {
setToast({
type: TOAST_TYPE.ERROR,
- title: "Error!",
- message: "Error occurred while reordering widget.",
+ title: t("toast.error"),
+ message: t("home.widget.reordering_failed"),
});
}
}
diff --git a/web/core/components/home/widgets/recents/filters.tsx b/web/core/components/home/widgets/recents/filters.tsx
index da7e9e39ab..255249dd14 100644
--- a/web/core/components/home/widgets/recents/filters.tsx
+++ b/web/core/components/home/widgets/recents/filters.tsx
@@ -3,6 +3,7 @@
import { FC } from "react";
import { observer } from "mobx-react";
import { ChevronDown } from "lucide-react";
+import { useTranslation } from "@plane/i18n";
import { TRecentActivityFilterKeys } from "@plane/types";
import { CustomMenu } from "@plane/ui";
import { cn } from "@plane/utils";
@@ -11,11 +12,12 @@ export type TFiltersDropdown = {
className?: string;
activeFilter: TRecentActivityFilterKeys;
setActiveFilter: (filter: TRecentActivityFilterKeys) => void;
- filters: { name: TRecentActivityFilterKeys; icon?: React.ReactNode }[];
+ filters: { name: TRecentActivityFilterKeys; icon?: React.ReactNode; i18n_key: string }[];
};
export const FiltersDropdown: FC<TFiltersDropdown> = observer((props) => {
const { className, activeFilter, setActiveFilter, filters } = props;
+ const { t } = useTranslation();
const DropdownOptions = () =>
filters?.map((filter) => (
@@ -27,10 +29,11 @@ export const FiltersDropdown: FC<TFiltersDropdown> = observer((props) => {
}}
>
{filter.icon && <div>{filter.icon}</div>}
- <div className="truncate font-medium text-xs capitalize">{`${filter.name}s`}</div>
+ <div className="truncate font-medium text-xs capitalize">{t(filter.i18n_key)}</div>
</CustomMenu.MenuItem>
));
+ const title = activeFilter ? filters?.find((filter) => filter.name === activeFilter)?.i18n_key : "";
return (
<CustomMenu
maxHeight={"md"}
@@ -38,7 +41,7 @@ export const FiltersDropdown: FC<TFiltersDropdown> = observer((props) => {
placement="bottom-start"
customButton={
<button className="flex hover:bg-custom-background-80 px-2 py-1 rounded gap-1 capitalize border border-custom-border-200">
- <span className="font-medium text-sm my-auto"> {activeFilter && `${activeFilter}s`}</span>
+ <span className="font-medium text-sm my-auto"> {t(title || "")}</span>
<ChevronDown className={cn("size-3 my-auto text-custom-text-300 hover:text-custom-text-200 duration-300")} />
</button>
}
diff --git a/web/core/components/home/widgets/recents/index.tsx b/web/core/components/home/widgets/recents/index.tsx
index cb43384801..6f06432fdf 100644
--- a/web/core/components/home/widgets/recents/index.tsx
+++ b/web/core/components/home/widgets/recents/index.tsx
@@ -5,6 +5,7 @@ import { observer } from "mobx-react";
import { usePathname } from "next/navigation";
import useSWR from "swr";
import { Briefcase, FileText } from "lucide-react";
+import { useTranslation } from "@plane/i18n";
// plane types
import { TActivityEntityData, THomeWidgetProps, TRecentActivityFilterKeys } from "@plane/types";
// plane ui
@@ -24,11 +25,11 @@ import { RecentProject } from "./project";
const WIDGET_KEY = EWidgetKeys.RECENT_ACTIVITY;
const workspaceService = new WorkspaceService();
-const filters: { name: TRecentActivityFilterKeys; icon?: React.ReactNode }[] = [
- { name: "all item" },
- { name: "issue", icon: <LayersIcon className="flex-shrink-0 size-4" /> },
- { name: "page", icon: <FileText className="flex-shrink-0 size-4" /> },
- { name: "project", icon: <Briefcase className="flex-shrink-0 size-4" /> },
+const filters: { name: TRecentActivityFilterKeys; icon?: React.ReactNode; i18n_key: string }[] = [
+ { name: "all item", i18n_key: "home.recents.filters.all" },
+ { name: "issue", icon: <LayersIcon className="w-4 h-4" />, i18n_key: "home.recents.filters.issues" },
+ { name: "page", icon: <FileText size={16} />, i18n_key: "home.recents.filters.pages" },
+ { name: "project", icon: <Briefcase size={16} />, i18n_key: "home.recents.filters.projects" },
];
type TRecentWidgetProps = THomeWidgetProps & {
@@ -46,6 +47,7 @@ export const RecentActivityWidget: React.FC<TRecentWidgetProps> = observer((prop
const ref = useRef<HTMLDivElement>(null);
// store hooks
const { joinedProjectIds, loader } = useProject();
+ const { t } = useTranslation();
// derived values
const isWikiApp = pathname.includes(`/${workspaceSlug.toString()}/pages`);
@@ -85,7 +87,7 @@ export const RecentActivityWidget: React.FC<TRecentWidgetProps> = observer((prop
return (
<div ref={ref} className="max-h-[500px] overflow-y-scroll">
<div className="flex items-center justify-between mb-4">
- <div className="text-base font-semibold text-custom-text-350">Recents</div>
+ <div className="text-base font-semibold text-custom-text-350">{t("home.recents.title")}</div>
{showFilterSelect && <FiltersDropdown filters={filters} activeFilter={filter} setActiveFilter={setFilter} />}
</div>
<div className="flex flex-col items-center justify-center">
@@ -102,7 +104,7 @@ export const RecentActivityWidget: React.FC<TRecentWidgetProps> = observer((prop
buttonClassName="bg-custom-background-90/20"
>
<div className="flex items-center justify-between mb-2">
- <div className="text-base font-semibold text-custom-text-350">Recents</div>
+ <div className="text-base font-semibold text-custom-text-350">{t("home.recents.title")}</div>
{showFilterSelect && <FiltersDropdown filters={filters} activeFilter={filter} setActiveFilter={setFilter} />}
</div>
<div className="min-h-[250px] flex flex-col">
diff --git a/web/core/components/inbox/content/inbox-issue-header.tsx b/web/core/components/inbox/content/inbox-issue-header.tsx
index cb0dbcfc5f..375f56d934 100644
--- a/web/core/components/inbox/content/inbox-issue-header.tsx
+++ b/web/core/components/inbox/content/inbox-issue-header.tsx
@@ -15,6 +15,8 @@ import {
MoveRight,
Copy,
} from "lucide-react";
+import { EUserPermissions, EUserPermissionsLevel } from "@plane/constants";
+import { useTranslation } from "@plane/i18n";
import { TNameDescriptionLoader } from "@plane/types";
import { Button, ControlLink, CustomMenu, Row, TOAST_TYPE, setToast } from "@plane/ui";
// components
@@ -34,7 +36,6 @@ import { copyUrlToClipboard } from "@/helpers/string.helper";
// hooks
import { useUser, useProjectInbox, useProject, useUserPermissions } from "@/hooks/store";
import { useAppRouter } from "@/hooks/use-app-router";
-import { EUserPermissions, EUserPermissionsLevel } from "@/plane-web/constants/user-permissions";
// store types
import type { IInboxIssueStore } from "@/store/inbox/inbox-issue.store";
@@ -71,6 +72,7 @@ export const InboxIssueActionsHeader: FC<TInboxIssueActionsHeader> = observer((p
const { data: currentUser } = useUser();
const { allowPermissions } = useUserPermissions();
const { currentProjectDetails } = useProject();
+ const { t } = useTranslation();
const router = useAppRouter();
const { getProjectById } = useProject();
@@ -172,8 +174,8 @@ export const InboxIssueActionsHeader: FC<TInboxIssueActionsHeader> = observer((p
copyUrlToClipboard(path).then(() =>
setToast({
type: TOAST_TYPE.SUCCESS,
- title: "Link copied",
- message: "Issue link copied to clipboard",
+ title: t("common.link_copied"),
+ message: t("common.copied_to_clipboard"),
})
);
@@ -243,10 +245,12 @@ export const InboxIssueActionsHeader: FC<TInboxIssueActionsHeader> = observer((p
beforeFormSubmit={handleInboxIssueAccept}
withDraftIssueWrapper={false}
fetchIssueDetails={false}
- modalTitle={`Move ${currentProjectDetails?.identifier}-${issue?.sequence_id} to project issues`}
+ modalTitle={t("inbox_issue.actions.move", {
+ value: `${currentProjectDetails?.identifier}-${issue?.sequence_id}`,
+ })}
primaryButtonText={{
- default: "Add to project",
- loading: "Adding",
+ default: t("add_to_project"),
+ loading: t("adding"),
}}
/>
<DeclineIssueModal
@@ -319,11 +323,11 @@ export const InboxIssueActionsHeader: FC<TInboxIssueActionsHeader> = observer((p
handleActionWithPermission(
isProjectAdmin,
() => setAcceptIssueModal(true),
- "Only project admins can accept issues"
+ t("inbox_issue.errors.accept_permission")
)
}
>
- Accept
+ {t("inbox_issue.actions.accept")}
</Button>
</div>
)}
@@ -339,11 +343,11 @@ export const InboxIssueActionsHeader: FC<TInboxIssueActionsHeader> = observer((p
handleActionWithPermission(
isProjectAdmin,
() => setDeclineIssueModal(true),
- "Only project admins can deny issues"
+ t("inbox_issue.errors.decline_permission")
)
}
>
- Decline
+ {t("inbox_issue.actions.decline")}
</Button>
</div>
)}
@@ -356,7 +360,7 @@ export const InboxIssueActionsHeader: FC<TInboxIssueActionsHeader> = observer((p
size="sm"
onClick={() => handleCopyIssueLink(issueLink)}
>
- Copy issue link
+ {t("inbox_issue.actions.copy")}
</Button>
<ControlLink
href={`/${workspaceSlug}/projects/${issue?.project_id}/issues/${currentInboxIssueId}`}
@@ -366,7 +370,7 @@ export const InboxIssueActionsHeader: FC<TInboxIssueActionsHeader> = observer((p
target="_self"
>
<Button variant="neutral-primary" prependIcon={<ExternalLink className="h-2.5 w-2.5" />} size="sm">
- Open issue
+ {t("inbox_issue.actions.open")}
</Button>
</ControlLink>
</div>
@@ -380,15 +384,15 @@ export const InboxIssueActionsHeader: FC<TInboxIssueActionsHeader> = observer((p
handleActionWithPermission(
isProjectAdmin,
handleIssueSnoozeAction,
- "Only project admins can snooze/Un-snooze issues"
+ t("inbox_issue.errors.snooze_permission")
)
}
>
<div className="flex items-center gap-2">
<Clock size={14} strokeWidth={2} />
{inboxIssue?.snoozed_till && numberOfDaysLeft && numberOfDaysLeft > 0
- ? "Un-snooze"
- : "Snooze"}
+ ? t("inbox_issue.actions.unsnooze")
+ : t("inbox_issue.actions.snooze")}
</div>
</CustomMenu.MenuItem>
)}
@@ -398,27 +402,27 @@ export const InboxIssueActionsHeader: FC<TInboxIssueActionsHeader> = observer((p
handleActionWithPermission(
isProjectAdmin,
() => setSelectDuplicateIssue(true),
- "Only project admins can mark issues as duplicate"
+ "Only project admins can mark work item as duplicate"
)
}
>
<div className="flex items-center gap-2">
<FileStack size={14} strokeWidth={2} />
- Mark as duplicate
+ {t("inbox_issue.actions.mark_as_duplicate")}
</div>
</CustomMenu.MenuItem>
)}
<CustomMenu.MenuItem onClick={() => handleCopyIssueLink(intakeIssueLink)}>
<div className="flex items-center gap-2">
<Copy size={14} strokeWidth={2} />
- Copy issue link
+ {t("inbox_issue.actions.copy")}
</div>
</CustomMenu.MenuItem>
{canDelete && (
<CustomMenu.MenuItem onClick={() => setDeleteIssueModal(true)}>
<div className="flex items-center gap-2">
<Trash2 size={14} strokeWidth={2} />
- Delete
+ {t("inbox_issue.actions.delete")}
</div>
</CustomMenu.MenuItem>
)}
diff --git a/web/core/components/inbox/content/inbox-issue-mobile-header.tsx b/web/core/components/inbox/content/inbox-issue-mobile-header.tsx
index 987a663a5e..d157c1a392 100644
--- a/web/core/components/inbox/content/inbox-issue-mobile-header.tsx
+++ b/web/core/components/inbox/content/inbox-issue-mobile-header.tsx
@@ -127,7 +127,7 @@ export const InboxIssueActionsMobileHeader: React.FC<Props> = observer((props) =
<CustomMenu.MenuItem onClick={handleCopyIssueLink}>
<div className="flex items-center gap-2">
<Link size={14} strokeWidth={2} />
- Copy issue link
+ Copy work item link
</div>
</CustomMenu.MenuItem>
)}
@@ -139,7 +139,7 @@ export const InboxIssueActionsMobileHeader: React.FC<Props> = observer((props) =
>
<div className="flex items-center gap-2">
<ExternalLink size={14} strokeWidth={2} />
- Open issue
+ Open work item
</div>
</CustomMenu.MenuItem>
)}
@@ -149,7 +149,7 @@ export const InboxIssueActionsMobileHeader: React.FC<Props> = observer((props) =
handleActionWithPermission(
isProjectAdmin,
handleIssueSnoozeAction,
- "Only project admins can snooze/Un-snooze issues"
+ "Only project admins can snooze/Un-snooze work items"
)
}
>
@@ -165,7 +165,7 @@ export const InboxIssueActionsMobileHeader: React.FC<Props> = observer((props) =
handleActionWithPermission(
isProjectAdmin,
() => setSelectDuplicateIssue(true),
- "Only project admins can mark issues as duplicate"
+ "Only project admins can mark work items as duplicate"
)
}
>
@@ -181,7 +181,7 @@ export const InboxIssueActionsMobileHeader: React.FC<Props> = observer((props) =
handleActionWithPermission(
isProjectAdmin,
() => setAcceptIssueModal(true),
- "Only project admins can accept issues"
+ "Only project admins can accept work items"
)
}
>
@@ -197,7 +197,7 @@ export const InboxIssueActionsMobileHeader: React.FC<Props> = observer((props) =
handleActionWithPermission(
isProjectAdmin,
() => setDeclineIssueModal(true),
- "Only project admins can deny issues"
+ "Only project admins can deny work items"
)
}
>
diff --git a/web/core/components/inbox/content/issue-root.tsx b/web/core/components/inbox/content/issue-root.tsx
index 258a1c50b0..0b64b220a5 100644
--- a/web/core/components/inbox/content/issue-root.tsx
+++ b/web/core/components/inbox/content/issue-root.tsx
@@ -4,6 +4,7 @@ import { Dispatch, SetStateAction, useEffect, useMemo } from "react";
import { observer } from "mobx-react";
import { usePathname } from "next/navigation";
// plane types
+import { ISSUE_ARCHIVED, ISSUE_DELETED } from "@plane/constants";
import { TIssue, TNameDescriptionLoader } from "@plane/types";
// plane ui
import { Loader, TOAST_TYPE, setToast } from "@plane/ui";
@@ -18,7 +19,6 @@ import {
IssueAttachmentRoot,
} from "@/components/issues";
// constants
-import { ISSUE_ARCHIVED, ISSUE_DELETED } from "@/constants/event-tracker";
// helpers
import { getTextContent } from "@/helpers/editor.helper";
// hooks
@@ -91,23 +91,23 @@ export const InboxIssueMainContent: React.FC<Props> = observer((props) => {
setToast({
title: "Success!",
type: TOAST_TYPE.SUCCESS,
- message: "Issue deleted successfully",
+ message: "Work item deleted successfully",
});
captureIssueEvent({
eventName: ISSUE_DELETED,
- payload: { id: _issueId, state: "SUCCESS", element: "Issue detail page" },
+ payload: { id: _issueId, state: "SUCCESS", element: "Work item detail page" },
path: pathname,
});
} catch (error) {
- console.log("Error in deleting issue:", error);
+ console.log("Error in deleting work item:", error);
setToast({
title: "Error!",
type: TOAST_TYPE.ERROR,
- message: "Issue delete failed",
+ message: "Work item delete failed",
});
captureIssueEvent({
eventName: ISSUE_DELETED,
- payload: { id: _issueId, state: "FAILED", element: "Issue detail page" },
+ payload: { id: _issueId, state: "FAILED", element: "Work item detail page" },
path: pathname,
});
}
@@ -116,7 +116,7 @@ export const InboxIssueMainContent: React.FC<Props> = observer((props) => {
try {
await inboxIssue.updateIssue(data);
captureIssueEvent({
- eventName: "Inbox issue updated",
+ eventName: "Inbox work item updated",
payload: { ...data, state: "SUCCESS", element: "Inbox" },
updates: {
changed_property: Object.keys(data).join(","),
@@ -126,12 +126,12 @@ export const InboxIssueMainContent: React.FC<Props> = observer((props) => {
});
} catch (error) {
setToast({
- title: "Issue update failed",
+ title: "Work item update failed",
type: TOAST_TYPE.ERROR,
- message: "Issue update failed",
+ message: "Work item update failed",
});
captureIssueEvent({
- eventName: "Inbox issue updated",
+ eventName: "Inbox work item updated",
payload: { state: "SUCCESS", element: "Inbox" },
updates: {
changed_property: Object.keys(data).join(","),
@@ -146,14 +146,14 @@ export const InboxIssueMainContent: React.FC<Props> = observer((props) => {
await archiveIssue(workspaceSlug, projectId, issueId);
captureIssueEvent({
eventName: ISSUE_ARCHIVED,
- payload: { id: issueId, state: "SUCCESS", element: "Issue details page" },
+ payload: { id: issueId, state: "SUCCESS", element: "Work item details page" },
path: pathname,
});
} catch (error) {
console.log("Error in archiving issue:", error);
captureIssueEvent({
eventName: ISSUE_ARCHIVED,
- payload: { id: issueId, state: "FAILED", element: "Issue details page" },
+ payload: { id: issueId, state: "FAILED", element: "Work item details page" },
path: pathname,
});
}
diff --git a/web/core/components/inbox/content/root.tsx b/web/core/components/inbox/content/root.tsx
index e8d86a91f1..81be3d0e78 100644
--- a/web/core/components/inbox/content/root.tsx
+++ b/web/core/components/inbox/content/root.tsx
@@ -1,6 +1,7 @@
import { FC, useEffect, useState } from "react";
import { observer } from "mobx-react";
import useSWR from "swr";
+import { EUserPermissions, EUserPermissionsLevel } from "@plane/constants";
import { TNameDescriptionLoader } from "@plane/types";
// components
import { ContentWrapper } from "@plane/ui";
@@ -8,7 +9,6 @@ import { InboxIssueActionsHeader, InboxIssueMainContent } from "@/components/inb
// hooks
import { useProjectInbox, useUser, useUserPermissions } from "@/hooks/store";
import { useAppRouter } from "@/hooks/use-app-router";
-import { EUserPermissions, EUserPermissionsLevel } from "@/plane-web/constants/user-permissions";
type TInboxContentRoot = {
workspaceSlug: string;
diff --git a/web/core/components/inbox/inbox-filter/applied-filters/priority.tsx b/web/core/components/inbox/inbox-filter/applied-filters/priority.tsx
index 0802509049..ebbdd6ae5a 100644
--- a/web/core/components/inbox/inbox-filter/applied-filters/priority.tsx
+++ b/web/core/components/inbox/inbox-filter/applied-filters/priority.tsx
@@ -3,15 +3,16 @@
import { FC } from "react";
import { observer } from "mobx-react";
import { X } from "lucide-react";
+import { ISSUE_PRIORITIES } from "@plane/constants";
+import { useTranslation } from "@plane/i18n";
import { TIssuePriorities } from "@plane/types";
import { PriorityIcon, Tag } from "@plane/ui";
-// constants
-import { ISSUE_PRIORITIES } from "@/constants/issue";
// hooks
import { useProjectInbox } from "@/hooks/store";
export const InboxIssueAppliedFiltersPriority: FC = observer(() => {
// hooks
+ const { t } = useTranslation();
const { inboxFilters, handleInboxIssueFilters } = useProjectInbox();
// derived values
const filteredValues = inboxFilters?.priority || [];
@@ -26,7 +27,7 @@ export const InboxIssueAppliedFiltersPriority: FC = observer(() => {
if (filteredValues.length === 0) return <></>;
return (
<Tag>
- <div className="text-xs text-custom-text-200">Priority</div>
+ <div className="text-xs text-custom-text-200">{t("common.priority")}</div>
{filteredValues.map((value) => {
const optionDetail = currentOptionDetail(value);
if (!optionDetail) return <></>;
diff --git a/web/core/components/inbox/inbox-filter/applied-filters/status.tsx b/web/core/components/inbox/inbox-filter/applied-filters/status.tsx
index 3232e4a5a2..990f04dced 100644
--- a/web/core/components/inbox/inbox-filter/applied-filters/status.tsx
+++ b/web/core/components/inbox/inbox-filter/applied-filters/status.tsx
@@ -1,16 +1,18 @@
import { FC } from "react";
import { observer } from "mobx-react";
import { X } from "lucide-react";
-import { TInboxIssueStatus } from "@plane/types";
+import { INBOX_STATUS, TInboxIssueStatus } from "@plane/constants";
+import { useTranslation } from "@plane/i18n";
// constants
import { Tag } from "@plane/ui";
-import { INBOX_STATUS } from "@/constants/inbox";
// hooks
import { useProjectInbox } from "@/hooks/store";
+import { InboxStatusIcon } from "../../inbox-status-icon";
export const InboxIssueAppliedFiltersStatus: FC = observer(() => {
// hooks
const { inboxFilters, handleInboxIssueFilters } = useProjectInbox();
+ const { t } = useTranslation();
// derived values
const filteredValues = inboxFilters?.status || [];
const currentOptionDetail = (status: TInboxIssueStatus) => INBOX_STATUS.find((s) => s.status === status) || undefined;
@@ -28,9 +30,9 @@ export const InboxIssueAppliedFiltersStatus: FC = observer(() => {
return (
<div key={value} className="relative flex items-center gap-1 rounded bg-custom-background-80 p-1 text-xs">
<div className="w-3 h-3 flex-shrink-0 relative flex justify-center items-center overflow-hidden">
- <optionDetail.icon className={`w-3 h-3 ${optionDetail?.textColor(false)}`} />
+ <InboxStatusIcon type={optionDetail?.status} />
</div>
- <div className="text-xs truncate">{optionDetail?.title}</div>
+ <div className="text-xs truncate">{t(optionDetail?.i18n_title)}</div>
{handleFilterValue(optionDetail?.status).length >= 1 && (
<div
className="w-3 h-3 flex-shrink-0 relative flex justify-center items-center overflow-hidden cursor-pointer text-custom-text-300 hover:text-custom-text-200 transition-all"
diff --git a/web/core/components/inbox/inbox-filter/filters/priority.tsx b/web/core/components/inbox/inbox-filter/filters/priority.tsx
index 468e742ef5..ebb02ccb35 100644
--- a/web/core/components/inbox/inbox-filter/filters/priority.tsx
+++ b/web/core/components/inbox/inbox-filter/filters/priority.tsx
@@ -2,12 +2,13 @@
import { FC, useState } from "react";
import { observer } from "mobx-react";
+import { ISSUE_PRIORITIES } from "@plane/constants";
+import { useTranslation } from "@plane/i18n";
import { TIssuePriorities } from "@plane/types";
import { PriorityIcon } from "@plane/ui";
+// plane constants
// components
import { FilterHeader, FilterOption } from "@/components/issues";
-// constants
-import { ISSUE_PRIORITIES } from "@/constants/issue";
// hooks
import { useProjectInbox } from "@/hooks/store/use-project-inbox";
@@ -18,6 +19,7 @@ type Props = {
export const FilterPriority: FC<Props> = observer((props) => {
const { searchQuery } = props;
// hooks
+ const { t } = useTranslation();
const { inboxFilters, handleInboxIssueFilters } = useProjectInbox();
// states
const [previewEnabled, setPreviewEnabled] = useState(true);
@@ -32,7 +34,7 @@ export const FilterPriority: FC<Props> = observer((props) => {
return (
<>
<FilterHeader
- title={`Priority${appliedFiltersCount > 0 ? ` (${appliedFiltersCount})` : ""}`}
+ title={`${t("common.priority")}${appliedFiltersCount > 0 ? ` (${appliedFiltersCount})` : ""}`}
isPreviewEnabled={previewEnabled}
handleIsPreviewEnabled={() => setPreviewEnabled(!previewEnabled)}
/>
@@ -49,7 +51,7 @@ export const FilterPriority: FC<Props> = observer((props) => {
/>
))
) : (
- <p className="text-xs italic text-custom-text-400">No matches found</p>
+ <p className="text-xs italic text-custom-text-400">{t("common.search.no_matches_found")}</p>
)}
</div>
)}
diff --git a/web/core/components/inbox/inbox-filter/filters/status.tsx b/web/core/components/inbox/inbox-filter/filters/status.tsx
index b27f360da1..f590dfe4c8 100644
--- a/web/core/components/inbox/inbox-filter/filters/status.tsx
+++ b/web/core/components/inbox/inbox-filter/filters/status.tsx
@@ -1,13 +1,14 @@
import { FC, useState } from "react";
import { observer } from "mobx-react";
// types
-import { TInboxIssueStatus } from "@plane/types";
+import { INBOX_STATUS, TInboxIssueStatus } from "@plane/constants";
+import { useTranslation } from "@plane/i18n";
// components
import { FilterHeader, FilterOption } from "@/components/issues";
// constants
-import { INBOX_STATUS } from "@/constants/inbox";
// hooks
import { useProjectInbox } from "@/hooks/store/use-project-inbox";
+import { InboxStatusIcon } from "../../inbox-status-icon";
type Props = {
searchQuery: string;
@@ -17,6 +18,7 @@ export const FilterStatus: FC<Props> = observer((props) => {
const { searchQuery } = props;
// hooks
const { currentTab, inboxFilters, handleInboxIssueFilters } = useProjectInbox();
+ const { t } = useTranslation();
// states
const [previewEnabled, setPreviewEnabled] = useState(true);
// derived values
@@ -52,8 +54,8 @@ export const FilterStatus: FC<Props> = observer((props) => {
key={status.key}
isChecked={filterValue?.includes(status.status) ? true : false}
onClick={() => handleStatusFilterSelect(status.status)}
- icon={<status.icon className={`h-3.5 w-3.5 ${status?.textColor(false)}`} />}
- title={status.title}
+ icon={<InboxStatusIcon type={status.status} className={`h-3.5 w-3.5`} />}
+ title={t(status.i18n_title)}
/>
))
) : (
diff --git a/web/core/components/inbox/inbox-filter/sorting/order-by.tsx b/web/core/components/inbox/inbox-filter/sorting/order-by.tsx
index f1282c3c1a..d3dabbf863 100644
--- a/web/core/components/inbox/inbox-filter/sorting/order-by.tsx
+++ b/web/core/components/inbox/inbox-filter/sorting/order-by.tsx
@@ -3,9 +3,11 @@
import { FC } from "react";
import { observer } from "mobx-react";
import { ArrowDownWideNarrow, ArrowUpWideNarrow, Check, ChevronDown } from "lucide-react";
+import { INBOX_ISSUE_ORDER_BY_OPTIONS, INBOX_ISSUE_SORT_BY_OPTIONS } from "@plane/constants";
+import { useTranslation } from "@plane/i18n";
+import { TInboxIssueSortingOrderByKeys, TInboxIssueSortingSortByKeys } from "@plane/types";
import { CustomMenu, getButtonStyling } from "@plane/ui";
// constants
-import { INBOX_ISSUE_ORDER_BY_OPTIONS, INBOX_ISSUE_SORT_BY_OPTIONS } from "@/constants/inbox";
// helpers
import { cn } from "@/helpers/common.helper";
// hooks
@@ -14,6 +16,7 @@ import useSize from "@/hooks/use-window-size";
export const InboxIssueOrderByDropdown: FC = observer(() => {
// hooks
+ const { t } = useTranslation();
const windowSize = useSize();
const { inboxSorting, handleInboxIssueSorting } = useProjectInbox();
const orderByDetails =
@@ -31,8 +34,7 @@ export const InboxIssueOrderByDropdown: FC = observer(() => {
) : (
<ArrowDownWideNarrow className="size-3 " />
)}
- {orderByDetails?.label || "Order By"}
-
+ {t(orderByDetails?.i18n_label || "inbox_issue.order_by.created_at")}
<ChevronDown className="size-3" strokeWidth={2} />
</div>
);
@@ -47,9 +49,9 @@ export const InboxIssueOrderByDropdown: FC = observer(() => {
<CustomMenu.MenuItem
key={option.key}
className="flex items-center justify-between gap-2"
- onClick={() => handleInboxIssueSorting("order_by", option.key)}
+ onClick={() => handleInboxIssueSorting("order_by", option.key as TInboxIssueSortingOrderByKeys)}
>
- {option.label}
+ {t(option.i18n_label)}
{inboxSorting?.order_by?.includes(option.key) && <Check className="size-3" />}
</CustomMenu.MenuItem>
))}
@@ -58,9 +60,9 @@ export const InboxIssueOrderByDropdown: FC = observer(() => {
<CustomMenu.MenuItem
key={option.key}
className="flex items-center justify-between gap-2"
- onClick={() => handleInboxIssueSorting("sort_by", option.key)}
+ onClick={() => handleInboxIssueSorting("sort_by", option.key as TInboxIssueSortingSortByKeys)}
>
- {option.label}
+ {t(option.i18n_label)}
{inboxSorting?.sort_by?.includes(option.key) && <Check className="size-3" />}
</CustomMenu.MenuItem>
))}
diff --git a/web/core/components/inbox/inbox-issue-status.tsx b/web/core/components/inbox/inbox-issue-status.tsx
index f74693f768..8e7867a757 100644
--- a/web/core/components/inbox/inbox-issue-status.tsx
+++ b/web/core/components/inbox/inbox-issue-status.tsx
@@ -1,11 +1,14 @@
import React from "react";
import { observer } from "mobx-react";
// constants
-import { INBOX_STATUS } from "@/constants/inbox";
// helpers
+import { INBOX_STATUS } from "@plane/constants";
+import { useTranslation } from "@plane/i18n";
import { cn } from "@/helpers/common.helper";
+import { findHowManyDaysLeft } from "@/helpers/date-time.helper";
// store
import { IInboxIssueStore } from "@/store/inbox/inbox-issue.store";
+import { ICON_PROPERTIES, InboxStatusIcon } from "./inbox-status-icon";
type Props = {
inboxIssue: IInboxIssueStore;
@@ -15,28 +18,31 @@ type Props = {
export const InboxIssueStatus: React.FC<Props> = observer((props) => {
const { inboxIssue, iconSize = 16, showDescription = false } = props;
+ //hooks
+ const { t } = useTranslation();
// derived values
const inboxIssueStatusDetail = INBOX_STATUS.find((s) => s.status === inboxIssue.status);
const isSnoozedDatePassed = inboxIssue.status === 0 && new Date(inboxIssue.snoozed_till ?? "") < new Date();
if (!inboxIssueStatusDetail || isSnoozedDatePassed) return <></>;
- const description = inboxIssueStatusDetail.description(new Date(inboxIssue.snoozed_till ?? ""));
+ const description = t(inboxIssueStatusDetail.i18n_description(), {
+ days: findHowManyDaysLeft(new Date(inboxIssue.snoozed_till ?? "")),
+ });
+ const statusIcon = ICON_PROPERTIES[inboxIssue?.status];
return (
<div
className={cn(
- `relative flex flex-col gap-1 p-1.5 py-0.5 rounded ${inboxIssueStatusDetail.textColor(
+ `relative flex flex-col gap-1 p-1.5 py-0.5 rounded ${statusIcon.textColor(
isSnoozedDatePassed
- )} ${inboxIssueStatusDetail.bgColor(isSnoozedDatePassed)}`
+ )} ${statusIcon.bgColor(isSnoozedDatePassed)}`
)}
>
<div className={`flex items-center gap-1`}>
- <inboxIssueStatusDetail.icon size={iconSize} className="flex-shrink-0" />
+ <InboxStatusIcon type={inboxIssue?.status} size={iconSize} className="flex-shrink-0" renderColor={false} />
<div className="font-medium text-xs whitespace-nowrap">
- {inboxIssue?.status === 0 && inboxIssue?.snoozed_till
- ? inboxIssueStatusDetail.description(inboxIssue?.snoozed_till)
- : inboxIssueStatusDetail.title}
+ {inboxIssue?.status === 0 && inboxIssue?.snoozed_till ? description : t(inboxIssueStatusDetail.i18n_title)}
</div>
</div>
{showDescription && <div className="text-sm whitespace-nowrap">{description}</div>}
diff --git a/web/core/components/inbox/inbox-status-icon.tsx b/web/core/components/inbox/inbox-status-icon.tsx
new file mode 100644
index 0000000000..03c6acd6ce
--- /dev/null
+++ b/web/core/components/inbox/inbox-status-icon.tsx
@@ -0,0 +1,46 @@
+import { AlertTriangle, CheckCircle2, Clock, Copy, XCircle } from "lucide-react";
+import { TInboxIssueStatus, EInboxIssueStatus } from "@plane/constants";
+import { cn } from "@plane/utils";
+
+export const ICON_PROPERTIES = {
+ [EInboxIssueStatus.PENDING]: {
+ icon: AlertTriangle,
+ textColor: (snoozeDatePassed: boolean = false) => (snoozeDatePassed ? "" : "text-[#AB6400]"),
+ bgColor: (snoozeDatePassed: boolean = false) => (snoozeDatePassed ? "" : "bg-[#FFF7C2]"),
+ },
+ [EInboxIssueStatus.DECLINED]: {
+ icon: XCircle,
+ textColor: (snoozeDatePassed: boolean = false) => (snoozeDatePassed ? "" : "text-[#CE2C31]"),
+ bgColor: (snoozeDatePassed: boolean = false) => (snoozeDatePassed ? "" : "bg-[#FEEBEC]"),
+ },
+ [EInboxIssueStatus.SNOOZED]: {
+ icon: Clock,
+ textColor: (snoozeDatePassed: boolean = false) => (snoozeDatePassed ? "text-red-500" : "text-custom-text-400"),
+ bgColor: (snoozeDatePassed: boolean = false) => (snoozeDatePassed ? "bg-red-500/10" : "bg-[#E0E1E6]"),
+ },
+ [EInboxIssueStatus.ACCEPTED]: {
+ icon: CheckCircle2,
+ textColor: (snoozeDatePassed: boolean = false) => (snoozeDatePassed ? "" : "text-[#3E9B4F]"),
+ bgColor: (snoozeDatePassed: boolean = false) => (snoozeDatePassed ? "" : "bg-[#E9F6E9]"),
+ },
+ [EInboxIssueStatus.DUPLICATE]: {
+ icon: Copy,
+ textColor: (snoozeDatePassed: boolean = false) => (snoozeDatePassed ? "" : "text-custom-text-200"),
+ bgColor: (snoozeDatePassed: boolean = false) => (snoozeDatePassed ? "" : "bg-gray-500/10"),
+ },
+};
+export const InboxStatusIcon = ({
+ type,
+ size,
+ className,
+ renderColor = true,
+}: {
+ type: TInboxIssueStatus;
+ size?: number;
+ className?: string;
+ renderColor?: boolean;
+}) => {
+ if (type === undefined) return null;
+ const Icon = ICON_PROPERTIES[type];
+ return <Icon.icon size={size} className={cn(`w-3 h-3 ${renderColor && Icon?.textColor(false)}`, className)} />;
+};
diff --git a/web/core/components/inbox/modals/create-modal/create-root.tsx b/web/core/components/inbox/modals/create-modal/create-root.tsx
index 34c17e15b3..48b566c978 100644
--- a/web/core/components/inbox/modals/create-modal/create-root.tsx
+++ b/web/core/components/inbox/modals/create-modal/create-root.tsx
@@ -3,16 +3,16 @@
import { FC, FormEvent, useCallback, useEffect, useRef, useState } from "react";
import { observer } from "mobx-react";
import { usePathname } from "next/navigation";
-// editor
+// plane imports
+import { ETabIndices, ISSUE_CREATED } from "@plane/constants";
import { EditorRefApi } from "@plane/editor";
// types
+import { useTranslation } from "@plane/i18n";
import { TIssue } from "@plane/types";
import { Button, ToggleSwitch, TOAST_TYPE, setToast } from "@plane/ui";
// components
import { InboxIssueTitle, InboxIssueDescription, InboxIssueProperties } from "@/components/inbox/modals/create-modal";
// constants
-import { ISSUE_CREATED } from "@/constants/event-tracker";
-import { ETabIndices } from "@/constants/tab-indices";
// helpers
import { renderFormattedPayloadDate } from "@/helpers/date-time.helper";
import { getTabIndex } from "@/helpers/tab-indices.helper";
@@ -67,6 +67,7 @@ export const InboxIssueCreateRoot: FC<TInboxIssueCreateRoot> = observer((props)
const workspaceId = getWorkspaceBySlug(workspaceSlug)?.id;
const { isMobile } = usePlatformOS();
const { getProjectById } = useProject();
+ const { t } = useTranslation();
// states
const [createMore, setCreateMore] = useState<boolean>(false);
const [formSubmitting, setFormSubmitting] = useState(false);
@@ -179,7 +180,7 @@ export const InboxIssueCreateRoot: FC<TInboxIssueCreateRoot> = observer((props)
setToast({
type: TOAST_TYPE.SUCCESS,
title: `Success!`,
- message: "Issue created successfully.",
+ message: "Work item created successfully.",
});
})
.catch((error) => {
@@ -213,7 +214,7 @@ export const InboxIssueCreateRoot: FC<TInboxIssueCreateRoot> = observer((props)
<form ref={formRef} onSubmit={handleFormSubmit} className="flex flex-col w-full">
<div className="space-y-5 p-5 rounded-t-lg bg-custom-background-100">
<div className="flex items-center justify-between gap-2">
- <h3 className="text-xl font-medium text-custom-text-200">Create intake issue</h3>
+ <h3 className="text-xl font-medium text-custom-text-200">{t("inbox_issue.modal.title")}</h3>
{duplicateIssues?.length > 0 && (
<DeDupeButtonRoot
workspaceSlug={workspaceSlug}
@@ -251,7 +252,7 @@ export const InboxIssueCreateRoot: FC<TInboxIssueCreateRoot> = observer((props)
tabIndex={getIndex("create_more")}
>
<ToggleSwitch value={createMore} onChange={() => {}} size="sm" />
- <span className="text-xs">Create more</span>
+ <span className="text-xs">{t("create_more")}</span>
</div>
<div className="flex items-center gap-3">
<Button
@@ -271,7 +272,7 @@ export const InboxIssueCreateRoot: FC<TInboxIssueCreateRoot> = observer((props)
}}
tabIndex={getIndex("discard_button")}
>
- Discard
+ {t("discard")}
</Button>
<Button
variant="primary"
@@ -282,7 +283,7 @@ export const InboxIssueCreateRoot: FC<TInboxIssueCreateRoot> = observer((props)
disabled={isTitleLengthMoreThan255Character}
tabIndex={getIndex("submit_button")}
>
- {formSubmitting ? "Creating" : "Create Issue"}
+ {formSubmitting ? t("creating") : t("create_work_item")}
</Button>
</div>
</div>
diff --git a/web/core/components/inbox/modals/create-modal/issue-description.tsx b/web/core/components/inbox/modals/create-modal/issue-description.tsx
index 7f279e92a9..13b20b4946 100644
--- a/web/core/components/inbox/modals/create-modal/issue-description.tsx
+++ b/web/core/components/inbox/modals/create-modal/issue-description.tsx
@@ -2,8 +2,12 @@
import { FC, RefObject } from "react";
import { observer } from "mobx-react";
+// plane imports
+import { ETabIndices } from "@plane/constants";
// editor
import { EditorRefApi } from "@plane/editor";
+// i18n
+import { useTranslation } from "@plane/i18n";
// types
import { TIssue } from "@plane/types";
import { EFileAssetType } from "@plane/types/src/enums";
@@ -11,10 +15,8 @@ import { EFileAssetType } from "@plane/types/src/enums";
import { Loader } from "@plane/ui";
// components
import { RichTextEditor } from "@/components/editor/rich-text-editor/rich-text-editor";
-// constants
-import { ETabIndices } from "@/constants/tab-indices";
// helpers
-import { getDescriptionPlaceholder } from "@/helpers/issue.helper";
+import { getDescriptionPlaceholderI18n } from "@/helpers/issue.helper";
import { getTabIndex } from "@/helpers/tab-indices.helper";
// hooks
import { useProjectInbox } from "@/hooks/store";
@@ -51,6 +53,10 @@ export const InboxIssueDescription: FC<TInboxIssueDescription> = observer((props
onEnterKeyPress,
onAssetUpload,
} = props;
+
+ // i18n
+ const { t } = useTranslation();
+
// hooks
const { loader } = useProjectInbox();
const { isMobile } = usePlatformOS();
@@ -74,7 +80,7 @@ export const InboxIssueDescription: FC<TInboxIssueDescription> = observer((props
projectId={projectId}
dragDropEnabled={false}
onChange={(_description: object, description_html: string) => handleData("description_html", description_html)}
- placeholder={getDescriptionPlaceholder}
+ placeholder={(isFocused, description) => t(`${getDescriptionPlaceholderI18n(isFocused, description)}`)}
searchMentionCallback={async (payload) =>
await workspaceService.searchEntity(workspaceSlug?.toString() ?? "", {
...payload,
@@ -98,7 +104,7 @@ export const InboxIssueDescription: FC<TInboxIssueDescription> = observer((props
onAssetUpload?.(asset_id);
return asset_id;
} catch (error) {
- console.log("Error in uploading issue asset:", error);
+ console.log("Error in uploading work item asset:", error);
throw new Error("Asset upload failed. Please try again later.");
}
}}
diff --git a/web/core/components/inbox/modals/create-modal/issue-properties.tsx b/web/core/components/inbox/modals/create-modal/issue-properties.tsx
index ce37f07b1f..c5bcc965af 100644
--- a/web/core/components/inbox/modals/create-modal/issue-properties.tsx
+++ b/web/core/components/inbox/modals/create-modal/issue-properties.tsx
@@ -1,6 +1,8 @@
import { FC, useState } from "react";
import { observer } from "mobx-react";
import { LayoutPanelTop } from "lucide-react";
+// plane imports
+import { ETabIndices } from "@plane/constants";
import { ISearchIssueResponse, TIssue } from "@plane/types";
import { CustomMenu } from "@plane/ui";
// components
@@ -15,8 +17,6 @@ import {
} from "@/components/dropdowns";
import { ParentIssuesListModal } from "@/components/issues";
import { IssueLabelSelect } from "@/components/issues/select";
-// constants
-import { ETabIndices } from "@/constants/tab-indices";
// helpers
import { renderFormattedPayloadDate, getDate } from "@/helpers/date-time.helper";
import { getTabIndex } from "@/helpers/tab-indices.helper";
@@ -194,7 +194,7 @@ export const InboxIssueProperties: FC<TInboxIssueProperties> = observer((props)
>
<>
<CustomMenu.MenuItem className="!p-1" onClick={() => setParentIssueModalOpen(true)}>
- Change parent issue
+ Change parent work item
</CustomMenu.MenuItem>
<CustomMenu.MenuItem
className="!p-1"
@@ -203,7 +203,7 @@ export const InboxIssueProperties: FC<TInboxIssueProperties> = observer((props)
setSelectedParentIssue(undefined);
}}
>
- Remove parent issue
+ Remove parent work item
</CustomMenu.MenuItem>
</>
</CustomMenu>
diff --git a/web/core/components/inbox/modals/create-modal/issue-title.tsx b/web/core/components/inbox/modals/create-modal/issue-title.tsx
index f5c8f24273..cd645fb704 100644
--- a/web/core/components/inbox/modals/create-modal/issue-title.tsx
+++ b/web/core/components/inbox/modals/create-modal/issue-title.tsx
@@ -2,10 +2,11 @@
import { FC } from "react";
import { observer } from "mobx-react";
+// plane imports
+import { ETabIndices } from "@plane/constants";
+import { useTranslation } from "@plane/i18n";
import { TIssue } from "@plane/types";
import { Input } from "@plane/ui";
-// constants
-import { ETabIndices } from "@/constants/tab-indices";
// helpers
import { getTabIndex } from "@/helpers/tab-indices.helper";
// hooks
@@ -23,6 +24,7 @@ export const InboxIssueTitle: FC<TInboxIssueTitle> = observer((props) => {
const { isMobile } = usePlatformOS();
const { getIndex } = getTabIndex(ETabIndices.INTAKE_ISSUE_FORM, isMobile);
+ const { t } = useTranslation();
return (
<div className="space-y-1">
<Input
@@ -31,13 +33,13 @@ export const InboxIssueTitle: FC<TInboxIssueTitle> = observer((props) => {
type="text"
value={data?.name}
onChange={(e) => handleData("name", e.target.value)}
- placeholder="Title"
+ placeholder={t("title")}
className="w-full text-base"
tabIndex={getIndex("name")}
required
/>
{isTitleLengthMoreThan255Character && (
- <span className="text-xs text-red-500">Title should be less than 255 characters</span>
+ <span className="text-xs text-red-500">{t("title_should_be_less_than_255_characters")}</span>
)}
</div>
);
diff --git a/web/core/components/inbox/modals/decline-issue-modal.tsx b/web/core/components/inbox/modals/decline-issue-modal.tsx
index dd6b009e26..206eae71fe 100644
--- a/web/core/components/inbox/modals/decline-issue-modal.tsx
+++ b/web/core/components/inbox/modals/decline-issue-modal.tsx
@@ -1,5 +1,6 @@
import React, { useState } from "react";
// types
+import { useTranslation } from "@plane/i18n";
import type { TIssue } from "@plane/types";
// ui
import { AlertModalCore } from "@plane/ui";
@@ -19,6 +20,7 @@ export const DeclineIssueModal: React.FC<Props> = (props) => {
const [isDeclining, setIsDeclining] = useState(false);
// store hooks
const { getProjectById } = useProject();
+ const { t } = useTranslation();
// derived values
const projectDetails = data.project_id ? getProjectById(data?.project_id) : undefined;
@@ -38,11 +40,11 @@ export const DeclineIssueModal: React.FC<Props> = (props) => {
handleSubmit={handleDecline}
isSubmitting={isDeclining}
isOpen={isOpen}
- title="Decline issue"
+ title={t("inbox_issue.modals.decline.title")}
+ // TODO: Need to translate the confirmation message
content={
<>
- {" "}
- Are you sure you want to decline issue{" "}
+ Are you sure you want to decline work item{" "}
<span className="break-words font-medium text-custom-text-100">
{projectDetails?.identifier}-{data?.sequence_id}
</span>
@@ -50,8 +52,8 @@ export const DeclineIssueModal: React.FC<Props> = (props) => {
</>
}
primaryButtonText={{
- loading: "Declining",
- default: "Decline",
+ loading: t("declining"),
+ default: t("decline"),
}}
/>
);
diff --git a/web/core/components/inbox/modals/delete-issue-modal.tsx b/web/core/components/inbox/modals/delete-issue-modal.tsx
index 8cdabef5b8..cd76aae63f 100644
--- a/web/core/components/inbox/modals/delete-issue-modal.tsx
+++ b/web/core/components/inbox/modals/delete-issue-modal.tsx
@@ -1,11 +1,12 @@
import React, { useState } from "react";
import { observer } from "mobx-react";
// types
+import { PROJECT_ERROR_MESSAGES } from "@plane/constants";
+import { useTranslation } from "@plane/i18n";
import type { TIssue } from "@plane/types";
// ui
import { AlertModalCore, setToast, TOAST_TYPE } from "@plane/ui";
// constants
-import { PROJECT_ERROR_MESSAGES } from "@/constants/project";
// hooks
import { useProject } from "@/hooks/store";
@@ -21,6 +22,7 @@ export const DeleteInboxIssueModal: React.FC<Props> = observer(({ isOpen, onClos
const [isDeleting, setIsDeleting] = useState(false);
// store hooks
const { getProjectById } = useProject();
+ const { t } = useTranslation();
// derived values
const projectDetails = data.project_id ? getProjectById(data?.project_id) : undefined;
@@ -35,19 +37,19 @@ export const DeleteInboxIssueModal: React.FC<Props> = observer(({ isOpen, onClos
.then(() => {
setToast({
type: TOAST_TYPE.SUCCESS,
- title: "Success!",
- message: `Issue deleted successfully`,
+ title: `${t("success")!}`,
+ message: `${t("inbox_issue.modals.delete.success")!}`,
});
})
.catch((errors) => {
- const isPermissionError = errors?.error === "Only admin or creator can delete the issue";
+ const isPermissionError = errors?.error === "Only admin or creator can delete the work item";
const currentError = isPermissionError
? PROJECT_ERROR_MESSAGES.permissionError
: PROJECT_ERROR_MESSAGES.issueDeleteError;
setToast({
- title: currentError.title,
+ title: t(currentError.i18n_title),
type: TOAST_TYPE.ERROR,
- message: currentError.message,
+ message: currentError.i18n_message && t(currentError.i18n_message),
});
})
.finally(() => handleClose());
@@ -59,14 +61,15 @@ export const DeleteInboxIssueModal: React.FC<Props> = observer(({ isOpen, onClos
handleSubmit={handleDelete}
isSubmitting={isDeleting}
isOpen={isOpen}
- title="Delete issue"
+ title={t("inbox_issue.modals.delete.title")}
+ // TODO: Need to translate the confirmation message
content={
<>
- Are you sure you want to delete issue{" "}
+ Are you sure you want to delete work item{" "}
<span className="break-words font-medium text-custom-text-100">
{projectDetails?.identifier}-{data?.sequence_id}
</span>
- {""}? The issue will only be deleted from the intake and this action cannot be undone.
+ {""}? The work item will only be deleted from the intake and this action cannot be undone.
</>
}
/>
diff --git a/web/core/components/inbox/modals/select-duplicate.tsx b/web/core/components/inbox/modals/select-duplicate.tsx
index 9bcefad490..d0484ce66f 100644
--- a/web/core/components/inbox/modals/select-duplicate.tsx
+++ b/web/core/components/inbox/modals/select-duplicate.tsx
@@ -4,18 +4,16 @@ import React, { useEffect, useState } from "react";
import { useParams } from "next/navigation";
import { Search } from "lucide-react";
import { Combobox, Dialog, Transition } from "@headlessui/react";
-// icons
-// components
-// types
+// plane imports
+import { useTranslation } from "@plane/i18n";
import { ISearchIssueResponse } from "@plane/types";
-// ui
import { Loader, TOAST_TYPE, setToast } from "@plane/ui";
-import { EmptyState } from "@/components/empty-state";
-// constants
-import { EmptyStateType } from "@/constants/empty-state";
+// components
+import { SimpleEmptyState } from "@/components/empty-state";
// hooks
import { useProject } from "@/hooks/store";
import useDebounce from "@/hooks/use-debounce";
+import { useResolvedAssetPath } from "@/hooks/use-resolved-asset-path";
// services
import { ProjectService } from "@/services/project";
@@ -30,18 +28,19 @@ const projectService = new ProjectService();
export const SelectDuplicateInboxIssueModal: React.FC<Props> = (props) => {
const { isOpen, onClose, onSubmit, value } = props;
-
- const [query, setQuery] = useState("");
-
+ // router
const { workspaceSlug, projectId, issueId } = useParams();
-
- // hooks
- const { getProjectById } = useProject();
-
+ // states
+ const [query, setQuery] = useState("");
const [issues, setIssues] = useState<ISearchIssueResponse[]>([]);
const [isSearching, setIsSearching] = useState(false);
-
+ // hooks
+ const { getProjectById } = useProject();
+ const { t } = useTranslation();
+ // derived values
const debouncedSearchTerm: string = useDebounce(query, 500);
+ const searchResolvedPath = useResolvedAssetPath({ basePath: "/empty-state/search/search" });
+ const issuesResolvedPath = useResolvedAssetPath({ basePath: "/empty-state/search/issues" });
useEffect(() => {
if (!isOpen || !workspaceSlug || !projectId) return;
@@ -75,7 +74,9 @@ export const SelectDuplicateInboxIssueModal: React.FC<Props> = (props) => {
const issueList =
filteredIssues.length > 0 ? (
<li className="p-2">
- {query === "" && <h2 className="mb-2 mt-4 px-3 text-xs font-semibold text-custom-text-100">Select issue</h2>}
+ {query === "" && (
+ <h2 className="mb-2 mt-4 px-3 text-xs font-semibold text-custom-text-100">Select work item</h2>
+ )}
<ul className="text-sm text-custom-text-100">
{filteredIssues.map((issue) => {
const stateColor = issue.state__color || "";
@@ -110,12 +111,11 @@ export const SelectDuplicateInboxIssueModal: React.FC<Props> = (props) => {
</li>
) : (
<div className="flex flex-col items-center justify-center px-3 py-8 text-center">
- <EmptyState
- type={
- query === "" ? EmptyStateType.ISSUE_RELATION_EMPTY_STATE : EmptyStateType.ISSUE_RELATION_SEARCH_EMPTY_STATE
- }
- layout="screen-simple"
- />
+ {query === "" ? (
+ <SimpleEmptyState title={t("issue_relation.empty_state.no_issues.title")} assetPath={issuesResolvedPath} />
+ ) : (
+ <SimpleEmptyState title={t("issue_relation.empty_state.search.title")} assetPath={searchResolvedPath} />
+ )}
</div>
);
diff --git a/web/core/components/inbox/modals/snooze-issue-modal.tsx b/web/core/components/inbox/modals/snooze-issue-modal.tsx
index 8d6931438f..1d64ebef3e 100644
--- a/web/core/components/inbox/modals/snooze-issue-modal.tsx
+++ b/web/core/components/inbox/modals/snooze-issue-modal.tsx
@@ -4,6 +4,7 @@ import { FC, Fragment, useState } from "react";
import { DayPicker, getDefaultClassNames } from "react-day-picker";
import { Dialog, Transition } from "@headlessui/react";
// ui
+import { useTranslation } from "@plane/i18n";
import { Button } from "@plane/ui";
export type InboxIssueSnoozeModalProps = {
@@ -17,6 +18,8 @@ export const InboxIssueSnoozeModal: FC<InboxIssueSnoozeModalProps> = (props) =>
const { isOpen, handleClose, value, onConfirm } = props;
// states
const [date, setDate] = useState(value || new Date());
+ //hooks
+ const { t } = useTranslation();
const defaultClassNames = getDefaultClassNames();
@@ -70,7 +73,7 @@ export const InboxIssueSnoozeModal: FC<InboxIssueSnoozeModalProps> = (props) =>
onConfirm(date);
}}
>
- Snooze
+ {t("inbox_issue.actions.snooze")}
</Button>
</div>
</Dialog.Panel>
diff --git a/web/core/components/inbox/root.tsx b/web/core/components/inbox/root.tsx
index 5d5617bb39..010b76e96a 100644
--- a/web/core/components/inbox/root.tsx
+++ b/web/core/components/inbox/root.tsx
@@ -1,18 +1,19 @@
import { FC, useEffect, useState } from "react";
import { observer } from "mobx-react";
import { PanelLeft } from "lucide-react";
+// plane imports
+import { useTranslation } from "@plane/i18n";
import { Intake } from "@plane/ui";
// components
-import { EmptyState } from "@/components/empty-state";
+import { SimpleEmptyState } from "@/components/empty-state";
import { InboxSidebar, InboxContentRoot } from "@/components/inbox";
import { InboxLayoutLoader } from "@/components/ui";
-// constants
-import { EmptyStateType } from "@/constants/empty-state";
// helpers
import { cn } from "@/helpers/common.helper";
import { EInboxIssueCurrentTab } from "@/helpers/inbox.helper";
// hooks
import { useProjectInbox } from "@/hooks/store";
+import { useResolvedAssetPath } from "@/hooks/use-resolved-asset-path";
type TInboxIssueRoot = {
workspaceSlug: string;
@@ -26,8 +27,12 @@ export const InboxIssueRoot: FC<TInboxIssueRoot> = observer((props) => {
const { workspaceSlug, projectId, inboxIssueId, inboxAccessible, navigationTab } = props;
// states
const [isMobileSidebar, setIsMobileSidebar] = useState(true);
+ // plane hooks
+ const { t } = useTranslation();
// hooks
const { loader, error, currentTab, handleCurrentTab, fetchInboxIssues } = useProjectInbox();
+ // derived values
+ const resolvedPath = useResolvedAssetPath({ basePath: "/empty-state/intake/issue-detail" });
useEffect(() => {
if (!inboxAccessible || !workspaceSlug || !projectId) return;
@@ -96,7 +101,7 @@ export const InboxIssueRoot: FC<TInboxIssueRoot> = observer((props) => {
/>
) : (
<div className="w-full h-full relative flex justify-center items-center">
- <EmptyState type={EmptyStateType.INBOX_DETAIL_EMPTY_STATE} layout="screen-simple" />
+ <SimpleEmptyState title={t("inbox_issue.empty_state.detail.title")} assetPath={resolvedPath} />
</div>
)}
</div>
diff --git a/web/core/components/inbox/sidebar/root.tsx b/web/core/components/inbox/sidebar/root.tsx
index b8c86e0dee..e40359087e 100644
--- a/web/core/components/inbox/sidebar/root.tsx
+++ b/web/core/components/inbox/sidebar/root.tsx
@@ -2,14 +2,14 @@
import { FC, useCallback, useEffect, useRef, useState } from "react";
import { observer } from "mobx-react";
-import { TInboxIssueCurrentTab } from "@plane/types";
+// plane imports
+import { TInboxIssueCurrentTab } from "@plane/constants";
+import { useTranslation } from "@plane/i18n";
import { Header, Loader, EHeaderVariant } from "@plane/ui";
// components
-import { EmptyState } from "@/components/empty-state";
+import { SimpleEmptyState } from "@/components/empty-state";
import { FiltersRoot, InboxIssueAppliedFilters, InboxIssueList } from "@/components/inbox";
import { InboxSidebarLoader } from "@/components/ui";
-// constants
-import { EmptyStateType } from "@/constants/empty-state";
// helpers
import { cn } from "@/helpers/common.helper";
import { EInboxIssueCurrentTab } from "@/helpers/inbox.helper";
@@ -17,6 +17,7 @@ import { EInboxIssueCurrentTab } from "@/helpers/inbox.helper";
import { useProject, useProjectInbox } from "@/hooks/store";
import { useAppRouter } from "@/hooks/use-app-router";
import { useIntersectionObserver } from "@/hooks/use-intersection-observer";
+import { useResolvedAssetPath } from "@/hooks/use-resolved-asset-path";
type IInboxSidebarProps = {
workspaceSlug: string;
@@ -25,22 +26,26 @@ type IInboxSidebarProps = {
setIsMobileSidebar: (value: boolean) => void;
};
-const tabNavigationOptions: { key: TInboxIssueCurrentTab; label: string }[] = [
+const tabNavigationOptions: { key: TInboxIssueCurrentTab; i18n_label: string }[] = [
{
key: EInboxIssueCurrentTab.OPEN,
- label: "Open",
+ i18n_label: "inbox_issue.tabs.open",
},
{
key: EInboxIssueCurrentTab.CLOSED,
- label: "Closed",
+ i18n_label: "inbox_issue.tabs.closed",
},
];
export const InboxSidebar: FC<IInboxSidebarProps> = observer((props) => {
const { workspaceSlug, projectId, inboxIssueId, setIsMobileSidebar } = props;
+ // router
+ const router = useAppRouter();
// ref
const containerRef = useRef<HTMLDivElement>(null);
const [elementRef, setElementRef] = useState<HTMLDivElement | null>(null);
+ // plane hooks
+ const { t } = useTranslation();
// store
const { currentProjectDetails } = useProject();
const {
@@ -52,8 +57,11 @@ export const InboxSidebar: FC<IInboxSidebarProps> = observer((props) => {
fetchInboxPaginationIssues,
getAppliedFiltersCount,
} = useProjectInbox();
-
- const router = useAppRouter();
+ // derived values
+ const sidebarAssetPath = useResolvedAssetPath({ basePath: "/empty-state/intake/intake-issue" });
+ const sidebarFilterAssetPath = useResolvedAssetPath({
+ basePath: "/empty-state/intake/filter-issue",
+ });
const fetchNextPages = useCallback(() => {
if (!workspaceSlug || !projectId) return;
@@ -91,7 +99,7 @@ export const InboxSidebar: FC<IInboxSidebarProps> = observer((props) => {
}
}}
>
- <div>{option?.label}</div>
+ <div>{t(option?.i18n_label)}</div>
{option?.key === "open" && currentTab === option?.key && (
<div className="rounded-full p-1.5 py-0.5 bg-custom-primary-100/20 text-custom-primary-100 text-xs font-semibold">
{inboxIssuePaginationInfo?.total_results || 0}
@@ -128,16 +136,25 @@ export const InboxSidebar: FC<IInboxSidebarProps> = observer((props) => {
/>
) : (
<div className="flex items-center justify-center h-full w-full">
- <EmptyState
- type={
- getAppliedFiltersCount > 0
- ? EmptyStateType.INBOX_SIDEBAR_FILTER_EMPTY_STATE
- : currentTab === EInboxIssueCurrentTab.OPEN
- ? EmptyStateType.INBOX_SIDEBAR_OPEN_TAB
- : EmptyStateType.INBOX_SIDEBAR_CLOSED_TAB
- }
- layout="screen-simple"
- />
+ {getAppliedFiltersCount > 0 ? (
+ <SimpleEmptyState
+ title={t("inbox_issue.empty_state.sidebar_filter.title")}
+ description={t("inbox_issue.empty_state.sidebar_filter.description")}
+ assetPath={sidebarFilterAssetPath}
+ />
+ ) : currentTab === EInboxIssueCurrentTab.OPEN ? (
+ <SimpleEmptyState
+ title={t("inbox_issue.empty_state.sidebar_open_tab.title")}
+ description={t("inbox_issue.empty_state.sidebar_open_tab.description")}
+ assetPath={sidebarAssetPath}
+ />
+ ) : (
+ <SimpleEmptyState
+ title={t("inbox_issue.empty_state.sidebar_closed_tab.title")}
+ description={t("inbox_issue.empty_state.sidebar_closed_tab.description")}
+ assetPath={sidebarAssetPath}
+ />
+ )}
</div>
)}
<div ref={setElementRef}>
diff --git a/web/core/components/integration/github/import-confirm.tsx b/web/core/components/integration/github/import-confirm.tsx
index 84870d73a0..94b25a2a20 100644
--- a/web/core/components/integration/github/import-confirm.tsx
+++ b/web/core/components/integration/github/import-confirm.tsx
@@ -17,7 +17,7 @@ type Props = {
export const GithubImportConfirm: FC<Props> = ({ handleStepChange, watch }) => (
<div className="mt-6">
<h4 className="font-medium text-custom-text-200">
- You are about to import issues from {watch("github").full_name}. Click on {'"'}Confirm & Import{'" '}
+ You are about to import work items from {watch("github").full_name}. Click on {'"'}Confirm & Import{'" '}
to complete the process.
</h4>
<div className="mt-6 flex items-center justify-between">
diff --git a/web/core/components/integration/github/import-data.tsx b/web/core/components/integration/github/import-data.tsx
index ca2dac9559..75226e7882 100644
--- a/web/core/components/integration/github/import-data.tsx
+++ b/web/core/components/integration/github/import-data.tsx
@@ -43,7 +43,7 @@ export const GithubImportData: FC<Props> = observer((props) => {
<div className="col-span-12 sm:col-span-8">
<h4 className="font-semibold">Select Repository</h4>
<p className="text-xs text-custom-text-200">
- Select the repository that you want the issues to be imported from.
+ Select the repository that you want the work items to be imported from.
</p>
</div>
<div className="col-span-12 sm:col-span-4">
@@ -69,7 +69,7 @@ export const GithubImportData: FC<Props> = observer((props) => {
<div className="grid grid-cols-12 gap-4 sm:gap-16">
<div className="col-span-12 sm:col-span-8">
<h4 className="font-semibold">Select Project</h4>
- <p className="text-xs text-custom-text-200">Select the project to import the issues to.</p>
+ <p className="text-xs text-custom-text-200">Select the project to import the work item to.</p>
</div>
<div className="col-span-12 sm:col-span-4">
{workspaceProjectIds && (
@@ -93,8 +93,8 @@ export const GithubImportData: FC<Props> = observer((props) => {
</div>
<div className="grid grid-cols-12 gap-4 sm:gap-16">
<div className="col-span-12 sm:col-span-8">
- <h4 className="font-semibold">Sync Issues</h4>
- <p className="text-xs text-custom-text-200">Set whether you want to sync the issues or not.</p>
+ <h4 className="font-semibold">Sync work item</h4>
+ <p className="text-xs text-custom-text-200">Set whether you want to sync the work items or not.</p>
</div>
<div className="col-span-12 sm:col-span-4">
<Controller
diff --git a/web/core/components/integration/github/repo-details.tsx b/web/core/components/integration/github/repo-details.tsx
index 7c5a9a3205..5d58ab4c95 100644
--- a/web/core/components/integration/github/repo-details.tsx
+++ b/web/core/components/integration/github/repo-details.tsx
@@ -65,7 +65,7 @@ export const GithubRepoDetails: FC<Props> = ({ selectedRepo, handleStepChange, s
<div className="mt-4 flex gap-16">
<div className="flex-shrink-0 text-center">
<p className="text-3xl font-bold">{repoInfo.issue_count}</p>
- <h6 className="text-sm text-custom-text-200">Issues</h6>
+ <h6 className="text-sm text-custom-text-200">Work items</h6>
</div>
<div className="flex-shrink-0 text-center">
<p className="text-3xl font-bold">{repoInfo.labels}</p>
@@ -79,7 +79,7 @@ export const GithubRepoDetails: FC<Props> = ({ selectedRepo, handleStepChange, s
</div>
) : (
<div>
- <h5>We didn{"'"}t find any issue in this repository.</h5>
+ <h5>We didn{"'"}t find any work item in this repository.</h5>
</div>
)
) : (
diff --git a/web/core/components/integration/github/root.tsx b/web/core/components/integration/github/root.tsx
index c1160ba58d..53df6c11f2 100644
--- a/web/core/components/integration/github/root.tsx
+++ b/web/core/components/integration/github/root.tsx
@@ -64,7 +64,7 @@ const integrationWorkflowData = [
key: "import-data",
icon: UploadCloud,
},
- { title: "Issues", key: "repo-details", icon: List },
+ { title: "Work item", key: "repo-details", icon: List },
{
title: "Users",
key: "import-users",
diff --git a/web/core/components/integration/guide.tsx b/web/core/components/integration/guide.tsx
index da751cde8c..7cce8df860 100644
--- a/web/core/components/integration/guide.tsx
+++ b/web/core/components/integration/guide.tsx
@@ -8,26 +8,41 @@ import { useParams, useSearchParams } from "next/navigation";
import useSWR, { mutate } from "swr";
// icons
import { RefreshCw } from "lucide-react";
+// plane imports
+import { IMPORTERS_LIST } from "@plane/constants";
+import { useTranslation } from "@plane/i18n";
// types
import { IImporterService } from "@plane/types";
// ui
import { Button } from "@plane/ui";
// components
-import { EmptyState } from "@/components/empty-state";
import { DeleteImportModal, GithubImporterRoot, JiraImporterRoot, SingleImport } from "@/components/integration";
import { ImportExportSettingsLoader } from "@/components/ui";
// constants
-import { EmptyStateType } from "@/constants/empty-state";
import { IMPORTER_SERVICES_LIST } from "@/constants/fetch-keys";
-import { IMPORTERS_LIST } from "@/constants/workspace";
// hooks
import { useUser } from "@/hooks/store";
+// assets
+import GithubLogo from "@/public/services/github.png";
+import JiraLogo from "@/public/services/jira.svg";
// services
import { IntegrationService } from "@/services/integrations";
// services
const integrationService = new IntegrationService();
+const getImporterLogo = (provider: string) => {
+ switch (provider) {
+ case "github":
+ return GithubLogo;
+ case "jira":
+ return JiraLogo;
+ default:
+ return "";
+ }
+};
+
+// FIXME: [Deprecated] Remove this component
const IntegrationGuide = observer(() => {
// states
const [refreshing, setRefreshing] = useState(false);
@@ -40,6 +55,8 @@ const IntegrationGuide = observer(() => {
// store hooks
const { data: currentUser } = useUser();
+ const { t } = useTranslation();
+
const { data: importerServices } = useSWR(
workspaceSlug ? IMPORTER_SERVICES_LIST(workspaceSlug as string) : null,
workspaceSlug ? () => integrationService.getImporterServicesList(workspaceSlug as string) : null
@@ -65,8 +82,8 @@ const IntegrationGuide = observer(() => {
<div className="h-full w-full space-y-1">
<div className="text-lg font-medium">Relocation Guide</div>
<div className="text-sm">
- You can now transfer all the issues that you{"'"}ve created in other tracking
- services. This tool will guide you to relocate the issue to Plane.
+ You can now transfer all the work items that you{"'"}ve created in other tracking
+ services. This tool will guide you to relocate the work item to Plane.
</div>
</div>
<a
@@ -87,11 +104,16 @@ const IntegrationGuide = observer(() => {
>
<div className="flex items-start gap-4">
<div className="relative h-10 w-10 flex-shrink-0">
- <Image src={service.logo} layout="fill" objectFit="cover" alt={`${service.title} Logo`} />
+ <Image
+ src={getImporterLogo(service?.provider)}
+ layout="fill"
+ objectFit="cover"
+ alt={`${t(service.i18n_title)} Logo`}
+ />
</div>
<div>
- <h3 className="flex items-center gap-4 text-sm font-medium">{service.title}</h3>
- <p className="text-sm tracking-tight text-custom-text-200">{service.description}</p>
+ <h3 className="flex items-center gap-4 text-sm font-medium">{t(service.i18n_title)}</h3>
+ <p className="text-sm tracking-tight text-custom-text-200">{t(service.i18n_description)}</p>
</div>
</div>
<div className="flex-shrink-0">
@@ -137,7 +159,7 @@ const IntegrationGuide = observer(() => {
</div>
) : (
<div className="flex h-full w-full items-center justify-center">
- <EmptyState type={EmptyStateType.WORKSPACE_SETTINGS_IMPORT} size="sm" />
+ {/* <EmptyState type={EmptyStateType.WORKSPACE_SETTINGS_IMPORT} size="sm" /> */}
</div>
)
) : (
diff --git a/web/core/components/integration/jira/confirm-import.tsx b/web/core/components/integration/jira/confirm-import.tsx
index 85d595181e..efb26afe12 100644
--- a/web/core/components/integration/jira/confirm-import.tsx
+++ b/web/core/components/integration/jira/confirm-import.tsx
@@ -22,7 +22,7 @@ export const JiraConfirmImport: React.FC = () => {
<div className="col-span-1 flex items-center justify-between">
<div>
<h4 className="mb-2 text-lg font-semibold">{watch("data.total_issues")}</h4>
- <p className="text-sm text-custom-text-200">Issues</p>
+ <p className="text-sm text-custom-text-200">Work items</p>
</div>
<div>
<h4 className="mb-2 text-lg font-semibold">{watch("data.total_states")}</h4>
diff --git a/web/core/components/integration/jira/give-details.tsx b/web/core/components/integration/jira/give-details.tsx
index 4e96565512..f26318e3ac 100644
--- a/web/core/components/integration/jira/give-details.tsx
+++ b/web/core/components/integration/jira/give-details.tsx
@@ -66,7 +66,7 @@ export const JiraGetImportDetail: React.FC = observer(() => {
<div className="grid grid-cols-1 gap-10 md:grid-cols-2">
<div className="col-span-1">
<h3 className="font-semibold">Jira Project Key</h3>
- <p className="text-sm text-custom-text-200">If XXX-123 is your issue, then enter XXX</p>
+ <p className="text-sm text-custom-text-200">If XXX-123 is your work item, then enter XXX</p>
</div>
<div className="col-span-1">
<Controller
diff --git a/web/core/components/integration/jira/jira-project-detail.tsx b/web/core/components/integration/jira/jira-project-detail.tsx
index 3a1d7ff81a..e1808ccac1 100644
--- a/web/core/components/integration/jira/jira-project-detail.tsx
+++ b/web/core/components/integration/jira/jira-project-detail.tsx
@@ -130,7 +130,7 @@ export const JiraProjectDetail: React.FC<Props> = (props) => {
<div className="col-span-1 flex items-center justify-between">
<div>
<h4 className="mb-2 text-lg font-semibold">{projectInfo?.issues}</h4>
- <p className="text-sm text-custom-text-200">Issues</p>
+ <p className="text-sm text-custom-text-200">Work items</p>
</div>
<div>
<h4 className="mb-2 text-lg font-semibold">{projectInfo?.states}</h4>
diff --git a/web/core/components/integration/single-import.tsx b/web/core/components/integration/single-import.tsx
index 08a9ebdfc1..6be8c02c9a 100644
--- a/web/core/components/integration/single-import.tsx
+++ b/web/core/components/integration/single-import.tsx
@@ -1,12 +1,15 @@
"use client";
-// ui
+import { observer } from "mobx-react";
import { Trash2 } from "lucide-react";
+// plane imports
+import { IMPORTERS_LIST } from "@plane/constants";
+import { useTranslation } from "@plane/i18n";
import { IImporterService } from "@plane/types";
import { CustomMenu } from "@plane/ui";
// icons
// helpers
-import { IMPORTERS_LIST } from "@/constants/workspace";
+
import { renderFormattedDate } from "@/helpers/date-time.helper";
// types
// constants
@@ -17,41 +20,47 @@ type Props = {
handleDelete: () => void;
};
-export const SingleImport: React.FC<Props> = ({ service, refreshing, handleDelete }) => (
- <div className="flex items-center justify-between gap-2 px-4 py-3">
- <div>
- <h4 className="flex items-center gap-2 text-sm">
- <span>
- Import from{" "}
- <span className="font-medium">{IMPORTERS_LIST.find((i) => i.provider === service.service)?.title}</span> to{" "}
+export const SingleImport: React.FC<Props> = observer(({ service, refreshing, handleDelete }) => {
+ const { t } = useTranslation();
+
+ const importer = IMPORTERS_LIST.find((i) => i.provider === service.service);
+ return (
+ <div className="flex items-center justify-between gap-2 px-4 py-3">
+ <div>
+ <h4 className="flex items-center gap-2 text-sm">
+ {importer && (
+ <span>
+ Import from <span className="font-medium">{t(importer.i18n_title)}</span> to{" "}
+ </span>
+ )}
<span className="font-medium">{service.project_detail.name}</span>
- </span>
- <span
- className={`rounded px-2 py-0.5 text-xs capitalize ${
- service.status === "completed"
- ? "bg-green-500/20 text-green-500"
- : service.status === "processing"
- ? "bg-yellow-500/20 text-yellow-500"
- : service.status === "failed"
- ? "bg-red-500/20 text-red-500"
- : ""
- }`}
- >
- {refreshing ? "Refreshing..." : service.status}
- </span>
- </h4>
- <div className="mt-2 flex items-center gap-2 text-xs text-custom-text-200">
- <span>{renderFormattedDate(service.created_at)}</span>|
- <span>Imported by {service.initiated_by_detail?.display_name}</span>
+ <span
+ className={`rounded px-2 py-0.5 text-xs capitalize ${
+ service.status === "completed"
+ ? "bg-green-500/20 text-green-500"
+ : service.status === "processing"
+ ? "bg-yellow-500/20 text-yellow-500"
+ : service.status === "failed"
+ ? "bg-red-500/20 text-red-500"
+ : ""
+ }`}
+ >
+ {refreshing ? "Refreshing..." : service.status}
+ </span>
+ </h4>
+ <div className="mt-2 flex items-center gap-2 text-xs text-custom-text-200">
+ <span>{renderFormattedDate(service.created_at)}</span>|
+ <span>Imported by {service.initiated_by_detail?.display_name}</span>
+ </div>
</div>
+ <CustomMenu ellipsis>
+ <CustomMenu.MenuItem onClick={handleDelete}>
+ <span className="flex items-center justify-start gap-2">
+ <Trash2 className="h-3.5 w-3.5" />
+ Delete import
+ </span>
+ </CustomMenu.MenuItem>
+ </CustomMenu>
</div>
- <CustomMenu ellipsis>
- <CustomMenu.MenuItem onClick={handleDelete}>
- <span className="flex items-center justify-start gap-2">
- <Trash2 className="h-3.5 w-3.5" />
- Delete import
- </span>
- </CustomMenu.MenuItem>
- </CustomMenu>
- </div>
-);
+ );
+});
diff --git a/web/core/components/integration/single-integration-card.tsx b/web/core/components/integration/single-integration-card.tsx
index 25392d1135..eb1de3ed30 100644
--- a/web/core/components/integration/single-integration-card.tsx
+++ b/web/core/components/integration/single-integration-card.tsx
@@ -6,6 +6,7 @@ import Image from "next/image";
import { useParams } from "next/navigation";
import useSWR, { mutate } from "swr";
import { CheckCircle } from "lucide-react";
+import { EUserPermissions, EUserPermissionsLevel } from "@plane/constants";
import { IAppIntegration, IWorkspaceIntegration } from "@plane/types";
// ui
import { Button, Loader, Tooltip, TOAST_TYPE, setToast } from "@plane/ui";
@@ -15,7 +16,6 @@ import { WORKSPACE_INTEGRATIONS } from "@/constants/fetch-keys";
import { useInstance, useUserPermissions } from "@/hooks/store";
import useIntegrationPopup from "@/hooks/use-integration-popup";
import { usePlatformOS } from "@/hooks/use-platform-os";
-import { EUserPermissions, EUserPermissionsLevel } from "@/plane-web/constants/user-permissions";
// services
// icons
import GithubLogo from "@/public/services/github.png";
@@ -30,12 +30,12 @@ const integrationDetails: { [key: string]: any } = {
github: {
logo: GithubLogo,
installed: "Activate GitHub on individual projects to sync with specific repositories.",
- notInstalled: "Connect with GitHub with your Plane workspace to sync project issues.",
+ notInstalled: "Connect with GitHub with your Plane workspace to sync project work items.",
},
slack: {
logo: SlackLogo,
installed: "Activate Slack on individual projects to sync with specific channels.",
- notInstalled: "Connect with Slack with your Plane workspace to sync project issues.",
+ notInstalled: "Connect with Slack with your Plane workspace to sync project work items.",
},
};
diff --git a/web/core/components/issues/archive-issue-modal.tsx b/web/core/components/issues/archive-issue-modal.tsx
index 4f944e26a0..f43964d889 100644
--- a/web/core/components/issues/archive-issue-modal.tsx
+++ b/web/core/components/issues/archive-issue-modal.tsx
@@ -2,6 +2,8 @@
import { useState, Fragment } from "react";
import { Dialog, Transition } from "@headlessui/react";
+// i18n
+import { useTranslation } from "@plane/i18n";
// types
import { TDeDupeIssue, TIssue } from "@plane/types";
// ui
@@ -20,6 +22,7 @@ type Props = {
export const ArchiveIssueModal: React.FC<Props> = (props) => {
const { dataId, data, isOpen, handleClose, onSubmit } = props;
+ const { t } = useTranslation();
// states
const [isArchiving, setIsArchiving] = useState(false);
// store hooks
@@ -44,16 +47,16 @@ export const ArchiveIssueModal: React.FC<Props> = (props) => {
.then(() => {
setToast({
type: TOAST_TYPE.SUCCESS,
- title: "Archive success",
- message: "Your archives can be found in project archives.",
+ title: t("issue.archive.success.label"),
+ message: t("issue.archive.success.message"),
});
onClose();
})
.catch(() =>
setToast({
type: TOAST_TYPE.ERROR,
- title: "Error!",
- message: "Issue could not be archived. Please try again.",
+ title: t("common.error.label"),
+ message: t("issue.archive.failed.message"),
})
)
.finally(() => setIsArchiving(false));
@@ -88,17 +91,15 @@ export const ArchiveIssueModal: React.FC<Props> = (props) => {
<Dialog.Panel className="relative transform overflow-hidden rounded-lg bg-custom-background-100 text-left shadow-custom-shadow-md transition-all sm:my-8 sm:w-full sm:max-w-lg">
<div className="px-5 py-4">
<h3 className="text-xl font-medium 2xl:text-2xl">
- Archive issue {projectDetails?.identifier} {issue.sequence_id}
+ {t("issue.archive.label")} {projectDetails?.identifier} {issue.sequence_id}
</h3>
- <p className="mt-3 text-sm text-custom-text-200">
- Are you sure you want to archive the issue? All your archived issues can be restored later.
- </p>
+ <p className="mt-3 text-sm text-custom-text-200">{t("issue.archive.confirm_message")}</p>
<div className="mt-3 flex justify-end gap-2">
<Button variant="neutral-primary" size="sm" onClick={onClose}>
- Cancel
+ {t("common.cancel")}
</Button>
<Button size="sm" tabIndex={1} onClick={handleArchiveIssue} loading={isArchiving}>
- {isArchiving ? "Archiving" : "Archive"}
+ {isArchiving ? t("common.archiving") : t("common.archive")}
</Button>
</div>
</div>
diff --git a/web/core/components/issues/archived-issues-header.tsx b/web/core/components/issues/archived-issues-header.tsx
index e64c651b74..4e2eaebd9d 100644
--- a/web/core/components/issues/archived-issues-header.tsx
+++ b/web/core/components/issues/archived-issues-header.tsx
@@ -2,14 +2,14 @@ import { FC } from "react";
import { observer } from "mobx-react";
import { useParams } from "next/navigation";
// plane constants
-import { EIssueFilterType, EIssuesStoreType } from "@plane/constants";
+import { EIssueFilterType, EIssuesStoreType, ISSUE_DISPLAY_FILTERS_BY_PAGE } from "@plane/constants";
+// i18n
+import { useTranslation } from "@plane/i18n";
// types
import type { IIssueDisplayFilterOptions, IIssueDisplayProperties, IIssueFilterOptions } from "@plane/types";
// components
import { ArchiveTabsList } from "@/components/archives";
import { DisplayFiltersSelection, FilterSelection, FiltersDropdown } from "@/components/issues";
-// constants
-import { ISSUE_DISPLAY_FILTERS_BY_LAYOUT } from "@/constants/issue";
// helpers
import { isIssueFilterActive } from "@/helpers/filter.helper";
// hooks
@@ -28,6 +28,8 @@ export const ArchivedIssuesHeader: FC = observer(() => {
const {
project: { projectMemberIds },
} = useMember();
+ // i18n
+ const { t } = useTranslation();
// for archived issues list layout is the only option
const activeLayout = "list";
// hooks
@@ -72,29 +74,27 @@ export const ArchivedIssuesHeader: FC = observer(() => {
</div>
{/* filter options */}
<div className="flex items-center gap-2 px-8">
- <FiltersDropdown title="Filters" placement="bottom-end" isFiltersApplied={isIssueFilterActive(issueFilters)}>
+ <FiltersDropdown title={t("common.filters")} placement="bottom-end" isFiltersApplied={isIssueFilterActive(issueFilters)}>
<FilterSelection
filters={issueFilters?.filters || {}}
handleFiltersUpdate={handleFiltersUpdate}
displayFilters={issueFilters?.displayFilters ?? {}}
handleDisplayFiltersUpdate={handleDisplayFiltersUpdate}
layoutDisplayFiltersOptions={
- activeLayout ? ISSUE_DISPLAY_FILTERS_BY_LAYOUT.archived_issues[activeLayout] : undefined
+ activeLayout ? ISSUE_DISPLAY_FILTERS_BY_PAGE.archived_issues[activeLayout] : undefined
}
labels={projectLabels}
memberIds={projectMemberIds ?? undefined}
states={projectStates}
/>
</FiltersDropdown>
- <FiltersDropdown title="Display" placement="bottom-end">
+ <FiltersDropdown title={t("common.display")} placement="bottom-end">
<DisplayFiltersSelection
displayFilters={issueFilters?.displayFilters || {}}
displayProperties={issueFilters?.displayProperties || {}}
handleDisplayFiltersUpdate={handleDisplayFiltersUpdate}
handleDisplayPropertiesUpdate={handleDisplayPropertiesUpdate}
- layoutDisplayFiltersOptions={
- activeLayout ? ISSUE_DISPLAY_FILTERS_BY_LAYOUT.issues[activeLayout] : undefined
- }
+ layoutDisplayFiltersOptions={activeLayout ? ISSUE_DISPLAY_FILTERS_BY_PAGE.issues[activeLayout] : undefined}
cycleViewDisabled={!currentProjectDetails?.cycle_view}
moduleViewDisabled={!currentProjectDetails?.module_view}
/>
diff --git a/web/core/components/issues/attachment/attachment-item-list.tsx b/web/core/components/issues/attachment/attachment-item-list.tsx
index ca3c0ef9f1..5df3f49c21 100644
--- a/web/core/components/issues/attachment/attachment-item-list.tsx
+++ b/web/core/components/issues/attachment/attachment-item-list.tsx
@@ -3,6 +3,7 @@ import { observer } from "mobx-react";
import { FileRejection, useDropzone } from "react-dropzone";
import { UploadCloud } from "lucide-react";
import { EIssueServiceType } from "@plane/constants";
+import { useTranslation } from "@plane/i18n";
import { TIssueServiceType } from "@plane/types";
// hooks
import { TOAST_TYPE, setToast } from "@plane/ui";
@@ -35,6 +36,7 @@ export const IssueAttachmentItemList: FC<TIssueAttachmentItemList> = observer((p
disabled,
issueServiceType = EIssueServiceType.ISSUES,
} = props;
+ const { t } = useTranslation();
// states
const [isUploading, setIsUploading] = useState(false);
// store hooks
@@ -70,8 +72,8 @@ export const IssueAttachmentItemList: FC<TIssueAttachmentItemList> = observer((p
.catch(() => {
setToast({
type: TOAST_TYPE.ERROR,
- title: "Error!",
- message: "File could not be attached. Try uploading again.",
+ title: t("toast.error"),
+ message: t("attachment.error"),
});
})
.finally(() => {
@@ -83,11 +85,11 @@ export const IssueAttachmentItemList: FC<TIssueAttachmentItemList> = observer((p
setToast({
type: TOAST_TYPE.ERROR,
- title: "Error!",
+ title: t("toast.error"),
message:
totalAttachedFiles > 1
- ? "Only one file can be uploaded at a time."
- : `File must be of ${maxFileSize / 1024 / 1024}MB or less in size.`,
+ ? t("attachment.only_one_file_allowed")
+ : t("attachment.file_size_limit", { size: maxFileSize / 1024 / 1024 }),
});
return;
},
@@ -127,7 +129,7 @@ export const IssueAttachmentItemList: FC<TIssueAttachmentItemList> = observer((p
<div className="flex items-center justify-center p-1 rounded-md bg-custom-background-100">
<div className="flex flex-col justify-center items-center px-5 py-6 rounded-md border border-dashed border-custom-border-300">
<UploadCloud className="size-7" />
- <span className="text-sm text-custom-text-300">Drag and drop anywhere to upload</span>
+ <span className="text-sm text-custom-text-300">{t("attachment.drag_and_drop")}</span>
</div>
</div>
</div>
diff --git a/web/core/components/issues/attachment/attachment-list-item.tsx b/web/core/components/issues/attachment/attachment-list-item.tsx
index dfdbde0741..911eb9bd6e 100644
--- a/web/core/components/issues/attachment/attachment-list-item.tsx
+++ b/web/core/components/issues/attachment/attachment-list-item.tsx
@@ -4,6 +4,7 @@ import { FC } from "react";
import { observer } from "mobx-react";
import { Trash } from "lucide-react";
import { EIssueServiceType } from "@plane/constants";
+import { useTranslation } from "@plane/i18n";
import { TIssueServiceType } from "@plane/types";
// ui
import { CustomMenu, Tooltip } from "@plane/ui";
@@ -25,6 +26,7 @@ type TIssueAttachmentsListItem = {
};
export const IssueAttachmentsListItem: FC<TIssueAttachmentsListItem> = observer((props) => {
+ const { t } = useTranslation();
// props
const { attachmentId, disabled, issueServiceType = EIssueServiceType.ISSUES } = props;
// store hooks
@@ -89,7 +91,7 @@ export const IssueAttachmentsListItem: FC<TIssueAttachmentsListItem> = observer(
>
<div className="flex items-center gap-2">
<Trash className="h-3.5 w-3.5" strokeWidth={2} />
- <span>Delete</span>
+ <span>{t("common.actions.delete")}</span>
</div>
</CustomMenu.MenuItem>
</CustomMenu>
diff --git a/web/core/components/issues/attachment/delete-attachment-modal.tsx b/web/core/components/issues/attachment/delete-attachment-modal.tsx
index 32c9d961c7..2b2833fd3a 100644
--- a/web/core/components/issues/attachment/delete-attachment-modal.tsx
+++ b/web/core/components/issues/attachment/delete-attachment-modal.tsx
@@ -2,6 +2,8 @@ import { FC, useState } from "react";
import { observer } from "mobx-react";
// constants
import { EIssueServiceType } from "@plane/constants";
+// plane-i18n
+import { useTranslation } from "@plane/i18n";
// types
import { TIssueServiceType } from "@plane/types";
// ui
@@ -24,6 +26,7 @@ type Props = {
};
export const IssueAttachmentDeleteModal: FC<Props> = observer((props) => {
+ const { t } = useTranslation();
const { isOpen, onClose, attachmentId, attachmentOperations, issueServiceType = EIssueServiceType.ISSUES } = props;
// states
const [loader, setLoader] = useState(false);
@@ -54,9 +57,10 @@ export const IssueAttachmentDeleteModal: FC<Props> = observer((props) => {
handleSubmit={() => handleDeletion(attachment.id)}
isSubmitting={loader}
isOpen={isOpen}
- title="Delete attachment"
+ title={t("attachment.delete")}
content={
<>
+ {/* TODO: Translate here */}
Are you sure you want to delete attachment-{" "}
<span className="font-bold">{getFileName(attachment.attributes.name)}</span>? This attachment will be
permanently removed. This action cannot be undone.
diff --git a/web/core/components/issues/bulk-operations/upgrade-banner.tsx b/web/core/components/issues/bulk-operations/upgrade-banner.tsx
index 7a1fa84f97..fef0cb6172 100644
--- a/web/core/components/issues/bulk-operations/upgrade-banner.tsx
+++ b/web/core/components/issues/bulk-operations/upgrade-banner.tsx
@@ -15,7 +15,8 @@ export const BulkOperationsUpgradeBanner: React.FC<Props> = (props) => {
<div className={cn("sticky bottom-0 left-0 h-20 z-[2] px-3.5 grid place-items-center", className)}>
<div className="h-14 w-full bg-custom-primary-100/10 border-[0.5px] border-custom-primary-100/50 py-4 px-3.5 flex items-center justify-between gap-2 rounded-md">
<p className="text-custom-primary-100 font-medium">
- Change state, priority, and more for several issues at once. Save three minutes on an average per operation.
+ Change state, priority, and more for several work items at once. Save three minutes on an average per
+ operation.
</p>
<a
href={MARKETING_PLANE_ONE_PAGE_LINK}
diff --git a/web/core/components/issues/confirm-issue-discard.tsx b/web/core/components/issues/confirm-issue-discard.tsx
index 5807034908..7630af303b 100644
--- a/web/core/components/issues/confirm-issue-discard.tsx
+++ b/web/core/components/issues/confirm-issue-discard.tsx
@@ -65,7 +65,7 @@ export const ConfirmIssueDiscard: React.FC<Props> = (props) => {
</Dialog.Title>
<div className="mt-2">
<p className="text-sm text-custom-text-200">
- You can save this issue to Drafts so you can come back to it later.{" "}
+ You can save this work item to Drafts so you can come back to it later.{" "}
</p>
</div>
</div>
diff --git a/web/core/components/issues/create-issue-toast-action-items.tsx b/web/core/components/issues/create-issue-toast-action-items.tsx
index aff00f0003..9f29278020 100644
--- a/web/core/components/issues/create-issue-toast-action-items.tsx
+++ b/web/core/components/issues/create-issue-toast-action-items.tsx
@@ -49,7 +49,7 @@ export const CreateIssueToastActionItems: FC<TCreateIssueToastActionItems> = obs
rel="noopener noreferrer"
className="text-custom-primary px-2 py-1 hover:bg-custom-background-90 font-medium rounded"
>
- {`View ${isEpic ? "epic" : "issue"}`}
+ {`View ${isEpic ? "epic" : "work item"}`}
</a>
{copied ? (
diff --git a/web/core/components/issues/delete-issue-modal.tsx b/web/core/components/issues/delete-issue-modal.tsx
index 2129aab118..22e3e81862 100644
--- a/web/core/components/issues/delete-issue-modal.tsx
+++ b/web/core/components/issues/delete-issue-modal.tsx
@@ -2,15 +2,16 @@
import { useEffect, useState } from "react";
// types
+import { PROJECT_ERROR_MESSAGES ,EUserPermissions, EUserPermissionsLevel } from "@plane/constants";
+import { useTranslation } from "@plane/i18n";
import { TDeDupeIssue, TIssue } from "@plane/types";
// ui
import { AlertModalCore, TOAST_TYPE, setToast } from "@plane/ui";
// constants
-import { PROJECT_ERROR_MESSAGES } from "@/constants/project";
// hooks
import { useIssues, useProject, useUser, useUserPermissions } from "@/hooks/store";
// plane-web
-import { EUserPermissions, EUserPermissionsLevel } from "@/plane-web/constants/user-permissions";
+
type Props = {
isOpen: boolean;
handleClose: () => void;
@@ -29,6 +30,7 @@ export const DeleteIssueModal: React.FC<Props> = (props) => {
const { issueMap } = useIssues();
const { getProjectById } = useProject();
const { allowPermissions } = useUserPermissions();
+ const { t } = useTranslation();
const { data: currentUser } = useUser();
@@ -57,9 +59,10 @@ export const DeleteIssueModal: React.FC<Props> = (props) => {
if (!authorized) {
setToast({
- title: PROJECT_ERROR_MESSAGES.permissionError.title,
+ title: t(PROJECT_ERROR_MESSAGES.permissionError.i18n_title),
type: TOAST_TYPE.ERROR,
- message: PROJECT_ERROR_MESSAGES.permissionError.message,
+ message:
+ PROJECT_ERROR_MESSAGES.permissionError.i18n_message && t(PROJECT_ERROR_MESSAGES.permissionError.i18n_message),
});
onClose();
return;
@@ -69,22 +72,24 @@ export const DeleteIssueModal: React.FC<Props> = (props) => {
.then(() => {
setToast({
type: TOAST_TYPE.SUCCESS,
- title: "Success!",
- message: `${isSubIssue ? "Sub-issue" : isEpic ? "Epic" : "Issue"} deleted successfully`,
+ title: t("common.success"),
+ message: t("entity.delete.success", {
+ entity: isSubIssue ? t("common.sub_work_item") : isEpic ? t("common.epic") : t("common.work_item"),
+ }),
});
onClose();
})
.catch((errors) => {
const isPermissionError =
errors?.error ===
- `Only admin or creator can delete the ${isSubIssue ? "sub-issue" : isEpic ? "epic" : "issue"}`;
+ `Only admin or creator can delete the ${isSubIssue ? "sub-work item" : isEpic ? "epic" : "work item"}`;
const currentError = isPermissionError
? PROJECT_ERROR_MESSAGES.permissionError
: PROJECT_ERROR_MESSAGES.issueDeleteError;
setToast({
- title: currentError.title,
+ title: t(currentError.i18n_title),
type: TOAST_TYPE.ERROR,
- message: currentError.message,
+ message: currentError.i18n_message && t(currentError.i18n_message),
});
})
.finally(() => onClose());
@@ -96,14 +101,15 @@ export const DeleteIssueModal: React.FC<Props> = (props) => {
handleSubmit={handleIssueDelete}
isSubmitting={isDeleting}
isOpen={isOpen}
- title={`Delete ${isEpic ? "epic" : "issue"}`}
+ title={t("entity.delete.label", { entity: isEpic ? t("common.epic") : t("common.work_item") })}
content={
<>
- {`Are you sure you want to delete ${isEpic ? "epic" : "issue"} `}
+ {/* TODO: Translate here */}
+ {`Are you sure you want to delete ${isEpic ? "epic" : "work item"} `}
<span className="break-words font-medium text-custom-text-100">
{projectDetails?.identifier}-{issue?.sequence_id}
</span>
- {` ? All of the data related to the ${isEpic ? "epic" : "issue"} will be permanently removed. This action cannot be undone.`}
+ {` ? All of the data related to the ${isEpic ? "epic" : "work item"} will be permanently removed. This action cannot be undone.`}
</>
}
/>
diff --git a/web/core/components/issues/description-input.tsx b/web/core/components/issues/description-input.tsx
index e4955dd1a6..54573fbba6 100644
--- a/web/core/components/issues/description-input.tsx
+++ b/web/core/components/issues/description-input.tsx
@@ -4,6 +4,8 @@ import { FC, useCallback, useEffect, useState } from "react";
import debounce from "lodash/debounce";
import { observer } from "mobx-react";
import { Controller, useForm } from "react-hook-form";
+// i18n
+import { useTranslation } from "@plane/i18n";
// types
import { TIssue, TNameDescriptionLoader } from "@plane/types";
import { EFileAssetType } from "@plane/types/src/enums";
@@ -13,7 +15,7 @@ import { Loader } from "@plane/ui";
import { RichTextEditor, RichTextReadOnlyEditor } from "@/components/editor";
import { TIssueOperations } from "@/components/issues/issue-detail";
// helpers
-import { getDescriptionPlaceholder } from "@/helpers/issue.helper";
+import { getDescriptionPlaceholderI18n } from "@/helpers/issue.helper";
// hooks
import { useWorkspace } from "@/hooks/store";
// plane web services
@@ -50,6 +52,9 @@ export const IssueDescriptionInput: FC<IssueDescriptionInputProps> = observer((p
placeholder,
} = props;
+ // i18n
+ const { t } = useTranslation();
+
const { handleSubmit, reset, control } = useForm<TIssue>({
defaultValues: {
description_html: initialValue,
@@ -119,7 +124,9 @@ export const IssueDescriptionInput: FC<IssueDescriptionInputProps> = observer((p
debouncedFormSave();
}}
placeholder={
- placeholder ? placeholder : (isFocused, value) => getDescriptionPlaceholder(isFocused, value)
+ placeholder
+ ? placeholder
+ : (isFocused, value) => t(`${getDescriptionPlaceholderI18n(isFocused, value)}`)
}
searchMentionCallback={async (payload) =>
await workspaceService.searchEntity(workspaceSlug?.toString() ?? "", {
@@ -142,7 +149,7 @@ export const IssueDescriptionInput: FC<IssueDescriptionInputProps> = observer((p
);
return asset_id;
} catch (error) {
- console.log("Error in uploading issue asset:", error);
+ console.log("Error in uploading work item asset:", error);
throw new Error("Asset upload failed. Please try again later.");
}
}}
diff --git a/web/core/components/issues/filters.tsx b/web/core/components/issues/filters.tsx
index e09b543485..346c960b76 100644
--- a/web/core/components/issues/filters.tsx
+++ b/web/core/components/issues/filters.tsx
@@ -3,14 +3,14 @@
import { useCallback, useState } from "react";
import { observer } from "mobx-react";
// plane constants
-import { EIssueLayoutTypes, EIssueFilterType, EIssuesStoreType } from "@plane/constants";
+import { EIssueLayoutTypes, EIssueFilterType, EIssuesStoreType, ISSUE_STORE_TO_FILTERS_MAP } from "@plane/constants";
+// i18n
+import { useTranslation } from "@plane/i18n";
// types
import { IIssueDisplayFilterOptions, IIssueDisplayProperties, IIssueFilterOptions } from "@plane/types";
import { Button } from "@plane/ui";
// components
import { DisplayFiltersSelection, FiltersDropdown, FilterSelection, LayoutSelection } from "@/components/issues";
-// constants
-import { ISSUE_STORE_TO_FILTERS_MAP } from "@/constants/issue";
// helpers
import { isIssueFilterActive } from "@/helpers/filter.helper";
// hooks
@@ -34,6 +34,8 @@ const HeaderFilters = observer((props: Props) => {
canUserCreateIssue,
storeType = EIssuesStoreType.PROJECT,
} = props;
+ // i18n
+ const { t } = useTranslation();
// states
const [analyticsModal, setAnalyticsModal] = useState(false);
// store hooks
@@ -111,7 +113,11 @@ const HeaderFilters = observer((props: Props) => {
onChange={(layout) => handleLayoutChange(layout)}
selectedLayout={activeLayout}
/>
- <FiltersDropdown title="Filters" placement="bottom-end" isFiltersApplied={isIssueFilterActive(issueFilters)}>
+ <FiltersDropdown
+ title={t("common.filters")}
+ placement="bottom-end"
+ isFiltersApplied={isIssueFilterActive(issueFilters)}
+ >
<FilterSelection
filters={issueFilters?.filters ?? {}}
handleFiltersUpdate={handleFiltersUpdate}
@@ -127,7 +133,7 @@ const HeaderFilters = observer((props: Props) => {
isEpic={storeType === EIssuesStoreType.EPIC}
/>
</FiltersDropdown>
- <FiltersDropdown title="Display" placement="bottom-end">
+ <FiltersDropdown title={t("common.display")} placement="bottom-end">
<DisplayFiltersSelection
layoutDisplayFiltersOptions={layoutDisplayFiltersOptions}
displayFilters={issueFilters?.displayFilters ?? {}}
@@ -141,7 +147,7 @@ const HeaderFilters = observer((props: Props) => {
</FiltersDropdown>
{canUserCreateIssue ? (
<Button className="hidden md:block" onClick={() => setAnalyticsModal(true)} variant="neutral-primary" size="sm">
- Analytics
+ {t("common.analytics")}
</Button>
) : (
<></>
diff --git a/web/core/components/issues/issue-detail-widgets/action-buttons.tsx b/web/core/components/issues/issue-detail-widgets/action-buttons.tsx
index 18b6cc024e..7b6dff67b6 100644
--- a/web/core/components/issues/issue-detail-widgets/action-buttons.tsx
+++ b/web/core/components/issues/issue-detail-widgets/action-buttons.tsx
@@ -1,6 +1,8 @@
"use client";
import React, { FC } from "react";
import { Layers, Link, Paperclip, Waypoints } from "lucide-react";
+//i18n
+import { useTranslation } from "@plane/i18n";
// components
import {
IssueAttachmentActionButton,
@@ -19,13 +21,14 @@ type Props = {
export const IssueDetailWidgetActionButtons: FC<Props> = (props) => {
const { workspaceSlug, projectId, issueId, disabled } = props;
+ const { t } = useTranslation();
return (
<div className="flex items-center flex-wrap gap-2">
<SubIssuesActionButton
issueId={issueId}
customButton={
<IssueDetailWidgetButton
- title="Add sub-issue"
+ title={t("issue.add.sub_issue")}
icon={<Layers className="h-3.5 w-3.5 flex-shrink-0" strokeWidth={2} />}
disabled={disabled}
/>
@@ -36,7 +39,7 @@ export const IssueDetailWidgetActionButtons: FC<Props> = (props) => {
issueId={issueId}
customButton={
<IssueDetailWidgetButton
- title="Add relation"
+ title={t("issue.add.relation")}
icon={<Waypoints className="h-3.5 w-3.5 flex-shrink-0" strokeWidth={2} />}
disabled={disabled}
/>
@@ -46,7 +49,7 @@ export const IssueDetailWidgetActionButtons: FC<Props> = (props) => {
<IssueLinksActionButton
customButton={
<IssueDetailWidgetButton
- title="Add link"
+ title={t("issue.add.link")}
icon={<Link className="h-3.5 w-3.5 flex-shrink-0" strokeWidth={2} />}
disabled={disabled}
/>
@@ -59,7 +62,7 @@ export const IssueDetailWidgetActionButtons: FC<Props> = (props) => {
issueId={issueId}
customButton={
<IssueDetailWidgetButton
- title="Attach"
+ title={t("common.attach")}
icon={<Paperclip className="h-3.5 w-3.5 flex-shrink-0" strokeWidth={2} />}
disabled={disabled}
/>
diff --git a/web/core/components/issues/issue-detail-widgets/attachments/title.tsx b/web/core/components/issues/issue-detail-widgets/attachments/title.tsx
index f2d0cd670c..c96b6ffb8d 100644
--- a/web/core/components/issues/issue-detail-widgets/attachments/title.tsx
+++ b/web/core/components/issues/issue-detail-widgets/attachments/title.tsx
@@ -2,6 +2,7 @@
import React, { FC, useMemo } from "react";
import { observer } from "mobx-react";
import { EIssueServiceType } from "@plane/constants";
+import { useTranslation } from "@plane/i18n";
import { TIssueServiceType } from "@plane/types";
import { CollapsibleButton } from "@plane/ui";
// components
@@ -20,6 +21,7 @@ type Props = {
export const IssueAttachmentsCollapsibleTitle: FC<Props> = observer((props) => {
const { isOpen, workspaceSlug, projectId, issueId, disabled, issueServiceType = EIssueServiceType.ISSUES } = props;
+ const { t } = useTranslation();
// store hooks
const {
issue: { getIssueById },
@@ -42,7 +44,7 @@ export const IssueAttachmentsCollapsibleTitle: FC<Props> = observer((props) => {
return (
<CollapsibleButton
isOpen={isOpen}
- title="Attachments"
+ title={t("common.attachments")}
indicatorElement={indicatorElement}
actionItemElement={
!disabled && (
diff --git a/web/core/components/issues/issue-detail-widgets/issue-detail-widget-modals.tsx b/web/core/components/issues/issue-detail-widgets/issue-detail-widget-modals.tsx
index ec99d6ebe9..f30f968955 100644
--- a/web/core/components/issues/issue-detail-widgets/issue-detail-widget-modals.tsx
+++ b/web/core/components/issues/issue-detail-widgets/issue-detail-widget-modals.tsx
@@ -104,7 +104,7 @@ export const IssueDetailWidgetModals: FC<Props> = observer((props) => {
setToast({
type: TOAST_TYPE.ERROR,
title: "Error!",
- message: "Please select at least one issue.",
+ message: "Please select at least one work item.",
});
return;
}
diff --git a/web/core/components/issues/issue-detail-widgets/links/helper.tsx b/web/core/components/issues/issue-detail-widgets/links/helper.tsx
index b00d800367..364958fa24 100644
--- a/web/core/components/issues/issue-detail-widgets/links/helper.tsx
+++ b/web/core/components/issues/issue-detail-widgets/links/helper.tsx
@@ -1,6 +1,7 @@
"use client";
import { useMemo } from "react";
import { EIssueServiceType } from "@plane/constants";
+import { useTranslation } from "@plane/i18n";
import { TIssueLink, TIssueServiceType } from "@plane/types";
import { TOAST_TYPE, setToast } from "@plane/ui";
// hooks
@@ -15,6 +16,8 @@ export const useLinkOperations = (
issueServiceType: TIssueServiceType = EIssueServiceType.ISSUES
): TLinkOperations => {
const { createLink, updateLink, removeLink } = useIssueDetail(issueServiceType);
+ // i18n
+ const { t } = useTranslation();
const handleLinkOperations: TLinkOperations = useMemo(
() => ({
@@ -23,15 +26,15 @@ export const useLinkOperations = (
if (!workspaceSlug || !projectId || !issueId) throw new Error("Missing required fields");
await createLink(workspaceSlug, projectId, issueId, data);
setToast({
- message: "The link has been successfully created",
+ message: t("links.toasts.created.message"),
type: TOAST_TYPE.SUCCESS,
- title: "Link created",
+ title: t("links.toasts.created.title"),
});
} catch (error: any) {
setToast({
- message: error?.data?.url?.error ?? "The link could not be created",
+ message: error?.data?.url?.error ?? t("links.toasts.not_created.message"),
type: TOAST_TYPE.ERROR,
- title: "Link not created",
+ title: t("links.toasts.not_created.title"),
});
throw error;
}
@@ -41,15 +44,15 @@ export const useLinkOperations = (
if (!workspaceSlug || !projectId || !issueId) throw new Error("Missing required fields");
await updateLink(workspaceSlug, projectId, issueId, linkId, data);
setToast({
- message: "The link has been successfully updated",
+ message: t("links.toasts.updated.message"),
type: TOAST_TYPE.SUCCESS,
- title: "Link updated",
+ title: t("links.toasts.updated.title"),
});
} catch (error: any) {
setToast({
- message: error?.data?.url?.error ?? "The link could not be updated",
+ message: error?.data?.url?.error ?? t("links.toasts.not_updated.message"),
type: TOAST_TYPE.ERROR,
- title: "Link not updated",
+ title: t("links.toasts.not_updated.title"),
});
throw error;
}
@@ -59,15 +62,15 @@ export const useLinkOperations = (
if (!workspaceSlug || !projectId || !issueId) throw new Error("Missing required fields");
await removeLink(workspaceSlug, projectId, issueId, linkId);
setToast({
- message: "The link has been successfully removed",
+ message: t("links.toasts.removed.message"),
type: TOAST_TYPE.SUCCESS,
- title: "Link removed",
+ title: t("links.toasts.removed.title"),
});
} catch (error) {
setToast({
- message: "The link could not be removed",
+ message: t("links.toasts.not_removed.message"),
type: TOAST_TYPE.ERROR,
- title: "Link not removed",
+ title: t("links.toasts.not_removed.title"),
});
}
},
diff --git a/web/core/components/issues/issue-detail-widgets/links/title.tsx b/web/core/components/issues/issue-detail-widgets/links/title.tsx
index 19929df255..ce69e6aad0 100644
--- a/web/core/components/issues/issue-detail-widgets/links/title.tsx
+++ b/web/core/components/issues/issue-detail-widgets/links/title.tsx
@@ -2,6 +2,7 @@
import React, { FC, useMemo } from "react";
import { observer } from "mobx-react";
import { EIssueServiceType } from "@plane/constants";
+import { useTranslation } from "@plane/i18n";
import { TIssueServiceType } from "@plane/types";
import { CollapsibleButton } from "@plane/ui";
// components
@@ -18,6 +19,7 @@ type Props = {
export const IssueLinksCollapsibleTitle: FC<Props> = observer((props) => {
const { isOpen, issueId, disabled, issueServiceType = EIssueServiceType.ISSUES } = props;
+ const { t } = useTranslation();
// store hooks
const {
issue: { getIssueById },
@@ -41,7 +43,7 @@ export const IssueLinksCollapsibleTitle: FC<Props> = observer((props) => {
return (
<CollapsibleButton
isOpen={isOpen}
- title="Links"
+ title={t("common.links")}
indicatorElement={indicatorElement}
actionItemElement={
!disabled && <IssueLinksActionButton issueServiceType={issueServiceType} disabled={disabled} />
diff --git a/web/core/components/issues/issue-detail-widgets/relations/content.tsx b/web/core/components/issues/issue-detail-widgets/relations/content.tsx
index 545be649b7..3092a42fe7 100644
--- a/web/core/components/issues/issue-detail-widgets/relations/content.tsx
+++ b/web/core/components/issues/issue-detail-widgets/relations/content.tsx
@@ -3,6 +3,7 @@ import { FC, useState } from "react";
import { observer } from "mobx-react";
// plane imports
import { EIssueServiceType } from "@plane/constants";
+import { useTranslation } from "@plane/i18n";
import { TIssue, TIssueServiceType } from "@plane/types";
import { Collapsible } from "@plane/ui";
// components
@@ -29,7 +30,7 @@ type TIssueCrudState = { toggle: boolean; issueId: string | undefined; issue: TI
export type TRelationObject = {
key: TIssueRelationTypes;
- label: string;
+ i18n_label: string;
className: string;
icon: (size: number) => React.ReactElement;
placeholder: string;
@@ -37,6 +38,8 @@ export type TRelationObject = {
export const RelationsCollapsibleContent: FC<Props> = observer((props) => {
const { workspaceSlug, issueId, disabled = false, issueServiceType = EIssueServiceType.ISSUES } = props;
+ // plane hooks
+ const { t } = useTranslation();
// state
const [issueCrudState, setIssueCrudState] = useState<{
update: TIssueCrudState;
@@ -93,7 +96,7 @@ export const RelationsCollapsibleContent: FC<Props> = observer((props) => {
relationKey: relationKey,
issueIds: issueIds,
icon: issueRelationOption?.icon,
- label: issueRelationOption?.label,
+ label: issueRelationOption?.i18n_label ? t(issueRelationOption?.i18n_label) : "",
className: issueRelationOption?.className,
};
});
diff --git a/web/core/components/issues/issue-detail-widgets/relations/helper.tsx b/web/core/components/issues/issue-detail-widgets/relations/helper.tsx
index 83e70d9cf3..f80cfc24d1 100644
--- a/web/core/components/issues/issue-detail-widgets/relations/helper.tsx
+++ b/web/core/components/issues/issue-detail-widgets/relations/helper.tsx
@@ -1,11 +1,11 @@
"use client";
import { useMemo } from "react";
import { usePathname } from "next/navigation";
-import { EIssueServiceType } from "@plane/constants";
+import { EIssueServiceType, ISSUE_DELETED, ISSUE_UPDATED } from "@plane/constants";
+import { useTranslation } from "@plane/i18n";
import { TIssue, TIssueServiceType } from "@plane/types";
import { TOAST_TYPE, setToast } from "@plane/ui";
// constants
-import { ISSUE_DELETED, ISSUE_UPDATED } from "@/constants/event-tracker";
// helper
import { copyTextToClipboard } from "@/helpers/string.helper";
// hooks
@@ -23,8 +23,9 @@ export const useRelationOperations = (
const { updateIssue, removeIssue } = useIssueDetail(issueServiceType);
const { captureIssueEvent } = useEventTracker();
const pathname = usePathname();
+ const { t } = useTranslation();
// derived values
- const entityName = issueServiceType === EIssueServiceType.ISSUES ? "Issue" : "Epic";
+ const entityName = issueServiceType === EIssueServiceType.ISSUES ? "Work item" : "Epic";
const issueOperations: TRelationIssueOperations = useMemo(
() => ({
@@ -33,8 +34,8 @@ export const useRelationOperations = (
copyTextToClipboard(`${originURL}/${text}`).then(() => {
setToast({
type: TOAST_TYPE.SUCCESS,
- title: "Link Copied!",
- message: `${entityName} link copied to clipboard.`,
+ title: t("common.link_copied"),
+ message: t("entity.link_copied_to_clipboard", { entity: entityName }),
});
});
},
@@ -51,9 +52,9 @@ export const useRelationOperations = (
path: pathname,
});
setToast({
- title: "Success!",
+ title: t("toast.success"),
type: TOAST_TYPE.SUCCESS,
- message: `${entityName} updated successfully`,
+ message: t("entity.update.success", { entity: entityName }),
});
} catch (error) {
captureIssueEvent({
@@ -66,9 +67,9 @@ export const useRelationOperations = (
path: pathname,
});
setToast({
- title: "Error!",
+ title: t("toast.error"),
type: TOAST_TYPE.ERROR,
- message: `${entityName} update failed`,
+ message: t("entity.update.failed", { entity: entityName }),
});
}
},
diff --git a/web/core/components/issues/issue-detail-widgets/relations/quick-action-button.tsx b/web/core/components/issues/issue-detail-widgets/relations/quick-action-button.tsx
index b1ff260f6f..2d7e5a2bab 100644
--- a/web/core/components/issues/issue-detail-widgets/relations/quick-action-button.tsx
+++ b/web/core/components/issues/issue-detail-widgets/relations/quick-action-button.tsx
@@ -3,6 +3,7 @@ import React, { FC } from "react";
import { observer } from "mobx-react";
import { Plus } from "lucide-react";
import { EIssueServiceType } from "@plane/constants";
+import { useTranslation } from "@plane/i18n";
import { TIssueServiceType } from "@plane/types";
import { CustomMenu } from "@plane/ui";
// hooks
@@ -20,6 +21,7 @@ type Props = {
export const RelationActionButton: FC<Props> = observer((props) => {
const { customButton, issueId, disabled = false, issueServiceType = EIssueServiceType.ISSUES } = props;
+ const { t } = useTranslation();
// store hooks
const { toggleRelationModal, setRelationKey } = useIssueDetail(issueServiceType);
@@ -56,7 +58,7 @@ export const RelationActionButton: FC<Props> = observer((props) => {
>
<div className="flex items-center gap-2">
{item.icon(12)}
- <span>{item.label}</span>
+ <span>{t(item.i18n_label)}</span>
</div>
</CustomMenu.MenuItem>
);
diff --git a/web/core/components/issues/issue-detail-widgets/relations/title.tsx b/web/core/components/issues/issue-detail-widgets/relations/title.tsx
index 3f91b712f7..f1284eb47d 100644
--- a/web/core/components/issues/issue-detail-widgets/relations/title.tsx
+++ b/web/core/components/issues/issue-detail-widgets/relations/title.tsx
@@ -2,6 +2,7 @@
import React, { FC, useMemo } from "react";
import { observer } from "mobx-react";
import { EIssueServiceType } from "@plane/constants";
+import { useTranslation } from "@plane/i18n";
import { TIssueServiceType } from "@plane/types";
import { CollapsibleButton } from "@plane/ui";
// components
@@ -20,6 +21,7 @@ type Props = {
export const RelationsCollapsibleTitle: FC<Props> = observer((props) => {
const { isOpen, issueId, disabled, issueServiceType = EIssueServiceType.ISSUES } = props;
+ const { t } = useTranslation();
// store hook
const {
relation: { getRelationCountByIssueId },
@@ -42,7 +44,7 @@ export const RelationsCollapsibleTitle: FC<Props> = observer((props) => {
return (
<CollapsibleButton
isOpen={isOpen}
- title="Relations"
+ title={t("common.relations")}
indicatorElement={indicatorElement}
actionItemElement={
!disabled && <RelationActionButton issueId={issueId} disabled={disabled} issueServiceType={issueServiceType} />
diff --git a/web/core/components/issues/issue-detail-widgets/sub-issues/content.tsx b/web/core/components/issues/issue-detail-widgets/sub-issues/content.tsx
index 2d197ebcbf..26cb370ca1 100644
--- a/web/core/components/issues/issue-detail-widgets/sub-issues/content.tsx
+++ b/web/core/components/issues/issue-detail-widgets/sub-issues/content.tsx
@@ -85,7 +85,7 @@ export const SubIssuesCollapsibleContent: FC<Props> = observer((props) => {
await subIssueOperations.fetchSubIssues(workspaceSlug, projectId, parentIssueId);
setSubIssueHelpers(`${parentIssueId}_root`, "issue_visibility", parentIssueId);
} catch (error) {
- console.error("Error fetching sub-issues:", error);
+ console.error("Error fetching sub-work items:", error);
} finally {
setSubIssueHelpers(`${parentIssueId}_root`, "preview_loader", "");
}
diff --git a/web/core/components/issues/issue-detail-widgets/sub-issues/helper.tsx b/web/core/components/issues/issue-detail-widgets/sub-issues/helper.tsx
index ec600c622e..def7e832f3 100644
--- a/web/core/components/issues/issue-detail-widgets/sub-issues/helper.tsx
+++ b/web/core/components/issues/issue-detail-widgets/sub-issues/helper.tsx
@@ -2,6 +2,7 @@
import { useMemo } from "react";
import { useParams, usePathname } from "next/navigation";
import { EIssueServiceType } from "@plane/constants";
+import { useTranslation } from "@plane/i18n";
import { TIssue, TIssueServiceType } from "@plane/types";
import { TOAST_TYPE, setToast } from "@plane/ui";
// helper
@@ -25,6 +26,7 @@ export const useSubIssueOperations = (
// router
const { epicId: epicIdParam } = useParams();
const pathname = usePathname();
+ const { t } = useTranslation();
// store hooks
const {
issue: { getIssueById },
@@ -51,8 +53,13 @@ export const useSubIssueOperations = (
copyTextToClipboard(`${originURL}/${text}`).then(() => {
setToast({
type: TOAST_TYPE.SUCCESS,
- title: "Link Copied!",
- message: `${issueServiceType === EIssueServiceType.ISSUES ? "Issue" : "Epic"} link copied to clipboard`,
+ title: t("common.link_copied"),
+ message: t("entity.link_copied_to_clipboard", {
+ entity:
+ issueServiceType === EIssueServiceType.ISSUES
+ ? t("issue.label", { count: 1 })
+ : t("epic.label", { count: 1 }),
+ }),
});
});
},
@@ -62,8 +69,13 @@ export const useSubIssueOperations = (
} catch (error) {
setToast({
type: TOAST_TYPE.ERROR,
- title: "Error!",
- message: `Error fetching ${issueServiceType === EIssueServiceType.ISSUES ? "sub-issues" : "issues"}`,
+ title: t("toast.error"),
+ message: t("entity.fetch.failed", {
+ entity:
+ issueServiceType === EIssueServiceType.ISSUES
+ ? t("common.sub_work_items", { count: 2 })
+ : t("issue.label", { count: 2 }),
+ }),
});
}
},
@@ -72,14 +84,25 @@ export const useSubIssueOperations = (
await createSubIssues(workspaceSlug, projectId, parentIssueId, issueIds);
setToast({
type: TOAST_TYPE.SUCCESS,
- title: "Success!",
- message: `${issueServiceType === EIssueServiceType.ISSUES ? "Sub-issues" : "Issues"} added successfully`,
+ title: t("toast.success"),
+ message: t("entity.add.success", {
+ entity:
+ issueServiceType === EIssueServiceType.ISSUES
+ ? t("common.sub_work_items")
+ : t("issue.label", { count: 2 }),
+ }),
});
} catch (error) {
setToast({
type: TOAST_TYPE.ERROR,
- title: "Error!",
- message: `Error adding ${issueServiceType === EIssueServiceType.ISSUES ? "sub-issues" : "issues"}`,
+ title: t("toast.error"),
+ // message: `Error adding ${issueServiceType === EIssueServiceType.ISSUES ? "sub-issues" : "issues"}`,
+ message: t("entity.add.failed", {
+ entity:
+ issueServiceType === EIssueServiceType.ISSUES
+ ? t("common.sub_work_items")
+ : t("issue.label", { count: 2 }),
+ }),
});
}
},
@@ -130,8 +153,8 @@ export const useSubIssueOperations = (
});
setToast({
type: TOAST_TYPE.SUCCESS,
- title: "Success!",
- message: "Sub-issue updated successfully",
+ title: t("toast.success"),
+ message: t("sub_work_item.update.success"),
});
setSubIssueHelpers(parentIssueId, "issue_loader", issueId);
} catch (error) {
@@ -146,8 +169,8 @@ export const useSubIssueOperations = (
});
setToast({
type: TOAST_TYPE.ERROR,
- title: "Error!",
- message: "Error updating sub-issue",
+ title: t("toast.error"),
+ message: t("sub_work_item.update.error"),
});
}
},
@@ -167,8 +190,8 @@ export const useSubIssueOperations = (
}
setToast({
type: TOAST_TYPE.SUCCESS,
- title: "Success!",
- message: "Sub-issue removed successfully",
+ title: t("toast.success"),
+ message: t("sub_work_item.remove.success"),
});
captureIssueEvent({
eventName: "Sub-issue removed",
@@ -192,8 +215,8 @@ export const useSubIssueOperations = (
});
setToast({
type: TOAST_TYPE.ERROR,
- title: "Error!",
- message: "Error removing sub-issue",
+ title: t("toast.error"),
+ message: t("sub_work_item.remove.error"),
});
}
},
@@ -216,8 +239,8 @@ export const useSubIssueOperations = (
});
setToast({
type: TOAST_TYPE.ERROR,
- title: "Error!",
- message: "Error deleting issue",
+ title: t("toast.error"),
+ message: t("issue.delete.error"),
});
}
},
diff --git a/web/core/components/issues/issue-detail-widgets/sub-issues/quick-action-button.tsx b/web/core/components/issues/issue-detail-widgets/sub-issues/quick-action-button.tsx
index 73770bb130..d200afc5f7 100644
--- a/web/core/components/issues/issue-detail-widgets/sub-issues/quick-action-button.tsx
+++ b/web/core/components/issues/issue-detail-widgets/sub-issues/quick-action-button.tsx
@@ -3,6 +3,7 @@ import React, { FC } from "react";
import { observer } from "mobx-react";
import { LayersIcon, Plus } from "lucide-react";
import { EIssueServiceType } from "@plane/constants";
+import { useTranslation } from "@plane/i18n";
import { TIssue, TIssueServiceType } from "@plane/types";
import { CustomMenu } from "@plane/ui";
// hooks
@@ -17,6 +18,7 @@ type Props = {
export const SubIssuesActionButton: FC<Props> = observer((props) => {
const { issueId, customButton, disabled = false, issueServiceType = EIssueServiceType.ISSUES } = props;
+ const { t } = useTranslation();
// store hooks
const {
issue: { getIssueById },
@@ -63,12 +65,12 @@ export const SubIssuesActionButton: FC<Props> = observer((props) => {
// options
const optionItems = [
{
- label: "Create new",
+ i18n_label: "common.create_new",
icon: <Plus className="h-3 w-3" />,
onClick: handleCreateNew,
},
{
- label: "Add existing",
+ i18n_label: "common.add_existing",
icon: <LayersIcon className="h-3 w-3" />,
onClick: handleAddExisting,
},
@@ -90,7 +92,7 @@ export const SubIssuesActionButton: FC<Props> = observer((props) => {
>
<div className="flex items-center gap-2">
{item.icon}
- <span>{item.label}</span>
+ <span>{t(item.i18n_label)}</span>
</div>
</CustomMenu.MenuItem>
))}
diff --git a/web/core/components/issues/issue-detail-widgets/sub-issues/title.tsx b/web/core/components/issues/issue-detail-widgets/sub-issues/title.tsx
index e4ff1ea731..3eb60f5e4a 100644
--- a/web/core/components/issues/issue-detail-widgets/sub-issues/title.tsx
+++ b/web/core/components/issues/issue-detail-widgets/sub-issues/title.tsx
@@ -2,6 +2,7 @@
import React, { FC } from "react";
import { observer } from "mobx-react";
import { EIssueServiceType } from "@plane/constants";
+import { useTranslation } from "@plane/i18n";
import { TIssueServiceType } from "@plane/types";
import { CircularProgressIndicator, CollapsibleButton } from "@plane/ui";
// components
@@ -18,6 +19,7 @@ type Props = {
export const SubIssuesCollapsibleTitle: FC<Props> = observer((props) => {
const { isOpen, parentIssueId, disabled, issueServiceType = EIssueServiceType.ISSUES } = props;
+ const { t } = useTranslation();
// store hooks
const {
subIssues: { subIssuesByIssueId, stateDistributionByIssueId },
@@ -38,12 +40,12 @@ export const SubIssuesCollapsibleTitle: FC<Props> = observer((props) => {
return (
<CollapsibleButton
isOpen={isOpen}
- title={`${issueServiceType === EIssueServiceType.EPICS ? "Issues" : "Sub-issues"}`}
+ title={`${issueServiceType === EIssueServiceType.EPICS ? t("issue.label", { count: 1 }) : t("common.sub_work_items")}`}
indicatorElement={
<div className="flex items-center gap-1.5 text-custom-text-300 text-sm">
<CircularProgressIndicator size={18} percentage={percentage} strokeWidth={3} />
<span>
- {completedCount}/{totalCount} Done
+ {completedCount}/{totalCount} {t("common.done")}
</span>
</div>
}
diff --git a/web/core/components/issues/issue-detail/cycle-select.tsx b/web/core/components/issues/issue-detail/cycle-select.tsx
index f02320e280..c82f67102d 100644
--- a/web/core/components/issues/issue-detail/cycle-select.tsx
+++ b/web/core/components/issues/issue-detail/cycle-select.tsx
@@ -1,5 +1,6 @@
import React, { useState } from "react";
import { observer } from "mobx-react";
+import { useTranslation } from "@plane/i18n";
// hooks
// components
import { CycleDropdown } from "@/components/dropdowns";
@@ -21,6 +22,7 @@ type TIssueCycleSelect = {
export const IssueCycleSelect: React.FC<TIssueCycleSelect> = observer((props) => {
const { className = "", workspaceSlug, projectId, issueId, issueOperations, disabled = false } = props;
+ const { t } = useTranslation();
// states
const [isUpdating, setIsUpdating] = useState(false);
// store hooks
@@ -50,7 +52,7 @@ export const IssueCycleSelect: React.FC<TIssueCycleSelect> = observer((props) =>
className="group w-full"
buttonContainerClassName="w-full text-left rounded"
buttonClassName={`text-sm justify-between ${issue?.cycle_id ? "" : "text-custom-text-400"}`}
- placeholder="No cycle"
+ placeholder={t("cycle.no_cycle")}
hideIcon
dropdownArrow
dropdownArrowClassName="h-3.5 w-3.5 hidden group-hover:inline"
diff --git a/web/core/components/issues/issue-detail/issue-activity/activity-comment-root.tsx b/web/core/components/issues/issue-detail/issue-activity/activity-comment-root.tsx
index c2b8131025..daf0115b18 100644
--- a/web/core/components/issues/issue-detail/issue-activity/activity-comment-root.tsx
+++ b/web/core/components/issues/issue-detail/issue-activity/activity-comment-root.tsx
@@ -1,14 +1,12 @@
import { FC } from "react";
import { observer } from "mobx-react";
// constants
-import { E_SORT_ORDER } from "@plane/constants";
+import { E_SORT_ORDER, TActivityFilters, filterActivityOnSelectedFilters } from "@plane/constants";
// hooks
import { useIssueDetail } from "@/hooks/store";
// plane web components
import { IssueAdditionalPropertiesActivity } from "@/plane-web/components/issues";
import { IssueActivityWorklog } from "@/plane-web/components/issues/worklog/activity/root";
-// plane web constants
-import { TActivityFilters, filterActivityOnSelectedFilters } from "@/plane-web/constants/issues";
// components
import { IssueActivityItem } from "./activity/activity-list";
import { IssueCommentCard } from "./comments/comment-card";
diff --git a/web/core/components/issues/issue-detail/issue-activity/activity-filter.tsx b/web/core/components/issues/issue-detail/issue-activity/activity-filter.tsx
index 3733e7f72b..40162dc15d 100644
--- a/web/core/components/issues/issue-detail/issue-activity/activity-filter.tsx
+++ b/web/core/components/issues/issue-detail/issue-activity/activity-filter.tsx
@@ -1,11 +1,12 @@
import React, { FC } from "react";
import { observer } from "mobx-react";
import { Check, ListFilter } from "lucide-react";
+import { TActivityFilters, TActivityFilterOption } from "@plane/constants";
+import { useTranslation } from "@plane/i18n";
import { Button, PopoverMenu } from "@plane/ui";
// helper
import { cn } from "@/helpers/common.helper";
// constants
-import { TActivityFilterOption, TActivityFilters } from "@/plane-web/constants/issues";
type TActivityFilter = {
selectedFilters: TActivityFilters[];
@@ -15,6 +16,9 @@ type TActivityFilter = {
export const ActivityFilter: FC<TActivityFilter> = observer((props) => {
const { selectedFilters = [], filterOptions } = props;
+ // hooks
+ const { t } = useTranslation();
+
return (
<PopoverMenu
buttonClassName="outline-none"
@@ -25,7 +29,7 @@ export const ActivityFilter: FC<TActivityFilter> = observer((props) => {
prependIcon={<ListFilter className="h-3 w-3" />}
className="relative"
>
- <span className="text-custom-text-200">Filters</span>
+ <span className="text-custom-text-200">{t("common.filters")}</span>
{selectedFilters.length < filterOptions.length && (
<span className="absolute h-2 w-2 -right-0.5 -top-0.5 bg-custom-primary-100 rounded-full" />
)}
@@ -53,7 +57,7 @@ export const ActivityFilter: FC<TActivityFilter> = observer((props) => {
{item.isSelected && <Check className="h-2.5 w-2.5" />}
</div>
<div className={cn("whitespace-nowrap", item.isSelected ? "text-custom-text-100" : "text-custom-text-200")}>
- {item.label}
+ {t(item.labelTranslationKey)}
</div>
</div>
)}
diff --git a/web/core/components/issues/issue-detail/issue-activity/activity/actions/archived-at.tsx b/web/core/components/issues/issue-detail/issue-activity/activity/actions/archived-at.tsx
index b10482b3c5..f05f5b98de 100644
--- a/web/core/components/issues/issue-detail/issue-activity/activity/actions/archived-at.tsx
+++ b/web/core/components/issues/issue-detail/issue-activity/activity/actions/archived-at.tsx
@@ -36,7 +36,7 @@ export const IssueArchivedAtActivity: FC<TIssueArchivedAtActivity> = observer((p
ends={ends}
customUserName={activity.new_value === "archive" ? "Plane" : undefined}
>
- {activity.new_value === "restore" ? "restored the issue" : "archived the issue"}.
+ {activity.new_value === "restore" ? "restored the work item" : "archived the work item"}.
</IssueActivityBlockComponent>
);
});
diff --git a/web/core/components/issues/issue-detail/issue-activity/activity/actions/cycle.tsx b/web/core/components/issues/issue-detail/issue-activity/activity/actions/cycle.tsx
index 03ae246176..f763c3bcc7 100644
--- a/web/core/components/issues/issue-detail/issue-activity/activity/actions/cycle.tsx
+++ b/web/core/components/issues/issue-detail/issue-activity/activity/actions/cycle.tsx
@@ -30,7 +30,7 @@ export const IssueCycleActivity: FC<TIssueCycleActivity> = observer((props) => {
<>
{activity.verb === "created" ? (
<>
- <span>added this issue to the cycle </span>
+ <span>added this work item to the cycle </span>
<a
href={`/${activity.workspace_detail?.slug}/projects/${activity.project}/cycles/${activity.new_identifier}`}
target="_blank"
@@ -54,7 +54,7 @@ export const IssueCycleActivity: FC<TIssueCycleActivity> = observer((props) => {
</>
) : (
<>
- <span>removed the issue from the cycle </span>
+ <span>removed the work item from the cycle </span>
<a
href={`/${activity.workspace_detail?.slug}/projects/${activity.project}/cycles/${activity.old_identifier}`}
target="_blank"
diff --git a/web/core/components/issues/issue-detail/issue-activity/activity/actions/default.tsx b/web/core/components/issues/issue-detail/issue-activity/activity/actions/default.tsx
index 2ce3830617..23331be16d 100644
--- a/web/core/components/issues/issue-detail/issue-activity/activity/actions/default.tsx
+++ b/web/core/components/issues/issue-detail/issue-activity/activity/actions/default.tsx
@@ -27,7 +27,7 @@ export const IssueDefaultActivity: FC<TIssueDefaultActivity> = observer((props)
icon={<LayersIcon width={14} height={14} className="text-custom-text-200" aria-hidden="true" />}
ends={ends}
>
- <>{activity.verb === "created" ? " created the issue." : " deleted an issue."}</>
+ <>{activity.verb === "created" ? " created the work item." : " deleted an work item."}</>
</IssueActivityBlockComponent>
);
});
diff --git a/web/core/components/issues/issue-detail/issue-activity/activity/actions/helpers/issue-link.tsx b/web/core/components/issues/issue-detail/issue-activity/activity/actions/helpers/issue-link.tsx
index 91d50b0dab..224f13bde2 100644
--- a/web/core/components/issues/issue-detail/issue-activity/activity/actions/helpers/issue-link.tsx
+++ b/web/core/components/issues/issue-detail/issue-activity/activity/actions/helpers/issue-link.tsx
@@ -23,7 +23,7 @@ export const IssueLink: FC<TIssueLink> = (props) => {
if (!activity) return <></>;
return (
<Tooltip
- tooltipContent={activity.issue_detail ? activity.issue_detail.name : "This issue has been deleted"}
+ tooltipContent={activity.issue_detail ? activity.issue_detail.name : "This work item has been deleted"}
isMobile={isMobile}
>
<a
@@ -37,7 +37,9 @@ export const IssueLink: FC<TIssueLink> = (props) => {
rel={activity.issue === null ? "" : "noopener noreferrer"}
className="inline-flex items-center gap-1 font-medium text-custom-text-100 hover:underline"
>
- {activity.issue_detail ? `${activity.project_detail.identifier}-${activity.issue_detail.sequence_id}` : "Issue"}{" "}
+ {activity.issue_detail
+ ? `${activity.project_detail.identifier}-${activity.issue_detail.sequence_id}`
+ : "Work items"}{" "}
<span className="font-normal">{activity.issue_detail?.name}</span>
</a>
</Tooltip>
diff --git a/web/core/components/issues/issue-detail/issue-activity/activity/actions/inbox.tsx b/web/core/components/issues/issue-detail/issue-activity/activity/actions/inbox.tsx
index 129831c6a2..f949f58598 100644
--- a/web/core/components/issues/issue-detail/issue-activity/activity/actions/inbox.tsx
+++ b/web/core/components/issues/issue-detail/issue-activity/activity/actions/inbox.tsx
@@ -21,15 +21,15 @@ export const IssueInboxActivity: FC<TIssueInboxActivity> = observer((props) => {
const getInboxActivityMessage = () => {
switch (activity?.verb) {
case "-1":
- return "declined this issue from intake.";
+ return "declined this work item from intake.";
case "0":
- return "snoozed this issue.";
+ return "snoozed this work item.";
case "1":
- return "accepted this issue from intake.";
+ return "accepted this work item from intake.";
case "2":
- return "declined this issue from intake by marking a duplicate issue.";
+ return "declined this work item from intake by marking a duplicate work item.";
default:
- return "updated intake issue status.";
+ return "updated intake work item status.";
}
};
diff --git a/web/core/components/issues/issue-detail/issue-activity/activity/actions/module.tsx b/web/core/components/issues/issue-detail/issue-activity/activity/actions/module.tsx
index b3d61d3981..88a8c35a47 100644
--- a/web/core/components/issues/issue-detail/issue-activity/activity/actions/module.tsx
+++ b/web/core/components/issues/issue-detail/issue-activity/activity/actions/module.tsx
@@ -30,7 +30,7 @@ export const IssueModuleActivity: FC<TIssueModuleActivity> = observer((props) =>
<>
{activity.verb === "created" ? (
<>
- <span>added this issue to the module </span>
+ <span>added this work item to the module </span>
<a
href={`/${activity.workspace_detail?.slug}/projects/${activity.project}/modules/${activity.new_identifier}`}
target="_blank"
@@ -54,7 +54,7 @@ export const IssueModuleActivity: FC<TIssueModuleActivity> = observer((props) =>
</>
) : (
<>
- <span>removed the issue from the module </span>
+ <span>removed the work item from the module </span>
<a
href={`/${activity.workspace_detail?.slug}/projects/${activity.project}/modules/${activity.old_identifier}`}
target="_blank"
diff --git a/web/core/components/issues/issue-detail/issue-activity/comments/comment-card.tsx b/web/core/components/issues/issue-detail/issue-activity/comments/comment-card.tsx
index ec84304cb1..c8f33b6264 100644
--- a/web/core/components/issues/issue-detail/issue-activity/comments/comment-card.tsx
+++ b/web/core/components/issues/issue-detail/issue-activity/comments/comment-card.tsx
@@ -8,6 +8,8 @@ import { Check, Globe2, Lock, Pencil, Trash2, X } from "lucide-react";
import { EIssueCommentAccessSpecifier } from "@plane/constants";
// plane editor
import { EditorReadOnlyRefApi, EditorRefApi } from "@plane/editor";
+// plane i18n
+import { useTranslation } from "@plane/i18n";
// plane types
import { TIssueComment } from "@plane/types";
// plane ui
@@ -47,6 +49,7 @@ export const IssueCommentCard: FC<TIssueCommentCard> = observer((props) => {
showAccessSpecifier = false,
disabled = false,
} = props;
+ const { t } = useTranslation();
// states
const [isEditing, setIsEditing] = useState(false);
// refs
@@ -104,7 +107,7 @@ export const IssueCommentCard: FC<TIssueCommentCard> = observer((props) => {
<CustomMenu ellipsis closeOnSelect>
<CustomMenu.MenuItem onClick={() => setIsEditing(true)} className="flex items-center gap-1">
<Pencil className="flex-shrink-0 size-3" />
- Edit
+ {t("common.actions.edit")}
</CustomMenu.MenuItem>
{showAccessSpecifier && (
<>
@@ -116,7 +119,7 @@ export const IssueCommentCard: FC<TIssueCommentCard> = observer((props) => {
className="flex items-center gap-1"
>
<Globe2 className="flex-shrink-0 size-3" />
- Switch to public comment
+ {t("issue.comments.switch.public")}
</CustomMenu.MenuItem>
) : (
<CustomMenu.MenuItem
@@ -126,7 +129,7 @@ export const IssueCommentCard: FC<TIssueCommentCard> = observer((props) => {
className="flex items-center gap-1"
>
<Lock className="flex-shrink-0 size-3" />
- Switch to private comment
+ {t("issue.comments.switch.private")}
</CustomMenu.MenuItem>
)}
</>
@@ -136,7 +139,7 @@ export const IssueCommentCard: FC<TIssueCommentCard> = observer((props) => {
className="flex items-center gap-1"
>
<Trash2 className="flex-shrink-0 size-3" />
- Delete
+ {t("common.actions.delete")}
</CustomMenu.MenuItem>
</CustomMenu>
)}
diff --git a/web/core/components/issues/issue-detail/issue-activity/comments/root.tsx b/web/core/components/issues/issue-detail/issue-activity/comments/root.tsx
index 7b481af355..8a7e921084 100644
--- a/web/core/components/issues/issue-detail/issue-activity/comments/root.tsx
+++ b/web/core/components/issues/issue-detail/issue-activity/comments/root.tsx
@@ -1,15 +1,15 @@
import { FC } from "react";
import { observer } from "mobx-react";
+// plane imports
+import { useTranslation } from "@plane/i18n";
// components
-import { EmptyState } from "@/components/empty-state";
-// hooks
-import { EmptyStateType } from "@/constants/empty-state";
+import { SimpleEmptyState } from "@/components/empty-state";
// hooks
import { useIssueDetail } from "@/hooks/store";
-// components
+import { useResolvedAssetPath } from "@/hooks/use-resolved-asset-path";
+// local components
import { TActivityOperations } from "../root";
import { IssueCommentCard } from "./comment-card";
-// types
type TIssueCommentRoot = {
projectId: string;
@@ -26,6 +26,9 @@ export const IssueCommentRoot: FC<TIssueCommentRoot> = observer((props) => {
const {
comment: { getCommentsByIssueId },
} = useIssueDetail();
+ const { t } = useTranslation();
+ // derived values
+ const resolvedPath = useResolvedAssetPath({ basePath: "/empty-state/search/comments" });
const commentIds = getCommentsByIssueId(issueId);
if (!commentIds) return <></>;
@@ -48,7 +51,11 @@ export const IssueCommentRoot: FC<TIssueCommentRoot> = observer((props) => {
))
) : (
<div className="flex items-center justify-center py-9">
- <EmptyState type={EmptyStateType.ISSUE_COMMENT_EMPTY_STATE} layout="screen-simple" />
+ <SimpleEmptyState
+ title={t("issue_comment.empty_state.general.title")}
+ description={t("issue_comment.empty_state.general.description")}
+ assetPath={resolvedPath}
+ />
</div>
)}
</div>
diff --git a/web/core/components/issues/issue-detail/issue-activity/root.tsx b/web/core/components/issues/issue-detail/issue-activity/root.tsx
index 90bc93f1c0..6e45b12d4c 100644
--- a/web/core/components/issues/issue-detail/issue-activity/root.tsx
+++ b/web/core/components/issues/issue-detail/issue-activity/root.tsx
@@ -3,8 +3,11 @@
import { FC, useMemo } from "react";
import { observer } from "mobx-react";
// plane package imports
-import { E_SORT_ORDER } from "@plane/constants";
+import { E_SORT_ORDER, TActivityFilters, defaultActivityFilters,EUserPermissions } from "@plane/constants";
import { useLocalStorage } from "@plane/hooks";
+// i18n
+import { useTranslation } from "@plane/i18n";
+//types
import { TFileSignedURLResponse, TIssueComment } from "@plane/types";
import { EFileAssetType } from "@plane/types/src/enums";
import { TOAST_TYPE, setToast } from "@plane/ui";
@@ -16,9 +19,6 @@ import { ActivitySortRoot, IssueActivityCommentRoot } from "@/components/issues/
import { useIssueDetail, useProject, useUser, useUserPermissions } from "@/hooks/store";
// plane web components
import { ActivityFilterRoot, IssueActivityWorklogCreateButton } from "@/plane-web/components/issues/worklog";
-// plane web constants
-import { TActivityFilters, defaultActivityFilters } from "@/plane-web/constants/issues";
-import { EUserPermissions } from "@/plane-web/constants/user-permissions";
// services
import { FileService } from "@/services/file.service";
const fileService = new FileService();
@@ -40,6 +40,8 @@ export type TActivityOperations = {
export const IssueActivity: FC<TIssueActivity> = observer((props) => {
const { workspaceSlug, projectId, issueId, disabled = false, isIntakeIssue = false } = props;
+ // i18n
+ const { t } = useTranslation();
// hooks
const { setValue: setFilterValue, storedValue: selectedFilters } = useLocalStorage(
"issue_activity_filters",
@@ -87,16 +89,16 @@ export const IssueActivity: FC<TIssueActivity> = observer((props) => {
if (!workspaceSlug || !projectId || !issueId) throw new Error("Missing fields");
const comment = await createComment(workspaceSlug, projectId, issueId, data);
setToast({
- title: "Success!",
+ title: t("common.success"),
type: TOAST_TYPE.SUCCESS,
- message: "Comment created successfully.",
+ message: t("issue.comments.create.success"),
});
return comment;
} catch (error) {
setToast({
- title: "Error!",
+ title: t("common.error.label"),
type: TOAST_TYPE.ERROR,
- message: "Comment creation failed. Please try again later.",
+ message: t("issue.comments.create.error"),
});
}
},
@@ -105,15 +107,15 @@ export const IssueActivity: FC<TIssueActivity> = observer((props) => {
if (!workspaceSlug || !projectId || !issueId) throw new Error("Missing fields");
await updateComment(workspaceSlug, projectId, issueId, commentId, data);
setToast({
- title: "Success!",
+ title: t("common.success"),
type: TOAST_TYPE.SUCCESS,
- message: "Comment updated successfully.",
+ message: t("issue.comments.update.success"),
});
} catch (error) {
setToast({
- title: "Error!",
+ title: t("common.error.label"),
type: TOAST_TYPE.ERROR,
- message: "Comment update failed. Please try again later.",
+ message: t("issue.comments.update.error"),
});
}
},
@@ -122,15 +124,15 @@ export const IssueActivity: FC<TIssueActivity> = observer((props) => {
if (!workspaceSlug || !projectId || !issueId) throw new Error("Missing fields");
await removeComment(workspaceSlug, projectId, issueId, commentId);
setToast({
- title: "Success!",
+ title: t("common.success"),
type: TOAST_TYPE.SUCCESS,
- message: "Comment removed successfully.",
+ message: t("issue.comments.remove.success"),
});
} catch (error) {
setToast({
- title: "Error!",
+ title: t("common.error.label"),
type: TOAST_TYPE.ERROR,
- message: "Comment remove failed. Please try again later.",
+ message: t("issue.comments.remove.error"),
});
}
},
@@ -149,7 +151,7 @@ export const IssueActivity: FC<TIssueActivity> = observer((props) => {
return res;
} catch (error) {
console.log("Error in uploading comment asset:", error);
- throw new Error("Asset upload failed. Please try again later.");
+ throw new Error(t("issue.comments.upload.error"));
}
},
}),
@@ -163,7 +165,7 @@ export const IssueActivity: FC<TIssueActivity> = observer((props) => {
<div className="space-y-4 pt-3">
{/* header */}
<div className="flex items-center justify-between">
- <div className="text-lg text-custom-text-100">Activity</div>
+ <div className="text-lg text-custom-text-100">{t("common.activity")}</div>
<div className="flex items-center gap-2">
{isWorklogButtonEnabled && (
<IssueActivityWorklogCreateButton
diff --git a/web/core/components/issues/issue-detail/issue-detail-quick-actions.tsx b/web/core/components/issues/issue-detail/issue-detail-quick-actions.tsx
index 31858bff15..2a5b563c5c 100644
--- a/web/core/components/issues/issue-detail/issue-detail-quick-actions.tsx
+++ b/web/core/components/issues/issue-detail/issue-detail-quick-actions.tsx
@@ -4,13 +4,18 @@ import React, { FC, useState } from "react";
import { observer } from "mobx-react";
import { usePathname } from "next/navigation";
import { ArchiveIcon, ArchiveRestoreIcon, LinkIcon, Trash2 } from "lucide-react";
-import { EIssuesStoreType } from "@plane/constants";
+import {
+ ISSUE_ARCHIVED,
+ ISSUE_DELETED,
+ ARCHIVABLE_STATE_GROUPS,
+ EIssuesStoreType,
+ EUserPermissions,
+ EUserPermissionsLevel,
+} from "@plane/constants";
+import { useTranslation } from "@plane/i18n";
import { TOAST_TYPE, Tooltip, setToast } from "@plane/ui";
// components
import { ArchiveIssueModal, DeleteIssueModal, IssueSubscription } from "@/components/issues";
-// constants
-import { ISSUE_ARCHIVED, ISSUE_DELETED } from "@/constants/event-tracker";
-import { ARCHIVABLE_STATE_GROUPS } from "@/constants/state";
// helpers
import { cn } from "@/helpers/common.helper";
import { copyTextToClipboard } from "@/helpers/string.helper";
@@ -25,7 +30,6 @@ import {
} from "@/hooks/store";
import { useAppRouter } from "@/hooks/use-app-router";
import { usePlatformOS } from "@/hooks/use-platform-os";
-import { EUserPermissions, EUserPermissionsLevel } from "@/plane-web/constants/user-permissions";
type Props = {
workspaceSlug: string;
@@ -35,7 +39,7 @@ type Props = {
export const IssueDetailQuickActions: FC<Props> = observer((props) => {
const { workspaceSlug, projectId, issueId } = props;
-
+ const { t } = useTranslation();
// states
const [deleteIssueModal, setDeleteIssueModal] = useState(false);
const [archiveIssueModal, setArchiveIssueModal] = useState(false);
@@ -75,8 +79,8 @@ export const IssueDetailQuickActions: FC<Props> = observer((props) => {
copyTextToClipboard(`${originURL}/${workspaceSlug}/projects/${projectId}/issues/${issue.id}`).then(() => {
setToast({
type: TOAST_TYPE.SUCCESS,
- title: "Link Copied!",
- message: "Issue link copied to clipboard.",
+ title: t("common.link_copied"),
+ message: t("common.copied_to_clipboard"),
});
});
};
@@ -92,19 +96,19 @@ export const IssueDetailQuickActions: FC<Props> = observer((props) => {
router.push(redirectionPath);
captureIssueEvent({
eventName: ISSUE_DELETED,
- payload: { id: issueId, state: "SUCCESS", element: "Issue detail page" },
+ payload: { id: issueId, state: "SUCCESS", element: "Work item detail page" },
path: pathname,
});
});
} catch (error) {
setToast({
- title: "Error!",
+ title: t("toast.error "),
type: TOAST_TYPE.ERROR,
- message: "Issue delete failed",
+ message: t("entity.delete.failed", { entity: t("issue.label", { count: 1 }) }),
});
captureIssueEvent({
eventName: ISSUE_DELETED,
- payload: { id: issueId, state: "FAILED", element: "Issue detail page" },
+ payload: { id: issueId, state: "FAILED", element: "Work item detail page" },
path: pathname,
});
}
@@ -138,16 +142,16 @@ export const IssueDetailQuickActions: FC<Props> = observer((props) => {
.then(() => {
setToast({
type: TOAST_TYPE.SUCCESS,
- title: "Restore success",
- message: "Your issue can be found in project issues.",
+ title: t("issue.restore.success.title"),
+ message: t("issue.restore.success.message"),
});
router.push(`/${workspaceSlug}/projects/${projectId}/issues/${issueId}`);
})
.catch(() => {
setToast({
type: TOAST_TYPE.ERROR,
- title: "Error!",
- message: "Issue could not be restored. Please try again.",
+ title: t("toast.error"),
+ message: t("issue.restore.failed.message"),
});
})
.finally(() => setIsRestoring(false));
@@ -182,7 +186,7 @@ export const IssueDetailQuickActions: FC<Props> = observer((props) => {
<IssueSubscription workspaceSlug={workspaceSlug} projectId={projectId} issueId={issueId} />
)}
<div className="flex flex-wrap items-center gap-2.5 text-custom-text-300">
- <Tooltip tooltipContent="Copy link" isMobile={isMobile}>
+ <Tooltip tooltipContent={t("common.actions.copy_link")} isMobile={isMobile}>
<button
type="button"
className="grid h-5 w-5 place-items-center rounded hover:text-custom-text-200 focus:outline-none focus:ring-2 focus:ring-custom-primary"
@@ -215,9 +219,7 @@ export const IssueDetailQuickActions: FC<Props> = observer((props) => {
{isArchivingAllowed && (
<Tooltip
isMobile={isMobile}
- tooltipContent={
- isInArchivableGroup ? "Archive" : "Only completed or canceled issues can be archived"
- }
+ tooltipContent={isInArchivableGroup ? t("common.actions.archive") : t("issue.archive.description")}
>
<button
type="button"
@@ -241,7 +243,7 @@ export const IssueDetailQuickActions: FC<Props> = observer((props) => {
)}
{isEditable && (
- <Tooltip tooltipContent="Delete" isMobile={isMobile}>
+ <Tooltip tooltipContent={t("common.actions.delete")} isMobile={isMobile}>
<button
type="button"
className="grid h-5 w-5 place-items-center rounded hover:text-custom-text-200 focus:outline-none focus:ring-2 focus:ring-custom-primary"
diff --git a/web/core/components/issues/issue-detail/label/root.tsx b/web/core/components/issues/issue-detail/label/root.tsx
index f31defafd4..ba31a81d07 100644
--- a/web/core/components/issues/issue-detail/label/root.tsx
+++ b/web/core/components/issues/issue-detail/label/root.tsx
@@ -3,6 +3,7 @@
import { FC, useMemo } from "react";
import { observer } from "mobx-react";
import { EIssueServiceType } from "@plane/constants";
+import { useTranslation } from "@plane/i18n";
import { IIssueLabel, TIssue, TIssueServiceType } from "@plane/types";
// components
import { TOAST_TYPE, setToast } from "@plane/ui";
@@ -39,6 +40,7 @@ export const IssueLabel: FC<TIssueLabel> = observer((props) => {
onLabelUpdate,
issueServiceType = EIssueServiceType.ISSUES,
} = props;
+ const { t } = useTranslation();
// hooks
const { updateIssue } = useIssueDetail(issueServiceType);
const { createLabel } = useLabel();
@@ -57,9 +59,9 @@ export const IssueLabel: FC<TIssueLabel> = observer((props) => {
else await updateIssue(workspaceSlug, projectId, issueId, data);
} catch (error) {
setToast({
- title: "Error!",
+ title: t("toast.error"),
type: TOAST_TYPE.ERROR,
- message: "Issue update failed",
+ message: t("entity.update.failed", { entity: t("issue.label", { count: 1 }) }),
});
}
},
@@ -68,18 +70,18 @@ export const IssueLabel: FC<TIssueLabel> = observer((props) => {
const labelResponse = await createLabel(workspaceSlug, projectId, data);
if (!isInboxIssue)
setToast({
- title: "Success!",
+ title: t("toast.success"),
type: TOAST_TYPE.SUCCESS,
- message: "Label created successfully",
+ message: t("label.create.success"),
});
return labelResponse;
} catch (error) {
- let errMessage = "Label creation failed";
+ let errMessage = t("label.create.failed");
if (error && (error as any).error === "Label with the same name already exists in the project")
- errMessage = "Label already exists";
+ errMessage = t("label.create.already_exists");
setToast({
- title: "Error!",
+ title: t("toast.error"),
type: TOAST_TYPE.ERROR,
message: errMessage,
});
diff --git a/web/core/components/issues/issue-detail/label/select/label-select.tsx b/web/core/components/issues/issue-detail/label/select/label-select.tsx
index 20cb0b2599..05f9956efa 100644
--- a/web/core/components/issues/issue-detail/label/select/label-select.tsx
+++ b/web/core/components/issues/issue-detail/label/select/label-select.tsx
@@ -3,14 +3,15 @@ import { observer } from "mobx-react";
import { usePopper } from "react-popper";
import { Check, Loader, Search, Tag } from "lucide-react";
import { Combobox } from "@headlessui/react";
-// helpers
+// plane imports
+import { EUserPermissionsLevel, EUserProjectRoles, getRandomLabelColor } from "@plane/constants";
+import { useTranslation } from "@plane/i18n";
import { IIssueLabel } from "@plane/types";
-import { getRandomLabelColor } from "@/constants/label";
+// helpers
import { getTabIndex } from "@/helpers/tab-indices.helper";
// hooks
import { useLabel, useUserPermissions } from "@/hooks/store";
import { usePlatformOS } from "@/hooks/use-platform-os";
-import { EUserPermissions, EUserPermissionsLevel } from "ee/constants/user-permissions";
//constants
export interface IIssueLabelSelect {
workspaceSlug: string;
@@ -23,6 +24,7 @@ export interface IIssueLabelSelect {
export const IssueLabelSelect: React.FC<IIssueLabelSelect> = observer((props) => {
const { workspaceSlug, projectId, issueId, values, onSelect, onAddLabel } = props;
+ const { t } = useTranslation();
// store hooks
const { isMobile } = usePlatformOS();
const { fetchProjectLabels, getProjectLabels } = useLabel();
@@ -34,7 +36,7 @@ export const IssueLabelSelect: React.FC<IIssueLabelSelect> = observer((props) =>
const [query, setQuery] = useState("");
const [submitting, setSubmitting] = useState<boolean>(false);
- const canCreateLabel = allowPermissions([EUserPermissions.ADMIN], EUserPermissionsLevel.PROJECT);
+ const canCreateLabel = allowPermissions([EUserProjectRoles.ADMIN], EUserPermissionsLevel.PROJECT);
const projectLabels = getProjectLabels(projectId);
@@ -86,7 +88,7 @@ export const IssueLabelSelect: React.FC<IIssueLabelSelect> = observer((props) =>
<div className="flex-shrink-0">
<Tag className="h-2.5 w-2.5" />
</div>
- <div className="flex-shrink-0">Select Label</div>
+ <div className="flex-shrink-0">{t("label.select")}</div>
</div>
);
@@ -147,7 +149,7 @@ export const IssueLabelSelect: React.FC<IIssueLabelSelect> = observer((props) =>
className="w-full bg-transparent px-2 py-1 text-xs text-custom-text-200 placeholder:text-custom-text-400 focus:outline-none"
value={query}
onChange={(e) => setQuery(e.target.value)}
- placeholder="Search"
+ placeholder={t("common.search.label")}
displayValue={(assigned: any) => assigned?.name}
onKeyDown={searchInputKeyDown}
tabIndex={baseTabIndex}
@@ -156,7 +158,7 @@ export const IssueLabelSelect: React.FC<IIssueLabelSelect> = observer((props) =>
</div>
<div className={`vertical-scrollbar scrollbar-sm mt-2 max-h-48 space-y-1 overflow-y-scroll px-2 pr-0`}>
{isLoading ? (
- <p className="text-center text-custom-text-200">Loading...</p>
+ <p className="text-center text-custom-text-200">{t("common.loading")}</p>
) : filteredOptions.length > 0 ? (
filteredOptions.map((option) => (
<Combobox.Option
@@ -195,14 +197,15 @@ export const IssueLabelSelect: React.FC<IIssueLabelSelect> = observer((props) =>
>
{query.length ? (
<>
- + Add <span className="text-custom-text-100">&quot;{query}&quot;</span> to labels
+ {/* TODO: Translate here */}+ Add{" "}
+ <span className="text-custom-text-100">&quot;{query}&quot;</span> to labels
</>
) : (
- "Type to add a new label"
+ t("label.create.type")
)}
</Combobox.Option>
) : (
- <p className="text-left text-custom-text-200 ">No matching results.</p>
+ <p className="text-left text-custom-text-200 ">{t("common.search.no_matching_results")}</p>
)}
</div>
</div>
diff --git a/web/core/components/issues/issue-detail/links/create-update-link-modal.tsx b/web/core/components/issues/issue-detail/links/create-update-link-modal.tsx
index 2da5d0f795..8ddd77f877 100644
--- a/web/core/components/issues/issue-detail/links/create-update-link-modal.tsx
+++ b/web/core/components/issues/issue-detail/links/create-update-link-modal.tsx
@@ -4,6 +4,7 @@ import { FC, useEffect } from "react";
import { observer } from "mobx-react";
import { Controller, useForm } from "react-hook-form";
import { EIssueServiceType } from "@plane/constants";
+import { useTranslation } from "@plane/i18n";
// plane types
import type { TIssueLinkEditableFields, TIssueServiceType } from "@plane/types";
// plane ui
@@ -32,6 +33,8 @@ const defaultValues: TIssueLinkCreateFormFieldOptions = {
};
export const IssueLinkCreateUpdateModal: FC<TIssueLinkCreateEditModal> = observer((props) => {
+ // i18n
+ const { t } = useTranslation();
// props
const { isModalOpen, handleOnClose, linkOperations, issueServiceType = EIssueServiceType.ISSUES } = props;
// react hook form
@@ -70,11 +73,13 @@ export const IssueLinkCreateUpdateModal: FC<TIssueLinkCreateEditModal> = observe
<ModalCore isOpen={isModalOpen} handleClose={onClose}>
<form onSubmit={handleSubmit(handleFormSubmit)}>
<div className="space-y-5 p-5">
- <h3 className="text-xl font-medium text-custom-text-200">{preloadedData?.id ? "Update" : "Add"} link</h3>
+ <h3 className="text-xl font-medium text-custom-text-200">
+ {preloadedData?.id ? t("common.update_link") : t("common.add_link")}
+ </h3>
<div className="mt-2 space-y-3">
<div>
<label htmlFor="url" className="mb-2 text-custom-text-200">
- URL
+ {t("common.url")}
</label>
<Controller
control={control}
@@ -90,17 +95,17 @@ export const IssueLinkCreateUpdateModal: FC<TIssueLinkCreateEditModal> = observe
onChange={onChange}
ref={ref}
hasError={Boolean(errors.url)}
- placeholder="Type or paste a URL"
+ placeholder={t("common.type_or_paste_a_url")}
className="w-full"
/>
)}
/>
- {errors.url && <span className="text-xs text-red-500">URL is invalid</span>}
+ {errors.url && <span className="text-xs text-red-500">{t("common.url_is_invalid")}</span>}
</div>
<div>
<label htmlFor="title" className="mb-2 text-custom-text-200">
- Display title
- <span className="text-[10px] block">Optional</span>
+ {t("common.display_title")}
+ <span className="text-[10px] block">{t("common.optional")}</span>
</label>
<Controller
control={control}
@@ -113,7 +118,7 @@ export const IssueLinkCreateUpdateModal: FC<TIssueLinkCreateEditModal> = observe
onChange={onChange}
ref={ref}
hasError={Boolean(errors.title)}
- placeholder="What you'd like to see this link as"
+ placeholder={t("common.link_title_placeholder")}
className="w-full"
/>
)}
@@ -123,10 +128,18 @@ export const IssueLinkCreateUpdateModal: FC<TIssueLinkCreateEditModal> = observe
</div>
<div className="px-5 py-4 flex items-center justify-end gap-2 border-t-[0.5px] border-custom-border-200">
<Button variant="neutral-primary" size="sm" onClick={onClose}>
- Cancel
+ {t("common.cancel")}
</Button>
<Button variant="primary" size="sm" type="submit" loading={isSubmitting}>
- {preloadedData?.id ? (isSubmitting ? "Updating" : "Update") : isSubmitting ? "Adding" : "Add"} link
+ {`${
+ preloadedData?.id
+ ? isSubmitting
+ ? t("common.updating")
+ : t("common.update")
+ : isSubmitting
+ ? t("common.adding")
+ : t("common.add")
+ } ${t("common.link")}`}
</Button>
</div>
</form>
diff --git a/web/core/components/issues/issue-detail/links/link-item.tsx b/web/core/components/issues/issue-detail/links/link-item.tsx
index c092bf4282..ce0070bd5f 100644
--- a/web/core/components/issues/issue-detail/links/link-item.tsx
+++ b/web/core/components/issues/issue-detail/links/link-item.tsx
@@ -4,6 +4,7 @@ import { FC } from "react";
import { observer } from "mobx-react";
import { Pencil, Trash2, LinkIcon, Copy } from "lucide-react";
import { EIssueServiceType } from "@plane/constants";
+import { useTranslation } from "@plane/i18n";
import { TIssueServiceType } from "@plane/types";
// ui
import { Tooltip, TOAST_TYPE, setToast, CustomMenu } from "@plane/ui";
@@ -26,6 +27,7 @@ export const IssueLinkItem: FC<TIssueLinkItem> = observer((props) => {
// props
const { linkId, linkOperations, isNotAllowed, issueServiceType = EIssueServiceType.ISSUES } = props;
// hooks
+ const { t } = useTranslation();
const {
toggleIssueLinkModal: toggleIssueLinkModalStore,
setIssueLinkData,
@@ -67,8 +69,8 @@ export const IssueLinkItem: FC<TIssueLinkItem> = observer((props) => {
copyTextToClipboard(linkDetail.url);
setToast({
type: TOAST_TYPE.SUCCESS,
- title: "Link copied!",
- message: "Link copied to clipboard",
+ title: t("common.link_copied"),
+ message: t("common.link_copied_to_clipboard"),
});
}}
className="relative grid place-items-center rounded p-1 text-custom-text-400 outline-none group-hover:text-custom-text-200 cursor-pointer hover:bg-custom-background-80"
@@ -91,7 +93,7 @@ export const IssueLinkItem: FC<TIssueLinkItem> = observer((props) => {
}}
>
<Pencil className="h-3 w-3 stroke-[1.5] text-custom-text-200" />
- Edit
+ {t("common.actions.edit")}
</CustomMenu.MenuItem>
<CustomMenu.MenuItem
className="flex items-center gap-2"
@@ -102,7 +104,7 @@ export const IssueLinkItem: FC<TIssueLinkItem> = observer((props) => {
}}
>
<Trash2 className="h-3 w-3" />
- Delete
+ {t("common.actions.delete")}
</CustomMenu.MenuItem>
</CustomMenu>
</div>
diff --git a/web/core/components/issues/issue-detail/module-select.tsx b/web/core/components/issues/issue-detail/module-select.tsx
index c51e884819..d021958e89 100644
--- a/web/core/components/issues/issue-detail/module-select.tsx
+++ b/web/core/components/issues/issue-detail/module-select.tsx
@@ -1,6 +1,7 @@
import React, { useState } from "react";
import xor from "lodash/xor";
import { observer } from "mobx-react";
+import { useTranslation } from "@plane/i18n";
// hooks
// components
import { ModuleDropdown } from "@/components/dropdowns";
@@ -22,6 +23,7 @@ type TIssueModuleSelect = {
export const IssueModuleSelect: React.FC<TIssueModuleSelect> = observer((props) => {
const { className = "", workspaceSlug, projectId, issueId, issueOperations, disabled = false } = props;
+ const { t } = useTranslation();
// states
const [isUpdating, setIsUpdating] = useState(false);
// store hooks
@@ -59,7 +61,7 @@ export const IssueModuleSelect: React.FC<TIssueModuleSelect> = observer((props)
projectId={projectId}
value={issue?.module_ids ?? []}
onChange={handleIssueModuleChange}
- placeholder="No module"
+ placeholder={t("module.no_module")}
disabled={disableSelect}
className="group h-full w-full"
buttonContainerClassName="w-full rounded"
diff --git a/web/core/components/issues/issue-detail/parent-select.tsx b/web/core/components/issues/issue-detail/parent-select.tsx
index d83bc635b4..72c0de4128 100644
--- a/web/core/components/issues/issue-detail/parent-select.tsx
+++ b/web/core/components/issues/issue-detail/parent-select.tsx
@@ -4,6 +4,7 @@ import React from "react";
import { observer } from "mobx-react";
import Link from "next/link";
import { Pencil, X } from "lucide-react";
+import { useTranslation } from "@plane/i18n";
// ui
import { TOAST_TYPE, Tooltip, setToast } from "@plane/ui";
// components
@@ -29,6 +30,7 @@ type TIssueParentSelect = {
export const IssueParentSelect: React.FC<TIssueParentSelect> = observer((props) => {
const { className = "", disabled = false, issueId, issueOperations, projectId, workspaceSlug } = props;
+ const { t } = useTranslation();
// store hooks
const { getProjectById } = useProject();
const {
@@ -72,8 +74,8 @@ export const IssueParentSelect: React.FC<TIssueParentSelect> = observer((props)
} catch (error) {
setToast({
type: TOAST_TYPE.ERROR,
- title: "Error!",
- message: "Something went wrong",
+ title: t("common.error.label"),
+ message: t("common.something_went_wrong"),
});
}
};
@@ -126,7 +128,7 @@ export const IssueParentSelect: React.FC<TIssueParentSelect> = observer((props)
</Tooltip>
{!disabled && (
- <Tooltip tooltipContent="Remove" position="bottom" isMobile={isMobile}>
+ <Tooltip tooltipContent={t("common.remove")} position="bottom" isMobile={isMobile}>
<span
onClick={(e) => {
e.preventDefault();
@@ -140,7 +142,7 @@ export const IssueParentSelect: React.FC<TIssueParentSelect> = observer((props)
)}
</div>
) : (
- <span className="text-sm text-custom-text-400">Add parent issue</span>
+ <span className="text-sm text-custom-text-400">{t("issue.add.parent")}</span>
)}
{!disabled && (
<span
diff --git a/web/core/components/issues/issue-detail/parent/root.tsx b/web/core/components/issues/issue-detail/parent/root.tsx
index c96ecd69ac..26401ccec1 100644
--- a/web/core/components/issues/issue-detail/parent/root.tsx
+++ b/web/core/components/issues/issue-detail/parent/root.tsx
@@ -3,6 +3,7 @@
import { FC } from "react";
import { observer } from "mobx-react";
import { MinusCircle } from "lucide-react";
+import { useTranslation } from "@plane/i18n";
import { TIssue } from "@plane/types";
// component
// ui
@@ -27,6 +28,7 @@ export type TIssueParentDetail = {
export const IssueParentDetail: FC<TIssueParentDetail> = observer((props) => {
const { workspaceSlug, projectId, issueId, issue, issueOperations } = props;
+ const { t } = useTranslation();
// hooks
const { issueMap } = useIssues();
const { getProjectStates } = useProjectState();
@@ -66,7 +68,7 @@ export const IssueParentDetail: FC<TIssueParentDetail> = observer((props) => {
<CustomMenu ellipsis optionsClassName="p-1.5">
<div className="border-b border-custom-border-300 text-xs font-medium text-custom-text-200">
- Sibling issues
+ {t("issue.sibling.label")}
</div>
<IssueParentSiblings workspaceSlug={workspaceSlug} currentIssue={issue} parentIssue={parentIssue} />
@@ -76,7 +78,7 @@ export const IssueParentDetail: FC<TIssueParentDetail> = observer((props) => {
className="flex items-center gap-2 py-2 text-red-500"
>
<MinusCircle className="h-4 w-4" />
- <span> Remove Parent Issue</span>
+ <span>{t("issue.remove.parent.label")}</span>
</CustomMenu.MenuItem>
</CustomMenu>
</div>
diff --git a/web/core/components/issues/issue-detail/parent/siblings.tsx b/web/core/components/issues/issue-detail/parent/siblings.tsx
index 30998c9aae..8c03143609 100644
--- a/web/core/components/issues/issue-detail/parent/siblings.tsx
+++ b/web/core/components/issues/issue-detail/parent/siblings.tsx
@@ -48,7 +48,7 @@ export const IssueParentSiblings: FC<TIssueParentSiblings> = observer((props) =>
)
) : (
<div className="flex items-center gap-2 whitespace-nowrap px-1 py-1 text-left text-xs text-custom-text-200">
- No sibling issues
+ No sibling work items
</div>
)}
</div>
diff --git a/web/core/components/issues/issue-detail/relation-select.tsx b/web/core/components/issues/issue-detail/relation-select.tsx
index 1796f5454d..3b5417a324 100644
--- a/web/core/components/issues/issue-detail/relation-select.tsx
+++ b/web/core/components/issues/issue-detail/relation-select.tsx
@@ -50,7 +50,7 @@ export const IssueRelationSelect: React.FC<TIssueRelationSelect> = observer((pro
setToast({
type: TOAST_TYPE.ERROR,
title: "Error!",
- message: "Please select at least one issue.",
+ message: "Please select at least one work item.",
});
return;
}
diff --git a/web/core/components/issues/issue-detail/root.tsx b/web/core/components/issues/issue-detail/root.tsx
index 136edab8e2..0da0168628 100644
--- a/web/core/components/issues/issue-detail/root.tsx
+++ b/web/core/components/issues/issue-detail/root.tsx
@@ -4,7 +4,8 @@ import { FC, useMemo } from "react";
import { observer } from "mobx-react";
import { usePathname } from "next/navigation";
// types
-import { EIssuesStoreType } from "@plane/constants";
+import { EIssuesStoreType, ISSUE_UPDATED, ISSUE_DELETED, ISSUE_ARCHIVED,EUserPermissions, EUserPermissionsLevel } from "@plane/constants";
+import { useTranslation } from "@plane/i18n";
import { TIssue } from "@plane/types";
// ui
import { TOAST_TYPE, setPromiseToast, setToast } from "@plane/ui";
@@ -12,11 +13,9 @@ import { TOAST_TYPE, setPromiseToast, setToast } from "@plane/ui";
import { EmptyState } from "@/components/common";
import { IssueDetailsSidebar, IssuePeekOverview } from "@/components/issues";
// constants
-import { ISSUE_UPDATED, ISSUE_DELETED, ISSUE_ARCHIVED } from "@/constants/event-tracker";
// hooks
import { useAppTheme, useEventTracker, useIssueDetail, useIssues, useUserPermissions } from "@/hooks/store";
import { useAppRouter } from "@/hooks/use-app-router";
-import { EUserPermissions, EUserPermissionsLevel } from "@/plane-web/constants/user-permissions";
// images
import emptyIssue from "@/public/empty-state/issue.svg";
// local components
@@ -54,6 +53,7 @@ export type TIssueDetailRoot = {
};
export const IssueDetailRoot: FC<TIssueDetailRoot> = observer((props) => {
+ const { t } = useTranslation();
const { workspaceSlug, projectId, issueId, is_archived = false } = props;
// router
const router = useAppRouter();
@@ -111,9 +111,9 @@ export const IssueDetailRoot: FC<TIssueDetailRoot> = observer((props) => {
path: pathname,
});
setToast({
- title: "Error!",
+ title: t("common.error.label"),
type: TOAST_TYPE.ERROR,
- message: "Issue update failed",
+ message: t("entity.update.failed", { entity: t("issue.label") }),
});
}
},
@@ -122,9 +122,9 @@ export const IssueDetailRoot: FC<TIssueDetailRoot> = observer((props) => {
if (is_archived) await removeArchivedIssue(workspaceSlug, projectId, issueId);
else await removeIssue(workspaceSlug, projectId, issueId);
setToast({
- title: "Success!",
+ title: t("common.success"),
type: TOAST_TYPE.SUCCESS,
- message: "Issue deleted successfully",
+ message: t("entity.delete.success", { entity: t("issue.label") }),
});
captureIssueEvent({
eventName: ISSUE_DELETED,
@@ -134,9 +134,9 @@ export const IssueDetailRoot: FC<TIssueDetailRoot> = observer((props) => {
} catch (error) {
console.log("Error in deleting issue:", error);
setToast({
- title: "Error!",
+ title: t("common.error.label"),
type: TOAST_TYPE.ERROR,
- message: "Issue delete failed",
+ message: t("entity.delete.failed", { entity: t("issue.label") }),
});
captureIssueEvent({
eventName: ISSUE_DELETED,
@@ -177,8 +177,8 @@ export const IssueDetailRoot: FC<TIssueDetailRoot> = observer((props) => {
} catch (error) {
setToast({
type: TOAST_TYPE.ERROR,
- title: "Error!",
- message: "Issue could not be added to the cycle. Please try again.",
+ title: t("common.error.label"),
+ message: t("issue.add.cycle.failed"),
});
captureIssueEvent({
eventName: ISSUE_UPDATED,
@@ -206,8 +206,8 @@ export const IssueDetailRoot: FC<TIssueDetailRoot> = observer((props) => {
} catch (error) {
setToast({
type: TOAST_TYPE.ERROR,
- title: "Error!",
- message: "Issue could not be added to the cycle. Please try again.",
+ title: t("common.error.label"),
+ message: t("issue.add.cycle.failed"),
});
captureIssueEvent({
eventName: ISSUE_UPDATED,
@@ -224,14 +224,14 @@ export const IssueDetailRoot: FC<TIssueDetailRoot> = observer((props) => {
try {
const removeFromCyclePromise = removeIssueFromCycle(workspaceSlug, projectId, cycleId, issueId);
setPromiseToast(removeFromCyclePromise, {
- loading: "Removing issue from the cycle...",
+ loading: t("issue.remove.cycle.loading"),
success: {
- title: "Success!",
- message: () => "Issue removed from the cycle successfully.",
+ title: t("common.success"),
+ message: () => t("issue.remove.cycle.success"),
},
error: {
- title: "Error!",
- message: () => "Issue could not be removed from the cycle. Please try again.",
+ title: t("common.error.label"),
+ message: () => t("issue.remove.cycle.failed"),
},
});
await removeFromCyclePromise;
@@ -260,14 +260,14 @@ export const IssueDetailRoot: FC<TIssueDetailRoot> = observer((props) => {
try {
const removeFromModulePromise = removeIssueFromModule(workspaceSlug, projectId, moduleId, issueId);
setPromiseToast(removeFromModulePromise, {
- loading: "Removing issue from the module...",
+ loading: t("issue.remove.module.loading"),
success: {
- title: "Success!",
- message: () => "Issue removed from the module successfully.",
+ title: t("common.success"),
+ message: () => t("issue.remove.module.success"),
},
error: {
- title: "Error!",
- message: () => "Issue could not be removed from the module. Please try again.",
+ title: t("common.error.label"),
+ message: () => t("issue.remove.module.failed"),
},
});
await removeFromModulePromise;
@@ -339,10 +339,10 @@ export const IssueDetailRoot: FC<TIssueDetailRoot> = observer((props) => {
{!issue ? (
<EmptyState
image={emptyIssue}
- title="Issue does not exist"
- description="The issue you are looking for does not exist, has been archived, or has been deleted."
+ title={t("issue.empty_state.issue_detail.title")}
+ description={t("issue.empty_state.issue_detail.description")}
primaryButton={{
- text: "View other issues",
+ text: t("issue.empty_state.issue_detail.primary_button.text"),
onClick: () => router.push(`/${workspaceSlug}/projects/${projectId}/issues`),
}}
/>
diff --git a/web/core/components/issues/issue-detail/sidebar.tsx b/web/core/components/issues/issue-detail/sidebar.tsx
index 102dc6e5a3..b91c6fb3f2 100644
--- a/web/core/components/issues/issue-detail/sidebar.tsx
+++ b/web/core/components/issues/issue-detail/sidebar.tsx
@@ -3,6 +3,8 @@
import React from "react";
import { observer } from "mobx-react";
import { CalendarCheck2, CalendarClock, LayoutPanelTop, Signal, Tag, Triangle, UserCircle2, Users } from "lucide-react";
+// i18n
+import { useTranslation } from "@plane/i18n";
// ui
import { ContrastIcon, DiceIcon, DoubleCircleIcon } from "@plane/ui";
// components
@@ -36,6 +38,7 @@ type Props = {
};
export const IssueDetailsSidebar: React.FC<Props> = observer((props) => {
+ const { t } = useTranslation();
const { workspaceSlug, projectId, issueId, issueOperations, isEditable } = props;
// store hooks
const { getProjectById } = useProject();
@@ -64,13 +67,13 @@ export const IssueDetailsSidebar: React.FC<Props> = observer((props) => {
<>
<div className="flex items-center h-full w-full flex-col divide-y-2 divide-custom-border-200 overflow-hidden">
<div className="h-full w-full overflow-y-auto px-6">
- <h5 className="mt-6 text-sm font-medium">Properties</h5>
+ <h5 className="mt-6 text-sm font-medium">{t("common.properties")}</h5>
{/* TODO: render properties using a common component */}
<div className={`mb-2 mt-3 space-y-2.5 ${!isEditable ? "opacity-60" : ""}`}>
<div className="flex h-8 items-center gap-2">
<div className="flex w-2/5 flex-shrink-0 items-center gap-1 text-sm text-custom-text-300">
<DoubleCircleIcon className="h-4 w-4 flex-shrink-0" />
- <span>State</span>
+ <span>{t("common.state")}</span>
</div>
<StateDropdown
value={issue?.state_id}
@@ -89,14 +92,14 @@ export const IssueDetailsSidebar: React.FC<Props> = observer((props) => {
<div className="flex h-8 items-center gap-2">
<div className="flex w-2/5 flex-shrink-0 items-center gap-1 text-sm text-custom-text-300">
<Users className="h-4 w-4 flex-shrink-0" />
- <span>Assignees</span>
+ <span>{t("common.assignees")}</span>
</div>
<MemberDropdown
value={issue?.assignee_ids ?? undefined}
onChange={(val) => issueOperations.update(workspaceSlug, projectId, issueId, { assignee_ids: val })}
disabled={!isEditable}
projectId={projectId?.toString() ?? ""}
- placeholder="Add assignees"
+ placeholder={t("issue.add.assignee")}
multiple
buttonVariant={issue?.assignee_ids?.length > 1 ? "transparent-without-text" : "transparent-with-text"}
className="group w-3/5 flex-grow"
@@ -113,7 +116,7 @@ export const IssueDetailsSidebar: React.FC<Props> = observer((props) => {
<div className="flex h-8 items-center gap-2">
<div className="flex w-2/5 flex-shrink-0 items-center gap-1 text-sm text-custom-text-300">
<Signal className="h-4 w-4 flex-shrink-0" />
- <span>Priority</span>
+ <span>{t("common.priority")}</span>
</div>
<PriorityDropdown
value={issue?.priority}
@@ -130,7 +133,7 @@ export const IssueDetailsSidebar: React.FC<Props> = observer((props) => {
<div className="flex h-8 items-center gap-2">
<div className="flex w-2/5 flex-shrink-0 items-center gap-1 text-sm text-custom-text-300">
<UserCircle2 className="h-4 w-4 flex-shrink-0" />
- <span>Created by</span>
+ <span>{t("common.created_by")}</span>
</div>
<div className="w-full h-full flex items-center gap-1.5 rounded px-2 py-0.5 text-sm justify-between cursor-not-allowed">
<ButtonAvatars showTooltip userIds={createdByDetails.id} />
@@ -142,10 +145,10 @@ export const IssueDetailsSidebar: React.FC<Props> = observer((props) => {
<div className="flex h-8 items-center gap-2">
<div className="flex w-2/5 flex-shrink-0 items-center gap-1 text-sm text-custom-text-300">
<CalendarClock className="h-4 w-4 flex-shrink-0" />
- <span>Start date</span>
+ <span>{t("common.order_by.start_date")}</span>
</div>
<DateDropdown
- placeholder="Add start date"
+ placeholder={t("issue.add.start_date")}
value={issue.start_date}
onChange={(val) =>
issueOperations.update(workspaceSlug, projectId, issueId, {
@@ -168,10 +171,10 @@ export const IssueDetailsSidebar: React.FC<Props> = observer((props) => {
<div className="flex h-8 items-center gap-2">
<div className="flex w-2/5 flex-shrink-0 items-center gap-1 text-sm text-custom-text-300">
<CalendarCheck2 className="h-4 w-4 flex-shrink-0" />
- <span>Due date</span>
+ <span>{t("common.order_by.due_date")}</span>
</div>
<DateDropdown
- placeholder="Add due date"
+ placeholder={t("issue.add.due_date")}
value={issue.target_date}
onChange={(val) =>
issueOperations.update(workspaceSlug, projectId, issueId, {
@@ -198,7 +201,7 @@ export const IssueDetailsSidebar: React.FC<Props> = observer((props) => {
<div className="flex h-8 items-center gap-2">
<div className="flex w-2/5 flex-shrink-0 items-center gap-1 text-sm text-custom-text-300">
<Triangle className="h-4 w-4 flex-shrink-0" />
- <span>Estimate</span>
+ <span>{t("common.estimate")}</span>
</div>
<EstimateDropdown
value={issue?.estimate_point ?? undefined}
@@ -211,7 +214,7 @@ export const IssueDetailsSidebar: React.FC<Props> = observer((props) => {
className="group w-3/5 flex-grow"
buttonContainerClassName="w-full text-left"
buttonClassName={`text-sm ${issue?.estimate_point !== null ? "" : "text-custom-text-400"}`}
- placeholder="None"
+ placeholder={t("common.none")}
hideIcon
dropdownArrow
dropdownArrowClassName="h-3.5 w-3.5 hidden group-hover:inline"
@@ -223,7 +226,7 @@ export const IssueDetailsSidebar: React.FC<Props> = observer((props) => {
<div className="flex min-h-8 gap-2">
<div className="flex w-2/5 flex-shrink-0 gap-1 pt-2 text-sm text-custom-text-300">
<DiceIcon className="h-4 w-4 flex-shrink-0" />
- <span>Modules</span>
+ <span>{t("common.modules")}</span>
</div>
<IssueModuleSelect
className="w-3/5 flex-grow"
@@ -240,7 +243,7 @@ export const IssueDetailsSidebar: React.FC<Props> = observer((props) => {
<div className="flex h-8 items-center gap-2">
<div className="flex w-2/5 flex-shrink-0 items-center gap-1 text-sm text-custom-text-300">
<ContrastIcon className="h-4 w-4 flex-shrink-0" />
- <span>Cycle</span>
+ <span>{t("common.cycle")}</span>
</div>
<IssueCycleSelect
className="w-3/5 flex-grow"
@@ -256,7 +259,7 @@ export const IssueDetailsSidebar: React.FC<Props> = observer((props) => {
<div className="flex h-8 items-center gap-2">
<div className="flex w-2/5 flex-shrink-0 items-center gap-1 text-sm text-custom-text-300">
<LayoutPanelTop className="h-4 w-4 flex-shrink-0" />
- <span>Parent</span>
+ <span>{t("common.parent")}</span>
</div>
<IssueParentSelect
className="h-full w-3/5 flex-grow"
@@ -271,7 +274,7 @@ export const IssueDetailsSidebar: React.FC<Props> = observer((props) => {
<div className="flex min-h-8 gap-2">
<div className="flex w-2/5 flex-shrink-0 gap-1 pt-2 text-sm text-custom-text-300">
<Tag className="h-4 w-4 flex-shrink-0" />
- <span>Labels</span>
+ <span>{t("common.labels")}</span>
</div>
<div className="h-full min-h-8 w-3/5 flex-grow">
<IssueLabel
diff --git a/web/core/components/issues/issue-detail/subscription.tsx b/web/core/components/issues/issue-detail/subscription.tsx
index bc04a64323..e19e787f39 100644
--- a/web/core/components/issues/issue-detail/subscription.tsx
+++ b/web/core/components/issues/issue-detail/subscription.tsx
@@ -4,11 +4,13 @@ import { FC, useState } from "react";
import isNil from "lodash/isNil";
import { observer } from "mobx-react";
import { Bell, BellOff } from "lucide-react";
+// plane-i18n
+import { EUserPermissions, EUserPermissionsLevel } from "@plane/constants";
+import { useTranslation } from "@plane/i18n";
// UI
import { Button, Loader, TOAST_TYPE, setToast } from "@plane/ui";
// hooks
import { useIssueDetail, useUserPermissions } from "@/hooks/store";
-import { EUserPermissions, EUserPermissionsLevel } from "@/plane-web/constants/user-permissions";
export type TIssueSubscription = {
workspaceSlug: string;
@@ -18,6 +20,7 @@ export type TIssueSubscription = {
export const IssueSubscription: FC<TIssueSubscription> = observer((props) => {
const { workspaceSlug, projectId, issueId } = props;
+ const { t } = useTranslation();
// hooks
const {
subscription: { getSubscriptionByIssueId },
@@ -44,16 +47,18 @@ export const IssueSubscription: FC<TIssueSubscription> = observer((props) => {
else await createSubscription(workspaceSlug, projectId, issueId);
setToast({
type: TOAST_TYPE.SUCCESS,
- title: "Success!",
- message: `Issue ${isSubscribed ? `unsubscribed` : `subscribed`} successfully.!`,
+ title: t("toast.success"),
+ message: isSubscribed
+ ? t("issue.subscription.actions.unsubscribed")
+ : t("issue.subscription.actions.subscribed"),
});
setLoading(false);
} catch (error) {
setLoading(false);
setToast({
type: TOAST_TYPE.ERROR,
- title: "Error!",
- message: "Something went wrong. Please try again later.",
+ title: t("toast.error"),
+ message: t("commons.error.message"),
});
}
};
@@ -77,12 +82,12 @@ export const IssueSubscription: FC<TIssueSubscription> = observer((props) => {
>
{loading ? (
<span>
- <span className="hidden sm:block">Loading...</span>
+ <span className="hidden sm:block">{t("common.loading")}</span>
</span>
) : isSubscribed ? (
- <div className="hidden sm:block">Unsubscribe</div>
+ <div className="hidden sm:block">{t("common.actions.unsubscribe")}</div>
) : (
- <div className="hidden sm:block">Subscribe</div>
+ <div className="hidden sm:block">{t("common.actions.subscribe")}</div>
)}
</Button>
</div>
diff --git a/web/core/components/issues/issue-layouts/calendar/base-calendar-root.tsx b/web/core/components/issues/issue-layouts/calendar/base-calendar-root.tsx
index 582d20c369..092ac047c8 100644
--- a/web/core/components/issues/issue-layouts/calendar/base-calendar-root.tsx
+++ b/web/core/components/issues/issue-layouts/calendar/base-calendar-root.tsx
@@ -3,7 +3,7 @@
import { FC, useCallback, useEffect } from "react";
import { observer } from "mobx-react";
import { useParams } from "next/navigation";
-import { EIssueGroupByToServerOptions, EIssuesStoreType } from "@plane/constants";
+import { EIssueGroupByToServerOptions, EIssuesStoreType,EUserPermissions, EUserPermissionsLevel } from "@plane/constants";
import { TGroupedIssues } from "@plane/types";
// components
import { TOAST_TYPE, setToast } from "@plane/ui";
@@ -13,7 +13,6 @@ import { CalendarChart } from "@/components/issues";
import { useIssues, useCalendarView, useUserPermissions } from "@/hooks/store";
import { useIssueStoreType } from "@/hooks/use-issue-layout-store";
import { useIssuesActions } from "@/hooks/use-issues-actions";
-import { EUserPermissions, EUserPermissionsLevel } from "@/plane-web/constants/user-permissions";
// types
import { IQuickActionProps } from "../list/list-view-types";
import { handleDragDrop } from "./utils";
diff --git a/web/core/components/issues/issue-layouts/calendar/day-tile.tsx b/web/core/components/issues/issue-layouts/calendar/day-tile.tsx
index 7f3cae27a8..e80e629e64 100644
--- a/web/core/components/issues/issue-layouts/calendar/day-tile.tsx
+++ b/web/core/components/issues/issue-layouts/calendar/day-tile.tsx
@@ -116,7 +116,7 @@ export const CalendarDayTile: React.FC<Props> = observer((props) => {
setToast({
type: TOAST_TYPE.ERROR,
title: "Error!",
- message: "Due date cannot be before the start date of the issue.",
+ message: "Due date cannot be before the start date of the work item.",
});
return;
}
diff --git a/web/core/components/issues/issue-layouts/calendar/dropdowns/options-dropdown.tsx b/web/core/components/issues/issue-layouts/calendar/dropdowns/options-dropdown.tsx
index 9b5b13ce46..35c2c281cc 100644
--- a/web/core/components/issues/issue-layouts/calendar/dropdowns/options-dropdown.tsx
+++ b/web/core/components/issues/issue-layouts/calendar/dropdowns/options-dropdown.tsx
@@ -10,6 +10,7 @@ import { Popover, Transition } from "@headlessui/react";
// ui
// icons
import { EIssueFilterType } from "@plane/constants";
+import { useTranslation } from "@plane/i18n";
import {
IIssueDisplayFilterOptions,
IIssueDisplayProperties,
@@ -46,6 +47,8 @@ interface ICalendarHeader {
export const CalendarOptionsDropdown: React.FC<ICalendarHeader> = observer((props) => {
const { issuesFilterStore, updateFilters } = props;
+ const { t } = useTranslation();
+
const { projectId } = useParams();
const issueCalendarView = useCalendarView();
@@ -111,7 +114,7 @@ export const CalendarOptionsDropdown: React.FC<ICalendarHeader> = observer((prop
open ? "text-custom-text-100" : "text-custom-text-200"
}`}
>
- <div className="font-medium">Options</div>
+ <div className="font-medium">{t("common.options")}</div>
<div
className={`flex h-3.5 w-3.5 items-center justify-center transition-all ${open ? "" : "rotate-180"}`}
>
@@ -156,7 +159,7 @@ export const CalendarOptionsDropdown: React.FC<ICalendarHeader> = observer((prop
className="flex w-full items-center justify-between gap-2 rounded px-1 py-1.5 text-left text-xs hover:bg-custom-background-80"
onClick={handleToggleWeekends}
>
- Show weekends
+ {t("common.actions.show_weekends")}
<ToggleSwitch
value={showWeekends}
onChange={() => {
diff --git a/web/core/components/issues/issue-layouts/calendar/header.tsx b/web/core/components/issues/issue-layouts/calendar/header.tsx
index a441ff8c16..e5943f33b0 100644
--- a/web/core/components/issues/issue-layouts/calendar/header.tsx
+++ b/web/core/components/issues/issue-layouts/calendar/header.tsx
@@ -3,6 +3,7 @@ import { observer } from "mobx-react";
// components
import { ChevronLeft, ChevronRight } from "lucide-react";
import { EIssueFilterType } from "@plane/constants";
+import { useTranslation } from "@plane/i18n";
import {
IIssueDisplayFilterOptions,
IIssueDisplayProperties,
@@ -37,6 +38,8 @@ interface ICalendarHeader {
export const CalendarHeader: React.FC<ICalendarHeader> = observer((props) => {
const { issuesFilterStore, updateFilters, setSelectedDate } = props;
+ const { t } = useTranslation();
+
const issueCalendarView = useCalendarView();
const calendarLayout = issuesFilterStore.issueFilters?.displayFilters?.calendar?.layout ?? "month";
@@ -119,7 +122,7 @@ export const CalendarHeader: React.FC<ICalendarHeader> = observer((props) => {
className="rounded bg-custom-background-80 px-2.5 py-1 text-xs font-medium text-custom-text-200 hover:text-custom-text-100"
onClick={handleToday}
>
- Today
+ {t("common.today")}
</button>
<CalendarOptionsDropdown issuesFilterStore={issuesFilterStore} updateFilters={updateFilters} />
</div>
diff --git a/web/core/components/issues/issue-layouts/calendar/issue-blocks.tsx b/web/core/components/issues/issue-layouts/calendar/issue-blocks.tsx
index 5eaae6d57d..9e7109fa33 100644
--- a/web/core/components/issues/issue-layouts/calendar/issue-blocks.tsx
+++ b/web/core/components/issues/issue-layouts/calendar/issue-blocks.tsx
@@ -1,4 +1,5 @@
import { observer } from "mobx-react";
+import { useTranslation } from "@plane/i18n";
import { TIssue, TPaginationData } from "@plane/types";
// components
import { CalendarQuickAddIssueActions, CalendarIssueBlockRoot } from "@/components/issues";
@@ -43,6 +44,7 @@ export const CalendarIssueBlocks: React.FC<Props> = observer((props) => {
isEpic = false,
} = props;
const formattedDatePayload = renderFormattedPayloadDate(date);
+ const { t } = useTranslation();
const {
issues: { getGroupIssueCount, getPaginationData, getIssueLoader },
@@ -99,7 +101,7 @@ export const CalendarIssueBlocks: React.FC<Props> = observer((props) => {
className="w-min whitespace-nowrap rounded text-xs px-1.5 py-1 font-medium hover:bg-custom-background-80 text-custom-primary-100 hover:text-custom-primary-200"
onClick={() => loadMoreIssues(formattedDatePayload)}
>
- Load More
+ {t("common.load_more")}
</button>
</div>
)}
diff --git a/web/core/components/issues/issue-layouts/calendar/quick-add-issue-actions.tsx b/web/core/components/issues/issue-layouts/calendar/quick-add-issue-actions.tsx
index 75afad975e..a293d0141c 100644
--- a/web/core/components/issues/issue-layouts/calendar/quick-add-issue-actions.tsx
+++ b/web/core/components/issues/issue-layouts/calendar/quick-add-issue-actions.tsx
@@ -7,6 +7,8 @@ import { useParams } from "next/navigation";
import { PlusIcon } from "lucide-react";
// plane constants
import { EIssueLayoutTypes } from "@plane/constants";
+// i18n
+import { useTranslation } from "@plane/i18n";
// types
import { ISearchIssueResponse, TIssue } from "@plane/types";
// ui
@@ -29,6 +31,7 @@ type TCalendarQuickAddIssueActions = {
export const CalendarQuickAddIssueActions: FC<TCalendarQuickAddIssueActions> = observer((props) => {
const { prePopulatedData, quickAddCallback, addIssuesToView, onOpen, isEpic = false } = props;
+ const { t } = useTranslation();
// router
const { workspaceSlug, projectId, moduleId } = useParams();
// states
@@ -52,14 +55,14 @@ export const CalendarQuickAddIssueActions: FC<TCalendarQuickAddIssueActions> = o
).then(() => addIssuesToView?.(issueIds));
setPromiseToast(addExistingIssuesPromise, {
- loading: `Adding ${issueIds.length > 1 ? "issues" : "issue"} to cycle...`,
+ loading: t("issue.adding", { count: issueIds.length }),
success: {
- title: "Success!",
- message: () => `${issueIds.length > 1 ? "Issues" : "Issue"} added to cycle successfully.`,
+ title: t("toast.success"),
+ message: () => t("entity.add.success", { entity: t("issue.label", { count: 2 }) }),
},
error: {
- title: "Error!",
- message: (err) => err?.message || "Something went wrong. Please try again.",
+ title: t("toast.error"),
+ message: (err) => err?.message || t("common.errors.default.message"),
},
});
};
@@ -119,12 +122,18 @@ export const CalendarQuickAddIssueActions: FC<TCalendarQuickAddIssueActions> = o
customButton={
<div className="flex w-full items-center gap-x-[6px] rounded-md px-2 py-1.5 text-custom-text-350 hover:text-custom-text-300">
<PlusIcon className="h-3.5 w-3.5 stroke-2 flex-shrink-0" />
- <span className="text-sm font-medium flex-shrink-0">{`New ${isEpic ? "Epic" : "Issue"}`}</span>
+ <span className="text-sm font-medium flex-shrink-0">
+ {isEpic ? t("epic.add.label") : t("issue.add.label")}
+ </span>
</div>
}
>
- <CustomMenu.MenuItem onClick={handleNewIssue}>{`New ${isEpic ? "Epic" : "Issue"}`}</CustomMenu.MenuItem>
- {!isEpic && <CustomMenu.MenuItem onClick={handleExistingIssue}>Add existing issue</CustomMenu.MenuItem>}
+ <CustomMenu.MenuItem onClick={handleNewIssue}>
+ {isEpic ? t("epic.add.label") : t("issue.add.label")}
+ </CustomMenu.MenuItem>
+ {!isEpic && (
+ <CustomMenu.MenuItem onClick={handleExistingIssue}>{t("issue.add.existing")}</CustomMenu.MenuItem>
+ )}
</CustomMenu>
</div>
}
diff --git a/web/core/components/issues/issue-layouts/calendar/roots/project-root.tsx b/web/core/components/issues/issue-layouts/calendar/roots/project-root.tsx
index 972488e1f2..9634f1f8b6 100644
--- a/web/core/components/issues/issue-layouts/calendar/roots/project-root.tsx
+++ b/web/core/components/issues/issue-layouts/calendar/roots/project-root.tsx
@@ -1,11 +1,11 @@
import { observer } from "mobx-react";
import { useParams } from "next/navigation";
// hooks
+import { EUserPermissions, EUserPermissionsLevel } from "@plane/constants";
import { ProjectIssueQuickActions } from "@/components/issues";
// hooks
import { useUserPermissions } from "@/hooks/store";
// plane web constants
-import { EUserPermissions, EUserPermissionsLevel } from "@/plane-web/constants/user-permissions";
// components
import { BaseCalendarRoot } from "../base-calendar-root";
diff --git a/web/core/components/issues/issue-layouts/empty-states/archived-issues.tsx b/web/core/components/issues/issue-layouts/empty-states/archived-issues.tsx
index 833a2d6054..b4c3f7ae55 100644
--- a/web/core/components/issues/issue-layouts/empty-states/archived-issues.tsx
+++ b/web/core/components/issues/issue-layouts/empty-states/archived-issues.tsx
@@ -1,31 +1,46 @@
import size from "lodash/size";
import { observer } from "mobx-react";
import { useParams } from "next/navigation";
-import { EIssueFilterType, EIssuesStoreType } from "@plane/constants";
+// plane imports
+import { EIssueFilterType, EIssuesStoreType, EUserPermissionsLevel, EUserProjectRoles } from "@plane/constants";
+import { useTranslation } from "@plane/i18n";
import { IIssueFilterOptions } from "@plane/types";
-// hooks
// components
-import { EmptyState } from "@/components/empty-state";
-// constants
-import { EmptyStateType } from "@/constants/empty-state";
-import { useIssues } from "@/hooks/store";
-// types
+import { DetailedEmptyState } from "@/components/empty-state";
+// hooks
+import { useIssues, useUserPermissions } from "@/hooks/store";
+import { useAppRouter } from "@/hooks/use-app-router";
+import { useResolvedAssetPath } from "@/hooks/use-resolved-asset-path";
export const ProjectArchivedEmptyState: React.FC = observer(() => {
// router
+ const router = useAppRouter();
const { workspaceSlug, projectId } = useParams();
- // theme
+ // plane hooks
+ const { t } = useTranslation();
// store hooks
const { issuesFilter } = useIssues(EIssuesStoreType.ARCHIVED);
-
+ const { allowPermissions } = useUserPermissions();
+ // derived values
const userFilters = issuesFilter?.issueFilters?.filters;
const activeLayout = issuesFilter?.issueFilters?.displayFilters?.layout;
-
const issueFilterCount = size(
Object.fromEntries(
Object.entries(userFilters ?? {}).filter(([, value]) => value && Array.isArray(value) && value.length > 0)
)
);
+ const additionalPath = issueFilterCount > 0 ? (activeLayout ?? "list") : undefined;
+ const canPerformEmptyStateActions = allowPermissions(
+ [EUserProjectRoles.ADMIN, EUserProjectRoles.MEMBER],
+ EUserPermissionsLevel.PROJECT
+ );
+ const emptyFilterResolvedPath = useResolvedAssetPath({
+ basePath: "/empty-state/empty-filters/",
+ additionalPath: additionalPath,
+ });
+ const archivedIssuesResolvedPath = useResolvedAssetPath({
+ basePath: "/empty-state/archived/empty-issues",
+ });
const handleClearAllFilters = () => {
if (!workspaceSlug || !projectId) return;
@@ -38,20 +53,30 @@ export const ProjectArchivedEmptyState: React.FC = observer(() => {
});
};
- const emptyStateType =
- issueFilterCount > 0 ? EmptyStateType.PROJECT_ARCHIVED_EMPTY_FILTER : EmptyStateType.PROJECT_ARCHIVED_NO_ISSUES;
- const additionalPath = issueFilterCount > 0 ? activeLayout ?? "list" : undefined;
-
return (
<div className="relative h-full w-full overflow-y-auto">
- <EmptyState
- type={emptyStateType}
- additionalPath={additionalPath}
- primaryButtonLink={
- issueFilterCount > 0 ? undefined : `/${workspaceSlug}/projects/${projectId}/settings/automations`
- }
- secondaryButtonOnClick={issueFilterCount > 0 ? handleClearAllFilters : undefined}
- />
+ {issueFilterCount > 0 ? (
+ <DetailedEmptyState
+ title={t("project_issues.empty_state.issues_empty_filter.title")}
+ assetPath={emptyFilterResolvedPath}
+ secondaryButton={{
+ text: t("project_issues.empty_state.issues_empty_filter.secondary_button.text"),
+ onClick: handleClearAllFilters,
+ disabled: !canPerformEmptyStateActions,
+ }}
+ />
+ ) : (
+ <DetailedEmptyState
+ title={t("project_issues.empty_state.no_archived_issues.title")}
+ description={t("project_issues.empty_state.no_archived_issues.description")}
+ assetPath={archivedIssuesResolvedPath}
+ primaryButton={{
+ text: t("project_issues.empty_state.no_archived_issues.primary_button.text"),
+ onClick: () => router.push(`/${workspaceSlug}/projects/${projectId}/settings/automations`),
+ disabled: !canPerformEmptyStateActions,
+ }}
+ />
+ )}
</div>
);
});
diff --git a/web/core/components/issues/issue-layouts/empty-states/cycle.tsx b/web/core/components/issues/issue-layouts/empty-states/cycle.tsx
index 274aa85883..a29a4f2802 100644
--- a/web/core/components/issues/issue-layouts/empty-states/cycle.tsx
+++ b/web/core/components/issues/issue-layouts/empty-states/cycle.tsx
@@ -5,32 +5,58 @@ import isEmpty from "lodash/isEmpty";
import size from "lodash/size";
import { observer } from "mobx-react";
import { useParams } from "next/navigation";
-// types
-import { EIssueFilterType, EIssuesStoreType } from "@plane/constants";
+// plane imports
+import { EIssueFilterType, EIssuesStoreType, EUserPermissionsLevel, EUserProjectRoles } from "@plane/constants";
+import { useTranslation } from "@plane/i18n";
import { IIssueFilterOptions, ISearchIssueResponse } from "@plane/types";
-// ui
import { TOAST_TYPE, setToast } from "@plane/ui";
// components
import { ExistingIssuesListModal } from "@/components/core";
-import { EmptyState } from "@/components/empty-state";
-// constants
-import { EmptyStateType } from "@/constants/empty-state";
-import { useCommandPalette, useCycle, useEventTracker, useIssues } from "@/hooks/store";
+import { DetailedEmptyState } from "@/components/empty-state";
+import { useCommandPalette, useCycle, useEventTracker, useIssues, useUserPermissions } from "@/hooks/store";
+import { useResolvedAssetPath } from "@/hooks/use-resolved-asset-path";
export const CycleEmptyState: React.FC = observer(() => {
// router
const { workspaceSlug, projectId, cycleId } = useParams();
// states
const [cycleIssuesListModal, setCycleIssuesListModal] = useState(false);
+ // plane hooks
+ const { t } = useTranslation();
// store hooks
const { getCycleById } = useCycle();
const { issues, issuesFilter } = useIssues(EIssuesStoreType.CYCLE);
const { toggleCreateIssueModal } = useCommandPalette();
const { setTrackElement } = useEventTracker();
-
+ const { allowPermissions } = useUserPermissions();
+ // derived values
const cycleDetails = cycleId ? getCycleById(cycleId.toString()) : undefined;
const userFilters = issuesFilter?.issueFilters?.filters;
const activeLayout = issuesFilter?.issueFilters?.displayFilters?.layout;
+ const issueFilterCount = size(
+ Object.fromEntries(
+ Object.entries(userFilters ?? {}).filter(([, value]) => value && Array.isArray(value) && value.length > 0)
+ )
+ );
+ const isCompletedCycleSnapshotAvailable = !isEmpty(cycleDetails?.progress_snapshot ?? {});
+ const isEmptyFilters = issueFilterCount > 0;
+ const isCompletedAndEmpty = isCompletedCycleSnapshotAvailable || cycleDetails?.status?.toLowerCase() === "completed";
+ const additionalPath = activeLayout ?? "list";
+ const canPerformEmptyStateActions = allowPermissions(
+ [EUserProjectRoles.ADMIN, EUserProjectRoles.MEMBER],
+ EUserPermissionsLevel.PROJECT
+ );
+ const emptyFilterResolvedPath = useResolvedAssetPath({
+ basePath: "/empty-state/empty-filters/",
+ additionalPath: additionalPath,
+ });
+ const noIssueResolvedPath = useResolvedAssetPath({
+ basePath: "/empty-state/cycle-issues/",
+ additionalPath: additionalPath,
+ });
+ const completedNoIssuesResolvedPath = useResolvedAssetPath({
+ basePath: "/empty-state/cycle/completed-no-issues",
+ });
const handleAddIssuesToCycle = async (data: ISearchIssueResponse[]) => {
if (!workspaceSlug || !projectId || !cycleId) return;
@@ -43,24 +69,17 @@ export const CycleEmptyState: React.FC = observer(() => {
setToast({
type: TOAST_TYPE.SUCCESS,
title: "Success!",
- message: "Issues added to the cycle successfully.",
+ message: "Work items added to the cycle successfully.",
})
)
.catch(() =>
setToast({
type: TOAST_TYPE.ERROR,
title: "Error!",
- message: "Selected issues could not be added to the cycle. Please try again.",
+ message: "Selected work items could not be added to the cycle. Please try again.",
})
);
};
- const issueFilterCount = size(
- Object.fromEntries(
- Object.entries(userFilters ?? {}).filter(([, value]) => value && Array.isArray(value) && value.length > 0)
- )
- );
-
- const isCompletedCycleSnapshotAvailable = !isEmpty(cycleDetails?.progress_snapshot ?? {});
const handleClearAllFilters = () => {
if (!workspaceSlug || !projectId || !cycleId) return;
@@ -79,16 +98,6 @@ export const CycleEmptyState: React.FC = observer(() => {
);
};
- const isEmptyFilters = issueFilterCount > 0;
- const isCompletedAndEmpty = isCompletedCycleSnapshotAvailable || cycleDetails?.status?.toLowerCase() === "completed";
-
- const emptyStateType = isCompletedAndEmpty
- ? EmptyStateType.PROJECT_CYCLE_COMPLETED_NO_ISSUES
- : isEmptyFilters
- ? EmptyStateType.PROJECT_EMPTY_FILTER
- : EmptyStateType.PROJECT_CYCLE_NO_ISSUES;
- const additionalPath = isCompletedAndEmpty ? undefined : activeLayout ?? "list";
-
return (
<div className="relative h-full w-full overflow-y-auto">
<ExistingIssuesListModal
@@ -100,21 +109,42 @@ export const CycleEmptyState: React.FC = observer(() => {
handleOnSubmit={handleAddIssuesToCycle}
/>
<div className="grid h-full w-full place-items-center">
- <EmptyState
- type={emptyStateType}
- additionalPath={additionalPath}
- primaryButtonOnClick={
- !isCompletedAndEmpty && !isEmptyFilters
- ? () => {
- setTrackElement("Cycle issue empty state");
- toggleCreateIssueModal(true, EIssuesStoreType.CYCLE);
- }
- : undefined
- }
- secondaryButtonOnClick={
- !isCompletedAndEmpty && isEmptyFilters ? handleClearAllFilters : () => setCycleIssuesListModal(true)
- }
- />
+ {isCompletedAndEmpty ? (
+ <DetailedEmptyState
+ title={t("project_cycles.empty_state.completed_no_issues.title")}
+ description={t("project_cycles.empty_state.completed_no_issues.description")}
+ assetPath={completedNoIssuesResolvedPath}
+ />
+ ) : isEmptyFilters ? (
+ <DetailedEmptyState
+ title={t("project_issues.empty_state.issues_empty_filter.title")}
+ assetPath={emptyFilterResolvedPath}
+ secondaryButton={{
+ text: t("project_issues.empty_state.issues_empty_filter.secondary_button.text"),
+ onClick: handleClearAllFilters,
+ disabled: !canPerformEmptyStateActions,
+ }}
+ />
+ ) : (
+ <DetailedEmptyState
+ title={t("project_cycles.empty_state.no_issues.title")}
+ description={t("project_cycles.empty_state.no_issues.description")}
+ assetPath={noIssueResolvedPath}
+ primaryButton={{
+ text: t("project_cycles.empty_state.no_issues.primary_button.text"),
+ onClick: () => {
+ setTrackElement("Cycle issue empty state");
+ toggleCreateIssueModal(true, EIssuesStoreType.CYCLE);
+ },
+ disabled: !canPerformEmptyStateActions,
+ }}
+ secondaryButton={{
+ text: t("project_cycles.empty_state.no_issues.secondary_button.text"),
+ onClick: () => setCycleIssuesListModal(true),
+ disabled: !canPerformEmptyStateActions,
+ }}
+ />
+ )}
</div>
</div>
);
diff --git a/web/core/components/issues/issue-layouts/empty-states/draft-issues.tsx b/web/core/components/issues/issue-layouts/empty-states/draft-issues.tsx
index 1af3ca5a5c..bb10176ae9 100644
--- a/web/core/components/issues/issue-layouts/empty-states/draft-issues.tsx
+++ b/web/core/components/issues/issue-layouts/empty-states/draft-issues.tsx
@@ -1,53 +1,6 @@
-import size from "lodash/size";
import { observer } from "mobx-react";
-import { useParams } from "next/navigation";
-import { EIssueFilterType, EIssuesStoreType } from "@plane/constants";
-import { IIssueFilterOptions } from "@plane/types";
-// hooks
-// components
-import { EmptyState } from "@/components/empty-state";
-// constants
-import { EmptyStateType } from "@/constants/empty-state";
-import { useIssues } from "@/hooks/store";
-// types
-export const ProjectDraftEmptyState: React.FC = observer(() => {
- // router
- const { workspaceSlug, projectId } = useParams();
- // store hooks
- const { issuesFilter } = useIssues(EIssuesStoreType.DRAFT);
-
- const userFilters = issuesFilter?.issueFilters?.filters;
- const activeLayout = issuesFilter?.issueFilters?.displayFilters?.layout;
-
- const issueFilterCount = size(
- Object.fromEntries(
- Object.entries(userFilters ?? {}).filter(([, value]) => value && Array.isArray(value) && value.length > 0)
- )
- );
-
- const handleClearAllFilters = () => {
- if (!workspaceSlug || !projectId) return;
- const newFilters: IIssueFilterOptions = {};
- Object.keys(userFilters ?? {}).forEach((key) => {
- newFilters[key as keyof IIssueFilterOptions] = [];
- });
- issuesFilter.updateFilters(workspaceSlug.toString(), projectId.toString(), EIssueFilterType.FILTERS, {
- ...newFilters,
- });
- };
-
- const emptyStateType =
- issueFilterCount > 0 ? EmptyStateType.PROJECT_DRAFT_EMPTY_FILTER : EmptyStateType.PROJECT_DRAFT_NO_ISSUES;
- const additionalPath = issueFilterCount > 0 ? activeLayout ?? "list" : undefined;
-
- return (
- <div className="relative h-full w-full overflow-y-auto">
- <EmptyState
- type={emptyStateType}
- additionalPath={additionalPath}
- secondaryButtonOnClick={issueFilterCount > 0 ? handleClearAllFilters : undefined}
- />
- </div>
- );
-});
+// FIXME: Project drafts is deprecated. Remove this component and all the related code.
+export const ProjectDraftEmptyState: React.FC = observer(() => (
+ <div className="relative h-full w-full overflow-y-auto" />
+));
diff --git a/web/core/components/issues/issue-layouts/empty-states/global-view.tsx b/web/core/components/issues/issue-layouts/empty-states/global-view.tsx
index 8850fe2267..03d4c62ed9 100644
--- a/web/core/components/issues/issue-layouts/empty-states/global-view.tsx
+++ b/web/core/components/issues/issue-layouts/empty-states/global-view.tsx
@@ -1,43 +1,77 @@
import { observer } from "mobx-react";
import { useParams } from "next/navigation";
+// plane imports
+import { EIssuesStoreType, EUserPermissionsLevel, EUserWorkspaceRoles } from "@plane/constants";
+import { useTranslation } from "@plane/i18n";
// components
-import { EIssuesStoreType } from "@plane/constants";
-import { EmptyState } from "@/components/empty-state";
-// constants
-import { EMPTY_STATE_DETAILS, EmptyStateType } from "@/constants/empty-state";
+import { ComicBoxButton, DetailedEmptyState } from "@/components/empty-state";
// hooks
-import { useCommandPalette, useEventTracker, useProject } from "@/hooks/store";
-// assets
+import { useCommandPalette, useEventTracker, useProject, useUserPermissions } from "@/hooks/store";
+import { useResolvedAssetPath } from "@/hooks/use-resolved-asset-path";
export const GlobalViewEmptyState: React.FC = observer(() => {
const { globalViewId } = useParams();
+ // plane imports
+ const { t } = useTranslation();
// store hooks
const { workspaceProjectIds } = useProject();
const { toggleCreateIssueModal, toggleCreateProjectModal } = useCommandPalette();
const { setTrackElement } = useEventTracker();
-
+ const { allowPermissions } = useUserPermissions();
+ // derived values
+ const hasMemberLevelPermission = allowPermissions(
+ [EUserWorkspaceRoles.ADMIN, EUserWorkspaceRoles.MEMBER],
+ EUserPermissionsLevel.WORKSPACE
+ );
const isDefaultView = ["all-issues", "assigned", "created", "subscribed"].includes(globalViewId?.toString() ?? "");
const currentView = isDefaultView && globalViewId ? globalViewId : "custom-view";
+ const resolvedCurrentView = currentView?.toString();
+ const noProjectResolvedPath = useResolvedAssetPath({ basePath: "/empty-state/onboarding/projects" });
+ const globalViewsResolvedPath = useResolvedAssetPath({
+ basePath: "/empty-state/all-issues/",
+ additionalPath: resolvedCurrentView,
+ });
- const emptyStateType =
- (workspaceProjectIds ?? []).length > 0 ? `workspace-${currentView}` : EmptyStateType.WORKSPACE_NO_PROJECTS;
+ if (workspaceProjectIds?.length === 0) {
+ return (
+ <DetailedEmptyState
+ size="sm"
+ title={t("workspace_projects.empty_state.no_projects.title")}
+ description={t("workspace_projects.empty_state.no_projects.description")}
+ assetPath={noProjectResolvedPath}
+ customPrimaryButton={
+ <ComicBoxButton
+ label={t("workspace_projects.empty_state.no_projects.primary_button.text")}
+ title={t("workspace_projects.empty_state.no_projects.primary_button.comic.title")}
+ description={t("workspace_projects.empty_state.no_projects.primary_button.comic.description")}
+ onClick={() => {
+ setTrackElement("All issues empty state");
+ toggleCreateProjectModal(true);
+ }}
+ disabled={!hasMemberLevelPermission}
+ />
+ }
+ />
+ );
+ }
return (
- <EmptyState
- type={emptyStateType as keyof typeof EMPTY_STATE_DETAILS}
+ <DetailedEmptyState
size="sm"
- primaryButtonOnClick={
- (workspaceProjectIds ?? []).length > 0
- ? currentView !== "custom-view" && currentView !== "subscribed"
- ? () => {
+ title={t(`workspace_views.empty_state.${resolvedCurrentView}.title`)}
+ description={t(`workspace_views.empty_state.${resolvedCurrentView}.description`)}
+ assetPath={globalViewsResolvedPath}
+ primaryButton={
+ ["subscribed", "custom-view"].includes(resolvedCurrentView) === false
+ ? {
+ text: t(`workspace_views.empty_state.${resolvedCurrentView}.primary_button.text`),
+ onClick: () => {
setTrackElement("All issues empty state");
toggleCreateIssueModal(true, EIssuesStoreType.PROJECT);
- }
- : undefined
- : () => {
- setTrackElement("All issues empty state");
- toggleCreateProjectModal(true);
+ },
+ disabled: !hasMemberLevelPermission,
}
+ : undefined
}
/>
);
diff --git a/web/core/components/issues/issue-layouts/empty-states/module.tsx b/web/core/components/issues/issue-layouts/empty-states/module.tsx
index 9e8a26955e..55edda7fe3 100644
--- a/web/core/components/issues/issue-layouts/empty-states/module.tsx
+++ b/web/core/components/issues/issue-layouts/empty-states/module.tsx
@@ -4,31 +4,52 @@ import { useState } from "react";
import size from "lodash/size";
import { observer } from "mobx-react";
import { useParams } from "next/navigation";
-// types
-import { EIssueFilterType, EIssuesStoreType } from "@plane/constants";
+// plane imports
+import { EIssueFilterType, EIssuesStoreType, EUserPermissionsLevel, EUserProjectRoles } from "@plane/constants";
+import { useTranslation } from "@plane/i18n";
import { IIssueFilterOptions, ISearchIssueResponse } from "@plane/types";
-// ui
import { TOAST_TYPE, setToast } from "@plane/ui";
// components
import { ExistingIssuesListModal } from "@/components/core";
-import { EmptyState } from "@/components/empty-state";
-// constants
-import { EmptyStateType } from "@/constants/empty-state";
+import { DetailedEmptyState } from "@/components/empty-state";
// hooks
-import { useCommandPalette, useEventTracker, useIssues } from "@/hooks/store";
+import { useCommandPalette, useEventTracker, useIssues, useUserPermissions } from "@/hooks/store";
+import { useResolvedAssetPath } from "@/hooks/use-resolved-asset-path";
export const ModuleEmptyState: React.FC = observer(() => {
// router
const { workspaceSlug, projectId, moduleId } = useParams();
// states
const [moduleIssuesListModal, setModuleIssuesListModal] = useState(false);
+ // plane hooks
+ const { t } = useTranslation();
// store hooks
const { issues, issuesFilter } = useIssues(EIssuesStoreType.MODULE);
const { toggleCreateIssueModal } = useCommandPalette();
const { setTrackElement } = useEventTracker();
-
+ const { allowPermissions } = useUserPermissions();
+ // derived values
const userFilters = issuesFilter?.issueFilters?.filters;
const activeLayout = issuesFilter?.issueFilters?.displayFilters?.layout;
+ const issueFilterCount = size(
+ Object.fromEntries(
+ Object.entries(userFilters ?? {}).filter(([, value]) => value && Array.isArray(value) && value.length > 0)
+ )
+ );
+ const isEmptyFilters = issueFilterCount > 0;
+ const additionalPath = activeLayout ?? "list";
+ const canPerformEmptyStateActions = allowPermissions(
+ [EUserProjectRoles.ADMIN, EUserProjectRoles.MEMBER],
+ EUserPermissionsLevel.PROJECT
+ );
+ const emptyFilterResolvedPath = useResolvedAssetPath({
+ basePath: "/empty-state/empty-filters/",
+ additionalPath: additionalPath,
+ });
+ const moduleIssuesResolvedPath = useResolvedAssetPath({
+ basePath: "/empty-state/module-issues/",
+ additionalPath: additionalPath,
+ });
const handleAddIssuesToModule = async (data: ISearchIssueResponse[]) => {
if (!workspaceSlug || !projectId || !moduleId) return;
@@ -40,24 +61,18 @@ export const ModuleEmptyState: React.FC = observer(() => {
setToast({
type: TOAST_TYPE.SUCCESS,
title: "Success!",
- message: "Issues added to the module successfully.",
+ message: "Work items added to the module successfully.",
})
)
.catch(() =>
setToast({
type: TOAST_TYPE.ERROR,
title: "Error!",
- message: "Selected issues could not be added to the module. Please try again.",
+ message: "Selected work items could not be added to the module. Please try again.",
})
);
};
- const issueFilterCount = size(
- Object.fromEntries(
- Object.entries(userFilters ?? {}).filter(([, value]) => value && Array.isArray(value) && value.length > 0)
- )
- );
-
const handleClearAllFilters = () => {
if (!workspaceSlug || !projectId || !moduleId) return;
const newFilters: IIssueFilterOptions = {};
@@ -75,10 +90,6 @@ export const ModuleEmptyState: React.FC = observer(() => {
);
};
- const isEmptyFilters = issueFilterCount > 0;
- const emptyStateType = isEmptyFilters ? EmptyStateType.PROJECT_EMPTY_FILTER : EmptyStateType.PROJECT_MODULE_ISSUES;
- const additionalPath = activeLayout ?? "list";
-
return (
<div className="relative h-full w-full overflow-y-auto">
<ExistingIssuesListModal
@@ -90,19 +101,36 @@ export const ModuleEmptyState: React.FC = observer(() => {
handleOnSubmit={handleAddIssuesToModule}
/>
<div className="grid h-full w-full place-items-center">
- <EmptyState
- type={emptyStateType}
- additionalPath={additionalPath}
- primaryButtonOnClick={
- isEmptyFilters
- ? undefined
- : () => {
- setTrackElement("Module issue empty state");
- toggleCreateIssueModal(true, EIssuesStoreType.MODULE);
- }
- }
- secondaryButtonOnClick={isEmptyFilters ? handleClearAllFilters : () => setModuleIssuesListModal(true)}
- />
+ {isEmptyFilters ? (
+ <DetailedEmptyState
+ title={t("project_issues.empty_state.issues_empty_filter.title")}
+ assetPath={emptyFilterResolvedPath}
+ secondaryButton={{
+ text: t("project_issues.empty_state.issues_empty_filter.secondary_button.text"),
+ onClick: handleClearAllFilters,
+ disabled: !canPerformEmptyStateActions,
+ }}
+ />
+ ) : (
+ <DetailedEmptyState
+ title={t("project_module.empty_state.no_issues.title")}
+ description={t("project_module.empty_state.no_issues.description")}
+ assetPath={moduleIssuesResolvedPath}
+ primaryButton={{
+ text: t("project_module.empty_state.no_issues.primary_button.text"),
+ onClick: () => {
+ setTrackElement("Module issue empty state");
+ toggleCreateIssueModal(true, EIssuesStoreType.MODULE);
+ },
+ disabled: !canPerformEmptyStateActions,
+ }}
+ secondaryButton={{
+ text: t("project_module.empty_state.no_issues.secondary_button.text"),
+ onClick: () => setModuleIssuesListModal(true),
+ disabled: !canPerformEmptyStateActions,
+ }}
+ />
+ )}
</div>
</div>
);
diff --git a/web/core/components/issues/issue-layouts/empty-states/profile-view.tsx b/web/core/components/issues/issue-layouts/empty-states/profile-view.tsx
index 12a31df838..d67aad491f 100644
--- a/web/core/components/issues/issue-layouts/empty-states/profile-view.tsx
+++ b/web/core/components/issues/issue-layouts/empty-states/profile-view.tsx
@@ -1,19 +1,30 @@
import { observer } from "mobx-react";
import { useParams } from "next/navigation";
// components
-import { EmptyState } from "@/components/empty-state";
+import { useTranslation } from "@plane/i18n";
+import { DetailedEmptyState } from "@/components/empty-state";
// constants
-import { EMPTY_STATE_DETAILS } from "@/constants/empty-state";
-
-// assets
+import { useResolvedAssetPath } from "@/hooks/use-resolved-asset-path";
+// TODO: If projectViewId changes, everything breaks. Figure out a better way to handle this.
export const ProfileViewEmptyState: React.FC = observer(() => {
+ // plane hooks
+ const { t } = useTranslation();
// store hooks
const { profileViewId } = useParams();
+ // derived values
+ const resolvedPath = useResolvedAssetPath({
+ basePath: "/empty-state/profile/",
+ additionalPath: profileViewId?.toString(),
+ });
if (!profileViewId) return null;
- const emptyStateType = `profile-${profileViewId.toString()}`;
-
- return <EmptyState type={emptyStateType as keyof typeof EMPTY_STATE_DETAILS} size="sm" />;
+ return (
+ <DetailedEmptyState
+ title={t(`profile.empty_state.${profileViewId.toString()}.title`)}
+ description={t(`profile.empty_state.${profileViewId.toString()}.description`)}
+ assetPath={resolvedPath}
+ />
+ );
});
diff --git a/web/core/components/issues/issue-layouts/empty-states/project-epic.tsx b/web/core/components/issues/issue-layouts/empty-states/project-epic.tsx
index 213e5ac405..e8bf3a9d56 100644
--- a/web/core/components/issues/issue-layouts/empty-states/project-epic.tsx
+++ b/web/core/components/issues/issue-layouts/empty-states/project-epic.tsx
@@ -1,12 +1 @@
-// types
-// components
-import { EmptyState } from "@/components/empty-state";
-// constants
-import { EmptyStateType } from "@/constants/empty-state";
-// hooks
-
-export const ProjectEpicsEmptyState: React.FC = () => (
- <div className="relative h-full w-full overflow-y-auto">
- <EmptyState type={EmptyStateType.PROJECT_NO_EPICS} primaryButtonOnClick={() => {}} />
- </div>
-);
+export const ProjectEpicsEmptyState: React.FC = () => <></>;
diff --git a/web/core/components/issues/issue-layouts/empty-states/project-issues.tsx b/web/core/components/issues/issue-layouts/empty-states/project-issues.tsx
index 5e437357a8..109b67c28d 100644
--- a/web/core/components/issues/issue-layouts/empty-states/project-issues.tsx
+++ b/web/core/components/issues/issue-layouts/empty-states/project-issues.tsx
@@ -1,33 +1,46 @@
import size from "lodash/size";
import { observer } from "mobx-react";
import { useParams } from "next/navigation";
-// types
-import { EIssueFilterType, EIssuesStoreType } from "@plane/constants";
+// plane imports
+import { EIssueFilterType, EIssuesStoreType, EUserPermissionsLevel, EUserProjectRoles } from "@plane/constants";
+import { useTranslation } from "@plane/i18n";
import { IIssueFilterOptions } from "@plane/types";
// components
-import { EmptyState } from "@/components/empty-state";
-// constants
-import { EmptyStateType } from "@/constants/empty-state";
+import { ComicBoxButton, DetailedEmptyState } from "@/components/empty-state";
// hooks
-import { useCommandPalette, useEventTracker, useIssues } from "@/hooks/store";
+import { useCommandPalette, useEventTracker, useIssues, useUserPermissions } from "@/hooks/store";
+import { useResolvedAssetPath } from "@/hooks/use-resolved-asset-path";
export const ProjectEmptyState: React.FC = observer(() => {
// router
const { workspaceSlug, projectId } = useParams();
+ // plane imports
+ const { t } = useTranslation();
// store hooks
const { toggleCreateIssueModal } = useCommandPalette();
const { setTrackElement } = useEventTracker();
-
const { issuesFilter } = useIssues(EIssuesStoreType.PROJECT);
-
+ const { allowPermissions } = useUserPermissions();
+ // derived values
const userFilters = issuesFilter?.issueFilters?.filters;
const activeLayout = issuesFilter?.issueFilters?.displayFilters?.layout;
-
const issueFilterCount = size(
Object.fromEntries(
Object.entries(userFilters ?? {}).filter(([, value]) => value && Array.isArray(value) && value.length > 0)
)
);
+ const additionalPath = issueFilterCount > 0 ? (activeLayout ?? "list") : undefined;
+ const canPerformEmptyStateActions = allowPermissions(
+ [EUserProjectRoles.ADMIN, EUserProjectRoles.MEMBER],
+ EUserPermissionsLevel.PROJECT
+ );
+ const emptyFilterResolvedPath = useResolvedAssetPath({
+ basePath: "/empty-state/empty-filters/",
+ additionalPath: additionalPath,
+ });
+ const projectIssuesResolvedPath = useResolvedAssetPath({
+ basePath: "/empty-state/onboarding/issues",
+ });
const handleClearAllFilters = () => {
if (!workspaceSlug || !projectId) return;
@@ -40,24 +53,37 @@ export const ProjectEmptyState: React.FC = observer(() => {
});
};
- const emptyStateType = issueFilterCount > 0 ? EmptyStateType.PROJECT_EMPTY_FILTER : EmptyStateType.PROJECT_NO_ISSUES;
- const additionalPath = issueFilterCount > 0 ? activeLayout ?? "list" : undefined;
-
return (
<div className="relative h-full w-full overflow-y-auto">
- <EmptyState
- type={emptyStateType}
- additionalPath={additionalPath}
- primaryButtonOnClick={
- issueFilterCount > 0
- ? undefined
- : () => {
+ {issueFilterCount > 0 ? (
+ <DetailedEmptyState
+ title={t("project_issues.empty_state.issues_empty_filter.title")}
+ assetPath={emptyFilterResolvedPath}
+ secondaryButton={{
+ text: t("project_issues.empty_state.issues_empty_filter.secondary_button.text"),
+ onClick: handleClearAllFilters,
+ disabled: !canPerformEmptyStateActions,
+ }}
+ />
+ ) : (
+ <DetailedEmptyState
+ title={t("project_issues.empty_state.no_issues.title")}
+ description={t("project_issues.empty_state.no_issues.description")}
+ assetPath={projectIssuesResolvedPath}
+ customPrimaryButton={
+ <ComicBoxButton
+ label={t("project_issues.empty_state.no_issues.primary_button.text")}
+ title={t("project_issues.empty_state.no_issues.primary_button.comic.title")}
+ description={t("project_issues.empty_state.no_issues.primary_button.comic.description")}
+ onClick={() => {
setTrackElement("Project issue empty state");
toggleCreateIssueModal(true, EIssuesStoreType.PROJECT);
- }
- }
- secondaryButtonOnClick={issueFilterCount > 0 ? handleClearAllFilters : undefined}
- />
+ }}
+ disabled={!canPerformEmptyStateActions}
+ />
+ }
+ />
+ )}
</div>
);
});
diff --git a/web/core/components/issues/issue-layouts/empty-states/project-view.tsx b/web/core/components/issues/issue-layouts/empty-states/project-view.tsx
index 0749d810f2..dd17604522 100644
--- a/web/core/components/issues/issue-layouts/empty-states/project-view.tsx
+++ b/web/core/components/issues/issue-layouts/empty-states/project-view.tsx
@@ -1,12 +1,11 @@
import { observer } from "mobx-react";
import { PlusIcon } from "lucide-react";
// components
-import { EIssuesStoreType } from "@plane/constants";
+import { EIssuesStoreType, EUserPermissions, EUserPermissionsLevel } from "@plane/constants";
import { EmptyState } from "@/components/common";
// constants
// hooks
import { useCommandPalette, useEventTracker, useUserPermissions } from "@/hooks/store";
-import { EUserPermissions, EUserPermissionsLevel } from "@/plane-web/constants/user-permissions";
// assets
import emptyIssue from "@/public/empty-state/issue.svg";
@@ -25,16 +24,16 @@ export const ProjectViewEmptyState: React.FC = observer(() => {
return (
<div className="grid h-full w-full place-items-center">
<EmptyState
- title="View issues will appear here"
- description="Issues help you track individual pieces of work. With Issues, keep track of what's going on, who is working on it, and what's done."
+ title="View work items will appear here"
+ description="Work items help you track individual pieces of work. With work items, keep track of what's going on, who is working on it, and what's done."
image={emptyIssue}
primaryButton={
isCreatingIssueAllowed
? {
- text: "New issue",
+ text: "New work item",
icon: <PlusIcon className="h-3 w-3" strokeWidth={2} />,
onClick: () => {
- setTrackElement("View issue empty state");
+ setTrackElement("View work item empty state");
toggleCreateIssueModal(true, EIssuesStoreType.PROJECT_VIEW);
},
}
diff --git a/web/core/components/issues/issue-layouts/filters/applied-filters/date.tsx b/web/core/components/issues/issue-layouts/filters/applied-filters/date.tsx
index dcc6c15e56..a64626047f 100644
--- a/web/core/components/issues/issue-layouts/filters/applied-filters/date.tsx
+++ b/web/core/components/issues/issue-layouts/filters/applied-filters/date.tsx
@@ -2,7 +2,7 @@ import { observer } from "mobx-react";
// icons
import { X } from "lucide-react";
// helpers
-import { DATE_AFTER_FILTER_OPTIONS } from "@/constants/filters";
+import { DATE_AFTER_FILTER_OPTIONS } from "@plane/constants";
import { renderFormattedDate } from "@/helpers/date-time.helper";
import { capitalizeFirstLetter } from "@/helpers/string.helper";
// constants
diff --git a/web/core/components/issues/issue-layouts/filters/applied-filters/filters-list.tsx b/web/core/components/issues/issue-layouts/filters/applied-filters/filters-list.tsx
index 8d6ed598bb..03b659d93e 100644
--- a/web/core/components/issues/issue-layouts/filters/applied-filters/filters-list.tsx
+++ b/web/core/components/issues/issue-layouts/filters/applied-filters/filters-list.tsx
@@ -1,6 +1,8 @@
import { observer } from "mobx-react";
import { X } from "lucide-react";
// types
+import { EUserPermissions, EUserPermissionsLevel } from "@plane/constants";
+import { useTranslation } from "@plane/i18n";
import { IIssueFilterOptions, IIssueLabel, IState } from "@plane/types";
// components
import { Tag } from "@plane/ui";
@@ -22,7 +24,6 @@ import { replaceUnderscoreIfSnakeCase } from "@/helpers/string.helper";
import { useUserPermissions } from "@/hooks/store";
// plane web components
import { AppliedIssueTypeFilters } from "@/plane-web/components/issues";
-import { EUserPermissions, EUserPermissionsLevel } from "@/plane-web/constants/user-permissions";
type Props = {
appliedFilters: IIssueFilterOptions;
@@ -49,6 +50,7 @@ export const AppliedFiltersList: React.FC<Props> = observer((props) => {
} = props;
// store hooks
const { allowPermissions } = useUserPermissions();
+ const { t } = useTranslation();
if (!appliedFilters) return null;
@@ -156,7 +158,7 @@ export const AppliedFiltersList: React.FC<Props> = observer((props) => {
{isEditingAllowed && (
<button type="button" onClick={handleClearAllFilters}>
<Tag>
- Clear all
+ {t("common.clear_all")}
<X size={12} strokeWidth={2} />
</Tag>
</button>
diff --git a/web/core/components/issues/issue-layouts/filters/applied-filters/roots/global-view-root.tsx b/web/core/components/issues/issue-layouts/filters/applied-filters/roots/global-view-root.tsx
index 7744d48c86..4aee53f323 100644
--- a/web/core/components/issues/issue-layouts/filters/applied-filters/roots/global-view-root.tsx
+++ b/web/core/components/issues/issue-layouts/filters/applied-filters/roots/global-view-root.tsx
@@ -6,7 +6,13 @@ import isEmpty from "lodash/isEmpty";
import { observer } from "mobx-react";
import { useParams } from "next/navigation";
// types
-import { EIssueFilterType, EIssuesStoreType } from "@plane/constants";
+import {
+ DEFAULT_GLOBAL_VIEWS_LIST,
+ EIssueFilterType,
+ EIssuesStoreType,
+ EViewAccess,
+ GLOBAL_VIEW_UPDATED,
+ EUserPermissions, EUserPermissionsLevel } from "@plane/constants";
import { IIssueFilterOptions, TStaticViewTypes } from "@plane/types";
//ui
// components
@@ -15,14 +21,10 @@ import { AppliedFiltersList } from "@/components/issues";
import { UpdateViewComponent } from "@/components/views/update-view-component";
import { CreateUpdateWorkspaceViewModal } from "@/components/workspace";
// constants
-import { GLOBAL_VIEW_UPDATED } from "@/constants/event-tracker";
-import { EViewAccess } from "@/constants/views";
-import { DEFAULT_GLOBAL_VIEWS_LIST } from "@/constants/workspace";
// helpers
import { cn } from "@/helpers/common.helper";
// hooks
import { useEventTracker, useGlobalView, useIssues, useLabel, useUser, useUserPermissions } from "@/hooks/store";
-import { EUserPermissions, EUserPermissionsLevel } from "@/plane-web/constants/user-permissions";
import { getAreFiltersEqual } from "../../../utils";
type Props = {
diff --git a/web/core/components/issues/issue-layouts/filters/applied-filters/roots/project-root.tsx b/web/core/components/issues/issue-layouts/filters/applied-filters/roots/project-root.tsx
index 37616a2736..d44dc6dd8b 100644
--- a/web/core/components/issues/issue-layouts/filters/applied-filters/roots/project-root.tsx
+++ b/web/core/components/issues/issue-layouts/filters/applied-filters/roots/project-root.tsx
@@ -1,7 +1,7 @@
import { observer } from "mobx-react";
import { useParams } from "next/navigation";
// types
-import { EIssueFilterType, EIssuesStoreType } from "@plane/constants";
+import { EIssueFilterType, EIssuesStoreType, EUserPermissions, EUserPermissionsLevel } from "@plane/constants";
import { IIssueFilterOptions } from "@plane/types";
// ui
import { Header, EHeaderVariant } from "@plane/ui";
@@ -12,7 +12,6 @@ import { AppliedFiltersList, SaveFilterView } from "@/components/issues";
import { useLabel, useProjectState, useUserPermissions } from "@/hooks/store";
import { useIssues } from "@/hooks/store/use-issues";
// plane web constants
-import { EUserPermissions, EUserPermissionsLevel } from "@/plane-web/constants/user-permissions";
type TProjectAppliedFiltersRootProps = {
storeType?: EIssuesStoreType.PROJECT | EIssuesStoreType.EPIC;
diff --git a/web/core/components/issues/issue-layouts/filters/applied-filters/roots/project-view-root.tsx b/web/core/components/issues/issue-layouts/filters/applied-filters/roots/project-view-root.tsx
index 152ebcc2d3..6812c81191 100644
--- a/web/core/components/issues/issue-layouts/filters/applied-filters/roots/project-view-root.tsx
+++ b/web/core/components/issues/issue-layouts/filters/applied-filters/roots/project-view-root.tsx
@@ -6,7 +6,13 @@ import isEmpty from "lodash/isEmpty";
import { observer } from "mobx-react";
import { useParams } from "next/navigation";
// types
-import { EIssueFilterType, EIssuesStoreType } from "@plane/constants";
+import {
+ EIssueFilterType,
+ EIssuesStoreType,
+ EViewAccess,
+ EUserPermissions,
+ EUserPermissionsLevel,
+} from "@plane/constants";
import { IIssueFilterOptions } from "@plane/types";
// components
import { Header, EHeaderVariant } from "@plane/ui";
@@ -14,10 +20,8 @@ import { AppliedFiltersList } from "@/components/issues";
import { CreateUpdateProjectViewModal } from "@/components/views";
import { UpdateViewComponent } from "@/components/views/update-view-component";
// constants
-import { EViewAccess } from "@/constants/views";
// hooks
import { useIssues, useLabel, useProjectState, useProjectView, useUser, useUserPermissions } from "@/hooks/store";
-import { EUserPermissions, EUserPermissionsLevel } from "@/plane-web/constants/user-permissions";
import { getAreFiltersEqual } from "../../../utils";
export const ProjectViewAppliedFiltersRoot: React.FC = observer(() => {
diff --git a/web/core/components/issues/issue-layouts/filters/header/display-filters/display-properties.tsx b/web/core/components/issues/issue-layouts/filters/header/display-filters/display-properties.tsx
index 9651343492..9d8bd8aa12 100644
--- a/web/core/components/issues/issue-layouts/filters/header/display-filters/display-properties.tsx
+++ b/web/core/components/issues/issue-layouts/filters/header/display-filters/display-properties.tsx
@@ -1,10 +1,12 @@
import React from "react";
import { observer } from "mobx-react";
import { useParams } from "next/navigation";
+// plane constants
+import { ISSUE_DISPLAY_PROPERTIES } from "@plane/constants";
+// plane i18n
+import { useTranslation } from "@plane/i18n";
// types
import { IIssueDisplayProperties } from "@plane/types";
-// constants
-import { ISSUE_DISPLAY_PROPERTIES } from "@/constants/issue";
// plane web helpers
import { shouldRenderDisplayProperty } from "@/plane-web/helpers/issue-filter.helper";
// components
@@ -28,6 +30,8 @@ export const FilterDisplayProperties: React.FC<Props> = observer((props) => {
moduleViewDisabled = false,
isEpic = false,
} = props;
+ // hooks
+ const { t } = useTranslation();
// router
const { workspaceSlug, projectId: routerProjectId } = useParams();
// states
@@ -49,7 +53,7 @@ export const FilterDisplayProperties: React.FC<Props> = observer((props) => {
}
}).map((property) => {
if (isEpic && property.key === "sub_issue_count") {
- return { ...property, title: "Issue count" };
+ return { ...property, title: "Work item count" };
}
return property;
});
@@ -57,7 +61,7 @@ export const FilterDisplayProperties: React.FC<Props> = observer((props) => {
return (
<>
<FilterHeader
- title="Display Properties"
+ title={t("issue.display.properties.label")}
isPreviewEnabled={previewEnabled}
handleIsPreviewEnabled={() => setPreviewEnabled(!previewEnabled)}
/>
@@ -79,7 +83,7 @@ export const FilterDisplayProperties: React.FC<Props> = observer((props) => {
})
}
>
- {displayProperty.title}
+ {t(displayProperty.titleTranslationKey)}
</button>
</>
))}
diff --git a/web/core/components/issues/issue-layouts/filters/header/display-filters/extra-options.tsx b/web/core/components/issues/issue-layouts/filters/header/display-filters/extra-options.tsx
index a5067377d1..51780d2277 100644
--- a/web/core/components/issues/issue-layouts/filters/header/display-filters/extra-options.tsx
+++ b/web/core/components/issues/issue-layouts/filters/header/display-filters/extra-options.tsx
@@ -1,12 +1,24 @@
import React from "react";
import { observer } from "mobx-react";
+import { useTranslation } from "@plane/i18n";
import { IIssueDisplayFilterOptions, TIssueExtraOptions } from "@plane/types";
-
// components
import { FilterOption } from "@/components/issues";
-// types
-import { ISSUE_EXTRA_OPTIONS } from "@/constants/issue";
+
// constants
+const ISSUE_EXTRA_OPTIONS: {
+ key: TIssueExtraOptions;
+ titleTranslationKey: string;
+}[] = [
+ {
+ key: "sub_issue",
+ titleTranslationKey: "issue.display.extra.show_sub_issues",
+ }, // in spreadsheet its always false
+ {
+ key: "show_empty_groups",
+ titleTranslationKey: "issue.display.extra.show_empty_groups",
+ }, // filter on front-end
+];
type Props = {
selectedExtraOptions: {
@@ -19,7 +31,8 @@ type Props = {
export const FilterExtraOptions: React.FC<Props> = observer((props) => {
const { selectedExtraOptions, handleUpdate, enabledExtraOptions } = props;
-
+ // hooks
+ const { t } = useTranslation();
const isExtraOptionEnabled = (option: TIssueExtraOptions) => enabledExtraOptions.includes(option);
return (
@@ -32,7 +45,7 @@ export const FilterExtraOptions: React.FC<Props> = observer((props) => {
key={option.key}
isChecked={selectedExtraOptions?.[option.key] ? true : false}
onClick={() => handleUpdate(option.key, !selectedExtraOptions?.[option.key])}
- title={option.title}
+ title={t(option.titleTranslationKey)}
/>
);
})}
diff --git a/web/core/components/issues/issue-layouts/filters/header/display-filters/group-by.tsx b/web/core/components/issues/issue-layouts/filters/header/display-filters/group-by.tsx
index c5adff75b9..2622eae9d0 100644
--- a/web/core/components/issues/issue-layouts/filters/header/display-filters/group-by.tsx
+++ b/web/core/components/issues/issue-layouts/filters/header/display-filters/group-by.tsx
@@ -1,11 +1,10 @@
import React, { useState } from "react";
import { observer } from "mobx-react";
+import { ISSUE_GROUP_BY_OPTIONS } from "@plane/constants";
+import { useTranslation } from "@plane/i18n";
import { IIssueDisplayFilterOptions, TIssueGroupByOptions } from "@plane/types";
// components
import { FilterHeader, FilterOption } from "@/components/issues";
-// types
-import { ISSUE_GROUP_BY_OPTIONS } from "@/constants/issue";
-// constants
type Props = {
displayFilters: IIssueDisplayFilterOptions | undefined;
@@ -16,7 +15,8 @@ type Props = {
export const FilterGroupBy: React.FC<Props> = observer((props) => {
const { displayFilters, groupByOptions, handleUpdate, ignoreGroupedFilters } = props;
-
+ // hooks
+ const { t } = useTranslation();
const [previewEnabled, setPreviewEnabled] = useState(true);
const selectedGroupBy = displayFilters?.group_by ?? null;
@@ -25,7 +25,7 @@ export const FilterGroupBy: React.FC<Props> = observer((props) => {
return (
<>
<FilterHeader
- title="Group by"
+ title={t("common.group_by")}
isPreviewEnabled={previewEnabled}
handleIsPreviewEnabled={() => setPreviewEnabled(!previewEnabled)}
/>
@@ -45,7 +45,7 @@ export const FilterGroupBy: React.FC<Props> = observer((props) => {
key={groupBy?.key}
isChecked={selectedGroupBy === groupBy?.key ? true : false}
onClick={() => handleUpdate(groupBy.key)}
- title={groupBy.title}
+ title={t(groupBy.titleTranslationKey)}
multiple={false}
/>
);
diff --git a/web/core/components/issues/issue-layouts/filters/header/display-filters/issue-grouping.tsx b/web/core/components/issues/issue-layouts/filters/header/display-filters/issue-grouping.tsx
index 0de60f625b..d3d106a93a 100644
--- a/web/core/components/issues/issue-layouts/filters/header/display-filters/issue-grouping.tsx
+++ b/web/core/components/issues/issue-layouts/filters/header/display-filters/issue-grouping.tsx
@@ -1,11 +1,8 @@
import React from "react";
import { observer } from "mobx-react";
import { TIssueGroupingFilters } from "@plane/types";
-
// components
import { FilterHeader, FilterOption } from "@/components/issues";
-// types
-import { ISSUE_FILTER_OPTIONS } from "@/constants/issue";
// constants
type Props = {
@@ -14,6 +11,15 @@ type Props = {
isEpic?: boolean;
};
+const ISSUE_FILTER_OPTIONS: {
+ key: TIssueGroupingFilters;
+ title: string;
+}[] = [
+ { key: null, title: "All" },
+ { key: "active", title: "Active" },
+ { key: "backlog", title: "Backlog" },
+];
+
export const FilterIssueGrouping: React.FC<Props> = observer((props) => {
const { selectedIssueType, handleUpdate, isEpic = false } = props;
@@ -24,7 +30,7 @@ export const FilterIssueGrouping: React.FC<Props> = observer((props) => {
return (
<>
<FilterHeader
- title={`${isEpic ? "Epic" : "Issue"} Grouping`}
+ title={`${isEpic ? "Epic" : "Work item"} Grouping`}
isPreviewEnabled={previewEnabled}
handleIsPreviewEnabled={() => setPreviewEnabled(!previewEnabled)}
/>
@@ -35,7 +41,7 @@ export const FilterIssueGrouping: React.FC<Props> = observer((props) => {
key={issueType?.key}
isChecked={activeIssueType === issueType?.key ? true : false}
onClick={() => handleUpdate(issueType?.key)}
- title={`${issueType.title} ${isEpic ? "Epics" : "Issues"}`}
+ title={`${issueType.title} ${isEpic ? "Epics" : "Work items"}`}
multiple={false}
/>
))}
diff --git a/web/core/components/issues/issue-layouts/filters/header/display-filters/order-by.tsx b/web/core/components/issues/issue-layouts/filters/header/display-filters/order-by.tsx
index a9ff00b3d0..5c4a6ba50b 100644
--- a/web/core/components/issues/issue-layouts/filters/header/display-filters/order-by.tsx
+++ b/web/core/components/issues/issue-layouts/filters/header/display-filters/order-by.tsx
@@ -1,12 +1,11 @@
import React, { useState } from "react";
import { observer } from "mobx-react";
+import { ISSUE_ORDER_BY_OPTIONS } from "@plane/constants";
+import { useTranslation } from "@plane/i18n";
import { TIssueOrderByOptions } from "@plane/types";
// components
import { FilterHeader, FilterOption } from "@/components/issues";
-// types
-import { ISSUE_ORDER_BY_OPTIONS } from "@/constants/issue";
-// constants
type Props = {
selectedOrderBy: TIssueOrderByOptions | undefined;
@@ -16,6 +15,8 @@ type Props = {
export const FilterOrderBy: React.FC<Props> = observer((props) => {
const { selectedOrderBy, handleUpdate, orderByOptions } = props;
+ // hooks
+ const { t } = useTranslation();
const [previewEnabled, setPreviewEnabled] = useState(true);
@@ -24,7 +25,7 @@ export const FilterOrderBy: React.FC<Props> = observer((props) => {
return (
<>
<FilterHeader
- title="Order by"
+ title={t("common.order_by.label")}
isPreviewEnabled={previewEnabled}
handleIsPreviewEnabled={() => setPreviewEnabled(!previewEnabled)}
/>
@@ -35,7 +36,7 @@ export const FilterOrderBy: React.FC<Props> = observer((props) => {
key={orderBy?.key}
isChecked={activeOrderBy === orderBy?.key ? true : false}
onClick={() => handleUpdate(orderBy.key)}
- title={orderBy.title}
+ title={t(orderBy.titleTranslationKey)}
multiple={false}
/>
))}
diff --git a/web/core/components/issues/issue-layouts/filters/header/display-filters/sub-group-by.tsx b/web/core/components/issues/issue-layouts/filters/header/display-filters/sub-group-by.tsx
index 56dd86f36e..e19f6d0112 100644
--- a/web/core/components/issues/issue-layouts/filters/header/display-filters/sub-group-by.tsx
+++ b/web/core/components/issues/issue-layouts/filters/header/display-filters/sub-group-by.tsx
@@ -1,10 +1,10 @@
import React, { useState } from "react";
import { observer } from "mobx-react";
+import { ISSUE_GROUP_BY_OPTIONS } from "@plane/constants";
+import { useTranslation } from "@plane/i18n";
import { IIssueDisplayFilterOptions, TIssueGroupByOptions } from "@plane/types";
// components
import { FilterHeader, FilterOption } from "@/components/issues";
-// types
-import { ISSUE_GROUP_BY_OPTIONS } from "@/constants/issue";
// constants
type Props = {
@@ -15,6 +15,9 @@ type Props = {
};
export const FilterSubGroupBy: React.FC<Props> = observer((props) => {
+ // hooks
+ const { t } = useTranslation();
+
const { displayFilters, handleUpdate, subGroupByOptions, ignoreGroupedFilters } = props;
const [previewEnabled, setPreviewEnabled] = useState(true);
@@ -40,7 +43,7 @@ export const FilterSubGroupBy: React.FC<Props> = observer((props) => {
key={subGroupBy?.key}
isChecked={selectedSubGroupBy === subGroupBy?.key ? true : false}
onClick={() => handleUpdate(subGroupBy.key)}
- title={subGroupBy.title}
+ title={t(subGroupBy.titleTranslationKey)}
multiple={false}
/>
);
diff --git a/web/core/components/issues/issue-layouts/filters/header/filters/filters-selection.tsx b/web/core/components/issues/issue-layouts/filters/header/filters/filters-selection.tsx
index 37eee9e936..7791efc161 100644
--- a/web/core/components/issues/issue-layouts/filters/header/filters/filters-selection.tsx
+++ b/web/core/components/issues/issue-layouts/filters/header/filters/filters-selection.tsx
@@ -2,6 +2,9 @@ import { useState } from "react";
import { observer } from "mobx-react";
import { useParams } from "next/navigation";
import { Search, X } from "lucide-react";
+// i18n
+import { EUserPermissions } from "@plane/constants";
+import { useTranslation } from "@plane/i18n";
// types
import {
IIssueDisplayFilterOptions,
@@ -31,7 +34,6 @@ import { useMember } from "@/hooks/store";
import { usePlatformOS } from "@/hooks/use-platform-os";
// plane web components
import { FilterIssueTypes, FilterTeamProjects } from "@/plane-web/components/issues";
-import { EUserPermissions } from "@/plane-web/constants";
type Props = {
filters: IIssueFilterOptions;
@@ -63,6 +65,9 @@ export const FilterSelection: React.FC<Props> = observer((props) => {
moduleViewDisabled = false,
isEpic = false,
} = props;
+
+ // i18n
+ const { t } = useTranslation();
// hooks
const { isMobile } = usePlatformOS();
const { moduleId, cycleId } = useParams();
@@ -95,7 +100,7 @@ export const FilterSelection: React.FC<Props> = observer((props) => {
<input
type="text"
className="w-full bg-custom-background-90 outline-none placeholder:text-custom-text-400"
- placeholder="Search"
+ placeholder={t("common.search.label")}
value={filtersSearchQuery}
onChange={(e) => setFiltersSearchQuery(e.target.value)}
autoFocus={!isMobile}
diff --git a/web/core/components/issues/issue-layouts/filters/header/filters/priority.tsx b/web/core/components/issues/issue-layouts/filters/header/filters/priority.tsx
index 609bb37f47..dee9165342 100644
--- a/web/core/components/issues/issue-layouts/filters/header/filters/priority.tsx
+++ b/web/core/components/issues/issue-layouts/filters/header/filters/priority.tsx
@@ -2,16 +2,14 @@
import React, { useState } from "react";
import { observer } from "mobx-react";
-
+// plane constants
+import { ISSUE_PRIORITIES } from "@plane/constants";
+import { useTranslation } from "@plane/i18n";
// ui
import { PriorityIcon } from "@plane/ui";
// components
import { FilterHeader, FilterOption } from "@/components/issues";
-
-// constants
-import { ISSUE_PRIORITIES } from "@/constants/issue";
-
type Props = {
appliedFilters: string[] | null;
handleUpdate: (val: string) => void;
@@ -20,17 +18,17 @@ type Props = {
export const FilterPriority: React.FC<Props> = observer((props) => {
const { appliedFilters, handleUpdate, searchQuery } = props;
-
+ // hooks
+ const { t } = useTranslation();
const [previewEnabled, setPreviewEnabled] = useState(true);
const appliedFiltersCount = appliedFilters?.length ?? 0;
const filteredOptions = ISSUE_PRIORITIES.filter((p) => p.key.includes(searchQuery.toLowerCase()));
-
return (
<>
<FilterHeader
- title={`Priority${appliedFiltersCount > 0 ? ` (${appliedFiltersCount})` : ""}`}
+ title={`Priority ${appliedFiltersCount > 0 ? ` (${appliedFiltersCount})` : ""}`}
isPreviewEnabled={previewEnabled}
handleIsPreviewEnabled={() => setPreviewEnabled(!previewEnabled)}
/>
@@ -47,7 +45,7 @@ export const FilterPriority: React.FC<Props> = observer((props) => {
/>
))
) : (
- <p className="text-xs italic text-custom-text-400">No matches found</p>
+ <p className="text-xs italic text-custom-text-400">{t("common.search.no_matches_found")}</p>
)}
</div>
)}
diff --git a/web/core/components/issues/issue-layouts/filters/header/filters/start-date.tsx b/web/core/components/issues/issue-layouts/filters/header/filters/start-date.tsx
index c9f4ae22e6..c667696e7c 100644
--- a/web/core/components/issues/issue-layouts/filters/header/filters/start-date.tsx
+++ b/web/core/components/issues/issue-layouts/filters/header/filters/start-date.tsx
@@ -1,11 +1,10 @@
import React, { useState } from "react";
import { observer } from "mobx-react";
-
+// constants
+import { DATE_AFTER_FILTER_OPTIONS } from "@plane/constants";
// components
import { DateFilterModal } from "@/components/core";
import { FilterHeader, FilterOption } from "@/components/issues";
-// constants
-import { DATE_AFTER_FILTER_OPTIONS } from "@/constants/filters";
type Props = {
appliedFilters: string[] | null;
@@ -15,7 +14,6 @@ type Props = {
export const FilterStartDate: React.FC<Props> = observer((props) => {
const { appliedFilters, handleUpdate, searchQuery } = props;
-
const [previewEnabled, setPreviewEnabled] = useState(true);
const [isDateFilterModalOpen, setIsDateFilterModalOpen] = useState(false);
diff --git a/web/core/components/issues/issue-layouts/filters/header/filters/state-group.tsx b/web/core/components/issues/issue-layouts/filters/header/filters/state-group.tsx
index 1ca11eec62..cdad192b62 100644
--- a/web/core/components/issues/issue-layouts/filters/header/filters/state-group.tsx
+++ b/web/core/components/issues/issue-layouts/filters/header/filters/state-group.tsx
@@ -2,12 +2,11 @@
import React, { useState } from "react";
import { observer } from "mobx-react";
-// components
+// plane imports
+import { STATE_GROUPS } from "@plane/constants";
import { StateGroupIcon } from "@plane/ui";
+// components
import { FilterHeader, FilterOption } from "@/components/issues";
-// icons
-import { STATE_GROUPS } from "@/constants/state";
-// constants
type Props = {
appliedFilters: string[] | null;
diff --git a/web/core/components/issues/issue-layouts/filters/header/filters/target-date.tsx b/web/core/components/issues/issue-layouts/filters/header/filters/target-date.tsx
index d4ef89584e..bfd677681a 100644
--- a/web/core/components/issues/issue-layouts/filters/header/filters/target-date.tsx
+++ b/web/core/components/issues/issue-layouts/filters/header/filters/target-date.tsx
@@ -1,11 +1,10 @@
import React, { useState } from "react";
import { observer } from "mobx-react";
-
+// constants
+import { DATE_AFTER_FILTER_OPTIONS } from "@plane/constants";
// components
import { DateFilterModal } from "@/components/core";
import { FilterHeader, FilterOption } from "@/components/issues";
-// constants
-import { DATE_AFTER_FILTER_OPTIONS } from "@/constants/filters";
type Props = {
appliedFilters: string[] | null;
diff --git a/web/core/components/issues/issue-layouts/filters/header/layout-selection.tsx b/web/core/components/issues/issue-layouts/filters/header/layout-selection.tsx
index 9439eea5dc..53d32aaeae 100644
--- a/web/core/components/issues/issue-layouts/filters/header/layout-selection.tsx
+++ b/web/core/components/issues/issue-layouts/filters/header/layout-selection.tsx
@@ -2,12 +2,13 @@
import React from "react";
// plane constants
-import { EIssueLayoutTypes } from "@plane/constants";
+import { EIssueLayoutTypes, ISSUE_LAYOUTS } from "@plane/constants";
+// plane i18n
+import { useTranslation } from "@plane/i18n";
// ui
import { Tooltip } from "@plane/ui";
// types
-// constants
-import { ISSUE_LAYOUTS } from "@/constants/issue";
+import { IssueLayoutIcon } from "@/components/issues";
import { usePlatformOS } from "@/hooks/use-platform-os";
// hooks
@@ -20,7 +21,7 @@ type Props = {
export const LayoutSelection: React.FC<Props> = (props) => {
const { layouts, onChange, selectedLayout } = props;
const { isMobile } = usePlatformOS();
-
+ const { t } = useTranslation();
const handleOnChange = (layoutKey: EIssueLayoutTypes) => {
if (selectedLayout !== layoutKey) {
onChange(layoutKey);
@@ -30,7 +31,7 @@ export const LayoutSelection: React.FC<Props> = (props) => {
return (
<div className="flex items-center gap-1 rounded bg-custom-background-80 p-1">
{ISSUE_LAYOUTS.filter((l) => layouts.includes(l.key)).map((layout) => (
- <Tooltip key={layout.key} tooltipContent={layout.title} isMobile={isMobile}>
+ <Tooltip key={layout.key} tooltipContent={t(layout.i18n_title)} isMobile={isMobile}>
<button
type="button"
className={`group grid h-[22px] w-7 place-items-center overflow-hidden rounded transition-all hover:bg-custom-background-100 ${
@@ -38,7 +39,8 @@ export const LayoutSelection: React.FC<Props> = (props) => {
}`}
onClick={() => handleOnChange(layout.key)}
>
- <layout.icon
+ <IssueLayoutIcon
+ layout={layout.key}
size={14}
strokeWidth={2}
className={`h-3.5 w-3.5 ${
diff --git a/web/core/components/issues/issue-layouts/gantt/base-gantt-root.tsx b/web/core/components/issues/issue-layouts/gantt/base-gantt-root.tsx
index 1b56eee4da..43410d1355 100644
--- a/web/core/components/issues/issue-layouts/gantt/base-gantt-root.tsx
+++ b/web/core/components/issues/issue-layouts/gantt/base-gantt-root.tsx
@@ -2,7 +2,14 @@ import React, { useCallback, useEffect } from "react";
import { observer } from "mobx-react";
import { useParams } from "next/navigation";
// plane constants
-import { ALL_ISSUES, EIssueLayoutTypes, EIssuesStoreType } from "@plane/constants";
+import {
+ ALL_ISSUES,
+ EIssueLayoutTypes,
+ EIssuesStoreType,
+ EUserPermissions,
+ EUserPermissionsLevel,
+} from "@plane/constants";
+import { useTranslation } from "@plane/i18n";
import { TIssue } from "@plane/types";
import { setToast, TOAST_TYPE } from "@plane/ui";
// hooks
@@ -18,7 +25,6 @@ import { useIssueStoreType } from "@/hooks/use-issue-layout-store";
import { useIssuesActions } from "@/hooks/use-issues-actions";
import { useTimeLineChart } from "@/hooks/use-timeline-chart";
// plane web hooks
-import { EUserPermissions, EUserPermissionsLevel } from "@/plane-web/constants/user-permissions";
import { useBulkOperationStatus } from "@/plane-web/hooks/use-bulk-operation-status";
import { IssueLayoutHOC } from "../issue-layout-HOC";
@@ -38,6 +44,7 @@ export type GanttStoreType =
export const BaseGanttRoot: React.FC<IBaseGanttRoot> = observer((props: IBaseGanttRoot) => {
const { viewId, isCompletedCycle = false, isEpic = false } = props;
+ const { t } = useTranslation();
// router
const { workspaceSlug, projectId } = useParams();
@@ -93,8 +100,8 @@ export const BaseGanttRoot: React.FC<IBaseGanttRoot> = observer((props: IBaseGan
issues.updateIssueDates(workspaceSlug.toString(), projectId.toString(), updates).catch(() => {
setToast({
type: TOAST_TYPE.ERROR,
- title: "Error!",
- message: "Error while updating Issue Dates, Please try again Later",
+ title: t("toast.error"),
+ message: "Error while updating work item dates, Please try again Later",
});
}),
[issues]
@@ -121,8 +128,8 @@ export const BaseGanttRoot: React.FC<IBaseGanttRoot> = observer((props: IBaseGan
<div className="h-full w-full">
<GanttChartRoot
border={false}
- title={isEpic ? "Epics" : "Issues"}
- loaderTitle={isEpic ? "Epics" : "Issues"}
+ title={isEpic ? t("epic.label", { count: 2 }) : t("issue.label", { count: 2 })}
+ loaderTitle={isEpic ? t("epic.label", { count: 2 }) : t("issue.label", { count: 2 })}
blockIds={issuesIds}
blockUpdateHandler={updateIssueBlockStructure}
blockToRender={(data: TIssue) => <IssueGanttBlock issueId={data.id} isEpic={isEpic} />}
diff --git a/web/core/components/issues/issue-layouts/group-drag-overlay.tsx b/web/core/components/issues/issue-layouts/group-drag-overlay.tsx
index db19336e43..0ed491c27a 100644
--- a/web/core/components/issues/issue-layouts/group-drag-overlay.tsx
+++ b/web/core/components/issues/issue-layouts/group-drag-overlay.tsx
@@ -1,8 +1,8 @@
import { AlertCircle } from "lucide-react";
// Plane
+import { ISSUE_ORDER_BY_OPTIONS } from "@plane/constants";
+import { useTranslation } from "@plane/i18n";
import { TIssueOrderByOptions } from "@plane/types";
-// constants
-import { ISSUE_ORDER_BY_OPTIONS } from "@/constants/issue";
// helpers
import { cn } from "@/helpers/common.helper";
// Plane-web
@@ -31,8 +31,13 @@ export const GroupDragOverlay = (props: Props) => {
isEpic = false,
} = props;
+ // hooks
+ const { t } = useTranslation();
+
const shouldOverlayBeVisible = isDraggingOverColumn && canOverlayBeVisible;
- const readableOrderBy = ISSUE_ORDER_BY_OPTIONS.find((orderByObj) => orderByObj.key === orderBy)?.title;
+ const readableOrderBy = t(
+ ISSUE_ORDER_BY_OPTIONS.find((orderByObj) => orderByObj.key === orderBy)?.titleTranslationKey || ""
+ );
return (
<div
@@ -67,10 +72,10 @@ export const GroupDragOverlay = (props: Props) => {
<>
{readableOrderBy && (
<span>
- The layout is ordered by <span className="font-semibold">{readableOrderBy}</span>.
+ {t("issue.layouts.ordered_by_label")} <span className="font-semibold">{t(readableOrderBy)}</span>.
</span>
)}
- <span>{`Drop here to move the ${isEpic ? "epic" : "issue"}.`}</span>
+ <span>{t("entity.drop_here_to_move", { entity: isEpic ? "epic" : "work item" })}</span>
</>
)}
</div>
diff --git a/web/core/components/issues/issue-layouts/index.ts b/web/core/components/issues/issue-layouts/index.ts
index 7877eeaf53..75bf1d5995 100644
--- a/web/core/components/issues/issue-layouts/index.ts
+++ b/web/core/components/issues/issue-layouts/index.ts
@@ -12,6 +12,7 @@ export * from "./calendar";
export * from "./gantt";
export * from "./kanban";
export * from "./spreadsheet";
+export * from "./layout-icon";
// properties
export * from "./properties";
@@ -21,4 +22,3 @@ export * from "./save-filter-view";
// quick add
export * from "./quick-add";
-
diff --git a/web/core/components/issues/issue-layouts/kanban/base-kanban-root.tsx b/web/core/components/issues/issue-layouts/kanban/base-kanban-root.tsx
index 2fc8e1c239..33ab962a52 100644
--- a/web/core/components/issues/issue-layouts/kanban/base-kanban-root.tsx
+++ b/web/core/components/issues/issue-layouts/kanban/base-kanban-root.tsx
@@ -6,16 +6,22 @@ import { dropTargetForElements } from "@atlaskit/pragmatic-drag-and-drop/element
import { autoScrollForElements } from "@atlaskit/pragmatic-drag-and-drop-auto-scroll/element";
import { observer } from "mobx-react";
import { useParams, usePathname } from "next/navigation";
-import { EIssueLayoutTypes, EIssueServiceType, EIssueFilterType, EIssuesStoreType } from "@plane/constants";
+import {
+ EIssueLayoutTypes,
+ EIssueServiceType,
+ EIssueFilterType,
+ EIssuesStoreType,
+ ISSUE_DELETED,
+ EUserPermissions,
+ EUserPermissionsLevel,
+} from "@plane/constants";
import { DeleteIssueModal } from "@/components/issues";
//constants
-import { ISSUE_DELETED } from "@/constants/event-tracker";
//hooks
import { useEventTracker, useIssueDetail, useIssues, useKanbanView, useUserPermissions } from "@/hooks/store";
import { useGroupIssuesDragNDrop } from "@/hooks/use-group-dragndrop";
import { useIssueStoreType } from "@/hooks/use-issue-layout-store";
import { useIssuesActions } from "@/hooks/use-issues-actions";
-import { EUserPermissions, EUserPermissionsLevel } from "@/plane-web/constants/user-permissions";
// store
// ui
// types
@@ -258,7 +264,7 @@ export const BaseKanBanRoot: React.FC<IBaseKanBanLayout> = observer((props: IBas
isDragOverDelete ? "bg-red-500 opacity-70 blur-2xl" : ""
} transition duration-300`}
>
- Drop here to delete the issue.
+ Drop here to delete the work item.
</div>
</div>
diff --git a/web/core/components/issues/issue-layouts/kanban/block.tsx b/web/core/components/issues/issue-layouts/kanban/block.tsx
index 5fbee1c0a7..3e82a46f8e 100644
--- a/web/core/components/issues/issue-layouts/kanban/block.tsx
+++ b/web/core/components/issues/issue-layouts/kanban/block.tsx
@@ -205,9 +205,9 @@ export const KanbanIssueBlock: React.FC<IssueBlockProps> = observer((props) => {
else {
setToast({
type: TOAST_TYPE.WARNING,
- title: "Cannot move issue",
+ title: "Cannot move work item",
message: !canEditIssueProperties
- ? "You are not allowed to move this issue"
+ ? "You are not allowed to move this work item"
: "Drag and drop is disabled for the current grouping",
});
}
@@ -215,7 +215,7 @@ export const KanbanIssueBlock: React.FC<IssueBlockProps> = observer((props) => {
>
<ControlLink
id={getIssueBlockId(issueId, groupId, subGroupId)}
- href={`/${workspaceSlug}/projects/${issue.project_id}/${issue.archived_at ? "archives/" : ""}${isEpic ? "epics" : "issues"}/${
+ href={`/${workspaceSlug}/projects/${issue.project_id}/${issue.archived_at ? "archives/" : ""}${isEpic ? "epics" : "work items"}/${
issue.id
}`}
ref={cardRef}
diff --git a/web/core/components/issues/issue-layouts/kanban/default.tsx b/web/core/components/issues/issue-layouts/kanban/default.tsx
index 53b1615d0c..6a0177ae86 100644
--- a/web/core/components/issues/issue-layouts/kanban/default.tsx
+++ b/web/core/components/issues/issue-layouts/kanban/default.tsx
@@ -1,5 +1,7 @@
import { MutableRefObject } from "react";
import { observer } from "mobx-react";
+// i18n
+import { useTranslation } from "@plane/i18n";
import {
GroupByColumnTypes,
IGroupByColumn,
@@ -89,6 +91,8 @@ export const KanBan: React.FC<IKanBan> = observer((props) => {
subGroupIndex = 0,
isEpic = false,
} = props;
+ // i18n
+ const { t } = useTranslation();
// store hooks
const storeType = useIssueStoreType();
const issueKanBanView = useKanbanView();
diff --git a/web/core/components/issues/issue-layouts/kanban/headers/group-by-card.tsx b/web/core/components/issues/issue-layouts/kanban/headers/group-by-card.tsx
index 853a25e9b3..77d6a08aa3 100644
--- a/web/core/components/issues/issue-layouts/kanban/headers/group-by-card.tsx
+++ b/web/core/components/issues/issue-layouts/kanban/headers/group-by-card.tsx
@@ -77,13 +77,13 @@ export const HeaderGroupByCard: FC<IHeaderGroupByCard> = observer((props) => {
setToast({
type: TOAST_TYPE.SUCCESS,
title: "Success!",
- message: "Issues added to the cycle successfully.",
+ message: "Work items added to the cycle successfully.",
});
} catch (error) {
setToast({
type: TOAST_TYPE.ERROR,
title: "Error!",
- message: "Selected issues could not be added to the cycle. Please try again.",
+ message: "Selected work items could not be added to the cycle. Please try again.",
});
}
};
@@ -171,7 +171,7 @@ export const HeaderGroupByCard: FC<IHeaderGroupByCard> = observer((props) => {
setIsOpen(true);
}}
>
- <span className="flex items-center justify-start gap-2">Create issue</span>
+ <span className="flex items-center justify-start gap-2">Create work item</span>
</CustomMenu.MenuItem>
<CustomMenu.MenuItem
onClick={() => {
@@ -179,7 +179,7 @@ export const HeaderGroupByCard: FC<IHeaderGroupByCard> = observer((props) => {
setOpenExistingIssueListModal(true);
}}
>
- <span className="flex items-center justify-start gap-2">Add an existing issue</span>
+ <span className="flex items-center justify-start gap-2">Add an existing work item</span>
</CustomMenu.MenuItem>
</CustomMenu>
) : (
diff --git a/web/core/components/issues/issue-layouts/kanban/kanban-group.tsx b/web/core/components/issues/issue-layouts/kanban/kanban-group.tsx
index 3134b110c0..9dda5907bb 100644
--- a/web/core/components/issues/issue-layouts/kanban/kanban-group.tsx
+++ b/web/core/components/issues/issue-layouts/kanban/kanban-group.tsx
@@ -6,7 +6,9 @@ import { dropTargetForElements } from "@atlaskit/pragmatic-drag-and-drop/element
import { autoScrollForElements } from "@atlaskit/pragmatic-drag-and-drop-auto-scroll/element";
import { observer } from "mobx-react";
// plane constants
-import { EIssueLayoutTypes } from "@plane/constants";
+import { EIssueLayoutTypes, DRAG_ALLOWED_GROUPS } from "@plane/constants";
+// i18n
+import { useTranslation } from "@plane/i18n";
//types
import {
TGroupedIssues,
@@ -22,7 +24,6 @@ import { KanbanQuickAddIssueButton, QuickAddIssueRoot } from "@/components/issue
import { highlightIssueOnDrop } from "@/components/issues/issue-layouts/utils";
import { KanbanIssueBlockLoader } from "@/components/ui";
// helpers
-import { DRAG_ALLOWED_GROUPS } from "@/constants/issue";
import { cn } from "@/helpers/common.helper";
// hooks
import { useProjectState } from "@/hooks/store";
@@ -84,6 +85,8 @@ export const KanbanGroup = observer((props: IKanbanGroup) => {
handleOnDrop,
isEpic = false,
} = props;
+ // i18n
+ const { t } = useTranslation();
// hooks
const projectState = useProjectState();
@@ -155,7 +158,7 @@ export const KanbanGroup = observer((props: IKanbanGroup) => {
dropErrorMessage &&
setToast({
type: TOAST_TYPE.WARNING,
- title: "Warning!",
+ title: t("common.warning"),
message: dropErrorMessage,
});
return;
@@ -254,8 +257,7 @@ export const KanbanGroup = observer((props: IKanbanGroup) => {
className="w-full sticky bottom-0 p-3 text-sm font-medium text-custom-primary-100 hover:text-custom-primary-200 hover:underline cursor-pointer"
onClick={loadMoreIssuesInThisGroup}
>
- {" "}
- Load More &darr;
+ {t("common.load_more")} &darr;
</div>
);
diff --git a/web/core/components/issues/issue-layouts/kanban/roots/cycle-root.tsx b/web/core/components/issues/issue-layouts/kanban/roots/cycle-root.tsx
index c16e3ec2f3..0dce7e181f 100644
--- a/web/core/components/issues/issue-layouts/kanban/roots/cycle-root.tsx
+++ b/web/core/components/issues/issue-layouts/kanban/roots/cycle-root.tsx
@@ -2,12 +2,11 @@ import React, { useCallback } from "react";
import { observer } from "mobx-react";
import { useParams } from "next/navigation";
// components
-import { EIssuesStoreType } from "@plane/constants";
+import { EIssuesStoreType, EUserPermissions, EUserPermissionsLevel } from "@plane/constants";
import { CycleIssueQuickActions } from "@/components/issues";
// constants
// hooks
import { useCycle, useIssues, useUserPermissions } from "@/hooks/store";
-import { EUserPermissions, EUserPermissionsLevel } from "@/plane-web/constants/user-permissions";
// components
import { BaseKanBanRoot } from "../base-kanban-root";
diff --git a/web/core/components/issues/issue-layouts/kanban/roots/profile-issues-root.tsx b/web/core/components/issues/issue-layouts/kanban/roots/profile-issues-root.tsx
index 58ff4154b3..fed04333ec 100644
--- a/web/core/components/issues/issue-layouts/kanban/roots/profile-issues-root.tsx
+++ b/web/core/components/issues/issue-layouts/kanban/roots/profile-issues-root.tsx
@@ -1,9 +1,9 @@
import { observer } from "mobx-react";
// hooks
import { useParams } from "next/navigation";
+import { EUserPermissions, EUserPermissionsLevel } from "@plane/constants";
import { ProjectIssueQuickActions } from "@/components/issues";
import { useUserPermissions } from "@/hooks/store";
-import { EUserPermissions, EUserPermissionsLevel } from "@/plane-web/constants/user-permissions";
// components
// types
diff --git a/web/core/components/issues/issue-layouts/kanban/roots/project-root.tsx b/web/core/components/issues/issue-layouts/kanban/roots/project-root.tsx
index 86dd499489..32f22a4599 100644
--- a/web/core/components/issues/issue-layouts/kanban/roots/project-root.tsx
+++ b/web/core/components/issues/issue-layouts/kanban/roots/project-root.tsx
@@ -1,11 +1,11 @@
import { observer } from "mobx-react";
import { useParams } from "next/navigation";
// components
+import { EUserPermissions, EUserPermissionsLevel } from "@plane/constants";
import { ProjectIssueQuickActions } from "@/components/issues";
// hooks
import { useUserPermissions } from "@/hooks/store";
// plane web constants
-import { EUserPermissions, EUserPermissionsLevel } from "@/plane-web/constants/user-permissions";
// local components
import { BaseKanBanRoot } from "../base-kanban-root";
diff --git a/web/core/components/issues/issue-layouts/kanban/swimlanes.tsx b/web/core/components/issues/issue-layouts/kanban/swimlanes.tsx
index e2d52e7ca5..f2a6adf276 100644
--- a/web/core/components/issues/issue-layouts/kanban/swimlanes.tsx
+++ b/web/core/components/issues/issue-layouts/kanban/swimlanes.tsx
@@ -1,5 +1,6 @@
import { MutableRefObject } from "react";
import { observer } from "mobx-react";
+import { useTranslation } from "@plane/i18n";
import {
GroupByColumnTypes,
IGroupByColumn,
@@ -62,7 +63,7 @@ const SubGroupSwimlaneHeader: React.FC<ISubGroupSwimlaneHeader> = observer(
const subGroupByVisibilityToggle = visibilitySubGroupByGroupCount(groupCount, showEmptyGroup);
if (subGroupByVisibilityToggle === false) return <></>;
-
+ const { t } = useTranslation();
return (
<div key={`${sub_group_by}_${_list.id}`} className="flex w-[350px] flex-shrink-0 flex-col">
<HeaderGroupByCard
@@ -75,7 +76,7 @@ const SubGroupSwimlaneHeader: React.FC<ISubGroupSwimlaneHeader> = observer(
collapsedGroups={collapsedGroups}
handleCollapsedGroups={handleCollapsedGroups}
issuePayload={_list.payload}
- />
+ />{" "}
</div>
);
})}
@@ -155,6 +156,7 @@ const SubGroupSwimlane: React.FC<ISubGroupSwimlane> = observer((props) => {
{list &&
list.length > 0 &&
list.map((_list: IGroupByColumn, subGroupIndex) => {
+ const { t } = useTranslation();
const issueCount = getGroupIssueCount(undefined, _list.id, true) ?? 0;
const subGroupByVisibilityToggle = visibilitySubGroupBy(_list, issueCount);
if (subGroupByVisibilityToggle.showGroup === false) return <></>;
@@ -165,7 +167,7 @@ const SubGroupSwimlane: React.FC<ISubGroupSwimlane> = observer((props) => {
<HeaderSubGroupByCard
column_id={_list.id}
icon={_list.icon}
- title={_list.name || ""}
+ title={_list.name}
count={issueCount}
collapsedGroups={collapsedGroups}
handleCollapsedGroups={handleCollapsedGroups}
diff --git a/web/core/components/issues/issue-layouts/layout-icon.tsx b/web/core/components/issues/issue-layouts/layout-icon.tsx
new file mode 100644
index 0000000000..01243c374e
--- /dev/null
+++ b/web/core/components/issues/issue-layouts/layout-icon.tsx
@@ -0,0 +1,19 @@
+import { List, Kanban, Calendar, Sheet, GanttChartSquare, LucideProps } from "lucide-react";
+import { EIssueLayoutTypes } from "@plane/constants";
+
+export const IssueLayoutIcon = ({ layout, ...props }: { layout: EIssueLayoutTypes } & LucideProps) => {
+ switch (layout) {
+ case EIssueLayoutTypes.LIST:
+ return <List {...props} />;
+ case EIssueLayoutTypes.KANBAN:
+ return <Kanban {...props} />;
+ case EIssueLayoutTypes.CALENDAR:
+ return <Calendar {...props} />;
+ case EIssueLayoutTypes.SPREADSHEET:
+ return <Sheet {...props} />;
+ case EIssueLayoutTypes.GANTT:
+ return <GanttChartSquare {...props} />;
+ default:
+ return null;
+ }
+};
diff --git a/web/core/components/issues/issue-layouts/list/base-list-root.tsx b/web/core/components/issues/issue-layouts/list/base-list-root.tsx
index 68f7d98595..ceccd87d2b 100644
--- a/web/core/components/issues/issue-layouts/list/base-list-root.tsx
+++ b/web/core/components/issues/issue-layouts/list/base-list-root.tsx
@@ -2,7 +2,13 @@ import { FC, useCallback, useEffect } from "react";
import { observer } from "mobx-react";
import { useParams } from "next/navigation";
// plane constants
-import { EIssueLayoutTypes, EIssueFilterType, EIssuesStoreType } from "@plane/constants";
+import {
+ EIssueLayoutTypes,
+ EIssueFilterType,
+ EIssuesStoreType,
+ EUserPermissions,
+ EUserPermissionsLevel,
+} from "@plane/constants";
// types
import { GroupByColumnTypes, TGroupedIssues, TIssueKanbanFilters } from "@plane/types";
// constants
@@ -12,7 +18,6 @@ import { useIssues, useUserPermissions } from "@/hooks/store";
import { useGroupIssuesDragNDrop } from "@/hooks/use-group-dragndrop";
import { useIssueStoreType } from "@/hooks/use-issue-layout-store";
import { useIssuesActions } from "@/hooks/use-issues-actions";
-import { EUserPermissions, EUserPermissionsLevel } from "@/plane-web/constants/user-permissions";
// components
import { IssueLayoutHOC } from "../issue-layout-HOC";
import { List } from "./default";
diff --git a/web/core/components/issues/issue-layouts/list/block.tsx b/web/core/components/issues/issue-layouts/list/block.tsx
index 9843537e53..86c698992f 100644
--- a/web/core/components/issues/issue-layouts/list/block.tsx
+++ b/web/core/components/issues/issue-layouts/list/block.tsx
@@ -175,9 +175,9 @@ export const IssueBlock = observer((props: IssueBlockProps) => {
if (!isDraggingAllowed) {
setToast({
type: TOAST_TYPE.WARNING,
- title: "Cannot move issue",
+ title: "Cannot move work item",
message: !canEditIssueProperties
- ? "You are not allowed to move this issue"
+ ? "You are not allowed to move this work item"
: "Drag and drop is disabled for the current grouping",
});
}
@@ -191,7 +191,7 @@ export const IssueBlock = observer((props: IssueBlockProps) => {
<Tooltip
tooltipContent={
<>
- Only issues within the current
+ Only work items within the current
<br />
project can be selected.
</>
diff --git a/web/core/components/issues/issue-layouts/list/headers/group-by-card.tsx b/web/core/components/issues/issue-layouts/list/headers/group-by-card.tsx
index 6dc4a16aa7..4ba0269891 100644
--- a/web/core/components/issues/issue-layouts/list/headers/group-by-card.tsx
+++ b/web/core/components/issues/issue-layouts/list/headers/group-by-card.tsx
@@ -81,13 +81,13 @@ export const HeaderGroupByCard = observer((props: IHeaderGroupByCard) => {
setToast({
type: TOAST_TYPE.SUCCESS,
title: "Success!",
- message: "Issues added to the cycle successfully.",
+ message: "Work items added to the cycle successfully.",
});
} catch (error) {
setToast({
type: TOAST_TYPE.ERROR,
title: "Error!",
- message: "Selected issues could not be added to the cycle. Please try again.",
+ message: "Selected work items could not be added to the cycle. Please try again.",
});
}
};
@@ -138,7 +138,7 @@ export const HeaderGroupByCard = observer((props: IHeaderGroupByCard) => {
setIsOpen(true);
}}
>
- <span className="flex items-center justify-start gap-2">Create issue</span>
+ <span className="flex items-center justify-start gap-2">Create work item</span>
</CustomMenu.MenuItem>
<CustomMenu.MenuItem
onClick={() => {
@@ -146,7 +146,7 @@ export const HeaderGroupByCard = observer((props: IHeaderGroupByCard) => {
setOpenExistingIssueListModal(true);
}}
>
- <span className="flex items-center justify-start gap-2">Add an existing issue</span>
+ <span className="flex items-center justify-start gap-2">Add an existing work item</span>
</CustomMenu.MenuItem>
</CustomMenu>
) : (
diff --git a/web/core/components/issues/issue-layouts/list/list-group.tsx b/web/core/components/issues/issue-layouts/list/list-group.tsx
index 22faef8438..8e766d05ec 100644
--- a/web/core/components/issues/issue-layouts/list/list-group.tsx
+++ b/web/core/components/issues/issue-layouts/list/list-group.tsx
@@ -5,7 +5,9 @@ import { combine } from "@atlaskit/pragmatic-drag-and-drop/combine";
import { dropTargetForElements } from "@atlaskit/pragmatic-drag-and-drop/element/adapter";
import { observer } from "mobx-react";
// plane constants
-import { EIssueLayoutTypes } from "@plane/constants";
+import { EIssueLayoutTypes, DRAG_ALLOWED_GROUPS } from "@plane/constants";
+// plane i18n
+import { useTranslation } from "@plane/i18n";
// plane ui
import {
IGroupByColumn,
@@ -21,8 +23,6 @@ import { Row, setToast, TOAST_TYPE } from "@plane/ui";
import { cn } from "@plane/utils";
// components
import { ListLoaderItemRow } from "@/components/ui";
-// constants
-import { DRAG_ALLOWED_GROUPS } from "@/constants/issue";
// hooks
import { useProjectState } from "@/hooks/store";
import { useIntersectionObserver } from "@/hooks/use-intersection-observer";
@@ -101,7 +101,7 @@ export const ListGroup = observer((props: Props) => {
const [dragColumnOrientation, setDragColumnOrientation] = useState<"justify-start" | "justify-end">("justify-start");
const isExpanded = !collapsedGroups?.group_by.includes(group.id);
const groupRef = useRef<HTMLDivElement | null>(null);
-
+ const { t } = useTranslation();
const projectState = useProjectState();
const {
@@ -132,7 +132,7 @@ export const ListGroup = observer((props: Props) => {
}
onClick={() => loadMoreIssues(group.id)}
>
- Load More &darr;
+ {t("common.load_more")} &darr;
</div>
);
@@ -211,10 +211,10 @@ export const ListGroup = observer((props: Props) => {
if (!source || !destination) return;
if (isWorkflowDropDisabled || group.isDropDisabled) {
- group.dropErrorMessage &&
+ if (group.dropErrorMessage)
setToast({
type: TOAST_TYPE.WARNING,
- title: "Warning!",
+ title: t("common.warning"),
message: group.dropErrorMessage,
});
return;
@@ -263,7 +263,7 @@ export const ListGroup = observer((props: Props) => {
groupID={group.id}
groupBy={group_by}
icon={group.icon}
- title={group.name || ""}
+ title={group.name}
count={groupIssueCount}
issuePayload={group.payload}
canEditProperties={canEditProperties}
diff --git a/web/core/components/issues/issue-layouts/list/roots/cycle-root.tsx b/web/core/components/issues/issue-layouts/list/roots/cycle-root.tsx
index 21ab26e788..2d3eb4a8a5 100644
--- a/web/core/components/issues/issue-layouts/list/roots/cycle-root.tsx
+++ b/web/core/components/issues/issue-layouts/list/roots/cycle-root.tsx
@@ -2,12 +2,11 @@ import React, { useCallback } from "react";
import { observer } from "mobx-react";
import { useParams } from "next/navigation";
// components
-import { EIssuesStoreType } from "@plane/constants";
+import { EIssuesStoreType, EUserPermissions, EUserPermissionsLevel } from "@plane/constants";
import { CycleIssueQuickActions } from "@/components/issues";
// constants
// hooks
import { useCycle, useIssues, useUserPermissions } from "@/hooks/store";
-import { EUserPermissions, EUserPermissionsLevel } from "@/plane-web/constants/user-permissions";
// types
import { BaseListRoot } from "../base-list-root";
diff --git a/web/core/components/issues/issue-layouts/list/roots/profile-issues-root.tsx b/web/core/components/issues/issue-layouts/list/roots/profile-issues-root.tsx
index af3c65fe9b..0ebf46b502 100644
--- a/web/core/components/issues/issue-layouts/list/roots/profile-issues-root.tsx
+++ b/web/core/components/issues/issue-layouts/list/roots/profile-issues-root.tsx
@@ -2,9 +2,9 @@ import { FC } from "react";
import { observer } from "mobx-react";
// hooks
import { useParams } from "next/navigation";
+import { EUserPermissions, EUserPermissionsLevel } from "@plane/constants";
import { ProjectIssueQuickActions } from "@/components/issues";
import { useUserPermissions } from "@/hooks/store";
-import { EUserPermissions, EUserPermissionsLevel } from "@/plane-web/constants/user-permissions";
// components
// types
diff --git a/web/core/components/issues/issue-layouts/list/roots/project-root.tsx b/web/core/components/issues/issue-layouts/list/roots/project-root.tsx
index e6c27f277a..bb98b73e18 100644
--- a/web/core/components/issues/issue-layouts/list/roots/project-root.tsx
+++ b/web/core/components/issues/issue-layouts/list/roots/project-root.tsx
@@ -2,11 +2,11 @@ import { FC } from "react";
import { observer } from "mobx-react";
import { useParams } from "next/navigation";
// components
+import { EUserPermissions, EUserPermissionsLevel } from "@plane/constants";
import { ProjectIssueQuickActions } from "@/components/issues";
// hooks
import { useUserPermissions } from "@/hooks/store";
// plane web constants
-import { EUserPermissions, EUserPermissionsLevel } from "@/plane-web/constants/user-permissions";
// components
import { BaseListRoot } from "../base-list-root";
diff --git a/web/core/components/issues/issue-layouts/properties/all-properties.tsx b/web/core/components/issues/issue-layouts/properties/all-properties.tsx
index c23d305229..f3759c9308 100644
--- a/web/core/components/issues/issue-layouts/properties/all-properties.tsx
+++ b/web/core/components/issues/issue-layouts/properties/all-properties.tsx
@@ -7,6 +7,9 @@ import { useParams, usePathname } from "next/navigation";
// icons
import { CalendarCheck2, CalendarClock, Layers, Link, Paperclip } from "lucide-react";
// types
+import { ISSUE_UPDATED } from "@plane/constants";
+// i18n
+import { useTranslation } from "@plane/i18n";
import { TIssue, IIssueDisplayProperties, TIssuePriorities } from "@plane/types";
// ui
import { Tooltip } from "@plane/ui";
@@ -21,7 +24,6 @@ import {
StateDropdown,
} from "@/components/dropdowns";
// constants
-import { ISSUE_UPDATED } from "@/constants/event-tracker";
// helpers
import { cn } from "@/helpers/common.helper";
import { getDate, renderFormattedPayloadDate } from "@/helpers/date-time.helper";
@@ -47,6 +49,8 @@ export interface IIssueProperties {
export const IssueProperties: React.FC<IIssueProperties> = observer((props) => {
const { issue, updateIssue, displayProperties, activeLayout, isReadOnly, className, isEpic = false } = props;
+ // i18n
+ const { t } = useTranslation();
// store hooks
const { getProjectById } = useProject();
const { labelMap } = useLabel();
@@ -311,7 +315,7 @@ export const IssueProperties: React.FC<IIssueProperties> = observer((props) => {
value={issue.start_date ?? null}
onChange={handleStartDate}
maxDate={maxDate}
- placeholder="Start date"
+ placeholder={t("common.order_by.start_date")}
icon={<CalendarClock className="h-3 w-3 flex-shrink-0" />}
buttonVariant={issue.start_date ? "border-with-text" : "border-without-text"}
optionsClassName="z-10"
@@ -329,7 +333,7 @@ export const IssueProperties: React.FC<IIssueProperties> = observer((props) => {
value={issue?.target_date ?? null}
onChange={handleTargetDate}
minDate={minDate}
- placeholder="Due date"
+ placeholder={t("common.order_by.due_date")}
icon={<CalendarCheck2 className="h-3 w-3 flex-shrink-0" />}
buttonVariant={issue.target_date ? "border-with-text" : "border-without-text"}
buttonClassName={shouldHighlightIssueDueDate(issue.target_date, stateDetails?.group) ? "text-red-500" : ""}
@@ -354,7 +358,7 @@ export const IssueProperties: React.FC<IIssueProperties> = observer((props) => {
buttonVariant={issue.assignee_ids?.length > 0 ? "transparent-without-text" : "border-without-text"}
buttonClassName={issue.assignee_ids?.length > 0 ? "hover:bg-transparent px-0" : ""}
showTooltip={issue?.assignee_ids?.length === 0}
- placeholder="Assignees"
+ placeholder={t("common.assignees")}
optionsClassName="z-10"
tooltipContent=""
renderByDefault={isMobile}
@@ -431,7 +435,7 @@ export const IssueProperties: React.FC<IIssueProperties> = observer((props) => {
shouldRenderProperty={(properties) => !!properties.sub_issue_count && !!subIssueCount}
>
<Tooltip
- tooltipHeading={isEpic ? "Issues" : "Sub-issues"}
+ tooltipHeading={isEpic ? t("issues.label", { count: 2 }) : t("common.sub_work_items")}
tooltipContent={`${subIssueCount}`}
isMobile={isMobile}
renderByDefault={false}
@@ -463,7 +467,7 @@ export const IssueProperties: React.FC<IIssueProperties> = observer((props) => {
shouldRenderProperty={(properties) => !!properties.attachment_count && !!issue.attachment_count}
>
<Tooltip
- tooltipHeading="Attachments"
+ tooltipHeading={t("common.attachments")}
tooltipContent={`${issue.attachment_count}`}
isMobile={isMobile}
renderByDefault={false}
@@ -486,7 +490,7 @@ export const IssueProperties: React.FC<IIssueProperties> = observer((props) => {
shouldRenderProperty={(properties) => !!properties.link && !!issue.link_count}
>
<Tooltip
- tooltipHeading="Links"
+ tooltipHeading={t("common.links")}
tooltipContent={`${issue.link_count}`}
isMobile={isMobile}
renderByDefault={false}
diff --git a/web/core/components/issues/issue-layouts/properties/label-dropdown.tsx b/web/core/components/issues/issue-layouts/properties/label-dropdown.tsx
index 2cfc694191..68fe34ebf6 100644
--- a/web/core/components/issues/issue-layouts/properties/label-dropdown.tsx
+++ b/web/core/components/issues/issue-layouts/properties/label-dropdown.tsx
@@ -4,19 +4,18 @@ import { useParams } from "next/navigation";
import { usePopper } from "react-popper";
import { Check, ChevronDown, Loader, Search } from "lucide-react";
import { Combobox } from "@headlessui/react";
-// plane helper
+// plane imports
+import { EUserPermissionsLevel, EUserProjectRoles, getRandomLabelColor } from "@plane/constants";
import { useOutsideClickDetector } from "@plane/hooks";
+import { useTranslation } from "@plane/i18n";
// types
import { IIssueLabel } from "@plane/types";
// components
import { ComboDropDown } from "@plane/ui";
-// constants
-import { getRandomLabelColor } from "@/constants/label";
// hooks
import { useLabel, useUserPermissions } from "@/hooks/store";
import { useDropdownKeyDown } from "@/hooks/use-dropdown-key-down";
import { usePlatformOS } from "@/hooks/use-platform-os";
-import { EUserPermissions, EUserPermissionsLevel } from "@/plane-web/constants";
export interface ILabelDropdownProps {
projectId: string | null;
@@ -56,6 +55,7 @@ export const LabelDropdown = (props: ILabelDropdownProps) => {
fullHeight = false,
label,
} = props;
+ const { t } = useTranslation();
//router
const { workspaceSlug: routerWorkspaceSlug } = useParams();
@@ -81,7 +81,7 @@ export const LabelDropdown = (props: ILabelDropdownProps) => {
const storeLabels = getProjectLabels(projectId);
const { allowPermissions } = useUserPermissions();
- const canCreateLabel = allowPermissions([EUserPermissions.ADMIN], EUserPermissionsLevel.PROJECT);
+ const canCreateLabel = allowPermissions([EUserProjectRoles.ADMIN], EUserPermissionsLevel.PROJECT);
let projectLabels: IIssueLabel[] = defaultOptions;
if (storeLabels && storeLabels.length > 0) projectLabels = storeLabels;
@@ -237,14 +237,14 @@ export const LabelDropdown = (props: ILabelDropdownProps) => {
className="w-full bg-transparent px-2 py-1 text-xs text-custom-text-200 placeholder:text-custom-text-400 focus:outline-none"
value={query}
onChange={(e) => setQuery(e.target.value)}
- placeholder="Search"
+ placeholder={t("common.search.label")}
displayValue={(assigned: any) => assigned?.name || ""}
onKeyDown={searchInputKeyDown}
/>
</div>
<div className={`mt-2 max-h-48 space-y-1 overflow-y-scroll`}>
{isLoading ? (
- <p className="text-center text-custom-text-200">Loading...</p>
+ <p className="text-center text-custom-text-200">{t("common.loading")}</p>
) : filteredOptions.length > 0 ? (
filteredOptions.map((option) => (
<Combobox.Option
@@ -284,16 +284,17 @@ export const LabelDropdown = (props: ILabelDropdownProps) => {
}}
className={`text-left text-custom-text-200 ${query.length ? "cursor-pointer" : "cursor-default"}`}
>
+ {/* TODO: translate here */}
{query.length ? (
<>
+ Add <span className="text-custom-text-100">&quot;{query}&quot;</span> to labels
</>
) : (
- "Type to add a new label"
+ t("label.create.type")
)}
</p>
) : (
- <p className="text-left text-custom-text-200 ">No matching results.</p>
+ <p className="text-left text-custom-text-200 ">{t("common.search.no_matching_results")}</p>
)}
</div>
</div>
diff --git a/web/core/components/issues/issue-layouts/properties/labels.tsx b/web/core/components/issues/issue-layouts/properties/labels.tsx
index 25722abd6b..7c0ed4cd2e 100644
--- a/web/core/components/issues/issue-layouts/properties/labels.tsx
+++ b/web/core/components/issues/issue-layouts/properties/labels.tsx
@@ -6,6 +6,8 @@ import { observer } from "mobx-react";
import { Tags } from "lucide-react";
// plane helpers
import { useOutsideClickDetector } from "@plane/hooks";
+// i18n
+import { useTranslation } from "@plane/i18n";
// types
import { IIssueLabel } from "@plane/types";
// ui
@@ -54,6 +56,8 @@ export const IssuePropertyLabels: React.FC<IIssuePropertyLabels> = observer((pro
fullWidth = false,
fullHeight = false,
} = props;
+ // i18n
+ const { t } = useTranslation();
// states
const [isOpen, setIsOpen] = useState(false);
// refs
@@ -85,7 +89,13 @@ export const IssuePropertyLabels: React.FC<IIssuePropertyLabels> = observer((pro
const NoLabel = useMemo(
() => (
- <Tooltip position="top" tooltipHeading="Labels" tooltipContent="None" isMobile={isMobile} renderByDefault={false}>
+ <Tooltip
+ position="top"
+ tooltipHeading={t("common.labels")}
+ tooltipContent="None"
+ isMobile={isMobile}
+ renderByDefault={false}
+ >
<div
className={cn(
"flex h-full items-center justify-center gap-2 rounded px-2.5 py-1 text-xs hover:bg-custom-background-80",
@@ -114,7 +124,7 @@ export const IssuePropertyLabels: React.FC<IIssuePropertyLabels> = observer((pro
<Tooltip
isMobile={isMobile}
position="top"
- tooltipHeading="Labels"
+ tooltipHeading={t("common.labels")}
tooltipContent={projectLabels
?.filter((l) => value.includes(l?.id))
.map((l) => l?.name)
@@ -136,7 +146,7 @@ export const IssuePropertyLabels: React.FC<IIssuePropertyLabels> = observer((pro
<Tooltip
key={label.id}
position="top"
- tooltipHeading="Labels"
+ tooltipHeading={t("common.labels")}
tooltipContent={label?.name ?? ""}
isMobile={isMobile}
renderByDefault={renderByDefault}
diff --git a/web/core/components/issues/issue-layouts/quick-action-dropdowns/all-issue.tsx b/web/core/components/issues/issue-layouts/quick-action-dropdowns/all-issue.tsx
index f7bce8e721..32c62fac8d 100644
--- a/web/core/components/issues/issue-layouts/quick-action-dropdowns/all-issue.tsx
+++ b/web/core/components/issues/issue-layouts/quick-action-dropdowns/all-issue.tsx
@@ -6,14 +6,12 @@ import { observer } from "mobx-react";
import { useParams } from "next/navigation";
import { Copy, ExternalLink, Link, Pencil, Trash2 } from "lucide-react";
// types
-import { EIssuesStoreType } from "@plane/constants";
+import { ARCHIVABLE_STATE_GROUPS, EIssuesStoreType } from "@plane/constants";
import { TIssue } from "@plane/types";
// ui
import { ArchiveIcon, ContextMenu, CustomMenu, TContextMenuItem, TOAST_TYPE, setToast } from "@plane/ui";
// components
import { ArchiveIssueModal, CreateUpdateIssueModal, DeleteIssueModal } from "@/components/issues";
-// constants
-import { ARCHIVABLE_STATE_GROUPS } from "@/constants/state";
// helpers
import { cn } from "@/helpers/common.helper";
import { copyUrlToClipboard } from "@/helpers/string.helper";
@@ -59,7 +57,7 @@ export const AllIssueQuickActions: React.FC<IQuickActionProps> = observer((props
setToast({
type: TOAST_TYPE.SUCCESS,
title: "Link copied",
- message: "Issue link copied to clipboard",
+ message: "Work item link copied to clipboard",
})
);
@@ -109,7 +107,7 @@ export const AllIssueQuickActions: React.FC<IQuickActionProps> = observer((props
{
key: "archive",
title: "Archive",
- description: isInArchivableGroup ? undefined : "Only completed or canceled\nissues can be archived",
+ description: isInArchivableGroup ? undefined : "Only completed or canceled\nwork items can be archived",
icon: ArchiveIcon,
className: "items-start",
iconClassName: "mt-1",
diff --git a/web/core/components/issues/issue-layouts/quick-action-dropdowns/archived-issue.tsx b/web/core/components/issues/issue-layouts/quick-action-dropdowns/archived-issue.tsx
index 1428a3f0e5..6367fb785b 100644
--- a/web/core/components/issues/issue-layouts/quick-action-dropdowns/archived-issue.tsx
+++ b/web/core/components/issues/issue-layouts/quick-action-dropdowns/archived-issue.tsx
@@ -6,7 +6,7 @@ import { useParams } from "next/navigation";
// icons
import { ArchiveRestoreIcon, ExternalLink, Link, Trash2 } from "lucide-react";
// ui
-import { EIssuesStoreType } from "@plane/constants";
+import { EIssuesStoreType, EUserPermissions, EUserPermissionsLevel } from "@plane/constants";
import { ContextMenu, CustomMenu, TContextMenuItem, TOAST_TYPE, setToast } from "@plane/ui";
// components
import { DeleteIssueModal } from "@/components/issues";
@@ -16,7 +16,6 @@ import { cn } from "@/helpers/common.helper";
import { copyUrlToClipboard } from "@/helpers/string.helper";
// hooks
import { useEventTracker, useIssues, useUserPermissions } from "@/hooks/store";
-import { EUserPermissions, EUserPermissionsLevel } from "@/plane-web/constants/user-permissions";
// types
import { IQuickActionProps } from "../list/list-view-types";
@@ -55,7 +54,7 @@ export const ArchivedIssueQuickActions: React.FC<IQuickActionProps> = observer((
setToast({
type: TOAST_TYPE.SUCCESS,
title: "Link copied",
- message: "Issue link copied to clipboard",
+ message: "Work item link copied to clipboard",
})
);
const handleIssueRestore = async () => {
@@ -65,14 +64,14 @@ export const ArchivedIssueQuickActions: React.FC<IQuickActionProps> = observer((
setToast({
type: TOAST_TYPE.SUCCESS,
title: "Restore success",
- message: "Your issue can be found in project issues.",
+ message: "Your work item can be found in project work items.",
});
})
.catch(() => {
setToast({
type: TOAST_TYPE.ERROR,
title: "Error!",
- message: "Issue could not be restored. Please try again.",
+ message: "Work item could not be restored. Please try again.",
});
});
};
diff --git a/web/core/components/issues/issue-layouts/quick-action-dropdowns/cycle-issue.tsx b/web/core/components/issues/issue-layouts/quick-action-dropdowns/cycle-issue.tsx
index dff81f55f2..15ebccc1f0 100644
--- a/web/core/components/issues/issue-layouts/quick-action-dropdowns/cycle-issue.tsx
+++ b/web/core/components/issues/issue-layouts/quick-action-dropdowns/cycle-issue.tsx
@@ -6,20 +6,17 @@ import { observer } from "mobx-react";
import { useParams } from "next/navigation";
import { Copy, ExternalLink, Link, Pencil, Trash2, XCircle } from "lucide-react";
// types
-import { EIssuesStoreType } from "@plane/constants";
+import { ARCHIVABLE_STATE_GROUPS, EIssuesStoreType, EUserPermissions, EUserPermissionsLevel } from "@plane/constants";
import { TIssue } from "@plane/types";
// ui
import { ArchiveIcon, ContextMenu, CustomMenu, TContextMenuItem, TOAST_TYPE, setToast } from "@plane/ui";
// components
import { ArchiveIssueModal, CreateUpdateIssueModal, DeleteIssueModal } from "@/components/issues";
-// constants
-import { ARCHIVABLE_STATE_GROUPS } from "@/constants/state";
// helpers
import { cn } from "@/helpers/common.helper";
import { copyUrlToClipboard } from "@/helpers/string.helper";
// hooks
import { useEventTracker, useIssues, useProjectState, useUserPermissions } from "@/hooks/store";
-import { EUserPermissions, EUserPermissionsLevel } from "@/plane-web/constants/user-permissions";
// types
import { IQuickActionProps } from "../list/list-view-types";
@@ -68,7 +65,7 @@ export const CycleIssueQuickActions: React.FC<IQuickActionProps> = observer((pro
setToast({
type: TOAST_TYPE.SUCCESS,
title: "Link copied",
- message: "Issue link copied to clipboard",
+ message: "Work item link copied to clipboard",
})
);
@@ -128,7 +125,7 @@ export const CycleIssueQuickActions: React.FC<IQuickActionProps> = observer((pro
{
key: "archive",
title: "Archive",
- description: isInArchivableGroup ? undefined : "Only completed or canceled\nissues can be archived",
+ description: isInArchivableGroup ? undefined : "Only completed or canceled\nwork items can be archived",
icon: ArchiveIcon,
className: "items-start",
iconClassName: "mt-1",
diff --git a/web/core/components/issues/issue-layouts/quick-action-dropdowns/draft-issue.tsx b/web/core/components/issues/issue-layouts/quick-action-dropdowns/draft-issue.tsx
index f9fd1ab1c5..0a18600660 100644
--- a/web/core/components/issues/issue-layouts/quick-action-dropdowns/draft-issue.tsx
+++ b/web/core/components/issues/issue-layouts/quick-action-dropdowns/draft-issue.tsx
@@ -6,7 +6,8 @@ import { observer } from "mobx-react";
// icons
import { Pencil, Trash2 } from "lucide-react";
// types
-import { EIssuesStoreType } from "@plane/constants";
+import { EIssuesStoreType,EUserPermissions, EUserPermissionsLevel } from "@plane/constants";
+import { useTranslation } from "@plane/i18n";
import { TIssue } from "@plane/types";
// ui
import { ContextMenu, CustomMenu, TContextMenuItem } from "@plane/ui";
@@ -17,7 +18,6 @@ import { CreateUpdateIssueModal, DeleteIssueModal } from "@/components/issues";
import { cn } from "@/helpers/common.helper";
// hooks
import { useEventTracker, useIssues, useUserPermissions } from "@/hooks/store";
-import { EUserPermissions, EUserPermissionsLevel } from "@/plane-web/constants/user-permissions";
// types
import { IQuickActionProps } from "../list/list-view-types";
@@ -40,6 +40,8 @@ export const DraftIssueQuickActions: React.FC<IQuickActionProps> = observer((pro
const { allowPermissions } = useUserPermissions();
const { setTrackElement } = useEventTracker();
const { issuesFilter } = useIssues(EIssuesStoreType.PROJECT);
+
+ const { t } = useTranslation();
// derived values
const activeLayout = `${issuesFilter.issueFilters?.displayFilters?.layout} layout`;
// auth
@@ -59,7 +61,7 @@ export const DraftIssueQuickActions: React.FC<IQuickActionProps> = observer((pro
const MENU_ITEMS: TContextMenuItem[] = [
{
key: "edit",
- title: "Edit",
+ title: "edit",
icon: Pencil,
action: () => {
setTrackElement(activeLayout);
@@ -70,7 +72,7 @@ export const DraftIssueQuickActions: React.FC<IQuickActionProps> = observer((pro
},
{
key: "delete",
- title: "Delete",
+ title: "delete",
icon: Trash2,
action: () => {
setTrackElement(activeLayout);
@@ -138,7 +140,7 @@ export const DraftIssueQuickActions: React.FC<IQuickActionProps> = observer((pro
>
{item.icon && <item.icon className={cn("h-3 w-3", item.iconClassName)} />}
<div>
- <h5>{item.title}</h5>
+ <h5>{t(item.title ?? "")}</h5>
{item.description && (
<p
className={cn("text-custom-text-300 whitespace-pre-line", {
diff --git a/web/core/components/issues/issue-layouts/quick-action-dropdowns/module-issue.tsx b/web/core/components/issues/issue-layouts/quick-action-dropdowns/module-issue.tsx
index c6c8e691ec..14de087470 100644
--- a/web/core/components/issues/issue-layouts/quick-action-dropdowns/module-issue.tsx
+++ b/web/core/components/issues/issue-layouts/quick-action-dropdowns/module-issue.tsx
@@ -6,20 +6,17 @@ import { observer } from "mobx-react";
import { useParams } from "next/navigation";
import { Copy, ExternalLink, Link, Pencil, Trash2, XCircle } from "lucide-react";
// types
-import { EIssuesStoreType } from "@plane/constants";
+import { ARCHIVABLE_STATE_GROUPS, EIssuesStoreType, EUserPermissions, EUserPermissionsLevel } from "@plane/constants";
import { TIssue } from "@plane/types";
// ui
import { ArchiveIcon, ContextMenu, CustomMenu, TContextMenuItem, TOAST_TYPE, setToast } from "@plane/ui";
// components
import { ArchiveIssueModal, CreateUpdateIssueModal, DeleteIssueModal } from "@/components/issues";
-// constants
-import { ARCHIVABLE_STATE_GROUPS } from "@/constants/state";
// helpers
import { cn } from "@/helpers/common.helper";
import { copyUrlToClipboard } from "@/helpers/string.helper";
// hooks
import { useIssues, useEventTracker, useProjectState, useUserPermissions } from "@/hooks/store";
-import { EUserPermissions, EUserPermissionsLevel } from "@/plane-web/constants/user-permissions";
// types
import { IQuickActionProps } from "../list/list-view-types";
@@ -68,7 +65,7 @@ export const ModuleIssueQuickActions: React.FC<IQuickActionProps> = observer((pr
setToast({
type: TOAST_TYPE.SUCCESS,
title: "Link copied",
- message: "Issue link copied to clipboard",
+ message: "Work item link copied to clipboard",
})
);
@@ -125,7 +122,7 @@ export const ModuleIssueQuickActions: React.FC<IQuickActionProps> = observer((pr
{
key: "archive",
title: "Archive",
- description: isInArchivableGroup ? undefined : "Only completed or canceled\nissues can be archived",
+ description: isInArchivableGroup ? undefined : "Only completed or canceled\nwork items can be archived",
icon: ArchiveIcon,
className: "items-start",
iconClassName: "mt-1",
diff --git a/web/core/components/issues/issue-layouts/quick-action-dropdowns/project-issue.tsx b/web/core/components/issues/issue-layouts/quick-action-dropdowns/project-issue.tsx
index f9f5c88d7a..58d517d4bb 100644
--- a/web/core/components/issues/issue-layouts/quick-action-dropdowns/project-issue.tsx
+++ b/web/core/components/issues/issue-layouts/quick-action-dropdowns/project-issue.tsx
@@ -1,25 +1,23 @@
"use client";
-import { useState } from "react";
+import { useMemo, useState } from "react";
import omit from "lodash/omit";
import { observer } from "mobx-react";
import { useParams, usePathname } from "next/navigation";
import { Copy, ExternalLink, Link, Pencil, Trash2 } from "lucide-react";
+import { ARCHIVABLE_STATE_GROUPS, EIssuesStoreType, EUserPermissions, EUserPermissionsLevel } from "@plane/constants";
+import { useTranslation } from "@plane/i18n";
// types
-import { EIssuesStoreType } from "@plane/constants";
import { TIssue } from "@plane/types";
// ui
import { ArchiveIcon, ContextMenu, CustomMenu, TContextMenuItem, TOAST_TYPE, setToast } from "@plane/ui";
// components
import { ArchiveIssueModal, CreateUpdateIssueModal, DeleteIssueModal } from "@/components/issues";
-// constants
-import { ARCHIVABLE_STATE_GROUPS } from "@/constants/state";
// helpers
import { cn } from "@/helpers/common.helper";
import { copyUrlToClipboard } from "@/helpers/string.helper";
// hooks
import { useEventTracker, useIssues, useProjectState, useUserPermissions } from "@/hooks/store";
-import { EUserPermissions, EUserPermissionsLevel } from "@/plane-web/constants/user-permissions";
// types
import { IQuickActionProps } from "../list/list-view-types";
@@ -35,6 +33,8 @@ export const ProjectIssueQuickActions: React.FC<IQuickActionProps> = observer((p
placements = "bottom-end",
parentRef,
} = props;
+ // i18n
+ const { t } = useTranslation();
// router
const { workspaceSlug } = useParams();
const pathname = usePathname();
@@ -69,7 +69,7 @@ export const ProjectIssueQuickActions: React.FC<IQuickActionProps> = observer((p
setToast({
type: TOAST_TYPE.SUCCESS,
title: "Link copied",
- message: "Issue link copied to clipboard",
+ message: "Work item link copied to clipboard",
})
);
const handleOpenInNewTab = () => window.open(`/${issueLink}`, "_blank");
@@ -86,62 +86,65 @@ export const ProjectIssueQuickActions: React.FC<IQuickActionProps> = observer((p
["id"]
);
- const MENU_ITEMS: TContextMenuItem[] = [
- {
- key: "edit",
- title: "Edit",
- icon: Pencil,
- action: () => {
- setTrackElement(activeLayout);
- setIssueToEdit(issue);
- setCreateUpdateIssueModal(true);
+ const MENU_ITEMS: TContextMenuItem[] = useMemo(
+ () => [
+ {
+ key: "edit",
+ title: t("common.actions.edit"),
+ icon: Pencil,
+ action: () => {
+ setTrackElement(activeLayout);
+ setIssueToEdit(issue);
+ setCreateUpdateIssueModal(true);
+ },
+ shouldRender: isEditingAllowed,
},
- shouldRender: isEditingAllowed,
- },
- {
- key: "make-a-copy",
- title: "Make a copy",
- icon: Copy,
- action: () => {
- setTrackElement(activeLayout);
- setCreateUpdateIssueModal(true);
+ {
+ key: "make-a-copy",
+ title: t("common.actions.make_a_copy"),
+ icon: Copy,
+ action: () => {
+ setTrackElement(activeLayout);
+ setCreateUpdateIssueModal(true);
+ },
+ shouldRender: isEditingAllowed,
},
- shouldRender: isEditingAllowed,
- },
- {
- key: "open-in-new-tab",
- title: "Open in new tab",
- icon: ExternalLink,
- action: handleOpenInNewTab,
- },
- {
- key: "copy-link",
- title: "Copy link",
- icon: Link,
- action: handleCopyIssueLink,
- },
- {
- key: "archive",
- title: "Archive",
- description: isInArchivableGroup ? undefined : "Only completed or canceled\nissues can be archived",
- icon: ArchiveIcon,
- className: "items-start",
- iconClassName: "mt-1",
- action: () => setArchiveIssueModal(true),
- disabled: !isInArchivableGroup,
- shouldRender: isArchivingAllowed,
- },
- {
- key: "delete",
- title: "Delete",
- icon: Trash2,
- action: () => {
- setTrackElement(activeLayout);
- setDeleteIssueModal(true);
+ {
+ key: "open-in-new-tab",
+ title: t("common.actions.open_in_new_tab"),
+ icon: ExternalLink,
+ action: handleOpenInNewTab,
},
- shouldRender: isDeletingAllowed,
- },
- ];
+ {
+ key: "copy-link",
+ title: t("common.actions.copy_link"),
+ icon: Link,
+ action: handleCopyIssueLink,
+ },
+ {
+ key: "archive",
+ title: t("common.actions.archive"),
+ description: isInArchivableGroup ? undefined : t("issue.archive.description"),
+ icon: ArchiveIcon,
+ className: "items-start",
+ iconClassName: "mt-1",
+ action: () => setArchiveIssueModal(true),
+ disabled: !isInArchivableGroup,
+ shouldRender: isArchivingAllowed,
+ },
+ {
+ key: "delete",
+ title: t("common.actions.delete"),
+ icon: Trash2,
+ action: () => {
+ setTrackElement(activeLayout);
+ setDeleteIssueModal(true);
+ },
+ shouldRender: isDeletingAllowed,
+ },
+ ],
+ [t]
+ );
return (
<>
diff --git a/web/core/components/issues/issue-layouts/quick-add/button/gantt.tsx b/web/core/components/issues/issue-layouts/quick-add/button/gantt.tsx
index e9297abc9c..af96c0a91c 100644
--- a/web/core/components/issues/issue-layouts/quick-add/button/gantt.tsx
+++ b/web/core/components/issues/issue-layouts/quick-add/button/gantt.tsx
@@ -1,12 +1,13 @@
import { FC } from "react";
import { observer } from "mobx-react";
import { PlusIcon } from "lucide-react";
+import { useTranslation } from "@plane/i18n";
import { Row } from "@plane/ui";
import { TQuickAddIssueButton } from "../root";
export const GanttQuickAddIssueButton: FC<TQuickAddIssueButton> = observer((props) => {
const { onClick, isEpic = false } = props;
-
+ const { t } = useTranslation();
return (
<button
type="button"
@@ -15,7 +16,7 @@ export const GanttQuickAddIssueButton: FC<TQuickAddIssueButton> = observer((prop
>
<Row className="flex py-2 gap-2">
<PlusIcon className="h-3.5 w-3.5 stroke-2 my-auto" />
- <span className="text-sm font-medium">{`New ${isEpic ? "Epic" : "Issue"}`}</span>
+ <span className="text-sm font-medium">{t(`${isEpic ? "epic.new" : "issue.new"}`)}</span>
</Row>
</button>
);
diff --git a/web/core/components/issues/issue-layouts/quick-add/button/kanban.tsx b/web/core/components/issues/issue-layouts/quick-add/button/kanban.tsx
index 918ef33120..deadd9e4cc 100644
--- a/web/core/components/issues/issue-layouts/quick-add/button/kanban.tsx
+++ b/web/core/components/issues/issue-layouts/quick-add/button/kanban.tsx
@@ -1,18 +1,19 @@
import { FC } from "react";
import { observer } from "mobx-react";
import { PlusIcon } from "lucide-react";
+import { useTranslation } from "@plane/i18n";
import { TQuickAddIssueButton } from "../root";
export const KanbanQuickAddIssueButton: FC<TQuickAddIssueButton> = observer((props) => {
const { onClick, isEpic = false } = props;
-
+ const { t } = useTranslation();
return (
<div
className="flex w-full cursor-pointer items-center gap-2 py-1.5 text-custom-text-350 hover:text-custom-text-300"
onClick={onClick}
>
<PlusIcon className="h-3.5 w-3.5 stroke-2" />
- <span className="text-sm font-medium">{`New ${isEpic ? "Epic" : "Issue"}`}</span>
+ <span className="text-sm font-medium">{isEpic ? t("epic.new") : t("issue.new")}</span>
</div>
);
});
diff --git a/web/core/components/issues/issue-layouts/quick-add/button/list.tsx b/web/core/components/issues/issue-layouts/quick-add/button/list.tsx
index 3dcbf5990a..1b09e8e3c5 100644
--- a/web/core/components/issues/issue-layouts/quick-add/button/list.tsx
+++ b/web/core/components/issues/issue-layouts/quick-add/button/list.tsx
@@ -1,19 +1,20 @@
import { FC } from "react";
import { observer } from "mobx-react";
import { PlusIcon } from "lucide-react";
+import { useTranslation } from "@plane/i18n";
import { Row } from "@plane/ui";
import { TQuickAddIssueButton } from "../root";
export const ListQuickAddIssueButton: FC<TQuickAddIssueButton> = observer((props) => {
const { onClick, isEpic = false } = props;
-
+ const { t } = useTranslation();
return (
<Row
className="flex w-full cursor-pointer items-center gap-2 py-3 text-custom-text-350 hover:text-custom-text-300"
onClick={onClick}
>
<PlusIcon className="h-3.5 w-3.5 stroke-2" />
- <span className="text-sm font-medium">{`New ${isEpic ? "Epic" : "Issue"}`}</span>
+ <span className="text-sm font-medium">{isEpic ? t("epic.new") : t("issue.new")}</span>
</Row>
);
});
diff --git a/web/core/components/issues/issue-layouts/quick-add/button/spreadsheet.tsx b/web/core/components/issues/issue-layouts/quick-add/button/spreadsheet.tsx
index 170f891909..1a0bb7d465 100644
--- a/web/core/components/issues/issue-layouts/quick-add/button/spreadsheet.tsx
+++ b/web/core/components/issues/issue-layouts/quick-add/button/spreadsheet.tsx
@@ -1,11 +1,12 @@
import { FC } from "react";
import { observer } from "mobx-react";
import { PlusIcon } from "lucide-react";
+import { useTranslation } from "@plane/i18n";
import { TQuickAddIssueButton } from "../root";
export const SpreadsheetAddIssueButton: FC<TQuickAddIssueButton> = observer((props) => {
const { onClick, isEpic = false } = props;
-
+ const { t } = useTranslation();
return (
<div className="flex items-center">
<button
@@ -14,7 +15,7 @@ export const SpreadsheetAddIssueButton: FC<TQuickAddIssueButton> = observer((pro
onClick={onClick}
>
<PlusIcon className="h-3.5 w-3.5 stroke-2" />
- <span className="text-sm font-medium">{`New ${isEpic ? "Epic" : "Issue"}`}</span>
+ <span className="text-sm font-medium">{isEpic ? t("epic.add.label") : t("issue.add.label")}</span>
</button>
</div>
);
diff --git a/web/core/components/issues/issue-layouts/quick-add/form/calendar.tsx b/web/core/components/issues/issue-layouts/quick-add/form/calendar.tsx
index 8b8d108d5e..765a54af71 100644
--- a/web/core/components/issues/issue-layouts/quick-add/form/calendar.tsx
+++ b/web/core/components/issues/issue-layouts/quick-add/form/calendar.tsx
@@ -20,9 +20,9 @@ export const CalendarQuickAddIssueForm: FC<TQuickAddIssueForm> = observer((props
<input
type="text"
autoComplete="off"
- placeholder={isEpic ? "Epic Title" : "Issue Title"}
+ placeholder={isEpic ? "Epic Title" : "Work item Title"}
{...register("name", {
- required: `${isEpic ? "Epic" : "Issue"} title is required.`,
+ required: `${isEpic ? "Epic" : "Work item"} title is required.`,
})}
className="w-full rounded-md bg-transparent py-1.5 pr-2 text-sm md:text-xs font-medium leading-5 text-custom-text-200 outline-none"
/>
diff --git a/web/core/components/issues/issue-layouts/quick-add/form/gantt.tsx b/web/core/components/issues/issue-layouts/quick-add/form/gantt.tsx
index e9b7bb38d0..19f0476762 100644
--- a/web/core/components/issues/issue-layouts/quick-add/form/gantt.tsx
+++ b/web/core/components/issues/issue-layouts/quick-add/form/gantt.tsx
@@ -1,11 +1,12 @@
import { FC } from "react";
import { observer } from "mobx-react";
+import { useTranslation } from "@plane/i18n";
import { cn } from "@/helpers/common.helper";
import { TQuickAddIssueForm } from "../root";
export const GanttQuickAddIssueForm: FC<TQuickAddIssueForm> = observer((props) => {
const { ref, projectDetail, hasError, register, onSubmit, isEpic } = props;
-
+ const { t } = useTranslation();
return (
<div className={cn("shadow-custom-shadow-sm", hasError && "border border-red-500/20 bg-red-500/10")}>
<form
@@ -18,15 +19,17 @@ export const GanttQuickAddIssueForm: FC<TQuickAddIssueForm> = observer((props) =
<input
type="text"
autoComplete="off"
- placeholder={isEpic ? "Epic Title" : "Issue Title"}
+ placeholder={isEpic ? t("epic.title.label") : t("issue.title.label")}
{...register("name", {
- required: `${isEpic ? "Epic" : "Issue"} title is required.`,
+ required: isEpic ? t("epic.title.required") : t("issue.title.required"),
})}
className="w-full rounded-md bg-transparent px-2 py-3 text-sm font-medium leading-5 text-custom-text-200 outline-none"
/>
</div>
</form>
- <div className="px-3 py-2 text-xs bg-custom-background-100 italic text-custom-text-200">{`Press 'Enter' to add another ${isEpic ? "epic" : "issue"}`}</div>
+ <div className="px-3 py-2 text-xs bg-custom-background-100 italic text-custom-text-200">
+ {isEpic ? t("epic.add.press_enter") : t("issue.add.press_enter")}
+ </div>
</div>
);
});
diff --git a/web/core/components/issues/issue-layouts/quick-add/form/kanban.tsx b/web/core/components/issues/issue-layouts/quick-add/form/kanban.tsx
index 1f25be6e94..92e1811b3b 100644
--- a/web/core/components/issues/issue-layouts/quick-add/form/kanban.tsx
+++ b/web/core/components/issues/issue-layouts/quick-add/form/kanban.tsx
@@ -1,10 +1,11 @@
import { FC } from "react";
import { observer } from "mobx-react";
+import { useTranslation } from "@plane/i18n";
import { TQuickAddIssueForm } from "../root";
export const KanbanQuickAddIssueForm: FC<TQuickAddIssueForm> = observer((props) => {
const { ref, projectDetail, register, onSubmit, isEpic } = props;
-
+ const { t } = useTranslation();
return (
<div className="m-1 overflow-hidden rounded shadow-custom-shadow-sm">
<form ref={ref} onSubmit={onSubmit} className="flex w-full items-center gap-x-3 bg-custom-background-100 p-3">
@@ -12,15 +13,17 @@ export const KanbanQuickAddIssueForm: FC<TQuickAddIssueForm> = observer((props)
<h4 className="text-xs font-medium leading-5 text-custom-text-300">{projectDetail?.identifier ?? "..."}</h4>
<input
autoComplete="off"
- placeholder={isEpic ? "Epic Title" : "Issue Title"}
+ placeholder={isEpic ? t("epic.title.label") : t("issue.title.label")}
{...register("name", {
- required: "Issue title is required.",
+ required: isEpic ? t("epic.title.required") : t("issue.title.required"),
})}
className="w-full rounded-md bg-transparent px-2 py-1.5 pl-0 text-sm font-medium leading-5 text-custom-text-200 outline-none"
/>
</div>
</form>
- <div className="px-3 py-2 text-xs italic text-custom-text-200">{`Press 'Enter' to add another ${isEpic ? "epic" : "issue"}`}</div>
+ <div className="px-3 py-2 text-xs italic text-custom-text-200">
+ {isEpic ? t("epic.add.press_enter") : t("issue.add.press_enter")}
+ </div>
</div>
);
});
diff --git a/web/core/components/issues/issue-layouts/quick-add/form/list.tsx b/web/core/components/issues/issue-layouts/quick-add/form/list.tsx
index 75e2c8d3a9..a977a2918a 100644
--- a/web/core/components/issues/issue-layouts/quick-add/form/list.tsx
+++ b/web/core/components/issues/issue-layouts/quick-add/form/list.tsx
@@ -1,10 +1,11 @@
import { FC } from "react";
import { observer } from "mobx-react";
+import { useTranslation } from "@plane/i18n";
import { TQuickAddIssueForm } from "../root";
export const ListQuickAddIssueForm: FC<TQuickAddIssueForm> = observer((props) => {
const { ref, projectDetail, register, onSubmit, isEpic } = props;
-
+ const { t } = useTranslation();
return (
<div className="shadow-custom-shadow-sm">
<form
@@ -17,15 +18,17 @@ export const ListQuickAddIssueForm: FC<TQuickAddIssueForm> = observer((props) =>
<input
type="text"
autoComplete="off"
- placeholder={isEpic ? "Epic Title" : "Issue Title"}
+ placeholder={isEpic ? t("epic.title.label") : t("issue.title.label")}
{...register("name", {
- required: `${isEpic ? "Epic" : "Issue"} title is required.`,
+ required: isEpic ? t("epic.title.required") : t("issue.title.required"),
})}
className="w-full rounded-md bg-transparent px-2 py-3 text-sm font-medium leading-5 text-custom-text-200 outline-none"
/>
</div>
</form>
- <div className="px-3 py-2 text-xs italic text-custom-text-200">{`Press 'Enter' to add another ${isEpic ? "epic" : "issue"}`}</div>
+ <div className="px-3 py-2 text-xs italic text-custom-text-200">
+ {isEpic ? t("epic.add.press_enter") : t("issue.add.press_enter")}
+ </div>
</div>
);
});
diff --git a/web/core/components/issues/issue-layouts/quick-add/form/spreadsheet.tsx b/web/core/components/issues/issue-layouts/quick-add/form/spreadsheet.tsx
index 4918157c74..494f2c6360 100644
--- a/web/core/components/issues/issue-layouts/quick-add/form/spreadsheet.tsx
+++ b/web/core/components/issues/issue-layouts/quick-add/form/spreadsheet.tsx
@@ -1,10 +1,11 @@
import { FC } from "react";
import { observer } from "mobx-react";
+import { useTranslation } from "@plane/i18n";
import { TQuickAddIssueForm } from "../root";
export const SpreadsheetQuickAddIssueForm: FC<TQuickAddIssueForm> = observer((props) => {
const { ref, projectDetail, register, onSubmit, isEpic } = props;
-
+ const { t } = useTranslation();
return (
<div className="pb-2">
<form
@@ -16,15 +17,15 @@ export const SpreadsheetQuickAddIssueForm: FC<TQuickAddIssueForm> = observer((pr
<input
type="text"
autoComplete="off"
- placeholder={isEpic ? "Epic Title" : "Issue Title"}
+ placeholder={isEpic ? t("epic.title.label") : t("issue.title.label")}
{...register("name", {
- required: `${isEpic ? "Epic" : "Issue"} title is required.`,
+ required: isEpic ? t("epic.title.required") : t("issue.title.required"),
})}
className="w-full rounded-md bg-transparent py-3 text-sm leading-5 text-custom-text-200 outline-none"
/>
</form>
<p className="ml-3 mt-3 text-xs italic text-custom-text-200">
- {`Press Enter to add another ${isEpic ? "epic" : "issue"}`}
+ {isEpic ? t("epic.add.press_enter") : t("issue.add.press_enter")}
</p>
</div>
);
diff --git a/web/core/components/issues/issue-layouts/quick-add/root.tsx b/web/core/components/issues/issue-layouts/quick-add/root.tsx
index 73be7ef1fc..6bc6997a4c 100644
--- a/web/core/components/issues/issue-layouts/quick-add/root.tsx
+++ b/web/core/components/issues/issue-layouts/quick-add/root.tsx
@@ -6,15 +6,15 @@ import { useParams, usePathname } from "next/navigation";
import { useForm, UseFormRegister } from "react-hook-form";
import { PlusIcon } from "lucide-react";
// plane constants
-import { EIssueLayoutTypes, EIssueServiceType } from "@plane/constants";
-// types
+import { EIssueLayoutTypes, EIssueServiceType, ISSUE_CREATED } from "@plane/constants";
+// i18n
+import { useTranslation } from "@plane/i18n";
import { IProject, TIssue } from "@plane/types";
// ui
import { setPromiseToast } from "@plane/ui";
// components
import { CreateIssueToastActionItems } from "@/components/issues";
// constants
-import { ISSUE_CREATED } from "@/constants/event-tracker";
// helpers
import { cn } from "@/helpers/common.helper";
import { createIssuePayload } from "@/helpers/issue.helper";
@@ -66,6 +66,8 @@ export const QuickAddIssueRoot: FC<TQuickAddIssueRoot> = observer((props) => {
quickAddCallback,
isEpic = false,
} = props;
+ // i18n
+ const { t } = useTranslation();
// router
const { workspaceSlug, projectId } = useParams();
const pathname = usePathname();
@@ -113,11 +115,12 @@ export const QuickAddIssueRoot: FC<TQuickAddIssueRoot> = observer((props) => {
if (quickAddCallback) {
const quickAddPromise = quickAddCallback(projectId.toString(), { ...payload });
setPromiseToast<any>(quickAddPromise, {
- loading: `Adding ${isEpic ? "epic" : "issue"}...`,
+ loading: isEpic ? t("epic.adding") : t("issue.adding"),
success: {
- title: "Success!",
- message: () => `${isEpic ? "Epic" : "Issue"} created successfully.`,
+ title: t("common.success"),
+ message: () => `${isEpic ? t("epic.create.success") : t("issue.create.success")}`,
actionItems: (data) => (
+ // TODO: Translate here
<CreateIssueToastActionItems
workspaceSlug={workspaceSlug.toString()}
projectId={projectId.toString()}
@@ -127,8 +130,8 @@ export const QuickAddIssueRoot: FC<TQuickAddIssueRoot> = observer((props) => {
),
},
error: {
- title: "Error!",
- message: (err) => err?.message || "Some error occurred. Please try again.",
+ title: t("common.error.label"),
+ message: (err) => err?.message || t("common.error.message"),
},
});
@@ -182,7 +185,7 @@ export const QuickAddIssueRoot: FC<TQuickAddIssueRoot> = observer((props) => {
onClick={() => handleIsOpen(true)}
>
<PlusIcon className="h-3.5 w-3.5 stroke-2" />
- <span className="text-sm font-medium">{`New ${isEpic ? "Epic" : "Issue"}`}</span>
+ <span className="text-sm font-medium">{t(`${isEpic ? "epic.new" : "issue.new"}`)}</span>
</div>
)}
</>
diff --git a/web/core/components/issues/issue-layouts/roots/all-issue-layout-root.tsx b/web/core/components/issues/issue-layouts/roots/all-issue-layout-root.tsx
index c93a36316b..372c5605b5 100644
--- a/web/core/components/issues/issue-layouts/roots/all-issue-layout-root.tsx
+++ b/web/core/components/issues/issue-layouts/roots/all-issue-layout-root.tsx
@@ -4,7 +4,13 @@ import { observer } from "mobx-react";
import { useParams, useSearchParams } from "next/navigation";
import useSWR from "swr";
// plane constants
-import { ALL_ISSUES, EIssueLayoutTypes, EIssueFilterType, EIssuesStoreType } from "@plane/constants";
+import {
+ ALL_ISSUES,
+ EIssueLayoutTypes,
+ EIssueFilterType,
+ EIssuesStoreType,
+ ISSUE_DISPLAY_FILTERS_BY_PAGE
+,EUserPermissions, EUserPermissionsLevel } from "@plane/constants";
import { IIssueDisplayFilterOptions } from "@plane/types";
// hooks
// components
@@ -12,15 +18,12 @@ import { EmptyState } from "@/components/common";
import { SpreadsheetView } from "@/components/issues/issue-layouts";
import { AllIssueQuickActions } from "@/components/issues/issue-layouts/quick-action-dropdowns";
import { SpreadsheetLayoutLoader } from "@/components/ui";
-// constants
-import { ISSUE_DISPLAY_FILTERS_BY_LAYOUT } from "@/constants/issue";
// hooks
import { useGlobalView, useIssues, useUserPermissions } from "@/hooks/store";
import { useAppRouter } from "@/hooks/use-app-router";
import { IssuesStoreContext } from "@/hooks/use-issue-layout-store";
import { useIssuesActions } from "@/hooks/use-issues-actions";
import { useWorkspaceIssueProperties } from "@/hooks/use-workspace-issue-properties";
-import { EUserPermissions, EUserPermissionsLevel } from "@/plane-web/constants/user-permissions";
// store
import emptyView from "@/public/empty-state/view.svg";
import { IssuePeekOverview } from "../../peek-overview";
@@ -71,11 +74,7 @@ export const AllIssueLayoutRoot: React.FC<Props> = observer((props: Props) => {
Object.keys(routeFilters).forEach((key) => {
const filterKey: any = key;
const filterValue = routeFilters[key]?.toString() || undefined;
- if (
- ISSUE_DISPLAY_FILTERS_BY_LAYOUT.my_issues.spreadsheet.filters.includes(filterKey) &&
- filterKey &&
- filterValue
- )
+ if (ISSUE_DISPLAY_FILTERS_BY_PAGE.my_issues.spreadsheet.filters.includes(filterKey) && filterKey && filterValue)
issueFilters = { ...issueFilters, [filterKey]: filterValue.split(",") };
});
@@ -182,7 +181,7 @@ export const AllIssueLayoutRoot: React.FC<Props> = observer((props: Props) => {
title="View does not exist"
description="The view you are looking for does not exist or you don't have permission to view it."
primaryButton={{
- text: "Go to All Issues",
+ text: "Go to All work items",
onClick: () => router.push(`/${workspaceSlug}/workspace-views/all-issues`),
}}
/>
diff --git a/web/core/components/issues/issue-layouts/spreadsheet/base-spreadsheet-root.tsx b/web/core/components/issues/issue-layouts/spreadsheet/base-spreadsheet-root.tsx
index 377c8f96f9..f8d2f32c36 100644
--- a/web/core/components/issues/issue-layouts/spreadsheet/base-spreadsheet-root.tsx
+++ b/web/core/components/issues/issue-layouts/spreadsheet/base-spreadsheet-root.tsx
@@ -2,13 +2,12 @@ import { FC, useCallback, useEffect } from "react";
import { observer } from "mobx-react";
import { useParams } from "next/navigation";
// plane imports
-import { ALL_ISSUES, EIssueLayoutTypes, EIssuesStoreType, EIssueFilterType } from "@plane/constants";
+import { ALL_ISSUES, EIssueLayoutTypes, EIssuesStoreType, EIssueFilterType , EUserPermissions, EUserPermissionsLevel } from "@plane/constants";
import { IIssueDisplayFilterOptions } from "@plane/types";
// hooks
import { useIssues, useUserPermissions } from "@/hooks/store";
import { useIssueStoreType } from "@/hooks/use-issue-layout-store";
import { useIssuesActions } from "@/hooks/use-issues-actions";
-import { EUserPermissions, EUserPermissionsLevel } from "@/plane-web/constants/user-permissions";
// local imports
import { IssueLayoutHOC } from "../issue-layout-HOC";
import { IQuickActionProps, TRenderQuickActions } from "../list/list-view-types";
diff --git a/web/core/components/issues/issue-layouts/spreadsheet/columns/cycle-column.tsx b/web/core/components/issues/issue-layouts/spreadsheet/columns/cycle-column.tsx
index d4a7886a07..f9f17d4f5d 100644
--- a/web/core/components/issues/issue-layouts/spreadsheet/columns/cycle-column.tsx
+++ b/web/core/components/issues/issue-layouts/spreadsheet/columns/cycle-column.tsx
@@ -32,7 +32,7 @@ export const SpreadsheetCycleColumn: React.FC<Props> = observer((props) => {
if (cycleId) await addCycleToIssue(workspaceSlug.toString(), issue.project_id, cycleId, issue.id);
else await removeCycleFromIssue(workspaceSlug.toString(), issue.project_id, issue.id);
captureIssueEvent({
- eventName: "Issue updated",
+ eventName: "Work item updated",
payload: {
...issue,
cycle_id: cycleId,
diff --git a/web/core/components/issues/issue-layouts/spreadsheet/columns/header-column.tsx b/web/core/components/issues/issue-layouts/spreadsheet/columns/header-column.tsx
index 72020ccab6..0bda0c126a 100644
--- a/web/core/components/issues/issue-layouts/spreadsheet/columns/header-column.tsx
+++ b/web/core/components/issues/issue-layouts/spreadsheet/columns/header-column.tsx
@@ -1,14 +1,31 @@
"use client";
-
+import { FC } from "react";
//ui
-import { ArrowDownWideNarrow, ArrowUpNarrowWide, CheckIcon, ChevronDownIcon, Eraser, MoveRight } from "lucide-react";
+import {
+ ArrowDownWideNarrow,
+ ArrowUpNarrowWide,
+ CheckIcon,
+ ChevronDownIcon,
+ Eraser,
+ MoveRight,
+ CalendarDays,
+ Link2,
+ Signal,
+ Tag,
+ Triangle,
+ Paperclip,
+ CalendarCheck2,
+ CalendarClock,
+ Users,
+} from "lucide-react";
+// i18n
+import { useTranslation } from "@plane/i18n";
+// types
import { IIssueDisplayFilterOptions, IIssueDisplayProperties, TIssueOrderByOptions } from "@plane/types";
-import { CustomMenu, Row } from "@plane/ui";
-//hooks
-import { SPREADSHEET_PROPERTY_DETAILS } from "@/constants/spreadsheet";
+import { LayersIcon, DoubleCircleIcon, DiceIcon, ContrastIcon, CustomMenu, Row } from "@plane/ui";
+// ui
+import { ISvgIcons } from "@plane/ui/src/icons/type";
import useLocalStorage from "@/hooks/use-local-storage";
-//types
-//constants
interface Props {
property: keyof IIssueDisplayProperties;
@@ -18,9 +35,134 @@ interface Props {
isEpic?: boolean;
}
+export const SPREADSHEET_PROPERTY_DETAILS: {
+ [key in keyof IIssueDisplayProperties]: {
+ i18n_title: string;
+ ascendingOrderKey: TIssueOrderByOptions;
+ ascendingOrderTitle: string;
+ descendingOrderKey: TIssueOrderByOptions;
+ descendingOrderTitle: string;
+ icon: FC<ISvgIcons>;
+ };
+} = {
+ assignee: {
+ i18n_title: "common.assignees",
+ ascendingOrderKey: "assignees__first_name",
+ ascendingOrderTitle: "A",
+ descendingOrderKey: "-assignees__first_name",
+ descendingOrderTitle: "Z",
+ icon: Users,
+ },
+ created_on: {
+ i18n_title: "common.sort.created_on",
+ ascendingOrderKey: "-created_at",
+ ascendingOrderTitle: "New",
+ descendingOrderKey: "created_at",
+ descendingOrderTitle: "Old",
+ icon: CalendarDays,
+ },
+ due_date: {
+ i18n_title: "common.order_by.due_date",
+ ascendingOrderKey: "-target_date",
+ ascendingOrderTitle: "New",
+ descendingOrderKey: "target_date",
+ descendingOrderTitle: "Old",
+ icon: CalendarCheck2,
+ },
+ estimate: {
+ i18n_title: "common.estimate",
+ ascendingOrderKey: "estimate_point__key",
+ ascendingOrderTitle: "Low",
+ descendingOrderKey: "-estimate_point__key",
+ descendingOrderTitle: "High",
+ icon: Triangle,
+ },
+ labels: {
+ i18n_title: "common.labels",
+ ascendingOrderKey: "labels__name",
+ ascendingOrderTitle: "A",
+ descendingOrderKey: "-labels__name",
+ descendingOrderTitle: "Z",
+ icon: Tag,
+ },
+ modules: {
+ i18n_title: "common.modules",
+ ascendingOrderKey: "issue_module__module__name",
+ ascendingOrderTitle: "A",
+ descendingOrderKey: "-issue_module__module__name",
+ descendingOrderTitle: "Z",
+ icon: DiceIcon,
+ },
+ cycle: {
+ i18n_title: "common.cycle",
+ ascendingOrderKey: "issue_cycle__cycle__name",
+ ascendingOrderTitle: "A",
+ descendingOrderKey: "-issue_cycle__cycle__name",
+ descendingOrderTitle: "Z",
+ icon: ContrastIcon,
+ },
+ priority: {
+ i18n_title: "common.priority",
+ ascendingOrderKey: "priority",
+ ascendingOrderTitle: "None",
+ descendingOrderKey: "-priority",
+ descendingOrderTitle: "Urgent",
+ icon: Signal,
+ },
+ start_date: {
+ i18n_title: "common.order_by.start_date",
+ ascendingOrderKey: "-start_date",
+ ascendingOrderTitle: "New",
+ descendingOrderKey: "start_date",
+ descendingOrderTitle: "Old",
+ icon: CalendarClock,
+ },
+ state: {
+ i18n_title: "common.state",
+ ascendingOrderKey: "state__name",
+ ascendingOrderTitle: "A",
+ descendingOrderKey: "-state__name",
+ descendingOrderTitle: "Z",
+ icon: DoubleCircleIcon,
+ },
+ updated_on: {
+ i18n_title: "common.sort.updated_on",
+ ascendingOrderKey: "-updated_at",
+ ascendingOrderTitle: "New",
+ descendingOrderKey: "updated_at",
+ descendingOrderTitle: "Old",
+ icon: CalendarDays,
+ },
+ link: {
+ i18n_title: "common.link",
+ ascendingOrderKey: "-link_count",
+ ascendingOrderTitle: "Most",
+ descendingOrderKey: "link_count",
+ descendingOrderTitle: "Least",
+ icon: Link2,
+ },
+ attachment_count: {
+ i18n_title: "common.attachment",
+ ascendingOrderKey: "-attachment_count",
+ ascendingOrderTitle: "Most",
+ descendingOrderKey: "attachment_count",
+ descendingOrderTitle: "Least",
+ icon: Paperclip,
+ },
+ sub_issue_count: {
+ i18n_title: "issue.display.properties.sub_issue",
+ ascendingOrderKey: "-sub_issues_count",
+ ascendingOrderTitle: "Most",
+ descendingOrderKey: "sub_issues_count",
+ descendingOrderTitle: "Least",
+ icon: LayersIcon,
+ },
+};
+
export const HeaderColumn = (props: Props) => {
const { displayFilters, handleDisplayFilterUpdate, property, onClose, isEpic = false } = props;
-
+ // i18n
+ const { t } = useTranslation();
const { storedValue: selectedMenuItem, setValue: setSelectedMenuItem } = useLocalStorage(
"spreadsheetViewSorting",
""
@@ -38,6 +180,8 @@ export const HeaderColumn = (props: Props) => {
setActiveSortingProperty(order === "-created_at" ? "" : itemKey);
};
+ if (!propertyDetails) return null;
+
return (
<CustomMenu
customButtonClassName="clickable !w-full"
@@ -47,7 +191,7 @@ export const HeaderColumn = (props: Props) => {
<Row className="flex w-full cursor-pointer items-center justify-between gap-1.5 py-2 text-sm text-custom-text-200 hover:text-custom-text-100">
<div className="flex items-center gap-1.5">
{<propertyDetails.icon className="h-4 w-4 text-custom-text-400" />}
- {propertyDetails.title === "Sub-issue" && isEpic ? "Issues" : propertyDetails.title}
+ {property === "sub_issue_count" && isEpic ? t("issue.label", { count: 2 }) : t(propertyDetails.i18n_title)}
</div>
<div className="ml-3 flex">
{activeSortingProperty === property && (
@@ -116,7 +260,7 @@ export const HeaderColumn = (props: Props) => {
>
<div className="flex items-center gap-2 px-1">
<Eraser className="h-3 w-3" />
- <span>Clear sorting</span>
+ <span>{t("common.actions.clear_sorting")}</span>
</div>
</CustomMenu.MenuItem>
)}
diff --git a/web/core/components/issues/issue-layouts/spreadsheet/columns/module-column.tsx b/web/core/components/issues/issue-layouts/spreadsheet/columns/module-column.tsx
index a20948bf05..b95610cdd0 100644
--- a/web/core/components/issues/issue-layouts/spreadsheet/columns/module-column.tsx
+++ b/web/core/components/issues/issue-layouts/spreadsheet/columns/module-column.tsx
@@ -42,7 +42,7 @@ export const SpreadsheetModuleColumn: React.FC<Props> = observer((props) => {
changeModulesInIssue(workspaceSlug.toString(), issue.project_id, issue.id, modulesToAdd, modulesToRemove);
captureIssueEvent({
- eventName: "Issue updated",
+ eventName: "Work item updated",
payload: {
...issue,
module_ids: moduleIds,
diff --git a/web/core/components/issues/issue-layouts/spreadsheet/columns/sub-issue-column.tsx b/web/core/components/issues/issue-layouts/spreadsheet/columns/sub-issue-column.tsx
index b050655fa6..d193696699 100644
--- a/web/core/components/issues/issue-layouts/spreadsheet/columns/sub-issue-column.tsx
+++ b/web/core/components/issues/issue-layouts/spreadsheet/columns/sub-issue-column.tsx
@@ -28,7 +28,7 @@ export const SpreadsheetSubIssueColumn: React.FC<Props> = observer((props: Props
);
};
- const issueLabel = epicId ? "issue" : "sub-issue";
+ const issueLabel = epicId ? "work item" : "sub-work item";
const label = `${subIssueCount} ${issueLabel}${subIssueCount !== 1 ? "s" : ""}`;
return (
diff --git a/web/core/components/issues/issue-layouts/spreadsheet/issue-column.tsx b/web/core/components/issues/issue-layouts/spreadsheet/issue-column.tsx
index dcd8773a0f..b6addcc326 100644
--- a/web/core/components/issues/issue-layouts/spreadsheet/issue-column.tsx
+++ b/web/core/components/issues/issue-layouts/spreadsheet/issue-column.tsx
@@ -3,8 +3,23 @@ import { observer } from "mobx-react";
import { usePathname } from "next/navigation";
// types
import { IIssueDisplayProperties, TIssue } from "@plane/types";
-// constants
-import { SPREADSHEET_PROPERTY_DETAILS } from "@/constants/spreadsheet";
+// components
+import {
+ SpreadsheetAssigneeColumn,
+ SpreadsheetAttachmentColumn,
+ SpreadsheetCreatedOnColumn,
+ SpreadsheetDueDateColumn,
+ SpreadsheetEstimateColumn,
+ SpreadsheetLabelColumn,
+ SpreadsheetModuleColumn,
+ SpreadsheetCycleColumn,
+ SpreadsheetLinkColumn,
+ SpreadsheetPriorityColumn,
+ SpreadsheetStartDateColumn,
+ SpreadsheetStateColumn,
+ SpreadsheetSubIssueColumn,
+ SpreadsheetUpdatedOnColumn,
+} from "@/components/issues/issue-layouts/spreadsheet";
// hooks
import { useEventTracker } from "@/hooks/store";
// components
@@ -19,6 +34,30 @@ type Props = {
isEstimateEnabled: boolean;
};
+type TSpreadsheetColumn = React.FC<{
+ issue: TIssue;
+ onClose: () => void;
+ onChange: (issue: TIssue, data: Partial<TIssue>, updates: any) => void;
+ disabled: boolean;
+}>;
+
+const SPREADSHEET_COLUMNS: { [key in keyof IIssueDisplayProperties]: TSpreadsheetColumn } = {
+ assignee: SpreadsheetAssigneeColumn,
+ created_on: SpreadsheetCreatedOnColumn,
+ due_date: SpreadsheetDueDateColumn,
+ estimate: SpreadsheetEstimateColumn,
+ labels: SpreadsheetLabelColumn,
+ modules: SpreadsheetModuleColumn,
+ cycle: SpreadsheetCycleColumn,
+ link: SpreadsheetLinkColumn,
+ priority: SpreadsheetPriorityColumn,
+ start_date: SpreadsheetStartDateColumn,
+ state: SpreadsheetStateColumn,
+ sub_issue_count: SpreadsheetSubIssueColumn,
+ updated_on: SpreadsheetUpdatedOnColumn,
+ attachment_count: SpreadsheetAttachmentColumn,
+};
+
export const IssueColumn = observer((props: Props) => {
const { displayProperties, issueDetail, disableUserActions, property, updateIssue, isEstimateEnabled } = props;
// router
@@ -28,7 +67,9 @@ export const IssueColumn = observer((props: Props) => {
const shouldRenderProperty = property === "estimate" ? isEstimateEnabled : true;
- const { Column } = SPREADSHEET_PROPERTY_DETAILS[property];
+ const Column = SPREADSHEET_COLUMNS[property];
+
+ if (!Column) return null;
return (
<WithDisplayPropertiesHOC
diff --git a/web/core/components/issues/issue-layouts/spreadsheet/issue-row.tsx b/web/core/components/issues/issue-layouts/spreadsheet/issue-row.tsx
index 0ce6465512..b801904c58 100644
--- a/web/core/components/issues/issue-layouts/spreadsheet/issue-row.tsx
+++ b/web/core/components/issues/issue-layouts/spreadsheet/issue-row.tsx
@@ -4,7 +4,7 @@ import { Dispatch, MouseEvent, MutableRefObject, SetStateAction, useRef, useStat
import { observer } from "mobx-react";
import { useParams } from "next/navigation";
import { ChevronRight, MoreHorizontal } from "lucide-react";
-import { EIssueServiceType } from "@plane/constants";
+import { EIssueServiceType, SPREADSHEET_SELECT_GROUP } from "@plane/constants";
// plane helpers
import { useOutsideClickDetector } from "@plane/hooks";
// types
@@ -14,8 +14,6 @@ import { ControlLink, Row, Tooltip } from "@plane/ui";
// components
import { MultipleSelectEntityAction } from "@/components/core";
import RenderIfVisible from "@/components/core/render-if-visible-HOC";
-// constants
-import { SPREADSHEET_SELECT_GROUP } from "@/constants/spreadsheet";
// helper
import { cn } from "@/helpers/common.helper";
// hooks
@@ -270,7 +268,7 @@ const IssueRowDetails = observer((props: IssueRowDetailsProps) => {
<Tooltip
tooltipContent={
<>
- Only issues within the current
+ Only work items within the current
<br />
project can be selected.
</>
diff --git a/web/core/components/issues/issue-layouts/spreadsheet/roots/cycle-root.tsx b/web/core/components/issues/issue-layouts/spreadsheet/roots/cycle-root.tsx
index cf0f92bdf2..707a114ce7 100644
--- a/web/core/components/issues/issue-layouts/spreadsheet/roots/cycle-root.tsx
+++ b/web/core/components/issues/issue-layouts/spreadsheet/roots/cycle-root.tsx
@@ -2,8 +2,8 @@ import React, { useCallback } from "react";
import { observer } from "mobx-react";
import { useParams } from "next/navigation";
// hooks
+import { EUserPermissions, EUserPermissionsLevel } from "@plane/constants";
import { useCycle, useUserPermissions } from "@/hooks/store";
-import { EUserPermissions, EUserPermissionsLevel } from "@/plane-web/constants/user-permissions";
// components
import { CycleIssueQuickActions } from "../../quick-action-dropdowns";
import { BaseSpreadsheetRoot } from "../base-spreadsheet-root";
diff --git a/web/core/components/issues/issue-layouts/spreadsheet/roots/project-root.tsx b/web/core/components/issues/issue-layouts/spreadsheet/roots/project-root.tsx
index e9f2dabc04..d79059863d 100644
--- a/web/core/components/issues/issue-layouts/spreadsheet/roots/project-root.tsx
+++ b/web/core/components/issues/issue-layouts/spreadsheet/roots/project-root.tsx
@@ -2,11 +2,11 @@ import React from "react";
import { observer } from "mobx-react";
import { useParams } from "next/navigation";
// components
+import { EUserPermissions, EUserPermissionsLevel } from "@plane/constants";
import { ProjectIssueQuickActions } from "@/components/issues";
// hooks
import { useUserPermissions } from "@/hooks/store";
// plane web constants
-import { EUserPermissions, EUserPermissionsLevel } from "@/plane-web/constants/user-permissions";
// local components
import { BaseSpreadsheetRoot } from "../base-spreadsheet-root";
diff --git a/web/core/components/issues/issue-layouts/spreadsheet/spreadsheet-header.tsx b/web/core/components/issues/issue-layouts/spreadsheet/spreadsheet-header.tsx
index 7b67209896..d58fc26544 100644
--- a/web/core/components/issues/issue-layouts/spreadsheet/spreadsheet-header.tsx
+++ b/web/core/components/issues/issue-layouts/spreadsheet/spreadsheet-header.tsx
@@ -1,13 +1,13 @@
import { observer } from "mobx-react";
import { useParams } from "next/navigation";
+// constants
+import { SPREADSHEET_SELECT_GROUP } from "@plane/constants";
// ui
import { IIssueDisplayFilterOptions, IIssueDisplayProperties } from "@plane/types";
// components
import { Row } from "@plane/ui";
import { MultipleSelectGroupAction } from "@/components/core";
import { SpreadsheetHeaderColumn } from "@/components/issues/issue-layouts";
-// constants
-import { SPREADSHEET_SELECT_GROUP } from "@/constants/spreadsheet";
// helpers
import { cn } from "@/helpers/common.helper";
// hooks
@@ -64,7 +64,7 @@ export const SpreadsheetHeader = observer((props: Props) => {
/>
</div>
)}
- <span className="flex h-full w-full flex-grow items-center py-2.5">{`${isEpic ? "Epics" : "Issues"}`}</span>
+ <span className="flex h-full w-full flex-grow items-center py-2.5">{`${isEpic ? "Epics" : "Work items"}`}</span>
</Row>
</th>
diff --git a/web/core/components/issues/issue-layouts/spreadsheet/spreadsheet-view.tsx b/web/core/components/issues/issue-layouts/spreadsheet/spreadsheet-view.tsx
index d7ac791af1..230bb5a2b7 100644
--- a/web/core/components/issues/issue-layouts/spreadsheet/spreadsheet-view.tsx
+++ b/web/core/components/issues/issue-layouts/spreadsheet/spreadsheet-view.tsx
@@ -1,14 +1,13 @@
import React, { useRef } from "react";
import { observer } from "mobx-react";
// plane constants
-import { EIssueLayoutTypes } from "@plane/constants";
+import { EIssueLayoutTypes, SPREADSHEET_SELECT_GROUP } from "@plane/constants";
// types
import { TIssue, IIssueDisplayFilterOptions, IIssueDisplayProperties } from "@plane/types";
// components
import { LogoSpinner } from "@/components/common";
import { MultipleSelectGroup } from "@/components/core";
import { QuickAddIssueRoot, SpreadsheetAddIssueButton } from "@/components/issues";
-import { SPREADSHEET_PROPERTY_LIST, SPREADSHEET_SELECT_GROUP } from "@/constants/spreadsheet";
// hooks
import { useProject } from "@/hooks/store";
// plane web components
@@ -19,6 +18,23 @@ import { useBulkOperationStatus } from "@/plane-web/hooks/use-bulk-operation-sta
import { TRenderQuickActions } from "../list/list-view-types";
import { SpreadsheetTable } from "./spreadsheet-table";
+const SPREADSHEET_PROPERTY_LIST: (keyof IIssueDisplayProperties)[] = [
+ "state",
+ "priority",
+ "assignee",
+ "labels",
+ "modules",
+ "cycle",
+ "start_date",
+ "due_date",
+ "estimate",
+ "created_on",
+ "updated_on",
+ "link",
+ "attachment_count",
+ "sub_issue_count",
+];
+
type Props = {
displayProperties: IIssueDisplayProperties;
displayFilters: IIssueDisplayFilterOptions;
diff --git a/web/core/components/issues/issue-layouts/utils.tsx b/web/core/components/issues/issue-layouts/utils.tsx
index 77d8ae1922..8f2e9b5319 100644
--- a/web/core/components/issues/issue-layouts/utils.tsx
+++ b/web/core/components/issues/issue-layouts/utils.tsx
@@ -11,7 +11,7 @@ import uniq from "lodash/uniq";
import scrollIntoView from "smooth-scroll-into-view-if-needed";
import { ContrastIcon } from "lucide-react";
// plane types
-import { EIssuesStoreType } from "@plane/constants";
+import { EIssuesStoreType, ISSUE_PRIORITIES, STATE_GROUPS } from "@plane/constants";
import {
GroupByColumnTypes,
IGroupByColumn,
@@ -30,9 +30,6 @@ import {
import { Avatar, CycleGroupIcon, DiceIcon, PriorityIcon, StateGroupIcon } from "@plane/ui";
// components
import { Logo } from "@/components/common";
-// constants
-import { ISSUE_PRIORITIES } from "@/constants/issue";
-import { STATE_GROUPS } from "@/constants/state";
// helpers
import { renderFormattedDate } from "@/helpers/date-time.helper";
import { getFileURL } from "@/helpers/file.helper";
@@ -85,7 +82,7 @@ export const getGroupByColumns = ({
return [
{
id: "All Issues",
- name: isEpic ? "All Epics" : "All Issues",
+ name: `All ${isEpic ? "Epics" : "work items"}`,
payload: {},
icon: undefined,
},
@@ -154,7 +151,7 @@ const getCycleColumns = (): IGroupByColumn[] | undefined => {
icon: <CycleGroupIcon cycleGroup={cycleStatus as TCycleGroups} className="h-3.5 w-3.5" />,
payload: { cycle_id: cycle.id },
isDropDisabled,
- dropErrorMessage: isDropDisabled ? "Issue cannot be moved to completed cycles" : undefined,
+ dropErrorMessage: isDropDisabled ? "Work item cannot be moved to completed cycles" : undefined,
});
});
cycles.push({
@@ -710,4 +707,4 @@ export const getBlockViewDetails = (
message,
blockStyle,
};
-};
\ No newline at end of file
+};
diff --git a/web/core/components/issues/issue-modal/base.tsx b/web/core/components/issues/issue-modal/base.tsx
index 30e31e9f5c..22723a8608 100644
--- a/web/core/components/issues/issue-modal/base.tsx
+++ b/web/core/components/issues/issue-modal/base.tsx
@@ -3,7 +3,7 @@
import React, { useEffect, useRef, useState } from "react";
import { observer } from "mobx-react";
import { useParams, usePathname } from "next/navigation";
-import { EIssuesStoreType } from "@plane/constants";
+import { EIssuesStoreType, ISSUE_CREATED, ISSUE_UPDATED } from "@plane/constants";
import { useTranslation } from "@plane/i18n";
// types
import type { TBaseIssue, TIssue } from "@plane/types";
@@ -11,7 +11,6 @@ import type { TBaseIssue, TIssue } from "@plane/types";
import { EModalPosition, EModalWidth, ModalCore, TOAST_TYPE, setToast } from "@plane/ui";
import { CreateIssueToastActionItems, IssuesModalProps } from "@/components/issues";
// constants
-import { ISSUE_CREATED, ISSUE_UPDATED } from "@/constants/event-tracker";
// hooks
import { useIssueModal } from "@/hooks/context/use-issue-modal";
import { useEventTracker, useCycle, useIssues, useModule, useIssueDetail, useUser } from "@/hooks/store";
diff --git a/web/core/components/issues/issue-modal/components/default-properties.tsx b/web/core/components/issues/issue-modal/components/default-properties.tsx
index d422daece6..50c7251b47 100644
--- a/web/core/components/issues/issue-modal/components/default-properties.tsx
+++ b/web/core/components/issues/issue-modal/components/default-properties.tsx
@@ -4,6 +4,8 @@ import React, { useState } from "react";
import { observer } from "mobx-react";
import { Control, Controller } from "react-hook-form";
import { LayoutPanelTop } from "lucide-react";
+// plane imports
+import { ETabIndices, EUserPermissions, EUserPermissionsLevel } from "@plane/constants";
import { useTranslation } from "@plane/i18n";
// types
import { ISearchIssueResponse, TIssue } from "@plane/types";
@@ -21,8 +23,6 @@ import {
} from "@/components/dropdowns";
import { ParentIssuesListModal } from "@/components/issues";
import { IssueLabelSelect } from "@/components/issues/select";
-// constants
-import { ETabIndices } from "@/constants/tab-indices";
// helpers
import { getDate, renderFormattedPayloadDate } from "@/helpers/date-time.helper";
import { getTabIndex } from "@/helpers/tab-indices.helper";
@@ -31,7 +31,6 @@ import { useProjectEstimates, useProject, useUserPermissions } from "@/hooks/sto
import { usePlatformOS } from "@/hooks/use-platform-os";
// plane web components
import { IssueIdentifier } from "@/plane-web/components/issues";
-import { EUserPermissions, EUserPermissionsLevel } from "@/plane-web/constants/user-permissions";
type TIssueDefaultPropertiesProps = {
control: Control<TIssue>;
@@ -211,7 +210,7 @@ export const IssueDefaultProperties: React.FC<TIssueDefaultPropertiesProps> = ob
onChange(cycleId);
handleFormChange();
}}
- placeholder={t("cycle")}
+ placeholder={t("cycle.label", { count: 1 })}
value={value}
buttonVariant="border-with-text"
tabIndex={getIndex("cycle_id")}
diff --git a/web/core/components/issues/issue-modal/components/description-editor.tsx b/web/core/components/issues/issue-modal/components/description-editor.tsx
index 8fc7b115b6..963779c7d0 100644
--- a/web/core/components/issues/issue-modal/components/description-editor.tsx
+++ b/web/core/components/issues/issue-modal/components/description-editor.tsx
@@ -4,8 +4,12 @@ import React, { useEffect, useState } from "react";
import { observer } from "mobx-react";
import { Control, Controller } from "react-hook-form";
import { Sparkle } from "lucide-react";
+// plane imports
+import { ETabIndices } from "@plane/constants";
// editor
import { EditorRefApi } from "@plane/editor";
+// i18n
+import { useTranslation } from "@plane/i18n";
// types
import { TIssue } from "@plane/types";
import { EFileAssetType } from "@plane/types/src/enums";
@@ -14,10 +18,8 @@ import { Loader, setToast, TOAST_TYPE } from "@plane/ui";
// components
import { GptAssistantPopover } from "@/components/core";
import { RichTextEditor } from "@/components/editor";
-// constants
-import { ETabIndices } from "@/constants/tab-indices";
// helpers
-import { getDescriptionPlaceholder } from "@/helpers/issue.helper";
+import { getDescriptionPlaceholderI18n } from "@/helpers/issue.helper";
import { getTabIndex } from "@/helpers/tab-indices.helper";
// hooks
import { useInstance, useWorkspace } from "@/hooks/store";
@@ -72,6 +74,8 @@ export const IssueDescriptionEditor: React.FC<TIssueDescriptionEditorProps> = ob
onAssetUpload,
onClose,
} = props;
+ // i18n
+ const { t } = useTranslation();
// states
const [iAmFeelingLucky, setIAmFeelingLucky] = useState(false);
// store hooks
@@ -117,7 +121,7 @@ export const IssueDescriptionEditor: React.FC<TIssueDescriptionEditorProps> = ob
aiService
.createGptTask(workspaceSlug.toString(), {
prompt: issueName,
- task: "Generate a proper description for this issue.",
+ task: "Generate a proper description for this work item.",
})
.then((res) => {
if (res.response === "")
@@ -125,7 +129,7 @@ export const IssueDescriptionEditor: React.FC<TIssueDescriptionEditorProps> = ob
type: TOAST_TYPE.ERROR,
title: "Error!",
message:
- "Issue title isn't informative enough to generate the description. Please try with a different title.",
+ "Work item title isn't informative enough to generate the description. Please try with a different title.",
});
else handleAiAssistance(res.response_html);
})
@@ -190,7 +194,7 @@ export const IssueDescriptionEditor: React.FC<TIssueDescriptionEditorProps> = ob
onEnterKeyPress={() => submitBtnRef?.current?.click()}
ref={editorRef}
tabIndex={getIndex("description_html")}
- placeholder={getDescriptionPlaceholder}
+ placeholder={(isFocused, description) => t(getDescriptionPlaceholderI18n(isFocused, description))}
searchMentionCallback={async (payload) =>
await workspaceService.searchEntity(workspaceSlug?.toString() ?? "", {
...payload,
diff --git a/web/core/components/issues/issue-modal/components/parent-tag.tsx b/web/core/components/issues/issue-modal/components/parent-tag.tsx
index 1ef97ba3b5..583bc850b5 100644
--- a/web/core/components/issues/issue-modal/components/parent-tag.tsx
+++ b/web/core/components/issues/issue-modal/components/parent-tag.tsx
@@ -4,10 +4,10 @@ import React from "react";
import { observer } from "mobx-react";
import { Control, Controller } from "react-hook-form";
import { X } from "lucide-react";
+// plane imports
+import { ETabIndices } from "@plane/constants";
// types
import { ISearchIssueResponse, TIssue } from "@plane/types";
-// constants
-import { ETabIndices } from "@/constants/tab-indices";
// helpers
import { getTabIndex } from "@/helpers/tab-indices.helper";
// hooks
diff --git a/web/core/components/issues/issue-modal/components/project-select.tsx b/web/core/components/issues/issue-modal/components/project-select.tsx
index b63b32b769..29268b4adc 100644
--- a/web/core/components/issues/issue-modal/components/project-select.tsx
+++ b/web/core/components/issues/issue-modal/components/project-select.tsx
@@ -3,12 +3,12 @@
import React from "react";
import { observer } from "mobx-react";
import { Control, Controller } from "react-hook-form";
+// plane imports
+import { ETabIndices } from "@plane/constants";
// types
import { TIssue } from "@plane/types";
// components
import { ProjectDropdown } from "@/components/dropdowns";
-// constants
-import { ETabIndices } from "@/constants/tab-indices";
// helpers
import { shouldRenderProject } from "@/helpers/project.helper";
import { getTabIndex } from "@/helpers/tab-indices.helper";
diff --git a/web/core/components/issues/issue-modal/components/title-input.tsx b/web/core/components/issues/issue-modal/components/title-input.tsx
index 18e18b8036..d737329fb5 100644
--- a/web/core/components/issues/issue-modal/components/title-input.tsx
+++ b/web/core/components/issues/issue-modal/components/title-input.tsx
@@ -3,13 +3,13 @@
import React from "react";
import { observer } from "mobx-react";
import { Control, Controller, FieldErrors } from "react-hook-form";
+// plane imports
+import { ETabIndices } from "@plane/constants";
// types
import { useTranslation } from "@plane/i18n";
import { TIssue } from "@plane/types";
// ui
import { Input } from "@plane/ui";
-// constants
-import { ETabIndices } from "@/constants/tab-indices";
// helpers
import { getTabIndex } from "@/helpers/tab-indices.helper";
// hooks
diff --git a/web/core/components/issues/issue-modal/draft-issue-layout.tsx b/web/core/components/issues/issue-modal/draft-issue-layout.tsx
index e2c693acc4..0e714cca44 100644
--- a/web/core/components/issues/issue-modal/draft-issue-layout.tsx
+++ b/web/core/components/issues/issue-modal/draft-issue-layout.tsx
@@ -4,6 +4,7 @@ import React, { useState } from "react";
import isEmpty from "lodash/isEmpty";
import { observer } from "mobx-react";
import { useParams, usePathname } from "next/navigation";
+import { useTranslation } from "@plane/i18n";
// types
import type { TIssue } from "@plane/types";
// ui
@@ -35,6 +36,7 @@ export const DraftIssueLayout: React.FC<DraftIssueProps> = observer((props) => {
const { captureIssueEvent } = useEventTracker();
const { handleCreateUpdatePropertyValues } = useIssueModal();
const { createIssue } = useWorkspaceDraftIssues();
+ const { t } = useTranslation();
const handleClose = () => {
if (data?.id) {
@@ -80,11 +82,11 @@ export const DraftIssueLayout: React.FC<DraftIssueProps> = observer((props) => {
.then((res) => {
setToast({
type: TOAST_TYPE.SUCCESS,
- title: "Success!",
- message: "Draft created.",
+ title: `${t("success")}!`,
+ message: t("workspace_draft_issues.toasts.created.success"),
});
captureIssueEvent({
- eventName: "Draft issue created",
+ eventName: "Draft work item created",
payload: { ...res, state: "SUCCESS" },
path: pathname,
});
@@ -96,11 +98,11 @@ export const DraftIssueLayout: React.FC<DraftIssueProps> = observer((props) => {
.catch(() => {
setToast({
type: TOAST_TYPE.ERROR,
- title: "Error!",
- message: "Issue could not be created. Please try again.",
+ title: `${t("error")}!`,
+ message: t("workspace_draft_issues.toasts.created.error"),
});
captureIssueEvent({
- eventName: "Draft issue created",
+ eventName: "Draft work item created",
payload: { ...payload, state: "FAILED" },
path: pathname,
});
diff --git a/web/core/components/issues/issue-modal/form.tsx b/web/core/components/issues/issue-modal/form.tsx
index acc9c67e02..21fd4632c9 100644
--- a/web/core/components/issues/issue-modal/form.tsx
+++ b/web/core/components/issues/issue-modal/form.tsx
@@ -5,7 +5,7 @@ import { observer } from "mobx-react";
import { useParams } from "next/navigation";
import { useForm } from "react-hook-form";
// editor
-import { EIssuesStoreType } from "@plane/constants";
+import { ETabIndices, EIssuesStoreType } from "@plane/constants";
import { EditorRefApi } from "@plane/editor";
// i18n
import { useTranslation } from "@plane/i18n";
@@ -22,7 +22,6 @@ import {
IssueTitleInput,
} from "@/components/issues/issue-modal/components";
import { CreateLabelModal } from "@/components/labels";
-import { ETabIndices } from "@/constants/tab-indices";
// helpers
import { cn } from "@/helpers/common.helper";
import { getTextContent } from "@/helpers/editor.helper";
@@ -267,7 +266,7 @@ export const IssueFormRoot: FC<IssueFormProps> = observer((props) => {
setToast({
type: TOAST_TYPE.ERROR,
title: "Error!",
- message: "Failed to move issue to project. Please try again.",
+ message: "Failed to move work item to project. Please try again.",
});
} finally {
setIsMoving(false);
@@ -539,7 +538,7 @@ export const IssueFormRoot: FC<IssueFormProps> = observer((props) => {
onClick={handleMoveToProjects}
disabled={isMoving}
>
- Add to project
+ {t("add_to_project")}
</Button>
)}
</div>
diff --git a/web/core/components/issues/parent-issues-list-modal.tsx b/web/core/components/issues/parent-issues-list-modal.tsx
index 5d2d46caf6..30a10df6ba 100644
--- a/web/core/components/issues/parent-issues-list-modal.tsx
+++ b/web/core/components/issues/parent-issues-list-modal.tsx
@@ -6,6 +6,8 @@ import { useParams } from "next/navigation";
import { Rocket, Search } from "lucide-react";
// headless ui
import { Combobox, Dialog, Transition } from "@headlessui/react";
+// i18n
+import { useTranslation } from "@plane/i18n";
// types
import { ISearchIssueResponse } from "@plane/types";
// ui
@@ -44,6 +46,9 @@ export const ParentIssuesListModal: React.FC<Props> = ({
issueId,
searchEpic = false,
}) => {
+ // i18n
+ const { t } = useTranslation();
+
const [isLoading, setIsLoading] = useState(false);
const [searchTerm, setSearchTerm] = useState("");
const [issues, setIssues] = useState<ISearchIssueResponse[]>([]);
@@ -122,7 +127,7 @@ export const ParentIssuesListModal: React.FC<Props> = ({
/>
<Combobox.Input
className="h-12 w-full border-0 bg-transparent pl-11 pr-4 text-custom-text-100 outline-none placeholder:text-custom-text-400 focus:ring-0 sm:text-sm"
- placeholder="Type to search..."
+ placeholder={t("common.search.placeholder")}
value={searchTerm}
onChange={(e) => setSearchTerm(e.target.value)}
displayValue={() => ""}
diff --git a/web/core/components/issues/peek-overview/error.tsx b/web/core/components/issues/peek-overview/error.tsx
index a7bd984700..f0b8cec494 100644
--- a/web/core/components/issues/peek-overview/error.tsx
+++ b/web/core/components/issues/peek-overview/error.tsx
@@ -32,8 +32,8 @@ export const IssuePeekOverviewError: FC<TIssuePeekOverviewError> = (props) => {
<div className="w-full h-full">
<EmptyState
image={emptyIssue ?? undefined}
- title="Issue does not exist"
- description="The issue you are looking for does not exist, has been archived, or has been deleted."
+ title="Work item does not exist"
+ description="The work item you are looking for does not exist, has been archived, or has been deleted."
/>
</div>
</div>
diff --git a/web/core/components/issues/peek-overview/header.tsx b/web/core/components/issues/peek-overview/header.tsx
index 8484d9bc3d..801c3783af 100644
--- a/web/core/components/issues/peek-overview/header.tsx
+++ b/web/core/components/issues/peek-overview/header.tsx
@@ -4,6 +4,10 @@ import { FC } from "react";
import { observer } from "mobx-react";
import Link from "next/link";
import { ArchiveRestoreIcon, Link2, MoveDiagonal, MoveRight, Trash2 } from "lucide-react";
+// plane imports
+import { ARCHIVABLE_STATE_GROUPS } from "@plane/constants";
+// i18n
+import { useTranslation } from "@plane/i18n";
// types
import { TNameDescriptionLoader } from "@plane/types";
// ui
@@ -19,7 +23,6 @@ import {
} from "@plane/ui";
// components
import { IssueSubscription, NameDescriptionUpdateStatus } from "@/components/issues";
-import { ARCHIVABLE_STATE_GROUPS } from "@/constants/state";
// helpers
import { cn } from "@/helpers/common.helper";
import { copyUrlToClipboard } from "@/helpers/string.helper";
@@ -29,21 +32,21 @@ import { useIssueDetail, useProjectState, useUser } from "@/hooks/store";
import { usePlatformOS } from "@/hooks/use-platform-os";
export type TPeekModes = "side-peek" | "modal" | "full-screen";
-const PEEK_OPTIONS: { key: TPeekModes; icon: any; title: string }[] = [
+const PEEK_OPTIONS: { key: TPeekModes; icon: any; i18n_title: string }[] = [
{
key: "side-peek",
icon: SidePanelIcon,
- title: "Side Peek",
+ i18n_title: "common.side_peek ",
},
{
key: "modal",
icon: CenterPanelIcon,
- title: "Modal",
+ i18n_title: "common.modal",
},
{
key: "full-screen",
icon: FullScreenPanelIcon,
- title: "Full Screen",
+ i18n_title: "common.full_screen",
},
];
@@ -79,6 +82,7 @@ export const IssuePeekOverviewHeader: FC<PeekOverviewHeaderProps> = observer((pr
handleRestoreIssue,
isSubmitting,
} = props;
+ const { t } = useTranslation();
// store hooks
const { data: currentUser } = useUser();
const {
@@ -99,8 +103,8 @@ export const IssuePeekOverviewHeader: FC<PeekOverviewHeaderProps> = observer((pr
copyUrlToClipboard(issueLink).then(() => {
setToast({
type: TOAST_TYPE.SUCCESS,
- title: "Link Copied!",
- message: "Issue link copied to clipboard.",
+ title: t("common.link_copied"),
+ message: t("common.copied_to_clipboard"),
});
});
};
@@ -116,13 +120,13 @@ export const IssuePeekOverviewHeader: FC<PeekOverviewHeaderProps> = observer((pr
}`}
>
<div className="flex items-center gap-4">
- <Tooltip tooltipContent="Close the peek view" isMobile={isMobile}>
+ <Tooltip tooltipContent={t("common.close_peek_view")} isMobile={isMobile}>
<button onClick={removeRoutePeekId}>
<MoveRight className="h-4 w-4 text-custom-text-300 hover:text-custom-text-200" />
</button>
</Tooltip>
- <Tooltip tooltipContent="Open issue in full screen" isMobile={isMobile}>
+ <Tooltip tooltipContent={t("issue.open_in_full_screen")} isMobile={isMobile}>
<Link href={`/${issueLink}`} onClick={() => removeRoutePeekId()}>
<MoveDiagonal className="h-4 w-4 text-custom-text-300 hover:text-custom-text-200" />
</Link>
@@ -133,7 +137,7 @@ export const IssuePeekOverviewHeader: FC<PeekOverviewHeaderProps> = observer((pr
value={currentMode}
onChange={(val: any) => setPeekMode(val)}
customButton={
- <Tooltip tooltipContent="Toggle peek view layout" isMobile={isMobile}>
+ <Tooltip tooltipContent={t("common.toggle_peek_view_layout")} isMobile={isMobile}>
<button type="button" className="">
<currentMode.icon className="h-4 w-4 text-custom-text-300 hover:text-custom-text-200" />
</button>
@@ -150,7 +154,7 @@ export const IssuePeekOverviewHeader: FC<PeekOverviewHeaderProps> = observer((pr
}`}
>
<mode.icon className="-my-1 h-4 w-4 flex-shrink-0" />
- {mode.title}
+ {t(mode.i18n_title)}
</div>
</CustomSelect.Option>
))}
@@ -164,7 +168,7 @@ export const IssuePeekOverviewHeader: FC<PeekOverviewHeaderProps> = observer((pr
{currentUser && !isArchived && (
<IssueSubscription workspaceSlug={workspaceSlug} projectId={projectId} issueId={issueId} />
)}
- <Tooltip tooltipContent="Copy link" isMobile={isMobile}>
+ <Tooltip tooltipContent={t("common.actions.copy_link")} isMobile={isMobile}>
<button type="button" onClick={handleCopyText}>
<Link2 className="h-4 w-4 -rotate-45 text-custom-text-300 hover:text-custom-text-200" />
</button>
@@ -172,7 +176,7 @@ export const IssuePeekOverviewHeader: FC<PeekOverviewHeaderProps> = observer((pr
{isArchivingAllowed && (
<Tooltip
isMobile={isMobile}
- tooltipContent={isInArchivableGroup ? "Archive" : "Only completed or canceled issues can be archived"}
+ tooltipContent={isInArchivableGroup ? t("common.actions.archive") : t("issue.archive.description")}
>
<button
type="button"
@@ -190,14 +194,14 @@ export const IssuePeekOverviewHeader: FC<PeekOverviewHeaderProps> = observer((pr
</Tooltip>
)}
{isRestoringAllowed && (
- <Tooltip tooltipContent="Restore" isMobile={isMobile}>
+ <Tooltip tooltipContent={t("common.actions.restore")} isMobile={isMobile}>
<button type="button" onClick={handleRestoreIssue}>
<ArchiveRestoreIcon className="h-4 w-4 text-custom-text-300 hover:text-custom-text-200" />
</button>
</Tooltip>
)}
{!disabled && (
- <Tooltip tooltipContent="Delete" isMobile={isMobile}>
+ <Tooltip tooltipContent={t("common.actions.delete")} isMobile={isMobile}>
<button type="button" onClick={() => toggleDeleteIssueModal(issueId)}>
<Trash2 className="h-4 w-4 text-custom-text-300 hover:text-custom-text-200" />
</button>
diff --git a/web/core/components/issues/peek-overview/properties.tsx b/web/core/components/issues/peek-overview/properties.tsx
index d000c9b6fb..7d80f5a231 100644
--- a/web/core/components/issues/peek-overview/properties.tsx
+++ b/web/core/components/issues/peek-overview/properties.tsx
@@ -3,7 +3,8 @@
import { FC } from "react";
import { observer } from "mobx-react";
import { Signal, Tag, Triangle, LayoutPanelTop, CalendarClock, CalendarCheck2, Users, UserCircle2 } from "lucide-react";
-// hooks
+// i18n
+import { useTranslation } from "@plane/i18n";
// ui icons
import { DiceIcon, DoubleCircleIcon, ContrastIcon } from "@plane/ui";
// components
@@ -41,6 +42,7 @@ interface IPeekOverviewProperties {
export const PeekOverviewProperties: FC<IPeekOverviewProperties> = observer((props) => {
const { workspaceSlug, projectId, issueId, issueOperations, disabled } = props;
+ const { t } = useTranslation();
// store hooks
const { getProjectById } = useProject();
const {
@@ -64,14 +66,14 @@ export const PeekOverviewProperties: FC<IPeekOverviewProperties> = observer((pro
return (
<div>
- <h6 className="text-sm font-medium">Properties</h6>
+ <h6 className="text-sm font-medium">{t("common.properties")}</h6>
{/* TODO: render properties using a common component */}
<div className={`w-full space-y-2 mt-3 ${disabled ? "opacity-60" : ""}`}>
{/* state */}
<div className="flex w-full items-center gap-3 h-8">
<div className="flex items-center gap-1 w-1/4 flex-shrink-0 text-sm text-custom-text-300">
<DoubleCircleIcon className="h-4 w-4 flex-shrink-0" />
- <span>State</span>
+ <span>{t("common.state")}</span>
</div>
<StateDropdown
value={issue?.state_id}
@@ -91,14 +93,14 @@ export const PeekOverviewProperties: FC<IPeekOverviewProperties> = observer((pro
<div className="flex w-full items-center gap-3 h-8">
<div className="flex items-center gap-1 w-1/4 flex-shrink-0 text-sm text-custom-text-300">
<Users className="h-4 w-4 flex-shrink-0" />
- <span>Assignees</span>
+ <span>{t("common.assignees")}</span>
</div>
<MemberDropdown
value={issue?.assignee_ids ?? undefined}
onChange={(val) => issueOperations.update(workspaceSlug, projectId, issueId, { assignee_ids: val })}
disabled={disabled}
projectId={projectId}
- placeholder="Add assignees"
+ placeholder={t("issue.add.assignee")}
multiple
buttonVariant={issue?.assignee_ids?.length > 1 ? "transparent-without-text" : "transparent-with-text"}
className="w-3/4 flex-grow group"
@@ -114,7 +116,7 @@ export const PeekOverviewProperties: FC<IPeekOverviewProperties> = observer((pro
<div className="flex w-full items-center gap-3 h-8">
<div className="flex items-center gap-1 w-1/4 flex-shrink-0 text-sm text-custom-text-300">
<Signal className="h-4 w-4 flex-shrink-0" />
- <span>Priority</span>
+ <span>{t("common.priority")}</span>
</div>
<PriorityDropdown
value={issue?.priority}
@@ -132,7 +134,7 @@ export const PeekOverviewProperties: FC<IPeekOverviewProperties> = observer((pro
<div className="flex w-full items-center gap-3 h-8">
<div className="flex items-center gap-1 w-1/4 flex-shrink-0 text-sm text-custom-text-300">
<UserCircle2 className="h-4 w-4 flex-shrink-0" />
- <span>Created by</span>
+ <span>{t("common.created_by")}</span>
</div>
<div className="w-full h-full flex items-center gap-1.5 rounded px-2 py-0.5 text-sm justify-between cursor-not-allowed">
<ButtonAvatars
@@ -150,7 +152,7 @@ export const PeekOverviewProperties: FC<IPeekOverviewProperties> = observer((pro
<div className="flex w-full items-center gap-3 h-8">
<div className="flex items-center gap-1 w-1/4 flex-shrink-0 text-sm text-custom-text-300">
<CalendarClock className="h-4 w-4 flex-shrink-0" />
- <span>Start date</span>
+ <span>{t("common.order_by.start_date")}</span>
</div>
<DateDropdown
value={issue.start_date}
@@ -159,7 +161,7 @@ export const PeekOverviewProperties: FC<IPeekOverviewProperties> = observer((pro
start_date: val ? renderFormattedPayloadDate(val) : null,
})
}
- placeholder="Add start date"
+ placeholder={t("issue.add.start_date")}
buttonVariant="transparent-with-text"
maxDate={maxDate ?? undefined}
disabled={disabled}
@@ -177,7 +179,7 @@ export const PeekOverviewProperties: FC<IPeekOverviewProperties> = observer((pro
<div className="flex w-full items-center gap-3 h-8">
<div className="flex items-center gap-1 w-1/4 flex-shrink-0 text-sm text-custom-text-300">
<CalendarCheck2 className="h-4 w-4 flex-shrink-0" />
- <span>Due date</span>
+ <span>{t("common.order_by.due_date")}</span>
</div>
<DateDropdown
value={issue.target_date}
@@ -186,7 +188,7 @@ export const PeekOverviewProperties: FC<IPeekOverviewProperties> = observer((pro
target_date: val ? renderFormattedPayloadDate(val) : null,
})
}
- placeholder="Add due date"
+ placeholder={t("issue.add.due_date")}
buttonVariant="transparent-with-text"
minDate={minDate ?? undefined}
disabled={disabled}
@@ -208,7 +210,7 @@ export const PeekOverviewProperties: FC<IPeekOverviewProperties> = observer((pro
<div className="flex w-full items-center gap-3 h-8">
<div className="flex items-center gap-1 w-1/4 flex-shrink-0 text-sm text-custom-text-300">
<Triangle className="h-4 w-4 flex-shrink-0" />
- <span>Estimate</span>
+ <span>{t("common.estimate")}</span>
</div>
<EstimateDropdown
value={issue.estimate_point ?? undefined}
@@ -231,7 +233,7 @@ export const PeekOverviewProperties: FC<IPeekOverviewProperties> = observer((pro
<div className="flex w-full items-center gap-3 min-h-8 h-full">
<div className="flex items-center gap-1 w-1/4 flex-shrink-0 text-sm text-custom-text-300">
<DiceIcon className="h-4 w-4 flex-shrink-0" />
- <span>Modules</span>
+ <span>{t("common.modules")}</span>
</div>
<IssueModuleSelect
className="w-3/4 flex-grow"
@@ -248,7 +250,7 @@ export const PeekOverviewProperties: FC<IPeekOverviewProperties> = observer((pro
<div className="flex w-full items-center gap-3 h-8">
<div className="flex items-center gap-1 w-1/4 flex-shrink-0 text-sm text-custom-text-300">
<ContrastIcon className="h-4 w-4 flex-shrink-0" />
- <span>Cycle</span>
+ <span>{t("common.cycle")}</span>
</div>
<IssueCycleSelect
className="w-3/4 flex-grow"
@@ -265,7 +267,7 @@ export const PeekOverviewProperties: FC<IPeekOverviewProperties> = observer((pro
<div className="flex w-full items-center gap-3 h-8">
<div className="flex items-center gap-1 w-1/4 flex-shrink-0 text-sm text-custom-text-300">
<LayoutPanelTop className="h-4 w-4 flex-shrink-0" />
- <p>Parent</p>
+ <p>{t("common.parent")}</p>
</div>
<IssueParentSelect
className="w-3/4 flex-grow h-full"
@@ -281,7 +283,7 @@ export const PeekOverviewProperties: FC<IPeekOverviewProperties> = observer((pro
<div className="flex w-full items-center gap-3 min-h-8">
<div className="flex items-center gap-1 w-1/4 flex-shrink-0 text-sm text-custom-text-300">
<Tag className="h-4 w-4 flex-shrink-0" />
- <span>Labels</span>
+ <span>{t("common.labels")}</span>
</div>
<div className="flex w-full flex-col gap-3 truncate">
<IssueLabel workspaceSlug={workspaceSlug} projectId={projectId} issueId={issueId} disabled={disabled} />
diff --git a/web/core/components/issues/peek-overview/root.tsx b/web/core/components/issues/peek-overview/root.tsx
index e010d6717e..5ed6403bcb 100644
--- a/web/core/components/issues/peek-overview/root.tsx
+++ b/web/core/components/issues/peek-overview/root.tsx
@@ -4,19 +4,25 @@ import { FC, useEffect, useState, useMemo, useCallback } from "react";
import { observer } from "mobx-react";
import { usePathname } from "next/navigation";
// plane types
-import { EIssuesStoreType } from "@plane/constants";
+import {
+ EIssuesStoreType,
+ ISSUE_UPDATED,
+ ISSUE_DELETED,
+ ISSUE_ARCHIVED,
+ ISSUE_RESTORED,
+ EUserPermissions,
+ EUserPermissionsLevel,
+} from "@plane/constants";
+import { useTranslation } from "@plane/i18n";
import { TIssue } from "@plane/types";
// plane ui
import { TOAST_TYPE, setPromiseToast, setToast } from "@plane/ui";
// components
import { IssueView, TIssueOperations } from "@/components/issues";
// constants
-import { ISSUE_UPDATED, ISSUE_DELETED, ISSUE_ARCHIVED, ISSUE_RESTORED } from "@/constants/event-tracker";
// hooks
import { useEventTracker, useIssueDetail, useIssues, useUserPermissions } from "@/hooks/store";
import { useIssueStoreType } from "@/hooks/use-issue-layout-store";
-// plane web constants
-import { EUserPermissions, EUserPermissionsLevel } from "@/plane-web/constants/user-permissions";
interface IIssuePeekOverview {
embedIssue?: boolean;
@@ -32,6 +38,7 @@ export const IssuePeekOverview: FC<IIssuePeekOverview> = observer((props) => {
is_draft = false,
storeType: issueStoreFromProps,
} = props;
+ const { t } = useTranslation();
// router
const pathname = usePathname();
// store hook
@@ -92,9 +99,9 @@ export const IssuePeekOverview: FC<IIssuePeekOverview> = observer((props) => {
path: pathname,
});
setToast({
- title: "Error!",
+ title: t("toast.error"),
type: TOAST_TYPE.ERROR,
- message: "Issue update failed",
+ message: t("entity.update.failed", { entity: t("issue.label", { count: 1 }) }),
});
});
}
@@ -111,9 +118,9 @@ export const IssuePeekOverview: FC<IIssuePeekOverview> = observer((props) => {
});
} catch {
setToast({
- title: "Error!",
+ title: t("toast.error"),
type: TOAST_TYPE.ERROR,
- message: "Issue delete failed",
+ message: t("entity.delete.failed", { entity: t("issue.label", { count: 1 }) }),
});
captureIssueEvent({
eventName: ISSUE_DELETED,
@@ -144,8 +151,8 @@ export const IssuePeekOverview: FC<IIssuePeekOverview> = observer((props) => {
await restoreIssue(workspaceSlug, projectId, issueId);
setToast({
type: TOAST_TYPE.SUCCESS,
- title: "Restore success",
- message: "Your issue can be found in project issues.",
+ title: t("issue.restore.success.title"),
+ message: t("issue.restore.success.message"),
});
captureIssueEvent({
eventName: ISSUE_RESTORED,
@@ -155,8 +162,8 @@ export const IssuePeekOverview: FC<IIssuePeekOverview> = observer((props) => {
} catch {
setToast({
type: TOAST_TYPE.ERROR,
- title: "Error!",
- message: "Issue could not be restored. Please try again.",
+ title: t("toast.error"),
+ message: t("issue.restore.failed.message"),
});
captureIssueEvent({
eventName: ISSUE_RESTORED,
@@ -181,8 +188,8 @@ export const IssuePeekOverview: FC<IIssuePeekOverview> = observer((props) => {
} catch {
setToast({
type: TOAST_TYPE.ERROR,
- title: "Error!",
- message: "Issue could not be added to the cycle. Please try again.",
+ title: t("toast.error"),
+ message: t("issue.add.cycle.failed"),
});
captureIssueEvent({
eventName: ISSUE_UPDATED,
@@ -210,8 +217,8 @@ export const IssuePeekOverview: FC<IIssuePeekOverview> = observer((props) => {
} catch {
setToast({
type: TOAST_TYPE.ERROR,
- title: "Error!",
- message: "Issue could not be added to the cycle. Please try again.",
+ title: t("toast.error"),
+ message: t("issue.add.cycle.failed"),
});
captureIssueEvent({
eventName: ISSUE_UPDATED,
@@ -228,14 +235,14 @@ export const IssuePeekOverview: FC<IIssuePeekOverview> = observer((props) => {
try {
const removeFromCyclePromise = issues.removeIssueFromCycle(workspaceSlug, projectId, cycleId, issueId);
setPromiseToast(removeFromCyclePromise, {
- loading: "Removing issue from the cycle...",
+ loading: t("issue.remove.cycle.loading"),
success: {
- title: "Success!",
- message: () => "Issue removed from the cycle successfully.",
+ title: t("toast.success"),
+ message: () => t("issue.remove.cycle.success"),
},
error: {
- title: "Error!",
- message: () => "Issue could not be removed from the cycle. Please try again.",
+ title: t("toast.error"),
+ message: () => t("issue.remove.cycle.failed"),
},
});
await removeFromCyclePromise;
@@ -291,14 +298,14 @@ export const IssuePeekOverview: FC<IIssuePeekOverview> = observer((props) => {
try {
const removeFromModulePromise = issues.removeIssuesFromModule(workspaceSlug, projectId, moduleId, [issueId]);
setPromiseToast(removeFromModulePromise, {
- loading: "Removing issue from the module...",
+ loading: t("issue.remove.module.loading"),
success: {
- title: "Success!",
- message: () => "Issue removed from the module successfully.",
+ title: t("toast.success"),
+ message: () => t("issue.remove.module.success"),
},
error: {
- title: "Error!",
- message: () => "Issue could not be removed from the module. Please try again.",
+ title: t("toast.error"),
+ message: () => t("issue.remove.module.failed"),
},
});
await removeFromModulePromise;
diff --git a/web/core/components/issues/relations/issue-list-item.tsx b/web/core/components/issues/relations/issue-list-item.tsx
index bb669762ae..4860e315db 100644
--- a/web/core/components/issues/relations/issue-list-item.tsx
+++ b/web/core/components/issues/relations/issue-list-item.tsx
@@ -5,6 +5,7 @@ import { observer } from "mobx-react";
import { X, Pencil, Trash, Link as LinkIcon } from "lucide-react";
// Plane
import { EIssueServiceType } from "@plane/constants";
+import { useTranslation } from "@plane/i18n";
import { TIssue, TIssueServiceType } from "@plane/types";
import { ControlLink, CustomMenu, Tooltip } from "@plane/ui";
// components
@@ -40,6 +41,8 @@ export const RelationIssueListItem: FC<Props> = observer((props) => {
issueServiceType = EIssueServiceType.ISSUES,
} = props;
+ const { t } = useTranslation();
+
// store hooks
const {
issue: { getIssueById },
@@ -153,7 +156,7 @@ export const RelationIssueListItem: FC<Props> = observer((props) => {
<CustomMenu.MenuItem onClick={handleEditIssue}>
<div className="flex items-center gap-2">
<Pencil className="h-3.5 w-3.5" strokeWidth={2} />
- <span>Edit</span>
+ <span>{t("common.actions.edit")}</span>
</div>
</CustomMenu.MenuItem>
)}
@@ -161,7 +164,7 @@ export const RelationIssueListItem: FC<Props> = observer((props) => {
<CustomMenu.MenuItem onClick={handleCopyIssueLink}>
<div className="flex items-center gap-2">
<LinkIcon className="h-3.5 w-3.5" strokeWidth={2} />
- <span>Copy link</span>
+ <span>{t("common.actions.copy_link")}</span>
</div>
</CustomMenu.MenuItem>
@@ -169,7 +172,7 @@ export const RelationIssueListItem: FC<Props> = observer((props) => {
<CustomMenu.MenuItem onClick={handleRemoveRelation}>
<div className="flex items-center gap-2">
<X className="h-3.5 w-3.5" strokeWidth={2} />
- <span>Remove relation</span>
+ <span>{t("common.actions.remove_relation")}</span>
</div>
</CustomMenu.MenuItem>
)}
@@ -178,7 +181,7 @@ export const RelationIssueListItem: FC<Props> = observer((props) => {
<CustomMenu.MenuItem onClick={handleDeleteIssue}>
<div className="flex items-center gap-2">
<Trash className="h-3.5 w-3.5" strokeWidth={2} />
- <span>Delete</span>
+ <span>{t("common.actions.delete")}</span>
</div>
</CustomMenu.MenuItem>
)}
diff --git a/web/core/components/issues/sub-issues/issue-list-item.tsx b/web/core/components/issues/sub-issues/issue-list-item.tsx
index 28f6f47f31..4e8e759dfa 100644
--- a/web/core/components/issues/sub-issues/issue-list-item.tsx
+++ b/web/core/components/issues/sub-issues/issue-list-item.tsx
@@ -4,6 +4,7 @@ import React from "react";
import { observer } from "mobx-react";
import { ChevronRight, X, Pencil, Trash, Link as LinkIcon, Loader } from "lucide-react";
import { EIssueServiceType } from "@plane/constants";
+import { useTranslation } from "@plane/i18n";
import { TIssue, TIssueServiceType } from "@plane/types";
// ui
import { ControlLink, CustomMenu, Tooltip } from "@plane/ui";
@@ -53,7 +54,7 @@ export const IssueListItem: React.FC<ISubIssues> = observer((props) => {
subIssueOperations,
issueServiceType = EIssueServiceType.ISSUES,
} = props;
-
+ const { t } = useTranslation();
const {
issue: { getIssueById },
} = useIssueDetail(issueServiceType);
@@ -184,7 +185,7 @@ export const IssueListItem: React.FC<ISubIssues> = observer((props) => {
>
<div className="flex items-center gap-2">
<Pencil className="h-3.5 w-3.5" strokeWidth={2} />
- <span>Edit issue</span>
+ <span>{t("issue.edit")}</span>
</div>
</CustomMenu.MenuItem>
)}
@@ -198,7 +199,7 @@ export const IssueListItem: React.FC<ISubIssues> = observer((props) => {
>
<div className="flex items-center gap-2">
<LinkIcon className="h-3.5 w-3.5" strokeWidth={2} />
- <span>Copy issue link</span>
+ <span>{t("issue.copy_link")}</span>
</div>
</CustomMenu.MenuItem>
@@ -213,7 +214,9 @@ export const IssueListItem: React.FC<ISubIssues> = observer((props) => {
>
<div className="flex items-center gap-2">
<X className="h-3.5 w-3.5" strokeWidth={2} />
- <span>{`Remove ${issueServiceType === EIssueServiceType.ISSUES ? "parent" : ""} issue`}</span>
+ {issueServiceType === EIssueServiceType.ISSUES
+ ? t("issue.remove.parent.label")
+ : t("issue.remove.label")}
</div>
</CustomMenu.MenuItem>
)}
@@ -229,7 +232,7 @@ export const IssueListItem: React.FC<ISubIssues> = observer((props) => {
>
<div className="flex items-center gap-2">
<Trash className="h-3.5 w-3.5" strokeWidth={2} />
- <span>Delete issue</span>
+ <span>{t("issue.delete.label")}</span>
</div>
</CustomMenu.MenuItem>
)}
diff --git a/web/core/components/issues/sub-issues/root.tsx b/web/core/components/issues/sub-issues/root.tsx
index 84db36c4c0..c4dbea5be7 100644
--- a/web/core/components/issues/sub-issues/root.tsx
+++ b/web/core/components/issues/sub-issues/root.tsx
@@ -139,7 +139,7 @@ export const SubIssuesRoot: FC<ISubIssuesRoot> = observer((props) => {
setToast({
type: TOAST_TYPE.SUCCESS,
title: "Link Copied!",
- message: "Issue link copied to clipboard.",
+ message: "Work item link copied to clipboard.",
});
});
},
@@ -150,7 +150,7 @@ export const SubIssuesRoot: FC<ISubIssuesRoot> = observer((props) => {
setToast({
type: TOAST_TYPE.ERROR,
title: "Error!",
- message: "Error fetching sub-issues",
+ message: "Error fetching sub-work items",
});
}
},
@@ -160,13 +160,13 @@ export const SubIssuesRoot: FC<ISubIssuesRoot> = observer((props) => {
setToast({
type: TOAST_TYPE.SUCCESS,
title: "Success!",
- message: "Sub-issues added successfully",
+ message: "Sub-work items added successfully",
});
} catch (error) {
setToast({
type: TOAST_TYPE.ERROR,
title: "Error!",
- message: "Error adding sub-issue",
+ message: "Error adding sub-work item",
});
}
},
@@ -194,7 +194,7 @@ export const SubIssuesRoot: FC<ISubIssuesRoot> = observer((props) => {
setToast({
type: TOAST_TYPE.SUCCESS,
title: "Success!",
- message: "Sub-issue updated successfully",
+ message: "Sub-work item updated successfully",
});
setSubIssueHelpers(parentIssueId, "issue_loader", issueId);
} catch (error) {
@@ -210,7 +210,7 @@ export const SubIssuesRoot: FC<ISubIssuesRoot> = observer((props) => {
setToast({
type: TOAST_TYPE.ERROR,
title: "Error!",
- message: "Error updating sub-issue",
+ message: "Error updating sub-work item",
});
}
},
@@ -221,7 +221,7 @@ export const SubIssuesRoot: FC<ISubIssuesRoot> = observer((props) => {
setToast({
type: TOAST_TYPE.SUCCESS,
title: "Success!",
- message: "Sub-issue removed successfully",
+ message: "Sub-work item removed successfully",
});
captureIssueEvent({
eventName: "Sub-issue removed",
@@ -246,7 +246,7 @@ export const SubIssuesRoot: FC<ISubIssuesRoot> = observer((props) => {
setToast({
type: TOAST_TYPE.ERROR,
title: "Error!",
- message: "Error removing sub-issue",
+ message: "Error removing sub-work item",
});
}
},
@@ -269,7 +269,7 @@ export const SubIssuesRoot: FC<ISubIssuesRoot> = observer((props) => {
setToast({
type: TOAST_TYPE.ERROR,
title: "Error!",
- message: "Error deleting issue",
+ message: "Error deleting work item",
});
}
},
@@ -335,7 +335,7 @@ export const SubIssuesRoot: FC<ISubIssuesRoot> = observer((props) => {
/>
)}
</div>
- <div>Sub-issues</div>
+ <div>Sub-work items</div>
</button>
<div className="flex items-center gap-2 text-custom-text-300">
<CircularProgressIndicator
@@ -358,7 +358,7 @@ export const SubIssuesRoot: FC<ISubIssuesRoot> = observer((props) => {
label={
<>
<Plus className="h-3 w-3" />
- Add sub-issue
+ Add sub-work item
</>
}
buttonClassName="whitespace-nowrap"
@@ -410,12 +410,12 @@ export const SubIssuesRoot: FC<ISubIssuesRoot> = observer((props) => {
) : (
!disabled && (
<div className="flex items-center justify-between">
- <div className="text-xs italic text-custom-text-300">No sub-issues yet</div>
+ <div className="text-xs italic text-custom-text-300">No sub-work items yet</div>
<CustomMenu
label={
<>
<Plus className="h-3 w-3" />
- Add sub-issue
+ Add sub-work item
</>
}
buttonClassName="whitespace-nowrap"
diff --git a/web/core/components/issues/title-input.tsx b/web/core/components/issues/title-input.tsx
index e1c1548dd5..463b81a791 100644
--- a/web/core/components/issues/title-input.tsx
+++ b/web/core/components/issues/title-input.tsx
@@ -2,6 +2,7 @@
import { FC, useState, useEffect, useCallback } from "react";
import { observer } from "mobx-react";
+import { useTranslation } from "@plane/i18n";
import { TNameDescriptionLoader } from "@plane/types";
// components
import { TextArea } from "@plane/ui";
@@ -37,6 +38,7 @@ export const IssueTitleInput: FC<IssueTitleInputProps> = observer((props) => {
className,
containerClassName,
} = props;
+ const { t } = useTranslation();
// states
const [title, setTitle] = useState("");
const [isLengthVisible, setIsLengthVisible] = useState(false);
@@ -119,7 +121,7 @@ export const IssueTitleInput: FC<IssueTitleInputProps> = observer((props) => {
value={title}
onChange={handleTitleChange}
maxLength={255}
- placeholder="Issue title"
+ placeholder={t("issue.title.label")}
onFocus={() => setIsLengthVisible(true)}
onBlur={() => setIsLengthVisible(false)}
/>
@@ -135,7 +137,7 @@ export const IssueTitleInput: FC<IssueTitleInputProps> = observer((props) => {
/255
</div>
</div>
- {title?.length === 0 && <span className="text-sm font-medium text-red-500">Title is required</span>}
+ {title?.length === 0 && <span className="text-sm font-medium text-red-500">{t("form.title.required")}</span>}
</div>
);
});
diff --git a/web/core/components/issues/workspace-draft/delete-modal.tsx b/web/core/components/issues/workspace-draft/delete-modal.tsx
index 9eefe0d032..69f6f15bf6 100644
--- a/web/core/components/issues/workspace-draft/delete-modal.tsx
+++ b/web/core/components/issues/workspace-draft/delete-modal.tsx
@@ -2,14 +2,15 @@
import { useEffect, useState } from "react";
// types
+import { PROJECT_ERROR_MESSAGES, EUserPermissions, EUserPermissionsLevel } from "@plane/constants";
+import { useTranslation } from "@plane/i18n";
import { TWorkspaceDraftIssue } from "@plane/types";
// ui
import { AlertModalCore, TOAST_TYPE, setToast } from "@plane/ui";
// constants
-import { PROJECT_ERROR_MESSAGES } from "@/constants/project";
// hooks
import { useIssues, useUser, useUserPermissions } from "@/hooks/store";
-import { EUserPermissions, EUserPermissionsLevel } from "@/plane-web/constants/user-permissions";
+
type Props = {
isOpen: boolean;
handleClose: () => void;
@@ -25,7 +26,7 @@ export const WorkspaceDraftIssueDeleteIssueModal: React.FC<Props> = (props) => {
// store hooks
const { issueMap } = useIssues();
const { allowPermissions } = useUserPermissions();
-
+ const { t } = useTranslation();
const { data: currentUser } = useUser();
// derived values
@@ -52,9 +53,10 @@ export const WorkspaceDraftIssueDeleteIssueModal: React.FC<Props> = (props) => {
if (!authorized) {
setToast({
- title: PROJECT_ERROR_MESSAGES.permissionError.title,
+ title: t(PROJECT_ERROR_MESSAGES.permissionError.i18n_title),
type: TOAST_TYPE.ERROR,
- message: PROJECT_ERROR_MESSAGES.permissionError.message,
+ message:
+ PROJECT_ERROR_MESSAGES.permissionError.i18n_message && t(PROJECT_ERROR_MESSAGES.permissionError.i18n_message),
});
onClose();
return;
@@ -64,20 +66,20 @@ export const WorkspaceDraftIssueDeleteIssueModal: React.FC<Props> = (props) => {
.then(() => {
setToast({
type: TOAST_TYPE.SUCCESS,
- title: "Success!",
- message: `draft deleted.`,
+ title: `${t("success")}!`,
+ message: t("workspace_draft_issues.toasts.deleted.success"),
});
onClose();
})
.catch((errors) => {
- const isPermissionError = errors?.error === "Only admin or creator can delete the issue";
+ const isPermissionError = errors?.error === "Only admin or creator can delete the work item";
const currentError = isPermissionError
? PROJECT_ERROR_MESSAGES.permissionError
: PROJECT_ERROR_MESSAGES.issueDeleteError;
setToast({
- title: currentError.title,
+ title: t(currentError.i18n_title),
type: TOAST_TYPE.ERROR,
- message: currentError.message,
+ message: currentError.i18n_message && t(currentError.i18n_message),
});
})
.finally(() => onClose());
@@ -89,8 +91,13 @@ export const WorkspaceDraftIssueDeleteIssueModal: React.FC<Props> = (props) => {
handleSubmit={handleIssueDelete}
isSubmitting={isDeleting}
isOpen={isOpen}
- title="Delete draft"
- content={<>Are you sure you want to delete this draft? This can&apos;t be undone.</>}
+ title={t("workspace_draft_issues.delete_modal.title")}
+ content={<>{t("workspace_draft_issues.delete_modal.description")}</>}
+ primaryButtonText={{
+ loading: t("deleting"),
+ default: t("delete"),
+ }}
+ secondaryButtonText={t("cancel")}
/>
);
};
diff --git a/web/core/components/issues/workspace-draft/draft-issue-block.tsx b/web/core/components/issues/workspace-draft/draft-issue-block.tsx
index 9e9ee107ee..ab2639858f 100644
--- a/web/core/components/issues/workspace-draft/draft-issue-block.tsx
+++ b/web/core/components/issues/workspace-draft/draft-issue-block.tsx
@@ -57,7 +57,7 @@ export const DraftIssueBlock: FC<Props> = observer((props) => {
const MENU_ITEMS: TContextMenuItem[] = [
{
key: "edit",
- title: "Edit",
+ title: "edit",
icon: Pencil,
action: () => {
setIssueToEdit(issue);
@@ -66,7 +66,7 @@ export const DraftIssueBlock: FC<Props> = observer((props) => {
},
{
key: "make-a-copy",
- title: "Make a copy",
+ title: "make_a_copy",
icon: Copy,
action: () => {
setCreateUpdateIssueModal(true);
@@ -74,7 +74,7 @@ export const DraftIssueBlock: FC<Props> = observer((props) => {
},
{
key: "move-to-issues",
- title: "Move to project",
+ title: "move_to_project",
icon: SquareStackIcon,
action: () => {
setMoveToIssue(true);
@@ -84,7 +84,7 @@ export const DraftIssueBlock: FC<Props> = observer((props) => {
},
{
key: "delete",
- title: "Delete",
+ title: "delete",
icon: Trash2,
action: () => {
setDeleteIssueModal(true);
diff --git a/web/core/components/issues/workspace-draft/empty-state.tsx b/web/core/components/issues/workspace-draft/empty-state.tsx
index 7a2893abd9..1c0b51fbb1 100644
--- a/web/core/components/issues/workspace-draft/empty-state.tsx
+++ b/web/core/components/issues/workspace-draft/empty-state.tsx
@@ -2,15 +2,27 @@
import { FC, Fragment, useState } from "react";
// components
-import { EIssuesStoreType } from "@plane/constants";
-import { EmptyState } from "@/components/empty-state";
+import { observer } from "mobx-react";
+import { EIssuesStoreType, EUserPermissionsLevel, EUserWorkspaceRoles } from "@plane/constants";
+import { useTranslation } from "@plane/i18n";
+import { DetailedEmptyState } from "@/components/empty-state";
import { CreateUpdateIssueModal } from "@/components/issues";
// constants
-import { EmptyStateType } from "@/constants/empty-state";
+import { useUserPermissions } from "@/hooks/store";
+import { useResolvedAssetPath } from "@/hooks/use-resolved-asset-path";
-export const WorkspaceDraftEmptyState: FC = () => {
+export const WorkspaceDraftEmptyState: FC = observer(() => {
// state
const [isDraftIssueModalOpen, setIsDraftIssueModalOpen] = useState(false);
+ // store hooks
+ const { t } = useTranslation();
+ const { allowPermissions } = useUserPermissions();
+ // derived values
+ const canPerformEmptyStateActions = allowPermissions(
+ [EUserWorkspaceRoles.ADMIN, EUserWorkspaceRoles.MEMBER],
+ EUserPermissionsLevel.WORKSPACE
+ );
+ const resolvedPath = useResolvedAssetPath({ basePath: "/empty-state/onboarding/cycles" });
return (
<Fragment>
@@ -21,13 +33,19 @@ export const WorkspaceDraftEmptyState: FC = () => {
isDraft
/>
<div className="relative h-full w-full overflow-y-auto">
- <EmptyState
- type={EmptyStateType.WORKSPACE_DRAFT_ISSUES}
- primaryButtonOnClick={() => {
- setIsDraftIssueModalOpen(true);
+ <DetailedEmptyState
+ title={t("workspace_draft_issues.empty_state.title")}
+ description={t("workspace_draft_issues.empty_state.description")}
+ assetPath={resolvedPath}
+ primaryButton={{
+ text: t("workspace_draft_issues.empty_state.primary_button.text"),
+ onClick: () => {
+ setIsDraftIssueModalOpen(true);
+ },
+ disabled: !canPerformEmptyStateActions
}}
/>
</div>
</Fragment>
);
-};
+});
diff --git a/web/core/components/issues/workspace-draft/quick-action.tsx b/web/core/components/issues/workspace-draft/quick-action.tsx
index 884e81a912..676c79ba68 100644
--- a/web/core/components/issues/workspace-draft/quick-action.tsx
+++ b/web/core/components/issues/workspace-draft/quick-action.tsx
@@ -1,6 +1,7 @@
"use client";
import { observer } from "mobx-react";
+import { useTranslation } from "@plane/i18n";
// ui
import { ContextMenu, CustomMenu, TContextMenuItem } from "@plane/ui";
// helpers
@@ -14,6 +15,8 @@ export interface Props {
export const WorkspaceDraftIssueQuickActions: React.FC<Props> = observer((props) => {
const { parentRef, MENU_ITEMS } = props;
+ const { t } = useTranslation();
+
return (
<>
<ContextMenu parentRef={parentRef} items={MENU_ITEMS} />
@@ -44,7 +47,7 @@ export const WorkspaceDraftIssueQuickActions: React.FC<Props> = observer((props)
>
{item.icon && <item.icon className={cn("h-3 w-3", item.iconClassName)} />}
<div>
- <h5>{item.title}</h5>
+ <h5>{t(item.title || "")}</h5>
{item.description && (
<p
className={cn("text-custom-text-300 whitespace-pre-line", {
diff --git a/web/core/components/issues/workspace-draft/root.tsx b/web/core/components/issues/workspace-draft/root.tsx
index 633fdead72..540839cd20 100644
--- a/web/core/components/issues/workspace-draft/root.tsx
+++ b/web/core/components/issues/workspace-draft/root.tsx
@@ -3,15 +3,19 @@
import { FC, Fragment } from "react";
import { observer } from "mobx-react";
import useSWR from "swr";
+// plane imports
+import { EDraftIssuePaginationType } from "@plane/constants";
+import { EUserPermissionsLevel, EUserWorkspaceRoles } from "@plane/constants/src/user";
+import { useTranslation } from "@plane/i18n";
// components
-import { EmptyState } from "@/components/empty-state";
+import { ComicBoxButton, DetailedEmptyState } from "@/components/empty-state";
// constants
-import { EmptyStateType } from "@/constants/empty-state";
-import { EDraftIssuePaginationType } from "@/constants/workspace-drafts";
+
// helpers
import { cn } from "@/helpers/common.helper";
// hooks
-import { useCommandPalette, useProject, useWorkspaceDraftIssues } from "@/hooks/store";
+import { useCommandPalette, useProject, useUserPermissions, useWorkspaceDraftIssues } from "@/hooks/store";
+import { useResolvedAssetPath } from "@/hooks/use-resolved-asset-path";
import { useWorkspaceIssueProperties } from "@/hooks/use-workspace-issue-properties";
// components
import { DraftIssueBlock } from "./draft-issue-block";
@@ -24,10 +28,19 @@ type TWorkspaceDraftIssuesRoot = {
export const WorkspaceDraftIssuesRoot: FC<TWorkspaceDraftIssuesRoot> = observer((props) => {
const { workspaceSlug } = props;
+ // plane hooks
+ const { t } = useTranslation();
// hooks
const { loader, paginationInfo, fetchIssues, issueIds } = useWorkspaceDraftIssues();
const { workspaceProjectIds } = useProject();
const { toggleCreateProjectModal } = useCommandPalette();
+ const { allowPermissions } = useUserPermissions();
+ // derived values
+ const hasMemberLevelPermission = allowPermissions(
+ [EUserWorkspaceRoles.ADMIN, EUserWorkspaceRoles.MEMBER],
+ EUserPermissionsLevel.WORKSPACE
+ );
+ const noProjectResolvedPath = useResolvedAssetPath({ basePath: "/empty-state/onboarding/projects" });
//swr hook for fetching issue properties
useWorkspaceIssueProperties(workspaceSlug);
@@ -51,12 +64,22 @@ export const WorkspaceDraftIssuesRoot: FC<TWorkspaceDraftIssuesRoot> = observer(
if (workspaceProjectIds?.length === 0)
return (
- <EmptyState
- type={EmptyStateType.WORKSPACE_NO_PROJECTS}
+ <DetailedEmptyState
size="sm"
- primaryButtonOnClick={() => {
- toggleCreateProjectModal(true);
- }}
+ title={t("workspace_projects.empty_state.no_projects.title")}
+ description={t("workspace_projects.empty_state.no_projects.description")}
+ assetPath={noProjectResolvedPath}
+ customPrimaryButton={
+ <ComicBoxButton
+ label={t("workspace_projects.empty_state.no_projects.primary_button.text")}
+ title={t("workspace_projects.empty_state.no_projects.primary_button.comic.title")}
+ description={t("workspace_projects.empty_state.no_projects.primary_button.comic.description")}
+ onClick={() => {
+ toggleCreateProjectModal(true);
+ }}
+ disabled={!hasMemberLevelPermission}
+ />
+ }
/>
);
diff --git a/web/core/components/labels/create-label-modal.tsx b/web/core/components/labels/create-label-modal.tsx
index 950dd6f980..57af83c802 100644
--- a/web/core/components/labels/create-label-modal.tsx
+++ b/web/core/components/labels/create-label-modal.tsx
@@ -7,13 +7,12 @@ import { TwitterPicker } from "react-color";
import { Controller, useForm } from "react-hook-form";
import { ChevronDown } from "lucide-react";
import { Dialog, Popover, Transition } from "@headlessui/react";
+// plane imports
+import { ETabIndices, LABEL_COLOR_OPTIONS, getRandomLabelColor } from "@plane/constants";
// types
import type { IIssueLabel, IState } from "@plane/types";
// ui
import { Button, Input, TOAST_TYPE, setToast } from "@plane/ui";
-// constants
-import { LABEL_COLOR_OPTIONS, getRandomLabelColor } from "@/constants/label";
-import { ETabIndices } from "@/constants/tab-indices";
// helpers
import { getTabIndex } from "@/helpers/tab-indices.helper";
// hooks
diff --git a/web/core/components/labels/create-update-label-inline.tsx b/web/core/components/labels/create-update-label-inline.tsx
index 8d06ff1544..ddbe220b93 100644
--- a/web/core/components/labels/create-update-label-inline.tsx
+++ b/web/core/components/labels/create-update-label-inline.tsx
@@ -6,14 +6,13 @@ import { useParams } from "next/navigation";
import { TwitterPicker } from "react-color";
import { Controller, SubmitHandler, useForm } from "react-hook-form";
import { Popover, Transition } from "@headlessui/react";
+// plane imports
+import { getRandomLabelColor, LABEL_COLOR_OPTIONS } from "@plane/constants";
+import { useTranslation } from "@plane/i18n";
import { IIssueLabel } from "@plane/types";
-// ui
import { Button, Input, TOAST_TYPE, setToast } from "@plane/ui";
-// constants
-import { getRandomLabelColor, LABEL_COLOR_OPTIONS } from "@/constants/label";
// hooks
import { useLabel } from "@/hooks/store";
-// types
type Props = {
labelForm: boolean;
@@ -48,6 +47,8 @@ export const CreateUpdateLabelInline = observer(
defaultValues,
});
+ const { t } = useTranslation();
+
const handleClose = () => {
setLabelForm(false);
reset(defaultValues);
@@ -66,7 +67,7 @@ export const CreateUpdateLabelInline = observer(
setToast({
title: "Error!",
type: TOAST_TYPE.ERROR,
- message: error?.detail ?? error.error ?? "Something went wrong. Please try again later.",
+ message: error?.detail ?? error.error ?? t("common.something_went_wrong"),
});
reset(formData);
});
@@ -85,7 +86,7 @@ export const CreateUpdateLabelInline = observer(
setToast({
title: "Oops!",
type: TOAST_TYPE.ERROR,
- message: error?.error ?? "Error while updating the label",
+ message: error?.error ?? t("project_settings.labels.toast.error"),
});
reset(formData);
});
@@ -173,10 +174,10 @@ export const CreateUpdateLabelInline = observer(
control={control}
name="name"
rules={{
- required: "Label title is required",
+ required: t("project_settings.labels.label_title_is_required"),
maxLength: {
value: 255,
- message: "Label name should not exceed 255 characters",
+ message: t("project_settings.labels.label_max_char"),
},
}}
render={({ field: { value, onChange, ref } }) => (
@@ -189,17 +190,17 @@ export const CreateUpdateLabelInline = observer(
onChange={onChange}
ref={ref}
hasError={Boolean(errors.name)}
- placeholder="Label title"
+ placeholder={t("project_settings.labels.label_title")}
className="w-full"
/>
)}
/>
</div>
<Button variant="neutral-primary" onClick={() => handleClose()} size="sm">
- Cancel
+ {t("cancel")}
</Button>
<Button variant="primary" type="submit" size="sm" loading={isSubmitting}>
- {isUpdating ? (isSubmitting ? "Updating" : "Update") : isSubmitting ? "Adding" : "Add"}
+ {isUpdating ? (isSubmitting ? t("updating") : t("update")) : isSubmitting ? t("adding") : t("add")}
</Button>
</form>
{errors.name?.message && <p className="p-0.5 pl-8 text-sm text-red-500">{errors.name?.message}</p>}
diff --git a/web/core/components/labels/delete-label-modal.tsx b/web/core/components/labels/delete-label-modal.tsx
index dfad0aeffa..00aa409b0e 100644
--- a/web/core/components/labels/delete-label-modal.tsx
+++ b/web/core/components/labels/delete-label-modal.tsx
@@ -61,7 +61,7 @@ export const DeleteLabelModal: React.FC<Props> = observer((props) => {
content={
<>
Are you sure you want to delete <span className="font-medium text-custom-text-100">{data?.name}</span>? This
- will remove the label from all the issue and from any views where the label is being filtered upon.
+ will remove the label from all the work item and from any views where the label is being filtered upon.
</>
}
/>
diff --git a/web/core/components/labels/project-setting-label-list.tsx b/web/core/components/labels/project-setting-label-list.tsx
index 2fc9c83827..b36e1c6c64 100644
--- a/web/core/components/labels/project-setting-label-list.tsx
+++ b/web/core/components/labels/project-setting-label-list.tsx
@@ -3,39 +3,40 @@
import React, { useState, useRef } from "react";
import { observer } from "mobx-react";
import { useParams } from "next/navigation";
+// plane imports
+import { EUserPermissions, EUserPermissionsLevel } from "@plane/constants";
+import { useTranslation } from "@plane/i18n";
import { IIssueLabel } from "@plane/types";
-// hooks
import { Button, Loader } from "@plane/ui";
-import { EmptyState } from "@/components/empty-state";
+import { DetailedEmptyState } from "@/components/empty-state";
import {
CreateUpdateLabelInline,
DeleteLabelModal,
ProjectSettingLabelGroup,
ProjectSettingLabelItem,
} from "@/components/labels";
-import { EmptyStateType } from "@/constants/empty-state";
+// hooks
import { useLabel, useUserPermissions } from "@/hooks/store";
-import { EUserPermissions, EUserPermissionsLevel } from "@/plane-web/constants/user-permissions";
-// components
-// ui
-// types
-// constants
+import { useResolvedAssetPath } from "@/hooks/use-resolved-asset-path";
+// plane web imports
export const ProjectSettingsLabelList: React.FC = observer(() => {
+ // router
+ const { workspaceSlug, projectId } = useParams();
+ // refs
+ const scrollToRef = useRef<HTMLFormElement>(null);
// states
const [showLabelForm, setLabelForm] = useState(false);
const [isUpdating, setIsUpdating] = useState(false);
const [selectDeleteLabel, setSelectDeleteLabel] = useState<IIssueLabel | null>(null);
- // refs
- const scrollToRef = useRef<HTMLFormElement>(null);
- // router
- const { workspaceSlug, projectId } = useParams();
+ // plane hooks
+ const { t } = useTranslation();
// store hooks
const { projectLabels, updateLabelPosition, projectLabelsTree } = useLabel();
const { allowPermissions } = useUserPermissions();
-
// derived values
const isEditable = allowPermissions([EUserPermissions.ADMIN], EUserPermissionsLevel.PROJECT);
+ const resolvedPath = useResolvedAssetPath({ basePath: "/empty-state/project-settings/labels" });
const newLabel = () => {
setIsUpdating(false);
@@ -72,7 +73,7 @@ export const ProjectSettingsLabelList: React.FC = observer(() => {
<h3 className="text-xl font-medium">Labels</h3>
{isEditable && (
<Button variant="primary" onClick={newLabel} size="sm">
- Add label
+ {t("common.add_label")}
</Button>
)}
</div>
@@ -94,7 +95,11 @@ export const ProjectSettingsLabelList: React.FC = observer(() => {
{projectLabels ? (
projectLabels.length === 0 && !showLabelForm ? (
<div className="flex items-center justify-center h-full w-full">
- <EmptyState type={EmptyStateType.PROJECT_SETTINGS_LABELS} />
+ <DetailedEmptyState
+ title={t("project_settings.empty_state.labels.title")}
+ description={t("project_settings.empty_state.labels.description")}
+ assetPath={resolvedPath}
+ />
</div>
) : (
projectLabelsTree && (
diff --git a/web/core/components/modules/analytics-sidebar/issue-progress.tsx b/web/core/components/modules/analytics-sidebar/issue-progress.tsx
index 29bac20c29..a29334ff83 100644
--- a/web/core/components/modules/analytics-sidebar/issue-progress.tsx
+++ b/web/core/components/modules/analytics-sidebar/issue-progress.tsx
@@ -7,6 +7,7 @@ import { useSearchParams } from "next/navigation";
import { AlertCircle, ChevronUp, ChevronDown } from "lucide-react";
import { Disclosure, Transition } from "@headlessui/react";
import { EIssueFilterType, EIssuesStoreType } from "@plane/constants";
+import { useTranslation } from "@plane/i18n";
import { IIssueFilterOptions, TModulePlotType } from "@plane/types";
import { CustomSelect, Spinner } from "@plane/ui";
// components
@@ -27,8 +28,8 @@ type TModuleAnalyticsProgress = {
};
const moduleBurnDownChartOptions = [
- { value: "burndown", label: "Issues" },
- { value: "points", label: "Points" },
+ { value: "burndown", i18n_label: "issues" },
+ { value: "points", i18n_label: "points" },
];
export const ModuleAnalyticsProgress: FC<TModuleAnalyticsProgress> = observer((props) => {
@@ -47,6 +48,8 @@ export const ModuleAnalyticsProgress: FC<TModuleAnalyticsProgress> = observer((p
// state
const [loader, setLoader] = useState(false);
+ const { t } = useTranslation();
+
// derived values
const moduleDetails = getModuleById(moduleId);
const plotType: TModulePlotType = getPlotTypeByModuleId(moduleId);
@@ -154,7 +157,7 @@ export const ModuleAnalyticsProgress: FC<TModuleAnalyticsProgress> = observer((p
{isModuleDateValid ? (
<div className="relative w-full flex justify-between items-center gap-2">
<Disclosure.Button className="relative flex items-center gap-2 w-full">
- <div className="font-medium text-custom-text-200 text-sm">Progress</div>
+ <div className="font-medium text-custom-text-200 text-sm">{t("progress")}</div>
{progressHeaderPercentage > 0 && (
<div className="flex h-5 w-9 items-center justify-center rounded bg-amber-500/20 text-xs font-medium text-amber-500">{`${progressHeaderPercentage}%`}</div>
)}
@@ -165,14 +168,16 @@ export const ModuleAnalyticsProgress: FC<TModuleAnalyticsProgress> = observer((p
<CustomSelect
value={plotType}
label={
- <span>{moduleBurnDownChartOptions.find((v) => v.value === plotType)?.label ?? "None"}</span>
+ <span>
+ {t(moduleBurnDownChartOptions.find((v) => v.value === plotType)?.i18n_label || "none")}
+ </span>
}
onChange={onChange}
maxHeight="lg"
>
{moduleBurnDownChartOptions.map((item) => (
<CustomSelect.Option key={item.value} value={item.value}>
- {item.label}
+ {t(item.i18n_label)}
</CustomSelect.Option>
))}
</CustomSelect>
@@ -195,8 +200,8 @@ export const ModuleAnalyticsProgress: FC<TModuleAnalyticsProgress> = observer((p
<AlertCircle height={14} width={14} className="text-custom-text-200" />
<span className="text-xs italic text-custom-text-200">
{moduleDetails?.start_date && moduleDetails?.target_date
- ? "This module isn't active yet."
- : "Invalid date. Please enter valid date."}
+ ? t("project_module.empty_state.sidebar.in_active")
+ : t("project_module.empty_state.sidebar.invalid_date")}
</span>
</div>
</div>
@@ -209,11 +214,11 @@ export const ModuleAnalyticsProgress: FC<TModuleAnalyticsProgress> = observer((p
<div className="relative flex items-center gap-2">
<div className="flex items-center justify-center gap-1 text-xs">
<span className="h-2.5 w-2.5 rounded-full bg-[#A9BBD0]" />
- <span>Ideal</span>
+ <span>{t("ideal")}</span>
</div>
<div className="flex items-center justify-center gap-1 text-xs">
<span className="h-2.5 w-2.5 rounded-full bg-[#4C8FFF]" />
- <span>Current</span>
+ <span>{t("current")}</span>
</div>
</div>
{moduleStartDate && moduleEndDate && completionChartDistributionData && (
@@ -232,7 +237,7 @@ export const ModuleAnalyticsProgress: FC<TModuleAnalyticsProgress> = observer((p
startDate={moduleStartDate}
endDate={moduleEndDate}
totalIssues={totalIssues}
- plotTitle={"issues"}
+ plotTitle={"work items"}
/>
)}
</Fragment>
diff --git a/web/core/components/modules/analytics-sidebar/progress-stats.tsx b/web/core/components/modules/analytics-sidebar/progress-stats.tsx
index 3414542474..5c92786d77 100644
--- a/web/core/components/modules/analytics-sidebar/progress-stats.tsx
+++ b/web/core/components/modules/analytics-sidebar/progress-stats.tsx
@@ -4,6 +4,7 @@ import { FC } from "react";
import { observer } from "mobx-react";
import Image from "next/image";
import { Tab } from "@headlessui/react";
+import { useTranslation } from "@plane/i18n";
import {
IIssueFilterOptions,
IIssueFilters,
@@ -73,6 +74,7 @@ type TStateStatComponent = {
export const AssigneeStatComponent = observer((props: TAssigneeStatComponent) => {
const { distribution, isEditable, filters, handleFiltersUpdate } = props;
+ const { t } = useTranslation();
return (
<div>
{distribution && distribution.length > 0 ? (
@@ -104,7 +106,7 @@ export const AssigneeStatComponent = observer((props: TAssigneeStatComponent) =>
<div className="h-4 w-4 rounded-full border-2 border-custom-border-200 bg-custom-background-80">
<img src="/user.png" height="100%" width="100%" className="rounded-full" alt="User" />
</div>
- <span>No assignee</span>
+ <span>{t("no_assignee")}</span>
</div>
}
completed={assignee?.completed ?? 0}
@@ -117,7 +119,7 @@ export const AssigneeStatComponent = observer((props: TAssigneeStatComponent) =>
<div className="flex h-20 w-20 items-center justify-center rounded-full bg-custom-background-80">
<Image src={emptyMembers} className="h-12 w-12" alt="empty members" />
</div>
- <h6 className="text-base text-custom-text-300">No assignees yet</h6>
+ <h6 className="text-base text-custom-text-300">{t("no_assignees_yet")}</h6>
</div>
)}
</div>
diff --git a/web/core/components/modules/analytics-sidebar/root.tsx b/web/core/components/modules/analytics-sidebar/root.tsx
index cf3ae40c85..8f31bbb809 100644
--- a/web/core/components/modules/analytics-sidebar/root.tsx
+++ b/web/core/components/modules/analytics-sidebar/root.tsx
@@ -18,6 +18,16 @@ import {
} from "lucide-react";
import { Disclosure, Transition } from "@headlessui/react";
// plane types
+import {
+ MODULE_STATUS,
+ MODULE_LINK_CREATED,
+ MODULE_LINK_DELETED,
+ MODULE_LINK_UPDATED,
+ MODULE_UPDATED,
+ EUserPermissions,
+ EUserPermissionsLevel,
+} from "@plane/constants";
+import { useTranslation } from "@plane/i18n";
import { ILinkDetails, IModule, ModuleLink } from "@plane/types";
// plane ui
import {
@@ -40,13 +50,7 @@ import {
ModuleAnalyticsProgress,
ModuleLinksList,
} from "@/components/modules";
-import {
- MODULE_LINK_CREATED,
- MODULE_LINK_DELETED,
- MODULE_LINK_UPDATED,
- MODULE_UPDATED,
-} from "@/constants/event-tracker";
-import { MODULE_STATUS } from "@/constants/module";
+
// helpers
import { getDate, renderFormattedPayloadDate } from "@/helpers/date-time.helper";
import { copyUrlToClipboard } from "@/helpers/string.helper";
@@ -55,7 +59,6 @@ import { useModule, useEventTracker, useProjectEstimates, useUserPermissions } f
import { useAppRouter } from "@/hooks/use-app-router";
// plane web constants
import { EEstimateSystem } from "@/plane-web/constants/estimates";
-import { EUserPermissions, EUserPermissionsLevel } from "@/plane-web/constants/user-permissions";
const defaultValues: Partial<IModule> = {
lead_id: "",
@@ -84,7 +87,7 @@ export const ModuleAnalyticsSidebar: React.FC<Props> = observer((props) => {
const { workspaceSlug, projectId } = useParams();
// store hooks
-
+ const { t } = useTranslation();
const { allowPermissions } = useUserPermissions();
const { getModuleById, updateModuleDetails, createModuleLink, updateModuleLink, deleteModuleLink, restoreModule } =
@@ -257,11 +260,13 @@ export const ModuleAnalyticsSidebar: React.FC<Props> = observer((props) => {
const moduleStatus = MODULE_STATUS.find((status) => status.value === moduleDetails.status);
const issueCount =
- moduleDetails.total_issues === 0 ? "0 Issue" : `${moduleDetails.completed_issues}/${moduleDetails.total_issues}`;
+ moduleDetails.total_issues === 0
+ ? "0 work items"
+ : `${moduleDetails.completed_issues}/${moduleDetails.total_issues}`;
const issueEstimatePointCount =
moduleDetails.total_estimate_points === 0
- ? "0 Issue"
+ ? "0 work items"
: `${moduleDetails.completed_estimate_points}/${moduleDetails.total_estimate_points}`;
const isEditingAllowed = allowPermissions(
@@ -318,7 +323,7 @@ export const ModuleAnalyticsSidebar: React.FC<Props> = observer((props) => {
{isInArchivableGroup ? (
<div className="flex items-center gap-2">
<ArchiveIcon className="h-3 w-3" />
- Archive module
+ {t("archive_module")}
</div>
) : (
<div className="flex items-start gap-2">
@@ -326,7 +331,7 @@ export const ModuleAnalyticsSidebar: React.FC<Props> = observer((props) => {
<div className="-mt-1">
<p>Archive module</p>
<p className="text-xs text-custom-text-400">
- Only completed or cancelled <br /> module can be archived.
+ {t("project_module.quick_actions.archive_module_description")}
</p>
</div>
</div>
@@ -337,7 +342,7 @@ export const ModuleAnalyticsSidebar: React.FC<Props> = observer((props) => {
<CustomMenu.MenuItem onClick={handleRestoreModule}>
<span className="flex items-center justify-start gap-2">
<ArchiveRestoreIcon className="h-3 w-3" />
- <span>Restore module</span>
+ <span>{t("restore_module")}</span>
</span>
</CustomMenu.MenuItem>
)}
@@ -349,7 +354,7 @@ export const ModuleAnalyticsSidebar: React.FC<Props> = observer((props) => {
>
<span className="flex items-center justify-start gap-2">
<Trash2 className="h-3 w-3" />
- <span>Delete module</span>
+ <span>{t("project_module.delete_module")}</span>
</span>
</CustomMenu.MenuItem>
</CustomMenu>
@@ -374,7 +379,7 @@ export const ModuleAnalyticsSidebar: React.FC<Props> = observer((props) => {
backgroundColor: moduleStatus ? `${moduleStatus.color}20` : "#a3a3a220",
}}
>
- {moduleStatus?.label ?? "Backlog"}
+ {(moduleStatus && t(moduleStatus?.i18n_label)) ?? t("project_modules.status.backlog")}
</span>
}
value={value}
@@ -387,7 +392,7 @@ export const ModuleAnalyticsSidebar: React.FC<Props> = observer((props) => {
<CustomSelect.Option key={status.value} value={status.value}>
<div className="flex items-center gap-2">
<ModuleStatusIcon status={status.value} />
- {status.label}
+ {t(status.i18n_label)}
</div>
</CustomSelect.Option>
))}
@@ -409,7 +414,7 @@ export const ModuleAnalyticsSidebar: React.FC<Props> = observer((props) => {
<div className="flex items-center justify-start gap-1">
<div className="flex w-2/5 items-center justify-start gap-2 text-custom-text-300">
<CalendarClock className="h-4 w-4" />
- <span className="text-base">Date range</span>
+ <span className="text-base">{t("date_range")}</span>
</div>
<div className="h-7 w-3/5">
<Controller
@@ -436,8 +441,8 @@ export const ModuleAnalyticsSidebar: React.FC<Props> = observer((props) => {
handleDateChange(val?.from, val?.to);
}}
placeholder={{
- from: "Start date",
- to: "Target date",
+ from: t("start_date"),
+ to: t("target_date"),
}}
disabled={!isEditingAllowed || isArchived}
/>
@@ -453,7 +458,7 @@ export const ModuleAnalyticsSidebar: React.FC<Props> = observer((props) => {
<div className="flex items-center justify-start gap-1">
<div className="flex w-2/5 items-center justify-start gap-2 text-custom-text-300">
<SquareUser className="h-4 w-4" />
- <span className="text-base">Lead</span>
+ <span className="text-base">{t("lead")}</span>
</div>
<Controller
control={control}
@@ -468,7 +473,7 @@ export const ModuleAnalyticsSidebar: React.FC<Props> = observer((props) => {
projectId={projectId?.toString() ?? ""}
multiple={false}
buttonVariant="background-with-text"
- placeholder="Lead"
+ placeholder={t("lead")}
disabled={!isEditingAllowed || isArchived}
icon={SquareUser}
/>
@@ -479,7 +484,7 @@ export const ModuleAnalyticsSidebar: React.FC<Props> = observer((props) => {
<div className="flex items-center justify-start gap-1">
<div className="flex w-2/5 items-center justify-start gap-2 text-custom-text-300">
<Users className="h-4 w-4" />
- <span className="text-base">Members</span>
+ <span className="text-base">{t("members")}</span>
</div>
<Controller
control={control}
@@ -504,7 +509,7 @@ export const ModuleAnalyticsSidebar: React.FC<Props> = observer((props) => {
<div className="flex items-center justify-start gap-1">
<div className="flex w-2/5 items-center justify-start gap-2 text-custom-text-300">
<LayersIcon className="h-4 w-4" />
- <span className="text-base">Issues</span>
+ <span className="text-base">{t("issues")}</span>
</div>
<div className="flex h-7 w-3/5 items-center">
<span className="px-1.5 text-sm text-custom-text-300">{issueCount}</span>
@@ -518,7 +523,7 @@ export const ModuleAnalyticsSidebar: React.FC<Props> = observer((props) => {
<div className="flex items-center justify-start gap-1">
<div className="flex w-2/5 items-center justify-start gap-2 text-custom-text-300">
<LayersIcon className="h-4 w-4" />
- <span className="text-base">Points</span>
+ <span className="text-base">{t("points")}</span>
</div>
<div className="flex h-7 w-3/5 items-center">
<span className="px-1.5 text-sm text-custom-text-300">{issueEstimatePointCount}</span>
@@ -543,7 +548,7 @@ export const ModuleAnalyticsSidebar: React.FC<Props> = observer((props) => {
<div className={`relative flex h-full w-full flex-col ${open ? "" : "flex-row"}`}>
<Disclosure.Button className="flex w-full items-center justify-between gap-2 p-1.5">
<div className="flex items-center justify-start gap-2 text-sm">
- <span className="font-medium text-custom-text-200">Links</span>
+ <span className="font-medium text-custom-text-200">{t("common.links")}</span>
</div>
<div className="flex items-center gap-2.5">
@@ -562,7 +567,7 @@ export const ModuleAnalyticsSidebar: React.FC<Props> = observer((props) => {
onClick={() => setModuleLinkModal(true)}
>
<Plus className="h-3 w-3" />
- Add link
+ {t("add_link")}
</button>
</div>
)}
@@ -580,7 +585,9 @@ export const ModuleAnalyticsSidebar: React.FC<Props> = observer((props) => {
<div className="flex items-center justify-between gap-2">
<div className="flex items-center gap-2">
<Info className="h-3.5 w-3.5 stroke-[1.5] text-custom-text-300" />
- <span className="p-0.5 text-xs text-custom-text-300">No links added yet</span>
+ <span className="p-0.5 text-xs text-custom-text-300">
+ {t("common.no_links_added_yet")}
+ </span>
</div>
{isEditingAllowed && !isArchived && (
<button
@@ -588,7 +595,7 @@ export const ModuleAnalyticsSidebar: React.FC<Props> = observer((props) => {
onClick={() => setModuleLinkModal(true)}
>
<Plus className="h-3 w-3" />
- Add link
+ {t("add_link")}
</button>
)}
</div>
diff --git a/web/core/components/modules/applied-filters/date.tsx b/web/core/components/modules/applied-filters/date.tsx
index 88d607de8d..53c24a3a9c 100644
--- a/web/core/components/modules/applied-filters/date.tsx
+++ b/web/core/components/modules/applied-filters/date.tsx
@@ -1,8 +1,8 @@
import { observer } from "mobx-react";
// icons
import { X } from "lucide-react";
+import { DATE_AFTER_FILTER_OPTIONS } from "@plane/constants";
// helpers
-import { DATE_AFTER_FILTER_OPTIONS } from "@/constants/filters";
import { renderFormattedDate } from "@/helpers/date-time.helper";
import { capitalizeFirstLetter } from "@/helpers/string.helper";
// constants
diff --git a/web/core/components/modules/applied-filters/root.tsx b/web/core/components/modules/applied-filters/root.tsx
index 56bfbf2e2c..f8b4fac08b 100644
--- a/web/core/components/modules/applied-filters/root.tsx
+++ b/web/core/components/modules/applied-filters/root.tsx
@@ -1,4 +1,5 @@
import { X } from "lucide-react";
+import { useTranslation } from "@plane/i18n";
import { TModuleDisplayFilters, TModuleFilters } from "@plane/types";
// components
import { Header, EHeaderVariant, Tag } from "@plane/ui";
@@ -30,6 +31,7 @@ export const ModuleAppliedFiltersList: React.FC<Props> = (props) => {
alwaysAllowEditing,
isArchived = false,
} = props;
+ const { t } = useTranslation();
if (!appliedFilters && !isFavoriteFilterApplied) return null;
if (Object.keys(appliedFilters).length === 0 && !isFavoriteFilterApplied) return null;
@@ -113,7 +115,7 @@ export const ModuleAppliedFiltersList: React.FC<Props> = (props) => {
{isEditingAllowed && (
<button type="button" onClick={handleClearAllFilters}>
<Tag>
- Clear all
+ {t("common.clear_all")}
<X size={12} strokeWidth={2} />
</Tag>
</button>
diff --git a/web/core/components/modules/applied-filters/status.tsx b/web/core/components/modules/applied-filters/status.tsx
index 442dcfadcc..15a2e8b6ee 100644
--- a/web/core/components/modules/applied-filters/status.tsx
+++ b/web/core/components/modules/applied-filters/status.tsx
@@ -3,9 +3,10 @@
import { observer } from "mobx-react";
import { X } from "lucide-react";
// ui
+import { MODULE_STATUS } from "@plane/constants";
+import { useTranslation } from "@plane/i18n";
import { ModuleStatusIcon } from "@plane/ui";
// constants
-import { MODULE_STATUS } from "@/constants/module";
type Props = {
handleRemove: (val: string) => void;
@@ -15,6 +16,7 @@ type Props = {
export const AppliedStatusFilters: React.FC<Props> = observer((props) => {
const { handleRemove, values, editable } = props;
+ const { t } = useTranslation();
return (
<>
@@ -25,7 +27,7 @@ export const AppliedStatusFilters: React.FC<Props> = observer((props) => {
return (
<div key={status} className="flex items-center gap-1 rounded bg-custom-background-80 p-1 text-xs">
<ModuleStatusIcon status={statusDetails.value} height="12px" width="12px" />
- {statusDetails.label}
+ {t(statusDetails.i18n_label)}
{editable && (
<button
type="button"
diff --git a/web/core/components/modules/archived-modules/root.tsx b/web/core/components/modules/archived-modules/root.tsx
index b74814add6..30ae74a5ce 100644
--- a/web/core/components/modules/archived-modules/root.tsx
+++ b/web/core/components/modules/archived-modules/root.tsx
@@ -2,28 +2,30 @@ import React, { useCallback } from "react";
import { observer } from "mobx-react";
import { useParams } from "next/navigation";
import useSWR from "swr";
-// types
+// plane imports
+import { useTranslation } from "@plane/i18n";
import { TModuleFilters } from "@plane/types";
// components
-import { EmptyState } from "@/components/empty-state";
+import { DetailedEmptyState } from "@/components/empty-state";
import { ArchivedModulesView, ModuleAppliedFiltersList } from "@/components/modules";
import { CycleModuleListLayout } from "@/components/ui";
-// constants
-import { EmptyStateType } from "@/constants/empty-state";
// helpers
import { calculateTotalFilters } from "@/helpers/filter.helper";
// hooks
import { useModule, useModuleFilter } from "@/hooks/store";
+import { useResolvedAssetPath } from "@/hooks/use-resolved-asset-path";
export const ArchivedModuleLayoutRoot: React.FC = observer(() => {
// router
const { workspaceSlug, projectId } = useParams();
+ // plane hooks
+ const { t } = useTranslation();
// hooks
const { fetchArchivedModules, projectArchivedModuleIds, loader } = useModule();
- // module filters hook
const { clearAllFilters, currentProjectArchivedFilters, updateFilters } = useModuleFilter();
// derived values
const totalArchivedModules = projectArchivedModuleIds?.length ?? 0;
+ const resolvedPath = useResolvedAssetPath({ basePath: "/empty-state/archived/empty-modules" });
useSWR(
workspaceSlug && projectId ? `ARCHIVED_MODULES_${workspaceSlug.toString()}_${projectId.toString()}` : null,
@@ -69,7 +71,11 @@ export const ArchivedModuleLayoutRoot: React.FC = observer(() => {
)}
{totalArchivedModules === 0 ? (
<div className="h-full place-items-center">
- <EmptyState type={EmptyStateType.PROJECT_ARCHIVED_NO_MODULES} />
+ <DetailedEmptyState
+ title={t("project_module.empty_state.archived.title")}
+ description={t("project_module.empty_state.archived.description")}
+ assetPath={resolvedPath}
+ />
</div>
) : (
<div className="relative h-full w-full overflow-auto">
diff --git a/web/core/components/modules/delete-module-modal.tsx b/web/core/components/modules/delete-module-modal.tsx
index c165c2e4c7..b35356f67b 100644
--- a/web/core/components/modules/delete-module-modal.tsx
+++ b/web/core/components/modules/delete-module-modal.tsx
@@ -4,12 +4,12 @@ import React, { useState } from "react";
import { observer } from "mobx-react";
import { useParams } from "next/navigation";
// types
+import { PROJECT_ERROR_MESSAGES, MODULE_DELETED } from "@plane/constants";
+import { useTranslation } from "@plane/i18n";
import type { IModule } from "@plane/types";
// ui
import { AlertModalCore, TOAST_TYPE, setToast } from "@plane/ui";
// constants
-import { MODULE_DELETED } from "@/constants/event-tracker";
-import { PROJECT_ERROR_MESSAGES } from "@/constants/project";
// hooks
import { useEventTracker, useModule } from "@/hooks/store";
import { useAppRouter } from "@/hooks/use-app-router";
@@ -30,6 +30,7 @@ export const DeleteModuleModal: React.FC<Props> = observer((props) => {
// store hooks
const { captureModuleEvent } = useEventTracker();
const { deleteModule } = useModule();
+ const { t } = useTranslation();
const handleClose = () => {
onClose();
@@ -61,9 +62,9 @@ export const DeleteModuleModal: React.FC<Props> = observer((props) => {
? PROJECT_ERROR_MESSAGES.permissionError
: PROJECT_ERROR_MESSAGES.moduleDeleteError;
setToast({
- title: currentError.title,
+ title: t(currentError.i18n_title),
type: TOAST_TYPE.ERROR,
- message: currentError.message,
+ message: currentError.i18n_message && t(currentError.i18n_message),
});
captureModuleEvent({
eventName: MODULE_DELETED,
diff --git a/web/core/components/modules/dropdowns/filters/start-date.tsx b/web/core/components/modules/dropdowns/filters/start-date.tsx
index 9bfd8f2d8e..e43a7e50c8 100644
--- a/web/core/components/modules/dropdowns/filters/start-date.tsx
+++ b/web/core/components/modules/dropdowns/filters/start-date.tsx
@@ -1,11 +1,11 @@
import React, { useState } from "react";
import { observer } from "mobx-react";
-
+// constants
+import { DATE_AFTER_FILTER_OPTIONS } from "@plane/constants";
// components
import { DateFilterModal } from "@/components/core";
import { FilterHeader, FilterOption } from "@/components/issues";
-// constants
-import { DATE_AFTER_FILTER_OPTIONS } from "@/constants/filters";
+
// helpers
import { isInDateFormat } from "@/helpers/date-time.helper";
diff --git a/web/core/components/modules/dropdowns/filters/status.tsx b/web/core/components/modules/dropdowns/filters/status.tsx
index f14ededf00..3f3994fda4 100644
--- a/web/core/components/modules/dropdowns/filters/status.tsx
+++ b/web/core/components/modules/dropdowns/filters/status.tsx
@@ -2,14 +2,12 @@
import React, { useState } from "react";
import { observer } from "mobx-react";
+import { MODULE_STATUS } from "@plane/constants";
+import { useTranslation } from "@plane/i18n";
import { TModuleStatus } from "@plane/types";
// components
import { ModuleStatusIcon } from "@plane/ui";
import { FilterHeader, FilterOption } from "@/components/issues";
-// ui
-// types
-import { MODULE_STATUS } from "@/constants/module";
-// constants
type Props = {
appliedFilters: TModuleStatus[] | null;
@@ -21,6 +19,7 @@ export const FilterStatus: React.FC<Props> = observer((props) => {
const { appliedFilters, handleUpdate, searchQuery } = props;
// states
const [previewEnabled, setPreviewEnabled] = useState(true);
+ const { t } = useTranslation();
const filteredOptions = MODULE_STATUS.filter((p) => p.value.includes(searchQuery.toLowerCase()));
const appliedFiltersCount = appliedFilters?.length ?? 0;
@@ -41,7 +40,7 @@ export const FilterStatus: React.FC<Props> = observer((props) => {
isChecked={appliedFilters?.includes(status.value) ? true : false}
onClick={() => handleUpdate(status.value)}
icon={<ModuleStatusIcon status={status.value} />}
- title={status.label}
+ title={t(status.i18n_label)}
/>
))
) : (
diff --git a/web/core/components/modules/dropdowns/filters/target-date.tsx b/web/core/components/modules/dropdowns/filters/target-date.tsx
index ba82002dd8..c7ed9c8407 100644
--- a/web/core/components/modules/dropdowns/filters/target-date.tsx
+++ b/web/core/components/modules/dropdowns/filters/target-date.tsx
@@ -1,11 +1,10 @@
import React, { useState } from "react";
import { observer } from "mobx-react";
-
+// plane constants
+import { DATE_AFTER_FILTER_OPTIONS } from "@plane/constants";
// components
import { DateFilterModal } from "@/components/core";
import { FilterHeader, FilterOption } from "@/components/issues";
-// constants
-import { DATE_AFTER_FILTER_OPTIONS } from "@/constants/filters";
// helpers
import { isInDateFormat } from "@/helpers/date-time.helper";
diff --git a/web/core/components/modules/dropdowns/order-by.tsx b/web/core/components/modules/dropdowns/order-by.tsx
index a3b0af8814..6a373527c8 100644
--- a/web/core/components/modules/dropdowns/order-by.tsx
+++ b/web/core/components/modules/dropdowns/order-by.tsx
@@ -1,11 +1,12 @@
"use client";
import { ArrowDownWideNarrow, ArrowUpWideNarrow, Check, ChevronDown } from "lucide-react";
+import { MODULE_ORDER_BY_OPTIONS } from "@plane/constants";
+import { useTranslation } from "@plane/i18n";
import { TModuleOrderByOptions } from "@plane/types";
// ui
import { CustomMenu, getButtonStyling } from "@plane/ui";
// helpers
-import { MODULE_ORDER_BY_OPTIONS } from "@/constants/module";
import { cn } from "@/helpers/common.helper";
// types
// constants
@@ -17,6 +18,8 @@ type Props = {
export const ModuleOrderByDropdown: React.FC<Props> = (props) => {
const { onChange, value } = props;
+ // hooks
+ const { t } = useTranslation();
const orderByDetails = MODULE_ORDER_BY_OPTIONS.find((option) => value?.includes(option.key));
@@ -28,7 +31,7 @@ export const ModuleOrderByDropdown: React.FC<Props> = (props) => {
customButton={
<div className={cn(getButtonStyling("neutral-primary", "sm"), "px-2 text-custom-text-300")}>
{!isDescending ? <ArrowUpWideNarrow className="size-3 " /> : <ArrowDownWideNarrow className="size-3 " />}
- {orderByDetails?.label}
+ {orderByDetails && t(orderByDetails?.i18n_label)}
<ChevronDown className="size-3" strokeWidth={2} />
</div>
}
@@ -45,7 +48,7 @@ export const ModuleOrderByDropdown: React.FC<Props> = (props) => {
else onChange(option.key);
}}
>
- {option.label}
+ {t(option.i18n_label)}
{value?.includes(option.key) && <Check className="h-3 w-3" />}
</CustomMenu.MenuItem>
))}
diff --git a/web/core/components/modules/form.tsx b/web/core/components/modules/form.tsx
index a13d7fbac6..4123c0bb10 100644
--- a/web/core/components/modules/form.tsx
+++ b/web/core/components/modules/form.tsx
@@ -2,14 +2,15 @@
import { useEffect } from "react";
import { Controller, useForm } from "react-hook-form";
+// plane imports
+import { ETabIndices } from "@plane/constants";
+import { useTranslation } from "@plane/i18n";
import { IModule } from "@plane/types";
// ui
import { Button, Input, TextArea } from "@plane/ui";
// components
import { DateRangeDropdown, ProjectDropdown, MemberDropdown } from "@/components/dropdowns";
import { ModuleStatusSelect } from "@/components/modules";
-// constants
-import { ETabIndices } from "@/constants/tab-indices";
// helpers
import { getDate, renderFormattedPayloadDate } from "@/helpers/date-time.helper";
import { shouldRenderProject } from "@/helpers/project.helper";
@@ -55,6 +56,8 @@ export const ModuleForm: React.FC<Props> = (props) => {
const { getIndex } = getTabIndex(ETabIndices.PROJECT_MODULE, isMobile);
+ const { t } = useTranslation();
+
const handleCreateUpdateModule = async (formData: Partial<IModule>) => {
await handleFormSubmit(formData, dirtyFields);
@@ -83,8 +86,10 @@ export const ModuleForm: React.FC<Props> = (props) => {
<ProjectDropdown
value={value}
onChange={(val) => {
- onChange(val);
- setActiveProject(val);
+ if (!Array.isArray(val)) {
+ onChange(val);
+ setActiveProject(val);
+ }
}}
multiple={false}
buttonVariant="border-with-text"
@@ -95,7 +100,9 @@ export const ModuleForm: React.FC<Props> = (props) => {
)}
/>
)}
- <h3 className="text-xl font-medium text-custom-text-200">{status ? "Update" : "Create"} module</h3>
+ <h3 className="text-xl font-medium text-custom-text-200">
+ {status ? t("common.update") : t("common.create")} {t("common.module").toLowerCase()}
+ </h3>
</div>
<div className="space-y-3">
<div className="space-y-1">
@@ -103,10 +110,10 @@ export const ModuleForm: React.FC<Props> = (props) => {
control={control}
name="name"
rules={{
- required: "Title is required",
+ required: t("title_is_required"),
maxLength: {
value: 255,
- message: "Title should be less than 255 characters",
+ message: t("title_should_be_less_than_255_characters"),
},
}}
render={({ field: { value, onChange } }) => (
@@ -117,7 +124,7 @@ export const ModuleForm: React.FC<Props> = (props) => {
value={value}
onChange={onChange}
hasError={Boolean(errors?.name)}
- placeholder="Title"
+ placeholder={t("title")}
className="w-full text-base"
tabIndex={getIndex("name")}
autoFocus
@@ -136,7 +143,7 @@ export const ModuleForm: React.FC<Props> = (props) => {
name="description"
value={value}
onChange={onChange}
- placeholder="Description"
+ placeholder={t("description")}
className="w-full text-base resize-none min-h-24"
hasError={Boolean(errors?.description)}
tabIndex={getIndex("description")}
@@ -165,8 +172,8 @@ export const ModuleForm: React.FC<Props> = (props) => {
onChangeEndDate(val?.to ? renderFormattedPayloadDate(val.to) : null);
}}
placeholder={{
- from: "Start date",
- to: "End date",
+ from: t("start_date"),
+ to: t("end_date"),
}}
hideIcon={{
to: true,
@@ -191,7 +198,7 @@ export const ModuleForm: React.FC<Props> = (props) => {
projectId={projectId}
multiple={false}
buttonVariant="border-with-text"
- placeholder="Lead"
+ placeholder={t("lead")}
tabIndex={getIndex("lead")}
/>
</div>
@@ -209,7 +216,7 @@ export const ModuleForm: React.FC<Props> = (props) => {
multiple
buttonVariant={value && value.length > 0 ? "transparent-without-text" : "border-with-text"}
buttonClassName={value && value.length > 0 ? "hover:bg-transparent px-0" : ""}
- placeholder="Members"
+ placeholder={t("members")}
tabIndex={getIndex("member_ids")}
/>
</div>
@@ -220,10 +227,16 @@ export const ModuleForm: React.FC<Props> = (props) => {
</div>
<div className="px-5 py-4 flex items-center justify-end gap-2 border-t-[0.5px] border-custom-border-200">
<Button variant="neutral-primary" size="sm" onClick={handleClose} tabIndex={getIndex("cancel")}>
- Cancel
+ {t("cancel")}
</Button>
<Button variant="primary" size="sm" type="submit" loading={isSubmitting} tabIndex={getIndex("submit")}>
- {status ? (isSubmitting ? "Updating" : "Update Module") : isSubmitting ? "Creating" : "Create Module"}
+ {status
+ ? isSubmitting
+ ? t("updating")
+ : t("project_module.update_module")
+ : isSubmitting
+ ? t("creating")
+ : t("project_module.create_module")}
</Button>
</div>
</form>
diff --git a/web/core/components/modules/gantt-chart/blocks.tsx b/web/core/components/modules/gantt-chart/blocks.tsx
index 8c1567011d..ace0b7f809 100644
--- a/web/core/components/modules/gantt-chart/blocks.tsx
+++ b/web/core/components/modules/gantt-chart/blocks.tsx
@@ -4,12 +4,12 @@ import { observer } from "mobx-react";
import Link from "next/link";
import { useParams } from "next/navigation";
// ui
+import { MODULE_STATUS } from "@plane/constants";
import { Tooltip, ModuleStatusIcon } from "@plane/ui";
// components
import { SIDEBAR_WIDTH } from "@/components/gantt-chart/constants";
import { getBlockViewDetails } from "@/components/issues/issue-layouts/utils";
// constants
-import { MODULE_STATUS } from "@/constants/module";
// hooks
import { useModule } from "@/hooks/store";
import { useAppRouter } from "@/hooks/use-app-router";
diff --git a/web/core/components/modules/index.ts b/web/core/components/modules/index.ts
index 405509891a..a9a4e65e45 100644
--- a/web/core/components/modules/index.ts
+++ b/web/core/components/modules/index.ts
@@ -14,7 +14,7 @@ export * from "./module-peek-overview";
export * from "./quick-actions";
export * from "./module-list-item-action";
export * from "./module-view-header";
-
+export * from "./module-layout-icon";
export * from "./analytics-sidebar";
// archived modules
export * from "./archived-modules";
diff --git a/web/core/components/modules/modal.tsx b/web/core/components/modules/modal.tsx
index aed1b90196..8cfc8820c8 100644
--- a/web/core/components/modules/modal.tsx
+++ b/web/core/components/modules/modal.tsx
@@ -4,13 +4,13 @@ import React, { useEffect, useState } from "react";
import { observer } from "mobx-react";
import { useForm } from "react-hook-form";
// types
+import { MODULE_CREATED, MODULE_UPDATED } from "@plane/constants";
import type { IModule } from "@plane/types";
// ui
import { EModalPosition, EModalWidth, ModalCore, TOAST_TYPE, setToast } from "@plane/ui";
// components
import { ModuleForm } from "@/components/modules";
// constants
-import { MODULE_CREATED, MODULE_UPDATED } from "@/constants/event-tracker";
// hooks
import { useEventTracker, useModule, useProject } from "@/hooks/store";
import { usePlatformOS } from "@/hooks/use-platform-os";
diff --git a/web/core/components/modules/module-card-item.tsx b/web/core/components/modules/module-card-item.tsx
index 10086cfe2e..9585755eef 100644
--- a/web/core/components/modules/module-card-item.tsx
+++ b/web/core/components/modules/module-card-item.tsx
@@ -6,7 +6,14 @@ import Link from "next/link";
import { useParams, usePathname, useSearchParams } from "next/navigation";
import { Info, SquareUser } from "lucide-react";
// plane package imports
-import { PROGRESS_STATE_GROUPS_DETAILS } from "@plane/constants";
+import {
+ MODULE_STATUS,
+ PROGRESS_STATE_GROUPS_DETAILS,
+ MODULE_FAVORITED,
+ MODULE_UNFAVORITED,
+ EUserPermissions,
+ EUserPermissionsLevel,
+} from "@plane/constants";
import { IModule } from "@plane/types";
import {
Card,
@@ -24,8 +31,6 @@ import { ButtonAvatars } from "@/components/dropdowns/member/avatar";
import { ModuleQuickActions } from "@/components/modules";
import { ModuleStatusDropdown } from "@/components/modules/module-status-dropdown";
// constants
-import { MODULE_FAVORITED, MODULE_UNFAVORITED } from "@/constants/event-tracker";
-import { MODULE_STATUS } from "@/constants/module";
// helpers
import { getDate, renderFormattedPayloadDate } from "@/helpers/date-time.helper";
import { generateQueryParams } from "@/helpers/router.helper";
@@ -34,7 +39,6 @@ import { useEventTracker, useMember, useModule, useUserPermissions } from "@/hoo
import { useAppRouter } from "@/hooks/use-app-router";
import { usePlatformOS } from "@/hooks/use-platform-os";
// plane web constants
-import { EUserPermissions, EUserPermissionsLevel } from "@/plane-web/constants/user-permissions";
type Props = {
moduleId: string;
@@ -177,11 +181,11 @@ export const ModuleCardItem: React.FC<Props> = observer((props) => {
const issueCount = module
? !moduleTotalIssues || moduleTotalIssues === 0
- ? `0 Issue`
+ ? `0 work items`
: moduleTotalIssues === moduleCompletedIssues
- ? `${moduleTotalIssues} Issue${moduleTotalIssues > 1 ? `s` : ``}`
- : `${moduleCompletedIssues}/${moduleTotalIssues} Issues`
- : `0 Issue`;
+ ? `${moduleTotalIssues} Work item${moduleTotalIssues > 1 ? `s` : ``}`
+ : `${moduleCompletedIssues}/${moduleTotalIssues} Work items`
+ : `0 work items`;
const moduleLeadDetails = moduleDetails.lead_id ? getUserDetails(moduleDetails.lead_id) : undefined;
@@ -219,7 +223,7 @@ export const ModuleCardItem: React.FC<Props> = observer((props) => {
<div className="flex items-center justify-between">
<div className="flex items-center gap-1.5 text-custom-text-200">
<LayersIcon className="h-4 w-4 text-custom-text-300" />
- <span className="text-xs text-custom-text-300">{issueCount ?? "0 Issue"}</span>
+ <span className="text-xs text-custom-text-300">{issueCount ?? "0 Work item"}</span>
</div>
{moduleLeadDetails ? (
<span className="cursor-default">
diff --git a/web/core/components/modules/module-layout-icon.tsx b/web/core/components/modules/module-layout-icon.tsx
new file mode 100644
index 0000000000..a53fa92b95
--- /dev/null
+++ b/web/core/components/modules/module-layout-icon.tsx
@@ -0,0 +1,38 @@
+import * as React from "react";
+import { GanttChartSquare, LayoutGrid, List } from "lucide-react";
+import { TModuleLayoutOptions } from "@plane/types";
+import { cn } from "@plane/utils";
+
+interface ILayoutIcon {
+ className?: string;
+ containerClassName?: string;
+ layoutType: TModuleLayoutOptions;
+ size?: number;
+ withContainer?: boolean;
+}
+
+export const ModuleLayoutIcon: React.FC<ILayoutIcon> = (props) => {
+ const { layoutType, className = "", containerClassName = "", size = 14, withContainer = false } = props;
+
+ // get Layout icon
+ const icons = {
+ list: List,
+ board: LayoutGrid,
+ gantt: GanttChartSquare,
+ };
+ const Icon = icons[layoutType ?? "list"];
+
+ if (!Icon) return null;
+
+ return (
+ <>
+ {withContainer ? (
+ <div className={cn("flex items-center justify-center border rounded p-0.5 flex-shrink-0", containerClassName)}>
+ <Icon size={size} className={cn(className)} />
+ </div>
+ ) : (
+ <Icon size={size} className={cn("flex-shrink-0", className)} />
+ )}
+ </>
+ );
+};
diff --git a/web/core/components/modules/module-list-item-action.tsx b/web/core/components/modules/module-list-item-action.tsx
index a63b361eb0..c79860ac44 100644
--- a/web/core/components/modules/module-list-item-action.tsx
+++ b/web/core/components/modules/module-list-item-action.tsx
@@ -6,6 +6,8 @@ import { useParams } from "next/navigation";
// icons
import { SquareUser } from "lucide-react";
// types
+import { MODULE_STATUS, MODULE_FAVORITED, MODULE_UNFAVORITED , EUserPermissions, EUserPermissionsLevel } from "@plane/constants";
+import { useTranslation } from "@plane/i18n";
import { IModule } from "@plane/types";
// ui
import { FavoriteStar, TOAST_TYPE, Tooltip, setPromiseToast, setToast } from "@plane/ui";
@@ -14,12 +16,9 @@ import { DateRangeDropdown } from "@/components/dropdowns";
import { ModuleQuickActions } from "@/components/modules";
import { ModuleStatusDropdown } from "@/components/modules/module-status-dropdown";
// constants
-import { MODULE_FAVORITED, MODULE_UNFAVORITED } from "@/constants/event-tracker";
-import { MODULE_STATUS } from "@/constants/module";
// hooks
import { renderFormattedPayloadDate, getDate } from "@/helpers/date-time.helper";
import { useEventTracker, useMember, useModule, useUserPermissions } from "@/hooks/store";
-import { EUserPermissions, EUserPermissionsLevel } from "@/plane-web/constants/user-permissions";
import { ButtonAvatars } from "../dropdowns/member/avatar";
type Props = {
@@ -38,6 +37,8 @@ export const ModuleListItemAction: FC<Props> = observer((props) => {
const { getUserDetails } = useMember();
const { captureEvent } = useEventTracker();
+ const { t } = useTranslation();
+
// derived values
const moduleStatus = MODULE_STATUS.find((status) => status.value === moduleDetails.status);
@@ -146,8 +147,8 @@ export const ModuleListItemAction: FC<Props> = observer((props) => {
});
}}
placeholder={{
- from: "Start date",
- to: "End date",
+ from: t("start_date"),
+ to: t("end_date"),
}}
disabled={isDisabled}
hideIcon={{ from: renderIcon ?? true, to: renderIcon }}
diff --git a/web/core/components/modules/module-status-dropdown.tsx b/web/core/components/modules/module-status-dropdown.tsx
index ec021c49f9..a3b2d58817 100644
--- a/web/core/components/modules/module-status-dropdown.tsx
+++ b/web/core/components/modules/module-status-dropdown.tsx
@@ -1,50 +1,52 @@
-import React, { FC } from 'react'
-import { observer } from 'mobx-react';
-import { IModule } from '@plane/types';
-import { CustomSelect, TModuleStatus, ModuleStatusIcon } from '@plane/ui'
-import { MODULE_STATUS } from '@/constants/module'
+import React, { FC } from "react";
+import { observer } from "mobx-react";
+import { MODULE_STATUS } from "@plane/constants";
+import { useTranslation } from "@plane/i18n";
+import { IModule } from "@plane/types";
+import { CustomSelect, TModuleStatus, ModuleStatusIcon } from "@plane/ui";
type Props = {
- isDisabled: boolean;
- moduleDetails: IModule;
- handleModuleDetailsChange: (payload: Partial<IModule>) => Promise<void>;
+ isDisabled: boolean;
+ moduleDetails: IModule;
+ handleModuleDetailsChange: (payload: Partial<IModule>) => Promise<void>;
};
-export const ModuleStatusDropdown : FC<Props> = observer((props : Props) => {
- const {isDisabled, moduleDetails, handleModuleDetailsChange} = props;
- const moduleStatus = MODULE_STATUS.find((status) => status.value === moduleDetails.status);
+export const ModuleStatusDropdown: FC<Props> = observer((props: Props) => {
+ const { isDisabled, moduleDetails, handleModuleDetailsChange } = props;
+ const { t } = useTranslation();
+ const moduleStatus = MODULE_STATUS.find((status) => status.value === moduleDetails.status);
- if(!moduleStatus) return <></>
+ if (!moduleStatus) return <></>;
-return (
+ return (
<CustomSelect
- customButton={
- <span
- className={`flex h-6 w-20 items-center justify-center rounded-sm text-center text-xs ${
- isDisabled ? "cursor-not-allowed" : "cursor-pointer"
- }`}
- style={{
- color: moduleStatus ? moduleStatus.color : "#a3a3a2",
- backgroundColor: moduleStatus ? `${moduleStatus.color}20` : "#a3a3a220",
- }}
- >
- {moduleStatus?.label ?? "Backlog"}
- </span>
- }
- value={moduleStatus?.value}
- onChange={(val: TModuleStatus)=>{
- handleModuleDetailsChange({status: val})
- }}
- disabled={isDisabled}
+ customButton={
+ <span
+ className={`flex h-6 w-20 items-center justify-center rounded-sm text-center text-xs ${
+ isDisabled ? "cursor-not-allowed" : "cursor-pointer"
+ }`}
+ style={{
+ color: moduleStatus ? moduleStatus.color : "#a3a3a2",
+ backgroundColor: moduleStatus ? `${moduleStatus.color}20` : "#a3a3a220",
+ }}
+ >
+ {(moduleStatus && t(moduleStatus?.i18n_label)) ?? t("project_modules.status.backlog")}
+ </span>
+ }
+ value={moduleStatus?.value}
+ onChange={(val: TModuleStatus) => {
+ handleModuleDetailsChange({ status: val });
+ }}
+ disabled={isDisabled}
>
- {MODULE_STATUS.map((status) => (
- <CustomSelect.Option key={status.value} value={status.value}>
- <div className="flex items-center gap-2">
- <ModuleStatusIcon status={status.value} />
- {status.label}
- </div>
- </CustomSelect.Option>
- ))}
- </CustomSelect>
- )
-})
\ No newline at end of file
+ {MODULE_STATUS.map((status) => (
+ <CustomSelect.Option key={status.value} value={status.value}>
+ <div className="flex items-center gap-2">
+ <ModuleStatusIcon status={status.value} />
+ {t(status.i18n_label)}
+ </div>
+ </CustomSelect.Option>
+ ))}
+ </CustomSelect>
+ );
+});
diff --git a/web/core/components/modules/module-view-header.tsx b/web/core/components/modules/module-view-header.tsx
index 6afcf2cc09..149545113d 100644
--- a/web/core/components/modules/module-view-header.tsx
+++ b/web/core/components/modules/module-view-header.tsx
@@ -5,8 +5,10 @@ import { observer } from "mobx-react";
import { useParams } from "next/navigation";
import { ListFilter, Search, X } from "lucide-react";
// plane helpers
+import { MODULE_VIEW_LAYOUTS } from "@plane/constants";
import { useOutsideClickDetector } from "@plane/hooks";
// types
+import { useTranslation } from "@plane/i18n";
import { TModuleFilters } from "@plane/types";
// ui
import { Tooltip } from "@plane/ui";
@@ -16,12 +18,13 @@ import { cn } from "@plane/utils";
import { FiltersDropdown } from "@/components/issues";
import { ModuleFiltersSelection, ModuleOrderByDropdown } from "@/components/modules/dropdowns";
// constants
-import { MODULE_VIEW_LAYOUTS } from "@/constants/module";
// helpers
import { calculateTotalFilters } from "@/helpers/filter.helper";
// hooks
import { useMember, useModuleFilter } from "@/hooks/store";
import { usePlatformOS } from "@/hooks/use-platform-os";
+import { ModuleLayoutIcon } from "./module-layout-icon";
+// i18n
export const ModuleViewHeader: FC = observer(() => {
// refs
@@ -42,6 +45,7 @@ export const ModuleViewHeader: FC = observer(() => {
updateFilters,
updateSearchQuery,
} = useModuleFilter();
+ const { t } = useTranslation();
// states
const [isSearchOpen, setIsSearchOpen] = useState(searchQuery !== "" ? true : false);
@@ -163,7 +167,7 @@ export const ModuleViewHeader: FC = observer(() => {
</FiltersDropdown>
<div className="hidden md:flex items-center gap-1 rounded bg-custom-background-80 p-1">
{MODULE_VIEW_LAYOUTS.map((layout) => (
- <Tooltip key={layout.key} tooltipContent={layout.title} isMobile={isMobile}>
+ <Tooltip key={layout.key} tooltipContent={t(layout.i18n_title)} isMobile={isMobile}>
<button
type="button"
className={cn(
@@ -177,12 +181,7 @@ export const ModuleViewHeader: FC = observer(() => {
updateDisplayFilters(projectId.toString(), { layout: layout.key });
}}
>
- <layout.icon
- strokeWidth={2}
- className={cn("h-3.5 w-3.5 text-custom-text-200", {
- "text-custom-text-100": displayFilters?.layout === layout.key,
- })}
- />
+ <ModuleLayoutIcon layoutType={layout.key} />
</button>
</Tooltip>
))}
diff --git a/web/core/components/modules/modules-list-view.tsx b/web/core/components/modules/modules-list-view.tsx
index 4b45879f7a..4d8eac8d3c 100644
--- a/web/core/components/modules/modules-list-view.tsx
+++ b/web/core/components/modules/modules-list-view.tsx
@@ -2,15 +2,16 @@ import { observer } from "mobx-react";
import Image from "next/image";
import { useParams, useSearchParams } from "next/navigation";
// components
+import { EUserPermissionsLevel, EUserProjectRoles } from "@plane/constants";
+import { useTranslation } from "@plane/i18n";
import { ContentWrapper, Row, ERowVariant } from "@plane/ui";
import { ListLayout } from "@/components/core/list";
-import { EmptyState } from "@/components/empty-state";
+import { DetailedEmptyState, ComicBoxButton } from "@/components/empty-state";
import { ModuleCardItem, ModuleListItem, ModulePeekOverview, ModulesListGanttChartView } from "@/components/modules";
import { CycleModuleBoardLayout, CycleModuleListLayout, GanttLayoutLoader } from "@/components/ui";
-// constants
-import { EmptyStateType } from "@/constants/empty-state";
// hooks
-import { useCommandPalette, useEventTracker, useModule, useModuleFilter } from "@/hooks/store";
+import { useCommandPalette, useEventTracker, useModule, useModuleFilter, useUserPermissions } from "@/hooks/store";
+import { useResolvedAssetPath } from "@/hooks/use-resolved-asset-path";
import AllFiltersImage from "@/public/empty-state/module/all-filters.svg";
import NameFilterImage from "@/public/empty-state/module/name-filter.svg";
@@ -19,14 +20,24 @@ export const ModulesListView: React.FC = observer(() => {
const { workspaceSlug, projectId } = useParams();
const searchParams = useSearchParams();
const peekModule = searchParams.get("peekModule");
+ // plane hooks
+ const { t } = useTranslation();
// store hooks
const { toggleCreateModuleModal } = useCommandPalette();
const { setTrackElement } = useEventTracker();
const { getProjectModuleIds, getFilteredModuleIds, loader } = useModule();
const { currentProjectDisplayFilters: displayFilters, searchQuery } = useModuleFilter();
+ const { allowPermissions } = useUserPermissions();
// derived values
const projectModuleIds = projectId ? getProjectModuleIds(projectId.toString()) : undefined;
const filteredModuleIds = projectId ? getFilteredModuleIds(projectId.toString()) : undefined;
+ const canPerformEmptyStateActions = allowPermissions(
+ [EUserProjectRoles.ADMIN, EUserProjectRoles.MEMBER],
+ EUserPermissionsLevel.PROJECT
+ );
+ const generalViewResolvedPath = useResolvedAssetPath({
+ basePath: "/empty-state/onboarding/modules",
+ });
if (loader || !projectModuleIds || !filteredModuleIds)
return (
@@ -39,12 +50,22 @@ export const ModulesListView: React.FC = observer(() => {
if (projectModuleIds.length === 0)
return (
- <EmptyState
- type={EmptyStateType.PROJECT_MODULE}
- primaryButtonOnClick={() => {
- setTrackElement("Module empty state");
- toggleCreateModuleModal(true);
- }}
+ <DetailedEmptyState
+ title={t("project_module.empty_state.general.title")}
+ description={t("project_module.empty_state.general.description")}
+ assetPath={generalViewResolvedPath}
+ customPrimaryButton={
+ <ComicBoxButton
+ label={t("project_module.empty_state.general.primary_button.text")}
+ title={t("project_module.empty_state.general.primary_button.comic.title")}
+ description={t("project_module.empty_state.general.primary_button.comic.description")}
+ onClick={() => {
+ setTrackElement("Module empty state");
+ toggleCreateModuleModal(true);
+ }}
+ disabled={!canPerformEmptyStateActions}
+ />
+ }
/>
);
diff --git a/web/core/components/modules/quick-actions.tsx b/web/core/components/modules/quick-actions.tsx
index 178c8337b5..69b6e0eb44 100644
--- a/web/core/components/modules/quick-actions.tsx
+++ b/web/core/components/modules/quick-actions.tsx
@@ -5,6 +5,9 @@ import { observer } from "mobx-react";
// icons
import { ArchiveRestoreIcon, ExternalLink, LinkIcon, Pencil, Trash2 } from "lucide-react";
+// plane imports
+import { EUserPermissions, EUserPermissionsLevel } from "@plane/constants";
+import { useTranslation } from "@plane/i18n";
// ui
import { ArchiveIcon, ContextMenu, CustomMenu, TContextMenuItem, TOAST_TYPE, setToast } from "@plane/ui";
// components
@@ -15,7 +18,6 @@ import { copyUrlToClipboard } from "@/helpers/string.helper";
// hooks
import { useModule, useEventTracker, useUserPermissions } from "@/hooks/store";
import { useAppRouter } from "@/hooks/use-app-router";
-import { EUserPermissions, EUserPermissionsLevel } from "@/plane-web/constants/user-permissions";
type Props = {
parentRef: React.RefObject<HTMLDivElement>;
@@ -37,6 +39,8 @@ export const ModuleQuickActions: React.FC<Props> = observer((props) => {
const { allowPermissions } = useUserPermissions();
const { getModuleById, restoreModule } = useModule();
+
+ const { t } = useTranslation();
// derived values
const moduleDetails = getModuleById(moduleId);
const isArchived = !!moduleDetails?.archived_at;
@@ -95,7 +99,7 @@ export const ModuleQuickActions: React.FC<Props> = observer((props) => {
const MENU_ITEMS: TContextMenuItem[] = [
{
key: "edit",
- title: "Edit",
+ title: t("edit"),
icon: Pencil,
action: handleEditModule,
shouldRender: isEditingAllowed && !isArchived,
@@ -103,22 +107,22 @@ export const ModuleQuickActions: React.FC<Props> = observer((props) => {
{
key: "open-new-tab",
action: handleOpenInNewTab,
- title: "Open in new tab",
+ title: t("open_in_new_tab"),
icon: ExternalLink,
shouldRender: !isArchived,
},
{
key: "copy-link",
action: handleCopyText,
- title: "Copy link",
+ title: t("copy_link"),
icon: LinkIcon,
shouldRender: !isArchived,
},
{
key: "archive",
action: handleArchiveModule,
- title: "Archive",
- description: isInArchivableGroup ? undefined : "Only completed or canceled\nmodule can be archived.",
+ title: t("archive"),
+ description: isInArchivableGroup ? undefined : t("project_module.quick_actions.archive_module_description"),
icon: ArchiveIcon,
className: "items-start",
iconClassName: "mt-1",
@@ -128,14 +132,14 @@ export const ModuleQuickActions: React.FC<Props> = observer((props) => {
{
key: "restore",
action: handleRestoreModule,
- title: "Restore",
+ title: t("restore"),
icon: ArchiveRestoreIcon,
shouldRender: isEditingAllowed && isArchived,
},
{
key: "delete",
action: handleDeleteModule,
- title: "Delete",
+ title: t("delete"),
icon: Trash2,
shouldRender: isEditingAllowed,
},
diff --git a/web/core/components/modules/select/status.tsx b/web/core/components/modules/select/status.tsx
index f3a583516e..7da437946c 100644
--- a/web/core/components/modules/select/status.tsx
+++ b/web/core/components/modules/select/status.tsx
@@ -4,11 +4,12 @@ import React from "react";
// react hook form
import { Controller, FieldError, Control } from "react-hook-form";
+import { MODULE_STATUS } from "@plane/constants";
+import { useTranslation } from "@plane/i18n";
import type { IModule } from "@plane/types";
// ui
import { CustomSelect, DoubleCircleIcon, ModuleStatusIcon } from "@plane/ui";
// types
-import { MODULE_STATUS } from "@/constants/module";
// constants
type Props = {
@@ -17,39 +18,45 @@ type Props = {
tabIndex?: number;
};
-export const ModuleStatusSelect: React.FC<Props> = ({ control, error, tabIndex }) => (
- <Controller
- control={control}
- rules={{ required: true }}
- name="status"
- render={({ field: { value, onChange } }) => (
- <CustomSelect
- value={value}
- label={
- <div className={`flex items-center justify-center gap-2 text-xs py-0.5 ${error ? "text-red-500" : ""}`}>
- {value ? (
- <ModuleStatusIcon status={value} />
- ) : (
- <DoubleCircleIcon className={`h-3 w-3 ${error ? "text-red-500" : "text-custom-text-200"}`} />
- )}
- {MODULE_STATUS.find((s) => s.value === value)?.label ?? (
- <span className={`${error ? "text-red-500" : "text-custom-text-200"}`}>Status</span>
- )}
- </div>
- }
- onChange={onChange}
- tabIndex={tabIndex}
- noChevron
- >
- {MODULE_STATUS.map((status) => (
- <CustomSelect.Option key={status.value} value={status.value}>
- <div className="flex items-center gap-2">
- <ModuleStatusIcon status={status.value} />
- {status.label}
- </div>
- </CustomSelect.Option>
- ))}
- </CustomSelect>
- )}
- />
-);
+export const ModuleStatusSelect: React.FC<Props> = ({ control, error, tabIndex }) => {
+ const { t } = useTranslation();
+ return (
+ <Controller
+ control={control}
+ rules={{ required: true }}
+ name="status"
+ render={({ field: { value, onChange } }) => {
+ const selectedValue = MODULE_STATUS.find((s) => s.value === value);
+ return (
+ <CustomSelect
+ value={value}
+ label={
+ <div className={`flex items-center justify-center gap-2 text-xs py-0.5 ${error ? "text-red-500" : ""}`}>
+ {value ? (
+ <ModuleStatusIcon status={value} />
+ ) : (
+ <DoubleCircleIcon className={`h-3 w-3 ${error ? "text-red-500" : "text-custom-text-200"}`} />
+ )}
+ {(selectedValue && t(selectedValue?.i18n_label)) ?? (
+ <span className={`${error ? "text-red-500" : "text-custom-text-200"}`}>Status</span>
+ )}
+ </div>
+ }
+ onChange={onChange}
+ tabIndex={tabIndex}
+ noChevron
+ >
+ {MODULE_STATUS.map((status) => (
+ <CustomSelect.Option key={status.value} value={status.value}>
+ <div className="flex items-center gap-2">
+ <ModuleStatusIcon status={status.value} />
+ {t(status.i18n_label)}
+ </div>
+ </CustomSelect.Option>
+ ))}
+ </CustomSelect>
+ );
+ }}
+ />
+ );
+};
diff --git a/web/core/components/modules/sidebar-select/select-status.tsx b/web/core/components/modules/sidebar-select/select-status.tsx
index fcac3e01fa..9d7a7fda93 100644
--- a/web/core/components/modules/sidebar-select/select-status.tsx
+++ b/web/core/components/modules/sidebar-select/select-status.tsx
@@ -4,11 +4,12 @@
import React from "react";
// react-hook-form
import { Control, Controller, UseFormWatch } from "react-hook-form";
+import { MODULE_STATUS } from "@plane/constants";
+import { useTranslation } from "@plane/i18n";
import { IModule } from "@plane/types";
// ui
import { CustomSelect, DoubleCircleIcon } from "@plane/ui";
// types
-import { MODULE_STATUS } from "@/constants/module";
// common
// constants
@@ -18,45 +19,48 @@ type Props = {
watch: UseFormWatch<Partial<IModule>>;
};
-export const SidebarStatusSelect: React.FC<Props> = ({ control, submitChanges, watch }) => (
- <div className="flex flex-wrap items-center py-2">
- <div className="flex items-center gap-x-2 text-sm sm:basis-1/2">
- <DoubleCircleIcon className="h-4 w-4 flex-shrink-0" />
- <p>Status</p>
+export const SidebarStatusSelect: React.FC<Props> = ({ control, submitChanges, watch }) => {
+ const { t } = useTranslation();
+ return (
+ <div className="flex flex-wrap items-center py-2">
+ <div className="flex items-center gap-x-2 text-sm sm:basis-1/2">
+ <DoubleCircleIcon className="h-4 w-4 flex-shrink-0" />
+ <p>Status</p>
+ </div>
+ <div className="sm:basis-1/2">
+ <Controller
+ control={control}
+ name="status"
+ render={({ field: { value } }) => (
+ <CustomSelect
+ label={
+ <span className={`flex items-center gap-2 text-left capitalize ${value ? "" : "text-custom-text-100"}`}>
+ <span
+ className="h-2 w-2 flex-shrink-0 rounded-full"
+ style={{
+ backgroundColor: MODULE_STATUS?.find((option) => option.value === value)?.color,
+ }}
+ />
+ {watch("status")}
+ </span>
+ }
+ value={value}
+ onChange={(value: any) => {
+ submitChanges({ status: value });
+ }}
+ >
+ {MODULE_STATUS.map((option) => (
+ <CustomSelect.Option key={option.value} value={option.value}>
+ <div className="flex items-center gap-2">
+ <span className="h-2 w-2 flex-shrink-0 rounded-full" style={{ backgroundColor: option.color }} />
+ {t(option.i18n_label)}
+ </div>
+ </CustomSelect.Option>
+ ))}
+ </CustomSelect>
+ )}
+ />
+ </div>
</div>
- <div className="sm:basis-1/2">
- <Controller
- control={control}
- name="status"
- render={({ field: { value } }) => (
- <CustomSelect
- label={
- <span className={`flex items-center gap-2 text-left capitalize ${value ? "" : "text-custom-text-100"}`}>
- <span
- className="h-2 w-2 flex-shrink-0 rounded-full"
- style={{
- backgroundColor: MODULE_STATUS?.find((option) => option.value === value)?.color,
- }}
- />
- {watch("status")}
- </span>
- }
- value={value}
- onChange={(value: any) => {
- submitChanges({ status: value });
- }}
- >
- {MODULE_STATUS.map((option) => (
- <CustomSelect.Option key={option.value} value={option.value}>
- <div className="flex items-center gap-2">
- <span className="h-2 w-2 flex-shrink-0 rounded-full" style={{ backgroundColor: option.color }} />
- {option.label}
- </div>
- </CustomSelect.Option>
- ))}
- </CustomSelect>
- )}
- />
- </div>
- </div>
-);
+ );
+};
diff --git a/web/core/components/onboarding/create-workspace.tsx b/web/core/components/onboarding/create-workspace.tsx
index 56cbb14e37..7be711a1e9 100644
--- a/web/core/components/onboarding/create-workspace.tsx
+++ b/web/core/components/onboarding/create-workspace.tsx
@@ -4,13 +4,12 @@ import { useState } from "react";
import { observer } from "mobx-react";
import { Controller, useForm } from "react-hook-form";
// constants
-import { ORGANIZATION_SIZE, RESTRICTED_URLS } from "@plane/constants";
+import { ORGANIZATION_SIZE, RESTRICTED_URLS, WORKSPACE_CREATED, E_ONBOARDING } from "@plane/constants";
// types
+import { useTranslation } from "@plane/i18n";
import { IUser, IWorkspace, TOnboardingSteps } from "@plane/types";
// ui
import { Button, CustomSelect, Input, Spinner, TOAST_TYPE, setToast } from "@plane/ui";
-// constants
-import { E_ONBOARDING, WORKSPACE_CREATED } from "@/constants/event-tracker";
// hooks
import { useEventTracker, useUserProfile, useUserSettings, useWorkspace } from "@/hooks/store";
// services
@@ -31,6 +30,8 @@ export const CreateWorkspace: React.FC<Props> = observer((props) => {
// states
const [slugError, setSlugError] = useState(false);
const [invalidSlug, setInvalidSlug] = useState(false);
+ // plane hooks
+ const { t } = useTranslation();
// store hooks
const { updateUserProfile } = useUserProfile();
const { fetchCurrentUserSettings } = useUserSettings();
@@ -64,8 +65,8 @@ export const CreateWorkspace: React.FC<Props> = observer((props) => {
.then(async (workspaceResponse) => {
setToast({
type: TOAST_TYPE.SUCCESS,
- title: "Success!",
- message: "Workspace created successfully.",
+ title: t("workspace_creation.toast.success.title"),
+ message: t("workspace_creation.toast.success.message"),
});
captureWorkspaceEvent({
eventName: WORKSPACE_CREATED,
@@ -90,8 +91,8 @@ export const CreateWorkspace: React.FC<Props> = observer((props) => {
});
setToast({
type: TOAST_TYPE.ERROR,
- title: "Error!",
- message: "Workspace could not be created. Please try again.",
+ title: t("workspace_creation.toast.error.title"),
+ message: t("workspace_creation.toast.error.message"),
});
});
} else setSlugError(true);
@@ -99,8 +100,8 @@ export const CreateWorkspace: React.FC<Props> = observer((props) => {
.catch(() =>
setToast({
type: TOAST_TYPE.ERROR,
- title: "Error!",
- message: "Some error occurred while creating workspace. Please try again.",
+ title: t("workspace_creation.toast.error.title"),
+ message: t("workspace_creation.toast.error.message"),
})
);
};
@@ -144,10 +145,8 @@ export const CreateWorkspace: React.FC<Props> = observer((props) => {
</>
)}
<div className="text-center space-y-1 py-4 mx-auto">
- <h3 className="text-3xl font-bold text-onboarding-text-100">Create a workspace</h3>
- <p className="font-medium text-onboarding-text-400">
- To start using Plane, you need to create or join a workspace.
- </p>
+ <h3 className="text-3xl font-bold text-onboarding-text-100">{t("workspace_creation.heading")}</h3>
+ <p className="font-medium text-onboarding-text-400">{t("workspace_creation.subheading")}</p>
</div>
<form className="w-full mx-auto mt-2 space-y-4" onSubmit={handleSubmit(handleCreateWorkspace)}>
<div className="space-y-1">
@@ -155,19 +154,18 @@ export const CreateWorkspace: React.FC<Props> = observer((props) => {
className="text-sm text-onboarding-text-300 font-medium after:content-['*'] after:ml-0.5 after:text-red-500"
htmlFor="name"
>
- Name your workspace
+ {t("workspace_creation.form.name.label")}
</label>
<Controller
control={control}
name="name"
rules={{
- required: "This is a required field.",
+ required: t("common.errors.required"),
validate: (value) =>
- /^[\w\s-]*$/.test(value) ||
- `Workspaces names can contain only (" "), ( - ), ( _ ) and alphanumeric characters.`,
+ /^[\w\s-]*$/.test(value) || t("workspace_creation.errors.validation.name_alphanumeric"),
maxLength: {
value: 80,
- message: "Limit your name to 80 characters.",
+ message: t("workspace_creation.errors.validation.name_length"),
},
}}
render={({ field: { value, ref, onChange } }) => (
@@ -184,7 +182,7 @@ export const CreateWorkspace: React.FC<Props> = observer((props) => {
shouldValidate: true,
});
}}
- placeholder="Something familiar and recognizable is always best."
+ placeholder={t("workspace_creation.form.name.placeholder")}
ref={ref}
hasError={Boolean(errors.name)}
className="w-full border-onboarding-border-100 placeholder:text-custom-text-400"
@@ -200,16 +198,16 @@ export const CreateWorkspace: React.FC<Props> = observer((props) => {
className="text-sm text-onboarding-text-300 font-medium after:content-['*'] after:ml-0.5 after:text-red-500"
htmlFor="slug"
>
- Set your workspace&apos;s URL
+ {t("workspace_creation.form.url.label")}
</label>
<Controller
control={control}
name="slug"
rules={{
- required: "This is a required field.",
+ required: t("common.errors.required"),
maxLength: {
value: 48,
- message: "Limit your URL to 48 characters.",
+ message: t("workspace_creation.errors.validation.url_length"),
},
}}
render={({ field: { value, ref, onChange } }) => (
@@ -231,16 +229,18 @@ export const CreateWorkspace: React.FC<Props> = observer((props) => {
}}
ref={ref}
hasError={Boolean(errors.slug)}
- placeholder="workspace-name"
+ placeholder={t("workspace_creation.form.url.placeholder")}
className="w-full border-none !px-0"
/>
</div>
)}
/>
- <p className="text-sm text-onboarding-text-300">You can only edit the slug of the URL</p>
- {slugError && <p className="-mt-3 text-sm text-red-500">This URL is taken. Try something else.</p>}
+ <p className="text-sm text-onboarding-text-300">{t("workspace_creation.form.url.edit_slug")}</p>
+ {slugError && (
+ <p className="-mt-3 text-sm text-red-500">{t("workspace_creation.errors.validation.url_already_taken")}</p>
+ )}
{invalidSlug && (
- <p className="text-sm text-red-500">{`URLs can contain only ( - ), ( _ ) and alphanumeric characters.`}</p>
+ <p className="text-sm text-red-500">{t("workspace_creation.errors.validation.url_alphanumeric")}</p>
)}
{errors.slug && <span className="text-sm text-red-500">{errors.slug.message}</span>}
</div>
@@ -250,20 +250,20 @@ export const CreateWorkspace: React.FC<Props> = observer((props) => {
className="text-sm text-onboarding-text-300 font-medium after:content-['*'] after:ml-0.5 after:text-red-500"
htmlFor="organization_size"
>
- How many people will use this workspace?
+ {t("workspace_creation.form.organization_size.label")}
</label>
<div className="w-full">
<Controller
name="organization_size"
control={control}
- rules={{ required: "This is a required field." }}
+ rules={{ required: t("common.errors.required") }}
render={({ field: { value, onChange } }) => (
<CustomSelect
value={value}
onChange={onChange}
label={
ORGANIZATION_SIZE.find((c) => c === value) ?? (
- <span className="text-custom-text-400">Select a range</span>
+ <span className="text-custom-text-400">{t("workspace_creation.form.organization_size.placeholder")}</span>
)
}
buttonClassName="!border-[0.5px] !border-onboarding-border-100 !shadow-none !rounded-md"
@@ -284,7 +284,7 @@ export const CreateWorkspace: React.FC<Props> = observer((props) => {
</div>
</div>
<Button variant="primary" type="submit" size="lg" className="w-full" disabled={isButtonDisabled}>
- {isSubmitting ? <Spinner height="20px" width="20px" /> : "Continue"}
+ {isSubmitting ? <Spinner height="20px" width="20px" /> : t("workspace_creation.button.default")}
</Button>
</form>
</div>
diff --git a/web/core/components/onboarding/invitations.tsx b/web/core/components/onboarding/invitations.tsx
index d5dde220dc..f1882fe93f 100644
--- a/web/core/components/onboarding/invitations.tsx
+++ b/web/core/components/onboarding/invitations.tsx
@@ -1,13 +1,13 @@
"use client";
import React, { useState } from "react";
+// plane imports
+import { ROLE, MEMBER_ACCEPTED } from "@plane/constants";
// types
import { IWorkspaceMemberInvitation } from "@plane/types";
// ui
import { Button, Checkbox, Spinner } from "@plane/ui";
// constants
-import { MEMBER_ACCEPTED } from "@/constants/event-tracker";
-import { ROLE } from "@/constants/workspace";
// helpers
import { truncateText } from "@/helpers/string.helper";
import { getUserRole } from "@/helpers/user.helper";
diff --git a/web/core/components/onboarding/invite-members.tsx b/web/core/components/onboarding/invite-members.tsx
index 27b15610ee..34887be715 100644
--- a/web/core/components/onboarding/invite-members.tsx
+++ b/web/core/components/onboarding/invite-members.tsx
@@ -1,6 +1,7 @@
"use client";
import React, { useEffect, useRef, useState } from "react";
+import { observer } from "mobx-react";
import Image from "next/image";
import { useTheme } from "next-themes";
import {
@@ -18,19 +19,18 @@ import {
import { usePopper } from "react-popper";
import { Check, ChevronDown, Plus, XCircle } from "lucide-react";
import { Listbox } from "@headlessui/react";
+// plane imports
+import { ROLE, ROLE_DETAILS, MEMBER_INVITED, EUserPermissions } from "@plane/constants";
+import { useTranslation } from "@plane/i18n";
// types
import { IUser, IWorkspace } from "@plane/types";
// ui
import { Button, Input, Spinner, TOAST_TYPE, setToast } from "@plane/ui";
// constants
-import { MEMBER_INVITED } from "@/constants/event-tracker";
-import { ROLE, ROLE_DETAILS } from "@/constants/workspace";
// helpers
import { getUserRole } from "@/helpers/user.helper";
// hooks
import { useEventTracker } from "@/hooks/store";
-// plane web constants
-import { EUserPermissions } from "@/plane-web/constants/user-permissions";
// services
import { WorkspaceService } from "@/plane-web/services";
// assets
@@ -87,7 +87,7 @@ const placeholderEmails = [
];
-const InviteMemberInput: React.FC<InviteMemberFormProps> = (props) => {
+const InviteMemberInput: React.FC<InviteMemberFormProps> = observer((props) => {
const {
control,
index,
@@ -104,6 +104,8 @@ const InviteMemberInput: React.FC<InviteMemberFormProps> = (props) => {
const [referenceElement, setReferenceElement] = useState<HTMLButtonElement | null>(null);
const [popperElement, setPopperElement] = useState<HTMLDivElement | null>(null);
+ const { t } = useTranslation();
+
const email = watch(`emails.${index}.email`);
const emailOnChange = (event: React.ChangeEvent<HTMLInputElement>) => {
@@ -234,8 +236,8 @@ const InviteMemberInput: React.FC<InviteMemberFormProps> = (props) => {
{({ selected }) => (
<div className="flex items-center text-wrap gap-2 p-1">
<div className="flex flex-col">
- <div className="text-sm font-medium">{value.title}</div>
- <div className="flex text-xs text-custom-text-300">{value.description}</div>
+ <div className="text-sm font-medium">{t(value.i18n_title)}</div>
+ <div className="flex text-xs text-custom-text-300">{t(value.i18n_description)}</div>
</div>
{selected && <Check className="h-4 w-4 shrink-0" />}
</div>
@@ -266,7 +268,7 @@ const InviteMemberInput: React.FC<InviteMemberFormProps> = (props) => {
)}
</div>
);
-};
+});
export const InviteMembers: React.FC<Props> = (props) => {
const { finishOnboarding, totalSteps, workspace } = props;
diff --git a/web/core/components/onboarding/profile-setup.tsx b/web/core/components/onboarding/profile-setup.tsx
index fee8dead9a..76cf98e913 100644
--- a/web/core/components/onboarding/profile-setup.tsx
+++ b/web/core/components/onboarding/profile-setup.tsx
@@ -7,6 +7,8 @@ import { useTheme } from "next-themes";
import { Controller, useForm } from "react-hook-form";
import { Eye, EyeOff } from "lucide-react";
// types
+import { USER_DETAILS, E_ONBOARDING_STEP_1, E_ONBOARDING_STEP_2 } from "@plane/constants";
+import { useTranslation } from "@plane/i18n";
import { IUser, TUserProfile, TOnboardingSteps } from "@plane/types";
// ui
import { Button, Input, Spinner, TOAST_TYPE, setToast } from "@plane/ui";
@@ -15,7 +17,6 @@ import { PasswordStrengthMeter } from "@/components/account";
import { UserImageUploadModal } from "@/components/core";
import { OnboardingHeader, SwitchAccountDropdown } from "@/components/onboarding";
// constants
-import { USER_DETAILS, E_ONBOARDING_STEP_1, E_ONBOARDING_STEP_2 } from "@/constants/event-tracker";
// helpers
import { getFileURL } from "@/helpers/file.helper";
import { E_PASSWORD_STRENGTH, getPasswordStrength } from "@/helpers/password.helper";
@@ -91,6 +92,8 @@ export const ProfileSetup: React.FC<Props> = observer((props) => {
password: false,
retypePassword: false,
});
+ // plane hooks
+ const { t } = useTranslation();
// hooks
const { resolvedTheme } = useTheme();
// store hooks
@@ -413,7 +416,7 @@ export const ProfileSetup: React.FC<Props> = observer((props) => {
<>
<div className="space-y-1">
<label className="text-sm text-onboarding-text-300 font-medium" htmlFor="password">
- Set a password (optional)
+ Set a password ({t("common.optional")})
</label>
<Controller
control={control}
@@ -454,7 +457,7 @@ export const ProfileSetup: React.FC<Props> = observer((props) => {
</div>
<div className="space-y-1">
<label className="text-sm text-onboarding-text-300 font-medium" htmlFor="confirm_password">
- Confirm password (optional)
+ {t("auth.common.password.confirm_password.label")} ({t("common.optional")})
</label>
<Controller
control={control}
@@ -473,7 +476,7 @@ export const ProfileSetup: React.FC<Props> = observer((props) => {
onChange={onChange}
ref={ref}
hasError={Boolean(errors.confirm_password)}
- placeholder="Confirm password..."
+ placeholder={t("auth.common.password.confirm_password.placeholder")}
className="w-full border-onboarding-border-100 pr-12 placeholder:text-onboarding-text-400"
/>
{showPassword.retypePassword ? (
diff --git a/web/core/components/onboarding/tour/root.tsx b/web/core/components/onboarding/tour/root.tsx
index 20c3fbcbd5..2c49934159 100644
--- a/web/core/components/onboarding/tour/root.tsx
+++ b/web/core/components/onboarding/tour/root.tsx
@@ -5,11 +5,11 @@ import { observer } from "mobx-react";
import Image, { StaticImageData } from "next/image";
import { X } from "lucide-react";
// ui
+import { PRODUCT_TOUR_SKIPPED, PRODUCT_TOUR_STARTED } from "@plane/constants";
import { Button } from "@plane/ui";
// components
import { TourSidebar } from "@/components/onboarding";
// constants
-import { PRODUCT_TOUR_SKIPPED, PRODUCT_TOUR_STARTED } from "@/constants/event-tracker";
// hooks
import { useCommandPalette, useEventTracker, useUser } from "@/hooks/store";
// assets
@@ -38,9 +38,9 @@ const TOUR_STEPS: {
}[] = [
{
key: "issues",
- title: "Plan with issues",
+ title: "Plan with work items",
description:
- "The issue is the building block of the Plane. Most concepts in Plane are either associated with issues and their properties.",
+ "The work item is the building block of the Plane. Most concepts in Plane are either associated with issues and their properties.",
image: IssuesTour,
nextStep: "cycles",
},
@@ -65,7 +65,7 @@ const TOUR_STEPS: {
key: "views",
title: "Views",
description:
- "Create custom filters to display only the issues that matter to you. Save and share your filters in just a few clicks.",
+ "Create custom filters to display only the work items that matter to you. Save and share your filters in just a few clicks.",
image: ViewsTour,
prevStep: "modules",
nextStep: "pages",
@@ -73,7 +73,7 @@ const TOUR_STEPS: {
{
key: "pages",
title: "Document with pages",
- description: "Use Pages to quickly jot down issues when you're in a meeting or starting a day.",
+ description: "Use Pages to quickly jot down work items when you're in a meeting or starting a day.",
image: PagesTour,
prevStep: "views",
},
diff --git a/web/core/components/page-views/workspace-dashboard.tsx b/web/core/components/page-views/workspace-dashboard.tsx
index 8db841344d..19d3590b07 100644
--- a/web/core/components/page-views/workspace-dashboard.tsx
+++ b/web/core/components/page-views/workspace-dashboard.tsx
@@ -1,23 +1,35 @@
import { useEffect } from "react";
import { observer } from "mobx-react";
import { useParams } from "next/navigation";
-// components
+// plane imports
+import { EUserPermissionsLevel, PRODUCT_TOUR_COMPLETED, EUserPermissions } from "@plane/constants";
+import { useTranslation } from "@plane/i18n";
import { ContentWrapper } from "@plane/ui";
+// components
import { DashboardWidgets } from "@/components/dashboard";
-import { EmptyState } from "@/components/empty-state";
+import { ComicBoxButton, DetailedEmptyState } from "@/components/empty-state";
import { IssuePeekOverview } from "@/components/issues";
import { TourRoot } from "@/components/onboarding";
import { UserGreetingsView } from "@/components/user";
// constants
-import { EmptyStateType } from "@/constants/empty-state";
-import { PRODUCT_TOUR_COMPLETED } from "@/constants/event-tracker";
// helpers
import { cn } from "@/helpers/common.helper";
// hooks
-import { useCommandPalette, useUserProfile, useEventTracker, useDashboard, useProject, useUser } from "@/hooks/store";
+import {
+ useCommandPalette,
+ useUserProfile,
+ useEventTracker,
+ useDashboard,
+ useProject,
+ useUser,
+ useUserPermissions,
+} from "@/hooks/store";
+import { useResolvedAssetPath } from "@/hooks/use-resolved-asset-path";
import useSize from "@/hooks/use-window-size";
export const WorkspaceDashboardView = observer(() => {
+ // plane hooks
+ const { t } = useTranslation();
// store hooks
const { captureEvent, setTrackElement } = useEventTracker();
const { toggleCreateProjectModal } = useCommandPalette();
@@ -26,8 +38,11 @@ export const WorkspaceDashboardView = observer(() => {
const { data: currentUserProfile, updateTourCompleted } = useUserProfile();
const { homeDashboardId, fetchHomeDashboardWidgets } = useDashboard();
const { joinedProjectIds, loader } = useProject();
+ const { allowPermissions } = useUserPermissions();
+ // helper hooks
const [windowWidth] = useSize();
+ const resolvedPath = useResolvedAssetPath({ basePath: "/empty-state/onboarding/dashboard" });
const handleTourCompleted = () => {
updateTourCompleted()
@@ -49,6 +64,11 @@ export const WorkspaceDashboardView = observer(() => {
fetchHomeDashboardWidgets(workspaceSlug?.toString());
}, [fetchHomeDashboardWidgets, workspaceSlug]);
+ const canPerformEmptyStateActions = allowPermissions(
+ [EUserPermissions.ADMIN, EUserPermissions.MEMBER],
+ EUserPermissionsLevel.WORKSPACE
+ );
+
// TODO: refactor loader implementation
return (
<>
@@ -73,12 +93,22 @@ export const WorkspaceDashboardView = observer(() => {
</ContentWrapper>
</>
) : (
- <EmptyState
- type={EmptyStateType.WORKSPACE_DASHBOARD}
- primaryButtonOnClick={() => {
- setTrackElement("Dashboard empty state");
- toggleCreateProjectModal(true);
- }}
+ <DetailedEmptyState
+ title={t("workspace_dashboard.empty_state.general.title")}
+ description={t("workspace_dashboard.empty_state.general.description")}
+ assetPath={resolvedPath}
+ customPrimaryButton={
+ <ComicBoxButton
+ label={t("workspace_dashboard.empty_state.general.primary_button.text")}
+ title={t("workspace_dashboard.empty_state.general.primary_button.comic.title")}
+ description={t("workspace_dashboard.empty_state.general.primary_button.comic.description")}
+ onClick={() => {
+ setTrackElement("Dashboard empty state");
+ toggleCreateProjectModal(true);
+ }}
+ disabled={!canPerformEmptyStateActions}
+ />
+ }
/>
)}
</>
diff --git a/web/core/components/pages/dropdowns/actions.tsx b/web/core/components/pages/dropdowns/actions.tsx
index b948ca6bcb..2992578c2b 100644
--- a/web/core/components/pages/dropdowns/actions.tsx
+++ b/web/core/components/pages/dropdowns/actions.tsx
@@ -15,14 +15,14 @@ import {
LockKeyholeOpen,
Trash2,
} from "lucide-react";
+// constants
+import { EPageAccess } from "@plane/constants";
// plane editor
import { EditorRefApi } from "@plane/editor";
// plane ui
import { ArchiveIcon, ContextMenu, CustomMenu, TContextMenuItem } from "@plane/ui";
// components
import { DeletePageModal } from "@/components/pages";
-// constants
-import { EPageAccess } from "@/constants/page";
// helpers
import { cn } from "@/helpers/common.helper";
// hooks
diff --git a/web/core/components/pages/header/root.tsx b/web/core/components/pages/header/root.tsx
index 75b91a8774..eac81f61cd 100644
--- a/web/core/components/pages/header/root.tsx
+++ b/web/core/components/pages/header/root.tsx
@@ -1,6 +1,7 @@
import { useCallback } from "react";
import { observer } from "mobx-react";
import { ListFilter } from "lucide-react";
+import { useTranslation } from "@plane/i18n";
import { TPageFilterProps, TPageNavigationTabs } from "@plane/types";
// components
import { Header, EHeaderVariant } from "@plane/ui";
@@ -25,6 +26,7 @@ type Props = {
export const PagesListHeaderRoot: React.FC<Props> = observer((props) => {
const { pageType, projectId, workspaceSlug } = props;
+ const { t } = useTranslation();
// store hooks
const { filters, updateFilters, clearAllFilters } = useProjectPages();
const {
@@ -69,7 +71,7 @@ export const PagesListHeaderRoot: React.FC<Props> = observer((props) => {
/>
<FiltersDropdown
icon={<ListFilter className="h-3 w-3" />}
- title="Filters"
+ title={t("common.filters")}
placement="bottom-end"
isFiltersApplied={isFiltersApplied}
>
diff --git a/web/core/components/pages/list/applied-filters/root.tsx b/web/core/components/pages/list/applied-filters/root.tsx
index 48e79f9580..df8063b281 100644
--- a/web/core/components/pages/list/applied-filters/root.tsx
+++ b/web/core/components/pages/list/applied-filters/root.tsx
@@ -1,4 +1,5 @@
import { X } from "lucide-react";
+import { useTranslation } from "@plane/i18n";
import { TPageFilterProps } from "@plane/types";
// components
import { Tag } from "@plane/ui";
@@ -19,6 +20,7 @@ const DATE_FILTERS = ["created_at"];
export const PageAppliedFiltersList: React.FC<Props> = (props) => {
const { appliedFilters, handleClearAllFilters, handleRemoveFilter, alwaysAllowEditing } = props;
+ const { t } = useTranslation();
if (!appliedFilters) return null;
if (Object.keys(appliedFilters).length === 0) return null;
@@ -67,7 +69,7 @@ export const PageAppliedFiltersList: React.FC<Props> = (props) => {
{isEditingAllowed && (
<button type="button" onClick={handleClearAllFilters}>
<Tag>
- Clear all
+ {t("common.clear_all")}
<X size={12} strokeWidth={2} />
</Tag>
</button>
diff --git a/web/core/components/pages/list/order-by.tsx b/web/core/components/pages/list/order-by.tsx
index ee1a9b978e..5385ee5ae9 100644
--- a/web/core/components/pages/list/order-by.tsx
+++ b/web/core/components/pages/list/order-by.tsx
@@ -5,8 +5,6 @@ import { ArrowDownWideNarrow, ArrowUpWideNarrow, Check, ChevronDown } from "luci
import { TPageFiltersSortBy, TPageFiltersSortKey } from "@plane/types";
// ui
import { CustomMenu, getButtonStyling } from "@plane/ui";
-// constants
-import { PAGE_SORTING_KEY_OPTIONS } from "@/constants/page";
// helpers
import { cn } from "@/helpers/common.helper";
@@ -16,6 +14,15 @@ type Props = {
sortKey: TPageFiltersSortKey;
};
+const PAGE_SORTING_KEY_OPTIONS: {
+ key: TPageFiltersSortKey;
+ label: string;
+}[] = [
+ { key: "name", label: "Name" },
+ { key: "created_at", label: "Date created" },
+ { key: "updated_at", label: "Date modified" },
+];
+
export const PageOrderByDropdown: React.FC<Props> = (props) => {
const { onChange, sortBy, sortKey } = props;
diff --git a/web/core/components/pages/modals/create-page-modal.tsx b/web/core/components/pages/modals/create-page-modal.tsx
index dad404557a..baef54f025 100644
--- a/web/core/components/pages/modals/create-page-modal.tsx
+++ b/web/core/components/pages/modals/create-page-modal.tsx
@@ -1,14 +1,11 @@
import { FC, useEffect, useState } from "react";
-
-// types
+// constants
+import { EPageAccess, PAGE_CREATED } from "@plane/constants";
import { TPage } from "@plane/types";
// ui
import { EModalPosition, EModalWidth, ModalCore } from "@plane/ui";
// components
import { PageForm } from "@/components/pages";
-// constants
-import { PAGE_CREATED } from "@/constants/event-tracker";
-import { EPageAccess } from "@/constants/page";
// hooks
import { useProjectPages, useEventTracker } from "@/hooks/store";
import { useAppRouter } from "@/hooks/use-app-router";
diff --git a/web/core/components/pages/modals/delete-page-modal.tsx b/web/core/components/pages/modals/delete-page-modal.tsx
index 35830fb7cc..79d9213b9d 100644
--- a/web/core/components/pages/modals/delete-page-modal.tsx
+++ b/web/core/components/pages/modals/delete-page-modal.tsx
@@ -3,9 +3,9 @@
import React, { useState } from "react";
import { observer } from "mobx-react";
// ui
+import { PAGE_DELETED } from "@plane/constants";
import { AlertModalCore, TOAST_TYPE, setToast } from "@plane/ui";
// constants
-import { PAGE_DELETED } from "@/constants/event-tracker";
// hooks
import { useEventTracker, useProjectPages } from "@/hooks/store";
import { TPageInstance } from "@/store/pages/base-page";
diff --git a/web/core/components/pages/modals/page-form.tsx b/web/core/components/pages/modals/page-form.tsx
index 63bd0fdd09..4bc2a84285 100644
--- a/web/core/components/pages/modals/page-form.tsx
+++ b/web/core/components/pages/modals/page-form.tsx
@@ -2,15 +2,17 @@
import { FormEvent, useState } from "react";
// types
-import { FileText } from "lucide-react";
+import { FileText, Globe2, Lock, LucideIcon } from "lucide-react";
+// plane imports
+import { ETabIndices, EPageAccess } from "@plane/constants";
+// i18n
+import { useTranslation } from "@plane/i18n";
import { TPage } from "@plane/types";
// ui
import { Button, EmojiIconPicker, EmojiIconPickerTypes, Input } from "@plane/ui";
import { Logo } from "@/components/common";
// constants
import { AccessField } from "@/components/common/access-field";
-import { EPageAccess, PAGE_ACCESS_SPECIFIERS } from "@/constants/page";
-import { ETabIndices } from "@/constants/tab-indices";
// helpers
import { convertHexEmojiToDecimal } from "@/helpers/emoji.helper";
import { getTabIndex } from "@/helpers/tab-indices.helper";
@@ -24,14 +26,26 @@ type Props = {
handleFormSubmit: () => Promise<void>;
};
+const PAGE_ACCESS_SPECIFIERS: {
+ key: EPageAccess;
+ i18n_label: string;
+ icon: LucideIcon;
+}[] = [
+ { key: EPageAccess.PUBLIC, i18n_label: "common.access.public", icon: Globe2 },
+ { key: EPageAccess.PRIVATE, i18n_label: "common.access.private", icon: Lock },
+];
+
export const PageForm: React.FC<Props> = (props) => {
const { formData, handleFormData, handleModalClose, handleFormSubmit } = props;
// hooks
const { isMobile } = usePlatformOS();
+ const { t } = useTranslation();
// state
const [isOpen, setIsOpen] = useState(false);
const [isSubmitting, setIsSubmitting] = useState(false);
+ const i18n_access_label = PAGE_ACCESS_SPECIFIERS.find((access) => access.key === formData.access)?.i18n_label;
+
const { getIndex } = getTabIndex(ETabIndices.PROJECT_PAGE, isMobile);
const handlePageFormSubmit = async (e: FormEvent<HTMLFormElement>) => {
@@ -121,9 +135,7 @@ export const PageForm: React.FC<Props> = (props) => {
accessSpecifiers={PAGE_ACCESS_SPECIFIERS}
isMobile={isMobile}
/>
- <h6 className="text-xs font-medium">
- {PAGE_ACCESS_SPECIFIERS.find((access) => access.key === formData.access)?.label}
- </h6>
+ <h6 className="text-xs font-medium">{t(i18n_access_label || "")}</h6>
</div>
<div className="flex items-center justify-end gap-2">
<Button variant="neutral-primary" size="sm" onClick={handleModalClose} tabIndex={getIndex("cancel")}>
diff --git a/web/core/components/pages/pages-list-main-content.tsx b/web/core/components/pages/pages-list-main-content.tsx
index a0b4b35659..4c5aa0907c 100644
--- a/web/core/components/pages/pages-list-main-content.tsx
+++ b/web/core/components/pages/pages-list-main-content.tsx
@@ -1,15 +1,14 @@
import { observer } from "mobx-react";
import Image from "next/image";
-// types
+// plane imports
+import { EUserPermissionsLevel, EUserProjectRoles, EPageAccess } from "@plane/constants";
+import { useTranslation } from "@plane/i18n";
import { TPageNavigationTabs } from "@plane/types";
// components
-import { EmptyState } from "@/components/empty-state";
+import { DetailedEmptyState } from "@/components/empty-state";
import { PageLoader } from "@/components/pages";
-// constants
-import { EmptyStateType } from "@/constants/empty-state";
-// hooks
-import { EPageAccess } from "@/constants/page";
-import { useCommandPalette, useProjectPages } from "@/hooks/store";
+import { useCommandPalette, useProjectPages, useUserPermissions } from "@/hooks/store";
+import { useResolvedAssetPath } from "@/hooks/use-resolved-asset-path";
// assets
import AllFiltersImage from "@/public/empty-state/pages/all-filters.svg";
import NameFilterImage from "@/public/empty-state/pages/name-filter.svg";
@@ -21,46 +20,90 @@ type Props = {
export const PagesListMainContent: React.FC<Props> = observer((props) => {
const { children, pageType } = props;
+ // plane hooks
+ const { t } = useTranslation();
// store hooks
const { loader, isAnyPageAvailable, getCurrentProjectFilteredPageIds, getCurrentProjectPageIds, filters } =
useProjectPages();
const { toggleCreatePageModal } = useCommandPalette();
+ const { allowPermissions } = useUserPermissions();
// derived values
const pageIds = getCurrentProjectPageIds(pageType);
const filteredPageIds = getCurrentProjectFilteredPageIds(pageType);
+ const canPerformEmptyStateActions = allowPermissions(
+ [EUserProjectRoles.ADMIN, EUserProjectRoles.MEMBER],
+ EUserPermissionsLevel.PROJECT
+ );
+ const generalPageResolvedPath = useResolvedAssetPath({
+ basePath: "/empty-state/onboarding/pages",
+ });
+ const publicPageResolvedPath = useResolvedAssetPath({
+ basePath: "/empty-state/pages/public",
+ });
+ const privatePageResolvedPath = useResolvedAssetPath({
+ basePath: "/empty-state/pages/private",
+ });
+ const archivedPageResolvedPath = useResolvedAssetPath({
+ basePath: "/empty-state/pages/archived",
+ });
if (loader === "init-loader") return <PageLoader />;
// if no pages exist in the active page type
if (!isAnyPageAvailable || pageIds?.length === 0) {
if (!isAnyPageAvailable) {
return (
- <EmptyState
- type={EmptyStateType.PROJECT_PAGE}
- primaryButtonOnClick={() => {
- toggleCreatePageModal({ isOpen: true });
+ <DetailedEmptyState
+ title={t("project_page.empty_state.general.title")}
+ description={t("project_page.empty_state.general.description")}
+ assetPath={generalPageResolvedPath}
+ primaryButton={{
+ text: t("project_page.empty_state.general.primary_button.text"),
+ onClick: () => {
+ toggleCreatePageModal({ isOpen: true });
+ },
+ disabled: !canPerformEmptyStateActions,
}}
/>
);
}
if (pageType === "public")
return (
- <EmptyState
- type={EmptyStateType.PROJECT_PAGE_PUBLIC}
- primaryButtonOnClick={() => {
- toggleCreatePageModal({ isOpen: true, pageAccess: EPageAccess.PUBLIC });
+ <DetailedEmptyState
+ title={t("project_page.empty_state.public.title")}
+ description={t("project_page.empty_state.public.description")}
+ assetPath={publicPageResolvedPath}
+ primaryButton={{
+ text: t("project_page.empty_state.public.primary_button.text"),
+ onClick: () => {
+ toggleCreatePageModal({ isOpen: true, pageAccess: EPageAccess.PUBLIC });
+ },
+ disabled: !canPerformEmptyStateActions,
}}
/>
);
if (pageType === "private")
return (
- <EmptyState
- type={EmptyStateType.PROJECT_PAGE_PRIVATE}
- primaryButtonOnClick={() => {
- toggleCreatePageModal({ isOpen: true, pageAccess: EPageAccess.PRIVATE });
+ <DetailedEmptyState
+ title={t("project_page.empty_state.private.title")}
+ description={t("project_page.empty_state.private.description")}
+ assetPath={privatePageResolvedPath}
+ primaryButton={{
+ text: t("project_page.empty_state.private.primary_button.text"),
+ onClick: () => {
+ toggleCreatePageModal({ isOpen: true, pageAccess: EPageAccess.PRIVATE });
+ },
+ disabled: !canPerformEmptyStateActions,
}}
/>
);
- if (pageType === "archived") return <EmptyState type={EmptyStateType.PROJECT_PAGE_ARCHIVED} />;
+ if (pageType === "archived")
+ return (
+ <DetailedEmptyState
+ title={t("project_page.empty_state.archived.title")}
+ description={t("project_page.empty_state.archived.description")}
+ assetPath={archivedPageResolvedPath}
+ />
+ );
}
// if no pages match the filter criteria
if (filteredPageIds?.length === 0)
diff --git a/web/core/components/profile/activity/download-button.tsx b/web/core/components/profile/activity/download-button.tsx
index b54cc98e47..0092299ff3 100644
--- a/web/core/components/profile/activity/download-button.tsx
+++ b/web/core/components/profile/activity/download-button.tsx
@@ -4,6 +4,7 @@ import { useState } from "react";
import { useParams } from "next/navigation";
// services
// ui
+import { useTranslation } from "@plane/i18n";
import { Button } from "@plane/ui";
// helpers
import { renderFormattedPayloadDate } from "@/helpers/date-time.helper";
@@ -16,6 +17,8 @@ export const DownloadActivityButton = () => {
const [isDownloading, setIsDownloading] = useState(false);
// router
const { workspaceSlug, userId } = useParams();
+ //hooks
+ const { t } = useTranslation();
const handleDownload = async () => {
const today = renderFormattedPayloadDate(new Date());
@@ -52,7 +55,7 @@ export const DownloadActivityButton = () => {
return (
<Button onClick={handleDownload} loading={isDownloading}>
- {isDownloading ? "Downloading" : "Download today's activity"}
+ {isDownloading ? t("profile.stats.recent_activity.button_loading") : t("profile.stats.recent_activity.button")}
</Button>
);
};
diff --git a/web/core/components/profile/form.tsx b/web/core/components/profile/form.tsx
index 4dbbd2693a..52a39955bf 100644
--- a/web/core/components/profile/form.tsx
+++ b/web/core/components/profile/form.tsx
@@ -3,6 +3,8 @@ import { observer } from "mobx-react";
import { Controller, useForm } from "react-hook-form";
import { ChevronDown, CircleUserRound } from "lucide-react";
import { Disclosure, Transition } from "@headlessui/react";
+// plane imports
+import { USER_ROLES } from "@plane/constants";
import { useTranslation, SUPPORTED_LANGUAGES } from "@plane/i18n";
import type { IUser, TUserProfile } from "@plane/types";
import { Button, CustomSelect, Input, TOAST_TYPE, setPromiseToast, setToast } from "@plane/ui";
@@ -11,7 +13,6 @@ import { DeactivateAccountModal } from "@/components/account";
import { ImagePickerPopover, UserImageUploadModal } from "@/components/core";
import { TimezoneSelect } from "@/components/global";
// constants
-import { USER_ROLES } from "@/constants/workspace";
// helpers
import { getFileURL } from "@/helpers/file.helper";
// hooks
@@ -308,7 +309,7 @@ export const ProfileForm = observer((props: TProfileFormProps) => {
</div>
<div className="flex flex-col gap-1">
<h4 className="text-sm font-medium text-custom-text-200">
- {t("email")}&nbsp;
+ {t("auth.common.email.label")}&nbsp;
<span className="text-red-500">*</span>
</h4>
<Controller
@@ -348,15 +349,15 @@ export const ProfileForm = observer((props: TProfileFormProps) => {
<CustomSelect
value={value}
onChange={onChange}
- label={value ? value.toString() : "Select your role"}
+ label={value ? t(value) : "Select your role"}
buttonClassName={errors.role ? "border-red-500" : "border-none"}
className="rounded-md border-[0.5px] !border-custom-border-200"
optionsClassName="w-full"
input
>
{USER_ROLES.map((item) => (
- <CustomSelect.Option key={item.value} value={item.value}>
- {item.label}
+ <CustomSelect.Option key={item.value} value={item.i18n_label}>
+ {t(item.i18n_label)}
</CustomSelect.Option>
))}
</CustomSelect>
@@ -422,7 +423,7 @@ export const ProfileForm = observer((props: TProfileFormProps) => {
</div>
<div className="flex items-center justify-between pt-6 pb-8">
<Button variant="primary" type="submit" loading={isLoading}>
- {isLoading ? t("saving...") : t("save_changes")}
+ {isLoading ? t("saving") : t("save_changes")}
</Button>
</div>
</div>
diff --git a/web/core/components/profile/overview/activity.tsx b/web/core/components/profile/overview/activity.tsx
index 7e5e606213..9ac14b2aaf 100644
--- a/web/core/components/profile/overview/activity.tsx
+++ b/web/core/components/profile/overview/activity.tsx
@@ -4,6 +4,7 @@ import { observer } from "mobx-react";
import { useParams } from "next/navigation";
import useSWR from "swr";
// ui
+import { useTranslation } from "@plane/i18n";
import { Loader, Card } from "@plane/ui";
// components
import { ActivityMessage, IssueLink } from "@/components/core";
@@ -26,6 +27,7 @@ export const ProfileActivity = observer(() => {
const { workspaceSlug, userId } = useParams();
// store hooks
const { data: currentUser } = useUser();
+ const { t } = useTranslation();
const { data: userProfileActivity } = useSWR(
workspaceSlug && userId ? USER_PROFILE_ACTIVITY(workspaceSlug.toString(), userId.toString(), {}) : null,
@@ -39,7 +41,7 @@ export const ProfileActivity = observer(() => {
return (
<div className="space-y-2">
- <h3 className="text-lg font-medium">Recent activity</h3>
+ <h3 className="text-lg font-medium">{t("profile.stats.recent_activity.title")}</h3>
<Card>
{userProfileActivity ? (
userProfileActivity.results.length > 0 ? (
@@ -81,8 +83,8 @@ export const ProfileActivity = observer(() => {
</div>
) : (
<ProfileEmptyState
- title="No Data yet"
- description="We couldn’t find data. Kindly view your inputs"
+ title={t("no_data_yet")}
+ description={t("profile.stats.recent_activity.empty")}
image={recentActivityEmptyState}
/>
)
diff --git a/web/core/components/profile/overview/priority-distribution.tsx b/web/core/components/profile/overview/priority-distribution.tsx
index 66f0e02e71..856f725915 100644
--- a/web/core/components/profile/overview/priority-distribution.tsx
+++ b/web/core/components/profile/overview/priority-distribution.tsx
@@ -1,6 +1,7 @@
"use client";
// ui
+import { useTranslation } from "@plane/i18n";
import { IUserProfileData } from "@plane/types";
import { Loader, Card } from "@plane/ui";
import { BarGraph, ProfileEmptyState } from "@/components/ui";
@@ -14,77 +15,80 @@ type Props = {
userProfile: IUserProfileData | undefined;
};
-export const ProfilePriorityDistribution: React.FC<Props> = ({ userProfile }) => (
- <div className="flex flex-col space-y-2">
- <h3 className="text-lg font-medium">Issues by Priority</h3>
- {userProfile ? (
- <Card>
- {userProfile.priority_distribution.length > 0 ? (
- <BarGraph
- data={userProfile.priority_distribution.map((priority) => ({
- priority: capitalizeFirstLetter(priority.priority ?? "None"),
- value: priority.priority_count,
- }))}
- height="300px"
- indexBy="priority"
- keys={["value"]}
- borderRadius={4}
- padding={0.7}
- customYAxisTickValues={userProfile.priority_distribution.map((p) => p.priority_count)}
- tooltip={(datum) => (
- <div className="flex items-center gap-2 rounded-md border border-custom-border-200 bg-custom-background-80 p-2 text-xs">
- <span
- className="h-3 w-3 rounded"
- style={{
- backgroundColor: datum?.color ?? "rgb(var(--color-primary-100))",
- }}
- />
- <span className="font-medium text-custom-text-200">{datum.data.priority}:</span>
- <span>{datum.value}</span>
- </div>
- )}
- colors={(datum) => {
- if (datum.data.priority === "Urgent") return "#991b1b";
- else if (datum.data.priority === "High") return "#ef4444";
- else if (datum.data.priority === "Medium") return "#f59e0b";
- else if (datum.data.priority === "Low") return "#16a34a";
- else return "#e5e5e5";
- }}
- theme={{
- axis: {
- domain: {
+export const ProfilePriorityDistribution: React.FC<Props> = ({ userProfile }) => {
+ const { t } = useTranslation();
+ return (
+ <div className="flex flex-col space-y-2">
+ <h3 className="text-lg font-medium">{t("profile.stats.priority_distribution.title")}</h3>
+ {userProfile ? (
+ <Card>
+ {userProfile.priority_distribution.length > 0 ? (
+ <BarGraph
+ data={userProfile.priority_distribution.map((priority) => ({
+ priority: capitalizeFirstLetter(priority.priority ?? "None"),
+ value: priority.priority_count,
+ }))}
+ height="300px"
+ indexBy="priority"
+ keys={["value"]}
+ borderRadius={4}
+ padding={0.7}
+ customYAxisTickValues={userProfile.priority_distribution.map((p) => p.priority_count)}
+ tooltip={(datum) => (
+ <div className="flex items-center gap-2 rounded-md border border-custom-border-200 bg-custom-background-80 p-2 text-xs">
+ <span
+ className="h-3 w-3 rounded"
+ style={{
+ backgroundColor: datum?.color ?? "rgb(var(--color-primary-100))",
+ }}
+ />
+ <span className="font-medium text-custom-text-200">{datum.data.priority}:</span>
+ <span>{datum.value}</span>
+ </div>
+ )}
+ colors={(datum) => {
+ if (datum.data.priority === "Urgent") return "#991b1b";
+ else if (datum.data.priority === "High") return "#ef4444";
+ else if (datum.data.priority === "Medium") return "#f59e0b";
+ else if (datum.data.priority === "Low") return "#16a34a";
+ else return "#e5e5e5";
+ }}
+ theme={{
+ axis: {
+ domain: {
+ line: {
+ stroke: "transparent",
+ },
+ },
+ },
+ grid: {
line: {
stroke: "transparent",
},
},
- },
- grid: {
- line: {
- stroke: "transparent",
- },
- },
- }}
- />
- ) : (
- <div className="flex-grow p-7">
- <ProfileEmptyState
- title="No Data yet"
- description="Create issues to view the them by priority in the graph for better analysis."
- image={emptyBarGraph}
+ }}
/>
- </div>
- )}
- </Card>
- ) : (
- <div className="grid place-items-center p-7">
- <Loader className="flex items-end gap-12">
- <Loader.Item width="30px" height="200px" />
- <Loader.Item width="30px" height="150px" />
- <Loader.Item width="30px" height="250px" />
- <Loader.Item width="30px" height="150px" />
- <Loader.Item width="30px" height="100px" />
- </Loader>
- </div>
- )}
- </div>
-);
+ ) : (
+ <div className="flex-grow p-7">
+ <ProfileEmptyState
+ title={t("no_data_yet")}
+ description={t("profile.stats.priority_distribution.empty")}
+ image={emptyBarGraph}
+ />
+ </div>
+ )}
+ </Card>
+ ) : (
+ <div className="grid place-items-center p-7">
+ <Loader className="flex items-end gap-12">
+ <Loader.Item width="30px" height="200px" />
+ <Loader.Item width="30px" height="150px" />
+ <Loader.Item width="30px" height="250px" />
+ <Loader.Item width="30px" height="150px" />
+ <Loader.Item width="30px" height="100px" />
+ </Loader>
+ </div>
+ )}
+ </div>
+ );
+};
diff --git a/web/core/components/profile/overview/priority-distribution/main-content.tsx b/web/core/components/profile/overview/priority-distribution/main-content.tsx
index d56a92b1db..5a4f64bceb 100644
--- a/web/core/components/profile/overview/priority-distribution/main-content.tsx
+++ b/web/core/components/profile/overview/priority-distribution/main-content.tsx
@@ -21,7 +21,7 @@ export const PriorityDistributionContent: React.FC<Props> = (props) => {
<div className="flex-grow p-7">
<ProfileEmptyState
title="No Data yet"
- description="Create issues to view the them by priority in the graph for better analysis."
+ description="Create work items to view the them by priority in the graph for better analysis."
image={emptyBarGraph}
/>
</div>
diff --git a/web/core/components/profile/overview/priority-distribution/priority-distribution.tsx b/web/core/components/profile/overview/priority-distribution/priority-distribution.tsx
index 97bc385ca1..a7bca192bc 100644
--- a/web/core/components/profile/overview/priority-distribution/priority-distribution.tsx
+++ b/web/core/components/profile/overview/priority-distribution/priority-distribution.tsx
@@ -16,7 +16,7 @@ export const ProfilePriorityDistribution: React.FC<Props> = (props) => {
return (
<div className="flex flex-col space-y-2">
- <h3 className="text-lg font-medium">Issues by priority</h3>
+ <h3 className="text-lg font-medium">Work items by priority</h3>
{priorityDistribution ? (
<PriorityDistributionContent priorityDistribution={priorityDistribution} />
) : (
diff --git a/web/core/components/profile/overview/state-distribution.tsx b/web/core/components/profile/overview/state-distribution.tsx
index c3533018cb..5e9d0d2c77 100644
--- a/web/core/components/profile/overview/state-distribution.tsx
+++ b/web/core/components/profile/overview/state-distribution.tsx
@@ -1,13 +1,12 @@
-// ui
+// plane imports
+import { STATE_GROUPS } from "@plane/constants";
+import { useTranslation } from "@plane/i18n";
import { IUserProfileData, IUserStateDistribution } from "@plane/types";
+// ui
import { Card } from "@plane/ui";
import { ProfileEmptyState, PieGraph } from "@/components/ui";
-
// image
-import { STATE_GROUPS } from "@/constants/state";
import stateGraph from "@/public/empty-state/state_graph.svg";
-// types
-// constants
type Props = {
stateDistribution: IUserStateDistribution[];
@@ -15,11 +14,12 @@ type Props = {
};
export const ProfileStateDistribution: React.FC<Props> = ({ stateDistribution, userProfile }) => {
+ const { t } = useTranslation();
if (!userProfile) return null;
return (
<div className="flex flex-col space-y-2">
- <h3 className="text-lg font-medium">Issues by state</h3>
+ <h3 className="text-lg font-medium">{t("profile.stats.state_distribution.title")}</h3>
<Card className="h-full">
{userProfile.state_distribution.length > 0 ? (
<div className="grid grid-cols-1 gap-x-6 md:grid-cols-2">
@@ -44,7 +44,7 @@ export const ProfileStateDistribution: React.FC<Props> = ({ stateDistribution, u
colors={(datum) => datum?.data?.color}
tooltip={(datum) => (
<div className="flex items-center gap-2 rounded-md border border-custom-border-200 bg-custom-background-90 p-2 text-xs">
- <span className="capitalize text-custom-text-200">{datum.datum.label} issues:</span>{" "}
+ <span className="capitalize text-custom-text-200">{datum.datum.label} work items:</span>{" "}
{datum.datum.value}
</div>
)}
@@ -77,8 +77,8 @@ export const ProfileStateDistribution: React.FC<Props> = ({ stateDistribution, u
</div>
) : (
<ProfileEmptyState
- title="No Data yet"
- description="Create issues to view the them by states in the graph for better analysis."
+ title={t("no_data_yet")}
+ description={t("profile.stats.state_distribution.empty")}
image={stateGraph}
/>
)}
diff --git a/web/core/components/profile/overview/stats.tsx b/web/core/components/profile/overview/stats.tsx
index 50f6b0ae02..cf0f15d3e1 100644
--- a/web/core/components/profile/overview/stats.tsx
+++ b/web/core/components/profile/overview/stats.tsx
@@ -5,6 +5,7 @@ import { useParams } from "next/navigation";
// ui
import { UserCircle2 } from "lucide-react";
+import { useTranslation } from "@plane/i18n";
import { IUserProfileData } from "@plane/types";
import { CreateIcon, LayerStackIcon, Loader, Card, ECardSpacing, ECardDirection } from "@plane/ui";
// types
@@ -16,30 +17,32 @@ type Props = {
export const ProfileStats: React.FC<Props> = ({ userProfile }) => {
const { workspaceSlug, userId } = useParams();
+ const { t } = useTranslation();
+
const overviewCards = [
{
icon: CreateIcon,
route: "created",
- title: "Issues created",
+ i18n_title: "profile.stats.created",
value: userProfile?.created_issues ?? "...",
},
{
icon: UserCircle2,
route: "assigned",
- title: "Issues assigned",
+ i18n_title: "profile.stats.assigned",
value: userProfile?.assigned_issues ?? "...",
},
{
icon: LayerStackIcon,
route: "subscribed",
- title: "Issues subscribed",
+ i18n_title: "profile.stats.subscribed",
value: userProfile?.subscribed_issues ?? "...",
},
];
return (
<div className="space-y-2">
- <h3 className="text-lg font-medium">Overview</h3>
+ <h3 className="text-lg font-medium">{t("profile.stats.overview")}</h3>
{userProfile ? (
<div className="grid grid-cols-1 gap-4 md:grid-cols-2 lg:grid-cols-3">
{overviewCards.map((card) => (
@@ -49,7 +52,7 @@ export const ProfileStats: React.FC<Props> = ({ userProfile }) => {
<card.icon className="h-5 w-5" />
</div>
<div className="space-y-1">
- <p className="text-sm text-custom-text-400">{card.title}</p>
+ <p className="text-sm text-custom-text-400">{t(card.i18n_title)}</p>
<p className="text-xl font-semibold">{card.value}</p>
</div>
</Card>
diff --git a/web/core/components/profile/overview/workload.tsx b/web/core/components/profile/overview/workload.tsx
index 94ebc2fe6d..1581362690 100644
--- a/web/core/components/profile/overview/workload.tsx
+++ b/web/core/components/profile/overview/workload.tsx
@@ -1,41 +1,47 @@
+// plane imports
+import { STATE_GROUPS } from "@plane/constants";
// types
+import { useTranslation } from "@plane/i18n";
import { IUserStateDistribution } from "@plane/types";
import { Card, ECardDirection, ECardSpacing } from "@plane/ui";
-import { STATE_GROUPS } from "@/constants/state";
// constants
type Props = {
stateDistribution: IUserStateDistribution[];
};
-export const ProfileWorkload: React.FC<Props> = ({ stateDistribution }) => (
- <div className="space-y-2">
- <h3 className="text-lg font-medium">Workload</h3>
- <div className="grid grid-cols-1 justify-stretch gap-4 md:grid-cols-2 lg:grid-cols-3 xl:grid-cols-5">
- {stateDistribution.map((group) => (
- <div key={group.state_group}>
- <a>
- <Card direction={ECardDirection.ROW} spacing={ECardSpacing.SM}>
- <div
- className="h-3 w-3 rounded-sm my-2"
- style={{
- backgroundColor: STATE_GROUPS[group.state_group].color,
- }}
- />
- <div className="space-y-1 flex-col">
- <span className="text-sm text-custom-text-400">
- {group.state_group === "unstarted"
- ? "Not started"
- : group.state_group === "started"
- ? "Working on"
- : STATE_GROUPS[group.state_group].label}
- </span>
- <p className="text-xl font-semibold">{group.state_count}</p>
- </div>
- </Card>
- </a>
- </div>
- ))}
+export const ProfileWorkload: React.FC<Props> = ({ stateDistribution }) => {
+ const { t } = useTranslation();
+
+ return (
+ <div className="space-y-2">
+ <h3 className="text-lg font-medium">{t("profile.stats.workload")}</h3>
+ <div className="grid grid-cols-1 justify-stretch gap-4 md:grid-cols-2 lg:grid-cols-3 xl:grid-cols-5">
+ {stateDistribution.map((group) => (
+ <div key={group.state_group}>
+ <a>
+ <Card direction={ECardDirection.ROW} spacing={ECardSpacing.SM}>
+ <div
+ className="h-3 w-3 rounded-sm my-2"
+ style={{
+ backgroundColor: STATE_GROUPS[group.state_group].color,
+ }}
+ />
+ <div className="space-y-1 flex-col">
+ <span className="text-sm text-custom-text-400">
+ {group.state_group === "unstarted"
+ ? "Not started"
+ : group.state_group === "started"
+ ? "Working on"
+ : STATE_GROUPS[group.state_group].label}
+ </span>
+ <p className="text-xl font-semibold">{group.state_count}</p>
+ </div>
+ </Card>
+ </a>
+ </div>
+ ))}
+ </div>
</div>
- </div>
-);
+ );
+};
diff --git a/web/core/components/profile/profile-issues-filter.tsx b/web/core/components/profile/profile-issues-filter.tsx
index 4b20324ea2..baf85c2108 100644
--- a/web/core/components/profile/profile-issues-filter.tsx
+++ b/web/core/components/profile/profile-issues-filter.tsx
@@ -2,19 +2,21 @@ import { useCallback } from "react";
import { observer } from "mobx-react";
import { useParams } from "next/navigation";
// plane constants
-import { EIssueLayoutTypes, EIssuesStoreType, EIssueFilterType } from "@plane/constants";
+import { EIssueLayoutTypes, EIssuesStoreType, EIssueFilterType, ISSUE_DISPLAY_FILTERS_BY_PAGE } from "@plane/constants";
+// i18n
+import { useTranslation } from "@plane/i18n";
// types
import { IIssueDisplayFilterOptions, IIssueDisplayProperties, IIssueFilterOptions } from "@plane/types";
// components
import { DisplayFiltersSelection, FilterSelection, FiltersDropdown, LayoutSelection } from "@/components/issues";
-// constants
-import { ISSUE_DISPLAY_FILTERS_BY_LAYOUT } from "@/constants/issue";
// helpers
import { isIssueFilterActive } from "@/helpers/filter.helper";
// hooks
import { useIssues, useLabel } from "@/hooks/store";
export const ProfileIssuesFilter = observer(() => {
+ // i18n
+ const { t } = useTranslation();
// router
const { workspaceSlug, userId } = useParams();
// store hook
@@ -105,10 +107,10 @@ export const ProfileIssuesFilter = observer(() => {
selectedLayout={activeLayout}
/>
- <FiltersDropdown title="Filters" placement="bottom-end" isFiltersApplied={isIssueFilterActive(issueFilters)}>
+ <FiltersDropdown title={t("common.filters")} placement="bottom-end" isFiltersApplied={isIssueFilterActive(issueFilters)}>
<FilterSelection
layoutDisplayFiltersOptions={
- activeLayout ? ISSUE_DISPLAY_FILTERS_BY_LAYOUT.profile_issues[activeLayout] : undefined
+ activeLayout ? ISSUE_DISPLAY_FILTERS_BY_PAGE.profile_issues[activeLayout] : undefined
}
filters={issueFilters?.filters ?? {}}
handleFiltersUpdate={handleFiltersUpdate}
@@ -120,10 +122,10 @@ export const ProfileIssuesFilter = observer(() => {
/>
</FiltersDropdown>
- <FiltersDropdown title="Display" placement="bottom-end">
+ <FiltersDropdown title={t("common.display")} placement="bottom-end">
<DisplayFiltersSelection
layoutDisplayFiltersOptions={
- activeLayout ? ISSUE_DISPLAY_FILTERS_BY_LAYOUT.profile_issues[activeLayout] : undefined
+ activeLayout ? ISSUE_DISPLAY_FILTERS_BY_PAGE.profile_issues[activeLayout] : undefined
}
displayFilters={issueFilters?.displayFilters ?? {}}
handleDisplayFiltersUpdate={handleDisplayFilters}
diff --git a/web/core/components/profile/sidebar.tsx b/web/core/components/profile/sidebar.tsx
index 11e10184ad..d3e007ea37 100644
--- a/web/core/components/profile/sidebar.tsx
+++ b/web/core/components/profile/sidebar.tsx
@@ -11,6 +11,7 @@ import { Disclosure, Transition } from "@headlessui/react";
// plane helpers
import { useOutsideClickDetector } from "@plane/hooks";
// types
+import { useTranslation } from "@plane/i18n";
import { IUserProfileProjectSegregation } from "@plane/types";
// plane ui
import { Loader, Tooltip } from "@plane/ui";
@@ -42,6 +43,7 @@ export const ProfileSidebar: FC<TProfileSidebar> = observer((props) => {
const { profileSidebarCollapsed, toggleProfileSidebar } = useAppTheme();
const { getProjectById } = useProject();
const { isMobile } = usePlatformOS();
+ const { t } = useTranslation();
// derived values
const userData = userProjectsData?.user_data;
@@ -55,11 +57,11 @@ export const ProfileSidebar: FC<TProfileSidebar> = observer((props) => {
const userDetails = [
{
- label: "Joined on",
+ i18n_label: "profile.details.joined_on",
value: renderFormattedDate(userData?.date_joined ?? ""),
},
{
- label: "Timezone",
+ i18n_label: "profile.details.time_zone",
value: <ProfileSidebarTime timeZone={userData?.user_timezone} />,
},
];
@@ -131,8 +133,8 @@ export const ProfileSidebar: FC<TProfileSidebar> = observer((props) => {
</div>
<div className="mt-6 space-y-5">
{userDetails.map((detail) => (
- <div key={detail.label} className="flex items-center gap-4 text-sm">
- <div className="w-2/5 flex-shrink-0 text-custom-text-200">{detail.label}</div>
+ <div key={detail.i18n_label} className="flex items-center gap-4 text-sm">
+ <div className="w-2/5 flex-shrink-0 text-custom-text-200">{t(detail.i18n_label)}</div>
<div className="w-3/5 break-words font-medium">{detail.value}</div>
</div>
))}
@@ -229,28 +231,36 @@ export const ProfileSidebar: FC<TProfileSidebar> = observer((props) => {
<div className="h-2.5 w-2.5 rounded-sm bg-[#203b80]" />
Created
</div>
- <div className="font-medium">{project.created_issues} Issues</div>
+ <div className="font-medium">
+ {project.created_issues} {t("issues")}
+ </div>
</div>
<div className="flex items-center justify-between gap-2">
<div className="flex items-center gap-2">
<div className="h-2.5 w-2.5 rounded-sm bg-[#3f76ff]" />
Assigned
</div>
- <div className="font-medium">{project.assigned_issues} Issues</div>
+ <div className="font-medium">
+ {project.assigned_issues} {t("issues")}
+ </div>
</div>
<div className="flex items-center justify-between gap-2">
<div className="flex items-center gap-2">
<div className="h-2.5 w-2.5 rounded-sm bg-[#f59e0b]" />
Due
</div>
- <div className="font-medium">{project.pending_issues} Issues</div>
+ <div className="font-medium">
+ {project.pending_issues} {t("issues")}
+ </div>
</div>
<div className="flex items-center justify-between gap-2">
<div className="flex items-center gap-2">
<div className="h-2.5 w-2.5 rounded-sm bg-[#16a34a]" />
Completed
</div>
- <div className="font-medium">{project.completed_issues} Issues</div>
+ <div className="font-medium">
+ {project.completed_issues} {t("issues")}
+ </div>
</div>
</div>
</Disclosure.Panel>
diff --git a/web/core/components/project-states/create-update/create.tsx b/web/core/components/project-states/create-update/create.tsx
index b581eacecc..6a87082b43 100644
--- a/web/core/components/project-states/create-update/create.tsx
+++ b/web/core/components/project-states/create-update/create.tsx
@@ -2,13 +2,11 @@
import { FC, useState } from "react";
import { observer } from "mobx-react";
+import { STATE_CREATED, STATE_GROUPS } from "@plane/constants";
import { IState, TStateGroups } from "@plane/types";
import { TOAST_TYPE, setToast } from "@plane/ui";
// components
import { StateForm } from "@/components/project-states";
-// constants
-import { STATE_CREATED } from "@/constants/event-tracker";
-import { STATE_GROUPS } from "@/constants/state";
// hooks
import { useEventTracker, useProjectState } from "@/hooks/store";
diff --git a/web/core/components/project-states/create-update/update.tsx b/web/core/components/project-states/create-update/update.tsx
index 669a865161..80014eeba4 100644
--- a/web/core/components/project-states/create-update/update.tsx
+++ b/web/core/components/project-states/create-update/update.tsx
@@ -2,12 +2,12 @@
import { FC, useState } from "react";
import { observer } from "mobx-react";
+import { STATE_UPDATED } from "@plane/constants";
import { IState } from "@plane/types";
import { TOAST_TYPE, setToast } from "@plane/ui";
// components
import { StateForm } from "@/components/project-states";
// constants
-import { STATE_UPDATED } from "@/constants/event-tracker";
// hooks
import { useEventTracker, useProjectState } from "@/hooks/store";
diff --git a/web/core/components/project-states/group-item.tsx b/web/core/components/project-states/group-item.tsx
index ca72c008e1..68793636e2 100644
--- a/web/core/components/project-states/group-item.tsx
+++ b/web/core/components/project-states/group-item.tsx
@@ -3,6 +3,7 @@
import { FC, useState, useRef } from "react";
import { observer } from "mobx-react";
import { ChevronDown, Plus } from "lucide-react";
+import { EUserPermissions, EUserPermissionsLevel } from "@plane/constants";
import { IState, TStateGroups } from "@plane/types";
// components
import { StateGroupIcon } from "@plane/ui";
@@ -10,7 +11,6 @@ import { cn } from "@plane/utils";
import { StateList, StateCreate } from "@/components/project-states";
// hooks
import { useUserPermissions } from "@/hooks/store";
-import { EUserPermissions, EUserPermissionsLevel } from "@/plane-web/constants/user-permissions";
type TGroupItem = {
workspaceSlug: string;
diff --git a/web/core/components/project-states/options/delete.tsx b/web/core/components/project-states/options/delete.tsx
index 00f88f0349..f123a2513b 100644
--- a/web/core/components/project-states/options/delete.tsx
+++ b/web/core/components/project-states/options/delete.tsx
@@ -3,10 +3,10 @@
import { FC, useState } from "react";
import { observer } from "mobx-react";
import { Loader, X } from "lucide-react";
+import { STATE_DELETED } from "@plane/constants";
import { IState } from "@plane/types";
import { AlertModalCore, TOAST_TYPE, Tooltip, setToast } from "@plane/ui";
// constants
-import { STATE_DELETED } from "@/constants/event-tracker";
// helpers
import { cn } from "@/helpers/common.helper";
// hooks
@@ -63,7 +63,7 @@ export const StateDelete: FC<TStateDelete> = observer((props) => {
type: TOAST_TYPE.ERROR,
title: "Error!",
message:
- "This state contains some issues within it, please move them to some other state to delete this state.",
+ "This state contains some work items within it, please move them to some other state to delete this state.",
});
} else {
setToast({
diff --git a/web/core/components/project-states/state-delete-modal.tsx b/web/core/components/project-states/state-delete-modal.tsx
index f36c4ca12c..f21cc78167 100644
--- a/web/core/components/project-states/state-delete-modal.tsx
+++ b/web/core/components/project-states/state-delete-modal.tsx
@@ -4,11 +4,11 @@ import React, { useState } from "react";
import { observer } from "mobx-react";
import { useParams } from "next/navigation";
// types
+import { STATE_DELETED } from "@plane/constants";
import type { IState } from "@plane/types";
// ui
import { AlertModalCore, TOAST_TYPE, setToast } from "@plane/ui";
// constants
-import { STATE_DELETED } from "@/constants/event-tracker";
// hooks
import { useEventTracker, useProjectState } from "@/hooks/store";
@@ -55,7 +55,7 @@ export const StateDeleteModal: React.FC<TStateDeleteModal> = observer((props) =>
type: TOAST_TYPE.ERROR,
title: "Error!",
message:
- "This state contains some issues within it, please move them to some other state to delete this state.",
+ "This state contains some work items within it, please move them to some other state to delete this state.",
});
else
setToast({
diff --git a/web/core/components/project-states/state-item.tsx b/web/core/components/project-states/state-item.tsx
index 3ab594a81e..e1fafd6ecb 100644
--- a/web/core/components/project-states/state-item.tsx
+++ b/web/core/components/project-states/state-item.tsx
@@ -6,12 +6,12 @@ import { draggable, dropTargetForElements } from "@atlaskit/pragmatic-drag-and-d
import { attachClosestEdge, extractClosestEdge } from "@atlaskit/pragmatic-drag-and-drop-hitbox/closest-edge";
import { observer } from "mobx-react";
// Plane
+import { TDraggableData } from "@plane/constants";
import { IState, TStateGroups } from "@plane/types";
import { DropIndicator } from "@plane/ui";
// components
import { StateUpdate } from "@/components/project-states";
// helpers
-import { TDraggableData } from "@/constants/state";
import { cn } from "@/helpers/common.helper";
import { getCurrentStateSequence } from "@/helpers/state.helper";
// hooks
diff --git a/web/core/components/project/applied-filters/access.tsx b/web/core/components/project/applied-filters/access.tsx
index 9b5f10cfca..4748a01756 100644
--- a/web/core/components/project/applied-filters/access.tsx
+++ b/web/core/components/project/applied-filters/access.tsx
@@ -1,7 +1,8 @@
import { observer } from "mobx-react";
import { X } from "lucide-react";
// constants
-import { NETWORK_CHOICES } from "@/constants/project";
+import { NETWORK_CHOICES } from "@plane/constants";
+import { useTranslation } from "@plane/i18n";
type Props = {
handleRemove: (val: string) => void;
@@ -11,6 +12,7 @@ type Props = {
export const AppliedAccessFilters: React.FC<Props> = observer((props) => {
const { handleRemove, values, editable } = props;
+ const { t } = useTranslation();
return (
<>
@@ -18,7 +20,7 @@ export const AppliedAccessFilters: React.FC<Props> = observer((props) => {
const accessDetails = NETWORK_CHOICES.find((s) => `${s.key}` === status);
return (
<div key={status} className="flex items-center gap-1 rounded px-1.5 py-1 text-xs bg-custom-background-80">
- {accessDetails?.label}
+ {accessDetails && t(accessDetails?.i18n_label)}
{editable && (
<button
type="button"
diff --git a/web/core/components/project/applied-filters/date.tsx b/web/core/components/project/applied-filters/date.tsx
index 577015ad58..d5879989fa 100644
--- a/web/core/components/project/applied-filters/date.tsx
+++ b/web/core/components/project/applied-filters/date.tsx
@@ -1,7 +1,7 @@
import { observer } from "mobx-react";
import { X } from "lucide-react";
// helpers
-import { PROJECT_CREATED_AT_FILTER_OPTIONS } from "@/constants/filters";
+import { PROJECT_CREATED_AT_FILTER_OPTIONS } from "@plane/constants";
import { renderFormattedDate } from "@/helpers/date-time.helper";
import { capitalizeFirstLetter } from "@/helpers/string.helper";
// constants
diff --git a/web/core/components/project/applied-filters/project-display-filters.tsx b/web/core/components/project/applied-filters/project-display-filters.tsx
index d00f69219e..ef0d583bb6 100644
--- a/web/core/components/project/applied-filters/project-display-filters.tsx
+++ b/web/core/components/project/applied-filters/project-display-filters.tsx
@@ -2,9 +2,10 @@ import { observer } from "mobx-react";
// icons
import { X } from "lucide-react";
// types
+import { PROJECT_DISPLAY_FILTER_OPTIONS } from "@plane/constants";
+import { useTranslation } from "@plane/i18n";
import { TProjectAppliedDisplayFilterKeys } from "@plane/types";
// constants
-import { PROJECT_DISPLAY_FILTER_OPTIONS } from "@/constants/project";
type Props = {
handleRemove: (key: TProjectAppliedDisplayFilterKeys) => void;
@@ -14,14 +15,15 @@ type Props = {
export const AppliedProjectDisplayFilters: React.FC<Props> = observer((props) => {
const { handleRemove, values, editable } = props;
+ const { t } = useTranslation();
return (
<>
{values.map((key) => {
- const filterLabel = PROJECT_DISPLAY_FILTER_OPTIONS.find((s) => s.key === key)?.label;
+ const filterLabel = PROJECT_DISPLAY_FILTER_OPTIONS.find((s) => s.key === key)?.i18n_label;
return (
<div key={key} className="flex items-center gap-1 rounded px-1.5 py-1 text-xs bg-custom-background-80">
- {filterLabel}
+ {filterLabel && t(filterLabel)}
{editable && (
<button
type="button"
diff --git a/web/core/components/project/applied-filters/root.tsx b/web/core/components/project/applied-filters/root.tsx
index 385ffab734..2069aa28bf 100644
--- a/web/core/components/project/applied-filters/root.tsx
+++ b/web/core/components/project/applied-filters/root.tsx
@@ -1,6 +1,8 @@
"use client";
import { X } from "lucide-react";
+// i18n
+import { useTranslation } from "@plane/i18n";
// types
import { TProjectAppliedDisplayFilterKeys, TProjectFilters } from "@plane/types";
// ui
@@ -30,6 +32,7 @@ const MEMBERS_FILTERS = ["lead", "members"];
const DATE_FILTERS = ["created_at"];
export const ProjectAppliedFiltersList: React.FC<Props> = (props) => {
+ const { t } = useTranslation();
const {
appliedFilters,
appliedDisplayFilters,
@@ -95,7 +98,7 @@ export const ProjectAppliedFiltersList: React.FC<Props> = (props) => {
{/* Applied display filters */}
{appliedDisplayFilters.length > 0 && (
<Tag key="project_display_filters">
- <span className="text-xs text-custom-text-300">Projects</span>
+ <span className="text-xs text-custom-text-300">{t("projects.label", { count: 2 })}</span>
<AppliedProjectDisplayFilters
editable={isEditingAllowed}
values={appliedDisplayFilters}
@@ -106,7 +109,7 @@ export const ProjectAppliedFiltersList: React.FC<Props> = (props) => {
{isEditingAllowed && (
<button type="button" onClick={handleClearAllFilters}>
<Tag>
- Clear all
+ {t("common.clear_all")}
<X size={12} strokeWidth={2} />
</Tag>
</button>
diff --git a/web/core/components/project/card-list.tsx b/web/core/components/project/card-list.tsx
index 83fbf0c87c..606f533f19 100644
--- a/web/core/components/project/card-list.tsx
+++ b/web/core/components/project/card-list.tsx
@@ -1,14 +1,16 @@
import { observer } from "mobx-react";
import Image from "next/image";
-// components
+// plane imports
+import { EUserPermissionsLevel, EUserPermissions } from "@plane/constants";
+import { useTranslation } from "@plane/i18n";
import { ContentWrapper } from "@plane/ui";
-import { EmptyState } from "@/components/empty-state";
+// components
+import { ComicBoxButton, DetailedEmptyState } from "@/components/empty-state";
import { ProjectCard } from "@/components/project";
import { ProjectsLoader } from "@/components/ui";
-// constants
-import { EmptyStateType } from "@/constants/empty-state";
// hooks
-import { useCommandPalette, useEventTracker, useProject, useProjectFilter } from "@/hooks/store";
+import { useCommandPalette, useEventTracker, useProject, useProjectFilter, useUserPermissions } from "@/hooks/store";
+import { useResolvedAssetPath } from "@/hooks/use-resolved-asset-path";
// assets
import AllFiltersImage from "@/public/empty-state/project/all-filters.svg";
import NameFilterImage from "@/public/empty-state/project/name-filter.svg";
@@ -20,6 +22,8 @@ type TProjectCardListProps = {
export const ProjectCardList = observer((props: TProjectCardListProps) => {
const { totalProjectIds: totalProjectIdsProps, filteredProjectIds: filteredProjectIdsProps } = props;
+ // plane hooks
+ const { t } = useTranslation();
// store hooks
const { toggleCreateProjectModal } = useCommandPalette();
const { setTrackElement } = useEventTracker();
@@ -31,21 +35,42 @@ export const ProjectCardList = observer((props: TProjectCardListProps) => {
getProjectById,
} = useProject();
const { searchQuery, currentWorkspaceDisplayFilters } = useProjectFilter();
+ const { allowPermissions } = useUserPermissions();
+
+ // helper hooks
+ const resolvedPath = useResolvedAssetPath({ basePath: "/empty-state/onboarding/projects" });
+
// derived values
const workspaceProjectIds = totalProjectIdsProps ?? storeWorkspaceProjectIds;
const filteredProjectIds = filteredProjectIdsProps ?? storeFilteredProjectIds;
+ // permissions
+ const canPerformEmptyStateActions = allowPermissions(
+ [EUserPermissions.ADMIN, EUserPermissions.MEMBER],
+ EUserPermissionsLevel.WORKSPACE
+ );
+
if (!filteredProjectIds || !workspaceProjectIds || loader === "init-loader" || fetchStatus !== "complete")
return <ProjectsLoader />;
if (workspaceProjectIds?.length === 0 && !currentWorkspaceDisplayFilters?.archived_projects)
return (
- <EmptyState
- type={EmptyStateType.WORKSPACE_PROJECTS}
- primaryButtonOnClick={() => {
- setTrackElement("Project empty state");
- toggleCreateProjectModal(true);
- }}
+ <DetailedEmptyState
+ title={t("workspace_projects.empty_state.general.title")}
+ description={t("workspace_projects.empty_state.general.description")}
+ assetPath={resolvedPath}
+ customPrimaryButton={
+ <ComicBoxButton
+ label={t("workspace_projects.empty_state.general.primary_button.text")}
+ title={t("workspace_projects.empty_state.general.primary_button.comic.title")}
+ description={t("workspace_projects.empty_state.general.primary_button.comic.description")}
+ onClick={() => {
+ setTrackElement("Project empty state");
+ toggleCreateProjectModal(true);
+ }}
+ disabled={!canPerformEmptyStateActions}
+ />
+ }
/>
);
@@ -58,11 +83,11 @@ export const ProjectCardList = observer((props: TProjectCardListProps) => {
className="mx-auto h-36 w-36 sm:h-48 sm:w-48"
alt="No matching projects"
/>
- <h5 className="mb-1 mt-7 text-xl font-medium">No matching projects</h5>
+ <h5 className="mb-1 mt-7 text-xl font-medium">{t("workspace_projects.empty_state.filter.title")}</h5>
<p className="whitespace-pre-line text-base text-custom-text-400">
{searchQuery.trim() === ""
- ? "Remove the filters to see all projects"
- : "No projects detected with the matching criteria.\nCreate a new project instead"}
+ ? t("workspace_projects.empty_state.filter.description")
+ : t("workspace_projects.empty_state.search.description")}
</p>
</div>
</div>
diff --git a/web/core/components/project/card.tsx b/web/core/components/project/card.tsx
index ae7e131079..304ecab335 100644
--- a/web/core/components/project/card.tsx
+++ b/web/core/components/project/card.tsx
@@ -6,6 +6,7 @@ import Link from "next/link";
import { useParams } from "next/navigation";
import { ArchiveRestoreIcon, Check, ExternalLink, LinkIcon, Lock, Settings, Trash2, UserPlus } from "lucide-react";
// types
+import { EUserPermissions, EUserPermissionsLevel } from "@plane/constants";
import type { IProject } from "@plane/types";
// ui
import {
@@ -33,7 +34,6 @@ import { useMember, useProject, useUserPermissions } from "@/hooks/store";
import { useAppRouter } from "@/hooks/use-app-router";
import { usePlatformOS } from "@/hooks/use-platform-os";
// plane-web constants
-import { EUserPermissions, EUserPermissionsLevel } from "@/plane-web/constants/user-permissions";
type Props = {
project: IProject;
diff --git a/web/core/components/project/create/common-attributes.tsx b/web/core/components/project/create/common-attributes.tsx
index 632450e9ba..97807e09c5 100644
--- a/web/core/components/project/create/common-attributes.tsx
+++ b/web/core/components/project/create/common-attributes.tsx
@@ -1,13 +1,13 @@
import { ChangeEvent } from "react";
import { Controller, useFormContext, UseFormSetValue } from "react-hook-form";
import { Info } from "lucide-react";
+// plane imports
+import { ETabIndices } from "@plane/constants";
import { useTranslation } from "@plane/i18n";
// ui
import { Input, TextArea, Tooltip } from "@plane/ui";
// plane utils
import { cn } from "@plane/utils";
-// constants
-import { ETabIndices } from "@/constants/tab-indices";
// helpers
import { projectIdentifierSanitizer } from "@/helpers/project.helper";
import { getTabIndex } from "@/helpers/tab-indices.helper";
diff --git a/web/core/components/project/create/header.tsx b/web/core/components/project/create/header.tsx
index efe93e757d..2353b36d17 100644
--- a/web/core/components/project/create/header.tsx
+++ b/web/core/components/project/create/header.tsx
@@ -1,6 +1,8 @@
import { useState } from "react";
import { Controller, useFormContext } from "react-hook-form";
import { X } from "lucide-react";
+// plane imports
+import { ETabIndices } from "@plane/constants";
import { useTranslation } from "@plane/i18n";
// plane types
import { IProject } from "@plane/types";
@@ -8,8 +10,6 @@ import { IProject } from "@plane/types";
import { CustomEmojiIconPicker, EmojiIconPickerTypes, Logo } from "@plane/ui";
// components
import { ImagePickerPopover } from "@/components/core";
-// constants
-import { ETabIndices } from "@/constants/tab-indices";
// helpers
import { convertHexEmojiToDecimal } from "@/helpers/emoji.helper";
import { getFileURL } from "@/helpers/file.helper";
diff --git a/web/core/components/project/create/project-create-buttons.tsx b/web/core/components/project/create/project-create-buttons.tsx
index ac61360e4c..22ce787da4 100644
--- a/web/core/components/project/create/project-create-buttons.tsx
+++ b/web/core/components/project/create/project-create-buttons.tsx
@@ -1,10 +1,10 @@
import { useFormContext } from "react-hook-form";
+// plane imports
+import { ETabIndices } from "@plane/constants";
import { useTranslation } from "@plane/i18n";
import { IProject } from "@plane/types";
// ui
import { Button } from "@plane/ui";
-// constants
-import { ETabIndices } from "@/constants/tab-indices";
// helpers
import { getTabIndex } from "@/helpers/tab-indices.helper";
diff --git a/web/core/components/project/delete-project-modal.tsx b/web/core/components/project/delete-project-modal.tsx
index c8deaf97e4..4c0b8c9afa 100644
--- a/web/core/components/project/delete-project-modal.tsx
+++ b/web/core/components/project/delete-project-modal.tsx
@@ -6,11 +6,11 @@ import { Controller, useForm } from "react-hook-form";
import { AlertTriangle } from "lucide-react";
import { Dialog, Transition } from "@headlessui/react";
// types
+import { PROJECT_DELETED } from "@plane/constants";
import type { IProject } from "@plane/types";
// ui
import { Button, Input, TOAST_TYPE, setToast } from "@plane/ui";
// constants
-import { PROJECT_DELETED } from "@/constants/event-tracker";
// hooks
import { useEventTracker, useProject } from "@/hooks/store";
import { useAppRouter } from "@/hooks/use-app-router";
diff --git a/web/core/components/project/dropdowns/filters/access.tsx b/web/core/components/project/dropdowns/filters/access.tsx
index d155802573..b9b3dd6a2f 100644
--- a/web/core/components/project/dropdowns/filters/access.tsx
+++ b/web/core/components/project/dropdowns/filters/access.tsx
@@ -1,9 +1,11 @@
import React, { useState } from "react";
import { observer } from "mobx-react";
+// plane imports
+import { NETWORK_CHOICES } from "@plane/constants";
+import { useTranslation } from "@plane/i18n";
// components
import { FilterHeader, FilterOption } from "@/components/issues";
-// constants
-import { NETWORK_CHOICES } from "@/constants/project";
+import { ProjectNetworkIcon } from "@/components/project";
type Props = {
appliedFilters: string[] | null;
@@ -15,9 +17,10 @@ export const FilterAccess: React.FC<Props> = observer((props) => {
const { appliedFilters, handleUpdate, searchQuery } = props;
// states
const [previewEnabled, setPreviewEnabled] = useState(true);
+ const { t } = useTranslation();
const appliedFiltersCount = appliedFilters?.length ?? 0;
- const filteredOptions = NETWORK_CHOICES.filter((a) => a.label.includes(searchQuery.toLowerCase()));
+ const filteredOptions = NETWORK_CHOICES.filter((a) => a.i18n_label.includes(searchQuery.toLowerCase()));
return (
<>
@@ -34,8 +37,8 @@ export const FilterAccess: React.FC<Props> = observer((props) => {
key={access.key}
isChecked={appliedFilters?.includes(`${access.key}`) ? true : false}
onClick={() => handleUpdate(`${access.key}`)}
- icon={<access.icon className="h-3 w-3" />}
- title={access.label}
+ icon={<ProjectNetworkIcon iconKey={access.iconKey} />}
+ title={t(access.i18n_label)}
/>
))
) : (
diff --git a/web/core/components/project/dropdowns/filters/created-at.tsx b/web/core/components/project/dropdowns/filters/created-at.tsx
index 85a2c3b959..87d45a2a5e 100644
--- a/web/core/components/project/dropdowns/filters/created-at.tsx
+++ b/web/core/components/project/dropdowns/filters/created-at.tsx
@@ -1,10 +1,11 @@
import React, { useState } from "react";
import { observer } from "mobx-react";
+// plane constants
+import { PROJECT_CREATED_AT_FILTER_OPTIONS } from "@plane/constants";
// components
import { DateFilterModal } from "@/components/core";
import { FilterHeader, FilterOption } from "@/components/issues";
-// constants
-import { PROJECT_CREATED_AT_FILTER_OPTIONS } from "@/constants/filters";
+
// helpers
import { isInDateFormat } from "@/helpers/date-time.helper";
diff --git a/web/core/components/project/dropdowns/order-by.tsx b/web/core/components/project/dropdowns/order-by.tsx
index ace859c21a..b9665b61ae 100644
--- a/web/core/components/project/dropdowns/order-by.tsx
+++ b/web/core/components/project/dropdowns/order-by.tsx
@@ -1,11 +1,12 @@
"use client";
import { ArrowDownWideNarrow, Check, ChevronDown } from "lucide-react";
+import { PROJECT_ORDER_BY_OPTIONS } from "@plane/constants";
+import { useTranslation } from "@plane/i18n";
import { TProjectOrderByOptions } from "@plane/types";
// ui
import { CustomMenu, getButtonStyling } from "@plane/ui";
// helpers
-import { PROJECT_ORDER_BY_OPTIONS } from "@/constants/project";
import { cn } from "@/helpers/common.helper";
// types
// constants
@@ -20,6 +21,7 @@ const DISABLED_ORDERING_OPTIONS = ["sort_order"];
export const ProjectOrderByDropdown: React.FC<Props> = (props) => {
const { onChange, value, isMobile = false } = props;
+ const { t } = useTranslation();
const orderByDetails = PROJECT_ORDER_BY_OPTIONS.find((option) => value?.includes(option.key));
@@ -34,13 +36,13 @@ export const ProjectOrderByDropdown: React.FC<Props> = (props) => {
{isMobile ? (
<div className="flex text-sm items-center gap-2 neutral-primary text-custom-text-200">
<ArrowDownWideNarrow className="h-3 w-3" />
- {orderByDetails?.label}
+ {orderByDetails && t(orderByDetails?.i18n_label)}
<ChevronDown className="h-3 w-3" strokeWidth={2} />
</div>
) : (
<div className={cn(getButtonStyling("neutral-primary", "sm"), "px-2 text-custom-text-200")}>
<ArrowDownWideNarrow className="h-3 w-3" />
- {orderByDetails?.label}
+ {orderByDetails && t(orderByDetails?.i18n_label)}
<ChevronDown className="h-3 w-3" strokeWidth={2} />
</div>
)}
@@ -59,7 +61,7 @@ export const ProjectOrderByDropdown: React.FC<Props> = (props) => {
else onChange(option.key);
}}
>
- {option.label}
+ {option && t(option?.i18n_label)}
{value?.includes(option.key) && <Check className="h-3 w-3" />}
</CustomMenu.MenuItem>
))}
diff --git a/web/core/components/project/filters.tsx b/web/core/components/project/filters.tsx
index 2465bbc369..54ae3a7526 100644
--- a/web/core/components/project/filters.tsx
+++ b/web/core/components/project/filters.tsx
@@ -2,6 +2,8 @@ import { useCallback } from "react";
import { observer } from "mobx-react";
import { useParams } from "next/navigation";
import { ListFilter } from "lucide-react";
+// i18n
+import { useTranslation } from "@plane/i18n";
// plane types
import { TProjectFilters } from "@plane/types";
// plane utils
@@ -22,6 +24,8 @@ type Props = {
};
const HeaderFilters = observer(({ filterMenuButton, isMobile, classname = "", filterClassname = "" }: Props) => {
+ // i18n
+ const { t } = useTranslation();
// router
const { workspaceSlug } = useParams();
const {
@@ -72,7 +76,7 @@ const HeaderFilters = observer(({ filterMenuButton, isMobile, classname = "", fi
<div className={cn(filterClassname)}>
<FiltersDropdown
icon={<ListFilter className="h-3 w-3" />}
- title="Filters"
+ title={t("common.filters")}
placement="bottom-end"
isFiltersApplied={isFiltersApplied}
menuButton={filterMenuButton || null}
diff --git a/web/core/components/project/form.tsx b/web/core/components/project/form.tsx
index a7264ea7a5..ed2878996a 100644
--- a/web/core/components/project/form.tsx
+++ b/web/core/components/project/form.tsx
@@ -3,6 +3,7 @@
import { FC, useEffect, useState } from "react";
import { Controller, useForm } from "react-hook-form";
import { Info, Lock } from "lucide-react";
+import { NETWORK_CHOICES, PROJECT_UPDATED } from "@plane/constants";
import { useTranslation } from "@plane/i18n";
// plane types
import { IProject, IWorkspace } from "@plane/types";
@@ -22,9 +23,7 @@ import {
import { Logo } from "@/components/common";
import { ImagePickerPopover } from "@/components/core";
import { TimezoneSelect } from "@/components/global";
-// constants
-import { PROJECT_UPDATED } from "@/constants/event-tracker";
-import { NETWORK_CHOICES } from "@/constants/project";
+import { ProjectNetworkIcon } from "@/components/project";
// helpers
import { renderFormattedDate } from "@/helpers/date-time.helper";
import { convertHexEmojiToDecimal } from "@/helpers/emoji.helper";
@@ -52,6 +51,7 @@ export const ProjectDetailsForm: FC<IProjectDetailsForm> = (props) => {
const { captureProjectEvent } = useEventTracker();
const { updateProject } = useProject();
const { isMobile } = usePlatformOS();
+
// form info
const {
handleSubmit,
@@ -107,8 +107,8 @@ export const ProjectDetailsForm: FC<IProjectDetailsForm> = (props) => {
});
setToast({
type: TOAST_TYPE.SUCCESS,
- title: "Success!",
- message: "Project updated successfully",
+ title: t("toast.success"),
+ message: t("project_settings.general.toast.success"),
});
})
.catch((error) => {
@@ -118,8 +118,8 @@ export const ProjectDetailsForm: FC<IProjectDetailsForm> = (props) => {
});
setToast({
type: TOAST_TYPE.ERROR,
- title: "Error!",
- message: error?.error ?? "Project could not be updated. Please try again.",
+ title: t("toast.error"),
+ message: error?.error ?? t("project_settings.general.toast.error"),
});
});
};
@@ -146,7 +146,7 @@ export const ProjectDetailsForm: FC<IProjectDetailsForm> = (props) => {
await projectService
.checkProjectIdentifierAvailability(workspaceSlug as string, payload.identifier ?? "")
.then(async (res) => {
- if (res.exists) setError("identifier", { message: "Identifier already exists" });
+ if (res.exists) setError("identifier", { message: t("common.identifier_already_exists") });
else await handleUpdateChange(payload);
});
else await handleUpdateChange(payload);
@@ -207,7 +207,7 @@ export const ProjectDetailsForm: FC<IProjectDetailsForm> = (props) => {
<span>{watch("identifier")} .</span>
<span className="flex items-center gap-1.5">
{project.network === 0 && <Lock className="h-2.5 w-2.5 text-white " />}
- {currentNetwork?.label}
+ {currentNetwork && t(currentNetwork?.i18n_label)}
</span>
</span>
</div>
@@ -219,7 +219,7 @@ export const ProjectDetailsForm: FC<IProjectDetailsForm> = (props) => {
name="cover_image_url"
render={({ field: { value, onChange } }) => (
<ImagePickerPopover
- label="Change cover"
+ label={t("change_cover")}
control={control}
onChange={onChange}
value={value ?? null}
@@ -234,12 +234,12 @@ export const ProjectDetailsForm: FC<IProjectDetailsForm> = (props) => {
</div>
<div className="my-8 flex flex-col gap-8">
<div className="flex flex-col gap-1">
- <h4 className="text-sm">Project name</h4>
+ <h4 className="text-sm">{t("common.project_name")}</h4>
<Controller
control={control}
name="name"
rules={{
- required: "Name is required",
+ required: t("name_is_required"),
maxLength: {
value: 255,
message: "Project name should be less than 255 characters",
@@ -255,7 +255,7 @@ export const ProjectDetailsForm: FC<IProjectDetailsForm> = (props) => {
onChange={onChange}
hasError={Boolean(errors.name)}
className="rounded-md !p-3 font-medium"
- placeholder="Project name"
+ placeholder={t("common.project_name")}
disabled={!isAdmin}
/>
)}
@@ -263,7 +263,7 @@ export const ProjectDetailsForm: FC<IProjectDetailsForm> = (props) => {
<span className="text-xs text-red-500">{errors?.name?.message}</span>
</div>
<div className="flex flex-col gap-1">
- <h4 className="text-sm">Summary</h4>
+ <h4 className="text-sm">{t("description")}</h4>
<Controller
name="description"
control={control}
@@ -272,7 +272,7 @@ export const ProjectDetailsForm: FC<IProjectDetailsForm> = (props) => {
id="description"
name="description"
value={value}
- placeholder="Enter project summary"
+ placeholder={t("project_description_placeholder")}
onChange={onChange}
className="min-h-[102px] text-sm font-medium"
hasError={Boolean(errors?.description)}
@@ -289,17 +289,15 @@ export const ProjectDetailsForm: FC<IProjectDetailsForm> = (props) => {
control={control}
name="identifier"
rules={{
- required: "Project ID is required",
- validate: (value) =>
- /^[ÇŞĞIİÖÜA-Z0-9]+$/.test(value.toUpperCase()) ||
- "Only Alphanumeric & Non-latin characters are allowed.",
+ required: t("project_id_is_required"),
+ validate: (value) => /^[ÇŞĞIİÖÜA-Z0-9]+$/.test(value.toUpperCase()) || t("project_id_allowed_char"),
minLength: {
value: 1,
- message: "Project ID must at least be of 1 character",
+ message: t("project_id_min_char"),
},
maxLength: {
value: 5,
- message: "Project ID must at most be of 5 characters",
+ message: t("project_id_max_char"),
},
}}
render={({ field: { value, ref } }) => (
@@ -311,7 +309,7 @@ export const ProjectDetailsForm: FC<IProjectDetailsForm> = (props) => {
onChange={handleIdentifierChange}
ref={ref}
hasError={Boolean(errors.identifier)}
- placeholder="Enter project ID"
+ placeholder={t("project_settings.general.enter_project_id")}
className="w-full font-medium"
disabled={!isAdmin}
/>
@@ -319,7 +317,7 @@ export const ProjectDetailsForm: FC<IProjectDetailsForm> = (props) => {
/>
<Tooltip
isMobile={isMobile}
- tooltipContent="Helps you identify issues in the project uniquely. Max 5 characters."
+ tooltipContent="Helps you identify work items in the project uniquely. Max 5 characters."
className="text-sm"
position="right-top"
>
@@ -331,7 +329,7 @@ export const ProjectDetailsForm: FC<IProjectDetailsForm> = (props) => {
</span>
</div>
<div className="flex flex-col gap-1">
- <h4 className="text-sm">Network</h4>
+ <h4 className="text-sm">{t("workspace_projects.network.label")}</h4>
<Controller
name="network"
control={control}
@@ -345,11 +343,11 @@ export const ProjectDetailsForm: FC<IProjectDetailsForm> = (props) => {
<div className="flex items-center gap-1">
{selectedNetwork ? (
<>
- <selectedNetwork.icon className="h-3.5 w-3.5" />
- {selectedNetwork.label}
+ <ProjectNetworkIcon iconKey={selectedNetwork.iconKey} className="h-3.5 w-3.5" />
+ {t(selectedNetwork.i18n_label)}
</>
) : (
- <span className="text-custom-text-400">Select network</span>
+ <span className="text-custom-text-400">{t("select_network")}</span>
)}
</div>
}
@@ -361,9 +359,9 @@ export const ProjectDetailsForm: FC<IProjectDetailsForm> = (props) => {
{NETWORK_CHOICES.map((network) => (
<CustomSelect.Option key={network.key} value={network.key}>
<div className="flex items-start gap-2">
- <network.icon className="h-3.5 w-3.5" />
+ <ProjectNetworkIcon iconKey={network.iconKey} className="h-3.5 w-3.5" />
<div className="-mt-1">
- <p>{t(network.label)}</p>
+ <p>{t(network.i18n_label)}</p>
<p className="text-xs text-custom-text-400">{t(network.description)}</p>
</div>
</div>
@@ -375,11 +373,11 @@ export const ProjectDetailsForm: FC<IProjectDetailsForm> = (props) => {
/>
</div>
<div className="flex flex-col gap-1 col-span-1 sm:col-span-2 xl:col-span-1">
- <h4 className="text-sm">Project Timezone</h4>
+ <h4 className="text-sm">{t("common.project_timezone")}</h4>
<Controller
name="timezone"
control={control}
- rules={{ required: "Please select a timezone" }}
+ rules={{ required: t("project_settings.general.please_select_a_timezone") }}
render={({ field: { value, onChange } }) => (
<>
<TimezoneSelect
@@ -399,10 +397,10 @@ export const ProjectDetailsForm: FC<IProjectDetailsForm> = (props) => {
<div className="flex items-center justify-between py-2">
<>
<Button variant="primary" type="submit" loading={isLoading} disabled={!isAdmin}>
- {isLoading ? "Updating..." : "Update project"}
+ {isLoading ? `${t("updating")}...` : t("common.update_project")}
</Button>
<span className="text-sm italic text-custom-sidebar-text-400">
- Created on {renderFormattedDate(project?.created_at)}
+ {t("common.created_on")} {renderFormattedDate(project?.created_at)}
</span>
</>
</div>
diff --git a/web/core/components/project/header.tsx b/web/core/components/project/header.tsx
index b79f68d68f..17adc130ee 100644
--- a/web/core/components/project/header.tsx
+++ b/web/core/components/project/header.tsx
@@ -3,6 +3,9 @@
import { observer } from "mobx-react";
import { usePathname } from "next/navigation";
import { Briefcase } from "lucide-react";
+// i18n
+import { EUserPermissions, EUserPermissionsLevel } from "@plane/constants";
+import { useTranslation } from "@plane/i18n";
// ui
import { Breadcrumbs, Button, Header } from "@plane/ui";
// components
@@ -10,12 +13,13 @@ import { BreadcrumbLink } from "@/components/common";
// hooks
import { useCommandPalette, useEventTracker, useUserPermissions } from "@/hooks/store";
// plane web constants
-import { EUserPermissions, EUserPermissionsLevel } from "@/plane-web/constants/user-permissions";
// components
import HeaderFilters from "./filters";
import { ProjectSearch } from "./search-projects";
export const ProjectsBaseHeader = observer(() => {
+ // i18n
+ const { t } = useTranslation();
// store hooks
const { toggleCreateProjectModal } = useCommandPalette();
const { setTrackElement } = useEventTracker();
@@ -35,7 +39,12 @@ export const ProjectsBaseHeader = observer(() => {
<Breadcrumbs>
<Breadcrumbs.BreadcrumbItem
type="text"
- link={<BreadcrumbLink label="Projects" icon={<Briefcase className="h-4 w-4 text-custom-text-300" />} />}
+ link={
+ <BreadcrumbLink
+ label={t("workspace_projects.label", { count: 2 })}
+ icon={<Briefcase className="h-4 w-4 text-custom-text-300" />}
+ />
+ }
/>
{isArchived && <Breadcrumbs.BreadcrumbItem type="text" link={<BreadcrumbLink label="Archived" />} />}
</Breadcrumbs>
@@ -54,7 +63,8 @@ export const ProjectsBaseHeader = observer(() => {
}}
className="items-center gap-1"
>
- <span className="hidden sm:inline-block">Add</span> Project
+ <span className="hidden sm:inline-block">{t("workspace_projects.create.label")}</span>
+ <span className="inline-block sm:hidden">{t("workspace_projects.label", { count: 1 })}</span>
</Button>
) : (
<></>
diff --git a/web/core/components/project/index.ts b/web/core/components/project/index.ts
index 83f4b81455..3f2b2b0771 100644
--- a/web/core/components/project/index.ts
+++ b/web/core/components/project/index.ts
@@ -20,4 +20,5 @@ export * from "./send-project-invitation-modal";
export * from "./confirm-project-member-remove";
export * from "./multi-select-modal";
export * from "./search-projects";
+export * from "./project-network-icon";
export * from "@/plane-web/components/projects/create/root";
diff --git a/web/core/components/project/leave-project-modal.tsx b/web/core/components/project/leave-project-modal.tsx
index 470a5fe61b..febfd9dc34 100644
--- a/web/core/components/project/leave-project-modal.tsx
+++ b/web/core/components/project/leave-project-modal.tsx
@@ -8,11 +8,11 @@ import { Controller, useForm } from "react-hook-form";
import { AlertTriangleIcon } from "lucide-react";
import { Dialog, Transition } from "@headlessui/react";
// types
+import { PROJECT_MEMBER_LEAVE } from "@plane/constants";
import { IProject } from "@plane/types";
// ui
import { Button, Input, TOAST_TYPE, setToast } from "@plane/ui";
// constants
-import { PROJECT_MEMBER_LEAVE } from "@/constants/event-tracker";
// hooks
import { useEventTracker, useUserPermissions } from "@/hooks/store";
import { useAppRouter } from "@/hooks/use-app-router";
@@ -144,7 +144,7 @@ export const LeaveProjectModal: FC<ILeaveProjectModal> = observer((props) => {
<p className="text-sm leading-7 text-custom-text-200">
Are you sure you want to leave the project -
<span className="font-medium text-custom-text-100">{` "${project?.name}" `}</span>? All of the
- issues associated with you will become inaccessible.
+ work items associated with you will become inaccessible.
</p>
</span>
diff --git a/web/core/components/project/member-list-item.tsx b/web/core/components/project/member-list-item.tsx
index a2dfea8242..231000a764 100644
--- a/web/core/components/project/member-list-item.tsx
+++ b/web/core/components/project/member-list-item.tsx
@@ -2,11 +2,11 @@
import { observer } from "mobx-react";
+import { PROJECT_MEMBER_LEAVE } from "@plane/constants";
import { TOAST_TYPE, Table, setToast } from "@plane/ui";
// components
import { ConfirmProjectMemberRemove } from "@/components/project";
// constants
-import { PROJECT_MEMBER_LEAVE } from "@/constants/event-tracker";
// hooks
import { useEventTracker, useMember, useProject, useUser, useUserPermissions } from "@/hooks/store";
diff --git a/web/core/components/project/member-list.tsx b/web/core/components/project/member-list.tsx
index 53be9fc684..c6bf34640e 100644
--- a/web/core/components/project/member-list.tsx
+++ b/web/core/components/project/member-list.tsx
@@ -6,13 +6,13 @@ import { useParams } from "next/navigation";
import { Search } from "lucide-react";
// hooks
// components
+import { EUserPermissions, EUserPermissionsLevel } from "@plane/constants";
+import { useTranslation } from "@plane/i18n";
import { Button } from "@plane/ui";
import { ProjectMemberListItem, SendProjectInvitationModal } from "@/components/project";
// ui
import { MembersSettingsLoader } from "@/components/ui";
import { useEventTracker, useMember, useUserPermissions } from "@/hooks/store";
-// plane-web constants
-import { EUserPermissions, EUserPermissionsLevel } from "@/plane-web/constants/user-permissions";
export const ProjectMemberList: React.FC = observer(() => {
// router
@@ -26,6 +26,9 @@ export const ProjectMemberList: React.FC = observer(() => {
project: { projectMemberIds, getProjectMemberDetails },
} = useMember();
const { allowPermissions } = useUserPermissions();
+
+ const { t } = useTranslation();
+
const searchedMembers = (projectMemberIds ?? []).filter((userId) => {
const memberDetails = projectId ? getProjectMemberDetails(userId, projectId.toString()) : null;
@@ -47,7 +50,7 @@ export const ProjectMemberList: React.FC = observer(() => {
<SendProjectInvitationModal isOpen={inviteModal} onClose={() => setInviteModal(false)} />
<div className="flex items-center justify-between gap-4 border-b border-custom-border-100 py-3.5 overflow-x-hidden">
- <h4 className="text-xl font-medium">Members</h4>
+ <h4 className="text-xl font-medium">{t("members")}</h4>
<div className="ml-auto flex items-center justify-start gap-1 rounded-md border border-custom-border-200 bg-custom-background-100 px-2.5 py-1.5">
<Search className="h-3.5 w-3.5" />
<input
@@ -66,7 +69,7 @@ export const ProjectMemberList: React.FC = observer(() => {
setInviteModal(true);
}}
>
- Add member
+ {t("add_member")}
</Button>
)}
</div>
@@ -77,7 +80,7 @@ export const ProjectMemberList: React.FC = observer(() => {
{searchedMembers.length !== 0 && <ProjectMemberListItem memberDetails={memberDetails ?? []} />}
{searchedMembers.length === 0 && (
- <h4 className="text-sm mt-16 text-center text-custom-text-400">No matching members</h4>
+ <h4 className="text-sm mt-16 text-center text-custom-text-400">{t("no_matching_members")}</h4>
)}
</div>
)}
diff --git a/web/core/components/project/member-select.tsx b/web/core/components/project/member-select.tsx
index 31493a971e..2e809b234b 100644
--- a/web/core/components/project/member-select.tsx
+++ b/web/core/components/project/member-select.tsx
@@ -5,12 +5,12 @@ import { observer } from "mobx-react";
import { useParams } from "next/navigation";
import { Ban } from "lucide-react";
// plane ui
+import { EUserPermissions } from "@plane/constants";
import { Avatar, CustomSearchSelect } from "@plane/ui";
// helpers
import { getFileURL } from "@/helpers/file.helper";
// hooks
import { useMember } from "@/hooks/store";
-import { EUserPermissions } from "@/plane-web/constants";
type Props = {
value: any;
diff --git a/web/core/components/project/multi-select-modal.tsx b/web/core/components/project/multi-select-modal.tsx
index e866f2595e..013cd1248b 100644
--- a/web/core/components/project/multi-select-modal.tsx
+++ b/web/core/components/project/multi-select-modal.tsx
@@ -4,16 +4,16 @@ import { observer } from "mobx-react";
import { Search, X } from "lucide-react";
import { Combobox } from "@headlessui/react";
// plane ui
+import { useTranslation } from "@plane/i18n";
import { Button, Checkbox, EModalPosition, EModalWidth, ModalCore } from "@plane/ui";
// components
import { Logo } from "@/components/common";
-import { EmptyState } from "@/components/empty-state";
-// constants
-import { EmptyStateType } from "@/constants/empty-state";
+import { SimpleEmptyState } from "@/components/empty-state";
// helpers
import { cn } from "@/helpers/common.helper";
// hooks
import { useProject } from "@/hooks/store";
+import { useResolvedAssetPath } from "@/hooks/use-resolved-asset-path";
type Props = {
isOpen: boolean;
@@ -31,6 +31,8 @@ export const ProjectMultiSelectModal: React.FC<Props> = observer((props) => {
const [isSubmitting, setIsSubmitting] = useState(false);
// refs
const moveButtonRef = useRef<HTMLButtonElement>(null);
+ // plane hooks
+ const { t } = useTranslation();
// store hooks
const { getProjectById } = useProject();
// derived values
@@ -44,6 +46,9 @@ export const ProjectMultiSelectModal: React.FC<Props> = observer((props) => {
const projectQuery = `${project?.identifier} ${project?.name}`.toLowerCase();
return projectQuery.includes(searchTerm.toLowerCase());
});
+ const filteredProjectResolvedPath = useResolvedAssetPath({
+ basePath: "/empty-state/search/project",
+ });
useEffect(() => {
if (isOpen) setSelectedProjectIds(selectedProjectIdsProp);
@@ -114,7 +119,11 @@ export const ProjectMultiSelectModal: React.FC<Props> = observer((props) => {
>
{filteredProjectIds.length === 0 ? (
<div className="flex flex-col items-center justify-center px-3 py-8 text-center">
- <EmptyState type={EmptyStateType.PROJECTS_EMPTY_SEARCH} layout="screen-simple" />
+ <SimpleEmptyState
+ title={t("workspace_projects.empty_state.filter.title")}
+ description={t("workspace_projects.empty_state.filter.description")}
+ assetPath={filteredProjectResolvedPath}
+ />
</div>
) : (
<ul
diff --git a/web/core/components/project/project-feature-update.tsx b/web/core/components/project/project-feature-update.tsx
index 01752effc4..a6e4536446 100644
--- a/web/core/components/project/project-feature-update.tsx
+++ b/web/core/components/project/project-feature-update.tsx
@@ -35,8 +35,9 @@ export const ProjectFeatureUpdate: FC<Props> = observer((props) => {
</Row>
<div className="flex items-center justify-between gap-2 mt-4 px-6 py-4 border-t border-custom-border-100">
<div className="flex gap-1 text-sm text-custom-text-300 font-medium">
- {t("congrats")}! {t("project")} <Logo logo={currentProjectDetails.logo_props} />{" "}
- <p className="break-all">{currentProjectDetails.name}</p> {t("created").toLowerCase()}.
+ {t("congrats")}! {t("workspace_projects.label", { count: 1 })}{" "}
+ <Logo logo={currentProjectDetails.logo_props} /> <p className="break-all">{currentProjectDetails.name}</p>{" "}
+ {t("created").toLowerCase()}.
</div>
<div className="flex gap-2">
<Button variant="neutral-primary" size="sm" onClick={onClose} tabIndex={1}>
diff --git a/web/core/components/project/project-network-icon.tsx b/web/core/components/project/project-network-icon.tsx
new file mode 100644
index 0000000000..4133c44c0f
--- /dev/null
+++ b/web/core/components/project/project-network-icon.tsx
@@ -0,0 +1,30 @@
+import { Lock, Globe2 } from "lucide-react";
+// plane imports
+import { TNetworkChoiceIconKey } from "@plane/constants";
+import { cn } from "@plane/utils";
+
+type Props = {
+ iconKey: TNetworkChoiceIconKey;
+ className?: string;
+};
+
+export const ProjectNetworkIcon = (props: Props) => {
+ const { iconKey, className } = props;
+ // Get the icon key
+ const getProjectNetworkIcon = () => {
+ switch (iconKey) {
+ case "Lock":
+ return Lock;
+ case "Globe2":
+ return Globe2;
+ default:
+ return null;
+ }
+ };
+
+ // Get the icon
+ const Icon = getProjectNetworkIcon();
+ if (!Icon) return null;
+
+ return <Icon className={cn("h-3 w-3", className)} />;
+};
diff --git a/web/core/components/project/project-settings-member-defaults.tsx b/web/core/components/project/project-settings-member-defaults.tsx
index f4aeb63b58..e096d21c04 100644
--- a/web/core/components/project/project-settings-member-defaults.tsx
+++ b/web/core/components/project/project-settings-member-defaults.tsx
@@ -5,6 +5,8 @@ import { observer } from "mobx-react";
import { useParams } from "next/navigation";
import { Controller, useForm } from "react-hook-form";
import useSWR from "swr";
+import { EUserPermissions, EUserPermissionsLevel } from "@plane/constants";
+import { useTranslation } from "@plane/i18n";
import { IProject, IUserLite, IWorkspace } from "@plane/types";
// ui
import { Loader, TOAST_TYPE, ToggleSwitch, setToast } from "@plane/ui";
@@ -14,7 +16,6 @@ import { MemberSelect } from "@/components/project";
import { PROJECT_MEMBERS } from "@/constants/fetch-keys";
// hooks
import { useProject, useUserPermissions } from "@/hooks/store";
-import { EUserPermissions, EUserPermissionsLevel } from "@/plane-web/constants/user-permissions";
// types
@@ -29,6 +30,8 @@ export const ProjectSettingsMemberDefaults: React.FC = observer(() => {
// store hooks
const { allowPermissions } = useUserPermissions();
+ const { t } = useTranslation();
+
const { currentProjectDetails, fetchProjectDetails, updateProject } = useProject();
// derived values
const isAdmin = allowPermissions(
@@ -78,9 +81,9 @@ export const ProjectSettingsMemberDefaults: React.FC = observer(() => {
})
.then(() => {
setToast({
- title: "Success!",
+ title: `${t("success")}!`,
type: TOAST_TYPE.SUCCESS,
- message: "Project updated successfully",
+ message: t("project_settings.general.toast.success"),
});
})
.catch((err) => {
@@ -96,9 +99,9 @@ export const ProjectSettingsMemberDefaults: React.FC = observer(() => {
})
.then(() => {
setToast({
- title: "Success!",
+ title: `${t("success")}!`,
type: TOAST_TYPE.SUCCESS,
- message: "Project updated successfully",
+ message: t("project_settings.general.toast.success"),
});
})
.catch((err) => {
@@ -109,13 +112,13 @@ export const ProjectSettingsMemberDefaults: React.FC = observer(() => {
return (
<>
<div className="flex items-center border-b border-custom-border-100 pb-3.5">
- <h3 className="text-xl font-medium">Defaults</h3>
+ <h3 className="text-xl font-medium">{t("defaults")}</h3>
</div>
<div className="flex w-full flex-col gap-2 pb-4">
<div className="flex w-full items-center gap-4 py-4">
<div className="flex w-1/2 flex-col gap-2">
- <h4 className="text-sm">Project lead</h4>
+ <h4 className="text-sm">{t("project_settings.members.project_lead")}</h4>
<div className="">
{currentProjectDetails ? (
<Controller
@@ -140,7 +143,7 @@ export const ProjectSettingsMemberDefaults: React.FC = observer(() => {
</div>
<div className="flex w-1/2 flex-col gap-2">
- <h4 className="text-sm">Default assignee</h4>
+ <h4 className="text-sm">{t("project_settings.members.default_assignee")}</h4>
<div className="">
{currentProjectDetails ? (
<Controller
@@ -169,10 +172,10 @@ export const ProjectSettingsMemberDefaults: React.FC = observer(() => {
<div className="relative pb-4 flex justify-between items-center gap-3">
<div className="space-y-1">
<h3 className="text-lg font-medium text-custom-text-100">
- Grant view access to all issues for guest users:
+ {t("project_settings.members.guest_super_permissions.title")}
</h3>
<p className="text-sm text-custom-text-200">
- This will allow guests to have view access to all the project issues.
+ {t("project_settings.members.guest_super_permissions.sub_heading")}
</p>
</div>
<ToggleSwitch
diff --git a/web/core/components/project/root.tsx b/web/core/components/project/root.tsx
index 0d03155472..9475563fd2 100644
--- a/web/core/components/project/root.tsx
+++ b/web/core/components/project/root.tsx
@@ -2,8 +2,9 @@
import { useCallback, useEffect } from "react";
import { observer } from "mobx-react";
-// types
import { useParams, usePathname } from "next/navigation";
+// i18n
+import { useTranslation } from "@plane/i18n";
import { TProjectAppliedDisplayFilterKeys, TProjectFilters } from "@plane/types";
// components
import { PageHead } from "@/components/core";
@@ -17,6 +18,7 @@ const Root = observer(() => {
const { currentWorkspace } = useWorkspace();
const { workspaceSlug } = useParams();
const pathname = usePathname();
+ const { t } = useTranslation();
// store
const { totalProjectIds, filteredProjectIds } = useProject();
const {
@@ -28,7 +30,9 @@ const Root = observer(() => {
updateDisplayFilters,
} = useProjectFilter();
// derived values
- const pageTitle = currentWorkspace?.name ? `${currentWorkspace?.name} - Projects` : undefined;
+ const pageTitle = currentWorkspace?.name
+ ? `${currentWorkspace?.name} - ${t("workspace_projects.label", { count: 2 })}`
+ : undefined;
const isArchived = pathname.includes("/archives");
diff --git a/web/core/components/project/search-projects.tsx b/web/core/components/project/search-projects.tsx
index 0434f83470..412e979e9a 100644
--- a/web/core/components/project/search-projects.tsx
+++ b/web/core/components/project/search-projects.tsx
@@ -5,12 +5,16 @@ import { observer } from "mobx-react";
import { Search, X } from "lucide-react";
// plane hooks
import { useOutsideClickDetector } from "@plane/hooks";
+// i18n
+import { useTranslation } from "@plane/i18n";
// helpers
import { cn } from "@/helpers/common.helper";
// hooks
import { useProjectFilter } from "@/hooks/store";
export const ProjectSearch: FC = observer(() => {
+ // i18n
+ const { t } = useTranslation();
// hooks
const { searchQuery, updateSearchQuery } = useProjectFilter();
// refs
@@ -55,7 +59,7 @@ export const ProjectSearch: FC = observer(() => {
<input
ref={inputRef}
className="w-full max-w-[234px] border-none bg-transparent text-sm text-custom-text-100 placeholder:text-custom-text-400 focus:outline-none"
- placeholder="Search"
+ placeholder={t("common.search.label")}
value={searchQuery}
onChange={(e) => updateSearchQuery(e.target.value)}
onKeyDown={handleInputKeyDown}
diff --git a/web/core/components/project/send-project-invitation-modal.tsx b/web/core/components/project/send-project-invitation-modal.tsx
index 6d821cfefc..e7d0813c54 100644
--- a/web/core/components/project/send-project-invitation-modal.tsx
+++ b/web/core/components/project/send-project-invitation-modal.tsx
@@ -6,17 +6,17 @@ import { useParams } from "next/navigation";
import { useForm, Controller, useFieldArray } from "react-hook-form";
import { ChevronDown, Plus, X } from "lucide-react";
import { Dialog, Transition } from "@headlessui/react";
+// plane imports
+import { ROLE, PROJECT_MEMBER_ADDED, EUserPermissions } from "@plane/constants";
+import { useTranslation } from "@plane/i18n";
// ui
import { Avatar, Button, CustomSelect, CustomSearchSelect, TOAST_TYPE, setToast } from "@plane/ui";
// constants
-import { PROJECT_MEMBER_ADDED } from "@/constants/event-tracker";
-import { ROLE } from "@/constants/workspace";
// helpers
import { getFileURL } from "@/helpers/file.helper";
// hooks
import { useEventTracker, useMember, useUserPermissions } from "@/hooks/store";
// plane-web constants
-import { EUserPermissions } from "@/plane-web/constants/user-permissions";
type Props = {
isOpen: boolean;
@@ -68,6 +68,8 @@ export const SendProjectInvitationModal: React.FC<Props> = observer((props) => {
name: "members",
});
+ const { t } = useTranslation();
+
const currentProjectRole = projectUserInfo?.[workspaceSlug?.toString()]?.[projectId?.toString()]?.role;
const uninvitedPeople = workspaceMemberIds?.filter((userId) => {
@@ -175,7 +177,10 @@ export const SendProjectInvitationModal: React.FC<Props> = observer((props) => {
const currentMemberWorkspaceRole = getWorkspaceMemberDetails(value)?.role;
if (!value || !currentMemberWorkspaceRole) return ROLE;
- const isGuestOROwner = [EUserPermissions.ADMIN, EUserPermissions.GUEST].includes(currentMemberWorkspaceRole);
+ const isGuestOROwner = [EUserPermissions.ADMIN, EUserPermissions.GUEST].includes(
+ currentMemberWorkspaceRole as EUserPermissions
+ );
+
return Object.fromEntries(
Object.entries(ROLE).filter(([key]) => !isGuestOROwner || [currentMemberWorkspaceRole].includes(parseInt(key)))
@@ -212,10 +217,12 @@ export const SendProjectInvitationModal: React.FC<Props> = observer((props) => {
<form onSubmit={handleSubmit(onSubmit)}>
<div className="space-y-5">
<Dialog.Title as="h3" className="text-lg font-medium leading-6 text-custom-text-100">
- Invite members
+ {t("project_settings.members.invite_members.title")}
</Dialog.Title>
<div className="mt-2">
- <p className="text-sm text-custom-text-200">Invite members to work on your project.</p>
+ <p className="text-sm text-custom-text-200">
+ {t("project_settings.members.invite_members.sub_heading")}
+ </p>
</div>
<div className="mb-3 space-y-4">
@@ -339,16 +346,16 @@ export const SendProjectInvitationModal: React.FC<Props> = observer((props) => {
onClick={appendField}
>
<Plus className="h-4 w-4" />
- Add more
+ {t("common.add_more")}
</button>
<div className="flex items-center gap-2">
<Button variant="neutral-primary" size="sm" onClick={handleClose}>
- Cancel
+ {t("cancel")}
</Button>
<Button variant="primary" size="sm" type="submit" loading={isSubmitting}>
{isSubmitting
- ? `${fields && fields.length > 1 ? "Adding members..." : "Adding member..."}`
- : `${fields && fields.length > 1 ? "Add members" : "Add member"}`}
+ ? `${fields && fields.length > 1 ? `${t("add_members")}...` : `${t("add_member")}...`}`
+ : `${fields && fields.length > 1 ? t("add_members") : t("add_member")}`}
</Button>
</div>
</div>
diff --git a/web/core/components/project/settings/archive-project/archive-restore-modal.tsx b/web/core/components/project/settings/archive-project/archive-restore-modal.tsx
index 969a7205b9..f55ec8cdb3 100644
--- a/web/core/components/project/settings/archive-project/archive-restore-modal.tsx
+++ b/web/core/components/project/settings/archive-project/archive-restore-modal.tsx
@@ -111,7 +111,7 @@ export const ArchiveRestoreProjectModal: React.FC<Props> = (props) => {
</h3>
<p className="mt-3 text-sm text-custom-text-200">
{archive
- ? "This project and its issues, cycles, modules, and pages will be archived. Its issues won’t appear in search. Only project admins can restore the project."
+ ? "This project and its work items, cycles, modules, and pages will be archived. Its work items won’t appear in search. Only project admins can restore the project."
: "Restoring a project will activate it and make it visible to all members of the project. Are you sure you want to continue?"}
</p>
<div className="mt-3 flex justify-end gap-2">
diff --git a/web/core/components/project/settings/member-columns.tsx b/web/core/components/project/settings/member-columns.tsx
index 4ead03a648..f3b6ec956c 100644
--- a/web/core/components/project/settings/member-columns.tsx
+++ b/web/core/components/project/settings/member-columns.tsx
@@ -3,18 +3,17 @@ import Link from "next/link";
import { Controller, useForm } from "react-hook-form";
import { Trash2 } from "lucide-react";
import { Disclosure } from "@headlessui/react";
+// plane imports
+import { ROLE, EUserPermissions } from "@plane/constants";
// plane types
import { IUser, IWorkspaceMember } from "@plane/types";
// plane ui
import { CustomSelect, PopoverMenu, TOAST_TYPE, setToast } from "@plane/ui";
// constants
-import { ROLE } from "@/constants/workspace";
// helpers
import { getFileURL } from "@/helpers/file.helper";
// hooks
import { useMember, useUser } from "@/hooks/store";
-// plane web constants
-import { EUserPermissions } from "@/plane-web/constants/user-permissions";
export interface RowData {
member: IWorkspaceMember;
@@ -132,7 +131,7 @@ export const AccountTypeColumn: React.FC<AccountTypeProps> = observer((props) =>
<>
{isRoleNonEditable ? (
<div className="w-32 flex ">
- <span>{ROLE[rowData.role as keyof typeof ROLE]}</span>
+ <span>{ROLE[rowData.role]}</span>
</div>
) : (
<Controller
@@ -161,7 +160,7 @@ export const AccountTypeColumn: React.FC<AccountTypeProps> = observer((props) =>
}}
label={
<div className="flex ">
- <span>{ROLE[rowData.role as keyof typeof ROLE]}</span>
+ <span>{ROLE[rowData.role]}</span>
</div>
}
buttonClassName={`!px-0 !justify-start hover:bg-custom-background-100 ${errors.role ? "border-red-500" : "border-none"}`}
diff --git a/web/core/components/stickies/delete-modal.tsx b/web/core/components/stickies/delete-modal.tsx
index c810f42684..ecbceae93f 100644
--- a/web/core/components/stickies/delete-modal.tsx
+++ b/web/core/components/stickies/delete-modal.tsx
@@ -3,6 +3,7 @@
import { useState } from "react";
import { observer } from "mobx-react";
// ui
+import { useTranslation } from "@plane/i18n";
import { AlertModalCore, TOAST_TYPE, setToast } from "@plane/ui";
interface IStickyDelete {
@@ -15,6 +16,8 @@ export const StickyDeleteModal: React.FC<IStickyDelete> = observer((props) => {
const { isOpen, handleClose, handleSubmit } = props;
// states
const [loader, setLoader] = useState(false);
+ // hooks
+ const { t } = useTranslation();
const formSubmit = async () => {
try {
@@ -23,8 +26,8 @@ export const StickyDeleteModal: React.FC<IStickyDelete> = observer((props) => {
} catch {
setToast({
type: TOAST_TYPE.ERROR,
- title: "Warning!",
- message: "Something went wrong. Please try again later.",
+ title: t("stickies.toasts.not_removed.title"),
+ message: t("stickies.toasts.not_removed.message"),
});
} finally {
setLoader(false);
@@ -37,8 +40,8 @@ export const StickyDeleteModal: React.FC<IStickyDelete> = observer((props) => {
handleSubmit={formSubmit}
isSubmitting={loader}
isOpen={isOpen}
- title="Delete sticky"
- content="Are you sure you want to delete the sticky?"
+ title={t("stickies.delete")}
+ content={t("stickies.delete_confirmation")}
/>
);
});
diff --git a/web/core/components/stickies/layout/stickies-list.tsx b/web/core/components/stickies/layout/stickies-list.tsx
index c960ff1cec..3ee1f568ba 100644
--- a/web/core/components/stickies/layout/stickies-list.tsx
+++ b/web/core/components/stickies/layout/stickies-list.tsx
@@ -7,13 +7,18 @@ import type { ElementDragPayload } from "@atlaskit/pragmatic-drag-and-drop/eleme
import { observer } from "mobx-react";
import { usePathname } from "next/navigation";
import Masonry from "react-masonry-component";
+import { Plus } from "lucide-react";
+// plane imports
+import { EUserPermissionsLevel, EUserWorkspaceRoles } from "@plane/constants";
+import { useTranslation } from "@plane/i18n";
// components
-import { EmptyState } from "@/components/empty-state";
+import { DetailedEmptyState, SimpleEmptyState } from "@/components/empty-state";
import { StickiesEmptyState } from "@/components/home/widgets/empty-states/stickies";
-// constants
-import { EmptyStateType } from "@/constants/empty-state";
// hooks
+import { useUserPermissions } from "@/hooks/store";
+import { useResolvedAssetPath } from "@/hooks/use-resolved-asset-path";
import { useSticky } from "@/hooks/use-stickies";
+// local imports
import { useStickyOperations } from "../sticky/use-operations";
import { StickiesLoader } from "./stickies-loader";
import { StickyDNDWrapper } from "./sticky-dnd-wrapper";
@@ -32,8 +37,11 @@ export const StickiesList = observer((props: TProps) => {
const { workspaceSlug, intersectionElement, columnCount } = props;
// navigation
const pathname = usePathname();
+ // plane hooks
+ const { t } = useTranslation();
// store hooks
const { getWorkspaceStickyIds, toggleShowNewSticky, searchQuery, loader } = useSticky();
+ const { allowPermissions } = useUserPermissions();
// sticky operations
const { stickyOperations } = useStickyOperations({ workspaceSlug: workspaceSlug?.toString() });
// derived values
@@ -41,6 +49,14 @@ export const StickiesList = observer((props: TProps) => {
const itemWidth = `${100 / columnCount}%`;
const totalRows = Math.ceil(workspaceStickyIds.length / columnCount);
const isStickiesPage = pathname?.includes("stickies");
+ const hasGuestLevelPermissions = allowPermissions(
+ [EUserWorkspaceRoles.ADMIN, EUserWorkspaceRoles.MEMBER, EUserWorkspaceRoles.GUEST],
+ EUserPermissionsLevel.WORKSPACE
+ );
+ const stickiesResolvedPath = useResolvedAssetPath({ basePath: "/empty-state/stickies/stickies" });
+ const stickiesSearchResolvedPath = useResolvedAssetPath({
+ basePath: "/empty-state/stickies/stickies-search",
+ });
const masonryRef = useRef<any>(null);
const handleLayout = () => {
@@ -84,19 +100,32 @@ export const StickiesList = observer((props: TProps) => {
if (loader === "loaded" && workspaceStickyIds.length === 0) {
return (
- <div className="size-full grid place-items-center px-2">
- {isStickiesPage || searchQuery ? (
- <EmptyState
- type={searchQuery ? EmptyStateType.STICKIES_SEARCH : EmptyStateType.STICKIES}
- layout={searchQuery ? "screen-simple" : "screen-detailed"}
- primaryButtonOnClick={() => {
- toggleShowNewSticky(true);
- stickyOperations.create();
- }}
- primaryButtonConfig={{
- size: "sm",
- }}
- />
+ <div className="size-full grid place-items-center">
+ {isStickiesPage ? (
+ <>
+ {searchQuery ? (
+ <SimpleEmptyState
+ title={t("stickies.empty_state.search.title")}
+ description={t("stickies.empty_state.search.description")}
+ assetPath={stickiesSearchResolvedPath}
+ />
+ ) : (
+ <DetailedEmptyState
+ title={t("stickies.empty_state.general.title")}
+ description={t("stickies.empty_state.general.description")}
+ assetPath={stickiesResolvedPath}
+ primaryButton={{
+ prependIcon: <Plus className="size-4" />,
+ text: t("stickies.empty_state.general.primary_button.text"),
+ onClick: () => {
+ toggleShowNewSticky(true);
+ stickyOperations.create();
+ },
+ disabled: !hasGuestLevelPermissions,
+ }}
+ />
+ )}
+ </>
) : (
<StickiesEmptyState />
)}
diff --git a/web/core/components/stickies/layout/stickies-truncated.tsx b/web/core/components/stickies/layout/stickies-truncated.tsx
index c7af1191b8..c163d7d322 100644
--- a/web/core/components/stickies/layout/stickies-truncated.tsx
+++ b/web/core/components/stickies/layout/stickies-truncated.tsx
@@ -3,6 +3,7 @@ import Link from "next/link";
import { useParams } from "next/navigation";
import useSWR from "swr";
// plane utils
+import { useTranslation } from "@plane/i18n";
import { cn } from "@plane/utils";
// hooks
import { useSticky } from "@/hooks/use-stickies";
@@ -20,6 +21,7 @@ export const StickiesTruncated = observer((props: StickiesTruncatedProps) => {
const { workspaceSlug } = useParams();
// store hooks
const { fetchWorkspaceStickies } = useSticky();
+ const { t } = useTranslation();
useSWR(
workspaceSlug ? `WORKSPACE_STICKIES_${workspaceSlug}` : null,
@@ -40,7 +42,7 @@ export const StickiesTruncated = observer((props: StickiesTruncatedProps) => {
)}
onClick={handleClose}
>
- Show all
+ {t("show_all")}
</Link>
}
>
diff --git a/web/core/components/stickies/modal/search.tsx b/web/core/components/stickies/modal/search.tsx
index 15e21c8112..22499c03a8 100644
--- a/web/core/components/stickies/modal/search.tsx
+++ b/web/core/components/stickies/modal/search.tsx
@@ -8,6 +8,7 @@ import { Search, X } from "lucide-react";
// plane hooks
import { useOutsideClickDetector } from "@plane/hooks";
// helpers
+import { useTranslation } from "@plane/i18n";
import { cn } from "@/helpers/common.helper";
import { useSticky } from "@/hooks/use-stickies";
@@ -16,6 +17,7 @@ export const StickySearch: FC = observer(() => {
const { workspaceSlug } = useParams();
// hooks
const { searchQuery, updateSearchQuery, fetchWorkspaceStickies } = useSticky();
+ const { t } = useTranslation();
// refs
const inputRef = useRef<HTMLInputElement>(null);
// states
@@ -71,7 +73,7 @@ export const StickySearch: FC = observer(() => {
<input
ref={inputRef}
className="w-full max-w-[234px] border-none bg-transparent text-sm text-custom-text-100 placeholder:text-custom-text-400 focus:outline-none"
- placeholder="Search by title"
+ placeholder={t("stickies.search_placeholder")}
value={searchQuery}
onChange={(e) => {
updateSearchQuery(e.target.value);
diff --git a/web/core/components/stickies/sticky/use-operations.tsx b/web/core/components/stickies/sticky/use-operations.tsx
index 73f2123185..b582fd5638 100644
--- a/web/core/components/stickies/sticky/use-operations.tsx
+++ b/web/core/components/stickies/sticky/use-operations.tsx
@@ -1,5 +1,6 @@
import { useMemo } from "react";
// plane types
+import { useTranslation } from "@plane/i18n";
import { InstructionType, TSticky } from "@plane/types";
// plane ui
import { setToast, TOAST_TYPE } from "@plane/ui";
@@ -36,13 +37,14 @@ export const useStickyOperations = (props: TProps) => {
// store hooks
const { stickies, getWorkspaceStickyIds, createSticky, updateSticky, deleteSticky, updateStickyPosition } =
useSticky();
+ const { t } = useTranslation();
const isValid = (data: Partial<TSticky>) => {
if (data.name && data.name.length > 100) {
setToast({
type: TOAST_TYPE.ERROR,
- title: "Sticky not updated",
- message: "The sticky name cannot be longer than 100 characters.",
+ title: t("stickies.toasts.not_updated.title"),
+ message: t("stickies.toasts.errors.wrong_name"),
});
return false;
}
@@ -63,9 +65,9 @@ export const useStickyOperations = (props: TProps) => {
const latestSticky = stickies[workspaceStickIds[0]];
if (latestSticky && (!latestSticky.description_html || isCommentEmpty(latestSticky.description_html))) {
setToast({
- message: "There already exists a sticky with no description",
+ message: t("stickies.toasts.errors.already_exists"),
type: TOAST_TYPE.WARNING,
- title: "Sticky already created",
+ title: t("stickies.toasts.not_created.title"),
});
return;
}
@@ -75,15 +77,15 @@ export const useStickyOperations = (props: TProps) => {
await createSticky(workspaceSlug, payload);
setToast({
type: TOAST_TYPE.SUCCESS,
- title: "Sticky created",
- message: "The sticky has been successfully created.",
+ title: t("stickies.toasts.created.title"),
+ message: t("stickies.toasts.created.message"),
});
} catch (error: any) {
console.error("Error in creating sticky:", error);
setToast({
type: TOAST_TYPE.ERROR,
- title: "Sticky not created",
- message: error?.data?.error ?? "The sticky could not be created.",
+ title: t("stickies.toasts.not_created.title"),
+ message: error?.data?.error ?? t("stickies.toasts.not_created.message"),
});
}
},
@@ -96,8 +98,8 @@ export const useStickyOperations = (props: TProps) => {
console.error("Error in updating sticky:", error);
setToast({
type: TOAST_TYPE.ERROR,
- title: "Sticky not updated",
- message: "The sticky could not be updated.",
+ title: t("stickies.toasts.not_updated.title"),
+ message: t("stickies.toasts.not_updated.message"),
});
}
},
@@ -107,15 +109,15 @@ export const useStickyOperations = (props: TProps) => {
await deleteSticky(workspaceSlug, stickyId);
setToast({
type: TOAST_TYPE.SUCCESS,
- title: "Sticky removed",
- message: "The sticky has been removed successfully.",
+ title: t("stickies.toasts.removed.title"),
+ message: t("stickies.toasts.removed.message"),
});
} catch (error) {
console.error("Error in removing sticky:", error);
setToast({
type: TOAST_TYPE.ERROR,
- title: "Sticky not removed",
- message: "The sticky could not be removed.",
+ title: t("stickies.toasts.not_removed.title"),
+ message: t("stickies.toasts.not_removed.message"),
});
}
},
@@ -132,8 +134,8 @@ export const useStickyOperations = (props: TProps) => {
console.error("Error in updating sticky position:", error);
setToast({
type: TOAST_TYPE.ERROR,
- title: "Sticky not updated",
- message: "The sticky could not be updated.",
+ title: t("stickies.toasts.not_updated.title"),
+ message: t("stickies.toasts.not_updated.message"),
});
}
},
diff --git a/web/core/components/stickies/widget.tsx b/web/core/components/stickies/widget.tsx
index cafec4013a..e94741cc09 100644
--- a/web/core/components/stickies/widget.tsx
+++ b/web/core/components/stickies/widget.tsx
@@ -2,6 +2,7 @@ import { observer } from "mobx-react";
import { useParams } from "next/navigation";
import { Plus } from "lucide-react";
// hooks
+import { useTranslation } from "@plane/i18n";
import { useSticky } from "@/hooks/use-stickies";
import { StickiesTruncated } from "./layout";
import { StickySearch } from "./modal/search";
@@ -12,6 +13,7 @@ export const StickiesWidget: React.FC = observer(() => {
const { workspaceSlug } = useParams();
// store hooks
const { creatingSticky, toggleShowNewSticky } = useSticky();
+ const { t } = useTranslation();
// sticky operations
const { stickyOperations } = useStickyOperations({
workspaceSlug: workspaceSlug?.toString() ?? "",
@@ -20,7 +22,7 @@ export const StickiesWidget: React.FC = observer(() => {
return (
<div>
<div className="flex items-center justify-between mb-4">
- <div className="text-base font-semibold text-custom-text-350">Your stickies</div>
+ <div className="text-base font-semibold text-custom-text-350">{t("stickies.title")}</div>
{/* actions */}
<div className="flex gap-2">
<StickySearch />
@@ -33,7 +35,7 @@ export const StickiesWidget: React.FC = observer(() => {
disabled={creatingSticky}
>
<Plus className="size-4 my-auto" />
- <span>Add sticky</span>
+ <span>{t("stickies.add")}</span>
{creatingSticky && (
<div
className="size-4 border-2 border-t-transparent border-custom-primary-100 rounded-full animate-spin"
diff --git a/web/core/components/views/applied-filters/access.tsx b/web/core/components/views/applied-filters/access.tsx
index 8e418daecf..ce46a800ab 100644
--- a/web/core/components/views/applied-filters/access.tsx
+++ b/web/core/components/views/applied-filters/access.tsx
@@ -2,8 +2,10 @@ import { observer } from "mobx-react";
// icons
import { X } from "lucide-react";
// constants
-import { EViewAccess, VIEW_ACCESS_SPECIFIERS } from "@/constants/views";
+import { EViewAccess } from "@plane/constants";
// helpers
+import { useTranslation } from "@plane/i18n";
+import { VIEW_ACCESS_SPECIFIERS } from "@/helpers/views.helper";
type Props = {
editable: boolean | undefined;
@@ -13,10 +15,11 @@ type Props = {
export const AppliedAccessFilters: React.FC<Props> = observer((props) => {
const { editable, handleRemove, values } = props;
+ const { t } = useTranslation();
const getAccessLabel = (val: EViewAccess) => {
const value = VIEW_ACCESS_SPECIFIERS.find((option) => option.key === val);
- return value?.label;
+ return value?.i18n_label;
};
return (
@@ -28,7 +31,7 @@ export const AppliedAccessFilters: React.FC<Props> = observer((props) => {
return (
<div key={access} className="flex items-center gap-1 rounded bg-custom-background-80 py-1 px-1.5 text-xs">
- <span className="normal-case">{label}</span>
+ <span className="normal-case">{t(label)}</span>
{editable && (
<button
type="button"
diff --git a/web/core/components/views/applied-filters/root.tsx b/web/core/components/views/applied-filters/root.tsx
index 391e02bf2b..8a881d2d0e 100644
--- a/web/core/components/views/applied-filters/root.tsx
+++ b/web/core/components/views/applied-filters/root.tsx
@@ -1,10 +1,11 @@
import { X } from "lucide-react";
+import { EViewAccess } from "@plane/constants";
+import { useTranslation } from "@plane/i18n";
import { TViewFilterProps } from "@plane/types";
// components
import { Tag } from "@plane/ui";
import { AppliedDateFilters, AppliedMembersFilters } from "@/components/common/applied-filters";
// constants
-import { EViewAccess } from "@/constants/views";
// helpers
import { replaceUnderscoreIfSnakeCase } from "@/helpers/string.helper";
import { AppliedAccessFilters } from "./access";
@@ -23,6 +24,7 @@ const VIEW_ACCESS_FILTERS = ["view_type"];
export const ViewAppliedFiltersList: React.FC<Props> = (props) => {
const { appliedFilters, handleClearAllFilters, handleRemoveFilter, alwaysAllowEditing } = props;
+ const { t } = useTranslation();
if (!appliedFilters) return null;
if (Object.keys(appliedFilters).length === 0) return null;
@@ -76,7 +78,7 @@ export const ViewAppliedFiltersList: React.FC<Props> = (props) => {
{isEditingAllowed && (
<button type="button" onClick={handleClearAllFilters}>
<Tag>
- Clear all
+ {t("common.clear_all")}
<X size={12} strokeWidth={2} />
</Tag>
</button>
diff --git a/web/core/components/views/filters/filter-selection.tsx b/web/core/components/views/filters/filter-selection.tsx
index 00b8ea817e..d2a32fb79d 100644
--- a/web/core/components/views/filters/filter-selection.tsx
+++ b/web/core/components/views/filters/filter-selection.tsx
@@ -1,12 +1,12 @@
import { useState } from "react";
import { observer } from "mobx-react";
import { Search, X } from "lucide-react";
+import { EViewAccess } from "@plane/constants";
import { TViewFilterProps, TViewFilters } from "@plane/types";
// components
import { FilterCreatedBy, FilterCreatedDate } from "@/components/common/filters";
import { FilterOption } from "@/components/issues";
// constants
-import { EViewAccess } from "@/constants/views";
// hooks
import { usePlatformOS } from "@/hooks/use-platform-os";
// plane web components
diff --git a/web/core/components/views/filters/order-by.tsx b/web/core/components/views/filters/order-by.tsx
index 1012700dcd..399bf56d12 100644
--- a/web/core/components/views/filters/order-by.tsx
+++ b/web/core/components/views/filters/order-by.tsx
@@ -2,11 +2,12 @@
import { ArrowDownWideNarrow, ArrowUpWideNarrow, Check, ChevronDown } from "lucide-react";
// types
+import { VIEW_SORT_BY_OPTIONS, VIEW_SORTING_KEY_OPTIONS } from "@plane/constants";
+import { useTranslation } from "@plane/i18n";
import { TViewFiltersSortBy, TViewFiltersSortKey } from "@plane/types";
// ui
import { CustomMenu, getButtonStyling } from "@plane/ui";
// constants
-import { VIEW_SORTING_KEY_OPTIONS } from "@/constants/views";
type Props = {
onChange: (value: { key?: TViewFiltersSortKey; order?: TViewFiltersSortBy }) => void;
@@ -17,15 +18,11 @@ type Props = {
export const ViewOrderByDropdown: React.FC<Props> = (props) => {
const { onChange, sortBy, sortKey, isMobile = false } = props;
+ const { t } = useTranslation();
const orderByDetails = VIEW_SORTING_KEY_OPTIONS.find((option) => sortKey === option.key);
const isDescending = sortBy === "desc";
- const sortByOptions = [
- { key: "asc", label: "Ascending", isSelected: !isDescending },
- { key: "desc", label: "Descending", isSelected: isDescending },
- ];
-
const buttonClassName = isMobile
? "flex items-center text-sm text-custom-text-200 gap-2 w-full"
: `${getButtonStyling("neutral-primary", "sm")} px-2 text-custom-text-300`;
@@ -39,7 +36,7 @@ export const ViewOrderByDropdown: React.FC<Props> = (props) => {
customButton={
<span className={buttonClassName}>
{!isMobile && icon}
- <span className="flex-shrink-0"> {orderByDetails?.label}</span>
+ <span className="flex-shrink-0"> {orderByDetails?.i18n_label && t(orderByDetails?.i18n_label)}</span>
<ChevronDown className={chevronClassName} strokeWidth={2} />
</span>
}
@@ -54,30 +51,33 @@ export const ViewOrderByDropdown: React.FC<Props> = (props) => {
className="flex items-center justify-between gap-2"
onClick={() =>
onChange({
- key: option.key,
+ key: option.key as TViewFiltersSortKey,
})
}
>
- {option.label}
+ {t(option.i18n_label)}
{sortKey === option.key && <Check className="h-3 w-3" />}
</CustomMenu.MenuItem>
))}
<hr className="my-2 border-custom-border-200" />
- {sortByOptions.map((option) => (
- <CustomMenu.MenuItem
- key={option.key}
- className="flex items-center justify-between gap-2"
- onClick={() => {
- if (!option.isSelected)
- onChange({
- order: option.key as TViewFiltersSortBy,
- });
- }}
- >
- {option.label}
- {option.isSelected && <Check className="h-3 w-3" />}
- </CustomMenu.MenuItem>
- ))}
+ {VIEW_SORT_BY_OPTIONS.map((option) => {
+ const isSelected = (option.key === "asc" && !isDescending) || (option.key === "desc" && isDescending);
+ return (
+ <CustomMenu.MenuItem
+ key={option.key}
+ className="flex items-center justify-between gap-2"
+ onClick={() => {
+ if (!isSelected)
+ onChange({
+ order: option.key as TViewFiltersSortBy,
+ });
+ }}
+ >
+ {t(option.i18n_label)}
+ {isSelected && <Check className="h-3 w-3" />}
+ </CustomMenu.MenuItem>
+ );
+ })}
</CustomMenu>
);
};
diff --git a/web/core/components/views/form.tsx b/web/core/components/views/form.tsx
index a39f98fc4e..3e1d0fba3f 100644
--- a/web/core/components/views/form.tsx
+++ b/web/core/components/views/form.tsx
@@ -5,7 +5,9 @@ import { observer } from "mobx-react";
import { Controller, useForm } from "react-hook-form";
import { Layers } from "lucide-react";
// plane constants
-import { EIssueLayoutTypes } from "@plane/constants";
+import { EIssueLayoutTypes, ETabIndices, EViewAccess, ISSUE_DISPLAY_FILTERS_BY_PAGE } from "@plane/constants";
+// i18n
+import { useTranslation } from "@plane/i18n";
// types
import { IProjectView, IIssueFilterOptions, IIssueDisplayProperties, IIssueDisplayFilterOptions } from "@plane/types";
// ui
@@ -13,10 +15,6 @@ import { Button, EmojiIconPicker, EmojiIconPickerTypes, Input, TextArea } from "
// components
import { Logo } from "@/components/common";
import { AppliedFiltersList, DisplayFiltersSelection, FilterSelection, FiltersDropdown } from "@/components/issues";
-// constants
-import { ISSUE_DISPLAY_FILTERS_BY_LAYOUT } from "@/constants/issue";
-import { ETabIndices } from "@/constants/tab-indices";
-import { EViewAccess } from "@/constants/views";
// helpers
import { convertHexEmojiToDecimal } from "@/helpers/emoji.helper";
import { getComputedDisplayFilters, getComputedDisplayProperties } from "@/helpers/issue.helper";
@@ -45,6 +43,8 @@ const defaultValues: Partial<IProjectView> = {
export const ProjectViewForm: React.FC<Props> = observer((props) => {
const { handleFormSubmit, handleClose, data, preLoadedData } = props;
+ // i18n
+ const { t } = useTranslation();
// state
const [isOpen, setIsOpen] = useState(false);
// store hooks
@@ -140,7 +140,9 @@ export const ProjectViewForm: React.FC<Props> = observer((props) => {
return (
<form onSubmit={handleSubmit(handleCreateUpdateView)}>
<div className="space-y-5 p-5">
- <h3 className="text-xl font-medium text-custom-text-200">{data ? "Update" : "Create"} view</h3>
+ <h3 className="text-xl font-medium text-custom-text-200">
+ {data ? t("view.update.label") : t("view.create.label")}
+ </h3>
<div className="space-y-3">
<div className="flex items-start gap-2 w-full">
<EmojiIconPicker
@@ -187,10 +189,10 @@ export const ProjectViewForm: React.FC<Props> = observer((props) => {
control={control}
name="name"
rules={{
- required: "Title is required",
+ required: t("form.title.required"),
maxLength: {
value: 255,
- message: "Title should be less than 255 characters",
+ message: t("form.title.max_length", { length: 255 }),
},
}}
render={({ field: { value, onChange } }) => (
@@ -201,7 +203,7 @@ export const ProjectViewForm: React.FC<Props> = observer((props) => {
value={value}
onChange={onChange}
hasError={Boolean(errors.name)}
- placeholder="Title"
+ placeholder={t("common.title")}
className="w-full text-base"
tabIndex={getIndex("name")}
autoFocus
@@ -219,7 +221,7 @@ export const ProjectViewForm: React.FC<Props> = observer((props) => {
<TextArea
id="description"
name="description"
- placeholder="Description"
+ placeholder={t("common.description")}
className="w-full text-base resize-none min-h-24"
hasError={Boolean(errors?.description)}
value={value}
@@ -252,7 +254,7 @@ export const ProjectViewForm: React.FC<Props> = observer((props) => {
control={control}
name="filters"
render={({ field: { onChange, value: filters } }) => (
- <FiltersDropdown title="Filters" tabIndex={getIndex("filters")}>
+ <FiltersDropdown title={t("common.filters")} tabIndex={getIndex("filters")}>
<FilterSelection
filters={filters ?? {}}
handleFiltersUpdate={(key, value) => {
@@ -272,7 +274,7 @@ export const ProjectViewForm: React.FC<Props> = observer((props) => {
[key]: newValues,
});
}}
- layoutDisplayFiltersOptions={ISSUE_DISPLAY_FILTERS_BY_LAYOUT.issues[displayFilters.layout]}
+ layoutDisplayFiltersOptions={ISSUE_DISPLAY_FILTERS_BY_PAGE.issues[displayFilters.layout]}
labels={projectLabels ?? undefined}
memberIds={projectMemberIds ?? undefined}
states={projectStates}
@@ -288,9 +290,9 @@ export const ProjectViewForm: React.FC<Props> = observer((props) => {
control={control}
name="display_properties"
render={({ field: { onChange: onDisplayPropertiesChange, value: displayProperties } }) => (
- <FiltersDropdown title="Display">
+ <FiltersDropdown title={t("common.display")}>
<DisplayFiltersSelection
- layoutDisplayFiltersOptions={ISSUE_DISPLAY_FILTERS_BY_LAYOUT.issues[displayFilters.layout]}
+ layoutDisplayFiltersOptions={ISSUE_DISPLAY_FILTERS_BY_PAGE.issues[displayFilters.layout]}
displayFilters={displayFilters ?? {}}
handleDisplayFiltersUpdate={(updatedDisplayFilter: Partial<IIssueDisplayFilterOptions>) => {
onDisplayFiltersChange({
@@ -332,10 +334,16 @@ export const ProjectViewForm: React.FC<Props> = observer((props) => {
</div>
<div className="px-5 py-4 flex items-center justify-end gap-2 border-t-[0.5px] border-custom-border-200">
<Button variant="neutral-primary" size="sm" onClick={handleClose} tabIndex={getIndex("cancel")}>
- Cancel
+ {t("common.cancel")}
</Button>
<Button variant="primary" size="sm" type="submit" tabIndex={getIndex("submit")} loading={isSubmitting}>
- {data ? (isSubmitting ? "Updating" : "Update View") : isSubmitting ? "Creating" : "Create View"}
+ {data
+ ? isSubmitting
+ ? t("common.updating")
+ : t("view.update.label")
+ : isSubmitting
+ ? t("common.creating")
+ : t("view.create.label")}
</Button>
</div>
</form>
diff --git a/web/core/components/views/quick-actions.tsx b/web/core/components/views/quick-actions.tsx
index 1a9cfa6073..bb7f4426ff 100644
--- a/web/core/components/views/quick-actions.tsx
+++ b/web/core/components/views/quick-actions.tsx
@@ -4,6 +4,7 @@ import { useState } from "react";
import { observer } from "mobx-react";
import { ExternalLink, Link, Pencil, Trash2 } from "lucide-react";
// types
+import { EUserPermissions, EUserPermissionsLevel } from "@plane/constants";
import { IProjectView } from "@plane/types";
// ui
import { ContextMenu, CustomMenu, TContextMenuItem, TOAST_TYPE, setToast } from "@plane/ui";
@@ -15,7 +16,6 @@ import { copyUrlToClipboard } from "@/helpers/string.helper";
// hooks
import { useUser, useUserPermissions } from "@/hooks/store";
import { PublishViewModal, useViewPublish } from "@/plane-web/components/views/publish";
-import { EUserPermissions, EUserPermissionsLevel } from "@/plane-web/constants/user-permissions";
type Props = {
parentRef: React.RefObject<HTMLElement>;
diff --git a/web/core/components/views/view-list-item-action.tsx b/web/core/components/views/view-list-item-action.tsx
index 1868f2e52b..9ec4a0288e 100644
--- a/web/core/components/views/view-list-item-action.tsx
+++ b/web/core/components/views/view-list-item-action.tsx
@@ -3,20 +3,19 @@ import { observer } from "mobx-react";
import { useParams } from "next/navigation";
import { Earth, Lock } from "lucide-react";
// types
+import { EViewAccess, EUserPermissions, EUserPermissionsLevel } from "@plane/constants";
import { IProjectView } from "@plane/types";
// ui
import { Tooltip, FavoriteStar } from "@plane/ui";
// components
import { DeleteProjectViewModal, CreateUpdateProjectViewModal, ViewQuickActions } from "@/components/views";
// constants
-import { EViewAccess } from "@/constants/views";
// helpers
import { calculateTotalFilters } from "@/helpers/filter.helper";
import { getPublishViewLink } from "@/helpers/project-views.helpers";
// hooks
import { useMember, useProjectView, useUserPermissions } from "@/hooks/store";
import { PublishViewModal } from "@/plane-web/components/views/publish";
-import { EUserPermissions, EUserPermissionsLevel } from "@/plane-web/constants/user-permissions";
import { ButtonAvatars } from "../dropdowns/member/avatar";
type Props = {
diff --git a/web/core/components/views/views-list.tsx b/web/core/components/views/views-list.tsx
index 6b7d411724..29a0c4cb08 100644
--- a/web/core/components/views/views-list.tsx
+++ b/web/core/components/views/views-list.tsx
@@ -1,31 +1,49 @@
import { observer } from "mobx-react";
import { useParams } from "next/navigation";
+// plane imports
+import { EUserPermissionsLevel, EUserProjectRoles } from "@plane/constants";
+import { useTranslation } from "@plane/i18n";
// components
import { ListLayout } from "@/components/core/list";
-import { EmptyState } from "@/components/empty-state";
+import { ComicBoxButton, DetailedEmptyState, SimpleEmptyState } from "@/components/empty-state";
import { ViewListLoader } from "@/components/ui";
import { ProjectViewListItem } from "@/components/views";
-// constants
-import { EmptyStateType } from "@/constants/empty-state";
// hooks
-import { useCommandPalette, useProjectView } from "@/hooks/store";
-// assets
+import { useCommandPalette, useProjectView, useUserPermissions } from "@/hooks/store";
+import { useResolvedAssetPath } from "@/hooks/use-resolved-asset-path";
export const ProjectViewsList = observer(() => {
const { projectId } = useParams();
+ // plane hooks
+ const { t } = useTranslation();
// store hooks
const { toggleCreateViewModal } = useCommandPalette();
const { getProjectViews, getFilteredProjectViews, loader } = useProjectView();
-
+ const { allowPermissions } = useUserPermissions();
+ // derived values
const projectViews = getProjectViews(projectId?.toString());
const filteredProjectViews = getFilteredProjectViews(projectId?.toString());
+ const canPerformEmptyStateActions = allowPermissions(
+ [EUserProjectRoles.ADMIN, EUserProjectRoles.MEMBER, EUserProjectRoles.GUEST],
+ EUserPermissionsLevel.PROJECT
+ );
+ const generalViewResolvedPath = useResolvedAssetPath({
+ basePath: "/empty-state/onboarding/views",
+ });
+ const filteredViewResolvedPath = useResolvedAssetPath({
+ basePath: "/empty-state/search/views",
+ });
if (loader || !projectViews || !filteredProjectViews) return <ViewListLoader />;
if (filteredProjectViews.length === 0 && projectViews.length > 0) {
return (
<div className="flex items-center justify-center h-full w-full">
- <EmptyState type={EmptyStateType.VIEWS_EMPTY_SEARCH} layout="screen-simple" />
+ <SimpleEmptyState
+ title={t("project_views.empty_state.filter.title")}
+ description={t("project_views.empty_state.filter.description")}
+ assetPath={filteredViewResolvedPath}
+ />
</div>
);
}
@@ -43,7 +61,20 @@ export const ProjectViewsList = observer(() => {
</ListLayout>
</div>
) : (
- <EmptyState type={EmptyStateType.PROJECT_VIEW} primaryButtonOnClick={() => toggleCreateViewModal(true)} />
+ <DetailedEmptyState
+ title={t("project_views.empty_state.general.title")}
+ description={t("project_views.empty_state.general.description")}
+ assetPath={generalViewResolvedPath}
+ customPrimaryButton={
+ <ComicBoxButton
+ label={t("project_views.empty_state.general.primary_button.text")}
+ title={t("project_views.empty_state.general.primary_button.comic.title")}
+ description={t("project_views.empty_state.general.primary_button.comic.description")}
+ onClick={() => toggleCreateViewModal(true)}
+ disabled={!canPerformEmptyStateActions}
+ />
+ }
+ />
)}
</>
);
diff --git a/web/core/components/web-hooks/create-webhook-modal.tsx b/web/core/components/web-hooks/create-webhook-modal.tsx
index 87a564cba4..d5eecbe9c7 100644
--- a/web/core/components/web-hooks/create-webhook-modal.tsx
+++ b/web/core/components/web-hooks/create-webhook-modal.tsx
@@ -3,6 +3,7 @@
import React, { useState } from "react";
import { useParams } from "next/navigation";
// types
+import { useTranslation } from "@plane/i18n";
import { IWebhook, IWorkspace, TWebhookEventTypes } from "@plane/types";
// ui
import { EModalPosition, EModalWidth, ModalCore, TOAST_TYPE, setToast } from "@plane/ui";
@@ -34,6 +35,7 @@ export const CreateWebhookModal: React.FC<ICreateWebhookModal> = (props) => {
const [generatedWebhook, setGeneratedKey] = useState<IWebhook | null>(null);
// router
const { workspaceSlug } = useParams();
+ const { t } = useTranslation();
const handleCreateWebhook = async (formData: IWebhook, webhookEventType: TWebhookEventTypes) => {
if (!workspaceSlug) return;
@@ -65,8 +67,8 @@ export const CreateWebhookModal: React.FC<ICreateWebhookModal> = (props) => {
.then(({ webHook, secretKey }) => {
setToast({
type: TOAST_TYPE.SUCCESS,
- title: "Success!",
- message: "Webhook created successfully.",
+ title: t("workspace_settings.settings.webhooks.toasts.created.title"),
+ message: t("workspace_settings.settings.webhooks.toasts.created.message"),
});
setGeneratedKey(webHook);
@@ -77,8 +79,8 @@ export const CreateWebhookModal: React.FC<ICreateWebhookModal> = (props) => {
.catch((error) => {
setToast({
type: TOAST_TYPE.ERROR,
- title: "Error!",
- message: error?.error ?? "Something went wrong. Please try again.",
+ title: t("workspace_settings.settings.webhooks.toasts.not_created.title"),
+ message: error?.error ?? t("workspace_settings.settings.webhooks.toasts.not_created.message"),
});
});
};
diff --git a/web/core/components/web-hooks/form/event-types.tsx b/web/core/components/web-hooks/form/event-types.tsx
index c90500a740..4cff42ff9f 100644
--- a/web/core/components/web-hooks/form/event-types.tsx
+++ b/web/core/components/web-hooks/form/event-types.tsx
@@ -1,4 +1,5 @@
// types
+import { useTranslation } from "@plane/i18n";
import { TWebhookEventTypes } from "@plane/types";
type Props = {
@@ -6,23 +7,24 @@ type Props = {
onChange: (value: TWebhookEventTypes) => void;
};
-const WEBHOOK_EVENT_TYPES: { key: TWebhookEventTypes; label: string }[] = [
+const WEBHOOK_EVENT_TYPES: { key: TWebhookEventTypes; i18n_label: string }[] = [
{
key: "all",
- label: "Send me everything",
+ i18n_label: "workspace_settings.settings.webhooks.options.all",
},
{
key: "individual",
- label: "Select individual events",
+ i18n_label: "workspace_settings.settings.webhooks.options.individual",
},
];
export const WebhookOptions: React.FC<Props> = (props) => {
const { value, onChange } = props;
+ const { t } = useTranslation();
return (
<>
- <h6 className="text-sm font-medium">Which events would you like to trigger this webhook?</h6>
+ <h6 className="text-sm font-medium">{t("workspace_settings.settings.webhooks.modal.question")}</h6>
<div className="space-y-3">
{WEBHOOK_EVENT_TYPES.map((option) => (
<div key={option.key} className="flex items-center gap-2">
@@ -34,7 +36,7 @@ export const WebhookOptions: React.FC<Props> = (props) => {
onChange={() => onChange(option.key)}
/>
<label className="text-sm" htmlFor={option.key}>
- {option.label}
+ {t(option.i18n_label)}
</label>
</div>
))}
diff --git a/web/core/components/web-hooks/form/form.tsx b/web/core/components/web-hooks/form/form.tsx
index bbb953cb38..5ecd7ff8e1 100644
--- a/web/core/components/web-hooks/form/form.tsx
+++ b/web/core/components/web-hooks/form/form.tsx
@@ -3,6 +3,7 @@
import React, { FC, useEffect, useState } from "react";
import { observer } from "mobx-react";
import { Controller, useForm } from "react-hook-form";
+import { useTranslation } from "@plane/i18n";
import { IWebhook, TWebhookEventTypes } from "@plane/types";
// hooks
import { Button } from "@plane/ui";
@@ -39,6 +40,7 @@ export const WebhookForm: FC<Props> = observer((props) => {
const [webhookEventType, setWebhookEventType] = useState<TWebhookEventTypes>("all");
// store hooks
const { webhookSecretKey } = useWebhook();
+ const { t } = useTranslation();
// use form
const {
handleSubmit,
@@ -62,14 +64,18 @@ export const WebhookForm: FC<Props> = observer((props) => {
return (
<form onSubmit={handleSubmit(handleFormSubmit)}>
<div className="space-y-5 ">
- <div className="text-xl font-medium text-custom-text-200">{data ? "Webhook details" : "Create webhook"}</div>
+ <div className="text-xl font-medium text-custom-text-200">
+ {data
+ ? t("workspace_settings.settings.webhooks.modal.details")
+ : t("workspace_settings.settings.webhooks.modal.title")}
+ </div>
<div className="space-y-3">
<div className="space-y-1">
<Controller
control={control}
name="url"
rules={{
- required: "URL is required",
+ required: t("workspace_settings.settings.webhooks.modal.error"),
}}
render={({ field: { onChange, value } }) => (
<WebhookInput value={value} onChange={onChange} hasError={Boolean(errors.url)} />
@@ -88,17 +94,17 @@ export const WebhookForm: FC<Props> = observer((props) => {
<div className="pt-0 space-y-5">
<WebhookSecretKey data={data} />
<Button type="submit" loading={isSubmitting}>
- {isSubmitting ? "Updating" : "Update"}
+ {isSubmitting ? t("updating") : t("update")}
</Button>
</div>
) : (
<div className="px-5 py-4 flex items-center justify-end gap-2 border-t-[0.5px] border-custom-border-200">
<Button variant="neutral-primary" size="sm" onClick={handleClose}>
- Cancel
+ {t("cancel")}
</Button>
{!webhookSecretKey && (
- <Button type="submit" variant="primary" size="sm" loading={isSubmitting}>
- {isSubmitting ? "Creating" : "Create"}
+ <Button type="submit" variant="primary" size="sm" loading={isSubmitting} className="capitalize">
+ {isSubmitting ? t("common.creating") : t("common.create")}
</Button>
)}
</div>
diff --git a/web/core/components/web-hooks/form/individual-event-options.tsx b/web/core/components/web-hooks/form/individual-event-options.tsx
index 290e85c00d..751d578f30 100644
--- a/web/core/components/web-hooks/form/individual-event-options.tsx
+++ b/web/core/components/web-hooks/form/individual-event-options.tsx
@@ -18,8 +18,8 @@ export const INDIVIDUAL_WEBHOOK_OPTIONS: {
},
{
key: "issue",
- label: "Issues",
- description: "Issue created, updated, deleted, added to a cycle or module",
+ label: "Work items",
+ description: "Work item created, updated, deleted, added to a cycle or module",
},
{
key: "module",
@@ -28,7 +28,7 @@ export const INDIVIDUAL_WEBHOOK_OPTIONS: {
},
{
key: "issue_comment",
- label: "Issue comments",
+ label: "Work item comments",
description: "Comment posted, updated, or deleted",
},
];
diff --git a/web/core/components/web-hooks/form/input.tsx b/web/core/components/web-hooks/form/input.tsx
index 997e97e797..c5ee281aa6 100644
--- a/web/core/components/web-hooks/form/input.tsx
+++ b/web/core/components/web-hooks/form/input.tsx
@@ -1,5 +1,6 @@
"use client";
+import { useTranslation } from "@plane/i18n";
import { Input } from "@plane/ui";
type Props = {
@@ -9,10 +10,11 @@ type Props = {
};
export const WebhookInput: React.FC<Props> = (props) => {
const { value, onChange, hasError } = props;
+ const { t } = useTranslation();
return (
<>
- <h6 className="text-sm font-medium">Payload URL</h6>
+ <h6 className="text-sm font-medium">{t("workspace_settings.settings.webhooks.modal.payload")}</h6>
<Input
type="url"
className="h-11 w-full"
diff --git a/web/core/components/web-hooks/form/secret-key.tsx b/web/core/components/web-hooks/form/secret-key.tsx
index 62815a6e28..f2d16c14e8 100644
--- a/web/core/components/web-hooks/form/secret-key.tsx
+++ b/web/core/components/web-hooks/form/secret-key.tsx
@@ -6,6 +6,7 @@ import { observer } from "mobx-react";
import { useParams } from "next/navigation";
// icons
import { Copy, Eye, EyeOff, RefreshCw } from "lucide-react";
+import { useTranslation } from "@plane/i18n";
import { IWebhook } from "@plane/types";
// ui
import { Button, Tooltip, TOAST_TYPE, setToast } from "@plane/ui";
@@ -35,6 +36,7 @@ export const WebhookSecretKey: FC<Props> = observer((props) => {
const { currentWorkspace } = useWorkspace();
const { currentWebhook, regenerateSecretKey, webhookSecretKey } = useWebhook();
const { isMobile } = usePlatformOS();
+ const { t } = useTranslation();
const handleCopySecretKey = () => {
if (!webhookSecretKey) return;
@@ -42,15 +44,15 @@ export const WebhookSecretKey: FC<Props> = observer((props) => {
.then(() =>
setToast({
type: TOAST_TYPE.SUCCESS,
- title: "Success!",
- message: "Secret key copied to clipboard.",
+ title: `${t("success")!}`,
+ message: t("workspace_settings.settings.webhooks.toasts.secret_key_copied.message"),
})
)
.catch(() =>
setToast({
type: TOAST_TYPE.ERROR,
- title: "Error!",
- message: "Error occurred while copying secret key.",
+ title: `${t("error")}!`,
+ message: t("workspace_settings.settings.webhooks.toasts.secret_key_not_copied.message"),
})
);
};
@@ -64,7 +66,7 @@ export const WebhookSecretKey: FC<Props> = observer((props) => {
.then(() => {
setToast({
type: TOAST_TYPE.SUCCESS,
- title: "Success!",
+ title: `${t("success")!}`,
message: "New key regenerated successfully.",
});
@@ -76,8 +78,8 @@ export const WebhookSecretKey: FC<Props> = observer((props) => {
.catch((err) =>
setToast({
type: TOAST_TYPE.ERROR,
- title: "Error!",
- message: err?.error ?? "Something went wrong. Please try again.",
+ title: `${t("error")}!`,
+ message: err?.error ?? t("something_went_wrong_please_try_again"),
})
)
.finally(() => setIsRegenerating(false));
@@ -94,8 +96,14 @@ export const WebhookSecretKey: FC<Props> = observer((props) => {
<>
{(data || webhookSecretKey) && (
<div className="space-y-2">
- {webhookId && <div className="text-sm font-medium">Secret key</div>}
- <div className="text-xs text-custom-text-400">Generate a token to sign-in to the webhook payload</div>
+ {webhookId && (
+ <div className="text-sm font-medium">
+ {t("workspace_settings.settings.webhooks.modal.secret_key.title")}
+ </div>
+ )}
+ <div className="text-xs text-custom-text-400">
+ {t("workspace_settings.settings.webhooks.modal.secret_key.message")}
+ </div>
<div className="flex flex-col md:flex-row md:items-center gap-4">
<div className="flex flex-grow max-w-lg items-center justify-between self-stretch rounded border border-custom-border-200 px-2 h-8">
<div className="select-none overflow-hidden font-medium">
@@ -125,7 +133,7 @@ export const WebhookSecretKey: FC<Props> = observer((props) => {
<div>
<Button onClick={handleRegenerateSecretKey} variant="accent-primary" loading={isRegenerating}>
<RefreshCw className="h-3 w-3" />
- {isRegenerating ? "Re-generating..." : "Re-generate key"}
+ {isRegenerating ? `${t("re_generating")}...` : t("re_generate_key")}
</Button>
</div>
)}
diff --git a/web/core/components/web-hooks/generated-hook-details.tsx b/web/core/components/web-hooks/generated-hook-details.tsx
index 2db0bcc79f..bf616e8800 100644
--- a/web/core/components/web-hooks/generated-hook-details.tsx
+++ b/web/core/components/web-hooks/generated-hook-details.tsx
@@ -2,6 +2,7 @@
// components
// ui
+import { useTranslation } from "@plane/i18n";
import { IWebhook } from "@plane/types";
import { Button } from "@plane/ui";
// types
@@ -14,15 +15,17 @@ type Props = {
export const GeneratedHookDetails: React.FC<Props> = (props) => {
const { handleClose, webhookDetails } = props;
+ const { t } = useTranslation();
return (
<>
<div className="space-y-5 p-5">
<div className="space-y-3">
- <h3 className="text-xl font-medium text-custom-text-200">Key created</h3>
+ <h3 className="text-xl font-medium text-custom-text-200">
+ {t("workspace_settings.settings.webhooks.modal.secret_key.created")}
+ </h3>
<p className="text-sm text-custom-text-400">
- Copy and save this secret key in Plane Pages. You can{"'"}t see this key after you hit Close. A CSV file
- containing the key has been downloaded.
+ {t("workspace_settings.settings.webhooks.modal.secret_key.copy_message")}
</p>
</div>
<WebhookSecretKey data={webhookDetails} />
diff --git a/web/core/components/workspace-notifications/root.tsx b/web/core/components/workspace-notifications/root.tsx
index fa17060d59..37623a6137 100644
--- a/web/core/components/workspace-notifications/root.tsx
+++ b/web/core/components/workspace-notifications/root.tsx
@@ -3,6 +3,9 @@
import { FC, useCallback } from "react";
import { observer } from "mobx-react";
import { useParams } from "next/navigation";
+// plane imports
+import { NOTIFICATION_TABS, TNotificationTab } from "@plane/constants";
+import { useTranslation } from "@plane/i18n";
// components
import { Header, Row, ERowVariant, EHeaderVariant, ContentWrapper } from "@plane/ui";
import { CountChip } from "@/components/common";
@@ -12,16 +15,12 @@ import {
NotificationSidebarHeader,
AppliedFilters,
} from "@/components/workspace-notifications";
-// constants
-import { NOTIFICATION_TABS, TNotificationTab } from "@/constants/notification";
// helpers
import { cn } from "@/helpers/common.helper";
import { getNumberCount } from "@/helpers/string.helper";
// hooks
import { useWorkspace, useWorkspaceNotifications } from "@/hooks/store";
-
import { NotificationCardListRoot } from "@/plane-web/components/workspace-notifications";
-
export const NotificationsSidebarRoot: FC = observer(() => {
const { workspaceSlug } = useParams();
// hooks
@@ -34,6 +33,8 @@ export const NotificationsSidebarRoot: FC = observer(() => {
currentNotificationTab,
setCurrentNotificationTab,
} = useWorkspaceNotifications();
+
+ const { t } = useTranslation();
// derived values
const workspace = workspaceSlug ? getWorkspaceBySlug(workspaceSlug.toString()) : undefined;
const notificationIds = workspace ? notificationIdsByWorkspaceId(workspace.id) : undefined;
@@ -76,7 +77,7 @@ export const NotificationsSidebarRoot: FC = observer(() => {
: "text-custom-text-100 hover:text-custom-text-200"
)}
>
- <div className="font-medium">{tab.label}</div>
+ <div className="font-medium">{t(tab.i18n_label)}</div>
{tab.count(unreadNotificationsCount) > 0 && (
<CountChip count={getNumberCount(tab.count(unreadNotificationsCount))} />
)}
diff --git a/web/core/components/workspace-notifications/sidebar/empty-state.tsx b/web/core/components/workspace-notifications/sidebar/empty-state.tsx
index 3b2b0c0f54..b36bc58a51 100644
--- a/web/core/components/workspace-notifications/sidebar/empty-state.tsx
+++ b/web/core/components/workspace-notifications/sidebar/empty-state.tsx
@@ -2,17 +2,35 @@
import { FC } from "react";
import { observer } from "mobx-react";
+// plane imports
+import { ENotificationTab } from "@plane/constants";
// components
-import { EmptyState } from "@/components/empty-state";
+import { useTranslation } from "@plane/i18n";
+import { SimpleEmptyState } from "@/components/empty-state";
// constants
-import { EmptyStateType } from "@/constants/empty-state";
-import { ENotificationTab } from "@/constants/notification";
+import { useResolvedAssetPath } from "@/hooks/use-resolved-asset-path";
export const NotificationEmptyState: FC = observer(() => {
+ // plane imports
+ const { t } = useTranslation();
// derived values
- const currentTabEmptyState = ENotificationTab.ALL
- ? EmptyStateType.NOTIFICATION_ALL_EMPTY_STATE
- : EmptyStateType.NOTIFICATION_MENTIONS_EMPTY_STATE;
+ const resolvedPath = useResolvedAssetPath({ basePath: "/empty-state/search/notification" });
- return <EmptyState type={currentTabEmptyState} layout="screen-simple" />;
+ return (
+ <>
+ {ENotificationTab.ALL ? (
+ <SimpleEmptyState
+ title={t("notification.empty_state.all.title")}
+ description={t("notification.empty_state.all.description")}
+ assetPath={resolvedPath}
+ />
+ ) : (
+ <SimpleEmptyState
+ title={t("notification.empty_state.mentions.title")}
+ description={t("notification.empty_state.mentions.description")}
+ assetPath={resolvedPath}
+ />
+ )}
+ </>
+ );
});
diff --git a/web/core/components/workspace-notifications/sidebar/filters/applied-filter.tsx b/web/core/components/workspace-notifications/sidebar/filters/applied-filter.tsx
index 66c5e3a2ad..f551a25f4a 100644
--- a/web/core/components/workspace-notifications/sidebar/filters/applied-filter.tsx
+++ b/web/core/components/workspace-notifications/sidebar/filters/applied-filter.tsx
@@ -3,9 +3,10 @@
import { FC } from "react";
import { observer } from "mobx-react";
import { X } from "lucide-react";
-// constants
+// plane imports
+import { ENotificationFilterType, FILTER_TYPE_OPTIONS } from "@plane/constants";
+import { useTranslation } from "@plane/i18n";
import { Header, EHeaderVariant, Tag } from "@plane/ui";
-import { ENotificationFilterType, FILTER_TYPE_OPTIONS } from "@/constants/notification";
// hooks
import { useWorkspaceNotifications } from "@/hooks/store";
@@ -17,6 +18,7 @@ export const AppliedFilters: FC<TAppliedFilters> = observer((props) => {
const { workspaceSlug } = props;
// hooks
const { filters, updateFilters } = useWorkspaceNotifications();
+ const { t } = useTranslation();
// derived values
const isFiltersEnabled = Object.entries(filters.type || {}).some(([, value]) => value);
@@ -47,7 +49,7 @@ export const AppliedFilters: FC<TAppliedFilters> = observer((props) => {
className="flex flex-wrap flex-start"
onClick={() => handleFilterTypeChange(filter?.value, !isSelected)}
>
- <div className="whitespace-nowrap text-custom-text-200">{filter.label}</div>
+ <div className="whitespace-nowrap text-custom-text-200">{t(filter.i18n_label)}</div>
<div className="w-4 h-4 flex justify-center items-center transition-all rounded-sm text-custom-text-200 hover:text-custom-text-100">
<X className="h-3 w-3" />
</div>
@@ -56,7 +58,7 @@ export const AppliedFilters: FC<TAppliedFilters> = observer((props) => {
})}
<button type="button" onClick={handleClearFilters}>
<Tag>
- Clear all
+ {t("common.clear_all")}
<X size={12} strokeWidth={2} />
</Tag>
</button>
diff --git a/web/core/components/workspace-notifications/sidebar/filters/menu/menu-option-item.tsx b/web/core/components/workspace-notifications/sidebar/filters/menu/menu-option-item.tsx
index 144ba90fe6..6fdca55954 100644
--- a/web/core/components/workspace-notifications/sidebar/filters/menu/menu-option-item.tsx
+++ b/web/core/components/workspace-notifications/sidebar/filters/menu/menu-option-item.tsx
@@ -3,8 +3,8 @@
import { FC } from "react";
import { observer } from "mobx-react";
import { Check } from "lucide-react";
-// constants
-import { ENotificationFilterType } from "@/constants/notification";
+// plane imports
+import { ENotificationFilterType } from "@plane/constants";
// helpers
import { cn } from "@/helpers/common.helper";
// hooks
diff --git a/web/core/components/workspace-notifications/sidebar/filters/menu/root.tsx b/web/core/components/workspace-notifications/sidebar/filters/menu/root.tsx
index 751ef84469..e52e989a0c 100644
--- a/web/core/components/workspace-notifications/sidebar/filters/menu/root.tsx
+++ b/web/core/components/workspace-notifications/sidebar/filters/menu/root.tsx
@@ -3,23 +3,31 @@
import { FC } from "react";
import { observer } from "mobx-react";
import { ListFilter } from "lucide-react";
+// plane imports
+import { ENotificationFilterType, FILTER_TYPE_OPTIONS } from "@plane/constants";
+import { useTranslation } from "@plane/i18n";
import { PopoverMenu, Tooltip } from "@plane/ui";
// components
import { NotificationFilterOptionItem } from "@/components/workspace-notifications";
// constants
-import { ENotificationFilterType, FILTER_TYPE_OPTIONS } from "@/constants/notification";
// hooks
import { usePlatformOS } from "@/hooks/use-platform-os";
export const NotificationFilter: FC = observer(() => {
// hooks
const { isMobile } = usePlatformOS();
+ const { t } = useTranslation();
+
+ const translatedFilterTypeOptions = FILTER_TYPE_OPTIONS.map((filter) => ({
+ ...filter,
+ label: t(filter.i18n_label),
+ }));
return (
<PopoverMenu
- data={FILTER_TYPE_OPTIONS}
+ data={translatedFilterTypeOptions}
button={
- <Tooltip tooltipContent="Inbox Filters" isMobile={isMobile} position="bottom">
+ <Tooltip tooltipContent={t("notification.options.filters")} isMobile={isMobile} position="bottom">
<div className="flex-shrink-0 w-5 h-5 flex justify-center items-center overflow-hidden cursor-pointer transition-all hover:bg-custom-background-80 rounded-sm outline-none">
<ListFilter className="h-3 w-3" />
</div>
diff --git a/web/core/components/workspace-notifications/sidebar/header/options/menu-option/root.tsx b/web/core/components/workspace-notifications/sidebar/header/options/menu-option/root.tsx
index b719838b5a..21905a54dc 100644
--- a/web/core/components/workspace-notifications/sidebar/header/options/menu-option/root.tsx
+++ b/web/core/components/workspace-notifications/sidebar/header/options/menu-option/root.tsx
@@ -3,6 +3,7 @@
import { FC, ReactNode } from "react";
import { observer } from "mobx-react";
import { Check, CheckCircle, Clock } from "lucide-react";
+import { useTranslation } from "@plane/i18n";
import { TNotificationFilter } from "@plane/types";
import { ArchiveIcon, PopoverMenu } from "@plane/ui";
// components
@@ -24,6 +25,7 @@ export type TPopoverMenuOptions = {
export const NotificationHeaderMenuOption = observer(() => {
// hooks
const { filters, updateFilters, updateBulkFilters } = useWorkspaceNotifications();
+ const { t } = useTranslation();
const handleFilterChange = (filterType: keyof TNotificationFilter, filterValue: boolean) =>
updateFilters(filterType, filterValue);
@@ -34,7 +36,7 @@ export const NotificationHeaderMenuOption = observer(() => {
{
key: "menu-unread",
type: "menu-item",
- label: "Show unread",
+ label: t("notification.options.show_unread"),
isActive: filters?.read,
prependIcon: <CheckCircle className="flex-shrink-0 h-3 w-3" />,
appendIcon: filters?.read ? <Check className="w-3 h-3" /> : undefined,
@@ -43,7 +45,7 @@ export const NotificationHeaderMenuOption = observer(() => {
{
key: "menu-archived",
type: "menu-item",
- label: "Show archived",
+ label: t("notification.options.show_archived"),
isActive: filters?.archived,
prependIcon: <ArchiveIcon className="flex-shrink-0 h-3 w-3" />,
appendIcon: filters?.archived ? <Check className="w-3 h-3" /> : undefined,
@@ -56,7 +58,7 @@ export const NotificationHeaderMenuOption = observer(() => {
{
key: "menu-snoozed",
type: "menu-item",
- label: "Show snoozed",
+ label: t("notification.options.show_snoozed"),
isActive: filters?.snoozed,
prependIcon: <Clock className="flex-shrink-0 h-3 w-3" />,
appendIcon: filters?.snoozed ? <Check className="w-3 h-3" /> : undefined,
diff --git a/web/core/components/workspace-notifications/sidebar/header/options/root.tsx b/web/core/components/workspace-notifications/sidebar/header/options/root.tsx
index 8f2caf152a..48426aad36 100644
--- a/web/core/components/workspace-notifications/sidebar/header/options/root.tsx
+++ b/web/core/components/workspace-notifications/sidebar/header/options/root.tsx
@@ -1,12 +1,13 @@
import { FC } from "react";
import { observer } from "mobx-react";
import { CheckCheck, RefreshCw } from "lucide-react";
+// plane imports
+import { ENotificationLoader, ENotificationQueryParamType, NOTIFICATIONS_READ } from "@plane/constants";
+import { useTranslation } from "@plane/i18n";
import { Spinner, Tooltip } from "@plane/ui";
// components
import { NotificationFilter, NotificationHeaderMenuOption } from "@/components/workspace-notifications";
// constants
-import { NOTIFICATIONS_READ } from "@/constants/event-tracker";
-import { ENotificationLoader, ENotificationQueryParamType } from "@/constants/notification";
// hooks
import { useEventTracker, useWorkspaceNotifications } from "@/hooks/store";
import { usePlatformOS } from "@/hooks/use-platform-os";
@@ -21,6 +22,7 @@ export const NotificationSidebarHeaderOptions: FC<TNotificationSidebarHeaderOpti
const { isMobile } = usePlatformOS();
const { loader, getNotifications, markAllNotificationsAsRead } = useWorkspaceNotifications();
const { captureEvent } = useEventTracker();
+ const { t } = useTranslation();
const refreshNotifications = async () => {
if (loader) return;
@@ -44,7 +46,7 @@ export const NotificationSidebarHeaderOptions: FC<TNotificationSidebarHeaderOpti
return (
<div className="relative flex justify-center items-center gap-2 text-sm">
{/* mark all notifications as read*/}
- <Tooltip tooltipContent="Mark all as read" isMobile={isMobile} position="bottom">
+ <Tooltip tooltipContent={t("notification.options.mark_all_as_read")} isMobile={isMobile} position="bottom">
<div
className="flex-shrink-0 w-5 h-5 flex justify-center items-center overflow-hidden cursor-pointer transition-all hover:bg-custom-background-80 rounded-sm"
onClick={() => {
@@ -61,7 +63,7 @@ export const NotificationSidebarHeaderOptions: FC<TNotificationSidebarHeaderOpti
</Tooltip>
{/* refetch current notifications */}
- <Tooltip tooltipContent="Refresh" isMobile={isMobile} position="bottom">
+ <Tooltip tooltipContent={t("notification.options.refresh")} isMobile={isMobile} position="bottom">
<div
className="flex-shrink-0 w-5 h-5 flex justify-center items-center overflow-hidden cursor-pointer transition-all hover:bg-custom-background-80 rounded-sm"
onClick={refreshNotifications}
diff --git a/web/core/components/workspace-notifications/sidebar/header/root.tsx b/web/core/components/workspace-notifications/sidebar/header/root.tsx
index d02b9c64e9..c641bde199 100644
--- a/web/core/components/workspace-notifications/sidebar/header/root.tsx
+++ b/web/core/components/workspace-notifications/sidebar/header/root.tsx
@@ -3,6 +3,7 @@
import { FC } from "react";
import { observer } from "mobx-react";
import { Inbox } from "lucide-react";
+import { useTranslation } from "@plane/i18n";
import { Breadcrumbs, Header } from "@plane/ui";
// components
import { BreadcrumbLink } from "@/components/common";
@@ -15,6 +16,7 @@ type TNotificationSidebarHeader = {
export const NotificationSidebarHeader: FC<TNotificationSidebarHeader> = observer((props) => {
const { workspaceSlug } = props;
+ const { t } = useTranslation();
if (!workspaceSlug) return <></>;
return (
@@ -27,7 +29,11 @@ export const NotificationSidebarHeader: FC<TNotificationSidebarHeader> = observe
<Breadcrumbs.BreadcrumbItem
type="text"
link={
- <BreadcrumbLink label="Inbox" icon={<Inbox className="h-4 w-4 text-custom-text-300" />} disableTooltip />
+ <BreadcrumbLink
+ label={t("notification.label")}
+ icon={<Inbox className="h-4 w-4 text-custom-text-300" />}
+ disableTooltip
+ />
}
/>
</Breadcrumbs>
diff --git a/web/core/components/workspace-notifications/sidebar/notification-card/item.tsx b/web/core/components/workspace-notifications/sidebar/notification-card/item.tsx
index c4dc7b2e7c..a0c8142ecd 100644
--- a/web/core/components/workspace-notifications/sidebar/notification-card/item.tsx
+++ b/web/core/components/workspace-notifications/sidebar/notification-card/item.tsx
@@ -100,8 +100,8 @@ export const NotificationItem: FC<TNotificationItem> = observer((props) => {
? "commented"
: notificationField === "archived_at"
? notification?.data?.issue_activity.new_value === "restore"
- ? "restored the issue"
- : "archived the issue"
+ ? "restored the work item"
+ : "archived the work item"
: notificationField === "None"
? null
: replaceUnderscoreIfSnakeCase(notificationField)}{" "}
@@ -115,7 +115,7 @@ export const NotificationItem: FC<TNotificationItem> = observer((props) => {
notificationField === "target_date" ? (
renderFormattedDate(notification?.data?.issue_activity.new_value)
) : notificationField === "attachment" ? (
- "the issue"
+ "the work item"
) : notificationField === "description" ? (
stripAndTruncateHTML(notification?.data?.issue_activity.new_value || "", 55)
) : notificationField === "archived_at" ? null : (
@@ -129,7 +129,7 @@ export const NotificationItem: FC<TNotificationItem> = observer((props) => {
</span>
)
) : (
- "the issue and assigned it to you."
+ "the work item and assigned it to you."
)}
</span>
</>
diff --git a/web/core/components/workspace-notifications/sidebar/notification-card/options/archive.tsx b/web/core/components/workspace-notifications/sidebar/notification-card/options/archive.tsx
index 651404a2f7..cf048f780e 100644
--- a/web/core/components/workspace-notifications/sidebar/notification-card/options/archive.tsx
+++ b/web/core/components/workspace-notifications/sidebar/notification-card/options/archive.tsx
@@ -3,11 +3,12 @@
import { FC } from "react";
import { observer } from "mobx-react";
import { ArchiveRestore } from "lucide-react";
+import { NOTIFICATION_ARCHIVED } from "@plane/constants";
+import { useTranslation } from "@plane/i18n";
import { ArchiveIcon, TOAST_TYPE, setToast } from "@plane/ui";
// components
import { NotificationItemOptionButton } from "@/components/workspace-notifications";
// constants
-import { NOTIFICATION_ARCHIVED } from "@/constants/event-tracker";
// hooks
import { useEventTracker, useWorkspaceNotifications } from "@/hooks/store";
// store
@@ -24,6 +25,7 @@ export const NotificationItemArchiveOption: FC<TNotificationItemArchiveOption> =
const { captureEvent } = useEventTracker();
const { currentNotificationTab } = useWorkspaceNotifications();
const { asJson: data, archiveNotification, unArchiveNotification } = notification;
+ const { t } = useTranslation();
const handleNotificationUpdate = async () => {
try {
@@ -35,7 +37,7 @@ export const NotificationItemArchiveOption: FC<TNotificationItemArchiveOption> =
state: "SUCCESS",
});
setToast({
- title: data.archived_at ? "Notification un-archived" : "Notification archived",
+ title: data.archived_at ? t("notification.toasts.unarchived") : t("notification.toasts.archived"),
type: TOAST_TYPE.SUCCESS,
});
} catch (e) {
@@ -45,7 +47,9 @@ export const NotificationItemArchiveOption: FC<TNotificationItemArchiveOption> =
return (
<NotificationItemOptionButton
- tooltipContent={data.archived_at ? "Un archive" : "Archive"}
+ tooltipContent={
+ data.archived_at ? t("notification.options.mark_unarchive") : t("notification.options.mark_archive")
+ }
callBack={handleNotificationUpdate}
>
{data.archived_at ? (
diff --git a/web/core/components/workspace-notifications/sidebar/notification-card/options/read.tsx b/web/core/components/workspace-notifications/sidebar/notification-card/options/read.tsx
index 42b4e29f07..bd4353b28c 100644
--- a/web/core/components/workspace-notifications/sidebar/notification-card/options/read.tsx
+++ b/web/core/components/workspace-notifications/sidebar/notification-card/options/read.tsx
@@ -3,11 +3,12 @@
import { FC } from "react";
import { observer } from "mobx-react";
import { MessageSquare } from "lucide-react";
+import { NOTIFICATIONS_READ } from "@plane/constants";
+import { useTranslation } from "@plane/i18n";
import { TOAST_TYPE, setToast } from "@plane/ui";
// components
import { NotificationItemOptionButton } from "@/components/workspace-notifications";
// constants
-import { NOTIFICATIONS_READ } from "@/constants/event-tracker";
// hooks
import { useEventTracker, useWorkspaceNotifications } from "@/hooks/store";
// store
@@ -24,6 +25,7 @@ export const NotificationItemReadOption: FC<TNotificationItemReadOption> = obser
const { captureEvent } = useEventTracker();
const { currentNotificationTab } = useWorkspaceNotifications();
const { asJson: data, markNotificationAsRead, markNotificationAsUnRead } = notification;
+ const { t } = useTranslation();
const handleNotificationUpdate = async () => {
try {
@@ -35,7 +37,7 @@ export const NotificationItemReadOption: FC<TNotificationItemReadOption> = obser
state: "SUCCESS",
});
setToast({
- title: data.read_at ? "Notification marked as unread" : "Notification marked as read",
+ title: data.read_at ? t("notification.toasts.unread") : t("notification.toasts.read"),
type: TOAST_TYPE.SUCCESS,
});
} catch (e) {
@@ -45,7 +47,7 @@ export const NotificationItemReadOption: FC<TNotificationItemReadOption> = obser
return (
<NotificationItemOptionButton
- tooltipContent={data.read_at ? "Mark as unread" : "Mark as read"}
+ tooltipContent={data.read_at ? t("notification.options.mark_unread") : t("notification.options.mark_read")}
callBack={handleNotificationUpdate}
>
<MessageSquare className="h-3 w-3 text-custom-text-300" />
diff --git a/web/core/components/workspace-notifications/sidebar/notification-card/options/snooze/modal.tsx b/web/core/components/workspace-notifications/sidebar/notification-card/options/snooze/modal.tsx
index e7bed66881..8b34af4770 100644
--- a/web/core/components/workspace-notifications/sidebar/notification-card/options/snooze/modal.tsx
+++ b/web/core/components/workspace-notifications/sidebar/notification-card/options/snooze/modal.tsx
@@ -5,11 +5,11 @@ import { useParams } from "next/navigation";
import { useForm, Controller } from "react-hook-form";
import { X } from "lucide-react";
import { Transition, Dialog } from "@headlessui/react";
+// plane imports
+import { allTimeIn30MinutesInterval12HoursFormat } from "@plane/constants";
import { Button, CustomSelect } from "@plane/ui";
// components
import { DateDropdown } from "@/components/dropdowns";
-// constants
-import { allTimeIn30MinutesInterval12HoursFormat } from "@/constants/notification";
// helpers
import { getDate } from "@/helpers/date-time.helper";
diff --git a/web/core/components/workspace-notifications/sidebar/notification-card/options/snooze/root.tsx b/web/core/components/workspace-notifications/sidebar/notification-card/options/snooze/root.tsx
index 86e22049cc..1695cd8c81 100644
--- a/web/core/components/workspace-notifications/sidebar/notification-card/options/snooze/root.tsx
+++ b/web/core/components/workspace-notifications/sidebar/notification-card/options/snooze/root.tsx
@@ -4,11 +4,13 @@ import { Dispatch, FC, Fragment, SetStateAction } from "react";
import { observer } from "mobx-react";
import { Clock } from "lucide-react";
import { Popover, Transition } from "@headlessui/react";
+// plane imports
+import { NOTIFICATION_SNOOZE_OPTIONS } from "@plane/constants";
+import { useTranslation } from "@plane/i18n";
import { Tooltip, setToast, TOAST_TYPE } from "@plane/ui";
// components
import { NotificationSnoozeModal } from "@/components/workspace-notifications";
-// constants
-import { NOTIFICATION_SNOOZE_OPTIONS } from "@/constants/notification";
+// helpers
import { cn } from "@/helpers/common.helper";
// hooks
import { useWorkspaceNotifications } from "@/hooks/store";
@@ -29,6 +31,7 @@ export const NotificationItemSnoozeOption: FC<TNotificationItemSnoozeOption> = o
// hooks
const { isMobile } = usePlatformOS();
const {} = useWorkspaceNotifications();
+ const { t } = useTranslation();
const { asJson: data, snoozeNotification, unSnoozeNotification } = notification;
const handleNotificationSnoozeDate = async (snoozeTill: Date | undefined) => {
@@ -36,8 +39,8 @@ export const NotificationItemSnoozeOption: FC<TNotificationItemSnoozeOption> = o
try {
await snoozeNotification(workspaceSlug, snoozeTill);
setToast({
- title: "Success!",
- message: "Notification snoozed successfully",
+ title: `${t("common.success")}!`,
+ message: t("notification.toasts.snoozed"),
type: TOAST_TYPE.SUCCESS,
});
} catch (e) {
@@ -47,8 +50,8 @@ export const NotificationItemSnoozeOption: FC<TNotificationItemSnoozeOption> = o
try {
await unSnoozeNotification(workspaceSlug);
setToast({
- title: "Success!",
- message: "Notification un snoozed successfully",
+ title: `${t("common.success")}!`,
+ message: t("notification.toasts.un_snoozed"),
type: TOAST_TYPE.SUCCESS,
});
} catch (e) {
@@ -86,7 +89,12 @@ export const NotificationItemSnoozeOption: FC<TNotificationItemSnoozeOption> = o
return (
<>
- <Tooltip tooltipContent={data.snoozed_till ? `Un snooze` : `Snooze`} isMobile={isMobile}>
+ <Tooltip
+ tooltipContent={
+ data.snoozed_till ? t("notification.options.mark_unsnooze") : t("notification.options.mark_snooze")
+ }
+ isMobile={isMobile}
+ >
<Popover.Button
className={cn(
"relative flex-shrink-0 w-5 h-5 rounded-sm flex justify-center items-center outline-none bg-custom-background-80 hover:bg-custom-background-90",
@@ -117,7 +125,7 @@ export const NotificationItemSnoozeOption: FC<TNotificationItemSnoozeOption> = o
handleDropdownSelect("un-snooze");
}}
>
- <div>Un snooze</div>
+ <div>{t("notification.options.mark_unsnooze")}</div>
</button>
)}
@@ -131,7 +139,7 @@ export const NotificationItemSnoozeOption: FC<TNotificationItemSnoozeOption> = o
handleDropdownSelect(option.value != undefined ? option.value() : option.value);
}}
>
- <div>{option?.label}</div>
+ <div>{t(option?.i18n_label)}</div>
</button>
))}
</div>
diff --git a/web/core/components/workspace/confirm-workspace-member-remove.tsx b/web/core/components/workspace/confirm-workspace-member-remove.tsx
index 51408d1ee8..07bd56a129 100644
--- a/web/core/components/workspace/confirm-workspace-member-remove.tsx
+++ b/web/core/components/workspace/confirm-workspace-member-remove.tsx
@@ -5,6 +5,7 @@ import { observer } from "mobx-react";
import { AlertTriangle } from "lucide-react";
import { Dialog, Transition } from "@headlessui/react";
// ui
+import { useTranslation } from "@plane/i18n";
import { Button } from "@plane/ui";
// hooks
import { useUser } from "@/hooks/store";
@@ -25,6 +26,7 @@ export const ConfirmWorkspaceMemberRemove: React.FC<Props> = observer((props) =>
const [isRemoving, setIsRemoving] = useState(false);
// store hooks
const { data: currentUser } = useUser();
+ const { t } = useTranslation();
const handleClose = () => {
onClose();
@@ -80,11 +82,11 @@ export const ConfirmWorkspaceMemberRemove: React.FC<Props> = observer((props) =>
<div className="mt-2">
{currentUser?.id === userDetails.id ? (
<p className="text-sm text-custom-text-200">
- Are you sure you want to leave the workspace? You will no longer have access to this
- workspace. This action cannot be undone.
+ {t("workspace_settings.settings.members.leave_confirmation")}
</p>
) : (
<p className="text-sm text-custom-text-200">
+ {/* TODO: Add translation here */}
Are you sure you want to remove member-{" "}
<span className="font-bold">{userDetails?.display_name}</span>? They will no longer have
access to this workspace. This action cannot be undone.
@@ -96,16 +98,16 @@ export const ConfirmWorkspaceMemberRemove: React.FC<Props> = observer((props) =>
</div>
<div className="flex justify-end gap-2 p-4 sm:px-6">
<Button variant="neutral-primary" size="sm" onClick={handleClose}>
- Cancel
+ {t("cancel")}
</Button>
<Button variant="danger" size="sm" tabIndex={1} onClick={handleDeletion} loading={isRemoving}>
{currentUser?.id === userDetails.id
? isRemoving
- ? "Leaving"
- : "Leave"
+ ? t("leaving")
+ : t("leave")
: isRemoving
- ? "Removing"
- : "Remove"}
+ ? t("removing")
+ : t("remove")}
</Button>
</div>
</Dialog.Panel>
diff --git a/web/core/components/workspace/create-workspace-form.tsx b/web/core/components/workspace/create-workspace-form.tsx
index cef5a77933..fe2302912b 100644
--- a/web/core/components/workspace/create-workspace-form.tsx
+++ b/web/core/components/workspace/create-workspace-form.tsx
@@ -3,15 +3,13 @@
import { Dispatch, SetStateAction, useEffect, useState, FC } from "react";
import { observer } from "mobx-react";
import { Controller, useForm } from "react-hook-form";
-import { ORGANIZATION_SIZE, RESTRICTED_URLS } from "@plane/constants";
+import { ORGANIZATION_SIZE, RESTRICTED_URLS, WORKSPACE_CREATED } from "@plane/constants";
import { useTranslation } from "@plane/i18n";
// constants
// types
import { IWorkspace } from "@plane/types";
// ui
import { Button, CustomSelect, Input, TOAST_TYPE, setToast } from "@plane/ui";
-// constants
-import { WORKSPACE_CREATED } from "@/constants/event-tracker";
// hooks
import { useEventTracker, useWorkspace } from "@/hooks/store";
import { useAppRouter } from "@/hooks/use-app-router";
@@ -43,8 +41,8 @@ export const CreateWorkspaceForm: FC<Props> = observer((props) => {
setDefaultValues,
secondaryButton,
primaryButtonText = {
- loading: t("creating_workspace"),
- default: t("create_workspace"),
+ loading: "workspace_creation.button.loading",
+ default: "workspace_creation.button.default",
},
} = props;
// states
@@ -78,13 +76,13 @@ export const CreateWorkspaceForm: FC<Props> = observer((props) => {
payload: {
...res,
state: "SUCCESS",
- element: t("create_workspace_page"),
+ element: "Create workspace page",
},
});
setToast({
type: TOAST_TYPE.SUCCESS,
- title: t("success"),
- message: t("workspace_created_successfully"),
+ title: t("workspace_creation.toast.success.title"),
+ message: t("workspace_creation.toast.success.message"),
});
if (onSubmit) await onSubmit(res);
@@ -94,13 +92,13 @@ export const CreateWorkspaceForm: FC<Props> = observer((props) => {
eventName: WORKSPACE_CREATED,
payload: {
state: "FAILED",
- element: t("create_workspace_page"),
+ element: "Create workspace page",
},
});
setToast({
type: TOAST_TYPE.ERROR,
- title: t("error"),
- message: t("workspace_could_not_be_created_please_try_again"),
+ title: t("workspace_creation.toast.error.title"),
+ message: t("workspace_creation.toast.error.message"),
});
});
} else setSlugError(true);
@@ -108,8 +106,8 @@ export const CreateWorkspaceForm: FC<Props> = observer((props) => {
.catch(() => {
setToast({
type: TOAST_TYPE.ERROR,
- title: t("error"),
- message: t("workspace_could_not_be_created_please_try_again"),
+ title: t("workspace_creation.toast.error.title"),
+ message: t("workspace_creation.toast.error.message"),
});
});
};
@@ -127,7 +125,7 @@ export const CreateWorkspaceForm: FC<Props> = observer((props) => {
<div className="space-y-6 sm:space-y-7">
<div className="space-y-1 text-sm">
<label htmlFor="workspaceName">
- {t("name_your_workspace")}
+ {t("workspace_creation.form.name.label")}
<span className="ml-0.5 text-red-500">*</span>
</label>
<div className="flex flex-col gap-1">
@@ -135,13 +133,13 @@ export const CreateWorkspaceForm: FC<Props> = observer((props) => {
control={control}
name="name"
rules={{
- required: t("this_is_a_required_field"),
+ required: t("common.errors.required"),
validate: (value) =>
/^[\w\s-]*$/.test(value) ||
- t("workspaces_names_can_contain_only_space_dash_and_alphanumeric_characters"),
+ t("workspace_creation.errors.validation.name_alphanumeric"),
maxLength: {
value: 80,
- message: t("limit_your_name_to_80_characters"),
+ message: t("workspace_creation.errors.validation.name_length"),
},
}}
render={({ field: { value, ref, onChange } }) => (
@@ -158,7 +156,7 @@ export const CreateWorkspaceForm: FC<Props> = observer((props) => {
}}
ref={ref}
hasError={Boolean(errors.name)}
- placeholder={t("something_familiar_and_recognizable_is_always_best")}
+ placeholder={t("workspace_creation.form.name.placeholder")}
className="w-full"
/>
)}
@@ -168,7 +166,7 @@ export const CreateWorkspaceForm: FC<Props> = observer((props) => {
</div>
<div className="space-y-1 text-sm">
<label htmlFor="workspaceUrl">
- {t("set_your_workspace_url")}
+ {t("workspace_creation.form.url.label")}
<span className="ml-0.5 text-red-500">*</span>
</label>
<div className="flex w-full items-center rounded-md border-[0.5px] border-custom-border-200 px-3">
@@ -177,10 +175,10 @@ export const CreateWorkspaceForm: FC<Props> = observer((props) => {
control={control}
name="slug"
rules={{
- required: t("this_is_a_required_field"),
+ required: t("common.errors.required"),
maxLength: {
value: 48,
- message: t("limit_your_url_to_48_characters"),
+ message: t("workspace_creation.errors.validation.url_length"),
},
}}
render={({ field: { onChange, value, ref } }) => (
@@ -195,34 +193,35 @@ export const CreateWorkspaceForm: FC<Props> = observer((props) => {
}}
ref={ref}
hasError={Boolean(errors.slug)}
- placeholder={t("workspace_name")}
+ placeholder={t("workspace_creation.form.url.placeholder")}
className="block w-full rounded-md border-none bg-transparent !px-0 py-2 text-sm"
/>
)}
/>
</div>
- {slugError && <p className="-mt-3 text-sm text-red-500">{t("workspace_url_is_already_taken")}</p>}
+ {slugError && <p className="-mt-3 text-sm text-red-500">{t("workspace_creation.errors.validation.url_already_taken")}</p>}
{invalidSlug && (
- <p className="text-sm text-red-500">{t("urls_can_contain_only_dash_and_alphanumeric_characters")}</p>
+ <p className="text-sm text-red-500">{t("workspace_creation.errors.validation.url_alphanumeric")}</p>
)}
{errors.slug && <span className="text-xs text-red-500">{errors.slug.message}</span>}
</div>
<div className="space-y-1 text-sm">
<span>
- {t("how_many_people_will_use_this_workspace")}<span className="ml-0.5 text-red-500">*</span>
+ {t("workspace_creation.form.organization_size.label")}
+ <span className="ml-0.5 text-red-500">*</span>
</span>
<div className="w-full">
<Controller
name="organization_size"
control={control}
- rules={{ required: t("this_is_a_required_field") }}
+ rules={{ required: t("common.errors.required") }}
render={({ field: { value, onChange } }) => (
<CustomSelect
value={value}
onChange={onChange}
label={
ORGANIZATION_SIZE.find((c) => c === value) ?? (
- <span className="text-custom-text-400">{t("select_a_range")}</span>
+ <span className="text-custom-text-400">{t("workspace_creation.form.organization_size.placeholder")}</span>
)
}
buttonClassName="!border-[0.5px] !border-custom-border-200 !shadow-none"
@@ -247,11 +246,11 @@ export const CreateWorkspaceForm: FC<Props> = observer((props) => {
<div className="flex items-center gap-4">
{secondaryButton}
<Button variant="primary" type="submit" size="md" disabled={!isValid} loading={isSubmitting}>
- {isSubmitting ? primaryButtonText.loading : primaryButtonText.default}
+ {isSubmitting ? t(primaryButtonText.loading) : t(primaryButtonText.default)}
</Button>
{!secondaryButton && (
<Button variant="neutral-primary" type="button" size="md" onClick={() => router.back()}>
- {t("go_back")}
+ {t("common.go_back")}
</Button>
)}
</div>
diff --git a/web/core/components/workspace/delete-workspace-modal.tsx b/web/core/components/workspace/delete-workspace-modal.tsx
index b3ada6dd78..62ff1c3098 100644
--- a/web/core/components/workspace/delete-workspace-modal.tsx
+++ b/web/core/components/workspace/delete-workspace-modal.tsx
@@ -6,11 +6,11 @@ import { Controller, useForm } from "react-hook-form";
import { AlertTriangle } from "lucide-react";
import { Dialog, Transition } from "@headlessui/react";
// types
+import { WORKSPACE_DELETED } from "@plane/constants";
import type { IWorkspace } from "@plane/types";
// ui
import { Button, Input, TOAST_TYPE, setToast } from "@plane/ui";
// constants
-import { WORKSPACE_DELETED } from "@/constants/event-tracker";
// hooks
import { useEventTracker, useWorkspace } from "@/hooks/store";
import { useAppRouter } from "@/hooks/use-app-router";
diff --git a/web/core/components/workspace/send-workspace-invitation-modal.tsx b/web/core/components/workspace/send-workspace-invitation-modal.tsx
index 27fb26e89e..a30e8e51fd 100644
--- a/web/core/components/workspace/send-workspace-invitation-modal.tsx
+++ b/web/core/components/workspace/send-workspace-invitation-modal.tsx
@@ -6,14 +6,15 @@ import { useParams } from "next/navigation";
import { Controller, useFieldArray, useForm } from "react-hook-form";
import { Plus, X } from "lucide-react";
import { Dialog, Transition } from "@headlessui/react";
+// plane imports
+import { ROLE, EUserPermissions } from "@plane/constants";
+import { useTranslation } from "@plane/i18n";
import { IWorkspaceBulkInviteFormData } from "@plane/types";
// ui
import { Button, CustomSelect, Input } from "@plane/ui";
// constants
-import { ROLE } from "@/constants/workspace";
// hooks
import { useUserPermissions } from "@/hooks/store";
-import { EUserPermissions } from "@/plane-web/constants/user-permissions";
// types
type Props = {
@@ -44,6 +45,7 @@ export const SendWorkspaceInvitationModal: React.FC<Props> = observer((props) =>
const { isOpen, onClose, onSubmit } = props;
// store hooks
const { workspaceInfoBySlug } = useUserPermissions();
+ const { t } = useTranslation();
// router
const { workspaceSlug } = useParams();
// form info
@@ -119,10 +121,12 @@ export const SendWorkspaceInvitationModal: React.FC<Props> = observer((props) =>
>
<div className="space-y-5">
<Dialog.Title as="h3" className="text-lg font-medium leading-6 text-custom-text-100">
- Invite people to collaborate
+ {t("workspace_settings.settings.members.modal.title")}
</Dialog.Title>
<div className="mt-2">
- <p className="text-sm text-custom-text-200">Invite members to work on your workspace.</p>
+ <p className="text-sm text-custom-text-200">
+ {t("workspace_settings.settings.members.modal.description")}
+ </p>
</div>
<div className="mb-3 space-y-4">
@@ -136,10 +140,10 @@ export const SendWorkspaceInvitationModal: React.FC<Props> = observer((props) =>
control={control}
name={`emails.${index}.email`}
rules={{
- required: "Email ID is required",
+ required: t("workspace_settings.settings.members.modal.errors.required"),
pattern: {
value: /^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,}$/i,
- message: "Invalid Email ID",
+ message: t("workspace_settings.settings.members.modal.errors.invalid"),
},
}}
render={({ field: { value, onChange, ref } }) => (
@@ -152,7 +156,7 @@ export const SendWorkspaceInvitationModal: React.FC<Props> = observer((props) =>
onChange={onChange}
ref={ref}
hasError={Boolean(errors.emails?.[index]?.email)}
- placeholder="Enter their email..."
+ placeholder={t("workspace_settings.settings.members.modal.placeholder")}
className="w-full text-xs sm:text-sm"
/>
{errors.emails?.[index]?.email && (
@@ -215,14 +219,16 @@ export const SendWorkspaceInvitationModal: React.FC<Props> = observer((props) =>
onClick={appendField}
>
<Plus className="h-4 w-4" />
- Add more
+ {t("common.add_more")}
</button>
<div className="flex items-center gap-2">
<Button variant="neutral-primary" size="sm" onClick={handleClose}>
- Cancel
+ {t("cancel")}
</Button>
<Button variant="primary" size="sm" type="submit" loading={isSubmitting}>
- {isSubmitting ? "Sending invitation" : "Send invitation"}
+ {isSubmitting
+ ? t("workspace_settings.settings.members.modal.button_loading")
+ : t("workspace_settings.settings.members.modal.button")}
</Button>
</div>
</div>
diff --git a/web/core/components/workspace/settings/invitations-list-item.tsx b/web/core/components/workspace/settings/invitations-list-item.tsx
index bbbbcd2670..1fba5d45e6 100644
--- a/web/core/components/workspace/settings/invitations-list-item.tsx
+++ b/web/core/components/workspace/settings/invitations-list-item.tsx
@@ -4,16 +4,16 @@ import { useState, FC } from "react";
import { observer } from "mobx-react";
import { useParams } from "next/navigation";
import { ChevronDown, XCircle } from "lucide-react";
-// ui
+// plane imports
+import { ROLE , EUserPermissions, EUserPermissionsLevel } from "@plane/constants";
+import { useTranslation } from "@plane/i18n";
import { CustomSelect, Tooltip, TOAST_TYPE, setToast } from "@plane/ui";
// components
import { ConfirmWorkspaceMemberRemove } from "@/components/workspace";
// constants
-import { ROLE } from "@/constants/workspace";
// hooks
import { useMember, useUserPermissions } from "@/hooks/store";
import { usePlatformOS } from "@/hooks/use-platform-os";
-import { EUserPermissions, EUserPermissionsLevel } from "@/plane-web/constants/user-permissions";
type Props = {
invitationId: string;
@@ -27,6 +27,7 @@ export const WorkspaceInvitationsListItem: FC<Props> = observer((props) => {
const { workspaceSlug } = useParams();
// store hooks
const { allowPermissions, workspaceInfoBySlug } = useUserPermissions();
+ const { t } = useTranslation();
const {
workspace: { updateMemberInvitation, deleteMemberInvitation, getWorkspaceInvitationDetails },
@@ -95,7 +96,7 @@ export const WorkspaceInvitationsListItem: FC<Props> = observer((props) => {
</div>
<div className="flex items-center gap-2 text-xs">
<div className="flex items-center justify-center rounded bg-yellow-500/20 px-2.5 py-1 text-center text-xs font-medium text-yellow-500">
- <p>Pending</p>
+ <p>{t("pending")}</p>
</div>
<CustomSelect
customButton={
diff --git a/web/core/components/workspace/settings/member-columns.tsx b/web/core/components/workspace/settings/member-columns.tsx
index a323dbaf67..7f8771e8a3 100644
--- a/web/core/components/workspace/settings/member-columns.tsx
+++ b/web/core/components/workspace/settings/member-columns.tsx
@@ -3,18 +3,17 @@ import Link from "next/link";
import { Controller, useForm } from "react-hook-form";
import { Trash2 } from "lucide-react";
import { Disclosure } from "@headlessui/react";
-// plane types
+// plane imports
+import { ROLE, EUserPermissions, EUserPermissionsLevel } from "@plane/constants";
import { IUser, IWorkspaceMember } from "@plane/types";
// plane ui
import { CustomSelect, PopoverMenu, TOAST_TYPE, setToast } from "@plane/ui";
// constants
-import { ROLE } from "@/constants/workspace";
// helpers
import { getFileURL } from "@/helpers/file.helper";
// hooks
import { useMember, useUser, useUserPermissions } from "@/hooks/store";
// plane web constants
-import { EUserPermissions, EUserPermissionsLevel } from "@/plane-web/constants/user-permissions";
export interface RowData {
member: IWorkspaceMember;
@@ -112,7 +111,7 @@ export const AccountTypeColumn: React.FC<AccountTypeProps> = observer((props) =>
<>
{isRoleNonEditable ? (
<div className="w-32 flex ">
- <span>{ROLE[rowData.role as keyof typeof ROLE]}</span>
+ <span>{ROLE[rowData.role]}</span>
</div>
) : (
<Controller
@@ -140,7 +139,7 @@ export const AccountTypeColumn: React.FC<AccountTypeProps> = observer((props) =>
}}
label={
<div className="flex ">
- <span>{ROLE[rowData.role as keyof typeof ROLE]}</span>
+ <span>{ROLE[rowData.role]}</span>
</div>
}
buttonClassName={`!px-0 !justify-start hover:bg-custom-background-100 ${errors.role ? "border-red-500" : "border-none"}`}
diff --git a/web/core/components/workspace/settings/members-list-item.tsx b/web/core/components/workspace/settings/members-list-item.tsx
index d4ee6dafe4..3c2610a09a 100644
--- a/web/core/components/workspace/settings/members-list-item.tsx
+++ b/web/core/components/workspace/settings/members-list-item.tsx
@@ -4,13 +4,14 @@ import { FC } from "react";
import { isEmpty } from "lodash";
import { observer } from "mobx-react";
// ui
+import { WORKSPACE_MEMBER_LEAVE } from "@plane/constants";
+import { useTranslation } from "@plane/i18n";
import { IWorkspaceMember } from "@plane/types";
import { TOAST_TYPE, Table, setToast } from "@plane/ui";
// components
import { MembersLayoutLoader } from "@/components/ui/loader/layouts/members-layout-loader";
import { ConfirmWorkspaceMemberRemove } from "@/components/workspace";
// constants
-import { WORKSPACE_MEMBER_LEAVE } from "@/constants/event-tracker";
// hooks
import { useEventTracker, useMember, useUser, useUserPermissions } from "@/hooks/store";
import { useAppRouter } from "@/hooks/use-app-router";
@@ -32,6 +33,7 @@ export const WorkspaceMembersListItem: FC<Props> = observer((props) => {
} = useMember();
const { leaveWorkspace } = useUserPermissions();
const { captureEvent } = useEventTracker();
+ const { t } = useTranslation();
// derived values
const handleLeaveWorkspace = async () => {
@@ -49,7 +51,7 @@ export const WorkspaceMembersListItem: FC<Props> = observer((props) => {
setToast({
type: TOAST_TYPE.ERROR,
title: "Error!",
- message: err?.error || "Something went wrong. Please try again.",
+ message: err?.error || t("something_went_wrong_please_try_again"),
})
);
};
@@ -61,7 +63,7 @@ export const WorkspaceMembersListItem: FC<Props> = observer((props) => {
setToast({
type: TOAST_TYPE.ERROR,
title: "Error!",
- message: err?.error || "Something went wrong. Please try again.",
+ message: err?.error || t("something_went_wrong_please_try_again"),
})
);
};
diff --git a/web/core/components/workspace/settings/members-list.tsx b/web/core/components/workspace/settings/members-list.tsx
index 9c19d2f8fe..5b5bd0983a 100644
--- a/web/core/components/workspace/settings/members-list.tsx
+++ b/web/core/components/workspace/settings/members-list.tsx
@@ -4,6 +4,7 @@ import { useParams } from "next/navigation";
import useSWR from "swr";
import { ChevronDown } from "lucide-react";
import { Disclosure } from "@headlessui/react";
+import { useTranslation } from "@plane/i18n";
import { Collapsible } from "@plane/ui";
import { CountChip } from "@/components/common";
import { MembersSettingsLoader } from "@/components/ui";
@@ -29,6 +30,7 @@ export const WorkspaceMembersList: FC<{ searchQuery: string; isAdmin: boolean }>
getWorkspaceMemberDetails,
},
} = useMember();
+ const { t } = useTranslation();
// fetching workspace invitations
useSWR(
workspaceSlug ? `WORKSPACE_MEMBERS_AND_MEMBER_INVITATIONS_${workspaceSlug.toString()}` : null,
@@ -52,7 +54,7 @@ export const WorkspaceMembersList: FC<{ searchQuery: string; isAdmin: boolean }>
<div className="divide-y-[0.5px] divide-custom-border-100 overflow-scroll ">
{searchedMemberIds?.length !== 0 && <WorkspaceMembersListItem memberDetails={memberDetails ?? []} />}
{searchedInvitationsIds?.length === 0 && searchedMemberIds?.length === 0 && (
- <h4 className="mt-16 text-center text-sm text-custom-text-400">No matching members</h4>
+ <h4 className="mt-16 text-center text-sm text-custom-text-400">{t("no_matching_members")}</h4>
)}
</div>
{isAdmin && searchedInvitationsIds && searchedInvitationsIds.length > 0 && (
@@ -63,7 +65,7 @@ export const WorkspaceMembersList: FC<{ searchQuery: string; isAdmin: boolean }>
title={
<div className="flex w-full items-center justify-between pt-4">
<div className="flex">
- <h4 className="text-xl font-medium pt-2 pb-2">Pending invites</h4>
+ <h4 className="text-xl font-medium pt-2 pb-2">{t("pending_invites")}</h4>
{searchedInvitationsIds && (
<CountChip count={searchedInvitationsIds.length} className="h-5 m-auto ml-2" />
)}
diff --git a/web/core/components/workspace/settings/workspace-details.tsx b/web/core/components/workspace/settings/workspace-details.tsx
index 8368705b5d..b3371f548a 100644
--- a/web/core/components/workspace/settings/workspace-details.tsx
+++ b/web/core/components/workspace/settings/workspace-details.tsx
@@ -5,16 +5,14 @@ import { observer } from "mobx-react";
import { Controller, useForm } from "react-hook-form";
import { Pencil } from "lucide-react";
// constants
-import { ORGANIZATION_SIZE } from "@plane/constants";
-// types
+import { ORGANIZATION_SIZE, WORKSPACE_UPDATED ,EUserPermissions, EUserPermissionsLevel } from "@plane/constants";
+import { useTranslation } from "@plane/i18n";
import { IWorkspace } from "@plane/types";
// ui
import { Button, CustomSelect, Input, TOAST_TYPE, setToast } from "@plane/ui";
// components
import { LogoSpinner } from "@/components/common";
import { WorkspaceImageUploadModal } from "@/components/core";
-// constants
-import { WORKSPACE_UPDATED } from "@/constants/event-tracker";
// helpers
import { getFileURL } from "@/helpers/file.helper";
import { copyUrlToClipboard } from "@/helpers/string.helper";
@@ -22,7 +20,6 @@ import { copyUrlToClipboard } from "@/helpers/string.helper";
import { useEventTracker, useUserPermissions, useWorkspace } from "@/hooks/store";
// plane web components
import { DeleteWorkspaceSection } from "@/plane-web/components/workspace";
-import { EUserPermissions, EUserPermissionsLevel } from "@/plane-web/constants/user-permissions";
const defaultValues: Partial<IWorkspace> = {
name: "",
@@ -39,6 +36,7 @@ export const WorkspaceDetails: FC = observer(() => {
const { captureWorkspaceEvent } = useEventTracker();
const { currentWorkspace, updateWorkspace } = useWorkspace();
const { allowPermissions } = useUserPermissions();
+ const { t } = useTranslation();
// form info
const {
@@ -190,10 +188,10 @@ export const WorkspaceDetails: FC = observer(() => {
{workspaceLogo && workspaceLogo !== "" ? (
<>
<Pencil className="h-3 w-3" />
- Edit logo
+ {t("workspace_settings.settings.general.edit_logo")}
</>
) : (
- "Upload logo"
+ t("workspace_settings.settings.general.upload_logo")
)}
</button>
)}
@@ -203,15 +201,15 @@ export const WorkspaceDetails: FC = observer(() => {
<div className="my-8 flex flex-col gap-8">
<div className="grid-col grid w-full grid-cols-1 items-center justify-between gap-10 xl:grid-cols-2 2xl:grid-cols-3">
<div className="flex flex-col gap-1">
- <h4 className="text-sm">Workspace name</h4>
+ <h4 className="text-sm">{t("workspace_settings.settings.general.name")}</h4>
<Controller
control={control}
name="name"
rules={{
- required: "Name is required",
+ required: t("workspace_settings.settings.general.errors.name.required"),
maxLength: {
value: 80,
- message: "Workspace name should not exceed 80 characters",
+ message: t("workspace_settings.settings.general.errors.name.max_length"),
},
}}
render={({ field: { value, onChange, ref } }) => (
@@ -223,7 +221,7 @@ export const WorkspaceDetails: FC = observer(() => {
onChange={onChange}
ref={ref}
hasError={Boolean(errors.name)}
- placeholder="Name"
+ placeholder={t("workspace_settings.settings.general.name")}
className="w-full rounded-md font-medium"
disabled={!isAdmin}
/>
@@ -232,7 +230,7 @@ export const WorkspaceDetails: FC = observer(() => {
</div>
<div className="flex flex-col gap-1 ">
- <h4 className="text-sm">Company size</h4>
+ <h4 className="text-sm">{t("workspace_settings.settings.general.company_size")}</h4>
<Controller
name="organization_size"
control={control}
@@ -240,7 +238,10 @@ export const WorkspaceDetails: FC = observer(() => {
<CustomSelect
value={value}
onChange={onChange}
- label={ORGANIZATION_SIZE.find((c) => c === value) ?? "Select organization size"}
+ label={
+ ORGANIZATION_SIZE.find((c) => c === value) ??
+ t("workspace_settings.settings.general.errors.company_size.select_a_range")
+ }
optionsClassName="w-full"
buttonClassName="!border-[0.5px] !border-custom-border-200 !shadow-none"
input
@@ -257,7 +258,7 @@ export const WorkspaceDetails: FC = observer(() => {
</div>
<div className="flex flex-col gap-1 ">
- <h4 className="text-sm">Workspace URL</h4>
+ <h4 className="text-sm">{t("workspace_settings.settings.general.url")}</h4>
<Controller
control={control}
name="url"
@@ -284,7 +285,7 @@ export const WorkspaceDetails: FC = observer(() => {
{isAdmin && (
<div className="flex items-center justify-between py-2">
<Button variant="primary" onClick={handleSubmit(onSubmit)} loading={isLoading}>
- {isLoading ? "Updating" : "Update workspace"}
+ {isLoading ? t("updating") : t("workspace_settings.settings.general.update_workspace")}
</Button>
</div>
)}
diff --git a/web/core/components/workspace/sidebar/dropdown.tsx b/web/core/components/workspace/sidebar/dropdown.tsx
index 93eb92bc08..0099335282 100644
--- a/web/core/components/workspace/sidebar/dropdown.tsx
+++ b/web/core/components/workspace/sidebar/dropdown.tsx
@@ -10,6 +10,7 @@ import { Check, ChevronDown, LogOut, Mails, PlusSquare, Settings } from "lucide-
// ui
import { Menu, Transition } from "@headlessui/react";
// types
+import { EUserPermissions, EUserPermissionsLevel } from "@plane/constants";
import { useTranslation } from "@plane/i18n";
import { IWorkspace } from "@plane/types";
// plane ui
@@ -20,14 +21,11 @@ import { getFileURL } from "@/helpers/file.helper";
// hooks
import { useAppTheme, useUser, useUserPermissions, useUserProfile, useWorkspace } from "@/hooks/store";
// plane web constants
-import { EUserPermissions, EUserPermissionsLevel } from "@/plane-web/constants/user-permissions";
// plane web helpers
import { getIsWorkspaceCreationDisabled } from "@/plane-web/helpers/instance.helper";
// components
import { WorkspaceLogo } from "../logo";
-
-
export const SidebarDropdown = observer(() => {
const { t } = useTranslation();
const userLinks = useMemo(
@@ -41,7 +39,7 @@ export const SidebarDropdown = observer(() => {
},
{
key: "settings",
- name: t("workspace_settings"),
+ name: t("workspace_settings.label"),
href: `/${workspaceSlug}/settings`,
icon: Settings,
access: [EUserPermissions.ADMIN],
@@ -91,8 +89,8 @@ export const SidebarDropdown = observer(() => {
await signOut().catch(() =>
setToast({
type: TOAST_TYPE.ERROR,
- title: t("error"),
- message: t("failed_to_sign_out_please_try_again"),
+ title: t("sign_out.toast.error.title"),
+ message: t("sign_out.toast.error.message"),
})
);
};
diff --git a/web/core/components/workspace/sidebar/project-navigation.tsx b/web/core/components/workspace/sidebar/project-navigation.tsx
index 9e7cde6a26..ec5b7119b7 100644
--- a/web/core/components/workspace/sidebar/project-navigation.tsx
+++ b/web/core/components/workspace/sidebar/project-navigation.tsx
@@ -5,6 +5,7 @@ import { observer } from "mobx-react";
import Link from "next/link";
import { usePathname } from "next/navigation";
import { FileText, Layers } from "lucide-react";
+import { EUserPermissionsLevel, EUserPermissions, EUserProjectRoles } from "@plane/constants";
import { useTranslation } from "@plane/i18n";
// plane ui
import { Tooltip, DiceIcon, ContrastIcon, LayersIcon, Intake } from "@plane/ui";
@@ -14,17 +15,15 @@ import { SidebarNavItem } from "@/components/sidebar";
import { useAppTheme, useProject, useUserPermissions } from "@/hooks/store";
import { usePlatformOS } from "@/hooks/use-platform-os";
// plane-web constants
-import { EUserPermissions } from "@/plane-web/constants";
-import { EUserPermissionsLevel } from "@/plane-web/constants/user-permissions";
export type TNavigationItem = {
- key: string;
name: string;
href: string;
icon: React.ElementType;
- access: EUserPermissions[];
+ access: EUserPermissions[] | EUserProjectRoles[];
shouldRender: boolean;
sortOrder: number;
+ i18n_key: string;
};
type TProjectItemsProps = {
@@ -57,8 +56,8 @@ export const ProjectNavigation: FC<TProjectItemsProps> = observer((props) => {
const baseNavigation = useCallback(
(workspaceSlug: string, projectId: string): TNavigationItem[] => [
{
- key: "issues",
- name: "Issues",
+ i18n_key: "sidebar.work_items",
+ name: "Work items",
href: `/${workspaceSlug}/projects/${projectId}/issues`,
icon: LayersIcon,
access: [EUserPermissions.ADMIN, EUserPermissions.MEMBER, EUserPermissions.GUEST],
@@ -66,7 +65,7 @@ export const ProjectNavigation: FC<TProjectItemsProps> = observer((props) => {
sortOrder: 1,
},
{
- key: "cycles",
+ i18n_key: "sidebar.cycles",
name: "Cycles",
href: `/${workspaceSlug}/projects/${projectId}/cycles`,
icon: ContrastIcon,
@@ -75,7 +74,7 @@ export const ProjectNavigation: FC<TProjectItemsProps> = observer((props) => {
sortOrder: 2,
},
{
- key: "modules",
+ i18n_key: "sidebar.modules",
name: "Modules",
href: `/${workspaceSlug}/projects/${projectId}/modules`,
icon: DiceIcon,
@@ -84,7 +83,7 @@ export const ProjectNavigation: FC<TProjectItemsProps> = observer((props) => {
sortOrder: 3,
},
{
- key: "views",
+ i18n_key: "sidebar.views",
name: "Views",
href: `/${workspaceSlug}/projects/${projectId}/views`,
icon: Layers,
@@ -93,7 +92,7 @@ export const ProjectNavigation: FC<TProjectItemsProps> = observer((props) => {
sortOrder: 4,
},
{
- key: "pages",
+ i18n_key: "sidebar.pages",
name: "Pages",
href: `/${workspaceSlug}/projects/${projectId}/pages`,
icon: FileText,
@@ -102,7 +101,7 @@ export const ProjectNavigation: FC<TProjectItemsProps> = observer((props) => {
sortOrder: 5,
},
{
- key: "intake",
+ i18n_key: "sidebar.intake",
name: "Intake",
href: `/${workspaceSlug}/projects/${projectId}/inbox`,
icon: Intake,
@@ -146,7 +145,7 @@ export const ProjectNavigation: FC<TProjectItemsProps> = observer((props) => {
<Tooltip
key={item.name}
isMobile={isMobile}
- tooltipContent={`${project?.name}: ${t(item.key)}`}
+ tooltipContent={`${project?.name}: ${t(item.i18n_key)}`}
position="right"
className="ml-2"
disabled={!isSidebarCollapsed}
@@ -160,7 +159,7 @@ export const ProjectNavigation: FC<TProjectItemsProps> = observer((props) => {
<item.icon
className={`flex-shrink-0 size-4 ${item.name === "Intake" ? "stroke-1" : "stroke-[1.5]"}`}
/>
- {!isSidebarCollapsed && <span className="text-xs font-medium">{t(item.key)}</span>}
+ {!isSidebarCollapsed && <span className="text-xs font-medium">{t(item.i18n_key)}</span>}
</div>
</SidebarNavItem>
</Link>
diff --git a/web/core/components/workspace/sidebar/projects-list-item.tsx b/web/core/components/workspace/sidebar/projects-list-item.tsx
index f105fb72a5..644bf4ecf0 100644
--- a/web/core/components/workspace/sidebar/projects-list-item.tsx
+++ b/web/core/components/workspace/sidebar/projects-list-item.tsx
@@ -13,6 +13,7 @@ import { createRoot } from "react-dom/client";
import { LinkIcon, Star, Settings, Share2, LogOut, MoreHorizontal, ChevronRight } from "lucide-react";
import { Disclosure, Transition } from "@headlessui/react";
// plane helpers
+import { EUserPermissions, EUserPermissionsLevel } from "@plane/constants";
import { useOutsideClickDetector } from "@plane/hooks";
import { useTranslation } from "@plane/i18n";
// ui
@@ -28,7 +29,6 @@ import { usePlatformOS } from "@/hooks/use-platform-os";
// plane-web components
import { ProjectNavigationRoot } from "@/plane-web/components/sidebar";
// constants
-import { EUserPermissions, EUserPermissionsLevel } from "@/plane-web/constants/user-permissions";
import { HIGHLIGHT_CLASS, highlightIssueOnDrop } from "../../issues/issue-layouts/utils";
type Props = {
diff --git a/web/core/components/workspace/sidebar/projects-list.tsx b/web/core/components/workspace/sidebar/projects-list.tsx
index b3039d0216..6d78383d6c 100644
--- a/web/core/components/workspace/sidebar/projects-list.tsx
+++ b/web/core/components/workspace/sidebar/projects-list.tsx
@@ -7,6 +7,7 @@ import { observer } from "mobx-react";
import { useParams, usePathname } from "next/navigation";
import { Briefcase, ChevronRight, Plus } from "lucide-react";
import { Disclosure, Transition } from "@headlessui/react";
+import { EUserPermissions, EUserPermissionsLevel } from "@plane/constants";
import { useTranslation } from "@plane/i18n";
// ui
import { Loader, TOAST_TYPE, Tooltip, setToast } from "@plane/ui";
@@ -20,7 +21,6 @@ import { copyUrlToClipboard } from "@/helpers/string.helper";
// hooks
import { useAppTheme, useCommandPalette, useEventTracker, useProject, useUserPermissions } from "@/hooks/store";
// plane web constants
-import { EUserPermissions, EUserPermissionsLevel } from "@/plane-web/constants/user-permissions";
// plane web types
import { TProject } from "@/plane-web/types";
diff --git a/web/core/components/workspace/sidebar/quick-actions.tsx b/web/core/components/workspace/sidebar/quick-actions.tsx
index 8524d8ba2c..c0c8eee9c7 100644
--- a/web/core/components/workspace/sidebar/quick-actions.tsx
+++ b/web/core/components/workspace/sidebar/quick-actions.tsx
@@ -2,6 +2,7 @@ import { useRef, useState } from "react";
import { observer } from "mobx-react";
import { useParams } from "next/navigation";
import { ChevronUp, PenSquare, Search } from "lucide-react";
+import { EUserPermissions, EUserPermissionsLevel } from "@plane/constants";
import { useTranslation } from "@plane/i18n";
// types
import { TIssue } from "@plane/types";
@@ -13,7 +14,6 @@ import { cn } from "@/helpers/common.helper";
// hooks
import { useAppTheme, useCommandPalette, useEventTracker, useProject, useUserPermissions } from "@/hooks/store";
import useLocalStorage from "@/hooks/use-local-storage";
-import { EUserPermissions, EUserPermissionsLevel } from "@/plane-web/constants/user-permissions";
export const SidebarQuickActions = observer(() => {
const { t } = useTranslation();
@@ -94,7 +94,9 @@ export const SidebarQuickActions = observer(() => {
disabled={disabled}
>
<PenSquare className="size-4" />
- {!isSidebarCollapsed && <span className="text-sm font-medium">{t("new_issue")}</span>}
+ {!isSidebarCollapsed && (
+ <span className="text-sm font-medium truncate max-w-[145px]">{t("sidebar.new_work_item")}</span>
+ )}
</button>
<button
className={cn(
diff --git a/web/core/components/workspace/sidebar/user-menu.tsx b/web/core/components/workspace/sidebar/user-menu.tsx
index e412fc7b65..2d625ae6b6 100644
--- a/web/core/components/workspace/sidebar/user-menu.tsx
+++ b/web/core/components/workspace/sidebar/user-menu.tsx
@@ -23,28 +23,28 @@ export const SidebarUserMenu = observer(() => {
const SIDEBAR_USER_MENU_ITEMS = [
{
key: "home",
- labelTranslationKey: "home",
+ labelTranslationKey: "sidebar.home",
href: `/${workspaceSlug.toString()}/`,
access: [EUserWorkspaceRoles.ADMIN, EUserWorkspaceRoles.MEMBER, EUserWorkspaceRoles.GUEST],
Icon: Home,
},
{
key: "your-work",
- labelTranslationKey: "your_work",
+ labelTranslationKey: "sidebar.your_work",
href: `/${workspaceSlug.toString()}/profile/${currentUser?.id}/`,
access: [EUserWorkspaceRoles.ADMIN, EUserWorkspaceRoles.MEMBER],
Icon: UserActivityIcon,
},
{
key: "notifications",
- labelTranslationKey: "inbox",
+ labelTranslationKey: "sidebar.inbox",
href: `/${workspaceSlug.toString()}/notifications/`,
access: [EUserWorkspaceRoles.ADMIN, EUserWorkspaceRoles.MEMBER, EUserWorkspaceRoles.GUEST],
Icon: Inbox,
},
{
key: "drafts",
- labelTranslationKey: "drafts",
+ labelTranslationKey: "sidebar.drafts",
href: `/${workspaceSlug.toString()}/drafts/`,
access: [EUserWorkspaceRoles.ADMIN, EUserWorkspaceRoles.MEMBER],
Icon: PenSquare,
diff --git a/web/core/components/workspace/sidebar/workspace-menu.tsx b/web/core/components/workspace/sidebar/workspace-menu.tsx
index b24e7abe26..2b2fa90b31 100644
--- a/web/core/components/workspace/sidebar/workspace-menu.tsx
+++ b/web/core/components/workspace/sidebar/workspace-menu.tsx
@@ -33,28 +33,28 @@ export const SidebarWorkspaceMenu = observer(() => {
const SIDEBAR_WORKSPACE_MENU_ITEMS = [
{
key: "projects",
- labelTranslationKey: "projects",
+ labelTranslationKey: "sidebar.projects",
href: `/${workspaceSlug}/projects/`,
access: [EUserWorkspaceRoles.ADMIN, EUserWorkspaceRoles.MEMBER, EUserWorkspaceRoles.GUEST],
Icon: Briefcase,
},
{
key: "views",
- labelTranslationKey: "views",
+ labelTranslationKey: "sidebar.views",
href: `/${workspaceSlug}/workspace-views/all-issues/`,
access: [EUserWorkspaceRoles.ADMIN, EUserWorkspaceRoles.MEMBER, EUserWorkspaceRoles.GUEST],
Icon: Layers,
},
{
key: "active-cycles",
- labelTranslationKey: "cycles",
+ labelTranslationKey: "sidebar.cycles",
href: `/${workspaceSlug}/active-cycles/`,
access: [EUserWorkspaceRoles.ADMIN, EUserWorkspaceRoles.MEMBER],
Icon: ContrastIcon,
},
{
key: "analytics",
- labelTranslationKey: "analytics",
+ labelTranslationKey: "sidebar.analytics",
href: `/${workspaceSlug}/analytics/`,
access: [EUserWorkspaceRoles.ADMIN, EUserWorkspaceRoles.MEMBER],
Icon: BarChart2,
diff --git a/web/core/components/workspace/views/default-view-list-item.tsx b/web/core/components/workspace/views/default-view-list-item.tsx
index 0d0e627b65..de64052cfe 100644
--- a/web/core/components/workspace/views/default-view-list-item.tsx
+++ b/web/core/components/workspace/views/default-view-list-item.tsx
@@ -1,15 +1,17 @@
import { observer } from "mobx-react";
import Link from "next/link";
import { useParams } from "next/navigation";
+import { useTranslation } from "@plane/i18n";
// helpers
import { truncateText } from "@/helpers/string.helper";
-type Props = { view: { key: string; label: string } };
+type Props = { view: { key: string; i18n_label: string } };
export const GlobalDefaultViewListItem: React.FC<Props> = observer((props) => {
const { view } = props;
// router
const { workspaceSlug } = useParams();
+ const { t } = useTranslation();
return (
<div className="group border-b border-custom-border-200 hover:bg-custom-background-90">
@@ -18,7 +20,7 @@ export const GlobalDefaultViewListItem: React.FC<Props> = observer((props) => {
<div className="flex w-full items-center justify-between">
<div className="flex items-center gap-4">
<div className="flex flex-col">
- <p className="truncate text-sm font-medium leading-4">{truncateText(view.label, 75)}</p>
+ <p className="truncate text-sm font-medium leading-4">{truncateText(t(view.i18n_label), 75)}</p>
</div>
</div>
</div>
diff --git a/web/core/components/workspace/views/default-view-quick-action.tsx b/web/core/components/workspace/views/default-view-quick-action.tsx
index dac8a2202d..0ee4facab7 100644
--- a/web/core/components/workspace/views/default-view-quick-action.tsx
+++ b/web/core/components/workspace/views/default-view-quick-action.tsx
@@ -3,6 +3,8 @@
import { observer } from "mobx-react";
import Link from "next/link";
import { ExternalLink, LinkIcon } from "lucide-react";
+// plane imports
+import { useTranslation } from "@plane/i18n";
// ui
import { TStaticViewTypes } from "@plane/types";
import { ContextMenu, CustomMenu, TContextMenuItem, TOAST_TYPE, setToast } from "@plane/ui";
@@ -16,13 +18,15 @@ type Props = {
globalViewId: string | undefined;
view: {
key: TStaticViewTypes;
- label: string;
+ i18n_label: string;
};
};
export const DefaultWorkspaceViewQuickActions: React.FC<Props> = observer((props) => {
const { parentRef, globalViewId, view, workspaceSlug } = props;
+ const { t } = useTranslation();
+
const viewLink = `${workspaceSlug}/workspace-views/${view.key}`;
const handleCopyText = () =>
copyUrlToClipboard(viewLink).then(() => {
@@ -38,13 +42,13 @@ export const DefaultWorkspaceViewQuickActions: React.FC<Props> = observer((props
{
key: "open-new-tab",
action: handleOpenInNewTab,
- title: "Open in new tab",
+ title: t("open_in_new_tab"),
icon: ExternalLink,
},
{
key: "copy-link",
action: handleCopyText,
- title: "Copy link",
+ title: t("copy_link"),
icon: LinkIcon,
},
];
@@ -64,7 +68,7 @@ export const DefaultWorkspaceViewQuickActions: React.FC<Props> = observer((props
: "border-transparent hover:border-custom-border-200 hover:text-custom-text-400"
}`}
>
- {view.label}
+ {t(view.i18n_label)}
</span>
) : (
<Link
@@ -79,7 +83,7 @@ export const DefaultWorkspaceViewQuickActions: React.FC<Props> = observer((props
: "border-transparent hover:border-custom-border-200 hover:text-custom-text-400"
}`}
>
- {view.label}
+ {t(view.i18n_label)}
</span>
</Link>
)}
@@ -110,7 +114,7 @@ export const DefaultWorkspaceViewQuickActions: React.FC<Props> = observer((props
>
{item.icon && <item.icon className={cn("h-3 w-3", item.iconClassName)} />}
<div>
- <h5>{item.title}</h5>
+ <h5>{t(item.title || "")}</h5>
{item.description && (
<p
className={cn("text-custom-text-300 whitespace-pre-line", {
diff --git a/web/core/components/workspace/views/delete-view-modal.tsx b/web/core/components/workspace/views/delete-view-modal.tsx
index 6acdf69f3a..63016d157d 100644
--- a/web/core/components/workspace/views/delete-view-modal.tsx
+++ b/web/core/components/workspace/views/delete-view-modal.tsx
@@ -4,11 +4,11 @@ import React, { useState } from "react";
import { observer } from "mobx-react";
import { useParams } from "next/navigation";
// types
+import { GLOBAL_VIEW_DELETED } from "@plane/constants";
import { IWorkspaceView } from "@plane/types";
// ui
import { AlertModalCore, TOAST_TYPE, setToast } from "@plane/ui";
// constants
-import { GLOBAL_VIEW_DELETED } from "@/constants/event-tracker";
// hooks
import { useGlobalView, useEventTracker } from "@/hooks/store";
diff --git a/web/core/components/workspace/views/form.tsx b/web/core/components/workspace/views/form.tsx
index 9710f09369..5abe7f2dd9 100644
--- a/web/core/components/workspace/views/form.tsx
+++ b/web/core/components/workspace/views/form.tsx
@@ -4,16 +4,15 @@ import { useEffect } from "react";
import { observer } from "mobx-react";
import { Controller, useForm } from "react-hook-form";
// constant
-import { EIssueLayoutTypes } from "@plane/constants";
+import { EIssueLayoutTypes, ISSUE_DISPLAY_FILTERS_BY_PAGE, EViewAccess } from "@plane/constants";
+// i18n
+import { useTranslation } from "@plane/i18n";
// types
import { IIssueDisplayFilterOptions, IIssueDisplayProperties, IIssueFilterOptions, IWorkspaceView } from "@plane/types";
// ui
import { Button, Input, TextArea } from "@plane/ui";
// components
import { AppliedFiltersList, DisplayFiltersSelection, FilterSelection, FiltersDropdown } from "@/components/issues";
-// constants
-import { ISSUE_DISPLAY_FILTERS_BY_LAYOUT } from "@/constants/issue";
-import { EViewAccess } from "@/constants/views";
// helpers
import { getComputedDisplayFilters, getComputedDisplayProperties } from "@/helpers/issue.helper";
// hooks
@@ -40,6 +39,8 @@ const defaultValues: Partial<IWorkspaceView> = {
export const WorkspaceViewForm: React.FC<Props> = observer((props) => {
const { handleFormSubmit, handleClose, data, preLoadedData } = props;
+ // i18n
+ const { t } = useTranslation();
// store hooks
const { workspaceLabels } = useLabel();
const {
@@ -112,17 +113,19 @@ export const WorkspaceViewForm: React.FC<Props> = observer((props) => {
return (
<form onSubmit={handleSubmit(handleCreateUpdateView)}>
<div className="space-y-5 p-5">
- <h3 className="text-xl font-medium text-custom-text-200">{data ? "Update" : "Create"} View</h3>
+ <h3 className="text-xl font-medium text-custom-text-200">
+ {data ? t("view.update.label") : t("view.create.label")}
+ </h3>
<div className="space-y-3">
<div className="space-y-1">
<Controller
control={control}
name="name"
rules={{
- required: "Title is required",
+ required: t("form.title.required"),
maxLength: {
value: 255,
- message: "Title should be less than 255 characters",
+ message: t("form.title.max_length", { length: 255 }),
},
}}
render={({ field: { value, onChange, ref } }) => (
@@ -134,7 +137,7 @@ export const WorkspaceViewForm: React.FC<Props> = observer((props) => {
onChange={onChange}
ref={ref}
hasError={Boolean(errors.name)}
- placeholder="Title"
+ placeholder={t("common.title")}
className="w-full text-base"
/>
)}
@@ -150,7 +153,7 @@ export const WorkspaceViewForm: React.FC<Props> = observer((props) => {
id="description"
name="description"
value={value}
- placeholder="Description"
+ placeholder={t("common.description")}
onChange={onChange}
className="w-full text-base resize-none min-h-24"
hasError={Boolean(errors?.description)}
@@ -165,7 +168,7 @@ export const WorkspaceViewForm: React.FC<Props> = observer((props) => {
control={control}
name="filters"
render={({ field: { onChange, value: filters } }) => (
- <FiltersDropdown title="Filters">
+ <FiltersDropdown title={t("common.filters")}>
<FilterSelection
filters={filters ?? {}}
handleFiltersUpdate={(key, value) => {
@@ -185,7 +188,7 @@ export const WorkspaceViewForm: React.FC<Props> = observer((props) => {
[key]: newValues,
});
}}
- layoutDisplayFiltersOptions={ISSUE_DISPLAY_FILTERS_BY_LAYOUT.my_issues.spreadsheet}
+ layoutDisplayFiltersOptions={ISSUE_DISPLAY_FILTERS_BY_PAGE.my_issues.spreadsheet}
labels={workspaceLabels ?? undefined}
memberIds={workspaceMemberIds ?? undefined}
/>
@@ -202,9 +205,9 @@ export const WorkspaceViewForm: React.FC<Props> = observer((props) => {
control={control}
name="display_properties"
render={({ field: { onChange: onDisplayPropertiesChange, value: displayProperties } }) => (
- <FiltersDropdown title="Display">
+ <FiltersDropdown title={t("common.display")}>
<DisplayFiltersSelection
- layoutDisplayFiltersOptions={ISSUE_DISPLAY_FILTERS_BY_LAYOUT.my_issues.spreadsheet}
+ layoutDisplayFiltersOptions={ISSUE_DISPLAY_FILTERS_BY_PAGE.my_issues.spreadsheet}
displayFilters={displayFilters ?? {}}
handleDisplayFiltersUpdate={(updatedDisplayFilter: Partial<IIssueDisplayFilterOptions>) => {
onDisplayFiltersChange({
@@ -242,10 +245,16 @@ export const WorkspaceViewForm: React.FC<Props> = observer((props) => {
</div>
<div className="px-5 py-4 flex items-center justify-end gap-2 border-t-[0.5px] border-custom-border-200">
<Button variant="neutral-primary" size="sm" onClick={handleClose}>
- Cancel
+ {t("common.cancel")}
</Button>
<Button variant="primary" size="sm" type="submit" loading={isSubmitting}>
- {data ? (isSubmitting ? "Updating" : "Update View") : isSubmitting ? "Creating" : "Create View"}
+ {data
+ ? isSubmitting
+ ? t("common.updating")
+ : t("view.update.label")
+ : isSubmitting
+ ? t("common.creating")
+ : t("view.create.label")}
</Button>
</div>
</form>
diff --git a/web/core/components/workspace/views/header.tsx b/web/core/components/workspace/views/header.tsx
index 559bd6578c..f449c553b5 100644
--- a/web/core/components/workspace/views/header.tsx
+++ b/web/core/components/workspace/views/header.tsx
@@ -3,7 +3,13 @@ import { observer } from "mobx-react";
import { useParams } from "next/navigation";
// icons
import { Plus } from "lucide-react";
-// types
+// plane imports
+import {
+ DEFAULT_GLOBAL_VIEWS_LIST,
+ GLOBAL_VIEW_OPENED,
+ EUserPermissions,
+ EUserPermissionsLevel,
+} from "@plane/constants";
import { TStaticViewTypes } from "@plane/types";
// components
import { Header, EHeaderVariant } from "@plane/ui";
@@ -13,11 +19,8 @@ import {
WorkspaceViewQuickActions,
} from "@/components/workspace";
// constants
-import { GLOBAL_VIEW_OPENED } from "@/constants/event-tracker";
-import { DEFAULT_GLOBAL_VIEWS_LIST } from "@/constants/workspace";
// store hooks
import { useEventTracker, useGlobalView, useUserPermissions } from "@/hooks/store";
-import { EUserPermissions, EUserPermissionsLevel } from "@/plane-web/constants/user-permissions";
const ViewTab = observer((props: { viewId: string }) => {
const { viewId } = props;
@@ -48,7 +51,7 @@ const ViewTab = observer((props: { viewId: string }) => {
const DefaultViewTab = (props: {
tab: {
key: TStaticViewTypes;
- label: string;
+ i18n_label: string;
};
}) => {
const { tab } = props;
diff --git a/web/core/components/workspace/views/modal.tsx b/web/core/components/workspace/views/modal.tsx
index 7a4b6cc8f3..7ed07d0ec8 100644
--- a/web/core/components/workspace/views/modal.tsx
+++ b/web/core/components/workspace/views/modal.tsx
@@ -4,13 +4,13 @@ import React from "react";
import { observer } from "mobx-react";
import { useParams } from "next/navigation";
// types
+import { GLOBAL_VIEW_CREATED, GLOBAL_VIEW_UPDATED } from "@plane/constants";
import { IWorkspaceView } from "@plane/types";
// ui
import { EModalPosition, EModalWidth, ModalCore, TOAST_TYPE, setToast } from "@plane/ui";
// components
import { WorkspaceViewForm } from "@/components/workspace";
// constants
-import { GLOBAL_VIEW_CREATED, GLOBAL_VIEW_UPDATED } from "@/constants/event-tracker";
// store hooks
import { useEventTracker, useGlobalView } from "@/hooks/store";
import { useAppRouter } from "@/hooks/use-app-router";
diff --git a/web/core/components/workspace/views/quick-action.tsx b/web/core/components/workspace/views/quick-action.tsx
index c8ee029466..2251244b40 100644
--- a/web/core/components/workspace/views/quick-action.tsx
+++ b/web/core/components/workspace/views/quick-action.tsx
@@ -5,19 +5,19 @@ import { observer } from "mobx-react";
import Link from "next/link";
import { ExternalLink, LinkIcon, Pencil, Trash2, Lock } from "lucide-react";
// types
+import { EViewAccess, EUserPermissions, EUserPermissionsLevel } from "@plane/constants";
+import { useTranslation } from "@plane/i18n";
import { IWorkspaceView } from "@plane/types";
// ui
import { ContextMenu, CustomMenu, TContextMenuItem, TOAST_TYPE, setToast } from "@plane/ui";
// components
import { CreateUpdateWorkspaceViewModal, DeleteGlobalViewModal } from "@/components/workspace";
// constants
-import { EViewAccess } from "@/constants/views";
// helpers
import { cn } from "@/helpers/common.helper";
import { copyUrlToClipboard } from "@/helpers/string.helper";
// hooks
import { useUser, useUserPermissions } from "@/hooks/store";
-import { EUserPermissions, EUserPermissionsLevel } from "@/plane-web/constants/user-permissions";
type Props = {
parentRef: React.RefObject<HTMLElement>;
@@ -35,6 +35,7 @@ export const WorkspaceViewQuickActions: React.FC<Props> = observer((props) => {
// store hooks
const { data } = useUser();
const { allowPermissions } = useUserPermissions();
+ const { t } = useTranslation();
// auth
const isOwner = view?.owned_by === data?.id;
const isAdmin = allowPermissions([EUserPermissions.ADMIN], EUserPermissionsLevel.WORKSPACE);
@@ -54,26 +55,26 @@ export const WorkspaceViewQuickActions: React.FC<Props> = observer((props) => {
{
key: "edit",
action: () => setUpdateViewModal(true),
- title: "Edit",
+ title: t("edit"),
icon: Pencil,
shouldRender: isOwner,
},
{
key: "open-new-tab",
action: handleOpenInNewTab,
- title: "Open in new tab",
+ title: t("open_in_new_tab"),
icon: ExternalLink,
},
{
key: "copy-link",
action: handleCopyText,
- title: "Copy link",
+ title: t("copy_link"),
icon: LinkIcon,
},
{
key: "delete",
action: () => setDeleteViewModal(true),
- title: "Delete",
+ title: t("delete"),
icon: Trash2,
shouldRender: isOwner || isAdmin,
},
diff --git a/web/core/constants/common.ts b/web/core/constants/common.ts
deleted file mode 100644
index 37c270407c..0000000000
--- a/web/core/constants/common.ts
+++ /dev/null
@@ -1 +0,0 @@
-export const MAX_STATIC_FILE_SIZE = 5 * 1024 * 1024; // 5MB
diff --git a/web/core/constants/dashboard.ts b/web/core/constants/dashboard.ts
deleted file mode 100644
index c70664eee4..0000000000
--- a/web/core/constants/dashboard.ts
+++ /dev/null
@@ -1,249 +0,0 @@
-"use client";
-
-import { linearGradientDef } from "@nivo/core";
-// types
-import { TIssuesListTypes, TStateGroups } from "@plane/types";
-// assets
-import CompletedIssuesDark from "@/public/empty-state/dashboard/dark/completed-issues.svg";
-import OverdueIssuesDark from "@/public/empty-state/dashboard/dark/overdue-issues.svg";
-import UpcomingIssuesDark from "@/public/empty-state/dashboard/dark/upcoming-issues.svg";
-import CompletedIssuesLight from "@/public/empty-state/dashboard/light/completed-issues.svg";
-import OverdueIssuesLight from "@/public/empty-state/dashboard/light/overdue-issues.svg";
-import UpcomingIssuesLight from "@/public/empty-state/dashboard/light/upcoming-issues.svg";
-
-// gradients for issues by priority widget graph bars
-export const PRIORITY_GRAPH_GRADIENTS = [
- linearGradientDef(
- "gradientUrgent",
- [
- { offset: 0, color: "#A90408" },
- { offset: 100, color: "#DF4D51" },
- ],
- {
- x1: 1,
- y1: 0,
- x2: 0,
- y2: 0,
- }
- ),
- linearGradientDef(
- "gradientHigh",
- [
- { offset: 0, color: "#FE6B00" },
- { offset: 100, color: "#FFAC88" },
- ],
- {
- x1: 1,
- y1: 0,
- x2: 0,
- y2: 0,
- }
- ),
- linearGradientDef(
- "gradientMedium",
- [
- { offset: 0, color: "#F5AC00" },
- { offset: 100, color: "#FFD675" },
- ],
- {
- x1: 1,
- y1: 0,
- x2: 0,
- y2: 0,
- }
- ),
- linearGradientDef(
- "gradientLow",
- [
- { offset: 0, color: "#1B46DE" },
- { offset: 100, color: "#4F9BF4" },
- ],
- {
- x1: 1,
- y1: 0,
- x2: 0,
- y2: 0,
- }
- ),
- linearGradientDef(
- "gradientNone",
- [
- { offset: 0, color: "#A0A1A9" },
- { offset: 100, color: "#B9BBC6" },
- ],
- {
- x1: 1,
- y1: 0,
- x2: 0,
- y2: 0,
- }
- ),
-];
-
-// colors for issues by state group widget graph arcs
-export const STATE_GROUP_GRAPH_GRADIENTS = [
- linearGradientDef("gradientBacklog", [
- { offset: 0, color: "#DEDEDE" },
- { offset: 100, color: "#BABABE" },
- ]),
- linearGradientDef("gradientUnstarted", [
- { offset: 0, color: "#D4D4D4" },
- { offset: 100, color: "#878796" },
- ]),
- linearGradientDef("gradientStarted", [
- { offset: 0, color: "#FFD300" },
- { offset: 100, color: "#FAE270" },
- ]),
- linearGradientDef("gradientCompleted", [
- { offset: 0, color: "#0E8B1B" },
- { offset: 100, color: "#37CB46" },
- ]),
- linearGradientDef("gradientCanceled", [
- { offset: 0, color: "#C90004" },
- { offset: 100, color: "#FF7679" },
- ]),
-];
-
-export const STATE_GROUP_GRAPH_COLORS: Record<TStateGroups, string> = {
- backlog: "#CDCED6",
- unstarted: "#80838D",
- started: "#FFC53D",
- completed: "#3E9B4F",
- cancelled: "#E5484D",
-};
-
-export enum EDurationFilters {
- NONE = "none",
- TODAY = "today",
- THIS_WEEK = "this_week",
- THIS_MONTH = "this_month",
- THIS_YEAR = "this_year",
- CUSTOM = "custom",
-}
-
-// filter duration options
-export const DURATION_FILTER_OPTIONS: {
- key: EDurationFilters;
- label: string;
-}[] = [
- {
- key: EDurationFilters.NONE,
- label: "All time",
- },
- {
- key: EDurationFilters.TODAY,
- label: "Due today",
- },
- {
- key: EDurationFilters.THIS_WEEK,
- label: "Due this week",
- },
- {
- key: EDurationFilters.THIS_MONTH,
- label: "Due this month",
- },
- {
- key: EDurationFilters.THIS_YEAR,
- label: "Due this year",
- },
- {
- key: EDurationFilters.CUSTOM,
- label: "Custom",
- },
-];
-
-// random background colors for project cards
-export const PROJECT_BACKGROUND_COLORS = [
- "bg-gray-500/20",
- "bg-green-500/20",
- "bg-red-500/20",
- "bg-orange-500/20",
- "bg-blue-500/20",
- "bg-yellow-500/20",
- "bg-pink-500/20",
- "bg-purple-500/20",
-];
-
-// assigned and created issues widgets tabs list
-export const FILTERED_ISSUES_TABS_LIST: {
- key: TIssuesListTypes;
- label: string;
-}[] = [
- {
- key: "upcoming",
- label: "Upcoming",
- },
- {
- key: "overdue",
- label: "Overdue",
- },
- {
- key: "completed",
- label: "Marked completed",
- },
-];
-
-// assigned and created issues widgets tabs list
-export const UNFILTERED_ISSUES_TABS_LIST: {
- key: TIssuesListTypes;
- label: string;
-}[] = [
- {
- key: "pending",
- label: "Pending",
- },
- {
- key: "completed",
- label: "Marked completed",
- },
-];
-
-export const ASSIGNED_ISSUES_EMPTY_STATES = {
- pending: {
- title: "Issues assigned to you that are pending\nwill show up here.",
- darkImage: UpcomingIssuesDark,
- lightImage: UpcomingIssuesLight,
- },
- upcoming: {
- title: "Upcoming issues assigned to\nyou will show up here.",
- darkImage: UpcomingIssuesDark,
- lightImage: UpcomingIssuesLight,
- },
- overdue: {
- title: "Issues assigned to you that are past\ntheir due date will show up here.",
- darkImage: OverdueIssuesDark,
- lightImage: OverdueIssuesLight,
- },
- completed: {
- title: "Issues assigned to you that you have\nmarked Completed will show up here.",
- darkImage: CompletedIssuesDark,
- lightImage: CompletedIssuesLight,
- },
-};
-
-export const CREATED_ISSUES_EMPTY_STATES = {
- pending: {
- title: "Issues created by you that are pending\nwill show up here.",
- darkImage: UpcomingIssuesDark,
- lightImage: UpcomingIssuesLight,
- },
- upcoming: {
- title: "Upcoming issues you created\nwill show up here.",
- darkImage: UpcomingIssuesDark,
- lightImage: UpcomingIssuesLight,
- },
- overdue: {
- title: "Issues created by you that are past their\ndue date will show up here.",
- darkImage: OverdueIssuesDark,
- lightImage: OverdueIssuesLight,
- },
- completed: {
- title: "Issues created by you that you have\nmarked completed will show up here.",
- darkImage: CompletedIssuesDark,
- lightImage: CompletedIssuesLight,
- },
-};
-
-export type TLinkOptions = {
- userId: string | undefined;
-};
diff --git a/web/core/constants/empty-state.tsx b/web/core/constants/empty-state.tsx
deleted file mode 100644
index b502035de7..0000000000
--- a/web/core/constants/empty-state.tsx
+++ /dev/null
@@ -1,960 +0,0 @@
-import { EUserPermissions } from "ee/constants/user-permissions";
-import { Plus, Shapes } from "lucide-react";
-
-export interface EmptyStateDetails {
- key: EmptyStateType;
- title?: string;
- description?: string;
- path?: string;
- primaryButton?: {
- icon?: React.ReactNode;
- text: string;
- comicBox?: {
- title?: string;
- description?: string;
- };
- };
- secondaryButton?: {
- icon?: React.ReactNode;
- text: string;
- comicBox?: {
- title?: string;
- description?: string;
- };
- };
- accessType?: "workspace" | "project";
- access?: any;
-}
-
-export enum EmptyStateType {
- WORKSPACE_DASHBOARD = "workspace-dashboard",
- WORKSPACE_ANALYTICS = "workspace-analytics",
- WORKSPACE_PROJECTS = "workspace-projects",
- WORKSPACE_TEAMS = "workspace-teams",
- WORKSPACE_INITIATIVES = "workspace-initiatives",
- WORKSPACE_INITIATIVES_EMPTY_SEARCH = "workspace-initiatives-empty-search",
- WORKSPACE_ALL_ISSUES = "workspace-all-issues",
- WORKSPACE_ASSIGNED = "workspace-assigned",
- WORKSPACE_CREATED = "workspace-created",
- WORKSPACE_SUBSCRIBED = "workspace-subscribed",
- WORKSPACE_CUSTOM_VIEW = "workspace-custom-view",
- WORKSPACE_NO_PROJECTS = "workspace-no-projects",
- WORKSPACE_PROJECT_NOT_FOUND = "workspace-project-not-found",
- WORKSPACE_SETTINGS_API_TOKENS = "workspace-settings-api-tokens",
- WORKSPACE_SETTINGS_WEBHOOKS = "workspace-settings-webhooks",
- WORKSPACE_SETTINGS_EXPORT = "workspace-settings-export",
- WORKSPACE_SETTINGS_IMPORT = "workspace-settings-import",
- PROFILE_ACTIVITY = "profile-activity",
- PROFILE_ASSIGNED = "profile-assigned",
- PROFILE_CREATED = "profile-created",
- PROFILE_SUBSCRIBED = "profile-subscribed",
- PROJECT_SETTINGS_LABELS = "project-settings-labels",
- PROJECT_SETTINGS_INTEGRATIONS = "project-settings-integrations",
- PROJECT_SETTINGS_ESTIMATE = "project-settings-estimate",
- PROJECT_CYCLES = "project-cycles",
- PROJECT_CYCLE_NO_ISSUES = "project-cycle-no-issues",
- PROJECT_CYCLE_ACTIVE = "project-cycle-active",
- PROJECT_CYCLE_ALL = "project-cycle-all",
- PROJECT_CYCLE_COMPLETED_NO_ISSUES = "project-cycle-completed-no-issues",
- PROJECT_ARCHIVED_NO_CYCLES = "project-archived-no-cycles",
- PROJECT_EMPTY_FILTER = "project-empty-filter",
- PROJECT_ARCHIVED_EMPTY_FILTER = "project-archived-empty-filter",
- PROJECT_DRAFT_EMPTY_FILTER = "project-draft-empty-filter",
- PROJECT_NO_ISSUES = "project-no-issues",
- PROJECT_ARCHIVED_NO_ISSUES = "project-archived-no-issues",
- PROJECT_DRAFT_NO_ISSUES = "project-draft-no-issues",
- VIEWS_EMPTY_SEARCH = "views-empty-search",
- PROJECTS_EMPTY_SEARCH = "projects-empty-search",
- MEMBERS_EMPTY_SEARCH = "members-empty-search",
- PROJECT_MODULE_ISSUES = "project-module-issues",
- PROJECT_MODULE = "project-module",
- PROJECT_ARCHIVED_NO_MODULES = "project-archived-no-modules",
- PROJECT_VIEW = "project-view",
- PROJECT_PAGE = "project-page",
- PROJECT_PAGE_PRIVATE = "project-page-private",
- PROJECT_PAGE_PUBLIC = "project-page-public",
- PROJECT_PAGE_ARCHIVED = "project-page-archived",
- WORKSPACE_PAGE = "workspace-page",
- WORKSPACE_PAGE_PRIVATE = "workspace-page-private",
- WORKSPACE_PAGE_PUBLIC = "workspace-page-public",
- WORKSPACE_PAGE_ARCHIVED = "workspace-page-archived",
-
- COMMAND_K_SEARCH_EMPTY_STATE = "command-k-search-empty-state",
- ISSUE_RELATION_SEARCH_EMPTY_STATE = "issue-relation-search-empty-state",
- ISSUE_RELATION_EMPTY_STATE = "issue-relation-empty-state",
- ISSUE_COMMENT_EMPTY_STATE = "issue-comment-empty-state",
-
- EPIC_RELATION_SEARCH_EMPTY_STATE = "epic-relation-search-empty-state",
- EPIC_RELATION_EMPTY_STATE = "epic-relation-empty-state",
-
- NOTIFICATION_DETAIL_EMPTY_STATE = "notification-detail-empty-state",
- NOTIFICATION_ALL_EMPTY_STATE = "notification-all-empty-state",
- NOTIFICATION_MENTIONS_EMPTY_STATE = "notification-mentions-empty-state",
- NOTIFICATION_MY_ISSUE_EMPTY_STATE = "notification-my-issues-empty-state",
- NOTIFICATION_CREATED_EMPTY_STATE = "notification-created-empty-state",
- NOTIFICATION_SUBSCRIBED_EMPTY_STATE = "notification-subscribed-empty-state",
- NOTIFICATION_ARCHIVED_EMPTY_STATE = "notification-archived-empty-state",
- NOTIFICATION_SNOOZED_EMPTY_STATE = "notification-snoozed-empty-state",
- NOTIFICATION_UNREAD_EMPTY_STATE = "notification-unread-empty-state",
-
- ACTIVE_CYCLE_PROGRESS_EMPTY_STATE = "active-cycle-progress-empty-state",
- ACTIVE_CYCLE_CHART_EMPTY_STATE = "active-cycle-chart-empty-state",
- ACTIVE_CYCLE_PRIORITY_ISSUE_EMPTY_STATE = "active-cycle-priority-issue-empty-state",
- ACTIVE_CYCLE_ASSIGNEE_EMPTY_STATE = "active-cycle-assignee-empty-state",
- ACTIVE_CYCLE_LABEL_EMPTY_STATE = "active-cycle-label-empty-state",
-
- WORKSPACE_ACTIVE_CYCLES = "workspace-active-cycles",
- DISABLED_PROJECT_INBOX = "disabled-project-inbox",
- DISABLED_PROJECT_CYCLE = "disabled-project-cycle",
- DISABLED_PROJECT_MODULE = "disabled-project-module",
- DISABLED_PROJECT_VIEW = "disabled-project-view",
- DISABLED_PROJECT_PAGE = "disabled-project-page",
-
- INBOX_SIDEBAR_OPEN_TAB = "inbox-sidebar-open-tab",
- INBOX_SIDEBAR_CLOSED_TAB = "inbox-sidebar-closed-tab",
- INBOX_SIDEBAR_FILTER_EMPTY_STATE = "inbox-sidebar-filter-empty-state",
- INBOX_DETAIL_EMPTY_STATE = "inbox-detail-empty-state",
-
- WORKSPACE_DRAFT_ISSUES = "workspace-draft-issues",
-
- PROJECT_NO_EPICS = "project-no-epics",
- // Teams
- TEAM_NO_ISSUES = "team-no-issues",
- TEAM_EMPTY_FILTER = "team-empty-filter",
- TEAM_VIEW = "team-view",
- TEAM_PAGE = "team-page",
- // stickies
- STICKIES = "stickies",
- STICKIES_SEARCH = "stickies-search",
- // home widgets
- HOME_WIDGETS = "home-widgets",
-}
-
-const emptyStateDetails: Record<EmptyStateType, EmptyStateDetails> = {
- // workspace
- [EmptyStateType.WORKSPACE_DASHBOARD]: {
- key: EmptyStateType.WORKSPACE_DASHBOARD,
- title: "Overview of your projects, activity, and metrics",
- description:
- " Welcome to Plane, we are excited to have you here. Create your first project and track your issues, and this page will transform into a space that helps you progress. Admins will also see items which help their team progress.",
- path: "/empty-state/onboarding/dashboard",
- // path: "/empty-state/onboarding/",
- primaryButton: {
- text: "Build your first project",
- comicBox: {
- title: "Everything starts with a project in Plane",
- description: "A project could be a product’s roadmap, a marketing campaign, or launching a new car.",
- },
- },
-
- accessType: "workspace",
- access: [EUserPermissions.ADMIN, EUserPermissions.MEMBER],
- },
- [EmptyStateType.WORKSPACE_ANALYTICS]: {
- key: EmptyStateType.WORKSPACE_ANALYTICS,
- title: "Track progress, workloads, and allocations. Spot trends, remove blockers, and move work faster",
- description:
- "See scope versus demand, estimates, and scope creep. Get performance by team members and teams, and make sure your project runs on time.",
- path: "/empty-state/onboarding/analytics",
- primaryButton: {
- text: "Start your first project",
- comicBox: {
- title: "Analytics works best with Cycles + Modules",
- description:
- "First, timebox your issues into Cycles and, if you can, group issues that span more than a cycle into Modules. Check out both on the left nav.",
- },
- },
- accessType: "workspace",
- access: [EUserPermissions.ADMIN, EUserPermissions.MEMBER],
- },
- [EmptyStateType.WORKSPACE_PROJECTS]: {
- key: EmptyStateType.WORKSPACE_PROJECTS,
- title: "No active projects",
- description:
- "Think of each project as the parent for goal-oriented work. Projects are where Jobs, Cycles, and Modules live and, along with your colleagues, help you achieve that goal. Create a new project or filter for archived projects.",
- path: "/empty-state/onboarding/projects",
- primaryButton: {
- text: "Start your first project",
- comicBox: {
- title: "Everything starts with a project in Plane",
- description: "A project could be a product’s roadmap, a marketing campaign, or launching a new car.",
- },
- },
- accessType: "workspace",
- access: [EUserPermissions.ADMIN, EUserPermissions.MEMBER],
- },
- [EmptyStateType.WORKSPACE_TEAMS]: {
- key: EmptyStateType.WORKSPACE_TEAMS,
- title: "Teams",
- description: "Teams are groups of people who collaborate on projects. Create a team to get started.",
- path: "/empty-state/teams/teams",
- primaryButton: {
- text: "Create new team",
- },
- accessType: "workspace",
- access: [EUserPermissions.ADMIN],
- },
- [EmptyStateType.WORKSPACE_INITIATIVES]: {
- key: EmptyStateType.WORKSPACE_INITIATIVES,
- title: "Organize work at the highest level with Initiatives",
- description:
- "When you need to organize work spanning several projects and teams, Initiatives come in handy. Connect projects and epics to initiatives, see automatically rolled up updates, and see the forests before you get to the trees.",
- path: "/empty-state/initiatives/initiatives",
- primaryButton: {
- text: "Create an initiative",
- },
- accessType: "workspace",
- access: [EUserPermissions.ADMIN, EUserPermissions.MEMBER],
- },
- [EmptyStateType.WORKSPACE_INITIATIVES_EMPTY_SEARCH]: {
- key: EmptyStateType.WORKSPACE_INITIATIVES_EMPTY_SEARCH,
- title: "No matching initiatives",
- description: "No initiatives detected with the matching criteria. \n Create a new initiative instead.",
- path: "/empty-state/search/project",
- },
- // all-issues
- [EmptyStateType.WORKSPACE_ALL_ISSUES]: {
- key: EmptyStateType.WORKSPACE_ALL_ISSUES,
- title: "No issues in the project",
- description: "First project done! Now, slice your work into trackable pieces with issues. Let's go!",
- path: "/empty-state/all-issues/all-issues",
- primaryButton: {
- text: "Create new issue",
- },
- accessType: "workspace",
- access: [EUserPermissions.ADMIN, EUserPermissions.MEMBER],
- },
- [EmptyStateType.WORKSPACE_ASSIGNED]: {
- key: EmptyStateType.WORKSPACE_ASSIGNED,
- title: "No issues yet",
- description: "Issues assigned to you can be tracked from here.",
- path: "/empty-state/all-issues/assigned",
- primaryButton: {
- text: "Create new issue",
- },
- accessType: "workspace",
- access: [EUserPermissions.ADMIN, EUserPermissions.MEMBER],
- },
- [EmptyStateType.WORKSPACE_CREATED]: {
- key: EmptyStateType.WORKSPACE_CREATED,
- title: "No issues yet",
- description: "All issues created by you come here, track them here directly.",
- path: "/empty-state/all-issues/created",
- primaryButton: {
- text: "Create new issue",
- },
- accessType: "workspace",
- access: [EUserPermissions.ADMIN, EUserPermissions.MEMBER],
- },
- [EmptyStateType.WORKSPACE_SUBSCRIBED]: {
- key: EmptyStateType.WORKSPACE_SUBSCRIBED,
- title: "No issues yet",
- description: "Subscribe to issues you are interested in, track all of them here.",
- path: "/empty-state/all-issues/subscribed",
- },
- [EmptyStateType.WORKSPACE_CUSTOM_VIEW]: {
- key: EmptyStateType.WORKSPACE_CUSTOM_VIEW,
- title: "No issues yet",
- description: "Issues that applies to the filters, track all of them here.",
- path: "/empty-state/all-issues/custom-view",
- },
- [EmptyStateType.WORKSPACE_PROJECT_NOT_FOUND]: {
- key: EmptyStateType.WORKSPACE_PROJECT_NOT_FOUND,
- title: "No such project exists",
- description: "To create issues or manage your work, you need to create a project or be a part of one.",
- path: "/empty-state/onboarding/projects",
- primaryButton: {
- text: "Create Project",
- comicBox: {
- title: "Everything starts with a project in Plane",
- description: "A project could be a product’s roadmap, a marketing campaign, or launching a new car.",
- },
- },
-
- accessType: "workspace",
- access: [EUserPermissions.ADMIN, EUserPermissions.MEMBER],
- },
- [EmptyStateType.WORKSPACE_NO_PROJECTS]: {
- key: EmptyStateType.WORKSPACE_NO_PROJECTS,
- title: "No project",
- description: "To create issues or manage your work, you need to create a project or be a part of one.",
- path: "/empty-state/onboarding/projects",
- primaryButton: {
- text: "Start your first project",
- comicBox: {
- title: "Everything starts with a project in Plane",
- description: "A project could be a product’s roadmap, a marketing campaign, or launching a new car.",
- },
- },
- accessType: "workspace",
- access: [EUserPermissions.ADMIN, EUserPermissions.MEMBER],
- },
- // workspace settings
- [EmptyStateType.WORKSPACE_SETTINGS_API_TOKENS]: {
- key: EmptyStateType.WORKSPACE_SETTINGS_API_TOKENS,
- title: "No API tokens created",
- description:
- "Plane APIs can be used to integrate your data in Plane with any external system. Create a token to get started.",
- path: "/empty-state/workspace-settings/api-tokens",
- },
- [EmptyStateType.WORKSPACE_SETTINGS_WEBHOOKS]: {
- key: EmptyStateType.WORKSPACE_SETTINGS_WEBHOOKS,
- title: "No webhooks added",
- description: "Create webhooks to receive real-time updates and automate actions.",
- path: "/empty-state/workspace-settings/webhooks",
- },
- [EmptyStateType.WORKSPACE_SETTINGS_EXPORT]: {
- key: EmptyStateType.WORKSPACE_SETTINGS_EXPORT,
- title: "No previous exports yet",
- description: "Anytime you export, you will also have a copy here for reference.",
- path: "/empty-state/workspace-settings/exports",
- },
- [EmptyStateType.WORKSPACE_SETTINGS_IMPORT]: {
- key: EmptyStateType.WORKSPACE_SETTINGS_IMPORT,
- title: "No previous imports yet",
- description: "Find all your previous imports here and download them.",
- path: "/empty-state/workspace-settings/imports",
- },
- // profile
- [EmptyStateType.PROFILE_ACTIVITY]: {
- key: EmptyStateType.PROFILE_ASSIGNED,
- title: "No activities yet",
- description:
- "Get started by creating a new issue! Add details and properties to it. Explore more in Plane to see your activity.",
- path: "/empty-state/profile/activity",
- },
- [EmptyStateType.PROFILE_ASSIGNED]: {
- key: EmptyStateType.PROFILE_ASSIGNED,
- title: "No issues are assigned to you",
- description: "Issues assigned to you can be tracked from here.",
- path: "/empty-state/profile/assigned",
- },
- [EmptyStateType.PROFILE_CREATED]: {
- key: EmptyStateType.PROFILE_CREATED,
- title: "No issues yet",
- description: "All issues created by you come here, track them here directly.",
- path: "/empty-state/profile/created",
- },
- [EmptyStateType.PROFILE_SUBSCRIBED]: {
- key: EmptyStateType.PROFILE_SUBSCRIBED,
- title: "No issues yet",
- description: "Subscribe to issues you are interested in, track all of them here.",
- path: "/empty-state/profile/subscribed",
- },
- // project settings
- [EmptyStateType.PROJECT_SETTINGS_LABELS]: {
- key: EmptyStateType.PROJECT_SETTINGS_LABELS,
- title: "No labels yet",
- description: "Create labels to help organize and filter issues in you project.",
- path: "/empty-state/project-settings/labels",
- },
- [EmptyStateType.PROJECT_SETTINGS_INTEGRATIONS]: {
- key: EmptyStateType.PROJECT_SETTINGS_INTEGRATIONS,
- title: "No integrations configured",
- description: "Configure GitHub and other integrations to sync your project issues.",
- path: "/empty-state/project-settings/integrations",
- },
- [EmptyStateType.PROJECT_SETTINGS_ESTIMATE]: {
- key: EmptyStateType.PROJECT_SETTINGS_ESTIMATE,
- title: "No estimates added",
- description: "Create a set of estimates to communicate the amount of work per issue.",
- path: "/empty-state/project-settings/estimates",
- },
- // project cycles
- [EmptyStateType.PROJECT_CYCLES]: {
- key: EmptyStateType.PROJECT_CYCLES,
- title: "Group and timebox your work in Cycles.",
- description:
- "Break work down by timeboxed chunks, work backwards from your project deadline to set dates, and make tangible progress as a team.",
- path: "/empty-state/onboarding/cycles",
- primaryButton: {
- text: "Set your first cycle",
- comicBox: {
- title: "Cycles are repetitive time-boxes.",
- description:
- "A sprint, an iteration, and or any other term you use for weekly or fortnightly tracking of work is a cycle.",
- },
- },
- accessType: "project",
- access: [EUserPermissions.ADMIN, EUserPermissions.MEMBER],
- },
- [EmptyStateType.PROJECT_CYCLE_NO_ISSUES]: {
- key: EmptyStateType.PROJECT_CYCLE_NO_ISSUES,
- title: "No issues added to the cycle",
- description: "Add or create issues you wish to timebox and deliver within this cycle",
- path: "/empty-state/cycle-issues/",
- primaryButton: {
- text: "Create new issue ",
- },
- secondaryButton: {
- text: "Add an existing issue",
- },
- accessType: "project",
- access: [EUserPermissions.ADMIN, EUserPermissions.MEMBER],
- },
- [EmptyStateType.PROJECT_CYCLE_ACTIVE]: {
- key: EmptyStateType.PROJECT_CYCLE_ACTIVE,
- title: "No active cycle",
- description:
- "An active cycle includes any period that encompasses today's date within its range. Find the progress and details of the active cycle here.",
- path: "/empty-state/cycle/active",
- },
- [EmptyStateType.PROJECT_CYCLE_COMPLETED_NO_ISSUES]: {
- key: EmptyStateType.PROJECT_CYCLE_COMPLETED_NO_ISSUES,
- title: "No issues in the cycle",
- description:
- "No issues in the cycle. Issues are either transferred or hidden. To see hidden issues if any, update your display properties accordingly.",
- path: "/empty-state/cycle/completed-no-issues",
- },
- [EmptyStateType.PROJECT_ARCHIVED_NO_CYCLES]: {
- key: EmptyStateType.PROJECT_ARCHIVED_NO_CYCLES,
- title: "No archived cycles yet",
- description: "To tidy up your project, archive completed cycles. Find them here once archived.",
- path: "/empty-state/archived/empty-cycles",
- },
- [EmptyStateType.PROJECT_CYCLE_ALL]: {
- key: EmptyStateType.PROJECT_CYCLE_ALL,
- title: "No cycles",
- description:
- "An active cycle includes any period that encompasses today's date within its range. Find the progress and details of the active cycle here.",
- path: "/empty-state/cycle/active",
- },
- // empty filters
- [EmptyStateType.PROJECT_EMPTY_FILTER]: {
- key: EmptyStateType.PROJECT_EMPTY_FILTER,
- title: "No issues found matching the filters applied",
- path: "/empty-state/empty-filters/",
- secondaryButton: {
- text: "Clear all filters",
- },
- accessType: "project",
- access: [EUserPermissions.ADMIN, EUserPermissions.MEMBER],
- },
- [EmptyStateType.PROJECT_ARCHIVED_EMPTY_FILTER]: {
- key: EmptyStateType.PROJECT_ARCHIVED_EMPTY_FILTER,
- title: "No issues found matching the filters applied",
- path: "/empty-state/empty-filters/",
- secondaryButton: {
- text: "Clear all filters",
- },
- accessType: "project",
- access: [EUserPermissions.ADMIN, EUserPermissions.MEMBER],
- },
- [EmptyStateType.PROJECT_DRAFT_EMPTY_FILTER]: {
- key: EmptyStateType.PROJECT_DRAFT_EMPTY_FILTER,
- title: "No issues found matching the filters applied",
- path: "/empty-state/empty-filters/",
- secondaryButton: {
- text: "Clear all filters",
- },
- accessType: "project",
- access: [EUserPermissions.ADMIN, EUserPermissions.MEMBER],
- },
- // project issues
- [EmptyStateType.PROJECT_NO_ISSUES]: {
- key: EmptyStateType.PROJECT_NO_ISSUES,
- title: "Create an issue and assign it to someone, even yourself",
- description:
- "Think of issues as jobs, tasks, work, or JTBD. Which we like. An issue and its sub-issues are usually time-based actionables assigned to members of your team. Your team creates, assigns, and completes issues to move your project towards its goal.",
- path: "/empty-state/onboarding/issues",
- primaryButton: {
- text: "Create your first issue",
- comicBox: {
- title: "Issues are building blocks in Plane.",
- description:
- "Redesign the Plane UI, Rebrand the company, or Launch the new fuel injection system are examples of issues that likely have sub-issues.",
- },
- },
- accessType: "project",
- access: [EUserPermissions.ADMIN, EUserPermissions.MEMBER],
- },
- [EmptyStateType.PROJECT_ARCHIVED_NO_ISSUES]: {
- key: EmptyStateType.PROJECT_ARCHIVED_NO_ISSUES,
- title: "No archived issues yet",
- description:
- "Manually or through automation, you can archive issues that are completed or cancelled. Find them here once archived.",
- path: "/empty-state/archived/empty-issues",
- primaryButton: {
- text: "Set automation",
- },
- accessType: "project",
- access: [EUserPermissions.ADMIN, EUserPermissions.MEMBER],
- },
- [EmptyStateType.PROJECT_DRAFT_NO_ISSUES]: {
- key: EmptyStateType.PROJECT_DRAFT_NO_ISSUES,
- title: "No draft issues yet",
- description:
- "Quickly stepping away but want to keep your place? No worries – save a draft now. Your issues will be right here waiting for you.",
- path: "/empty-state/draft/draft-issues-empty",
- },
- [EmptyStateType.VIEWS_EMPTY_SEARCH]: {
- key: EmptyStateType.VIEWS_EMPTY_SEARCH,
- title: "No matching views",
- description: "No views match the search criteria. \n Create a new view instead.",
- path: "/empty-state/search/views",
- },
- [EmptyStateType.PROJECTS_EMPTY_SEARCH]: {
- key: EmptyStateType.PROJECTS_EMPTY_SEARCH,
- title: "No matching projects",
- description: "No projects detected with the matching criteria. Create a new project instead.",
- path: "/empty-state/search/project",
- },
- [EmptyStateType.MEMBERS_EMPTY_SEARCH]: {
- key: EmptyStateType.MEMBERS_EMPTY_SEARCH,
- title: "No matching members",
- description: "Add them to the project if they are already a part of the workspace",
- path: "/empty-state/search/member",
- },
- // project module
- [EmptyStateType.PROJECT_MODULE_ISSUES]: {
- key: EmptyStateType.PROJECT_MODULE_ISSUES,
- title: "No issues in the module",
- description: "Create or add issues which you want to accomplish as part of this module",
- path: "/empty-state/module-issues/",
- primaryButton: {
- text: "Create new issue ",
- },
- secondaryButton: {
- text: "Add an existing issue",
- },
- accessType: "project",
- access: [EUserPermissions.ADMIN, EUserPermissions.MEMBER],
- },
- [EmptyStateType.PROJECT_MODULE]: {
- key: EmptyStateType.PROJECT_MODULE,
- title: "Map your project milestones to Modules and track aggregated work easily.",
- description:
- "A group of issues that belong to a logical, hierarchical parent form a module. Think of them as a way to track work by project milestones. They have their own periods and deadlines as well as analytics to help you see how close or far you are from a milestone.",
- path: "/empty-state/onboarding/modules",
- primaryButton: {
- text: "Build your first module",
- comicBox: {
- title: "Modules help group work by hierarchy.",
- description: "A cart module, a chassis module, and a warehouse module are all good example of this grouping.",
- },
- },
- accessType: "project",
- access: [EUserPermissions.ADMIN, EUserPermissions.MEMBER],
- },
- [EmptyStateType.PROJECT_ARCHIVED_NO_MODULES]: {
- key: EmptyStateType.PROJECT_ARCHIVED_NO_MODULES,
- title: "No archived Modules yet",
- description: "To tidy up your project, archive completed or cancelled modules. Find them here once archived.",
- path: "/empty-state/archived/empty-modules",
- },
- // project views
- [EmptyStateType.PROJECT_VIEW]: {
- key: EmptyStateType.PROJECT_VIEW,
- title: "Save filtered views for your project. Create as many as you need",
- description:
- "Views are a set of saved filters that you use frequently or want easy access to. All your colleagues in a project can see everyone’s views and choose whichever suits their needs best.",
- path: "/empty-state/onboarding/views",
- primaryButton: {
- text: "Create your first view",
- comicBox: {
- title: "Views work atop Issue properties.",
- description: "You can create a view from here with as many properties as filters as you see fit.",
- },
- },
- accessType: "project",
- access: [EUserPermissions.ADMIN, EUserPermissions.MEMBER, EUserPermissions.GUEST],
- },
- // project pages
- [EmptyStateType.PROJECT_PAGE]: {
- key: EmptyStateType.PROJECT_PAGE,
- title: "Write a note, a doc, or a full knowledge base. Get Galileo, Plane’s AI assistant, to help you get started",
- description:
- "Pages are thoughts potting space in Plane. Take down meeting notes, format them easily, embed issues, lay them out using a library of components, and keep them all in your project’s context. To make short work of any doc, invoke Galileo, Plane’s AI, with a shortcut or the click of a button.",
- path: "/empty-state/onboarding/pages",
- primaryButton: {
- text: "Create your first page",
- },
- accessType: "project",
- access: [EUserPermissions.ADMIN, EUserPermissions.MEMBER],
- },
- [EmptyStateType.PROJECT_PAGE_PRIVATE]: {
- key: EmptyStateType.PROJECT_PAGE_PRIVATE,
- title: "No private pages yet",
- description: "Keep your private thoughts here. When you're ready to share, the team's just a click away.",
- path: "/empty-state/pages/private",
- primaryButton: {
- text: "Create your first page",
- },
- accessType: "project",
- access: [EUserPermissions.ADMIN, EUserPermissions.MEMBER],
- },
- [EmptyStateType.PROJECT_PAGE_PUBLIC]: {
- key: EmptyStateType.PROJECT_PAGE_PUBLIC,
- title: "No public pages yet",
- description: "See pages shared with everyone in your project right here.",
- path: "/empty-state/pages/public",
- primaryButton: {
- text: "Create your first page",
- },
- accessType: "project",
- access: [EUserPermissions.ADMIN, EUserPermissions.MEMBER],
- },
- [EmptyStateType.PROJECT_PAGE_ARCHIVED]: {
- key: EmptyStateType.PROJECT_PAGE_ARCHIVED,
- title: "No archived pages yet",
- description: "Archive pages not on your radar. Access them here when needed.",
- path: "/empty-state/pages/archived",
- },
- [EmptyStateType.WORKSPACE_PAGE]: {
- key: EmptyStateType.WORKSPACE_PAGE,
- title: "Write a note, a doc, or a full knowledge base. Get Galileo, Plane’s AI assistant, to help you get started",
- description:
- "Pages are thoughts potting space in Plane. Take down meeting notes, format them easily, embed issues, lay them out using a library of components, and keep them all in your project’s context. To make short work of any doc, invoke Galileo, Plane’s AI, with a shortcut or the click of a button.",
- path: "/empty-state/onboarding/pages",
- primaryButton: {
- text: "Create your first page",
- },
- accessType: "workspace",
- access: [EUserPermissions.ADMIN, EUserPermissions.MEMBER],
- },
- [EmptyStateType.WORKSPACE_PAGE_PRIVATE]: {
- key: EmptyStateType.WORKSPACE_PAGE_PRIVATE,
- title: "No private pages yet",
- description: "Keep your private thoughts here. When you're ready to share, the team's just a click away.",
- path: "/empty-state/pages/private",
- primaryButton: {
- text: "Create your first page",
- },
- accessType: "workspace",
- access: [EUserPermissions.ADMIN, EUserPermissions.MEMBER],
- },
- [EmptyStateType.WORKSPACE_PAGE_PUBLIC]: {
- key: EmptyStateType.WORKSPACE_PAGE_PUBLIC,
- title: "No public pages yet",
- description: "See pages shared with everyone in your workspace right here.",
- path: "/empty-state/pages/public",
- primaryButton: {
- text: "Create your first page",
- },
- accessType: "workspace",
- access: [EUserPermissions.ADMIN, EUserPermissions.MEMBER],
- },
- [EmptyStateType.WORKSPACE_PAGE_ARCHIVED]: {
- key: EmptyStateType.WORKSPACE_PAGE_ARCHIVED,
- title: "No archived pages yet",
- description: "Archive pages not on your radar. Access them here when needed.",
- path: "/empty-state/pages/archived",
- },
-
- [EmptyStateType.COMMAND_K_SEARCH_EMPTY_STATE]: {
- key: EmptyStateType.COMMAND_K_SEARCH_EMPTY_STATE,
- title: "No results found",
- path: "/empty-state/search/search",
- },
- [EmptyStateType.ISSUE_RELATION_SEARCH_EMPTY_STATE]: {
- key: EmptyStateType.ISSUE_RELATION_SEARCH_EMPTY_STATE,
- title: "No matching issues found",
- path: "/empty-state/search/search",
- },
- [EmptyStateType.ISSUE_RELATION_EMPTY_STATE]: {
- key: EmptyStateType.ISSUE_RELATION_EMPTY_STATE,
- title: "No issues found",
- path: "/empty-state/search/issues",
- },
-
- [EmptyStateType.EPIC_RELATION_SEARCH_EMPTY_STATE]: {
- key: EmptyStateType.EPIC_RELATION_SEARCH_EMPTY_STATE,
- title: "No matching epics found",
- path: "/empty-state/search/search",
- },
- [EmptyStateType.EPIC_RELATION_EMPTY_STATE]: {
- key: EmptyStateType.EPIC_RELATION_EMPTY_STATE,
- title: "No epics found",
- path: "/empty-state/search/issues",
- },
-
- [EmptyStateType.ISSUE_COMMENT_EMPTY_STATE]: {
- key: EmptyStateType.ISSUE_COMMENT_EMPTY_STATE,
- title: "No comments yet",
- description: "Comments can be used as a discussion and \n follow-up space for the issues",
- path: "/empty-state/search/comments",
- },
-
- [EmptyStateType.NOTIFICATION_DETAIL_EMPTY_STATE]: {
- key: EmptyStateType.INBOX_DETAIL_EMPTY_STATE,
- title: "Select to view details.",
- path: "/empty-state/intake/issue-detail",
- },
- [EmptyStateType.NOTIFICATION_ALL_EMPTY_STATE]: {
- key: EmptyStateType.NOTIFICATION_ALL_EMPTY_STATE,
- title: "No issues assigned",
- description: "Updates for issues assigned to you can be \n seen here",
- path: "/empty-state/search/notification",
- },
- [EmptyStateType.NOTIFICATION_MENTIONS_EMPTY_STATE]: {
- key: EmptyStateType.NOTIFICATION_MENTIONS_EMPTY_STATE,
- title: "No issues assigned",
- description: "Updates for issues assigned to you can be \n seen here",
- path: "/empty-state/search/notification",
- },
- [EmptyStateType.NOTIFICATION_MY_ISSUE_EMPTY_STATE]: {
- key: EmptyStateType.NOTIFICATION_MY_ISSUE_EMPTY_STATE,
- title: "No issues assigned",
- description: "Updates for issues assigned to you can be \n seen here",
- path: "/empty-state/search/notification",
- },
- [EmptyStateType.NOTIFICATION_CREATED_EMPTY_STATE]: {
- key: EmptyStateType.NOTIFICATION_CREATED_EMPTY_STATE,
- title: "No updates to issues",
- description: "Updates to issues created by you can be \n seen here",
- path: "/empty-state/search/notification",
- },
- [EmptyStateType.NOTIFICATION_SUBSCRIBED_EMPTY_STATE]: {
- key: EmptyStateType.NOTIFICATION_SUBSCRIBED_EMPTY_STATE,
- title: "No updates to issues",
- description: "Updates to any issue you are \n subscribed to can be seen here",
- path: "/empty-state/search/notification",
- },
- [EmptyStateType.NOTIFICATION_UNREAD_EMPTY_STATE]: {
- key: EmptyStateType.NOTIFICATION_UNREAD_EMPTY_STATE,
- title: "No unread notifications",
- description: "Congratulations, you are up-to-date \n with everything happening in the issues \n you care about",
- path: "/empty-state/search/notification",
- },
- [EmptyStateType.NOTIFICATION_SNOOZED_EMPTY_STATE]: {
- key: EmptyStateType.NOTIFICATION_SNOOZED_EMPTY_STATE,
- title: "No snoozed notifications yet",
- description: "Any notification you snooze for later will \n be available here to act upon",
- path: "/empty-state/search/snooze",
- },
- [EmptyStateType.NOTIFICATION_ARCHIVED_EMPTY_STATE]: {
- key: EmptyStateType.NOTIFICATION_ARCHIVED_EMPTY_STATE,
- title: "No archived notifications yet",
- description: "Any notification you archive will be \n available here to help you focus",
- path: "/empty-state/search/archive",
- },
-
- [EmptyStateType.ACTIVE_CYCLE_PROGRESS_EMPTY_STATE]: {
- key: EmptyStateType.ACTIVE_CYCLE_PROGRESS_EMPTY_STATE,
- title: "Add issues to the cycle to view it's \n progress",
- path: "/empty-state/active-cycle/progress",
- },
- [EmptyStateType.ACTIVE_CYCLE_CHART_EMPTY_STATE]: {
- key: EmptyStateType.ACTIVE_CYCLE_CHART_EMPTY_STATE,
- title: "Add issues to the cycle to view the \n burndown chart.",
- path: "/empty-state/active-cycle/chart",
- },
- [EmptyStateType.ACTIVE_CYCLE_PRIORITY_ISSUE_EMPTY_STATE]: {
- key: EmptyStateType.ACTIVE_CYCLE_PRIORITY_ISSUE_EMPTY_STATE,
- title: "Observe high priority issues tackled in \n the cycle at a glance.",
- path: "/empty-state/active-cycle/priority",
- },
- [EmptyStateType.ACTIVE_CYCLE_ASSIGNEE_EMPTY_STATE]: {
- key: EmptyStateType.ACTIVE_CYCLE_ASSIGNEE_EMPTY_STATE,
- title: "Add assignees to issues to see a \n breakdown of work by assignees.",
- path: "/empty-state/active-cycle/assignee",
- },
- [EmptyStateType.ACTIVE_CYCLE_LABEL_EMPTY_STATE]: {
- key: EmptyStateType.ACTIVE_CYCLE_LABEL_EMPTY_STATE,
- title: "Add labels to issues to see the \n breakdown of work by labels.",
- path: "/empty-state/active-cycle/label",
- },
- [EmptyStateType.WORKSPACE_ACTIVE_CYCLES]: {
- key: EmptyStateType.WORKSPACE_ACTIVE_CYCLES,
- title: "No active cycles",
- description:
- "Cycles of your projects that includes any period that encompasses today's date within its range. Find the progress and details of all your active cycle here.",
- path: "/empty-state/onboarding/workspace-active-cycles",
- },
- [EmptyStateType.DISABLED_PROJECT_INBOX]: {
- key: EmptyStateType.DISABLED_PROJECT_INBOX,
- title: "Intake is not enabled for the project.",
- description:
- "Intake helps you manage incoming requests to your project and add them as issues in your workflow. Enable intake \n from project settings to manage requests.",
- accessType: "project",
- access: [EUserPermissions.ADMIN],
- path: "/empty-state/disabled-feature/intake",
- primaryButton: {
- text: "Manage features",
- },
- },
- [EmptyStateType.DISABLED_PROJECT_CYCLE]: {
- key: EmptyStateType.DISABLED_PROJECT_CYCLE,
- title: "Cycles is not enabled for this project.",
- description:
- "Break work down by timeboxed chunks, work backwards from your project deadline to set dates, and make tangible progress as a team. Enable the cycles feature for your project to start using them.",
- accessType: "project",
- access: [EUserPermissions.ADMIN],
- path: "/empty-state/disabled-feature/cycles",
- primaryButton: {
- text: "Manage features",
- },
- },
- [EmptyStateType.DISABLED_PROJECT_MODULE]: {
- key: EmptyStateType.DISABLED_PROJECT_MODULE,
- title: "Modules are not enabled for the project.",
- description:
- "A group of issues that belong to a logical, hierarchical parent form a module. Think of them as a way to track work by project milestones. Enable modules from project settings.",
- accessType: "project",
- access: [EUserPermissions.ADMIN],
- path: "/empty-state/disabled-feature/modules",
- primaryButton: {
- text: "Manage features",
- },
- },
- [EmptyStateType.DISABLED_PROJECT_PAGE]: {
- key: EmptyStateType.DISABLED_PROJECT_PAGE,
- title: "Pages are not enabled for the project.",
- description:
- "Pages are thought spotting space in Plane. Take down meeting notes, format them easily, embed issues, lay them out using a library of components, and keep them all in your project’s context. Enable the pages feature to start creating them in your project.",
- accessType: "project",
- access: [EUserPermissions.ADMIN],
- path: "/empty-state/disabled-feature/pages",
- primaryButton: {
- text: "Manage features",
- },
- },
- [EmptyStateType.DISABLED_PROJECT_VIEW]: {
- key: EmptyStateType.DISABLED_PROJECT_VIEW,
- title: "Views is not enabled for this project.",
- description:
- "Views are a set of saved filters that you use frequently or want easy access to. All your colleagues in a project can see everyone’s views and choose whichever suits their needs best. Enable views in the project settings to start using them.",
- accessType: "project",
- access: [EUserPermissions.ADMIN],
- path: "/empty-state/disabled-feature/views",
- primaryButton: {
- text: "Manage features",
- },
- },
- [EmptyStateType.INBOX_SIDEBAR_OPEN_TAB]: {
- key: EmptyStateType.INBOX_SIDEBAR_OPEN_TAB,
- title: "No open issues",
- description: "Find open issues here. Create new issue.",
- path: "/empty-state/intake/intake-issue",
- },
- [EmptyStateType.INBOX_SIDEBAR_CLOSED_TAB]: {
- key: EmptyStateType.INBOX_SIDEBAR_CLOSED_TAB,
- title: "No closed issues",
- description: "All the issues whether accepted or \n declined can be found here.",
- path: "/empty-state/intake/intake-issue",
- },
- [EmptyStateType.INBOX_SIDEBAR_FILTER_EMPTY_STATE]: {
- key: EmptyStateType.INBOX_SIDEBAR_FILTER_EMPTY_STATE,
- title: "No matching issues",
- description: "No issue matches filter applied in intake. \n Create a new issue.",
- path: "/empty-state/intake/filter-issue",
- },
- [EmptyStateType.INBOX_DETAIL_EMPTY_STATE]: {
- key: EmptyStateType.INBOX_DETAIL_EMPTY_STATE,
- title: "Select an issue to view its details.",
- path: "/empty-state/intake/issue-detail",
- },
- [EmptyStateType.WORKSPACE_DRAFT_ISSUES]: {
- key: EmptyStateType.WORKSPACE_DRAFT_ISSUES,
- title: "Half-written issues, and soon, comments will show up here.",
- description: "To try this out, start adding an issue and leave it mid-way or create your first draft below. 😉",
- path: "/empty-state/workspace-draft/issue",
- primaryButton: {
- text: "Create your first draft",
- },
- accessType: "workspace",
- access: [EUserPermissions.ADMIN, EUserPermissions.MEMBER],
- },
- [EmptyStateType.PROJECT_NO_EPICS]: {
- key: EmptyStateType.PROJECT_NO_EPICS,
- title: "Create an epic and assign it to someone, even yourself",
- description:
- "For larger bodies of work that span several cycles and can live across modules, create an epic. Link issues and sub-issues in a project to an epic and jump into an issue from the overview.",
- path: "/empty-state/onboarding/issues",
- primaryButton: {
- text: "Create an Epic",
- },
- accessType: "project",
- access: [EUserPermissions.ADMIN, EUserPermissions.MEMBER],
- },
- // Teams
- [EmptyStateType.TEAM_NO_ISSUES]: {
- key: EmptyStateType.TEAM_NO_ISSUES,
- title: "Create an issue in your team projects and assign it to someone, even yourself",
- description:
- "Think of issues as jobs, tasks, work, or JTBD. Which we like. An issue and its sub-issues are usually time-based actionables assigned to members of your team. Your team creates, assigns, and completes issues to move your project towards its goal.",
- path: "/empty-state/onboarding/issues",
- primaryButton: {
- text: "Create your first issue",
- comicBox: {
- title: "Issues are building blocks in Plane.",
- description:
- "Redesign the Plane UI, Rebrand the company, or Launch the new fuel injection system are examples of issues that likely have sub-issues.",
- },
- },
- accessType: "workspace",
- access: [EUserPermissions.ADMIN, EUserPermissions.MEMBER],
- },
- [EmptyStateType.TEAM_EMPTY_FILTER]: {
- key: EmptyStateType.TEAM_EMPTY_FILTER,
- title: "No issues found matching the filters applied",
- path: "/empty-state/empty-filters/",
- secondaryButton: {
- text: "Clear all filters",
- },
- accessType: "workspace",
- access: [EUserPermissions.ADMIN, EUserPermissions.MEMBER],
- },
- [EmptyStateType.TEAM_VIEW]: {
- key: EmptyStateType.TEAM_VIEW,
- title: "Save filtered views for your team. Create as many as you need",
- description:
- "Views are a set of saved filters that you use frequently or want easy access to. All your colleagues in a team can see everyone’s views and choose whichever suits their needs best.",
- path: "/empty-state/onboarding/views",
- primaryButton: {
- text: "Create your first view",
- comicBox: {
- title: "Views work atop Issue properties.",
- description: "You can create a view from here with as many properties as filters as you see fit.",
- },
- },
- accessType: "workspace",
- access: [EUserPermissions.ADMIN, EUserPermissions.MEMBER],
- },
- [EmptyStateType.TEAM_PAGE]: {
- key: EmptyStateType.TEAM_PAGE,
- title: "Team pages are coming soon!",
- description:
- "Write a note, a doc, or a full knowledge base. Get Galileo, Plane’s AI assistant, to help you get started. Pages are thoughts potting space in Plane. Take down meeting notes, format them easily, embed issues, lay them out using a library of components, and keep them all in your project’s context. To make short work of any doc, invoke Galileo, Plane’s AI, with a shortcut or the click of a button.",
- path: "/empty-state/onboarding/pages",
- },
- [EmptyStateType.STICKIES]: {
- key: EmptyStateType.STICKIES,
- title: "Stickies are quick notes and to-dos you take down on the fly.",
- description:
- "Capture ideas, ahas, brainwaves, light-bulb moments without scrambling for a pen and paper, hunting for the recorder app on your phone, or firing up a notes app only to forget all about it later. Keep them all right next to your work so you can easily come back, build them up, or well, discard them.",
- path: "/empty-state/stickies/stickies",
- primaryButton: {
- icon: <Plus className="size-4" />,
- text: "Add sticky",
- },
- access: [EUserPermissions.ADMIN, EUserPermissions.MEMBER, EUserPermissions.GUEST],
- accessType: "workspace",
- },
- [EmptyStateType.STICKIES_SEARCH]: {
- key: EmptyStateType.STICKIES_SEARCH,
- title: "That doesn't match any of your stickies.",
- description: "Try a different term or let us know\nif you are sure your search is right. ",
- path: "/empty-state/stickies/stickies-search",
- primaryButton: {
- icon: <Plus className="size-4" />,
- text: "Add sticky",
- },
- access: [EUserPermissions.ADMIN, EUserPermissions.MEMBER, EUserPermissions.GUEST],
- accessType: "workspace",
- },
- [EmptyStateType.HOME_WIDGETS]: {
- key: EmptyStateType.HOME_WIDGETS,
- title: "So much to add, yet such empty",
- description: "You have turned off all your widgets. Turn some or\nall of them back on to see delightful things.",
- path: "/empty-state/dashboard/widgets",
- primaryButton: {
- icon: <Shapes className="size-4" />,
- text: "Manage widgets",
- },
- access: [EUserPermissions.ADMIN, EUserPermissions.MEMBER, EUserPermissions.GUEST],
- accessType: "workspace",
- },
-} as const;
-
-export const EMPTY_STATE_DETAILS: Record<EmptyStateType, EmptyStateDetails> = emptyStateDetails;
diff --git a/web/core/constants/errors.ts b/web/core/constants/errors.ts
deleted file mode 100644
index b682c2ee10..0000000000
--- a/web/core/constants/errors.ts
+++ /dev/null
@@ -1,25 +0,0 @@
-export enum EErrorCodes {
- "INVALID_ARCHIVE_STATE_GROUP" = 4091,
- "INVALID_ISSUE_START_DATE" = 4101,
- "INVALID_ISSUE_TARGET_DATE" = 4102,
-}
-
-export const ERROR_DETAILS: {
- [key in EErrorCodes]: {
- title: string;
- message: string;
- };
-} = {
- [EErrorCodes.INVALID_ARCHIVE_STATE_GROUP]: {
- title: "Unable to archive issues",
- message: "Only issues belonging to Completed or Canceled state groups can be archived.",
- },
- [EErrorCodes.INVALID_ISSUE_START_DATE]: {
- title: "Unable to update issues",
- message: "Start date selected succeeds the due date for some issues. Ensure start date to be before the due date.",
- },
- [EErrorCodes.INVALID_ISSUE_TARGET_DATE]: {
- title: "Unable to update issues",
- message: "Due date selected precedes the start date for some issues. Ensure due date to be after the start date.",
- },
-};
diff --git a/web/core/constants/filters.ts b/web/core/constants/filters.ts
deleted file mode 100644
index 98189bc78e..0000000000
--- a/web/core/constants/filters.ts
+++ /dev/null
@@ -1,52 +0,0 @@
-export const DATE_AFTER_FILTER_OPTIONS = [
- {
- name: "1 week from now",
- value: "1_weeks;after;fromnow",
- },
- {
- name: "2 weeks from now",
- value: "2_weeks;after;fromnow",
- },
- {
- name: "1 month from now",
- value: "1_months;after;fromnow",
- },
- {
- name: "2 months from now",
- value: "2_months;after;fromnow",
- },
-];
-
-export const DATE_BEFORE_FILTER_OPTIONS = [
- {
- name: "1 week ago",
- value: "1_weeks;before;fromnow",
- },
- {
- name: "2 weeks ago",
- value: "2_weeks;before;fromnow",
- },
- {
- name: "1 month ago",
- value: "1_months;before;fromnow",
- },
-];
-
-export const PROJECT_CREATED_AT_FILTER_OPTIONS = [
- {
- name: "Today",
- value: "today;custom;custom",
- },
- {
- name: "Yesterday",
- value: "yesterday;custom;custom",
- },
- {
- name: "Last 7 days",
- value: "last_7_days;custom;custom",
- },
- {
- name: "Last 30 days",
- value: "last_30_days;custom;custom",
- },
-];
diff --git a/web/core/constants/inbox.tsx b/web/core/constants/inbox.tsx
deleted file mode 100644
index fb0f4ec636..0000000000
--- a/web/core/constants/inbox.tsx
+++ /dev/null
@@ -1,91 +0,0 @@
-// icons
-import { AlertTriangle, CheckCircle2, Clock, Copy, LucideIcon, XCircle } from "lucide-react";
-// types
-import { TInboxIssueSortingOrderByKeys, TInboxIssueSortingSortByKeys, TInboxIssueStatus } from "@plane/types";
-// helpers
-import { findHowManyDaysLeft } from "@/helpers/date-time.helper";
-import { EInboxIssueStatus } from "@/helpers/inbox.helper";
-
-export const INBOX_STATUS: {
- key: string;
- status: TInboxIssueStatus;
- icon: LucideIcon;
- title: string;
- description: (snoozedTillDate: Date) => string;
- textColor: (snoozeDatePassed: boolean) => string;
- bgColor: (snoozeDatePassed: boolean) => string;
-}[] = [
- {
- key: "pending",
- status: EInboxIssueStatus.PENDING,
- icon: AlertTriangle,
- title: "Pending",
- description: () => `Pending`,
- textColor: (snoozeDatePassed: boolean = false) => (snoozeDatePassed ? "" : "text-[#AB6400]"),
- bgColor: (snoozeDatePassed: boolean = false) => (snoozeDatePassed ? "" : "bg-[#FFF7C2]"),
- },
- {
- key: "declined",
- status: EInboxIssueStatus.DECLINED,
- icon: XCircle,
- title: "Declined",
- description: () => `Declined`,
- textColor: (snoozeDatePassed: boolean = false) => (snoozeDatePassed ? "" : "text-[#CE2C31]"),
- bgColor: (snoozeDatePassed: boolean = false) => (snoozeDatePassed ? "" : "bg-[#FEEBEC]"),
- },
- {
- key: "snoozed",
- status: EInboxIssueStatus.SNOOZED,
- icon: Clock,
- title: "Snoozed",
- description: (snoozedTillDate: Date = new Date()) => `${findHowManyDaysLeft(snoozedTillDate)} days to go`,
- textColor: (snoozeDatePassed: boolean = false) => (snoozeDatePassed ? "text-red-500" : "text-custom-text-400"),
- bgColor: (snoozeDatePassed: boolean = false) => (snoozeDatePassed ? "bg-red-500/10" : "bg-[#E0E1E6]"),
- },
- {
- key: "accepted",
- status: EInboxIssueStatus.ACCEPTED,
- icon: CheckCircle2,
- title: "Accepted",
- description: () => `Accepted`,
- textColor: (snoozeDatePassed: boolean = false) => (snoozeDatePassed ? "" : "text-[#3E9B4F]"),
- bgColor: (snoozeDatePassed: boolean = false) => (snoozeDatePassed ? "" : "bg-[#E9F6E9]"),
- },
- {
- key: "duplicate",
- status: EInboxIssueStatus.DUPLICATE,
- icon: Copy,
- title: "Duplicate",
- description: () => `Duplicate`,
- textColor: (snoozeDatePassed: boolean = false) => (snoozeDatePassed ? "" : "text-custom-text-200"),
- bgColor: (snoozeDatePassed: boolean = false) => (snoozeDatePassed ? "" : "bg-gray-500/10"),
- },
-];
-
-export const INBOX_ISSUE_SOURCE = "in-app";
-
-export const INBOX_ISSUE_ORDER_BY_OPTIONS: { key: TInboxIssueSortingOrderByKeys; label: string }[] = [
- {
- key: "issue__created_at",
- label: "Created at",
- },
- {
- key: "issue__updated_at",
- label: "Updated at",
- },
- {
- key: "issue__sequence_id",
- label: "ID",
- },
-];
-
-export const INBOX_ISSUE_SORT_BY_OPTIONS: { key: TInboxIssueSortingSortByKeys; label: string }[] = [
- {
- key: "asc",
- label: "Ascending",
- },
- {
- key: "desc",
- label: "Descending",
- },
-];
diff --git a/web/core/constants/issue.ts b/web/core/constants/issue.ts
deleted file mode 100644
index 02d7ee01ad..0000000000
--- a/web/core/constants/issue.ts
+++ /dev/null
@@ -1,527 +0,0 @@
-// icons
-import { Calendar, GanttChartSquare, Kanban, List, Sheet } from "lucide-react";
-// plane constants
-import { EIssueLayoutTypes, EIssuesStoreType } from "@plane/constants";
-// types
-import {
- IIssueDisplayProperties,
- TIssueExtraOptions,
- TIssueGroupByOptions,
- TIssueOrderByOptions,
- TIssuePriorities,
- TIssueGroupingFilters,
- ILayoutDisplayFiltersOptions,
-} from "@plane/types";
-import { ADDITIONAL_ISSUE_DISPLAY_FILTERS_BY_LAYOUT } from "@/plane-web/constants";
-
-export const DRAG_ALLOWED_GROUPS: TIssueGroupByOptions[] = [
- "state",
- "priority",
- "assignees",
- "labels",
- "module",
- "cycle",
-];
-
-export type TCreateModalStoreTypes =
- | EIssuesStoreType.TEAM
- | EIssuesStoreType.PROJECT
- | EIssuesStoreType.TEAM_VIEW
- | EIssuesStoreType.PROJECT_VIEW
- | EIssuesStoreType.PROFILE
- | EIssuesStoreType.CYCLE
- | EIssuesStoreType.MODULE
- | EIssuesStoreType.EPIC;
-
-export const ISSUE_PRIORITIES: {
- key: TIssuePriorities;
- title: string;
-}[] = [
- { key: "urgent", title: "Urgent" },
- { key: "high", title: "High" },
- { key: "medium", title: "Medium" },
- { key: "low", title: "Low" },
- { key: "none", title: "None" },
-];
-
-export const ISSUE_GROUP_BY_OPTIONS: {
- key: TIssueGroupByOptions;
- title: string;
-}[] = [
- { key: "state", title: "States" },
- { key: "state_detail.group", title: "State Groups" },
- { key: "priority", title: "Priority" },
- { key: "team_project", title: "Team Project" }, // required this on team issues
- { key: "project", title: "Project" }, // required this on my issues
- { key: "cycle", title: "Cycle" }, // required this on my issues
- { key: "module", title: "Module" }, // required this on my issues
- { key: "labels", title: "Labels" },
- { key: "assignees", title: "Assignees" },
- { key: "created_by", title: "Created By" },
- { key: null, title: "None" },
-];
-
-export const ISSUE_ORDER_BY_OPTIONS: {
- key: TIssueOrderByOptions;
- title: string;
-}[] = [
- { key: "sort_order", title: "Manual" },
- { key: "-created_at", title: "Last Created" },
- { key: "-updated_at", title: "Last Updated" },
- { key: "start_date", title: "Start Date" },
- { key: "target_date", title: "Due Date" },
- { key: "-priority", title: "Priority" },
-];
-
-export const ISSUE_FILTER_OPTIONS: {
- key: TIssueGroupingFilters;
- title: string;
-}[] = [
- { key: null, title: "All" },
- { key: "active", title: "Active" },
- { key: "backlog", title: "Backlog" },
- // { key: "draft", title: "Draft Issues" },
-];
-
-export const ISSUE_DISPLAY_PROPERTIES_KEYS: (keyof IIssueDisplayProperties)[] = [
- "assignee",
- "start_date",
- "due_date",
- "labels",
- "key",
- "priority",
- "state",
- "sub_issue_count",
- "link",
- "attachment_count",
- "estimate",
- "created_on",
- "updated_on",
- "modules",
- "cycle",
- "issue_type",
-];
-
-export const EPICS_DISPLAY_PROPERTIES_KEYS: (keyof IIssueDisplayProperties)[] = ISSUE_DISPLAY_PROPERTIES_KEYS.filter(
- (key) => !["cycle", "modules"].includes(key)
-);
-
-export const ISSUE_DISPLAY_PROPERTIES: {
- key: keyof IIssueDisplayProperties;
- title: string;
-}[] = [
- { key: "key", title: "ID" },
- { key: "issue_type", title: "Issue Type" },
- { key: "assignee", title: "Assignee" },
- { key: "start_date", title: "Start date" },
- { key: "due_date", title: "Due date" },
- { key: "labels", title: "Labels" },
- { key: "priority", title: "Priority" },
- { key: "state", title: "State" },
- { key: "sub_issue_count", title: "Sub issue count" },
- { key: "attachment_count", title: "Attachment count" },
- { key: "link", title: "Link" },
- { key: "estimate", title: "Estimate" },
- { key: "modules", title: "Modules" },
- { key: "cycle", title: "Cycle" },
-];
-
-export const ISSUE_EXTRA_OPTIONS: {
- key: TIssueExtraOptions;
- title: string;
-}[] = [
- { key: "sub_issue", title: "Show sub-issues" }, // in spreadsheet its always false
- { key: "show_empty_groups", title: "Show empty groups" }, // filter on front-end
-];
-
-export const ISSUE_LAYOUT_MAP = {
- [EIssueLayoutTypes.LIST]: { key: EIssueLayoutTypes.LIST, title: "List layout", label: "List", icon: List },
- [EIssueLayoutTypes.KANBAN]: { key: EIssueLayoutTypes.KANBAN, title: "Board layout", label: "Board", icon: Kanban },
- [EIssueLayoutTypes.CALENDAR]: {
- key: EIssueLayoutTypes.CALENDAR,
- title: "Calendar layout",
- label: "Calendar",
- icon: Calendar,
- },
- [EIssueLayoutTypes.SPREADSHEET]: {
- key: EIssueLayoutTypes.SPREADSHEET,
- title: "Table layout",
- label: "Table",
- icon: Sheet,
- },
- [EIssueLayoutTypes.GANTT]: {
- key: EIssueLayoutTypes.GANTT,
- title: "Timeline layout",
- label: "Timeline",
- icon: GanttChartSquare,
- },
-};
-
-export const ISSUE_LAYOUTS: {
- key: EIssueLayoutTypes;
- title: string;
- icon: any;
-}[] = Object.values(ISSUE_LAYOUT_MAP);
-
-export type TFiltersByLayout = {
- [layoutType: string]: ILayoutDisplayFiltersOptions;
-};
-
-export type TIssueFiltersToDisplayByPageType = {
- [pageType: string]: TFiltersByLayout;
-};
-
-export const ISSUE_DISPLAY_FILTERS_BY_LAYOUT: TIssueFiltersToDisplayByPageType = {
- profile_issues: {
- list: {
- filters: ["priority", "state_group", "labels", "start_date", "target_date"],
- display_properties: ISSUE_DISPLAY_PROPERTIES_KEYS,
- display_filters: {
- group_by: ["state_detail.group", "priority", "project", "labels", null],
- order_by: ["sort_order", "-created_at", "-updated_at", "start_date", "-priority"],
- type: [null, "active", "backlog"],
- },
- extra_options: {
- access: true,
- values: ["show_empty_groups", "sub_issue"],
- },
- },
- kanban: {
- filters: ["priority", "state_group", "labels", "start_date", "target_date"],
- display_properties: ISSUE_DISPLAY_PROPERTIES_KEYS,
- display_filters: {
- group_by: ["state_detail.group", "priority", "project", "labels"],
- order_by: ["sort_order", "-created_at", "-updated_at", "start_date", "-priority"],
- type: [null, "active", "backlog"],
- },
- extra_options: {
- access: true,
- values: ["show_empty_groups"],
- },
- },
- },
- archived_issues: {
- list: {
- filters: [
- "priority",
- "state",
- "cycle",
- "module",
- "assignees",
- "created_by",
- "labels",
- "start_date",
- "target_date",
- "issue_type",
- ],
- display_properties: ISSUE_DISPLAY_PROPERTIES_KEYS,
- display_filters: {
- group_by: [
- "state",
- "cycle",
- "module",
- "state_detail.group",
- "priority",
- "labels",
- "assignees",
- "created_by",
- null,
- ],
- order_by: ["sort_order", "-created_at", "-updated_at", "start_date", "-priority"],
- type: [null, "active", "backlog"],
- },
- extra_options: {
- access: true,
- values: ["show_empty_groups"],
- },
- },
- },
- draft_issues: {
- list: {
- filters: ["priority", "state_group", "cycle", "module", "labels", "start_date", "target_date", "issue_type"],
- display_properties: ISSUE_DISPLAY_PROPERTIES_KEYS,
- display_filters: {
- group_by: ["state_detail.group", "cycle", "module", "priority", "project", "labels", null],
- order_by: ["sort_order", "-created_at", "-updated_at", "start_date", "-priority"],
- type: [null, "active", "backlog"],
- },
- extra_options: {
- access: true,
- values: ["show_empty_groups"],
- },
- },
- kanban: {
- filters: ["priority", "state_group", "cycle", "module", "labels", "start_date", "target_date", "issue_type"],
- display_properties: ISSUE_DISPLAY_PROPERTIES_KEYS,
- display_filters: {
- group_by: ["state_detail.group", "cycle", "module", "priority", "project", "labels"],
- order_by: ["sort_order", "-created_at", "-updated_at", "start_date", "-priority"],
- type: [null, "active", "backlog"],
- },
- extra_options: {
- access: true,
- values: ["show_empty_groups"],
- },
- },
- },
- my_issues: {
- spreadsheet: {
- filters: [
- "priority",
- "state_group",
- "labels",
- "assignees",
- "created_by",
- "subscriber",
- "project",
- "start_date",
- "target_date",
- ],
- display_properties: ISSUE_DISPLAY_PROPERTIES_KEYS,
- display_filters: {
- order_by: [],
- type: [null, "active", "backlog"],
- },
- extra_options: {
- access: true,
- values: ["sub_issue"],
- },
- },
- list: {
- filters: [
- "priority",
- "state_group",
- "labels",
- "assignees",
- "created_by",
- "subscriber",
- "project",
- "start_date",
- "target_date",
- ],
- display_properties: ISSUE_DISPLAY_PROPERTIES_KEYS,
- display_filters: {
- type: [null, "active", "backlog"],
- },
- extra_options: {
- access: false,
- values: [],
- },
- },
- },
- issues: {
- list: {
- filters: [
- "priority",
- "state",
- "cycle",
- "module",
- "assignees",
- "mentions",
- "created_by",
- "labels",
- "start_date",
- "target_date",
- "issue_type",
- ],
- display_properties: ISSUE_DISPLAY_PROPERTIES_KEYS,
- display_filters: {
- group_by: ["state", "priority", "cycle", "module", "labels", "assignees", "created_by", null],
- order_by: ["sort_order", "-created_at", "-updated_at", "start_date", "-priority"],
- type: [null, "active", "backlog"],
- },
- extra_options: {
- access: true,
- values: ["show_empty_groups", "sub_issue"],
- },
- },
- kanban: {
- filters: [
- "priority",
- "state",
- "cycle",
- "module",
- "assignees",
- "mentions",
- "created_by",
- "labels",
- "start_date",
- "target_date",
- "issue_type",
- ],
- display_properties: ISSUE_DISPLAY_PROPERTIES_KEYS,
- display_filters: {
- group_by: ["state", "priority", "cycle", "module", "labels", "assignees", "created_by"],
- sub_group_by: ["state", "priority", "cycle", "module", "labels", "assignees", "created_by", null],
- order_by: ["sort_order", "-created_at", "-updated_at", "start_date", "-priority", "target_date"],
- type: [null, "active", "backlog"],
- },
- extra_options: {
- access: true,
- values: ["show_empty_groups", "sub_issue"],
- },
- },
- calendar: {
- filters: [
- "priority",
- "state",
- "cycle",
- "module",
- "assignees",
- "mentions",
- "created_by",
- "labels",
- "start_date",
- "issue_type",
- ],
- display_properties: ["key", "issue_type"],
- display_filters: {
- type: [null, "active", "backlog"],
- },
- extra_options: {
- access: true,
- values: ["sub_issue"],
- },
- },
- spreadsheet: {
- filters: [
- "priority",
- "state",
- "cycle",
- "module",
- "assignees",
- "mentions",
- "created_by",
- "labels",
- "start_date",
- "target_date",
- "issue_type",
- ],
- display_properties: ISSUE_DISPLAY_PROPERTIES_KEYS,
- display_filters: {
- order_by: ["sort_order", "-created_at", "-updated_at", "start_date", "-priority"],
- type: [null, "active", "backlog"],
- },
- extra_options: {
- access: true,
- values: ["sub_issue"],
- },
- },
- gantt_chart: {
- filters: [
- "priority",
- "state",
- "cycle",
- "module",
- "assignees",
- "mentions",
- "created_by",
- "labels",
- "start_date",
- "target_date",
- "issue_type",
- ],
- display_properties: ["key", "issue_type"],
- display_filters: {
- order_by: ["sort_order", "-created_at", "-updated_at", "start_date", "-priority"],
- type: [null, "active", "backlog"],
- },
- extra_options: {
- access: true,
- values: ["sub_issue"],
- },
- },
- },
- epics: {
- list: {
- filters: ["priority", "state", "assignees", "mentions", "created_by", "labels", "start_date", "target_date"],
- display_properties: EPICS_DISPLAY_PROPERTIES_KEYS,
- display_filters: {
- group_by: ["state", "priority", "labels", "assignees", "created_by", null],
- order_by: ["sort_order", "-created_at", "-updated_at", "start_date", "-priority"],
- type: [null, "active", "backlog"],
- },
- extra_options: {
- access: true,
- values: ["show_empty_groups", "sub_issue"],
- },
- },
- kanban: {
- filters: ["priority", "state", "assignees", "mentions", "created_by", "labels", "start_date", "target_date"],
- display_properties: EPICS_DISPLAY_PROPERTIES_KEYS,
- display_filters: {
- group_by: ["state", "priority", "labels", "assignees", "created_by"],
- sub_group_by: ["state", "priority", "labels", "assignees", "created_by", null],
- order_by: ["sort_order", "-created_at", "-updated_at", "start_date", "-priority", "target_date"],
- type: [null, "active", "backlog"],
- },
- extra_options: {
- access: true,
- values: ["show_empty_groups", "sub_issue"],
- },
- },
- calendar: {
- filters: ["priority", "state", "assignees", "mentions", "created_by", "labels", "start_date"],
- display_properties: ["key", "issue_type"],
- display_filters: {
- type: [null, "active", "backlog"],
- },
- extra_options: {
- access: true,
- values: ["sub_issue"],
- },
- },
- spreadsheet: {
- filters: ["priority", "state", "assignees", "mentions", "created_by", "labels", "start_date", "target_date"],
- display_properties: EPICS_DISPLAY_PROPERTIES_KEYS,
- display_filters: {
- order_by: ["sort_order", "-created_at", "-updated_at", "start_date", "-priority"],
- type: [null, "active", "backlog"],
- },
- extra_options: {
- access: true,
- values: ["sub_issue"],
- },
- },
- gantt_chart: {
- filters: ["priority", "state", "assignees", "mentions", "created_by", "labels", "start_date", "target_date"],
- display_properties: ["key", "issue_type"],
- display_filters: {
- order_by: ["sort_order", "-created_at", "-updated_at", "start_date", "-priority"],
- type: [null, "active", "backlog"],
- },
- extra_options: {
- access: true,
- values: ["sub_issue"],
- },
- },
- },
- ...ADDITIONAL_ISSUE_DISPLAY_FILTERS_BY_LAYOUT,
-};
-
-export const ISSUE_STORE_TO_FILTERS_MAP: Partial<Record<EIssuesStoreType, TFiltersByLayout>> = {
- [EIssuesStoreType.PROJECT]: ISSUE_DISPLAY_FILTERS_BY_LAYOUT.issues,
- [EIssuesStoreType.EPIC]: ISSUE_DISPLAY_FILTERS_BY_LAYOUT.epics,
-};
-
-// issue reactions
-export const issueReactionEmojis = ["128077", "128078", "128516", "128165", "128533", "129505", "9992", "128064"];
-
-export const groupReactionEmojis = (reactions: any) => {
- let groupedEmojis: any = {};
-
- issueReactionEmojis.map((_r) => {
- groupedEmojis = { ...groupedEmojis, [_r]: [] };
- });
-
- if (reactions && reactions.length > 0) {
- reactions.map((_reaction: any) => {
- groupedEmojis = {
- ...groupedEmojis,
- [_reaction.reaction]: [...groupedEmojis[_reaction.reaction], _reaction],
- };
- });
- }
-
- return groupedEmojis;
-};
diff --git a/web/core/constants/meta.ts b/web/core/constants/meta.ts
deleted file mode 100644
index 3deed24ae1..0000000000
--- a/web/core/constants/meta.ts
+++ /dev/null
@@ -1,4 +0,0 @@
-export const SITE_NAME = "Plane";
-export const SITE_TITLE = "Plane | Simple, extensible, open-source project management tool.";
-export const SITE_DESCRIPTION =
- "Open-source project management tool to manage issues, sprints, and product roadmaps with peace of mind.";
diff --git a/web/core/constants/page.ts b/web/core/constants/page.ts
deleted file mode 100644
index 20314b263a..0000000000
--- a/web/core/constants/page.ts
+++ /dev/null
@@ -1,44 +0,0 @@
-import { Globe2, Lock, LucideIcon } from "lucide-react";
-// types
-import { TPageFiltersSortKey, TPageFiltersSortBy } from "@plane/types";
-
-export enum EPageAccess {
- PUBLIC = 0,
- PRIVATE = 1,
-}
-
-export const PAGE_ACCESS_SPECIFIERS: {
- key: EPageAccess;
- label: string;
- icon: LucideIcon;
-}[] = [
- { key: EPageAccess.PUBLIC, label: "Public", icon: Globe2 },
- { key: EPageAccess.PRIVATE, label: "Private", icon: Lock },
-];
-
-export const PAGE_SORTING_KEY_OPTIONS: {
- key: TPageFiltersSortKey;
- label: string;
-}[] = [
- { key: "name", label: "Name" },
- { key: "created_at", label: "Date created" },
- { key: "updated_at", label: "Date modified" },
-];
-
-export const PAGE_SORT_BY_OPTIONS: {
- key: TPageFiltersSortBy;
- label: string;
-}[] = [
- { key: "asc", label: "Ascending" },
- { key: "desc", label: "Descending" },
-];
-
-export type TCreatePageModal = {
- isOpen: boolean;
- pageAccess?: EPageAccess;
-}
-
-export const DEFAULT_CREATE_PAGE_MODAL_DATA: TCreatePageModal = {
- isOpen: false,
- pageAccess: EPageAccess.PUBLIC,
-};
diff --git a/web/core/constants/seo-variables.ts b/web/core/constants/seo-variables.ts
deleted file mode 100644
index aafd5f7a3e..0000000000
--- a/web/core/constants/seo-variables.ts
+++ /dev/null
@@ -1,8 +0,0 @@
-export const SITE_NAME = "Plane | Simple, extensible, open-source project management tool.";
-export const SITE_TITLE = "Plane | Simple, extensible, open-source project management tool.";
-export const SITE_DESCRIPTION =
- "Open-source project management tool to manage issues, sprints, and product roadmaps with peace of mind.";
-export const SITE_KEYWORDS =
- "software development, plan, ship, software, accelerate, code management, release management, project management, issue tracking, agile, scrum, kanban, collaboration";
-export const SITE_URL = "https://app.plane.so/";
-export const TWITTER_USER_NAME = "Plane | Simple, extensible, open-source project management tool.";
diff --git a/web/core/constants/spreadsheet.ts b/web/core/constants/spreadsheet.ts
deleted file mode 100644
index e4ca07ffba..0000000000
--- a/web/core/constants/spreadsheet.ts
+++ /dev/null
@@ -1,198 +0,0 @@
-"use client";
-import { FC } from "react";
-// icons
-import {
- CalendarDays,
- Link2,
- Signal,
- Tag,
- Triangle,
- Paperclip,
- CalendarCheck2,
- CalendarClock,
- Users,
-} from "lucide-react";
-// types
-import { IIssueDisplayProperties, TIssue, TIssueOrderByOptions } from "@plane/types";
-// ui
-import { LayersIcon, DoubleCircleIcon, DiceIcon, ContrastIcon } from "@plane/ui";
-import { ISvgIcons } from "@plane/ui/src/icons/type";
-import {
- SpreadsheetAssigneeColumn,
- SpreadsheetAttachmentColumn,
- SpreadsheetCreatedOnColumn,
- SpreadsheetDueDateColumn,
- SpreadsheetEstimateColumn,
- SpreadsheetLabelColumn,
- SpreadsheetModuleColumn,
- SpreadsheetCycleColumn,
- SpreadsheetLinkColumn,
- SpreadsheetPriorityColumn,
- SpreadsheetStartDateColumn,
- SpreadsheetStateColumn,
- SpreadsheetSubIssueColumn,
- SpreadsheetUpdatedOnColumn,
-} from "@/components/issues/issue-layouts/spreadsheet";
-
-export const SPREADSHEET_PROPERTY_DETAILS: {
- [key: string]: {
- title: string;
- ascendingOrderKey: TIssueOrderByOptions;
- ascendingOrderTitle: string;
- descendingOrderKey: TIssueOrderByOptions;
- descendingOrderTitle: string;
- icon: FC<ISvgIcons>;
- Column: React.FC<{
- issue: TIssue;
- onClose: () => void;
- onChange: (issue: TIssue, data: Partial<TIssue>, updates: any) => void;
- disabled: boolean;
- }>;
- };
-} = {
- assignee: {
- title: "Assignees",
- ascendingOrderKey: "assignees__first_name",
- ascendingOrderTitle: "A",
- descendingOrderKey: "-assignees__first_name",
- descendingOrderTitle: "Z",
- icon: Users,
- Column: SpreadsheetAssigneeColumn,
- },
- created_on: {
- title: "Created on",
- ascendingOrderKey: "-created_at",
- ascendingOrderTitle: "New",
- descendingOrderKey: "created_at",
- descendingOrderTitle: "Old",
- icon: CalendarDays,
- Column: SpreadsheetCreatedOnColumn,
- },
- due_date: {
- title: "Due date",
- ascendingOrderKey: "-target_date",
- ascendingOrderTitle: "New",
- descendingOrderKey: "target_date",
- descendingOrderTitle: "Old",
- icon: CalendarCheck2,
- Column: SpreadsheetDueDateColumn,
- },
- estimate: {
- title: "Estimate",
- ascendingOrderKey: "estimate_point__key",
- ascendingOrderTitle: "Low",
- descendingOrderKey: "-estimate_point__key",
- descendingOrderTitle: "High",
- icon: Triangle,
- Column: SpreadsheetEstimateColumn,
- },
- labels: {
- title: "Labels",
- ascendingOrderKey: "labels__name",
- ascendingOrderTitle: "A",
- descendingOrderKey: "-labels__name",
- descendingOrderTitle: "Z",
- icon: Tag,
- Column: SpreadsheetLabelColumn,
- },
- modules: {
- title: "Modules",
- ascendingOrderKey: "issue_module__module__name",
- ascendingOrderTitle: "A",
- descendingOrderKey: "-issue_module__module__name",
- descendingOrderTitle: "Z",
- icon: DiceIcon,
- Column: SpreadsheetModuleColumn,
- },
- cycle: {
- title: "Cycle",
- ascendingOrderKey: "issue_cycle__cycle__name",
- ascendingOrderTitle: "A",
- descendingOrderKey: "-issue_cycle__cycle__name",
- descendingOrderTitle: "Z",
- icon: ContrastIcon,
- Column: SpreadsheetCycleColumn,
- },
- priority: {
- title: "Priority",
- ascendingOrderKey: "priority",
- ascendingOrderTitle: "None",
- descendingOrderKey: "-priority",
- descendingOrderTitle: "Urgent",
- icon: Signal,
- Column: SpreadsheetPriorityColumn,
- },
- start_date: {
- title: "Start date",
- ascendingOrderKey: "-start_date",
- ascendingOrderTitle: "New",
- descendingOrderKey: "start_date",
- descendingOrderTitle: "Old",
- icon: CalendarClock,
- Column: SpreadsheetStartDateColumn,
- },
- state: {
- title: "State",
- ascendingOrderKey: "state__name",
- ascendingOrderTitle: "A",
- descendingOrderKey: "-state__name",
- descendingOrderTitle: "Z",
- icon: DoubleCircleIcon,
- Column: SpreadsheetStateColumn,
- },
- updated_on: {
- title: "Updated on",
- ascendingOrderKey: "-updated_at",
- ascendingOrderTitle: "New",
- descendingOrderKey: "updated_at",
- descendingOrderTitle: "Old",
- icon: CalendarDays,
- Column: SpreadsheetUpdatedOnColumn,
- },
- link: {
- title: "Link",
- ascendingOrderKey: "-link_count",
- ascendingOrderTitle: "Most",
- descendingOrderKey: "link_count",
- descendingOrderTitle: "Least",
- icon: Link2,
- Column: SpreadsheetLinkColumn,
- },
- attachment_count: {
- title: "Attachment",
- ascendingOrderKey: "-attachment_count",
- ascendingOrderTitle: "Most",
- descendingOrderKey: "attachment_count",
- descendingOrderTitle: "Least",
- icon: Paperclip,
- Column: SpreadsheetAttachmentColumn,
- },
- sub_issue_count: {
- title: "Sub-issue",
- ascendingOrderKey: "-sub_issues_count",
- ascendingOrderTitle: "Most",
- descendingOrderKey: "sub_issues_count",
- descendingOrderTitle: "Least",
- icon: LayersIcon,
- Column: SpreadsheetSubIssueColumn,
- },
-};
-
-export const SPREADSHEET_PROPERTY_LIST: (keyof IIssueDisplayProperties)[] = [
- "state",
- "priority",
- "assignee",
- "labels",
- "modules",
- "cycle",
- "start_date",
- "due_date",
- "estimate",
- "created_on",
- "updated_on",
- "link",
- "attachment_count",
- "sub_issue_count",
-];
-
-export const SPREADSHEET_SELECT_GROUP = "spreadsheet-issues";
diff --git a/web/core/constants/state.ts b/web/core/constants/state.ts
deleted file mode 100644
index 24d10cf566..0000000000
--- a/web/core/constants/state.ts
+++ /dev/null
@@ -1,51 +0,0 @@
-import { TStateGroups } from "@plane/types";
-
-export type TDraggableData = {
- groupKey: TStateGroups;
- id: string;
-};
-
-export const STATE_GROUPS: {
- [key in TStateGroups]: {
- key: TStateGroups;
- label: string;
- color: string;
- };
-} = {
- backlog: {
- key: "backlog",
- label: "Backlog",
- color: "#d9d9d9",
- },
- unstarted: {
- key: "unstarted",
- label: "Unstarted",
- color: "#3f76ff",
- },
- started: {
- key: "started",
- label: "Started",
- color: "#f59e0b",
- },
- completed: {
- key: "completed",
- label: "Completed",
- color: "#16a34a",
- },
- cancelled: {
- key: "cancelled",
- label: "Canceled",
- color: "#dc2626",
- },
-};
-
-export const ARCHIVABLE_STATE_GROUPS = [STATE_GROUPS.completed.key, STATE_GROUPS.cancelled.key];
-export const COMPLETED_STATE_GROUPS = [STATE_GROUPS.completed.key];
-export const PENDING_STATE_GROUPS = [
- STATE_GROUPS.backlog.key,
- STATE_GROUPS.unstarted.key,
- STATE_GROUPS.started.key,
- STATE_GROUPS.cancelled.key,
-];
-
-export const DISPLAY_WORKFLOW_PRO_CTA = false;
diff --git a/web/core/constants/swr-config.ts b/web/core/constants/swr-config.ts
deleted file mode 100644
index 59a9450513..0000000000
--- a/web/core/constants/swr-config.ts
+++ /dev/null
@@ -1,7 +0,0 @@
-export const SWR_CONFIG = {
- refreshWhenHidden: false,
- revalidateIfStale: true,
- revalidateOnFocus: true,
- revalidateOnMount: true,
- errorRetryCount: 3,
-};
diff --git a/web/core/constants/timezones.ts b/web/core/constants/timezones.ts
deleted file mode 100644
index 6db9dfea86..0000000000
--- a/web/core/constants/timezones.ts
+++ /dev/null
@@ -1,2983 +0,0 @@
-export type TTimezone = {
- name: string;
- gmtOffset: string;
- value: string;
-};
-
-export const TIME_ZONES: TTimezone[] = [
- {
- name: "Africa/Abidjan",
- gmtOffset: "GMT",
- value: "Africa/Abidjan",
- },
- {
- name: "Africa/Accra",
- gmtOffset: "GMT",
- value: "Africa/Accra",
- },
- {
- name: "Africa/Addis_Ababa",
- gmtOffset: "GMT+03:00",
- value: "Africa/Addis_Ababa",
- },
- {
- name: "Africa/Algiers",
- gmtOffset: "GMT+01:00",
- value: "Africa/Algiers",
- },
- {
- name: "Africa/Asmara",
- gmtOffset: "GMT+03:00",
- value: "Africa/Asmara",
- },
- {
- name: "Africa/Asmera",
- gmtOffset: "GMT+03:00",
- value: "Africa/Asmera",
- },
- {
- name: "Africa/Bamako",
- gmtOffset: "GMT",
- value: "Africa/Bamako",
- },
- {
- name: "Africa/Bangui",
- gmtOffset: "GMT+01:00",
- value: "Africa/Bangui",
- },
- {
- name: "Africa/Banjul",
- gmtOffset: "GMT",
- value: "Africa/Banjul",
- },
- {
- name: "Africa/Bissau",
- gmtOffset: "GMT",
- value: "Africa/Bissau",
- },
- {
- name: "Africa/Blantyre",
- gmtOffset: "GMT+02:00",
- value: "Africa/Blantyre",
- },
- {
- name: "Africa/Brazzaville",
- gmtOffset: "GMT+01:00",
- value: "Africa/Brazzaville",
- },
- {
- name: "Africa/Bujumbura",
- gmtOffset: "GMT+02:00",
- value: "Africa/Bujumbura",
- },
- {
- name: "Africa/Cairo",
- gmtOffset: "GMT+03:00",
- value: "Africa/Cairo",
- },
- {
- name: "Africa/Casablanca",
- gmtOffset: "GMT+01:00",
- value: "Africa/Casablanca",
- },
- {
- name: "Africa/Ceuta",
- gmtOffset: "GMT+02:00",
- value: "Africa/Ceuta",
- },
- {
- name: "Africa/Conakry",
- gmtOffset: "GMT",
- value: "Africa/Conakry",
- },
- {
- name: "Africa/Dakar",
- gmtOffset: "GMT",
- value: "Africa/Dakar",
- },
- {
- name: "Africa/Dar_es_Salaam",
- gmtOffset: "GMT+03:00",
- value: "Africa/Dar_es_Salaam",
- },
- {
- name: "Africa/Djibouti",
- gmtOffset: "GMT+03:00",
- value: "Africa/Djibouti",
- },
- {
- name: "Africa/Douala",
- gmtOffset: "GMT+01:00",
- value: "Africa/Douala",
- },
- {
- name: "Africa/El_Aaiun",
- gmtOffset: "GMT+01:00",
- value: "Africa/El_Aaiun",
- },
- {
- name: "Africa/Freetown",
- gmtOffset: "GMT",
- value: "Africa/Freetown",
- },
- {
- name: "Africa/Gaborone",
- gmtOffset: "GMT+02:00",
- value: "Africa/Gaborone",
- },
- {
- name: "Africa/Harare",
- gmtOffset: "GMT+02:00",
- value: "Africa/Harare",
- },
- {
- name: "Africa/Johannesburg",
- gmtOffset: "GMT+02:00",
- value: "Africa/Johannesburg",
- },
- {
- name: "Africa/Juba",
- gmtOffset: "GMT+02:00",
- value: "Africa/Juba",
- },
- {
- name: "Africa/Kampala",
- gmtOffset: "GMT+03:00",
- value: "Africa/Kampala",
- },
- {
- name: "Africa/Khartoum",
- gmtOffset: "GMT+02:00",
- value: "Africa/Khartoum",
- },
- {
- name: "Africa/Kigali",
- gmtOffset: "GMT+02:00",
- value: "Africa/Kigali",
- },
- {
- name: "Africa/Kinshasa",
- gmtOffset: "GMT+01:00",
- value: "Africa/Kinshasa",
- },
- {
- name: "Africa/Lagos",
- gmtOffset: "GMT+01:00",
- value: "Africa/Lagos",
- },
- {
- name: "Africa/Libreville",
- gmtOffset: "GMT+01:00",
- value: "Africa/Libreville",
- },
- {
- name: "Africa/Lome",
- gmtOffset: "GMT",
- value: "Africa/Lome",
- },
- {
- name: "Africa/Luanda",
- gmtOffset: "GMT+01:00",
- value: "Africa/Luanda",
- },
- {
- name: "Africa/Lubumbashi",
- gmtOffset: "GMT+02:00",
- value: "Africa/Lubumbashi",
- },
- {
- name: "Africa/Lusaka",
- gmtOffset: "GMT+02:00",
- value: "Africa/Lusaka",
- },
- {
- name: "Africa/Malabo",
- gmtOffset: "GMT+01:00",
- value: "Africa/Malabo",
- },
- {
- name: "Africa/Maputo",
- gmtOffset: "GMT+02:00",
- value: "Africa/Maputo",
- },
- {
- name: "Africa/Maseru",
- gmtOffset: "GMT+02:00",
- value: "Africa/Maseru",
- },
- {
- name: "Africa/Mbabane",
- gmtOffset: "GMT+02:00",
- value: "Africa/Mbabane",
- },
- {
- name: "Africa/Mogadishu",
- gmtOffset: "GMT+03:00",
- value: "Africa/Mogadishu",
- },
- {
- name: "Africa/Monrovia",
- gmtOffset: "GMT",
- value: "Africa/Monrovia",
- },
- {
- name: "Africa/Nairobi",
- gmtOffset: "GMT+03:00",
- value: "Africa/Nairobi",
- },
- {
- name: "Africa/Ndjamena",
- gmtOffset: "GMT+01:00",
- value: "Africa/Ndjamena",
- },
- {
- name: "Africa/Niamey",
- gmtOffset: "GMT+01:00",
- value: "Africa/Niamey",
- },
- {
- name: "Africa/Nouakchott",
- gmtOffset: "GMT",
- value: "Africa/Nouakchott",
- },
- {
- name: "Africa/Ouagadougou",
- gmtOffset: "GMT",
- value: "Africa/Ouagadougou",
- },
- {
- name: "Africa/Porto-Novo",
- gmtOffset: "GMT+01:00",
- value: "Africa/Porto-Novo",
- },
- {
- name: "Africa/Sao_Tome",
- gmtOffset: "GMT",
- value: "Africa/Sao_Tome",
- },
- {
- name: "Africa/Timbuktu",
- gmtOffset: "GMT",
- value: "Africa/Timbuktu",
- },
- {
- name: "Africa/Tripoli",
- gmtOffset: "GMT+02:00",
- value: "Africa/Tripoli",
- },
- {
- name: "Africa/Tunis",
- gmtOffset: "GMT+01:00",
- value: "Africa/Tunis",
- },
- {
- name: "Africa/Windhoek",
- gmtOffset: "GMT+02:00",
- value: "Africa/Windhoek",
- },
- {
- name: "America/Adak",
- gmtOffset: "GMT-09:00",
- value: "America/Adak",
- },
- {
- name: "America/Anchorage",
- gmtOffset: "GMT-08:00",
- value: "America/Anchorage",
- },
- {
- name: "America/Anguilla",
- gmtOffset: "GMT-04:00",
- value: "America/Anguilla",
- },
- {
- name: "America/Antigua",
- gmtOffset: "GMT-04:00",
- value: "America/Antigua",
- },
- {
- name: "America/Araguaina",
- gmtOffset: "GMT-03:00",
- value: "America/Araguaina",
- },
- {
- name: "America/Argentina/Buenos_Aires",
- gmtOffset: "GMT-03:00",
- value: "America/Argentina/Buenos_Aires",
- },
- {
- name: "America/Argentina/Catamarca",
- gmtOffset: "GMT-03:00",
- value: "America/Argentina/Catamarca",
- },
- {
- name: "America/Argentina/ComodRivadavia",
- gmtOffset: "GMT-03:00",
- value: "America/Argentina/ComodRivadavia",
- },
- {
- name: "America/Argentina/Cordoba",
- gmtOffset: "GMT-03:00",
- value: "America/Argentina/Cordoba",
- },
- {
- name: "America/Argentina/Jujuy",
- gmtOffset: "GMT-03:00",
- value: "America/Argentina/Jujuy",
- },
- {
- name: "America/Argentina/La_Rioja",
- gmtOffset: "GMT-03:00",
- value: "America/Argentina/La_Rioja",
- },
- {
- name: "America/Argentina/Mendoza",
- gmtOffset: "GMT-03:00",
- value: "America/Argentina/Mendoza",
- },
- {
- name: "America/Argentina/Rio_Gallegos",
- gmtOffset: "GMT-03:00",
- value: "America/Argentina/Rio_Gallegos",
- },
- {
- name: "America/Argentina/Salta",
- gmtOffset: "GMT-03:00",
- value: "America/Argentina/Salta",
- },
- {
- name: "America/Argentina/San_Juan",
- gmtOffset: "GMT-03:00",
- value: "America/Argentina/San_Juan",
- },
- {
- name: "America/Argentina/San_Luis",
- gmtOffset: "GMT-03:00",
- value: "America/Argentina/San_Luis",
- },
- {
- name: "America/Argentina/Tucuman",
- gmtOffset: "GMT-03:00",
- value: "America/Argentina/Tucuman",
- },
- {
- name: "America/Argentina/Ushuaia",
- gmtOffset: "GMT-03:00",
- value: "America/Argentina/Ushuaia",
- },
- {
- name: "America/Aruba",
- gmtOffset: "GMT-04:00",
- value: "America/Aruba",
- },
- {
- name: "America/Asuncion",
- gmtOffset: "GMT-04:00",
- value: "America/Asuncion",
- },
- {
- name: "America/Atikokan",
- gmtOffset: "GMT-05:00",
- value: "America/Atikokan",
- },
- {
- name: "America/Atka",
- gmtOffset: "GMT-09:00",
- value: "America/Atka",
- },
- {
- name: "America/Bahia",
- gmtOffset: "GMT-03:00",
- value: "America/Bahia",
- },
- {
- name: "America/Bahia_Banderas",
- gmtOffset: "GMT-06:00",
- value: "America/Bahia_Banderas",
- },
- {
- name: "America/Barbados",
- gmtOffset: "GMT-04:00",
- value: "America/Barbados",
- },
- {
- name: "America/Belem",
- gmtOffset: "GMT-03:00",
- value: "America/Belem",
- },
- {
- name: "America/Belize",
- gmtOffset: "GMT-06:00",
- value: "America/Belize",
- },
- {
- name: "America/Blanc-Sablon",
- gmtOffset: "GMT-04:00",
- value: "America/Blanc-Sablon",
- },
- {
- name: "America/Boa_Vista",
- gmtOffset: "GMT-04:00",
- value: "America/Boa_Vista",
- },
- {
- name: "America/Bogota",
- gmtOffset: "GMT-05:00",
- value: "America/Bogota",
- },
- {
- name: "America/Boise",
- gmtOffset: "GMT-06:00",
- value: "America/Boise",
- },
- {
- name: "America/Buenos_Aires",
- gmtOffset: "GMT-03:00",
- value: "America/Buenos_Aires",
- },
- {
- name: "America/Cambridge_Bay",
- gmtOffset: "GMT-06:00",
- value: "America/Cambridge_Bay",
- },
- {
- name: "America/Campo_Grande",
- gmtOffset: "GMT-04:00",
- value: "America/Campo_Grande",
- },
- {
- name: "America/Cancun",
- gmtOffset: "GMT-05:00",
- value: "America/Cancun",
- },
- {
- name: "America/Caracas",
- gmtOffset: "GMT-04:00",
- value: "America/Caracas",
- },
- {
- name: "America/Catamarca",
- gmtOffset: "GMT-03:00",
- value: "America/Catamarca",
- },
- {
- name: "America/Cayenne",
- gmtOffset: "GMT-03:00",
- value: "America/Cayenne",
- },
- {
- name: "America/Cayman",
- gmtOffset: "GMT-05:00",
- value: "America/Cayman",
- },
- {
- name: "America/Chicago",
- gmtOffset: "GMT-05:00",
- value: "America/Chicago",
- },
- {
- name: "America/Chihuahua",
- gmtOffset: "GMT-06:00",
- value: "America/Chihuahua",
- },
- {
- name: "America/Ciudad_Juarez",
- gmtOffset: "GMT-06:00",
- value: "America/Ciudad_Juarez",
- },
- {
- name: "America/Coral_Harbour",
- gmtOffset: "GMT-05:00",
- value: "America/Coral_Harbour",
- },
- {
- name: "America/Cordoba",
- gmtOffset: "GMT-03:00",
- value: "America/Cordoba",
- },
- {
- name: "America/Costa_Rica",
- gmtOffset: "GMT-06:00",
- value: "America/Costa_Rica",
- },
- {
- name: "America/Creston",
- gmtOffset: "GMT-07:00",
- value: "America/Creston",
- },
- {
- name: "America/Cuiaba",
- gmtOffset: "GMT-04:00",
- value: "America/Cuiaba",
- },
- {
- name: "America/Curacao",
- gmtOffset: "GMT-04:00",
- value: "America/Curacao",
- },
- {
- name: "America/Danmarkshavn",
- gmtOffset: "GMT",
- value: "America/Danmarkshavn",
- },
- {
- name: "America/Dawson",
- gmtOffset: "GMT-07:00",
- value: "America/Dawson",
- },
- {
- name: "America/Dawson_Creek",
- gmtOffset: "GMT-07:00",
- value: "America/Dawson_Creek",
- },
- {
- name: "America/Denver",
- gmtOffset: "GMT-06:00",
- value: "America/Denver",
- },
- {
- name: "America/Detroit",
- gmtOffset: "GMT-04:00",
- value: "America/Detroit",
- },
- {
- name: "America/Dominica",
- gmtOffset: "GMT-04:00",
- value: "America/Dominica",
- },
- {
- name: "America/Edmonton",
- gmtOffset: "GMT-06:00",
- value: "America/Edmonton",
- },
- {
- name: "America/Eirunepe",
- gmtOffset: "GMT-05:00",
- value: "America/Eirunepe",
- },
- {
- name: "America/El_Salvador",
- gmtOffset: "GMT-06:00",
- value: "America/El_Salvador",
- },
- {
- name: "America/Ensenada",
- gmtOffset: "GMT-07:00",
- value: "America/Ensenada",
- },
- {
- name: "America/Fort_Nelson",
- gmtOffset: "GMT-07:00",
- value: "America/Fort_Nelson",
- },
- {
- name: "America/Fort_Wayne",
- gmtOffset: "GMT-04:00",
- value: "America/Fort_Wayne",
- },
- {
- name: "America/Fortaleza",
- gmtOffset: "GMT-03:00",
- value: "America/Fortaleza",
- },
- {
- name: "America/Glace_Bay",
- gmtOffset: "GMT-03:00",
- value: "America/Glace_Bay",
- },
- {
- name: "America/Godthab",
- gmtOffset: "GMT-02:00",
- value: "America/Godthab",
- },
- {
- name: "America/Goose_Bay",
- gmtOffset: "GMT-03:00",
- value: "America/Goose_Bay",
- },
- {
- name: "America/Grand_Turk",
- gmtOffset: "GMT-04:00",
- value: "America/Grand_Turk",
- },
- {
- name: "America/Grenada",
- gmtOffset: "GMT-04:00",
- value: "America/Grenada",
- },
- {
- name: "America/Guadeloupe",
- gmtOffset: "GMT-04:00",
- value: "America/Guadeloupe",
- },
- {
- name: "America/Guatemala",
- gmtOffset: "GMT-06:00",
- value: "America/Guatemala",
- },
- {
- name: "America/Guayaquil",
- gmtOffset: "GMT-05:00",
- value: "America/Guayaquil",
- },
- {
- name: "America/Guyana",
- gmtOffset: "GMT-04:00",
- value: "America/Guyana",
- },
- {
- name: "America/Halifax",
- gmtOffset: "GMT-03:00",
- value: "America/Halifax",
- },
- {
- name: "America/Havana",
- gmtOffset: "GMT-04:00",
- value: "America/Havana",
- },
- {
- name: "America/Hermosillo",
- gmtOffset: "GMT-07:00",
- value: "America/Hermosillo",
- },
- {
- name: "America/Indiana/Indianapolis",
- gmtOffset: "GMT-04:00",
- value: "America/Indiana/Indianapolis",
- },
- {
- name: "America/Indiana/Knox",
- gmtOffset: "GMT-05:00",
- value: "America/Indiana/Knox",
- },
- {
- name: "America/Indiana/Marengo",
- gmtOffset: "GMT-04:00",
- value: "America/Indiana/Marengo",
- },
- {
- name: "America/Indiana/Petersburg",
- gmtOffset: "GMT-04:00",
- value: "America/Indiana/Petersburg",
- },
- {
- name: "America/Indiana/Tell_City",
- gmtOffset: "GMT-05:00",
- value: "America/Indiana/Tell_City",
- },
- {
- name: "America/Indiana/Vevay",
- gmtOffset: "GMT-04:00",
- value: "America/Indiana/Vevay",
- },
- {
- name: "America/Indiana/Vincennes",
- gmtOffset: "GMT-04:00",
- value: "America/Indiana/Vincennes",
- },
- {
- name: "America/Indiana/Winamac",
- gmtOffset: "GMT-04:00",
- value: "America/Indiana/Winamac",
- },
- {
- name: "America/Indianapolis",
- gmtOffset: "GMT-04:00",
- value: "America/Indianapolis",
- },
- {
- name: "America/Inuvik",
- gmtOffset: "GMT-06:00",
- value: "America/Inuvik",
- },
- {
- name: "America/Iqaluit",
- gmtOffset: "GMT-04:00",
- value: "America/Iqaluit",
- },
- {
- name: "America/Jamaica",
- gmtOffset: "GMT-05:00",
- value: "America/Jamaica",
- },
- {
- name: "America/Jujuy",
- gmtOffset: "GMT-03:00",
- value: "America/Jujuy",
- },
- {
- name: "America/Juneau",
- gmtOffset: "GMT-08:00",
- value: "America/Juneau",
- },
- {
- name: "America/Kentucky/Louisville",
- gmtOffset: "GMT-04:00",
- value: "America/Kentucky/Louisville",
- },
- {
- name: "America/Kentucky/Monticello",
- gmtOffset: "GMT-04:00",
- value: "America/Kentucky/Monticello",
- },
- {
- name: "America/Knox_IN",
- gmtOffset: "GMT-05:00",
- value: "America/Knox_IN",
- },
- {
- name: "America/Kralendijk",
- gmtOffset: "GMT-04:00",
- value: "America/Kralendijk",
- },
- {
- name: "America/La_Paz",
- gmtOffset: "GMT-04:00",
- value: "America/La_Paz",
- },
- {
- name: "America/Lima",
- gmtOffset: "GMT-05:00",
- value: "America/Lima",
- },
- {
- name: "America/Los_Angeles",
- gmtOffset: "GMT-07:00",
- value: "America/Los_Angeles",
- },
- {
- name: "America/Louisville",
- gmtOffset: "GMT-04:00",
- value: "America/Louisville",
- },
- {
- name: "America/Lower_Princes",
- gmtOffset: "GMT-04:00",
- value: "America/Lower_Princes",
- },
- {
- name: "America/Maceio",
- gmtOffset: "GMT-03:00",
- value: "America/Maceio",
- },
- {
- name: "America/Managua",
- gmtOffset: "GMT-06:00",
- value: "America/Managua",
- },
- {
- name: "America/Manaus",
- gmtOffset: "GMT-04:00",
- value: "America/Manaus",
- },
- {
- name: "America/Marigot",
- gmtOffset: "GMT-04:00",
- value: "America/Marigot",
- },
- {
- name: "America/Martinique",
- gmtOffset: "GMT-04:00",
- value: "America/Martinique",
- },
- {
- name: "America/Matamoros",
- gmtOffset: "GMT-05:00",
- value: "America/Matamoros",
- },
- {
- name: "America/Mazatlan",
- gmtOffset: "GMT-07:00",
- value: "America/Mazatlan",
- },
- {
- name: "America/Mendoza",
- gmtOffset: "GMT-03:00",
- value: "America/Mendoza",
- },
- {
- name: "America/Menominee",
- gmtOffset: "GMT-05:00",
- value: "America/Menominee",
- },
- {
- name: "America/Merida",
- gmtOffset: "GMT-06:00",
- value: "America/Merida",
- },
- {
- name: "America/Metlakatla",
- gmtOffset: "GMT-08:00",
- value: "America/Metlakatla",
- },
- {
- name: "America/Mexico_City",
- gmtOffset: "GMT-06:00",
- value: "America/Mexico_City",
- },
- {
- name: "America/Miquelon",
- gmtOffset: "GMT-02:00",
- value: "America/Miquelon",
- },
- {
- name: "America/Moncton",
- gmtOffset: "GMT-03:00",
- value: "America/Moncton",
- },
- {
- name: "America/Monterrey",
- gmtOffset: "GMT-06:00",
- value: "America/Monterrey",
- },
- {
- name: "America/Montevideo",
- gmtOffset: "GMT-03:00",
- value: "America/Montevideo",
- },
- {
- name: "America/Montreal",
- gmtOffset: "GMT-04:00",
- value: "America/Montreal",
- },
- {
- name: "America/Montserrat",
- gmtOffset: "GMT-04:00",
- value: "America/Montserrat",
- },
- {
- name: "America/Nassau",
- gmtOffset: "GMT-04:00",
- value: "America/Nassau",
- },
- {
- name: "America/New_York",
- gmtOffset: "GMT-04:00",
- value: "America/New_York",
- },
- {
- name: "America/Nipigon",
- gmtOffset: "GMT-04:00",
- value: "America/Nipigon",
- },
- {
- name: "America/Nome",
- gmtOffset: "GMT-08:00",
- value: "America/Nome",
- },
- {
- name: "America/Noronha",
- gmtOffset: "GMT-02:00",
- value: "America/Noronha",
- },
- {
- name: "America/North_Dakota/Beulah",
- gmtOffset: "GMT-05:00",
- value: "America/North_Dakota/Beulah",
- },
- {
- name: "America/North_Dakota/Center",
- gmtOffset: "GMT-05:00",
- value: "America/North_Dakota/Center",
- },
- {
- name: "America/North_Dakota/New_Salem",
- gmtOffset: "GMT-05:00",
- value: "America/North_Dakota/New_Salem",
- },
- {
- name: "America/Nuuk",
- gmtOffset: "GMT-02:00",
- value: "America/Nuuk",
- },
- {
- name: "America/Ojinaga",
- gmtOffset: "GMT-05:00",
- value: "America/Ojinaga",
- },
- {
- name: "America/Panama",
- gmtOffset: "GMT-05:00",
- value: "America/Panama",
- },
- {
- name: "America/Pangnirtung",
- gmtOffset: "GMT-04:00",
- value: "America/Pangnirtung",
- },
- {
- name: "America/Paramaribo",
- gmtOffset: "GMT-03:00",
- value: "America/Paramaribo",
- },
- {
- name: "America/Phoenix",
- gmtOffset: "GMT-07:00",
- value: "America/Phoenix",
- },
- {
- name: "America/Port-au-Prince",
- gmtOffset: "GMT-04:00",
- value: "America/Port-au-Prince",
- },
- {
- name: "America/Port_of_Spain",
- gmtOffset: "GMT-04:00",
- value: "America/Port_of_Spain",
- },
- {
- name: "America/Porto_Acre",
- gmtOffset: "GMT-05:00",
- value: "America/Porto_Acre",
- },
- {
- name: "America/Porto_Velho",
- gmtOffset: "GMT-04:00",
- value: "America/Porto_Velho",
- },
- {
- name: "America/Puerto_Rico",
- gmtOffset: "GMT-04:00",
- value: "America/Puerto_Rico",
- },
- {
- name: "America/Punta_Arenas",
- gmtOffset: "GMT-03:00",
- value: "America/Punta_Arenas",
- },
- {
- name: "America/Rainy_River",
- gmtOffset: "GMT-05:00",
- value: "America/Rainy_River",
- },
- {
- name: "America/Rankin_Inlet",
- gmtOffset: "GMT-05:00",
- value: "America/Rankin_Inlet",
- },
- {
- name: "America/Recife",
- gmtOffset: "GMT-03:00",
- value: "America/Recife",
- },
- {
- name: "America/Regina",
- gmtOffset: "GMT-06:00",
- value: "America/Regina",
- },
- {
- name: "America/Resolute",
- gmtOffset: "GMT-05:00",
- value: "America/Resolute",
- },
- {
- name: "America/Rio_Branco",
- gmtOffset: "GMT-05:00",
- value: "America/Rio_Branco",
- },
- {
- name: "America/Rosario",
- gmtOffset: "GMT-03:00",
- value: "America/Rosario",
- },
- {
- name: "America/Santa_Isabel",
- gmtOffset: "GMT-07:00",
- value: "America/Santa_Isabel",
- },
- {
- name: "America/Santarem",
- gmtOffset: "GMT-03:00",
- value: "America/Santarem",
- },
- {
- name: "America/Santiago",
- gmtOffset: "GMT-04:00",
- value: "America/Santiago",
- },
- {
- name: "America/Santo_Domingo",
- gmtOffset: "GMT-04:00",
- value: "America/Santo_Domingo",
- },
- {
- name: "America/Sao_Paulo",
- gmtOffset: "GMT-03:00",
- value: "America/Sao_Paulo",
- },
- {
- name: "America/Scoresbysund",
- gmtOffset: "GMT-01:00",
- value: "America/Scoresbysund",
- },
- {
- name: "America/Shiprock",
- gmtOffset: "GMT-06:00",
- value: "America/Shiprock",
- },
- {
- name: "America/Sitka",
- gmtOffset: "GMT-08:00",
- value: "America/Sitka",
- },
- {
- name: "America/St_Barthelemy",
- gmtOffset: "GMT-04:00",
- value: "America/St_Barthelemy",
- },
- {
- name: "America/St_Johns",
- gmtOffset: "GMT-02:30",
- value: "America/St_Johns",
- },
- {
- name: "America/St_Kitts",
- gmtOffset: "GMT-04:00",
- value: "America/St_Kitts",
- },
- {
- name: "America/St_Lucia",
- gmtOffset: "GMT-04:00",
- value: "America/St_Lucia",
- },
- {
- name: "America/St_Thomas",
- gmtOffset: "GMT-04:00",
- value: "America/St_Thomas",
- },
- {
- name: "America/St_Vincent",
- gmtOffset: "GMT-04:00",
- value: "America/St_Vincent",
- },
- {
- name: "America/Swift_Current",
- gmtOffset: "GMT-06:00",
- value: "America/Swift_Current",
- },
- {
- name: "America/Tegucigalpa",
- gmtOffset: "GMT-06:00",
- value: "America/Tegucigalpa",
- },
- {
- name: "America/Thule",
- gmtOffset: "GMT-03:00",
- value: "America/Thule",
- },
- {
- name: "America/Thunder_Bay",
- gmtOffset: "GMT-04:00",
- value: "America/Thunder_Bay",
- },
- {
- name: "America/Tijuana",
- gmtOffset: "GMT-07:00",
- value: "America/Tijuana",
- },
- {
- name: "America/Toronto",
- gmtOffset: "GMT-04:00",
- value: "America/Toronto",
- },
- {
- name: "America/Tortola",
- gmtOffset: "GMT-04:00",
- value: "America/Tortola",
- },
- {
- name: "America/Vancouver",
- gmtOffset: "GMT-07:00",
- value: "America/Vancouver",
- },
- {
- name: "America/Virgin",
- gmtOffset: "GMT-04:00",
- value: "America/Virgin",
- },
- {
- name: "America/Whitehorse",
- gmtOffset: "GMT-07:00",
- value: "America/Whitehorse",
- },
- {
- name: "America/Winnipeg",
- gmtOffset: "GMT-05:00",
- value: "America/Winnipeg",
- },
- {
- name: "America/Yakutat",
- gmtOffset: "GMT-08:00",
- value: "America/Yakutat",
- },
- {
- name: "America/Yellowknife",
- gmtOffset: "GMT-06:00",
- value: "America/Yellowknife",
- },
- {
- name: "Antarctica/Casey",
- gmtOffset: "GMT+11:00",
- value: "Antarctica/Casey",
- },
- {
- name: "Antarctica/Davis",
- gmtOffset: "GMT+07:00",
- value: "Antarctica/Davis",
- },
- {
- name: "Antarctica/DumontDUrville",
- gmtOffset: "GMT+10:00",
- value: "Antarctica/DumontDUrville",
- },
- {
- name: "Antarctica/Macquarie",
- gmtOffset: "GMT+11:00",
- value: "Antarctica/Macquarie",
- },
- {
- name: "Antarctica/Mawson",
- gmtOffset: "GMT+05:00",
- value: "Antarctica/Mawson",
- },
- {
- name: "Antarctica/McMurdo",
- gmtOffset: "GMT+13:00",
- value: "Antarctica/McMurdo",
- },
- {
- name: "Antarctica/Palmer",
- gmtOffset: "GMT-03:00",
- value: "Antarctica/Palmer",
- },
- {
- name: "Antarctica/Rothera",
- gmtOffset: "GMT-03:00",
- value: "Antarctica/Rothera",
- },
- {
- name: "Antarctica/South_Pole",
- gmtOffset: "GMT+13:00",
- value: "Antarctica/South_Pole",
- },
- {
- name: "Antarctica/Syowa",
- gmtOffset: "GMT+03:00",
- value: "Antarctica/Syowa",
- },
- {
- name: "Antarctica/Troll",
- gmtOffset: "GMT",
- value: "Antarctica/Troll",
- },
- {
- name: "Antarctica/Vostok",
- gmtOffset: "GMT+06:00",
- value: "Antarctica/Vostok",
- },
- {
- name: "Arctic/Longyearbyen",
- gmtOffset: "GMT+02:00",
- value: "Arctic/Longyearbyen",
- },
- {
- name: "Asia/Aden",
- gmtOffset: "GMT+03:00",
- value: "Asia/Aden",
- },
- {
- name: "Asia/Almaty",
- gmtOffset: "GMT+06:00",
- value: "Asia/Almaty",
- },
- {
- name: "Asia/Amman",
- gmtOffset: "GMT+03:00",
- value: "Asia/Amman",
- },
- {
- name: "Asia/Anadyr",
- gmtOffset: "GMT+12:00",
- value: "Asia/Anadyr",
- },
- {
- name: "Asia/Aqtau",
- gmtOffset: "GMT+05:00",
- value: "Asia/Aqtau",
- },
- {
- name: "Asia/Aqtobe",
- gmtOffset: "GMT+05:00",
- value: "Asia/Aqtobe",
- },
- {
- name: "Asia/Ashgabat",
- gmtOffset: "GMT+05:00",
- value: "Asia/Ashgabat",
- },
- {
- name: "Asia/Ashkhabad",
- gmtOffset: "GMT+05:00",
- value: "Asia/Ashkhabad",
- },
- {
- name: "Asia/Atyrau",
- gmtOffset: "GMT+05:00",
- value: "Asia/Atyrau",
- },
- {
- name: "Asia/Baghdad",
- gmtOffset: "GMT+03:00",
- value: "Asia/Baghdad",
- },
- {
- name: "Asia/Bahrain",
- gmtOffset: "GMT+03:00",
- value: "Asia/Bahrain",
- },
- {
- name: "Asia/Baku",
- gmtOffset: "GMT+04:00",
- value: "Asia/Baku",
- },
- {
- name: "Asia/Bangkok",
- gmtOffset: "GMT+07:00",
- value: "Asia/Bangkok",
- },
- {
- name: "Asia/Barnaul",
- gmtOffset: "GMT+07:00",
- value: "Asia/Barnaul",
- },
- {
- name: "Asia/Beirut",
- gmtOffset: "GMT+03:00",
- value: "Asia/Beirut",
- },
- {
- name: "Asia/Bishkek",
- gmtOffset: "GMT+06:00",
- value: "Asia/Bishkek",
- },
- {
- name: "Asia/Brunei",
- gmtOffset: "GMT+08:00",
- value: "Asia/Brunei",
- },
- {
- name: "Asia/Calcutta",
- gmtOffset: "GMT+05:30",
- value: "Asia/Calcutta",
- },
- {
- name: "Asia/Chita",
- gmtOffset: "GMT+09:00",
- value: "Asia/Chita",
- },
- {
- name: "Asia/Choibalsan",
- gmtOffset: "GMT+08:00",
- value: "Asia/Choibalsan",
- },
- {
- name: "Asia/Chongqing",
- gmtOffset: "GMT+08:00",
- value: "Asia/Chongqing",
- },
- {
- name: "Asia/Chungking",
- gmtOffset: "GMT+08:00",
- value: "Asia/Chungking",
- },
- {
- name: "Asia/Colombo",
- gmtOffset: "GMT+05:30",
- value: "Asia/Colombo",
- },
- {
- name: "Asia/Dacca",
- gmtOffset: "GMT+06:00",
- value: "Asia/Dacca",
- },
- {
- name: "Asia/Damascus",
- gmtOffset: "GMT+03:00",
- value: "Asia/Damascus",
- },
- {
- name: "Asia/Dhaka",
- gmtOffset: "GMT+06:00",
- value: "Asia/Dhaka",
- },
- {
- name: "Asia/Dili",
- gmtOffset: "GMT+09:00",
- value: "Asia/Dili",
- },
- {
- name: "Asia/Dubai",
- gmtOffset: "GMT+04:00",
- value: "Asia/Dubai",
- },
- {
- name: "Asia/Dushanbe",
- gmtOffset: "GMT+05:00",
- value: "Asia/Dushanbe",
- },
- {
- name: "Asia/Famagusta",
- gmtOffset: "GMT+03:00",
- value: "Asia/Famagusta",
- },
- {
- name: "Asia/Gaza",
- gmtOffset: "GMT+03:00",
- value: "Asia/Gaza",
- },
- {
- name: "Asia/Harbin",
- gmtOffset: "GMT+08:00",
- value: "Asia/Harbin",
- },
- {
- name: "Asia/Hebron",
- gmtOffset: "GMT+03:00",
- value: "Asia/Hebron",
- },
- {
- name: "Asia/Ho_Chi_Minh",
- gmtOffset: "GMT+07:00",
- value: "Asia/Ho_Chi_Minh",
- },
- {
- name: "Asia/Hong_Kong",
- gmtOffset: "GMT+08:00",
- value: "Asia/Hong_Kong",
- },
- {
- name: "Asia/Hovd",
- gmtOffset: "GMT+07:00",
- value: "Asia/Hovd",
- },
- {
- name: "Asia/Irkutsk",
- gmtOffset: "GMT+08:00",
- value: "Asia/Irkutsk",
- },
- {
- name: "Asia/Istanbul",
- gmtOffset: "GMT+03:00",
- value: "Asia/Istanbul",
- },
- {
- name: "Asia/Jakarta",
- gmtOffset: "GMT+07:00",
- value: "Asia/Jakarta",
- },
- {
- name: "Asia/Jayapura",
- gmtOffset: "GMT+09:00",
- value: "Asia/Jayapura",
- },
- {
- name: "Asia/Jerusalem",
- gmtOffset: "GMT+03:00",
- value: "Asia/Jerusalem",
- },
- {
- name: "Asia/Kabul",
- gmtOffset: "GMT+04:30",
- value: "Asia/Kabul",
- },
- {
- name: "Asia/Kamchatka",
- gmtOffset: "GMT+12:00",
- value: "Asia/Kamchatka",
- },
- {
- name: "Asia/Karachi",
- gmtOffset: "GMT+05:00",
- value: "Asia/Karachi",
- },
- {
- name: "Asia/Kashgar",
- gmtOffset: "GMT+06:00",
- value: "Asia/Kashgar",
- },
- {
- name: "Asia/Kathmandu",
- gmtOffset: "GMT+05:45",
- value: "Asia/Kathmandu",
- },
- {
- name: "Asia/Katmandu",
- gmtOffset: "GMT+05:45",
- value: "Asia/Katmandu",
- },
- {
- name: "Asia/Khandyga",
- gmtOffset: "GMT+09:00",
- value: "Asia/Khandyga",
- },
- {
- name: "Asia/Kolkata",
- gmtOffset: "GMT+05:30",
- value: "Asia/Kolkata",
- },
- {
- name: "Asia/Krasnoyarsk",
- gmtOffset: "GMT+07:00",
- value: "Asia/Krasnoyarsk",
- },
- {
- name: "Asia/Kuala_Lumpur",
- gmtOffset: "GMT+08:00",
- value: "Asia/Kuala_Lumpur",
- },
- {
- name: "Asia/Kuching",
- gmtOffset: "GMT+08:00",
- value: "Asia/Kuching",
- },
- {
- name: "Asia/Kuwait",
- gmtOffset: "GMT+03:00",
- value: "Asia/Kuwait",
- },
- {
- name: "Asia/Macao",
- gmtOffset: "GMT+08:00",
- value: "Asia/Macao",
- },
- {
- name: "Asia/Macau",
- gmtOffset: "GMT+08:00",
- value: "Asia/Macau",
- },
- {
- name: "Asia/Magadan",
- gmtOffset: "GMT+11:00",
- value: "Asia/Magadan",
- },
- {
- name: "Asia/Makassar",
- gmtOffset: "GMT+08:00",
- value: "Asia/Makassar",
- },
- {
- name: "Asia/Manila",
- gmtOffset: "GMT+08:00",
- value: "Asia/Manila",
- },
- {
- name: "Asia/Muscat",
- gmtOffset: "GMT+04:00",
- value: "Asia/Muscat",
- },
- {
- name: "Asia/Nicosia",
- gmtOffset: "GMT+03:00",
- value: "Asia/Nicosia",
- },
- {
- name: "Asia/Novokuznetsk",
- gmtOffset: "GMT+07:00",
- value: "Asia/Novokuznetsk",
- },
- {
- name: "Asia/Novosibirsk",
- gmtOffset: "GMT+07:00",
- value: "Asia/Novosibirsk",
- },
- {
- name: "Asia/Omsk",
- gmtOffset: "GMT+06:00",
- value: "Asia/Omsk",
- },
- {
- name: "Asia/Oral",
- gmtOffset: "GMT+05:00",
- value: "Asia/Oral",
- },
- {
- name: "Asia/Phnom_Penh",
- gmtOffset: "GMT+07:00",
- value: "Asia/Phnom_Penh",
- },
- {
- name: "Asia/Pontianak",
- gmtOffset: "GMT+07:00",
- value: "Asia/Pontianak",
- },
- {
- name: "Asia/Pyongyang",
- gmtOffset: "GMT+09:00",
- value: "Asia/Pyongyang",
- },
- {
- name: "Asia/Qatar",
- gmtOffset: "GMT+03:00",
- value: "Asia/Qatar",
- },
- {
- name: "Asia/Qostanay",
- gmtOffset: "GMT+06:00",
- value: "Asia/Qostanay",
- },
- {
- name: "Asia/Qyzylorda",
- gmtOffset: "GMT+05:00",
- value: "Asia/Qyzylorda",
- },
- {
- name: "Asia/Rangoon",
- gmtOffset: "GMT+06:30",
- value: "Asia/Rangoon",
- },
- {
- name: "Asia/Riyadh",
- gmtOffset: "GMT+03:00",
- value: "Asia/Riyadh",
- },
- {
- name: "Asia/Saigon",
- gmtOffset: "GMT+07:00",
- value: "Asia/Saigon",
- },
- {
- name: "Asia/Sakhalin",
- gmtOffset: "GMT+11:00",
- value: "Asia/Sakhalin",
- },
- {
- name: "Asia/Samarkand",
- gmtOffset: "GMT+05:00",
- value: "Asia/Samarkand",
- },
- {
- name: "Asia/Seoul",
- gmtOffset: "GMT+09:00",
- value: "Asia/Seoul",
- },
- {
- name: "Asia/Shanghai",
- gmtOffset: "GMT+08:00",
- value: "Asia/Shanghai",
- },
- {
- name: "Asia/Singapore",
- gmtOffset: "GMT+08:00",
- value: "Asia/Singapore",
- },
- {
- name: "Asia/Srednekolymsk",
- gmtOffset: "GMT+11:00",
- value: "Asia/Srednekolymsk",
- },
- {
- name: "Asia/Taipei",
- gmtOffset: "GMT+08:00",
- value: "Asia/Taipei",
- },
- {
- name: "Asia/Tashkent",
- gmtOffset: "GMT+05:00",
- value: "Asia/Tashkent",
- },
- {
- name: "Asia/Tbilisi",
- gmtOffset: "GMT+04:00",
- value: "Asia/Tbilisi",
- },
- {
- name: "Asia/Tehran",
- gmtOffset: "GMT+03:30",
- value: "Asia/Tehran",
- },
- {
- name: "Asia/Tel_Aviv",
- gmtOffset: "GMT+03:00",
- value: "Asia/Tel_Aviv",
- },
- {
- name: "Asia/Thimbu",
- gmtOffset: "GMT+06:00",
- value: "Asia/Thimbu",
- },
- {
- name: "Asia/Thimphu",
- gmtOffset: "GMT+06:00",
- value: "Asia/Thimphu",
- },
- {
- name: "Asia/Tokyo",
- gmtOffset: "GMT+09:00",
- value: "Asia/Tokyo",
- },
- {
- name: "Asia/Tomsk",
- gmtOffset: "GMT+07:00",
- value: "Asia/Tomsk",
- },
- {
- name: "Asia/Ujung_Pandang",
- gmtOffset: "GMT+08:00",
- value: "Asia/Ujung_Pandang",
- },
- {
- name: "Asia/Ulaanbaatar",
- gmtOffset: "GMT+08:00",
- value: "Asia/Ulaanbaatar",
- },
- {
- name: "Asia/Ulan_Bator",
- gmtOffset: "GMT+08:00",
- value: "Asia/Ulan_Bator",
- },
- {
- name: "Asia/Urumqi",
- gmtOffset: "GMT+06:00",
- value: "Asia/Urumqi",
- },
- {
- name: "Asia/Ust-Nera",
- gmtOffset: "GMT+10:00",
- value: "Asia/Ust-Nera",
- },
- {
- name: "Asia/Vientiane",
- gmtOffset: "GMT+07:00",
- value: "Asia/Vientiane",
- },
- {
- name: "Asia/Vladivostok",
- gmtOffset: "GMT+10:00",
- value: "Asia/Vladivostok",
- },
- {
- name: "Asia/Yakutsk",
- gmtOffset: "GMT+09:00",
- value: "Asia/Yakutsk",
- },
- {
- name: "Asia/Yangon",
- gmtOffset: "GMT+06:30",
- value: "Asia/Yangon",
- },
- {
- name: "Asia/Yekaterinburg",
- gmtOffset: "GMT+05:00",
- value: "Asia/Yekaterinburg",
- },
- {
- name: "Asia/Yerevan",
- gmtOffset: "GMT+04:00",
- value: "Asia/Yerevan",
- },
- {
- name: "Atlantic/Azores",
- gmtOffset: "GMT-01:00",
- value: "Atlantic/Azores",
- },
- {
- name: "Atlantic/Bermuda",
- gmtOffset: "GMT-03:00",
- value: "Atlantic/Bermuda",
- },
- {
- name: "Atlantic/Canary",
- gmtOffset: "GMT",
- value: "Atlantic/Canary",
- },
- {
- name: "Atlantic/Cape_Verde",
- gmtOffset: "GMT-01:00",
- value: "Atlantic/Cape_Verde",
- },
- {
- name: "Atlantic/Faeroe",
- gmtOffset: "GMT",
- value: "Atlantic/Faeroe",
- },
- {
- name: "Atlantic/Faroe",
- gmtOffset: "GMT",
- value: "Atlantic/Faroe",
- },
- {
- name: "Atlantic/Jan_Mayen",
- gmtOffset: "GMT+01:00",
- value: "Atlantic/Jan_Mayen",
- },
- {
- name: "Atlantic/Madeira",
- gmtOffset: "GMT",
- value: "Atlantic/Madeira",
- },
- {
- name: "Atlantic/Reykjavik",
- gmtOffset: "GMT",
- value: "Atlantic/Reykjavik",
- },
- {
- name: "Atlantic/South_Georgia",
- gmtOffset: "GMT-02:00",
- value: "Atlantic/South_Georgia",
- },
- {
- name: "Atlantic/St_Helena",
- gmtOffset: "GMT",
- value: "Atlantic/St_Helena",
- },
- {
- name: "Atlantic/Stanley",
- gmtOffset: "GMT-03:00",
- value: "Atlantic/Stanley",
- },
- {
- name: "Australia/ACT",
- gmtOffset: "GMT+11:00",
- value: "Australia/ACT",
- },
- {
- name: "Australia/Adelaide",
- gmtOffset: "GMT+10:30",
- value: "Australia/Adelaide",
- },
- {
- name: "Australia/Brisbane",
- gmtOffset: "GMT+10:00",
- value: "Australia/Brisbane",
- },
- {
- name: "Australia/Broken_Hill",
- gmtOffset: "GMT+10:30",
- value: "Australia/Broken_Hill",
- },
- {
- name: "Australia/Canberra",
- gmtOffset: "GMT+11:00",
- value: "Australia/Canberra",
- },
- {
- name: "Australia/Currie",
- gmtOffset: "GMT+11:00",
- value: "Australia/Currie",
- },
- {
- name: "Australia/Darwin",
- gmtOffset: "GMT+09:30",
- value: "Australia/Darwin",
- },
- {
- name: "Australia/Eucla",
- gmtOffset: "GMT+08:45",
- value: "Australia/Eucla",
- },
- {
- name: "Australia/Hobart",
- gmtOffset: "GMT+11:00",
- value: "Australia/Hobart",
- },
- {
- name: "Australia/LHI",
- gmtOffset: "GMT+11:00",
- value: "Australia/LHI",
- },
- {
- name: "Australia/Lindeman",
- gmtOffset: "GMT+10:00",
- value: "Australia/Lindeman",
- },
- {
- name: "Australia/Lord_Howe",
- gmtOffset: "GMT+11:00",
- value: "Australia/Lord_Howe",
- },
- {
- name: "Australia/Melbourne",
- gmtOffset: "GMT+11:00",
- value: "Australia/Melbourne",
- },
- {
- name: "Australia/NSW",
- gmtOffset: "GMT+11:00",
- value: "Australia/NSW",
- },
- {
- name: "Australia/North",
- gmtOffset: "GMT+09:30",
- value: "Australia/North",
- },
- {
- name: "Australia/Perth",
- gmtOffset: "GMT+08:00",
- value: "Australia/Perth",
- },
- {
- name: "Australia/Queensland",
- gmtOffset: "GMT+10:00",
- value: "Australia/Queensland",
- },
- {
- name: "Australia/South",
- gmtOffset: "GMT+10:30",
- value: "Australia/South",
- },
- {
- name: "Australia/Sydney",
- gmtOffset: "GMT+11:00",
- value: "Australia/Sydney",
- },
- {
- name: "Australia/Tasmania",
- gmtOffset: "GMT+11:00",
- value: "Australia/Tasmania",
- },
- {
- name: "Australia/Victoria",
- gmtOffset: "GMT+11:00",
- value: "Australia/Victoria",
- },
- {
- name: "Australia/West",
- gmtOffset: "GMT+08:00",
- value: "Australia/West",
- },
- {
- name: "Australia/Yancowinna",
- gmtOffset: "GMT+10:30",
- value: "Australia/Yancowinna",
- },
- {
- name: "Brazil/Acre",
- gmtOffset: "GMT-05:00",
- value: "Brazil/Acre",
- },
- {
- name: "Brazil/DeNoronha",
- gmtOffset: "GMT-02:00",
- value: "Brazil/DeNoronha",
- },
- {
- name: "Brazil/East",
- gmtOffset: "GMT-03:00",
- value: "Brazil/East",
- },
- {
- name: "Brazil/West",
- gmtOffset: "GMT-04:00",
- value: "Brazil/West",
- },
- {
- name: "CET",
- gmtOffset: "GMT+01:00",
- value: "CET",
- },
- {
- name: "CST6CDT",
- gmtOffset: "GMT-06:00",
- value: "CST6CDT",
- },
- {
- name: "Canada/Atlantic",
- gmtOffset: "GMT-03:00",
- value: "Canada/Atlantic",
- },
- {
- name: "Canada/Central",
- gmtOffset: "GMT-06:00",
- value: "Canada/Central",
- },
- {
- name: "Canada/Eastern",
- gmtOffset: "GMT-04:00",
- value: "Canada/Eastern",
- },
- {
- name: "Canada/Mountain",
- gmtOffset: "GMT-07:00",
- value: "Canada/Mountain",
- },
- {
- name: "Canada/Newfoundland",
- gmtOffset: "GMT-02:30",
- value: "Canada/Newfoundland",
- },
- {
- name: "Canada/Pacific",
- gmtOffset: "GMT-07:00",
- value: "Canada/Pacific",
- },
- {
- name: "Canada/Saskatchewan",
- gmtOffset: "GMT-06:00",
- value: "Canada/Saskatchewan",
- },
- {
- name: "Canada/Yukon",
- gmtOffset: "GMT-07:00",
- value: "Canada/Yukon",
- },
- {
- name: "Chile/Continental",
- gmtOffset: "GMT-04:00",
- value: "Chile/Continental",
- },
- {
- name: "Chile/EasterIsland",
- gmtOffset: "GMT-06:00",
- value: "Chile/EasterIsland",
- },
- {
- name: "Cuba",
- gmtOffset: "GMT-04:00",
- value: "Cuba",
- },
- {
- name: "EET",
- gmtOffset: "GMT+02:00",
- value: "EET",
- },
- {
- name: "EST",
- gmtOffset: "GMT-05:00",
- value: "EST",
- },
- {
- name: "EST5EDT",
- gmtOffset: "GMT-05:00",
- value: "EST5EDT",
- },
- {
- name: "Egypt",
- gmtOffset: "GMT+02:00",
- value: "Egypt",
- },
- {
- name: "Eire",
- gmtOffset: "GMT",
- value: "Eire",
- },
- {
- name: "Etc/GMT",
- gmtOffset: "GMT",
- value: "Etc/GMT",
- },
- {
- name: "Etc/GMT+0",
- gmtOffset: "GMT",
- value: "Etc/GMT+0",
- },
- {
- name: "Etc/GMT+1",
- gmtOffset: "GMT-01:00",
- value: "Etc/GMT+1",
- },
- {
- name: "Etc/GMT+10",
- gmtOffset: "GMT-10:00",
- value: "Etc/GMT+10",
- },
- {
- name: "Etc/GMT+11",
- gmtOffset: "GMT-11:00",
- value: "Etc/GMT+11",
- },
- {
- name: "Etc/GMT+12",
- gmtOffset: "GMT-12:00",
- value: "Etc/GMT+12",
- },
- {
- name: "Etc/GMT+2",
- gmtOffset: "GMT-02:00",
- value: "Etc/GMT+2",
- },
- {
- name: "Etc/GMT+3",
- gmtOffset: "GMT-03:00",
- value: "Etc/GMT+3",
- },
- {
- name: "Etc/GMT+4",
- gmtOffset: "GMT-04:00",
- value: "Etc/GMT+4",
- },
- {
- name: "Etc/GMT+5",
- gmtOffset: "GMT-05:00",
- value: "Etc/GMT+5",
- },
- {
- name: "Etc/GMT+6",
- gmtOffset: "GMT-06:00",
- value: "Etc/GMT+6",
- },
- {
- name: "Etc/GMT+7",
- gmtOffset: "GMT-07:00",
- value: "Etc/GMT+7",
- },
- {
- name: "Etc/GMT+8",
- gmtOffset: "GMT-08:00",
- value: "Etc/GMT+8",
- },
- {
- name: "Etc/GMT+9",
- gmtOffset: "GMT-09:00",
- value: "Etc/GMT+9",
- },
- {
- name: "Etc/GMT-0",
- gmtOffset: "GMT",
- value: "Etc/GMT-0",
- },
- {
- name: "Etc/GMT-1",
- gmtOffset: "GMT+01:00",
- value: "Etc/GMT-1",
- },
- {
- name: "Etc/GMT-10",
- gmtOffset: "GMT+10:00",
- value: "Etc/GMT-10",
- },
- {
- name: "Etc/GMT-11",
- gmtOffset: "GMT+11:00",
- value: "Etc/GMT-11",
- },
- {
- name: "Etc/GMT-12",
- gmtOffset: "GMT+12:00",
- value: "Etc/GMT-12",
- },
- {
- name: "Etc/GMT-13",
- gmtOffset: "GMT+13:00",
- value: "Etc/GMT-13",
- },
- {
- name: "Etc/GMT-14",
- gmtOffset: "GMT+14:00",
- value: "Etc/GMT-14",
- },
- {
- name: "Etc/GMT-2",
- gmtOffset: "GMT+02:00",
- value: "Etc/GMT-2",
- },
- {
- name: "Etc/GMT-3",
- gmtOffset: "GMT+03:00",
- value: "Etc/GMT-3",
- },
- {
- name: "Etc/GMT-4",
- gmtOffset: "GMT+04:00",
- value: "Etc/GMT-4",
- },
- {
- name: "Etc/GMT-5",
- gmtOffset: "GMT+05:00",
- value: "Etc/GMT-5",
- },
- {
- name: "Etc/GMT-6",
- gmtOffset: "GMT+06:00",
- value: "Etc/GMT-6",
- },
- {
- name: "Etc/GMT-7",
- gmtOffset: "GMT+07:00",
- value: "Etc/GMT-7",
- },
- {
- name: "Etc/GMT-8",
- gmtOffset: "GMT+08:00",
- value: "Etc/GMT-8",
- },
- {
- name: "Etc/GMT-9",
- gmtOffset: "GMT+09:00",
- value: "Etc/GMT-9",
- },
- {
- name: "Etc/GMT0",
- gmtOffset: "GMT",
- value: "Etc/GMT0",
- },
- {
- name: "Etc/Greenwich",
- gmtOffset: "GMT",
- value: "Etc/Greenwich",
- },
- {
- name: "Etc/UCT",
- gmtOffset: "GMT",
- value: "Etc/UCT",
- },
- {
- name: "Etc/UTC",
- gmtOffset: "GMT",
- value: "Etc/UTC",
- },
- {
- name: "Etc/Universal",
- gmtOffset: "GMT",
- value: "Etc/Universal",
- },
- {
- name: "Etc/Zulu",
- gmtOffset: "GMT",
- value: "Etc/Zulu",
- },
- {
- name: "Europe/Amsterdam",
- gmtOffset: "GMT+01:00",
- value: "Europe/Amsterdam",
- },
- {
- name: "Europe/Andorra",
- gmtOffset: "GMT+01:00",
- value: "Europe/Andorra",
- },
- {
- name: "Europe/Astrakhan",
- gmtOffset: "GMT+04:00",
- value: "Europe/Astrakhan",
- },
- {
- name: "Europe/Athens",
- gmtOffset: "GMT+03:00",
- value: "Europe/Athens",
- },
- {
- name: "Europe/Belfast",
- gmtOffset: "GMT",
- value: "Europe/Belfast",
- },
- {
- name: "Europe/Belgrade",
- gmtOffset: "GMT+01:00",
- value: "Europe/Belgrade",
- },
- {
- name: "Europe/Berlin",
- gmtOffset: "GMT+01:00",
- value: "Europe/Berlin",
- },
- {
- name: "Europe/Bratislava",
- gmtOffset: "GMT+01:00",
- value: "Europe/Bratislava",
- },
- {
- name: "Europe/Brussels",
- gmtOffset: "GMT+01:00",
- value: "Europe/Brussels",
- },
- {
- name: "Europe/Bucharest",
- gmtOffset: "GMT+03:00",
- value: "Europe/Bucharest",
- },
- {
- name: "Europe/Budapest",
- gmtOffset: "GMT+01:00",
- value: "Europe/Budapest",
- },
- {
- name: "Europe/Busingen",
- gmtOffset: "GMT+01:00",
- value: "Europe/Busingen",
- },
- {
- name: "Europe/Chisinau",
- gmtOffset: "GMT+03:00",
- value: "Europe/Chisinau",
- },
- {
- name: "Europe/Copenhagen",
- gmtOffset: "GMT+01:00",
- value: "Europe/Copenhagen",
- },
- {
- name: "Europe/Dublin",
- gmtOffset: "GMT",
- value: "Europe/Dublin",
- },
- {
- name: "Europe/Gibraltar",
- gmtOffset: "GMT+01:00",
- value: "Europe/Gibraltar",
- },
- {
- name: "Europe/Guernsey",
- gmtOffset: "GMT",
- value: "Europe/Guernsey",
- },
- {
- name: "Europe/Helsinki",
- gmtOffset: "GMT+03:00",
- value: "Europe/Helsinki",
- },
- {
- name: "Europe/Isle_of_Man",
- gmtOffset: "GMT",
- value: "Europe/Isle_of_Man",
- },
- {
- name: "Europe/Istanbul",
- gmtOffset: "GMT+03:00",
- value: "Europe/Istanbul",
- },
- {
- name: "Europe/Jersey",
- gmtOffset: "GMT",
- value: "Europe/Jersey",
- },
- {
- name: "Europe/Kaliningrad",
- gmtOffset: "GMT+02:00",
- value: "Europe/Kaliningrad",
- },
- {
- name: "Europe/Kiev",
- gmtOffset: "GMT+03:00",
- value: "Europe/Kiev",
- },
- {
- name: "Europe/Kirov",
- gmtOffset: "GMT+03:00",
- value: "Europe/Kirov",
- },
- {
- name: "Europe/Lisbon",
- gmtOffset: "GMT",
- value: "Europe/Lisbon",
- },
- {
- name: "Europe/Ljubljana",
- gmtOffset: "GMT+01:00",
- value: "Europe/Ljubljana",
- },
- {
- name: "Europe/London",
- gmtOffset: "GMT",
- value: "Europe/London",
- },
- {
- name: "Europe/Luxembourg",
- gmtOffset: "GMT+01:00",
- value: "Europe/Luxembourg",
- },
- {
- name: "Europe/Madrid",
- gmtOffset: "GMT+01:00",
- value: "Europe/Madrid",
- },
- {
- name: "Europe/Malta",
- gmtOffset: "GMT+01:00",
- value: "Europe/Malta",
- },
- {
- name: "Europe/Mariehamn",
- gmtOffset: "GMT+02:00",
- value: "Europe/Mariehamn",
- },
- {
- name: "Europe/Minsk",
- gmtOffset: "GMT+03:00",
- value: "Europe/Minsk",
- },
- {
- name: "Europe/Monaco",
- gmtOffset: "GMT+01:00",
- value: "Europe/Monaco",
- },
- {
- name: "Europe/Moscow",
- gmtOffset: "GMT+03:00",
- value: "Europe/Moscow",
- },
- {
- name: "Europe/Nicosia",
- gmtOffset: "GMT+03:00",
- value: "Europe/Nicosia",
- },
- {
- name: "Europe/Oslo",
- gmtOffset: "GMT+01:00",
- value: "Europe/Oslo",
- },
- {
- name: "Europe/Paris",
- gmtOffset: "GMT+01:00",
- value: "Europe/Paris",
- },
- {
- name: "Europe/Podgorica",
- gmtOffset: "GMT+01:00",
- value: "Europe/Podgorica",
- },
- {
- name: "Europe/Prague",
- gmtOffset: "GMT+01:00",
- value: "Europe/Prague",
- },
- {
- name: "Europe/Riga",
- gmtOffset: "GMT+03:00",
- value: "Europe/Riga",
- },
- {
- name: "Europe/Rome",
- gmtOffset: "GMT+01:00",
- value: "Europe/Rome",
- },
- {
- name: "Europe/Samara",
- gmtOffset: "GMT+04:00",
- value: "Europe/Samara",
- },
- {
- name: "Europe/San_Marino",
- gmtOffset: "GMT+01:00",
- value: "Europe/San_Marino",
- },
- {
- name: "Europe/Sarajevo",
- gmtOffset: "GMT+01:00",
- value: "Europe/Sarajevo",
- },
- {
- name: "Europe/Saratov",
- gmtOffset: "GMT+04:00",
- value: "Europe/Saratov",
- },
- {
- name: "Europe/Simferopol",
- gmtOffset: "GMT+03:00",
- value: "Europe/Simferopol",
- },
- {
- name: "Europe/Skopje",
- gmtOffset: "GMT+01:00",
- value: "Europe/Skopje",
- },
- {
- name: "Europe/Sofia",
- gmtOffset: "GMT+03:00",
- value: "Europe/Sofia",
- },
- {
- name: "Europe/Stockholm",
- gmtOffset: "GMT+01:00",
- value: "Europe/Stockholm",
- },
- {
- name: "Europe/Tallinn",
- gmtOffset: "GMT+03:00",
- value: "Europe/Tallinn",
- },
- {
- name: "Europe/Tirane",
- gmtOffset: "GMT+01:00",
- value: "Europe/Tirane",
- },
- {
- name: "Europe/Tiraspol",
- gmtOffset: "GMT+03:00",
- value: "Europe/Tiraspol",
- },
- {
- name: "Europe/Ulyanovsk",
- gmtOffset: "GMT+04:00",
- value: "Europe/Ulyanovsk",
- },
- {
- name: "Europe/Uzhgorod",
- gmtOffset: "GMT+03:00",
- value: "Europe/Uzhgorod",
- },
- {
- name: "Europe/Vaduz",
- gmtOffset: "GMT+01:00",
- value: "Europe/Vaduz",
- },
- {
- name: "Europe/Vatican",
- gmtOffset: "GMT+01:00",
- value: "Europe/Vatican",
- },
- {
- name: "Europe/Vienna",
- gmtOffset: "GMT+01:00",
- value: "Europe/Vienna",
- },
- {
- name: "Europe/Vilnius",
- gmtOffset: "GMT+03:00",
- value: "Europe/Vilnius",
- },
- {
- name: "Europe/Volgograd",
- gmtOffset: "GMT+03:00",
- value: "Europe/Volgograd",
- },
- {
- name: "Europe/Warsaw",
- gmtOffset: "GMT+01:00",
- value: "Europe/Warsaw",
- },
- {
- name: "Europe/Zagreb",
- gmtOffset: "GMT+01:00",
- value: "Europe/Zagreb",
- },
- {
- name: "Europe/Zaporozhye",
- gmtOffset: "GMT+03:00",
- value: "Europe/Zaporozhye",
- },
- {
- name: "Europe/Zurich",
- gmtOffset: "GMT+02:00",
- value: "Europe/Zurich",
- },
- {
- name: "GB",
- gmtOffset: "GMT+01:00",
- value: "GB",
- },
- {
- name: "GB-Eire",
- gmtOffset: "GMT+01:00",
- value: "GB-Eire",
- },
- {
- name: "GMT",
- gmtOffset: "GMT",
- value: "GMT",
- },
- {
- name: "GMT+0",
- gmtOffset: "GMT",
- value: "GMT+0",
- },
- {
- name: "GMT-0",
- gmtOffset: "GMT",
- value: "GMT-0",
- },
- {
- name: "GMT0",
- gmtOffset: "GMT",
- value: "GMT0",
- },
- {
- name: "Greenwich",
- gmtOffset: "GMT",
- value: "Greenwich",
- },
- {
- name: "HST",
- gmtOffset: "GMT-10:00",
- value: "HST",
- },
- {
- name: "Hongkong",
- gmtOffset: "GMT+08:00",
- value: "Hongkong",
- },
- {
- name: "Iceland",
- gmtOffset: "GMT",
- value: "Iceland",
- },
- {
- name: "Indian/Antananarivo",
- gmtOffset: "GMT+03:00",
- value: "Indian/Antananarivo",
- },
- {
- name: "Indian/Chagos",
- gmtOffset: "GMT+06:00",
- value: "Indian/Chagos",
- },
- {
- name: "Indian/Christmas",
- gmtOffset: "GMT+07:00",
- value: "Indian/Christmas",
- },
- {
- name: "Indian/Cocos",
- gmtOffset: "GMT+06:30",
- value: "Indian/Cocos",
- },
- {
- name: "Indian/Comoro",
- gmtOffset: "GMT+03:00",
- value: "Indian/Comoro",
- },
- {
- name: "Indian/Kerguelen",
- gmtOffset: "GMT+05:00",
- value: "Indian/Kerguelen",
- },
- {
- name: "Indian/Mahe",
- gmtOffset: "GMT+04:00",
- value: "Indian/Mahe",
- },
- {
- name: "Indian/Maldives",
- gmtOffset: "GMT+05:00",
- value: "Indian/Maldives",
- },
- {
- name: "Indian/Mauritius",
- gmtOffset: "GMT+04:00",
- value: "Indian/Mauritius",
- },
- {
- name: "Indian/Mayotte",
- gmtOffset: "GMT+03:00",
- value: "Indian/Mayotte",
- },
- {
- name: "Indian/Reunion",
- gmtOffset: "GMT+04:00",
- value: "Indian/Reunion",
- },
- {
- name: "Iran",
- gmtOffset: "GMT+03:30",
- value: "Iran",
- },
- {
- name: "Israel",
- gmtOffset: "GMT+03:00",
- value: "Israel",
- },
- {
- name: "Jamaica",
- gmtOffset: "GMT-05:00",
- value: "Jamaica",
- },
- {
- name: "Japan",
- gmtOffset: "GMT+09:00",
- value: "Japan",
- },
- {
- name: "Kwajalein",
- gmtOffset: "GMT+12:00",
- value: "Kwajalein",
- },
- {
- name: "Libya",
- gmtOffset: "GMT+02:00",
- value: "Libya",
- },
- {
- name: "MET",
- gmtOffset: "GMT+02:00",
- value: "MET",
- },
- {
- name: "MST",
- gmtOffset: "GMT-07:00",
- value: "MST",
- },
- {
- name: "MST7MDT",
- gmtOffset: "GMT-06:00",
- value: "MST7MDT",
- },
- {
- name: "Mexico/BajaNorte",
- gmtOffset: "GMT-07:00",
- value: "Mexico/BajaNorte",
- },
- {
- name: "Mexico/BajaSur",
- gmtOffset: "GMT-07:00",
- value: "Mexico/BajaSur",
- },
- {
- name: "Mexico/General",
- gmtOffset: "GMT-06:00",
- value: "Mexico/General",
- },
- {
- name: "NZ",
- gmtOffset: "GMT+12:00",
- value: "NZ",
- },
- {
- name: "NZ-CHAT",
- gmtOffset: "GMT+12:45",
- value: "NZ-CHAT",
- },
- {
- name: "Navajo",
- gmtOffset: "GMT-06:00",
- value: "Navajo",
- },
- {
- name: "PRC",
- gmtOffset: "GMT+08:00",
- value: "PRC",
- },
- {
- name: "PST8PDT",
- gmtOffset: "GMT-07:00",
- value: "PST8PDT",
- },
- {
- name: "Pacific/Apia",
- gmtOffset: "GMT+13:00",
- value: "Pacific/Apia",
- },
- {
- name: "Pacific/Auckland",
- gmtOffset: "GMT+12:00",
- value: "Pacific/Auckland",
- },
- {
- name: "Pacific/Bougainville",
- gmtOffset: "GMT+11:00",
- value: "Pacific/Bougainville",
- },
- {
- name: "Pacific/Chatham",
- gmtOffset: "GMT+12:45",
- value: "Pacific/Chatham",
- },
- {
- name: "Pacific/Chuuk",
- gmtOffset: "GMT+10:00",
- value: "Pacific/Chuuk",
- },
- {
- name: "Pacific/Easter",
- gmtOffset: "GMT-06:00",
- value: "Pacific/Easter",
- },
- {
- name: "Pacific/Efate",
- gmtOffset: "GMT+11:00",
- value: "Pacific/Efate",
- },
- {
- name: "Pacific/Enderbury",
- gmtOffset: "GMT+13:00",
- value: "Pacific/Enderbury",
- },
- {
- name: "Pacific/Fakaofo",
- gmtOffset: "GMT+13:00",
- value: "Pacific/Fakaofo",
- },
- {
- name: "Pacific/Fiji",
- gmtOffset: "GMT+12:00",
- value: "Pacific/Fiji",
- },
- {
- name: "Pacific/Funafuti",
- gmtOffset: "GMT+12:00",
- value: "Pacific/Funafuti",
- },
- {
- name: "Pacific/Galapagos",
- gmtOffset: "GMT-06:00",
- value: "Pacific/Galapagos",
- },
- {
- name: "Pacific/Gambier",
- gmtOffset: "GMT-09:00",
- value: "Pacific/Gambier",
- },
- {
- name: "Pacific/Guadalcanal",
- gmtOffset: "GMT+11:00",
- value: "Pacific/Guadalcanal",
- },
- {
- name: "Pacific/Guam",
- gmtOffset: "GMT+10:00",
- value: "Pacific/Guam",
- },
- {
- name: "Pacific/Honolulu",
- gmtOffset: "GMT-10:00",
- value: "Pacific/Honolulu",
- },
- {
- name: "Pacific/Johnston",
- gmtOffset: "GMT-10:00",
- value: "Pacific/Johnston",
- },
- {
- name: "Pacific/Kanton",
- gmtOffset: "GMT+13:00",
- value: "Pacific/Kanton",
- },
- {
- name: "Pacific/Kiritimati",
- gmtOffset: "GMT+14:00",
- value: "Pacific/Kiritimati",
- },
- {
- name: "Pacific/Kosrae",
- gmtOffset: "GMT+11:00",
- value: "Pacific/Kosrae",
- },
- {
- name: "Pacific/Kwajalein",
- gmtOffset: "GMT+12:00",
- value: "Pacific/Kwajalein",
- },
- {
- name: "Pacific/Majuro",
- gmtOffset: "GMT+12:00",
- value: "Pacific/Majuro",
- },
- {
- name: "Pacific/Marquesas",
- gmtOffset: "GMT-09:30",
- value: "Pacific/Marquesas",
- },
- {
- name: "Pacific/Midway",
- gmtOffset: "GMT-11:00",
- value: "Pacific/Midway",
- },
- {
- name: "Pacific/Nauru",
- gmtOffset: "GMT+12:00",
- value: "Pacific/Nauru",
- },
- {
- name: "Pacific/Niue",
- gmtOffset: "GMT-11:00",
- value: "Pacific/Niue",
- },
- {
- name: "Pacific/Norfolk",
- gmtOffset: "GMT+11:00",
- value: "Pacific/Norfolk",
- },
- {
- name: "Pacific/Noumea",
- gmtOffset: "GMT+11:00",
- value: "Pacific/Noumea",
- },
- {
- name: "Pacific/Pago_Pago",
- gmtOffset: "GMT-11:00",
- value: "Pacific/Pago_Pago",
- },
- {
- name: "Pacific/Palau",
- gmtOffset: "GMT+09:00",
- value: "Pacific/Palau",
- },
- {
- name: "Pacific/Pitcairn",
- gmtOffset: "GMT-08:00",
- value: "Pacific/Pitcairn",
- },
- {
- name: "Pacific/Pohnpei",
- gmtOffset: "GMT+11:00",
- value: "Pacific/Pohnpei",
- },
- {
- name: "Pacific/Ponape",
- gmtOffset: "GMT+11:00",
- value: "Pacific/Ponape",
- },
- {
- name: "Pacific/Port_Moresby",
- gmtOffset: "GMT+10:00",
- value: "Pacific/Port_Moresby",
- },
- {
- name: "Pacific/Rarotonga",
- gmtOffset: "GMT-10:00",
- value: "Pacific/Rarotonga",
- },
- {
- name: "Pacific/Saipan",
- gmtOffset: "GMT+10:00",
- value: "Pacific/Saipan",
- },
- {
- name: "Pacific/Samoa",
- gmtOffset: "GMT-11:00",
- value: "Pacific/Samoa",
- },
- {
- name: "Pacific/Tahiti",
- gmtOffset: "GMT-10:00",
- value: "Pacific/Tahiti",
- },
- {
- name: "Pacific/Tarawa",
- gmtOffset: "GMT+12:00",
- value: "Pacific/Tarawa",
- },
- {
- name: "Pacific/Tongatapu",
- gmtOffset: "GMT+13:00",
- value: "Pacific/Tongatapu",
- },
- {
- name: "Pacific/Truk",
- gmtOffset: "GMT+10:00",
- value: "Pacific/Truk",
- },
- {
- name: "Pacific/Wake",
- gmtOffset: "GMT+12:00",
- value: "Pacific/Wake",
- },
- {
- name: "Pacific/Wallis",
- gmtOffset: "GMT+12:00",
- value: "Pacific/Wallis",
- },
- {
- name: "Pacific/Yap",
- gmtOffset: "GMT+10:00",
- value: "Pacific/Yap",
- },
- {
- name: "Poland",
- gmtOffset: "GMT+02:00",
- value: "Poland",
- },
- {
- name: "Portugal",
- gmtOffset: "GMT+01:00",
- value: "Portugal",
- },
- {
- name: "ROC",
- gmtOffset: "GMT+08:00",
- value: "ROC",
- },
- {
- name: "ROK",
- gmtOffset: "GMT+09:00",
- value: "ROK",
- },
- {
- name: "Singapore",
- gmtOffset: "GMT+08:00",
- value: "Singapore",
- },
- {
- name: "Turkey",
- gmtOffset: "GMT+03:00",
- value: "Turkey",
- },
- {
- name: "UCT",
- gmtOffset: "GMT",
- value: "UCT",
- },
- {
- name: "US/Alaska",
- gmtOffset: "GMT-08:00",
- value: "US/Alaska",
- },
- {
- name: "US/Aleutian",
- gmtOffset: "GMT-09:00",
- value: "US/Aleutian",
- },
- {
- name: "US/Arizona",
- gmtOffset: "GMT-07:00",
- value: "US/Arizona",
- },
- {
- name: "US/Central",
- gmtOffset: "GMT-05:00",
- value: "US/Central",
- },
- {
- name: "US/East-Indiana",
- gmtOffset: "GMT-04:00",
- value: "US/East-Indiana",
- },
- {
- name: "US/Eastern",
- gmtOffset: "GMT-04:00",
- value: "US/Eastern",
- },
- {
- name: "US/Hawaii",
- gmtOffset: "GMT-10:00",
- value: "US/Hawaii",
- },
- {
- name: "US/Indiana-Starke",
- gmtOffset: "GMT-05:00",
- value: "US/Indiana-Starke",
- },
- {
- name: "US/Michigan",
- gmtOffset: "GMT-04:00",
- value: "US/Michigan",
- },
- {
- name: "US/Mountain",
- gmtOffset: "GMT-06:00",
- value: "US/Mountain",
- },
- {
- name: "US/Pacific",
- gmtOffset: "GMT-07:00",
- value: "US/Pacific",
- },
- {
- name: "US/Samoa",
- gmtOffset: "GMT-11:00",
- value: "US/Samoa",
- },
- {
- name: "UTC",
- gmtOffset: "GMT",
- value: "UTC",
- },
- {
- name: "Universal",
- gmtOffset: "GMT",
- value: "Universal",
- },
- {
- name: "W-SU",
- gmtOffset: "GMT+03:00",
- value: "W-SU",
- },
- {
- name: "WET",
- gmtOffset: "GMT+01:00",
- value: "WET",
- },
- {
- name: "Zulu",
- gmtOffset: "GMT",
- value: "Zulu",
- },
-];
diff --git a/web/core/constants/views.ts b/web/core/constants/views.ts
deleted file mode 100644
index a8e501db45..0000000000
--- a/web/core/constants/views.ts
+++ /dev/null
@@ -1,33 +0,0 @@
-import { Globe2, Lock, LucideIcon } from "lucide-react";
-import { TViewFiltersSortBy, TViewFiltersSortKey } from "@plane/types";
-
-export enum EViewAccess {
- PRIVATE,
- PUBLIC,
-}
-
-export const VIEW_ACCESS_SPECIFIERS: {
- key: EViewAccess;
- label: string;
- icon: LucideIcon;
-}[] = [
- { key: EViewAccess.PUBLIC, label: "Public", icon: Globe2 },
- { key: EViewAccess.PRIVATE, label: "Private", icon: Lock },
-];
-
-export const VIEW_SORTING_KEY_OPTIONS: {
- key: TViewFiltersSortKey;
- label: string;
-}[] = [
- { key: "name", label: "Name" },
- { key: "created_at", label: "Date created" },
- { key: "updated_at", label: "Date modified" },
-];
-
-export const VIEW_SORT_BY_OPTIONS: {
- key: TViewFiltersSortBy;
- label: string;
-}[] = [
- { key: "asc", label: "Ascending" },
- { key: "desc", label: "Descending" },
-];
diff --git a/web/core/constants/workspace.ts b/web/core/constants/workspace.ts
deleted file mode 100644
index 3b523ffb4e..0000000000
--- a/web/core/constants/workspace.ts
+++ /dev/null
@@ -1,106 +0,0 @@
-// types
-import { TStaticViewTypes } from "@plane/types";
-import { EUserPermissions } from "@/plane-web/constants/user-permissions";
-// services images
-import CSVLogo from "@/public/services/csv.svg";
-import ExcelLogo from "@/public/services/excel.svg";
-import GithubLogo from "@/public/services/github.png";
-import JiraLogo from "@/public/services/jira.svg";
-import JSONLogo from "@/public/services/json.svg";
-
-export const ROLE = {
- [EUserPermissions.GUEST]: "Guest",
- [EUserPermissions.MEMBER]: "Member",
- [EUserPermissions.ADMIN]: "Admin",
-};
-
-export const ROLE_DETAILS = {
- [EUserPermissions.GUEST]: {
- title: "Guest",
- description: "External members of organizations can be invited as guests.",
- },
- [EUserPermissions.MEMBER]: {
- title: "Member",
- description: "Ability to read, write, edit, and delete entities inside projects, cycles, and modules",
- },
- [EUserPermissions.ADMIN]: {
- title: "Admin",
- description: "All permissions set to true within the workspace.",
- },
-};
-
-export const USER_ROLES = [
- { value: "Product / Project Manager", label: "Product / Project Manager" },
- { value: "Development / Engineering", label: "Development / Engineering" },
- { value: "Founder / Executive", label: "Founder / Executive" },
- { value: "Freelancer / Consultant", label: "Freelancer / Consultant" },
- { value: "Marketing / Growth", label: "Marketing / Growth" },
- { value: "Sales / Business Development", label: "Sales / Business Development" },
- { value: "Support / Operations", label: "Support / Operations" },
- { value: "Student / Professor", label: "Student / Professor" },
- { value: "Human Resources", label: "Human Resources" },
- { value: "Other", label: "Other" },
-];
-
-export const IMPORTERS_LIST = [
- {
- provider: "github",
- type: "import",
- title: "GitHub",
- description: "Import issues from GitHub repositories and sync them.",
- logo: GithubLogo,
- },
- {
- provider: "jira",
- type: "import",
- title: "Jira",
- description: "Import issues and epics from Jira projects and epics.",
- logo: JiraLogo,
- },
-];
-
-export const EXPORTERS_LIST = [
- {
- provider: "csv",
- type: "export",
- title: "CSV",
- description: "Export issues to a CSV file.",
- logo: CSVLogo,
- },
- {
- provider: "xlsx",
- type: "export",
- title: "Excel",
- description: "Export issues to a Excel file.",
- logo: ExcelLogo,
- },
- {
- provider: "json",
- type: "export",
- title: "JSON",
- description: "Export issues to a JSON file.",
- logo: JSONLogo,
- },
-];
-
-export const DEFAULT_GLOBAL_VIEWS_LIST: {
- key: TStaticViewTypes;
- label: string;
-}[] = [
- {
- key: "all-issues",
- label: "All issues",
- },
- {
- key: "assigned",
- label: "Assigned",
- },
- {
- key: "created",
- label: "Created",
- },
- {
- key: "subscribed",
- label: "Subscribed",
- },
-];
diff --git a/web/core/hooks/use-group-dragndrop.ts b/web/core/hooks/use-group-dragndrop.ts
index 3bbcee8227..c98520c869 100644
--- a/web/core/hooks/use-group-dragndrop.ts
+++ b/web/core/hooks/use-group-dragndrop.ts
@@ -59,7 +59,7 @@ export const useGroupIssuesDragNDrop = (
const errorToastProps = {
type: TOAST_TYPE.ERROR,
title: "Error!",
- message: "Error while updating issue",
+ message: "Error while updating work item",
};
const moduleKey = ISSUE_FILTER_DEFAULT_DATA["module"];
const cycleKey = ISSUE_FILTER_DEFAULT_DATA["cycle"];
diff --git a/web/core/hooks/use-issues-actions.tsx b/web/core/hooks/use-issues-actions.tsx
index eeebb6746b..660627d004 100644
--- a/web/core/hooks/use-issues-actions.tsx
+++ b/web/core/hooks/use-issues-actions.tsx
@@ -1,7 +1,7 @@
import { useCallback, useMemo } from "react";
// types
import { useParams } from "next/navigation";
-import { EIssueFilterType, EIssuesStoreType } from "@plane/constants";
+import { EIssueFilterType, EIssuesStoreType, EDraftIssuePaginationType } from "@plane/constants";
import {
IIssueDisplayFilterOptions,
IIssueDisplayProperties,
@@ -13,7 +13,6 @@ import {
TLoader,
TProfileViews,
} from "@plane/types";
-import { EDraftIssuePaginationType } from "@/constants/workspace-drafts";
import { useTeamIssueActions, useTeamViewIssueActions } from "@/plane-web/helpers/issue-action-helper";
import { useIssues } from "./store";
diff --git a/web/core/hooks/use-resolved-asset-path.tsx b/web/core/hooks/use-resolved-asset-path.tsx
index f5543d2006..4233dc6469 100644
--- a/web/core/hooks/use-resolved-asset-path.tsx
+++ b/web/core/hooks/use-resolved-asset-path.tsx
@@ -4,14 +4,23 @@ type AssetPathConfig = {
basePath: string;
additionalPath?: string;
extension?: string;
+ includeThemeInPath?: boolean;
};
-export const useResolvedAssetPath = ({ basePath, additionalPath = "", extension = "webp" }: AssetPathConfig) => {
+export const useResolvedAssetPath = ({
+ basePath,
+ additionalPath = "",
+ extension = "webp",
+ includeThemeInPath = true,
+}: AssetPathConfig) => {
// hooks
const { resolvedTheme } = useTheme();
-
// resolved theme
const theme = resolvedTheme === "light" ? "light" : "dark";
+ if (!includeThemeInPath) {
+ return `${additionalPath && additionalPath !== "" ? `${basePath}${additionalPath}` : basePath}.${extension}`;
+ }
+
return `${additionalPath && additionalPath !== "" ? `${basePath}${additionalPath}` : basePath}-${theme}.${extension}`;
};
diff --git a/web/core/layouts/auth-layout/project-wrapper.tsx b/web/core/layouts/auth-layout/project-wrapper.tsx
index 8cf97f47a3..7ab6b6f605 100644
--- a/web/core/layouts/auth-layout/project-wrapper.tsx
+++ b/web/core/layouts/auth-layout/project-wrapper.tsx
@@ -4,14 +4,14 @@ import { FC, ReactNode, useEffect } from "react";
import { observer } from "mobx-react";
import { useParams } from "next/navigation";
import useSWR from "swr";
-
+// plane imports
+import { EUserPermissions, EUserPermissionsLevel } from "@plane/constants";
+import { useTranslation } from "@plane/i18n";
// components
import { JoinProject } from "@/components/auth-screens";
import { LogoSpinner } from "@/components/common";
-import { EmptyState } from "@/components/empty-state";
+import { ComicBoxButton, DetailedEmptyState } from "@/components/empty-state";
import { ETimeLineTypeType } from "@/components/gantt-chart/contexts";
-//constants
-import { EmptyStateType } from "@/constants/empty-state";
// hooks
import {
useCommandPalette,
@@ -26,11 +26,11 @@ import {
useProjectView,
useUserPermissions,
} from "@/hooks/store";
+import { useResolvedAssetPath } from "@/hooks/use-resolved-asset-path";
import { useTimeLineChart } from "@/hooks/use-timeline-chart";
// local
import { persistence } from "@/local-db/storage.sqlite";
// plane web constants
-import { EUserPermissions, EUserPermissionsLevel } from "@/plane-web/constants/user-permissions";
interface IProjectAuthWrapper {
children: ReactNode;
@@ -41,6 +41,8 @@ export const ProjectAuthWrapper: FC<IProjectAuthWrapper> = observer((props) => {
const { children, isLoading: isParentLoading = false } = props;
// router
const { workspaceSlug, projectId } = useParams();
+ // plane hooks
+ const { t } = useTranslation();
// store hooks
const { toggleCreateProjectModal } = useCommandPalette();
const { setTrackElement } = useEventTracker();
@@ -56,6 +58,10 @@ export const ProjectAuthWrapper: FC<IProjectAuthWrapper> = observer((props) => {
const { fetchProjectStates, fetchProjectStateTransitions } = useProjectState();
const { fetchProjectLabels } = useLabel();
const { getProjectEstimates } = useProjectEstimates();
+
+ // helper hooks
+ const resolvedPath = useResolvedAssetPath({ basePath: "/empty-state/onboarding/projects" });
+
// derived values
const projectExists = projectId ? getProjectById(projectId.toString()) : null;
const projectMemberInfo = projectUserInfo?.[workspaceSlug?.toString()]?.[projectId?.toString()];
@@ -151,6 +157,12 @@ export const ProjectAuthWrapper: FC<IProjectAuthWrapper> = observer((props) => {
{ revalidateIfStale: false, revalidateOnFocus: false }
);
+ // permissions
+ const canPerformEmptyStateActions = allowPermissions(
+ [EUserPermissions.ADMIN, EUserPermissions.MEMBER],
+ EUserPermissionsLevel.WORKSPACE
+ );
+
// check if the project member apis is loading
if (isParentLoading || (!projectMemberInfo && projectId && hasPermissionToCurrentProject === null))
return (
@@ -168,13 +180,22 @@ export const ProjectAuthWrapper: FC<IProjectAuthWrapper> = observer((props) => {
if (loader === "loaded" && !projectExists && projectId && !!hasPermissionToCurrentProject === false)
return (
<div className="grid h-screen place-items-center bg-custom-background-100">
- <EmptyState
- type={EmptyStateType.WORKSPACE_PROJECT_NOT_FOUND}
- layout="screen-detailed"
- primaryButtonOnClick={() => {
- setTrackElement("Projects page empty state");
- toggleCreateProjectModal(true);
- }}
+ <DetailedEmptyState
+ title={t("workspace_projects.empty_state.general.title")}
+ description={t("workspace_projects.empty_state.general.description")}
+ assetPath={resolvedPath}
+ customPrimaryButton={
+ <ComicBoxButton
+ label={t("workspace_projects.empty_state.general.primary_button.text")}
+ title={t("workspace_projects.empty_state.general.primary_button.comic.title")}
+ description={t("workspace_projects.empty_state.general.primary_button.comic.description")}
+ onClick={() => {
+ setTrackElement("Project empty state");
+ toggleCreateProjectModal(true);
+ }}
+ disabled={!canPerformEmptyStateActions}
+ />
+ }
/>
</div>
);
diff --git a/web/core/layouts/auth-layout/workspace-wrapper.tsx b/web/core/layouts/auth-layout/workspace-wrapper.tsx
index 15a48023ab..55a335cc71 100644
--- a/web/core/layouts/auth-layout/workspace-wrapper.tsx
+++ b/web/core/layouts/auth-layout/workspace-wrapper.tsx
@@ -10,6 +10,7 @@ import useSWR from "swr";
import useSWRImmutable from "swr/immutable";
// ui
import { LogOut } from "lucide-react";
+import { EUserPermissions, EUserPermissionsLevel } from "@plane/constants";
import { Button, setToast, TOAST_TYPE, Tooltip } from "@plane/ui";
// components
import { LogoSpinner } from "@/components/common";
@@ -20,7 +21,6 @@ import { usePlatformOS } from "@/hooks/use-platform-os";
// local
import { persistence } from "@/local-db/storage.sqlite";
// constants
-import { EUserPermissions, EUserPermissionsLevel } from "@/plane-web/constants/user-permissions";
// images
import PlaneBlackLogo from "@/public/plane-logos/black-horizontal-with-blue-logo.png";
import PlaneWhiteLogo from "@/public/plane-logos/white-horizontal-with-blue-logo.png";
diff --git a/web/core/lib/posthog-provider.tsx b/web/core/lib/posthog-provider.tsx
index 563cc2c8ed..af67c22ea9 100644
--- a/web/core/lib/posthog-provider.tsx
+++ b/web/core/lib/posthog-provider.tsx
@@ -7,7 +7,7 @@ import { useParams } from "next/navigation";
import posthog from "posthog-js";
import { PostHogProvider as PHProvider } from "posthog-js/react";
// constants
-import { GROUP_WORKSPACE } from "@/constants/event-tracker";
+import { GROUP_WORKSPACE } from "@plane/constants";
// helpers
import { getUserRole } from "@/helpers/user.helper";
// hooks
diff --git a/web/core/local-db/storage.sqlite.ts b/web/core/local-db/storage.sqlite.ts
index 155926ba7e..fb351add64 100644
--- a/web/core/local-db/storage.sqlite.ts
+++ b/web/core/local-db/storage.sqlite.ts
@@ -235,7 +235,7 @@ export class Storage {
if (syncedAt) {
await syncDeletesToLocal(this.workspaceSlug, projectId, { updated_at__gt: syncedAt });
}
- log("### Time taken to add issues", performance.now() - start);
+ log("### Time taken to add work items", performance.now() - start);
if (status === "loading") {
await createIndexes();
@@ -323,7 +323,7 @@ export class Storage {
const parsingStart = performance.now();
let issueResults = issuesRaw.map((issue: any) => formatLocalIssue(issue));
- log("#### Issue Results", issueResults.length);
+ log("#### Work item Results", issueResults.length);
const parsingEnd = performance.now();
diff --git a/web/core/services/inbox/inbox-issue.service.ts b/web/core/services/inbox/inbox-issue.service.ts
index 8837b6e74a..737065d700 100644
--- a/web/core/services/inbox/inbox-issue.service.ts
+++ b/web/core/services/inbox/inbox-issue.service.ts
@@ -1,5 +1,6 @@
// types
-import type { TInboxIssue, TIssue, TInboxIssueWithPagination, TInboxForm } from "@plane/types";
+import { TInboxIssue } from "@plane/constants";
+import type { TIssue, TInboxIssueWithPagination, TInboxForm } from "@plane/types";
import { API_BASE_URL } from "@/helpers/common.helper";
import { APIService } from "@/services/api.service";
// helpers
diff --git a/web/core/store/base-command-palette.store.ts b/web/core/store/base-command-palette.store.ts
index 3d999f9660..aaf1170c0e 100644
--- a/web/core/store/base-command-palette.store.ts
+++ b/web/core/store/base-command-palette.store.ts
@@ -1,9 +1,11 @@
import { observable, action, makeObservable } from "mobx";
-import { EIssuesStoreType } from "@plane/constants";
-// services
-import { TCreateModalStoreTypes } from "@/constants/issue";
-// types / constants
-import { DEFAULT_CREATE_PAGE_MODAL_DATA, EPageAccess, TCreatePageModal } from "@/constants/page";
+import {
+ EIssuesStoreType,
+ TCreateModalStoreTypes,
+ DEFAULT_CREATE_PAGE_MODAL_DATA,
+ EPageAccess,
+ TCreatePageModal,
+} from "@plane/constants";
export interface ModalData {
store: EIssuesStoreType;
diff --git a/web/core/store/event-tracker.store.ts b/web/core/store/event-tracker.store.ts
index 075c79d667..c6f68a0978 100644
--- a/web/core/store/event-tracker.store.ts
+++ b/web/core/store/event-tracker.store.ts
@@ -1,6 +1,6 @@
import { action, computed, makeObservable, observable } from "mobx";
import posthog from "posthog-js";
-// stores
+// store
import {
GROUP_WORKSPACE,
WORKSPACE_CREATED,
@@ -13,8 +13,7 @@ import {
getProjectStateEventPayload,
getWorkspaceEventPayload,
getPageEventPayload,
-} from "@/constants/event-tracker";
-// store
+} from "@plane/constants";
import { CoreRootStore } from "./root.store";
export interface IEventTrackerStore {
diff --git a/web/core/store/global-view.store.ts b/web/core/store/global-view.store.ts
index ff40a8fd33..c9840b4c8f 100644
--- a/web/core/store/global-view.store.ts
+++ b/web/core/store/global-view.store.ts
@@ -4,10 +4,9 @@ import isEqual from "lodash/isEqual";
import set from "lodash/set";
import { observable, action, makeObservable, runInAction, computed } from "mobx";
import { computedFn } from "mobx-utils";
-import { EIssueFilterType } from "@plane/constants";
+import { EIssueFilterType, EViewAccess } from "@plane/constants";
import { IIssueFilterOptions, IWorkspaceView } from "@plane/types";
// constants
-import { EViewAccess } from "@/constants/views";
// services
import { WorkspaceService } from "@/plane-web/services";
// store
diff --git a/web/core/store/inbox/inbox-issue.store.ts b/web/core/store/inbox/inbox-issue.store.ts
index 31bb5f591a..2f72575b14 100644
--- a/web/core/store/inbox/inbox-issue.store.ts
+++ b/web/core/store/inbox/inbox-issue.store.ts
@@ -1,7 +1,8 @@
import clone from "lodash/clone";
import set from "lodash/set";
import { makeObservable, observable, runInAction, action } from "mobx";
-import { TIssue, TInboxIssue, TInboxIssueStatus, TInboxDuplicateIssueDetails } from "@plane/types";
+import { TInboxIssue, TInboxIssueStatus } from "@plane/constants";
+import { TIssue, TInboxDuplicateIssueDetails } from "@plane/types";
// helpers
import { EInboxIssueStatus } from "@/helpers/inbox.helper";
// local db
diff --git a/web/core/store/inbox/project-inbox.store.ts b/web/core/store/inbox/project-inbox.store.ts
index 4dcb729773..55a48b6901 100644
--- a/web/core/store/inbox/project-inbox.store.ts
+++ b/web/core/store/inbox/project-inbox.store.ts
@@ -5,9 +5,8 @@ import set from "lodash/set";
import { action, computed, makeObservable, observable, runInAction } from "mobx";
import { computedFn } from "mobx-utils";
// types
+import { TInboxIssue, TInboxIssueCurrentTab } from "@plane/constants";
import {
- TInboxIssue,
- TInboxIssueCurrentTab,
TInboxIssueFilter,
TInboxIssueSorting,
TInboxIssuePaginationInfo,
@@ -410,7 +409,7 @@ export class ProjectInboxStore implements IProjectInboxStore {
console.error("Error fetching the intake issues", error);
this.loader = undefined;
this.error = {
- message: "Error fetching the intake issues please try again later.",
+ message: "Error fetching the intake work items please try again later.",
status: "init-error",
};
throw error;
@@ -450,7 +449,7 @@ export class ProjectInboxStore implements IProjectInboxStore {
} catch (error) {
console.error("Error fetching the intake issues", error);
this.error = {
- message: "Error fetching the paginated intake issues please try again later.",
+ message: "Error fetching the paginated intake work items please try again later.",
status: "pagination-error",
};
throw error;
diff --git a/web/core/store/issue/helpers/base-issues.store.ts b/web/core/store/issue/helpers/base-issues.store.ts
index 42c1c384c5..be120781dc 100644
--- a/web/core/store/issue/helpers/base-issues.store.ts
+++ b/web/core/store/issue/helpers/base-issues.store.ts
@@ -13,7 +13,7 @@ import update from "lodash/update";
import { action, computed, makeObservable, observable, runInAction } from "mobx";
import { computedFn } from "mobx-utils";
// plane constants
-import { EIssueLayoutTypes, ALL_ISSUES, EIssueServiceType } from "@plane/constants";
+import { EIssueLayoutTypes, ALL_ISSUES, EIssueServiceType, ISSUE_PRIORITIES } from "@plane/constants";
// types
import {
TIssue,
@@ -32,8 +32,6 @@ import {
} from "@plane/types";
// components
import { IBlockUpdateDependencyData } from "@/components/gantt-chart";
-// constants
-import { ISSUE_PRIORITIES } from "@/constants/issue";
// helpers
import { convertToISODateString } from "@/helpers/date-time.helper";
// local-db
@@ -800,7 +798,7 @@ export abstract class BaseIssuesStore implements IBaseIssuesStore {
runInAction(() => {
issueIds.forEach((issueId) => {
const issueBeforeUpdate = clone(this.rootIssueStore.issues.getIssueById(issueId));
- if (!issueBeforeUpdate) throw new Error("Issue not found");
+ if (!issueBeforeUpdate) throw new Error("Work item not found");
Object.keys(data.properties).forEach((key) => {
const property = key as keyof TBulkOperationsPayload["properties"];
const propertyValue = data.properties[property];
diff --git a/web/core/store/issue/helpers/issue-filter-helper.store.ts b/web/core/store/issue/helpers/issue-filter-helper.store.ts
index 118c73c3b5..c0c31d160f 100644
--- a/web/core/store/issue/helpers/issue-filter-helper.store.ts
+++ b/web/core/store/issue/helpers/issue-filter-helper.store.ts
@@ -6,6 +6,7 @@ import {
EIssueLayoutTypes,
EIssuesStoreType,
EIssueFilterType,
+ ENABLE_ISSUE_DEPENDENCIES,
} from "@plane/constants";
import {
IIssueDisplayFilterOptions,
@@ -22,8 +23,6 @@ import {
import { getComputedDisplayFilters, getComputedDisplayProperties } from "@/helpers/issue.helper";
// lib
import { storage } from "@/lib/local-storage";
-// plane-web
-import { ENABLE_ISSUE_DEPENDENCIES } from "@/plane-web/constants";
interface ILocalStoreIssueFilters {
key: EIssuesStoreType;
diff --git a/web/core/store/issue/issue-details/issue.store.ts b/web/core/store/issue/issue-details/issue.store.ts
index 37541cc120..5d7264a905 100644
--- a/web/core/store/issue/issue-details/issue.store.ts
+++ b/web/core/store/issue/issue-details/issue.store.ts
@@ -110,7 +110,7 @@ export class IssueStore implements IIssueStore {
issue = await this.issueDraftService.getDraftIssueById(workspaceSlug, projectId, issueId, query);
else issue = await this.issueService.retrieve(workspaceSlug, projectId, issueId, query);
- if (!issue) throw new Error("Issue not found");
+ if (!issue) throw new Error("Work item not found");
const issuePayload = this.addIssueToStore(issue);
this.localDBIssueDescription = undefined;
diff --git a/web/core/store/issue/issue_kanban_view.store.ts b/web/core/store/issue/issue_kanban_view.store.ts
index 79f88f8178..d0ba865a36 100644
--- a/web/core/store/issue/issue_kanban_view.store.ts
+++ b/web/core/store/issue/issue_kanban_view.store.ts
@@ -1,9 +1,9 @@
import { action, computed, makeObservable, observable } from "mobx";
import { computedFn } from "mobx-utils";
+import { DRAG_ALLOWED_GROUPS } from "@plane/constants";
// types
import { TIssueGroupByOptions } from "@plane/types";
// constants
-import { DRAG_ALLOWED_GROUPS } from "@/constants/issue";
// store
import { IssueRootStore } from "./root.store";
diff --git a/web/core/store/issue/workspace-draft/issue.store.ts b/web/core/store/issue/workspace-draft/issue.store.ts
index 9bae17451e..6783b89b13 100644
--- a/web/core/store/issue/workspace-draft/issue.store.ts
+++ b/web/core/store/issue/workspace-draft/issue.store.ts
@@ -5,6 +5,8 @@ import unset from "lodash/unset";
import update from "lodash/update";
import { action, computed, makeObservable, observable, runInAction } from "mobx";
import { computedFn } from "mobx-utils";
+// plane imports
+import { EDraftIssuePaginationType } from "@plane/constants";
import {
TWorkspaceDraftIssue,
TWorkspaceDraftPaginationInfo,
@@ -19,7 +21,6 @@ import {
TBulkOperationsPayload,
} from "@plane/types";
// constants
-import { EDraftIssuePaginationType } from "@/constants/workspace-drafts";
// helpers
import { getCurrentDateTimeInISO, convertToISODateString } from "@/helpers/date-time.helper";
// local-db
diff --git a/web/core/store/member/project-member.store.ts b/web/core/store/member/project-member.store.ts
index e61516182f..2e5bbe8637 100644
--- a/web/core/store/member/project-member.store.ts
+++ b/web/core/store/member/project-member.store.ts
@@ -5,9 +5,9 @@ import update from "lodash/update";
import { action, computed, makeObservable, observable, runInAction } from "mobx";
import { computedFn } from "mobx-utils";
// types
+import { EUserPermissions } from "@plane/constants";
import { IProjectBulkAddFormData, IProjectMember, IProjectMembership, IUserLite } from "@plane/types";
// plane-web constants
-import { EUserPermissions } from "@/plane-web/constants/user-permissions";
// services
import { ProjectMemberService } from "@/services/project";
// store
diff --git a/web/core/store/member/workspace-member.store.ts b/web/core/store/member/workspace-member.store.ts
index 2b8a8ede7b..e45c2d5c2c 100644
--- a/web/core/store/member/workspace-member.store.ts
+++ b/web/core/store/member/workspace-member.store.ts
@@ -3,9 +3,9 @@ import sortBy from "lodash/sortBy";
import { action, computed, makeObservable, observable, runInAction } from "mobx";
import { computedFn } from "mobx-utils";
// types
+import { EUserPermissions } from "@plane/constants";
import { IWorkspaceBulkInviteFormData, IWorkspaceMember, IWorkspaceMemberInvitation } from "@plane/types";
// plane-web constants
-import { EUserPermissions } from "@/plane-web/constants/user-permissions";
// services
import { WorkspaceService } from "@/plane-web/services";
// types
diff --git a/web/core/store/notifications/workspace-notifications.store.ts b/web/core/store/notifications/workspace-notifications.store.ts
index a0de7bc0f6..5e0edd8160 100644
--- a/web/core/store/notifications/workspace-notifications.store.ts
+++ b/web/core/store/notifications/workspace-notifications.store.ts
@@ -4,6 +4,8 @@ import set from "lodash/set";
import update from "lodash/update";
import { action, makeObservable, observable, runInAction } from "mobx";
import { computedFn } from "mobx-utils";
+// plane imports
+import { ENotificationTab, ENotificationLoader, ENotificationQueryParamType, TNotificationTab } from "@plane/constants";
import {
TNotification,
TNotificationFilter,
@@ -12,13 +14,6 @@ import {
TNotificationPaginatedInfoQueryParams,
TUnreadNotificationsCount,
} from "@plane/types";
-// constants
-import {
- ENotificationLoader,
- ENotificationQueryParamType,
- ENotificationTab,
- TNotificationTab,
-} from "@/constants/notification";
// helpers
import { convertToEpoch } from "@/helpers/date-time.helper";
// services
diff --git a/web/core/store/pages/base-page.ts b/web/core/store/pages/base-page.ts
index e7338ff3c5..e645d0f343 100644
--- a/web/core/store/pages/base-page.ts
+++ b/web/core/store/pages/base-page.ts
@@ -1,9 +1,9 @@
import set from "lodash/set";
import { action, computed, makeObservable, observable, reaction, runInAction } from "mobx";
+// constants
+import { EPageAccess } from "@plane/constants";
// types
import { TDocumentPayload, TLogoProps, TNameDescriptionLoader, TPage } from "@plane/types";
-// constants
-import { EPageAccess } from "@/constants/page";
// plane web store
import { RootStore } from "@/plane-web/store/root.store";
diff --git a/web/core/store/pages/project-page.store.ts b/web/core/store/pages/project-page.store.ts
index e962c0e8f5..ea4d96a102 100644
--- a/web/core/store/pages/project-page.store.ts
+++ b/web/core/store/pages/project-page.store.ts
@@ -3,11 +3,11 @@ import unset from "lodash/unset";
import { makeObservable, observable, runInAction, action, reaction, computed } from "mobx";
import { computedFn } from "mobx-utils";
// types
+import { EUserPermissions, EUserProjectRoles } from "@plane/constants";
import { TPage, TPageFilters, TPageNavigationTabs } from "@plane/types";
// helpers
import { filterPagesByPageType, getPageName, orderPages, shouldFilterPage } from "@/helpers/page.helper";
// plane web constants
-import { EUserPermissions } from "@/plane-web/constants";
// plane web store
import { RootStore } from "@/plane-web/store/root.store";
// services
@@ -20,7 +20,12 @@ type TLoader = "init-loader" | "mutation-loader" | undefined;
type TError = { title: string; description: string };
-export const ROLE_PERMISSIONS_TO_CREATE_PAGE = [EUserPermissions.ADMIN, EUserPermissions.MEMBER];
+export const ROLE_PERMISSIONS_TO_CREATE_PAGE = [
+ EUserPermissions.ADMIN,
+ EUserPermissions.MEMBER,
+ EUserProjectRoles.ADMIN,
+ EUserProjectRoles.MEMBER,
+];
export interface IProjectPageStore {
// observables
diff --git a/web/core/store/pages/project-page.ts b/web/core/store/pages/project-page.ts
index a7201687d0..71f33926a1 100644
--- a/web/core/store/pages/project-page.ts
+++ b/web/core/store/pages/project-page.ts
@@ -1,10 +1,8 @@
import { computed, makeObservable } from "mobx";
import { computedFn } from "mobx-utils";
-// types
-import { TPage } from "@plane/types";
// constants
-import { EPageAccess } from "@/constants/page";
-import { EUserPermissions } from "@/plane-web/constants/user-permissions";
+import { EPageAccess, EUserPermissions } from "@plane/constants";
+import { TPage } from "@plane/types";
// plane web store
import { RootStore } from "@/plane-web/store/root.store";
// services
diff --git a/web/core/store/project-view.store.ts b/web/core/store/project-view.store.ts
index b9f4e86568..d2e911aa66 100644
--- a/web/core/store/project-view.store.ts
+++ b/web/core/store/project-view.store.ts
@@ -2,9 +2,9 @@ import { set } from "lodash";
import { observable, action, makeObservable, runInAction, computed } from "mobx";
import { computedFn } from "mobx-utils";
// types
+import { EViewAccess } from "@plane/constants";
import { IProjectView, TPublishViewDetails, TPublishViewSettings, TViewFilters } from "@plane/types";
// constants
-import { EViewAccess } from "@/constants/views";
// helpers
import { getValidatedViewFilters, getViewName, orderViews, shouldFilterView } from "@/helpers/project-views.helpers";
// services
diff --git a/web/core/store/user/index.ts b/web/core/store/user/index.ts
index 7c0622ec46..5e60dabcf7 100644
--- a/web/core/store/user/index.ts
+++ b/web/core/store/user/index.ts
@@ -2,6 +2,7 @@ import cloneDeep from "lodash/cloneDeep";
import set from "lodash/set";
import { action, makeObservable, observable, runInAction, computed } from "mobx";
// types
+import { EUserPermissions } from "@plane/constants";
import { IUser } from "@plane/types";
import { TUserPermissions } from "@plane/types/src/enums";
// constants
@@ -9,7 +10,6 @@ import { TUserPermissions } from "@plane/types/src/enums";
import { API_BASE_URL } from "@/helpers/common.helper";
// local
import { persistence } from "@/local-db/storage.sqlite";
-import { EUserPermissions } from "@/plane-web/constants/user-permissions";
// services
import { AuthService } from "@/services/auth.service";
import { UserService } from "@/services/user.service";
diff --git a/web/core/store/user/permissions.store.ts b/web/core/store/user/permissions.store.ts
index ba1211b0f1..e636d39939 100644
--- a/web/core/store/user/permissions.store.ts
+++ b/web/core/store/user/permissions.store.ts
@@ -3,14 +3,16 @@ import unset from "lodash/unset";
import { action, makeObservable, observable, runInAction } from "mobx";
import { computedFn } from "mobx-utils";
// types
-import { IProjectMember, IUserProjectsRole, IWorkspaceMemberMe } from "@plane/types";
-// plane web types
import {
+ EUserProjectRoles,
+ EUserWorkspaceRoles,
EUserPermissions,
EUserPermissionsLevel,
TUserPermissions,
TUserPermissionsLevel,
-} from "@/plane-web/constants/user-permissions";
+} from "@plane/constants";
+import { IProjectMember, IUserProjectsRole, IWorkspaceMemberMe } from "@plane/types";
+// plane web types
// plane web services
import { WorkspaceService } from "@/plane-web/services/workspace.service";
// services
@@ -22,6 +24,8 @@ import { CoreRootStore } from "@/store/root.store";
// derived services
const workspaceService = new WorkspaceService();
+type ETempUserRole = TUserPermissions | EUserWorkspaceRoles | EUserProjectRoles; // TODO: Remove this once we have migrated user permissions to enums to plane constants package
+
export interface IUserPermissionStore {
loader: boolean;
// observables
@@ -36,7 +40,7 @@ export interface IUserPermissionStore {
projectId: string
) => TUserPermissions | undefined;
allowPermissions: (
- allowPermissions: TUserPermissions[],
+ allowPermissions: ETempUserRole[],
level: TUserPermissionsLevel,
workspaceSlug?: string,
projectId?: string,
@@ -115,7 +119,7 @@ export class UserPermissionStore implements IUserPermissionStore {
* @returns { boolean }
*/
allowPermissions = (
- allowPermissions: TUserPermissions[],
+ allowPermissions: ETempUserRole[],
level: TUserPermissionsLevel,
workspaceSlug?: string,
projectId?: string,
@@ -140,7 +144,7 @@ export class UserPermissionStore implements IUserPermissionStore {
this.projectPermissionsByWorkspaceSlugAndProjectId(workspaceSlug, projectId)) as EUserPermissions | undefined;
}
- if (currentUserRole && allowPermissions.includes(currentUserRole)) {
+ if (currentUserRole && allowPermissions.includes(currentUserRole as TUserPermissions)) {
if (onPermissionAllowed) {
return onPermissionAllowed();
} else {
diff --git a/web/ee/constants/issues.ts b/web/ee/constants/issues.ts
deleted file mode 100644
index 7be9f72e76..0000000000
--- a/web/ee/constants/issues.ts
+++ /dev/null
@@ -1 +0,0 @@
-export * from "ce/constants/issues";
diff --git a/web/ee/constants/user-permissions/index.ts b/web/ee/constants/user-permissions/index.ts
deleted file mode 100644
index 3647e0351b..0000000000
--- a/web/ee/constants/user-permissions/index.ts
+++ /dev/null
@@ -1 +0,0 @@
-export * from "ce/constants/user-permissions";
diff --git a/web/ee/constants/workspace.ts b/web/ee/constants/workspace.ts
deleted file mode 100644
index b295d6e021..0000000000
--- a/web/ee/constants/workspace.ts
+++ /dev/null
@@ -1 +0,0 @@
-export * from "ce/constants/workspace";
diff --git a/web/helpers/analytics.helper.ts b/web/helpers/analytics.helper.ts
index c8c2b91b42..cee4b40f35 100644
--- a/web/helpers/analytics.helper.ts
+++ b/web/helpers/analytics.helper.ts
@@ -1,11 +1,10 @@
// nivo
import { BarDatum } from "@nivo/bar";
// plane imports
-import { ANALYTICS_DATE_KEYS } from "@plane/constants";
+import { ANALYTICS_DATE_KEYS, STATE_GROUPS } from "@plane/constants";
import { IAnalyticsData, IAnalyticsParams, IAnalyticsResponse, TStateGroups } from "@plane/types";
// constants
import { MONTHS_LIST } from "@/constants/calendar";
-import { STATE_GROUPS } from "@/constants/state";
// helpers
import { addSpaceIfCamelCase, capitalizeFirstLetter, generateRandomColor } from "@/helpers/string.helper";
diff --git a/web/helpers/dashboard.helper.ts b/web/helpers/dashboard.helper.ts
index a2d6a8c28a..239c259e7a 100644
--- a/web/helpers/dashboard.helper.ts
+++ b/web/helpers/dashboard.helper.ts
@@ -1,9 +1,9 @@
import { endOfMonth, endOfWeek, endOfYear, startOfMonth, startOfWeek, startOfYear } from "date-fns";
// helpers
// types
+import { DURATION_FILTER_OPTIONS, EDurationFilters } from "@plane/constants";
import { TIssuesListTypes } from "@plane/types";
// constants
-import { DURATION_FILTER_OPTIONS, EDurationFilters } from "@/constants/dashboard";
import { renderFormattedDate, renderFormattedPayloadDate } from "./date-time.helper";
/**
diff --git a/web/helpers/distribution-update.helper.ts b/web/helpers/distribution-update.helper.ts
index c55543fee7..b640bf33cf 100644
--- a/web/helpers/distribution-update.helper.ts
+++ b/web/helpers/distribution-update.helper.ts
@@ -1,10 +1,10 @@
import { format } from "date-fns";
import get from "lodash/get";
import set from "lodash/set";
+// plane imports
+import { STATE_GROUPS, COMPLETED_STATE_GROUPS } from "@plane/constants";
// types
import { ICycle, IEstimatePoint, IModule, IState, TIssue } from "@plane/types";
-// constants
-import { STATE_GROUPS, COMPLETED_STATE_GROUPS } from "@/constants/state";
// helper
import { getDate } from "./date-time.helper";
diff --git a/web/helpers/issue.helper.ts b/web/helpers/issue.helper.ts
index dacfe87443..55239b5010 100644
--- a/web/helpers/issue.helper.ts
+++ b/web/helpers/issue.helper.ts
@@ -3,7 +3,7 @@ import isEmpty from "lodash/isEmpty";
import set from "lodash/set";
import { v4 as uuidv4 } from "uuid";
// plane constants
-import { EIssueLayoutTypes } from "@plane/constants";
+import { EIssueLayoutTypes, ISSUE_DISPLAY_FILTERS_BY_PAGE, STATE_GROUPS } from "@plane/constants";
// types
import {
IIssueDisplayFilterOptions,
@@ -18,9 +18,6 @@ import {
TUnGroupedIssues,
} from "@plane/types";
import { IGanttBlock } from "@/components/gantt-chart";
-// constants
-import { ISSUE_DISPLAY_FILTERS_BY_LAYOUT } from "@/constants/issue";
-import { STATE_GROUPS } from "@/constants/state";
// helpers
import { orderArrayBy } from "@/helpers/array.helper";
import { getDate } from "@/helpers/date-time.helper";
@@ -105,7 +102,7 @@ export const handleIssueQueryParamsByLayout = (
if (!layout) return null;
- const layoutOptions = ISSUE_DISPLAY_FILTERS_BY_LAYOUT[viewType][layout];
+ const layoutOptions = ISSUE_DISPLAY_FILTERS_BY_PAGE[viewType][layout];
// add filters query params
layoutOptions.filters.forEach((option) => {
@@ -214,10 +211,10 @@ export const formatTextList = (TextArray: string[]): string => {
}
};
-export const getDescriptionPlaceholder = (isFocused: boolean, description: string | undefined): string => {
+export const getDescriptionPlaceholderI18n = (isFocused: boolean, description: string | undefined): string => {
const isDescriptionEmpty = !description || description === "<p></p>" || description.trim() === "";
- if (!isDescriptionEmpty || isFocused) return "Press '/' for commands...";
- else return "Click to add description";
+ if (!isDescriptionEmpty || isFocused) return "common.press_for_commands";
+ else return "common.click_to_add_description";
};
export const issueCountBasedOnFilters = (
diff --git a/web/helpers/project.helper.ts b/web/helpers/project.helper.ts
index 4ee41e9dfc..e8bdb5514a 100644
--- a/web/helpers/project.helper.ts
+++ b/web/helpers/project.helper.ts
@@ -1,11 +1,11 @@
import sortBy from "lodash/sortBy";
// types
+import { EUserPermissions } from "@plane/constants";
import { TProjectDisplayFilters, TProjectFilters, TProjectOrderByOptions } from "@plane/types";
// helpers
import { getDate } from "@/helpers/date-time.helper";
import { satisfiesDateFilter } from "@/helpers/filter.helper";
// plane web constants
-import { EUserPermissions } from "@/plane-web/constants/user-permissions";
// types
import { TProject } from "@/plane-web/types";
diff --git a/web/helpers/state.helper.ts b/web/helpers/state.helper.ts
index 4e6c633ba8..7d0b9de38c 100644
--- a/web/helpers/state.helper.ts
+++ b/web/helpers/state.helper.ts
@@ -1,6 +1,7 @@
+// plane imports
+import { STATE_GROUPS, TDraggableData } from "@plane/constants";
// types
import { IState, IStateResponse } from "@plane/types";
-import { STATE_GROUPS, TDraggableData } from "@/constants/state";
export const orderStateGroups = (unorderedStateGroups: IStateResponse | undefined): IStateResponse | undefined => {
if (!unorderedStateGroups) return undefined;
diff --git a/web/helpers/tab-indices.helper.ts b/web/helpers/tab-indices.helper.ts
index 6b376e7e26..fcf7ad391f 100644
--- a/web/helpers/tab-indices.helper.ts
+++ b/web/helpers/tab-indices.helper.ts
@@ -1,4 +1,4 @@
-import { ETabIndices, TAB_INDEX_MAP } from "@/constants/tab-indices";
+import { ETabIndices, TAB_INDEX_MAP } from "@plane/constants";
export const getTabIndex = (type?: ETabIndices, isMobile: boolean = false) => {
const getIndex = (key: string) =>
diff --git a/web/helpers/user.helper.ts b/web/helpers/user.helper.ts
index 9f60b15b84..7d0637afb0 100644
--- a/web/helpers/user.helper.ts
+++ b/web/helpers/user.helper.ts
@@ -1,6 +1,6 @@
-import { EUserPermissions } from "@/plane-web/constants/user-permissions";
+import { EUserProjectRoles, EUserWorkspaceRoles, EUserPermissions } from "@plane/constants";
-export const getUserRole = (role: EUserPermissions) => {
+export const getUserRole = (role: EUserPermissions | EUserWorkspaceRoles | EUserProjectRoles) => {
switch (role) {
case EUserPermissions.GUEST:
return "GUEST";
diff --git a/web/helpers/views.helper.ts b/web/helpers/views.helper.ts
new file mode 100644
index 0000000000..8ce430aaf6
--- /dev/null
+++ b/web/helpers/views.helper.ts
@@ -0,0 +1,15 @@
+import { Globe2, Lock, LucideIcon } from "lucide-react";
+import { EViewAccess, VIEW_ACCESS_SPECIFIERS as VIEW_ACCESS_SPECIFIERS_CONSTANTS } from "@plane/constants";
+
+const VIEW_ACCESS_ICONS = {
+ [EViewAccess.PUBLIC]: Globe2,
+ [EViewAccess.PRIVATE]: Lock,
+};
+export const VIEW_ACCESS_SPECIFIERS: {
+ key: EViewAccess;
+ i18n_label: string;
+ icon: LucideIcon;
+}[] = VIEW_ACCESS_SPECIFIERS_CONSTANTS.map((option) => ({
+ ...option,
+ icon: VIEW_ACCESS_ICONS[option.key as keyof typeof VIEW_ACCESS_ICONS],
+}));