Phase 1: Infrastructure setup - Install next-intl and create basic i18n structure

- Install next-intl package
- Create LanguageProvider hook with localStorage persistence
- Create IntlProvider component for next-intl integration
- Create Providers wrapper component
- Update layout.tsx to include providers and set default lang to 'es'
- Create initial translation files (common.json) for es, en, ca
- Fix pre-existing TypeScript errors in various pages

All tests passing, build successful.
This commit is contained in:
counterweight 2025-12-25 21:50:34 +01:00
parent 1a47b3643f
commit f7553df05d
Signed by: counterweight
GPG key ID: 883EDBAA726BD96C
15 changed files with 940 additions and 22 deletions

View file

@ -0,0 +1,15 @@
{
"loading": "Carregant...",
"error": "Error",
"save": "Desar",
"cancel": "Cancel·lar",
"back": "Enrere",
"continue": "Continuar",
"confirm": "Confirmar",
"delete": "Eliminar",
"edit": "Editar",
"close": "Tancar",
"yes": "Sí",
"no": "No",
"retry": "Tornar a intentar"
}

View file

@ -0,0 +1,15 @@
{
"loading": "Loading...",
"error": "Error",
"save": "Save",
"cancel": "Cancel",
"back": "Back",
"continue": "Continue",
"confirm": "Confirm",
"delete": "Delete",
"edit": "Edit",
"close": "Close",
"yes": "Yes",
"no": "No",
"retry": "Retry"
}

View file

@ -0,0 +1,15 @@
{
"loading": "Cargando...",
"error": "Error",
"save": "Guardar",
"cancel": "Cancelar",
"back": "Atrás",
"continue": "Continuar",
"confirm": "Confirmar",
"delete": "Eliminar",
"edit": "Editar",
"close": "Cerrar",
"yes": "Sí",
"no": "No",
"retry": "Reintentar"
}