Skip to content

Commit 9093b41

Browse files
authored
fix: language support fo profile (#6461)
* fix: ln support fo profile * fix: merge changes * fix: merge changes
1 parent ad2dc67 commit 9093b41

File tree

18 files changed

+408
-157
lines changed

18 files changed

+408
-157
lines changed

packages/constants/src/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,4 @@ export * from "./swr";
1414
export * from "./user";
1515
export * from "./workspace";
1616
export * from "./stickies";
17+
export * from "./profile";
Original file line numberDiff line numberDiff line change
@@ -1,56 +1,46 @@
1-
import React from "react";
2-
// icons
3-
import { Activity, Bell, CircleUser, KeyRound, LucideProps, Settings2 } from "lucide-react";
4-
51
export const PROFILE_ACTION_LINKS: {
62
key: string;
7-
label: string;
3+
i18n_label: string;
84
href: string;
95
highlight: (pathname: string) => boolean;
10-
Icon: React.FC<LucideProps>;
116
}[] = [
127
{
13-
key: "profile.label",
14-
label: "Profile",
8+
key: "profile",
9+
i18n_label: "profile.actions.profile",
1510
href: `/profile`,
1611
highlight: (pathname: string) => pathname === "/profile/",
17-
Icon: CircleUser,
1812
},
1913
{
2014
key: "security",
21-
label: "Security",
15+
i18n_label: "profile.actions.security",
2216
href: `/profile/security`,
2317
highlight: (pathname: string) => pathname === "/profile/security/",
24-
Icon: KeyRound,
2518
},
2619
{
2720
key: "activity",
28-
label: "Activity",
21+
i18n_label: "profile.actions.activity",
2922
href: `/profile/activity`,
3023
highlight: (pathname: string) => pathname === "/profile/activity/",
31-
Icon: Activity,
3224
},
3325
{
3426
key: "appearance",
35-
label: "Appearance",
27+
i18n_label: "profile.actions.appearance",
3628
href: `/profile/appearance`,
3729
highlight: (pathname: string) => pathname.includes("/profile/appearance"),
38-
Icon: Settings2,
3930
},
4031
{
4132
key: "notifications",
42-
label: "Notifications",
33+
i18n_label: "profile.actions.notifications",
4334
href: `/profile/notifications`,
4435
highlight: (pathname: string) => pathname === "/profile/notifications/",
45-
Icon: Bell,
4636
},
4737
];
4838

4939
export const PROFILE_VIEWER_TAB = [
5040
{
5141
key: "summary",
5242
route: "",
53-
label: "Summary",
43+
i18n_label: "profile.tabs.summary",
5444
selected: "/",
5545
},
5646
];
@@ -59,24 +49,25 @@ export const PROFILE_ADMINS_TAB = [
5949
{
6050
key: "assigned",
6151
route: "assigned",
62-
label: "Assigned",
52+
i18n_label: "profile.tabs.assigned",
6353
selected: "/assigned/",
6454
},
6555
{
56+
key: "created",
6657
route: "created",
67-
label: "Created",
58+
i18n_label: "profile.tabs.created",
6859
selected: "/created/",
6960
},
7061
{
7162
key: "subscribed",
7263
route: "subscribed",
73-
label: "Subscribed",
64+
i18n_label: "profile.tabs.subscribed",
7465
selected: "/subscribed/",
7566
},
7667
{
7768
key: "activity",
7869
route: "activity",
79-
label: "Activity",
70+
i18n_label: "profile.tabs.activity",
8071
selected: "/activity/",
8172
},
8273
];

packages/i18n/src/locales/en/translations.json

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -314,6 +314,7 @@
314314
"remove_parent_issue": "Remove parent issue",
315315
"add_parent": "Add parent",
316316
"loading_members": "Loading members...",
317+
"no_data_yet": "No Data yet",
317318
"connections": "Connections",
318319

319320
"workspace_dashboard": {
@@ -437,6 +438,45 @@
437438

438439
"profile": {
439440
"label": "Profile",
441+
"page_label": "Your work",
442+
"work": "Work",
443+
"details": {
444+
"joined_on": "Joined on",
445+
"time_zone": "Timezone"
446+
},
447+
"stats": {
448+
"workload": "Workload",
449+
"overview": "Overview",
450+
"created": "Issues created",
451+
"assigned": "Issues assigned",
452+
"subscribed": "Issues subscribed",
453+
"state_distribution": {
454+
"title": "Issues by state",
455+
"empty": "Create issues to view the them by states in the graph for better analysis."
456+
},
457+
"priority_distribution": {
458+
"title": "Issues by Priority",
459+
"empty": "Create issues to view the them by priority in the graph for better analysis."
460+
},
461+
"recent_activity": {
462+
"title": "Recent activity",
463+
"empty": "We couldn't find data. Kindly view your inputs"
464+
}
465+
},
466+
"actions": {
467+
"profile": "Profile",
468+
"security": "Security",
469+
"activity": "Activity",
470+
"appearance": "Appearance",
471+
"notifications": "Notifications"
472+
},
473+
"tabs": {
474+
"summary": "Summary",
475+
"assigned": "Assigned",
476+
"created": "Created",
477+
"subscribed": "Subscribed",
478+
"activity": "Activity"
479+
},
440480
"empty_state": {
441481
"activity": {
442482
"title": "No activities yet",

packages/i18n/src/locales/es/translations.json

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -313,6 +313,8 @@
313313
"remove_parent_issue": "Eliminar problema padre",
314314
"add_parent": "Agregar padre",
315315
"loading_members": "Cargando miembros...",
316+
"inbox": "bandeja de entrada",
317+
"no_data_yet": "Sin datos aún",
316318
"connections": "Conexiones",
317319

318320
"workspace_dashboard": {
@@ -436,6 +438,45 @@
436438

437439
"profile": {
438440
"label": "Perfil",
441+
"page_label": "Tu trabajo",
442+
"work": "Trabajo",
443+
"details": {
444+
"joined_on": "Se unió el",
445+
"time_zone": "Zona horaria"
446+
},
447+
"stats": {
448+
"workload": "Carga de trabajo",
449+
"overview": "Resumen",
450+
"created": "Problemas creados",
451+
"assigned": "Problemas asignados",
452+
"subscribed": "Problemas suscritos",
453+
"state_distribution": {
454+
"title": "Problemas por estado",
455+
"empty": "Crea problemas para verlos por estados en el gráfico para un mejor análisis."
456+
},
457+
"priority_distribution": {
458+
"title": "Problemas por prioridad",
459+
"empty": "Crea problemas para verlos por prioridad en el gráfico para un mejor análisis."
460+
},
461+
"recent_activity": {
462+
"title": "Actividad reciente",
463+
"empty": "No pudimos encontrar datos. Por favor revisa tus entradas"
464+
}
465+
},
466+
"actions": {
467+
"profile": "Perfil",
468+
"security": "Seguridad",
469+
"activity": "Actividad",
470+
"appearance": "Apariencia",
471+
"notifications": "Notificaciones"
472+
},
473+
"tabs": {
474+
"summary": "Resumen",
475+
"assigned": "Asignados",
476+
"created": "Creados",
477+
"subscribed": "Suscritos",
478+
"activity": "Actividad"
479+
},
439480
"empty_state": {
440481
"activity": {
441482
"title": "Aún no hay actividades",

packages/i18n/src/locales/fr/translations.json

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -314,6 +314,8 @@
314314
"remove_parent_issue": "Supprimer le problème parent",
315315
"add_parent": "Ajouter un parent",
316316
"loading_members": "Chargement des membres...",
317+
"inbox": "Boîte de réception",
318+
"no_data_yet": "Pas encore de données",
317319
"connections": "Connexions",
318320

319321
"workspace_dashboard": {
@@ -437,6 +439,45 @@
437439

438440
"profile": {
439441
"label": "Profil",
442+
"page_label": "Votre travail",
443+
"work": "Travail",
444+
"details": {
445+
"joined_on": "Inscrit le",
446+
"time_zone": "Fuseau horaire"
447+
},
448+
"stats": {
449+
"workload": "Charge de travail",
450+
"overview": "Aperçu",
451+
"created": "Problèmes créés",
452+
"assigned": "Problèmes assignés",
453+
"subscribed": "Problèmes suivis",
454+
"state_distribution": {
455+
"title": "Problèmes par état",
456+
"empty": "Créez des problèmes pour les visualiser par état dans le graphique pour une meilleure analyse."
457+
},
458+
"priority_distribution": {
459+
"title": "Problèmes par priorité",
460+
"empty": "Créez des problèmes pour les visualiser par priorité dans le graphique pour une meilleure analyse."
461+
},
462+
"recent_activity": {
463+
"title": "Activité récente",
464+
"empty": "Nous n'avons pas trouvé de données. Veuillez consulter vos entrées"
465+
}
466+
},
467+
"actions": {
468+
"profile": "Profil",
469+
"security": "Sécurité",
470+
"activity": "Activité",
471+
"appearance": "Apparence",
472+
"notifications": "Notifications"
473+
},
474+
"tabs": {
475+
"summary": "Résumé",
476+
"assigned": "Assignés",
477+
"created": "Créés",
478+
"subscribed": "Suivis",
479+
"activity": "Activité"
480+
},
440481
"empty_state": {
441482
"activity": {
442483
"title": "Aucune activité pour le moment",

packages/i18n/src/locales/ja/translations.json

Lines changed: 45 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -314,14 +314,15 @@
314314
"remove_parent_issue": "親問題を削除",
315315
"add_parent": "親問題を追加",
316316
"loading_members": "メンバーを読み込んでいます...",
317+
"no_data_yet": "まだデータがありません",
317318
"connections": "接続",
318319

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

438439
"profile": {
439440
"label": "プロフィール",
441+
"page_label": "あなたの作業",
442+
"work": "作業",
443+
"details": {
444+
"joined_on": "参加日",
445+
"time_zone": "タイムゾーン"
446+
},
447+
"stats": {
448+
"workload": "作業負荷",
449+
"overview": "概要",
450+
"created": "作成した課題",
451+
"assigned": "割り当てられた課題",
452+
"subscribed": "購読中の課題",
453+
"state_distribution": {
454+
"title": "状態別の課題",
455+
"empty": "より良い分析のために、グラフで状態別に表示する課題を作成してください。"
456+
},
457+
"priority_distribution": {
458+
"title": "優先度別の課題",
459+
"empty": "より良い分析のために、グラフで優先度別に表示する課題を作成してください。"
460+
},
461+
"recent_activity": {
462+
"title": "最近の活動",
463+
"empty": "データが見つかりませんでした。入力内容を確認してください"
464+
}
465+
},
466+
"actions": {
467+
"profile": "プロフィール",
468+
"security": "セキュリティ",
469+
"activity": "アクティビティ",
470+
"appearance": "外観",
471+
"notifications": "通知"
472+
},
473+
"tabs": {
474+
"summary": "サマリー",
475+
"assigned": "割り当て済み",
476+
"created": "作成済み",
477+
"subscribed": "購読中",
478+
"activity": "アクティビティ"
479+
},
440480
"empty_state": {
441481
"activity": {
442482
"title": "まだアクティビティがありません",

packages/i18n/src/locales/zh-CN/translations.json

Lines changed: 43 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -315,5 +315,47 @@
315315
"remove_parent_issue": "移除父问题",
316316
"add_parent": "添加父问题",
317317
"loading_members": "正在加载成员...",
318-
"inbox": "收件箱"
318+
"inbox": "收件箱",
319+
"no_data_yet": "暂无数据",
320+
"user_profile": {
321+
"title": "你的工作",
322+
"work": "工作",
323+
"details": {
324+
"joined_on": "加入时间",
325+
"time_zone": "时区"
326+
},
327+
"stats": {
328+
"workload": "工作量",
329+
"overview": "概述",
330+
"created": "已创建问题",
331+
"assigned": "已分配问题",
332+
"subscribed": "已订阅问题",
333+
"state_distribution": {
334+
"title": "按状态显示的问题",
335+
"empty": "创建问题以在图表中按状态查看它们,以便更好地分析。"
336+
},
337+
"priority_distribution": {
338+
"title": "按优先级显示的问题",
339+
"empty": "创建问题以在图表中按优先级查看它们,以便更好地分析。"
340+
},
341+
"recent_activity": {
342+
"title": "最近活动",
343+
"empty": "我们找不到数据。请查看您的输入"
344+
}
345+
},
346+
"actions": {
347+
"profile": "个人资料",
348+
"security": "安全",
349+
"activity": "活动",
350+
"appearance": "外观",
351+
"notifications": "通知"
352+
},
353+
"tabs": {
354+
"summary": "摘要",
355+
"assigned": "已分配",
356+
"created": "已创建",
357+
"subscribed": "已订阅",
358+
"activity": "活动"
359+
}
360+
}
319361
}

0 commit comments

Comments
 (0)