From df581b965ac4866bbe51b92890b52aaa2c26bd42 Mon Sep 17 00:00:00 2001 From: shancds Date: Fri, 4 Jul 2025 11:10:16 +0530 Subject: [PATCH] feat(localization): add new translations for Kanban board sections - Introduced translations for "untitledSection" and "unmapped" in multiple languages including Albanian, German, English, Spanish, and Portuguese. - Updated KanbanGroup component to utilize these new translations for improved internationalization support. --- worklenz-frontend/public/locales/alb/kanban-board.json | 4 +++- worklenz-frontend/public/locales/de/kanban-board.json | 4 +++- worklenz-frontend/public/locales/en/kanban-board.json | 4 +++- worklenz-frontend/public/locales/es/kanban-board.json | 4 +++- worklenz-frontend/public/locales/pt/kanban-board.json | 4 +++- .../EnhancedKanbanBoardNativeDnD/KanbanGroup.tsx | 8 ++++---- 6 files changed, 19 insertions(+), 9 deletions(-) diff --git a/worklenz-frontend/public/locales/alb/kanban-board.json b/worklenz-frontend/public/locales/alb/kanban-board.json index e14f338b..c7306620 100644 --- a/worklenz-frontend/public/locales/alb/kanban-board.json +++ b/worklenz-frontend/public/locales/alb/kanban-board.json @@ -19,5 +19,7 @@ "archive": "Arkivo", "newTaskNamePlaceholder": "Shkruaj emrin e detyrës", - "newSubtaskNamePlaceholder": "Shkruaj emrin e nëndetyrës" + "newSubtaskNamePlaceholder": "Shkruaj emrin e nëndetyrës", + "untitledSection": "Seksion pa titull", + "unmapped": "Pa hartë" } diff --git a/worklenz-frontend/public/locales/de/kanban-board.json b/worklenz-frontend/public/locales/de/kanban-board.json index 47f8bef4..3c8e83ae 100644 --- a/worklenz-frontend/public/locales/de/kanban-board.json +++ b/worklenz-frontend/public/locales/de/kanban-board.json @@ -19,5 +19,7 @@ "archive": "Archivieren", "newTaskNamePlaceholder": "Aufgabenname eingeben", - "newSubtaskNamePlaceholder": "Unteraufgabenname eingeben" + "newSubtaskNamePlaceholder": "Unteraufgabenname eingeben", + "untitledSection": "Unbenannter Abschnitt", + "unmapped": "Nicht zugeordnet" } diff --git a/worklenz-frontend/public/locales/en/kanban-board.json b/worklenz-frontend/public/locales/en/kanban-board.json index 59b4b293..20db06d0 100644 --- a/worklenz-frontend/public/locales/en/kanban-board.json +++ b/worklenz-frontend/public/locales/en/kanban-board.json @@ -19,5 +19,7 @@ "archive": "Archive", "newTaskNamePlaceholder": "Write a task Name", - "newSubtaskNamePlaceholder": "Write a subtask Name" + "newSubtaskNamePlaceholder": "Write a subtask Name", + "untitledSection": "Untitled section", + "unmapped": "Unmapped" } diff --git a/worklenz-frontend/public/locales/es/kanban-board.json b/worklenz-frontend/public/locales/es/kanban-board.json index c48b6de7..b143d55f 100644 --- a/worklenz-frontend/public/locales/es/kanban-board.json +++ b/worklenz-frontend/public/locales/es/kanban-board.json @@ -19,5 +19,7 @@ "archive": "Archivar", "newTaskNamePlaceholder": "Escribe un nombre de tarea", - "newSubtaskNamePlaceholder": "Escribe un nombre de subtarea" + "newSubtaskNamePlaceholder": "Escribe un nombre de subtarea", + "untitledSection": "Sección sin título", + "unmapped": "Sin asignar" } diff --git a/worklenz-frontend/public/locales/pt/kanban-board.json b/worklenz-frontend/public/locales/pt/kanban-board.json index 806e7ae6..cb5df9e1 100644 --- a/worklenz-frontend/public/locales/pt/kanban-board.json +++ b/worklenz-frontend/public/locales/pt/kanban-board.json @@ -19,5 +19,7 @@ "archive": "Arquivar", "newTaskNamePlaceholder": "Escreva um nome de tarefa", - "newSubtaskNamePlaceholder": "Escreva um nome de subtarefa" + "newSubtaskNamePlaceholder": "Escreva um nome de subtarefa", + "untitledSection": "Seção sem título", + "unmapped": "Não mapeado" } diff --git a/worklenz-frontend/src/components/enhanced-kanban/EnhancedKanbanBoardNativeDnD/KanbanGroup.tsx b/worklenz-frontend/src/components/enhanced-kanban/EnhancedKanbanBoardNativeDnD/KanbanGroup.tsx index f20ac02a..190d5d84 100644 --- a/worklenz-frontend/src/components/enhanced-kanban/EnhancedKanbanBoardNativeDnD/KanbanGroup.tsx +++ b/worklenz-frontend/src/components/enhanced-kanban/EnhancedKanbanBoardNativeDnD/KanbanGroup.tsx @@ -125,7 +125,7 @@ const KanbanGroup: React.FC = memo(({ const handleBlur = async () => { setIsEditable(false); if (name === editName) return; - if (name === 'Untitled section') { + if (name === t('untitledSection')) { dispatch(fetchEnhancedKanbanGroups(projectId ?? '')); } @@ -249,7 +249,7 @@ const KanbanGroup: React.FC = memo(({ className="flex items-center gap-2 cursor-pointer" onClick={e => { e.stopPropagation(); - if ((isProjectManager || isOwnerOrAdmin) && group.name !== 'Unmapped') + if ((isProjectManager || isOwnerOrAdmin) && group.name !== t('unmapped')) setIsEditable(true); }} onMouseDown={e => { @@ -312,7 +312,7 @@ const KanbanGroup: React.FC = memo(({ - {(isOwnerOrAdmin || isProjectManager) && name !== 'Unmapped' && ( + {(isOwnerOrAdmin || isProjectManager) && name !== t('unmapped') && (