FEAT-13: singular-aware contract count text (1 Vertrag / n Vertraege)

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-06-06 07:34:25 +02:00
parent 9c3bcfc9f9
commit d8ccb451d9
2 changed files with 2 additions and 4 deletions

View File

@@ -58,9 +58,7 @@ export default function VertraegeListPage() {
<header className="page-head">
<div>
<h2>{t.title}</h2>
<p className="muted">
{totalCount} {t.countLabel}
</p>
<p className="muted">{t.countText(totalCount)}</p>
</div>
<div className="head-actions">
<Link to="/vertraege/neu" className="btn btn--primary">

View File

@@ -374,7 +374,7 @@ export const de = {
title: 'Abgabeverträge',
newButton: 'Neuer Vertrag',
empty: 'Noch keine Verträge — erstelle den ersten über „Neuer Vertrag“ oder den Abgabe-Bereich.',
countLabel: 'Verträge',
countText: (n: number) => (n === 1 ? '1 Vertrag' : `${n} Verträge`),
download: 'Herunterladen',
delete: 'Löschen',
confirmDelete: