feat(i18n): traducir Requiere atención y redactar las alertas en cada idioma

Las alertas de shared suman razon + valores para que la web las redacte;
etiqueta/detalle se mantienen en español para el backend.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Jose Selesan
2026-11-03 12:27:17 -03:00
parent 96661fb807
commit ecdbbbbca6
17 changed files with 382 additions and 45 deletions

View File

@@ -2,7 +2,7 @@ import { Link } from '@tanstack/react-router'
import { ChevronRight } from 'lucide-react'
import { useTranslation } from 'react-i18next'
import { AlertTag } from '../attention/AlertTag'
import type { FlaggedStudent } from '../attention/attention'
import { alertLabel, type FlaggedStudent } from '../attention/attention'
import { SeverityAvatar } from '../attention/SeverityAvatar'
const PREVIEW_LIMIT = 4
@@ -54,7 +54,7 @@ export function AttentionPreview({ students }: { students: FlaggedStudent[] }) {
<span className="block truncate text-sm text-secondary">{student.groupName}</span>
</span>
<span className="sr-only">{student.worst.gravedad === 'urgente' ? t('attentionPreview.urgent') : t('attentionPreview.watch')}</span>
<AlertTag severity={student.worst.gravedad}>{student.worst.etiqueta}</AlertTag>
<AlertTag severity={student.worst.gravedad}>{alertLabel(student.worst)}</AlertTag>
</Link>
</li>
))}