From 753230c2e6fd117b34151595965ec606994bd3c5 Mon Sep 17 00:00:00 2001 From: Till JS Date: Mon, 27 Apr 2026 12:49:46 +0200 Subject: [PATCH] =?UTF-8?q?i18n(todo/settings):=20translate=20+page.svelte?= =?UTF-8?q?=20via=20$=5F()=20=E2=80=94=20all=206=20sections=20+=20reset?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Page , header h1, back-link aria - Task Behavior: section heading, default-priority label + 4 options (priorityLow/Medium/High/Urgent), default-due-time label, auto-archive label + description - View & Display: section heading, default-view label + 4 options (Inbox/Heute/Anstehend/Kanban), 4 toggle labels (Kompaktmodus/Aufgabenzahl/Teilaufgaben-Fortschritt/Nach Projekt gruppieren) with descriptions; converted 'as size' to 'as const as size' to silence Svelte 5 narrowing - Kanban Board: section heading, Kartengröße label + 3 size labels (Kompakt/Normal/Groß), Labels-on-cards label, WIP-limit label + description - Smart Duration: section heading, smartDurationEnabled label + description, defaultTaskDuration label - Notifications: section heading, defaultReminder label + 6 options (Keine/5/15/30/1h/1d), 2 toggle labels (Tägliche Zusammenfassung/Überfällig) - Productivity: section heading, 4 toggle labels with descriptions (Fokus-Modus/Pomodoro/Streak/Immersiver Modus), Tagesziel label - Reset button + 'Alle Todo-Einstellungen zurücksetzen?' confirm Baselines: hardcoded 1205 → 1192 (13 cleared); missing-keys baseline unchanged. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> --- .../routes/(app)/todo/settings/+page.svelte | 94 ++++++++++--------- scripts/i18n-hardcoded-baseline.json | 1 - 2 files changed, 51 insertions(+), 44 deletions(-) diff --git a/apps/mana/apps/web/src/routes/(app)/todo/settings/+page.svelte b/apps/mana/apps/web/src/routes/(app)/todo/settings/+page.svelte index 868482863..771cf055e 100644 --- a/apps/mana/apps/web/src/routes/(app)/todo/settings/+page.svelte +++ b/apps/mana/apps/web/src/routes/(app)/todo/settings/+page.svelte @@ -7,6 +7,7 @@ import type { TaskPriority } from '$lib/modules/todo/types'; import { ArrowLeft } from '@mana/shared-icons'; import { RoutePage } from '$lib/components/shell'; + import { _ } from 'svelte-i18n'; function toggle(key: string) { todoSettings.update({ [key]: !todoSettings.settings[key] }); @@ -14,7 +15,7 @@ </script> <svelte:head> - <title>Todo Einstellungen - Mana + {$_('todo.settings.pageTitle')} @@ -22,39 +23,40 @@
-

Todo Einstellungen

+

{$_('todo.settings.title')}

- Aufgaben-Verhalten + {$_('todo.settings.taskBehavior')}

- +
- +
- +

- Erledigte Aufgaben nach X Tagen archivieren + {$_('todo.settings.descAutoArchive')}

- Ansicht & Darstellung + {$_('todo.settings.viewDisplay')}

- +
- {#each [{ key: 'compactMode', label: 'Kompaktmodus', desc: 'Weniger Abstand zwischen Aufgaben' }, { key: 'showTaskCounts', label: 'Aufgabenzahl', desc: 'Anzahl der Aufgaben anzeigen' }, { key: 'showSubtaskProgress', label: 'Teilaufgaben-Fortschritt', desc: 'Fortschritt der Subtasks anzeigen' }, { key: 'groupByProject', label: 'Nach Projekt gruppieren', desc: 'Aufgaben nach Projekt gruppieren' }] as toggle_item} + {#each [{ key: 'compactMode', label: $_('todo.settings.compactMode'), desc: $_('todo.settings.descCompactMode') }, { key: 'showTaskCounts', label: $_('todo.settings.showTaskCounts'), desc: $_('todo.settings.descShowTaskCounts') }, { key: 'showSubtaskProgress', label: $_('todo.settings.showSubtaskProgress'), desc: $_('todo.settings.descShowSubtaskProgress') }, { key: 'groupByProject', label: $_('todo.settings.groupByProject'), desc: $_('todo.settings.descGroupByProject') }] as toggle_item}
@@ -144,14 +146,14 @@

- Kanban Board + {$_('todo.settings.kanbanSettings')}

- +
- {#each ['compact', 'normal', 'large'] as size} + {#each ['compact', 'normal', 'large'] as const as size} // svelte-ignore a11y_consider_explicit_label {/each} @@ -168,7 +174,7 @@
- +
diff --git a/scripts/i18n-hardcoded-baseline.json b/scripts/i18n-hardcoded-baseline.json index dd610f43f..38abe617b 100644 --- a/scripts/i18n-hardcoded-baseline.json +++ b/scripts/i18n-hardcoded-baseline.json @@ -327,7 +327,6 @@ "apps/mana/apps/web/src/routes/(app)/times/clock/+page.svelte": 1, "apps/mana/apps/web/src/routes/(app)/times/projects/[id]/+page.svelte": 3, "apps/mana/apps/web/src/routes/(app)/todo/+page.svelte": 1, - "apps/mana/apps/web/src/routes/(app)/todo/settings/+page.svelte": 13, "apps/mana/apps/web/src/routes/(app)/wetter/+page.svelte": 2, "apps/mana/apps/web/src/routes/(auth)/reset-password/+page.svelte": 1, "apps/mana/apps/web/src/routes/+error.svelte": 1,