feat: Apply localization to Login, Dashboard, and Navigation (Phase 9 - Batch 1)

**Pages Localized:**
- Login page: All UI strings (titles, labels, buttons, links)
- Dashboard page: Welcome message, quick actions, daily summary, predictions
- AppShell: Connection status and presence indicators
- MobileNav: Menu items and app branding
- TabBar: Bottom navigation labels

**Translation Files:**
- Created dashboard.json for all 5 languages (en, es, fr, pt, zh)
- Enhanced common.json with navigation and connection strings
- Updated i18n config to include dashboard namespace

**Languages Supported:**
- English, Spanish, French, Portuguese, Chinese (Simplified)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
2025-10-03 11:17:47 +00:00
parent de691525fb
commit acadfe7905
16 changed files with 289 additions and 54 deletions

View File

@@ -4,6 +4,7 @@ import LanguageDetector from 'i18next-browser-languagedetector';
// Import translation files
import enCommon from '@/locales/en/common.json';
import enDashboard from '@/locales/en/dashboard.json';
import enTracking from '@/locales/en/tracking.json';
import enAi from '@/locales/en/ai.json';
import enAuth from '@/locales/en/auth.json';
@@ -12,6 +13,7 @@ import enOnboarding from '@/locales/en/onboarding.json';
import enErrors from '@/locales/en/errors.json';
import esCommon from '@/locales/es/common.json';
import esDashboard from '@/locales/es/dashboard.json';
import esTracking from '@/locales/es/tracking.json';
import esAi from '@/locales/es/ai.json';
import esAuth from '@/locales/es/auth.json';
@@ -20,6 +22,7 @@ import esOnboarding from '@/locales/es/onboarding.json';
import esErrors from '@/locales/es/errors.json';
import frCommon from '@/locales/fr/common.json';
import frDashboard from '@/locales/fr/dashboard.json';
import frTracking from '@/locales/fr/tracking.json';
import frAi from '@/locales/fr/ai.json';
import frAuth from '@/locales/fr/auth.json';
@@ -28,6 +31,7 @@ import frOnboarding from '@/locales/fr/onboarding.json';
import frErrors from '@/locales/fr/errors.json';
import ptCommon from '@/locales/pt/common.json';
import ptDashboard from '@/locales/pt/dashboard.json';
import ptTracking from '@/locales/pt/tracking.json';
import ptAi from '@/locales/pt/ai.json';
import ptAuth from '@/locales/pt/auth.json';
@@ -36,6 +40,7 @@ import ptOnboarding from '@/locales/pt/onboarding.json';
import ptErrors from '@/locales/pt/errors.json';
import zhCommon from '@/locales/zh/common.json';
import zhDashboard from '@/locales/zh/dashboard.json';
import zhTracking from '@/locales/zh/tracking.json';
import zhAi from '@/locales/zh/ai.json';
import zhAuth from '@/locales/zh/auth.json';
@@ -46,6 +51,7 @@ import zhErrors from '@/locales/zh/errors.json';
export const resources = {
en: {
common: enCommon,
dashboard: enDashboard,
tracking: enTracking,
ai: enAi,
auth: enAuth,
@@ -55,6 +61,7 @@ export const resources = {
},
es: {
common: esCommon,
dashboard: esDashboard,
tracking: esTracking,
ai: esAi,
auth: esAuth,
@@ -64,6 +71,7 @@ export const resources = {
},
fr: {
common: frCommon,
dashboard: frDashboard,
tracking: frTracking,
ai: frAi,
auth: frAuth,
@@ -73,6 +81,7 @@ export const resources = {
},
pt: {
common: ptCommon,
dashboard: ptDashboard,
tracking: ptTracking,
ai: ptAi,
auth: ptAuth,
@@ -82,6 +91,7 @@ export const resources = {
},
zh: {
common: zhCommon,
dashboard: zhDashboard,
tracking: zhTracking,
ai: zhAi,
auth: zhAuth,