fix(frontend): translate status badge labels via i18n helpers

StatusBadge and SimulationStatusBadge now call engagementStatusLabel() /
simulationStatusLabel() from @/i18n/status.ts instead of hardcoded English
strings. Tests updated to expect French labels (Planifié/Actif/Clôturé,
En attente/En cours/Révision requise/Terminé).

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Knacky
2026-06-22 00:08:45 +02:00
parent 2931e4aaf9
commit 6648d1cc2e
4 changed files with 15 additions and 20 deletions

View File

@@ -4,10 +4,10 @@ import { SimulationStatusBadge } from '@/components/SimulationStatusBadge';
import type { SimulationStatus } from '@/api/types';
const CASES: { status: SimulationStatus; label: string }[] = [
{ status: 'pending', label: 'Pending' },
{ status: 'in_progress', label: 'In progress' },
{ status: 'review_required', label: 'Review required' },
{ status: 'done', label: 'Done' },
{ status: 'pending', label: 'En attente' },
{ status: 'in_progress', label: 'En cours' },
{ status: 'review_required', label: 'Révision requise' },
{ status: 'done', label: 'Terminé' },
];
describe('SimulationStatusBadge', () => {