feat(i18n): traducir la app de alumnos (con selector de idioma en Perfil)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -6,9 +6,11 @@ import { PaymentReviewBanner } from './PaymentReviewBanner'
|
||||
import { useStudentApp } from './StudentAppProvider'
|
||||
import { TeacherNoticeCard } from './TeacherNoticeCard'
|
||||
import { WeekClassesList } from './WeekClassesList'
|
||||
import { useTranslation } from 'react-i18next'
|
||||
|
||||
export function StudentHomeView() {
|
||||
const { student, classes, classesPending, fees } = useStudentApp()
|
||||
const { t } = useTranslation(['student', 'common'])
|
||||
if (!student) return null
|
||||
|
||||
const allClasses = classes?.classes ?? []
|
||||
@@ -18,12 +20,12 @@ export function StudentHomeView() {
|
||||
|
||||
return (
|
||||
<div className="space-y-6">
|
||||
<h1 className="text-2xl font-bold text-primary">Hola, {firstName(student.fullName)}</h1>
|
||||
<h1 className="text-2xl font-bold text-primary">{t('home.greeting', { name: firstName(student.fullName) })}</h1>
|
||||
|
||||
{fees ? <PaymentReviewBanner reports={fees.reports} /> : null}
|
||||
|
||||
{classesPending ? (
|
||||
<div className="flex justify-center py-8" role="status" aria-label="Cargando clases">
|
||||
<div className="flex justify-center py-8" role="status" aria-label={t('loadingClasses')}>
|
||||
<Loader2 className="size-6 animate-spin text-accent" aria-hidden="true" />
|
||||
</div>
|
||||
) : nextClass && classes ? (
|
||||
|
||||
Reference in New Issue
Block a user