feat: soporte multi idioma en la web (infraestructura)
i18next + react-i18next con es-AR (fuente), es-419, pt-BR y en; el idioma sale del dispositivo (fallback a inglés) y se puede cambiar en Ajustes. La elección se guarda en localStorage y, para el profe, en users.locale. Las validaciones de shared pasan a claves y los errores de la API se traducen por code (con params para límites de plan y cupo). Migrados: layout, Ajustes, auth, PWA y lib/format. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -1,8 +1,9 @@
|
||||
import { CalendarDays, Home, User, Wallet } from 'lucide-react'
|
||||
import type { NavItem } from '../../components/layout/nav-items'
|
||||
import { CalendarDays, Home, User, Wallet, type LucideIcon } from 'lucide-react'
|
||||
|
||||
type StudentNavItem = { label: string; to: string; icon: LucideIcon }
|
||||
|
||||
// Bottom nav of the student app: the single source for StudentBottomNav.
|
||||
export const STUDENT_NAV_ITEMS: NavItem[] = [
|
||||
export const STUDENT_NAV_ITEMS: StudentNavItem[] = [
|
||||
{ label: 'Inicio', to: '/student', icon: Home },
|
||||
{ label: 'Clases', to: '/student/classes', icon: CalendarDays },
|
||||
{ label: 'Pagos', to: '/student/payments', icon: Wallet },
|
||||
|
||||
Reference in New Issue
Block a user