From 5fe893c7ce58176ecf9e5cf71a14a7f06affa917 Mon Sep 17 00:00:00 2001 From: Pau Costa Date: Sat, 28 Mar 2026 17:58:24 +0100 Subject: [PATCH] Add i18n integration and translations for improved localization - Extend English (`en.json`) and Spanish (`es-ES.json`) locale files with additional keys for buildings, bookings, reports, and user management. - Update Svelte components and pages to use `svelte-i18n` for dynamic translations across the app. - Refactor labels, titles, and error messages for multilingual support. - Improve date formatting based on locale preferences. --- .idea/workspace.xml | 29 +++-- .../src/lib/components/BookingModal.svelte | 35 +++--- .../src/lib/components/FloorplanViewer.svelte | 3 +- apps/web/src/lib/i18n/locales/en.json | 93 +++++++++++++++- apps/web/src/lib/i18n/locales/es-ES.json | 93 +++++++++++++++- .../web/src/routes/admin/reports/+page.svelte | 33 +++--- apps/web/src/routes/admin/users/+page.svelte | 69 ++++++------ apps/web/src/routes/dashboard/+page.svelte | 12 +-- .../dashboard/building/[id]/+page.svelte | 42 +++++--- .../routes/dashboard/my-bookings/+page.svelte | 100 ++++++++++++------ 10 files changed, 380 insertions(+), 129 deletions(-) diff --git a/.idea/workspace.xml b/.idea/workspace.xml index 9adc0b8..c5de508 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -4,13 +4,17 @@