fix(i18n): translate category names in tasks and budget displays

Category group headers in tasks and bar chart labels / transaction meta
in budget were showing raw German database keys instead of going through
CATEGORY_LABELS() i18n mapping.

Closes #11
This commit is contained in:
Ulas
2026-04-04 14:08:41 +02:00
parent 7b13275882
commit 597c2602aa
4 changed files with 10 additions and 4 deletions
+2 -1
View File
@@ -226,10 +226,11 @@ function renderTaskGroups(tasks, groupMode) {
}
const groups = groupBy(tasks, groupMode);
const catLabelsMap = CATEGORY_LABELS();
return groups.map(([name, groupTasks]) => `
<div class="task-group">
<div class="task-group__header">
<span class="task-group__title">${name}</span>
<span class="task-group__title">${catLabelsMap[name] ?? name}</span>
<span class="task-group__count">${groupTasks.length}</span>
</div>
${groupTasks.map((t) => renderSwipeRow(t, renderTaskCard(t))).join('')}