From 71404d0ed879b550dfa25a8b1ef6e8096b9a6b64 Mon Sep 17 00:00:00 2001 From: Pau Costa Date: Sat, 28 Mar 2026 17:34:13 +0100 Subject: [PATCH] Add i18n support with English and Spanish translations - Introduce `svelte-i18n` for internationalization. - Add English (`en.json`) and Spanish (`es-ES.json`) locale files. - Implement `setupI18n` function for initializing and managing locales. - Update project dependencies to include `svelte-i18n`. --- .idea/workspace.xml | 31 +- apps/api/prisma/schema.prisma | 1 + .../dto/update-organization.dto.ts | 4 + apps/api/src/users/users.service.ts | 3 + apps/web/package-lock.json | 3445 +++++++++++++++++ apps/web/package.json | 3 +- .../src/lib/components/BookingModal.svelte | 32 +- apps/web/src/lib/i18n/index.ts | 11 + apps/web/src/lib/i18n/locales/en.json | 69 + apps/web/src/lib/i18n/locales/es-ES.json | 69 + apps/web/src/lib/stores/organization.ts | 1 + apps/web/src/routes/+layout.svelte | 28 +- .../routes/admin/organization/+page.svelte | 39 +- apps/web/src/routes/dashboard/+page.svelte | 5 +- .../routes/dashboard/my-bookings/+page.svelte | 25 +- .../src/routes/dashboard/profile/+page.svelte | 19 +- 16 files changed, 3725 insertions(+), 60 deletions(-) create mode 100644 apps/web/package-lock.json create mode 100644 apps/web/src/lib/i18n/index.ts create mode 100644 apps/web/src/lib/i18n/locales/en.json create mode 100644 apps/web/src/lib/i18n/locales/es-ES.json diff --git a/.idea/workspace.xml b/.idea/workspace.xml index 7f120a0..30c6221 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -4,18 +4,18 @@