fix(14-03): translate FollowUpWidget to Italian (CRM-10)

- Replace 6 hardcoded English strings with Italian equivalents
- Remove pluralization ternary (Italian "lead" is invariant)
This commit is contained in:
2026-06-14 12:38:12 +02:00
parent f5309345b9
commit 272e363f4d
@@ -12,34 +12,33 @@ export async function FollowUpWidget() {
<CardHeader> <CardHeader>
<CardTitle className="flex items-center gap-2"> <CardTitle className="flex items-center gap-2">
<AlertCircle className="h-5 w-5 text-orange-600" /> <AlertCircle className="h-5 w-5 text-orange-600" />
Require Follow-up Richiedi Follow-up
</CardTitle> </CardTitle>
</CardHeader> </CardHeader>
<CardContent className="space-y-4"> <CardContent className="space-y-4">
{leadsNeedingFollowUp.length > 0 ? ( {leadsNeedingFollowUp.length > 0 ? (
<> <>
<p className="text-lg font-bold text-orange-900"> <p className="text-lg font-bold text-orange-900">
{leadsNeedingFollowUp.length} lead{leadsNeedingFollowUp.length !== 1 ? "s" : ""}{" "} {leadsNeedingFollowUp.length} lead da contattare
to contact
</p> </p>
<ul className="space-y-2 text-sm"> <ul className="space-y-2 text-sm">
{leadsNeedingFollowUp.slice(0, 3).map((lead) => ( {leadsNeedingFollowUp.slice(0, 3).map((lead) => (
<li key={lead.id} className="flex justify-between items-center"> <li key={lead.id} className="flex justify-between items-center">
<span>{lead.name}</span> <span>{lead.name}</span>
<Button variant="ghost" size="sm" asChild> <Button variant="ghost" size="sm" asChild>
<Link href={`/admin/leads/${lead.id}`}>Contact</Link> <Link href={`/admin/leads/${lead.id}`}>Contatta</Link>
</Button> </Button>
</li> </li>
))} ))}
</ul> </ul>
{leadsNeedingFollowUp.length > 3 && ( {leadsNeedingFollowUp.length > 3 && (
<Button variant="outline" className="w-full" asChild> <Button variant="outline" className="w-full" asChild>
<Link href="/admin/leads">View All ({leadsNeedingFollowUp.length})</Link> <Link href="/admin/leads">Vedi Tutto ({leadsNeedingFollowUp.length})</Link>
</Button> </Button>
)} )}
</> </>
) : ( ) : (
<p className="text-gray-600 text-sm">All leads are up to date!</p> <p className="text-gray-600 text-sm">Tutti i lead sono aggiornati!</p>
)} )}
</CardContent> </CardContent>
</Card> </Card>