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:
@@ -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('')}
|
||||
|
||||
Reference in New Issue
Block a user