From 8d1eae9dfc9a3a2a8e63b47a6c9aa2890b45ed83 Mon Sep 17 00:00:00 2001 From: Yurier Herrera Date: Fri, 25 Apr 2025 09:37:37 -0400 Subject: [PATCH 1/3] =?UTF-8?q?feat(i18n):=20add=20internationalization=20?= =?UTF-8?q?support=20with=20English,=20Spanish=20and=20Fran=C3=A7ais=20loc?= =?UTF-8?q?ales?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Implement i18n using @nuxtjs/i18n module to support multiple languages. Add English Spanish and Fran莽ais locale files with translations for all UI components, pages, and settings. Update components and pages to use the `t` function for dynamic text rendering based on the selected locale. Configure the i18n module in nuxt.config.ts with default locale set to English and no prefix strategy. Ensure all text elements are localized for a consistent multilingual user experience. --- app/app.vue | 11 +- app/components/NotificationsSlideover.vue | 9 +- app/components/TeamsMenu.vue | 6 +- app/components/UserMenu.vue | 91 +- app/components/customers/AddModal.vue | 22 +- app/components/customers/DeleteModal.vue | 9 +- app/components/home/HomeChart.client.vue | 3 +- app/components/home/HomeChart.server.vue | 6 +- app/components/home/HomeDateRangePicker.vue | 20 +- app/components/home/HomePeriodSelect.vue | 6 +- app/components/home/HomeSales.vue | 14 +- app/components/home/HomeStats.vue | 12 +- app/components/inbox/InboxMail.vue | 32 +- app/components/settings/MembersList.vue | 30 +- app/layouts/default.vue | 39 +- app/pages/customers.vue | 60 +- app/pages/inbox.vue | 13 +- app/pages/index.vue | 13 +- app/pages/settings.vue | 20 +- app/pages/settings/index.vue | 39 +- app/pages/settings/members.vue | 18 +- app/pages/settings/notifications.vue | 34 +- app/pages/settings/security.vue | 26 +- i18n/locales/en.json | 346 ++ i18n/locales/es.json | 346 ++ i18n/locales/fr.json | 346 ++ nuxt.config.ts | 17 +- package.json | 17 +- pnpm-lock.yaml | 4639 ++++++++++++++----- 29 files changed, 4819 insertions(+), 1425 deletions(-) create mode 100644 i18n/locales/en.json create mode 100644 i18n/locales/es.json create mode 100644 i18n/locales/fr.json diff --git a/app/app.vue b/app/app.vue index 1e1b5cb5..da34d7ac 100644 --- a/app/app.vue +++ b/app/app.vue @@ -1,4 +1,10 @@