Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions packages/constants/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,4 @@ export * from "./swr";
export * from "./user";
export * from "./workspace";
export * from "./stickies";
export * from "./profile";
35 changes: 13 additions & 22 deletions web/core/constants/profile.ts → packages/constants/src/profile.ts
Original file line number Diff line number Diff line change
@@ -1,56 +1,46 @@
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",
label: "Profile",
key: "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,
},
];

export const PROFILE_VIEWER_TAB = [
{
key: "summary",
route: "",
label: "Summary",
i18n_label: "profile.tabs.summary",
selected: "/",
},
];
Expand All @@ -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/",
},
];
40 changes: 40 additions & 0 deletions packages/i18n/src/locales/en/translations.json
Original file line number Diff line number Diff line change
Expand Up @@ -314,6 +314,7 @@
"remove_parent_issue": "Remove parent issue",
"add_parent": "Add parent",
"loading_members": "Loading members...",
"no_data_yet": "No Data yet",
"connections": "Connections",

"workspace_dashboard": {
Expand Down Expand Up @@ -437,6 +438,45 @@

"profile": {
"label": "Profile",
"page_label": "Your work",
"work": "Work",
"details": {
"joined_on": "Joined on",
"time_zone": "Timezone"
},
"stats": {
"workload": "Workload",
"overview": "Overview",
"created": "Issues created",
"assigned": "Issues assigned",
"subscribed": "Issues subscribed",
"state_distribution": {
"title": "Issues by state",
"empty": "Create issues to view the them by states in the graph for better analysis."
},
"priority_distribution": {
"title": "Issues by Priority",
"empty": "Create issues 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"
}
},
"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",
Expand Down
41 changes: 41 additions & 0 deletions packages/i18n/src/locales/es/translations.json
Original file line number Diff line number Diff line change
Expand Up @@ -313,6 +313,8 @@
"remove_parent_issue": "Eliminar problema padre",
"add_parent": "Agregar padre",
"loading_members": "Cargando miembros...",
"inbox": "bandeja de entrada",
"no_data_yet": "Sin datos aún",
"connections": "Conexiones",

"workspace_dashboard": {
Expand Down Expand Up @@ -436,6 +438,45 @@

"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": "Problemas creados",
"assigned": "Problemas asignados",
"subscribed": "Problemas suscritos",
"state_distribution": {
"title": "Problemas por estado",
"empty": "Crea problemas para verlos por estados en el gráfico para un mejor análisis."
},
"priority_distribution": {
"title": "Problemas por prioridad",
"empty": "Crea problemas 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"
}
},
"actions": {
"profile": "Perfil",
"security": "Seguridad",
"activity": "Actividad",
"appearance": "Apariencia",
"notifications": "Notificaciones"
},
"tabs": {
"summary": "Resumen",
"assigned": "Asignados",
"created": "Creados",
"subscribed": "Suscritos",
"activity": "Actividad"
},
"empty_state": {
"activity": {
"title": "Aún no hay actividades",
Expand Down
41 changes: 41 additions & 0 deletions packages/i18n/src/locales/fr/translations.json
Original file line number Diff line number Diff line change
Expand Up @@ -314,6 +314,8 @@
"remove_parent_issue": "Supprimer le problème parent",
"add_parent": "Ajouter un parent",
"loading_members": "Chargement des membres...",
"inbox": "Boîte de réception",
"no_data_yet": "Pas encore de données",
"connections": "Connexions",

"workspace_dashboard": {
Expand Down Expand Up @@ -437,6 +439,45 @@

"profile": {
"label": "Profil",
"page_label": "Votre travail",
"work": "Travail",
"details": {
"joined_on": "Inscrit le",
"time_zone": "Fuseau horaire"
},
"stats": {
"workload": "Charge de travail",
"overview": "Aperçu",
"created": "Problèmes créés",
"assigned": "Problèmes assignés",
"subscribed": "Problèmes suivis",
"state_distribution": {
"title": "Problèmes par état",
"empty": "Créez des problèmes pour les visualiser par état dans le graphique pour une meilleure analyse."
},
"priority_distribution": {
"title": "Problèmes par priorité",
"empty": "Créez des problèmes 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 entrées"
}
},
"actions": {
"profile": "Profil",
"security": "Sécurité",
"activity": "Activité",
"appearance": "Apparence",
"notifications": "Notifications"
},
"tabs": {
"summary": "Résumé",
"assigned": "Assignés",
"created": "Créés",
"subscribed": "Suivis",
"activity": "Activité"
},
"empty_state": {
"activity": {
"title": "Aucune activité pour le moment",
Expand Down
50 changes: 45 additions & 5 deletions packages/i18n/src/locales/ja/translations.json
Original file line number Diff line number Diff line change
Expand Up @@ -314,14 +314,15 @@
"remove_parent_issue": "親問題を削除",
"add_parent": "親問題を追加",
"loading_members": "メンバーを読み込んでいます...",
"no_data_yet": "まだデータがありません",
"connections": "接続",

"workspace_dashboard": {
"empty_state": {
"general": {
"title": "プロジェクト、アクティビティ、指標の概要",
"description": "Planeへようこそ!私たちはあなたを迎えることができて嬉しいです。最初のプロジェクトを作成してタスクを追跡し、このページが進捗を助けるスペースに変わります。管理者は、チームを前進させるための要素も見ることができます。",
"primary_button": {
"empty_state": {
"general": {
"title": "プロジェクト、アクティビティ、指標の概要",
"description": "Planeへようこそ!私たちはあなたを迎えることができて嬉しいです。最初のプロジェクトを作成してタスクを追跡し、このページが進捗を助けるスペースに変わります。管理者は、チームを前進させるための要素も見ることができます。",
"primary_button": {
"text": "最初のプロジェクトを作成",
"comic": {
"title": "すべてはPlaneでのプロジェクトから始まります",
Expand Down Expand Up @@ -437,6 +438,45 @@

"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": "データが見つかりませんでした。入力内容を確認してください"
}
},
"actions": {
"profile": "プロフィール",
"security": "セキュリティ",
"activity": "アクティビティ",
"appearance": "外観",
"notifications": "通知"
},
"tabs": {
"summary": "サマリー",
"assigned": "割り当て済み",
"created": "作成済み",
"subscribed": "購読中",
"activity": "アクティビティ"
},
"empty_state": {
"activity": {
"title": "まだアクティビティがありません",
Expand Down
44 changes: 43 additions & 1 deletion packages/i18n/src/locales/zh-CN/translations.json
Original file line number Diff line number Diff line change
Expand Up @@ -315,5 +315,47 @@
"remove_parent_issue": "移除父问题",
"add_parent": "添加父问题",
"loading_members": "正在加载成员...",
"inbox": "收件箱"
"inbox": "收件箱",
"no_data_yet": "暂无数据",
"user_profile": {
"title": "你的工作",
"work": "工作",
"details": {
"joined_on": "加入时间",
"time_zone": "时区"
},
"stats": {
"workload": "工作量",
"overview": "概述",
"created": "已创建问题",
"assigned": "已分配问题",
"subscribed": "已订阅问题",
"state_distribution": {
"title": "按状态显示的问题",
"empty": "创建问题以在图表中按状态查看它们,以便更好地分析。"
},
"priority_distribution": {
"title": "按优先级显示的问题",
"empty": "创建问题以在图表中按优先级查看它们,以便更好地分析。"
},
"recent_activity": {
"title": "最近活动",
"empty": "我们找不到数据。请查看您的输入"
}
},
"actions": {
"profile": "个人资料",
"security": "安全",
"activity": "活动",
"appearance": "外观",
"notifications": "通知"
},
"tabs": {
"summary": "摘要",
"assigned": "已分配",
"created": "已创建",
"subscribed": "已订阅",
"activity": "活动"
}
}
}
Loading
Loading