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:
@@ -57,10 +57,23 @@
|
||||
},
|
||||
"navigation": {
|
||||
"home": "Home",
|
||||
"dashboard": "Dashboard",
|
||||
"tracking": "Tracking",
|
||||
"trackActivity": "Track Activity",
|
||||
"track": "Track",
|
||||
"ai": "AI Assistant",
|
||||
"aiChat": "AI Chat",
|
||||
"family": "Family",
|
||||
"insights": "Insights",
|
||||
"settings": "Settings"
|
||||
"children": "Children",
|
||||
"settings": "Settings",
|
||||
"logout": "Logout"
|
||||
},
|
||||
"connection": {
|
||||
"syncActive": "Real-time sync active",
|
||||
"syncDisconnected": "Real-time sync disconnected",
|
||||
"live": "Live",
|
||||
"offline": "Offline",
|
||||
"familyMembersOnline": "{{count}} family members online"
|
||||
}
|
||||
}
|
||||
|
||||
30
maternal-web/locales/en/dashboard.json
Normal file
30
maternal-web/locales/en/dashboard.json
Normal file
@@ -0,0 +1,30 @@
|
||||
{
|
||||
"welcomeBack": "Welcome Back",
|
||||
"welcomeBackWithName": "Welcome Back, {{name}}!",
|
||||
"subtitle": "Track your child's activities and get AI-powered insights",
|
||||
"quickActions": {
|
||||
"title": "Quick Actions",
|
||||
"feeding": "Feeding",
|
||||
"sleep": "Sleep",
|
||||
"diaper": "Diaper",
|
||||
"medicine": "Medicine",
|
||||
"activities": "Activities",
|
||||
"aiAssistant": "AI Assistant",
|
||||
"navigateTo": "Navigate to {{action}}"
|
||||
},
|
||||
"summary": {
|
||||
"title": "Today's Summary",
|
||||
"titleWithChild": "Today's Summary - {{childName}}",
|
||||
"feedings": "Feedings",
|
||||
"sleep": "Sleep",
|
||||
"diapers": "Diapers",
|
||||
"medications": "Medications",
|
||||
"noChild": "Add a child to start tracking",
|
||||
"noActivities": "No activities tracked today"
|
||||
},
|
||||
"predictions": {
|
||||
"title": "Next Predicted Activity",
|
||||
"napTime": "Nap time in {{minutes}} minutes",
|
||||
"basedOnPatterns": "Based on your child's sleep patterns"
|
||||
}
|
||||
}
|
||||
@@ -57,10 +57,23 @@
|
||||
},
|
||||
"navigation": {
|
||||
"home": "Inicio",
|
||||
"dashboard": "Panel",
|
||||
"tracking": "Seguimiento",
|
||||
"trackActivity": "Registrar Actividad",
|
||||
"track": "Registrar",
|
||||
"ai": "Asistente IA",
|
||||
"aiChat": "Chat IA",
|
||||
"family": "Familia",
|
||||
"insights": "Análisis",
|
||||
"settings": "Configuración"
|
||||
"children": "Niños",
|
||||
"settings": "Configuración",
|
||||
"logout": "Cerrar Sesión"
|
||||
},
|
||||
"connection": {
|
||||
"syncActive": "Sincronización en tiempo real activa",
|
||||
"syncDisconnected": "Sincronización en tiempo real desconectada",
|
||||
"live": "En Vivo",
|
||||
"offline": "Desconectado",
|
||||
"familyMembersOnline": "{{count}} miembros de la familia en línea"
|
||||
}
|
||||
}
|
||||
|
||||
30
maternal-web/locales/es/dashboard.json
Normal file
30
maternal-web/locales/es/dashboard.json
Normal file
@@ -0,0 +1,30 @@
|
||||
{
|
||||
"welcomeBack": "Bienvenido de vuelta",
|
||||
"welcomeBackWithName": "Bienvenido de vuelta, {{name}}!",
|
||||
"subtitle": "Rastrea las actividades de tu hijo y obtén información impulsada por IA",
|
||||
"quickActions": {
|
||||
"title": "Acciones Rápidas",
|
||||
"feeding": "Alimentación",
|
||||
"sleep": "Sueño",
|
||||
"diaper": "Pañal",
|
||||
"medicine": "Medicina",
|
||||
"activities": "Actividades",
|
||||
"aiAssistant": "Asistente IA",
|
||||
"navigateTo": "Navegar a {{action}}"
|
||||
},
|
||||
"summary": {
|
||||
"title": "Resumen de Hoy",
|
||||
"titleWithChild": "Resumen de Hoy - {{childName}}",
|
||||
"feedings": "Alimentaciones",
|
||||
"sleep": "Sueño",
|
||||
"diapers": "Pañales",
|
||||
"medications": "Medicamentos",
|
||||
"noChild": "Agrega un niño para comenzar a rastrear",
|
||||
"noActivities": "No hay actividades rastreadas hoy"
|
||||
},
|
||||
"predictions": {
|
||||
"title": "Próxima Actividad Predicha",
|
||||
"napTime": "Hora de siesta en {{minutes}} minutos",
|
||||
"basedOnPatterns": "Basado en los patrones de sueño de tu hijo"
|
||||
}
|
||||
}
|
||||
@@ -57,10 +57,23 @@
|
||||
},
|
||||
"navigation": {
|
||||
"home": "Accueil",
|
||||
"dashboard": "Tableau de bord",
|
||||
"tracking": "Suivi",
|
||||
"trackActivity": "Enregistrer l'Activité",
|
||||
"track": "Enregistrer",
|
||||
"ai": "Assistant IA",
|
||||
"aiChat": "Chat IA",
|
||||
"family": "Famille",
|
||||
"insights": "Analyses",
|
||||
"settings": "Paramètres"
|
||||
"children": "Enfants",
|
||||
"settings": "Paramètres",
|
||||
"logout": "Déconnexion"
|
||||
},
|
||||
"connection": {
|
||||
"syncActive": "Synchronisation en temps réel active",
|
||||
"syncDisconnected": "Synchronisation en temps réel déconnectée",
|
||||
"live": "En Direct",
|
||||
"offline": "Hors Ligne",
|
||||
"familyMembersOnline": "{{count}} membres de la famille en ligne"
|
||||
}
|
||||
}
|
||||
|
||||
30
maternal-web/locales/fr/dashboard.json
Normal file
30
maternal-web/locales/fr/dashboard.json
Normal file
@@ -0,0 +1,30 @@
|
||||
{
|
||||
"welcomeBack": "Bon retour",
|
||||
"welcomeBackWithName": "Bon retour, {{name}}!",
|
||||
"subtitle": "Suivez les activités de votre enfant et obtenez des informations alimentées par l'IA",
|
||||
"quickActions": {
|
||||
"title": "Actions Rapides",
|
||||
"feeding": "Alimentation",
|
||||
"sleep": "Sommeil",
|
||||
"diaper": "Couche",
|
||||
"medicine": "Médicament",
|
||||
"activities": "Activités",
|
||||
"aiAssistant": "Assistant IA",
|
||||
"navigateTo": "Naviguer vers {{action}}"
|
||||
},
|
||||
"summary": {
|
||||
"title": "Résumé d'Aujourd'hui",
|
||||
"titleWithChild": "Résumé d'Aujourd'hui - {{childName}}",
|
||||
"feedings": "Alimentations",
|
||||
"sleep": "Sommeil",
|
||||
"diapers": "Couches",
|
||||
"medications": "Médicaments",
|
||||
"noChild": "Ajoutez un enfant pour commencer le suivi",
|
||||
"noActivities": "Aucune activité suivie aujourd'hui"
|
||||
},
|
||||
"predictions": {
|
||||
"title": "Prochaine Activité Prédite",
|
||||
"napTime": "Heure de sieste dans {{minutes}} minutes",
|
||||
"basedOnPatterns": "Basé sur les habitudes de sommeil de votre enfant"
|
||||
}
|
||||
}
|
||||
@@ -57,10 +57,23 @@
|
||||
},
|
||||
"navigation": {
|
||||
"home": "Início",
|
||||
"dashboard": "Painel",
|
||||
"tracking": "Rastreamento",
|
||||
"trackActivity": "Registrar Atividade",
|
||||
"track": "Registrar",
|
||||
"ai": "Assistente IA",
|
||||
"aiChat": "Chat IA",
|
||||
"family": "Família",
|
||||
"insights": "Análises",
|
||||
"settings": "Configurações"
|
||||
"children": "Crianças",
|
||||
"settings": "Configurações",
|
||||
"logout": "Sair"
|
||||
},
|
||||
"connection": {
|
||||
"syncActive": "Sincronização em tempo real ativa",
|
||||
"syncDisconnected": "Sincronização em tempo real desconectada",
|
||||
"live": "Ao Vivo",
|
||||
"offline": "Offline",
|
||||
"familyMembersOnline": "{{count}} membros da família online"
|
||||
}
|
||||
}
|
||||
|
||||
30
maternal-web/locales/pt/dashboard.json
Normal file
30
maternal-web/locales/pt/dashboard.json
Normal file
@@ -0,0 +1,30 @@
|
||||
{
|
||||
"welcomeBack": "Bem-vindo de volta",
|
||||
"welcomeBackWithName": "Bem-vindo de volta, {{name}}!",
|
||||
"subtitle": "Acompanhe as atividades do seu filho e obtenha insights impulsionados por IA",
|
||||
"quickActions": {
|
||||
"title": "Ações Rápidas",
|
||||
"feeding": "Alimentação",
|
||||
"sleep": "Sono",
|
||||
"diaper": "Fralda",
|
||||
"medicine": "Remédio",
|
||||
"activities": "Atividades",
|
||||
"aiAssistant": "Assistente IA",
|
||||
"navigateTo": "Navegar para {{action}}"
|
||||
},
|
||||
"summary": {
|
||||
"title": "Resumo de Hoje",
|
||||
"titleWithChild": "Resumo de Hoje - {{childName}}",
|
||||
"feedings": "Alimentações",
|
||||
"sleep": "Sono",
|
||||
"diapers": "Fraldas",
|
||||
"medications": "Medicamentos",
|
||||
"noChild": "Adicione uma criança para começar a acompanhar",
|
||||
"noActivities": "Nenhuma atividade rastreada hoje"
|
||||
},
|
||||
"predictions": {
|
||||
"title": "Próxima Atividade Prevista",
|
||||
"napTime": "Hora da soneca em {{minutes}} minutos",
|
||||
"basedOnPatterns": "Baseado nos padrões de sono do seu filho"
|
||||
}
|
||||
}
|
||||
@@ -57,10 +57,23 @@
|
||||
},
|
||||
"navigation": {
|
||||
"home": "首页",
|
||||
"dashboard": "仪表板",
|
||||
"tracking": "追踪",
|
||||
"trackActivity": "记录活动",
|
||||
"track": "记录",
|
||||
"ai": "AI助手",
|
||||
"aiChat": "AI聊天",
|
||||
"family": "家庭",
|
||||
"insights": "分析",
|
||||
"settings": "设置"
|
||||
"children": "儿童",
|
||||
"settings": "设置",
|
||||
"logout": "退出登录"
|
||||
},
|
||||
"connection": {
|
||||
"syncActive": "实时同步活动",
|
||||
"syncDisconnected": "实时同步已断开",
|
||||
"live": "在线",
|
||||
"offline": "离线",
|
||||
"familyMembersOnline": "{{count}}位家庭成员在线"
|
||||
}
|
||||
}
|
||||
|
||||
30
maternal-web/locales/zh/dashboard.json
Normal file
30
maternal-web/locales/zh/dashboard.json
Normal file
@@ -0,0 +1,30 @@
|
||||
{
|
||||
"welcomeBack": "欢迎回来",
|
||||
"welcomeBackWithName": "欢迎回来,{{name}}!",
|
||||
"subtitle": "追踪您孩子的活动并获得AI驱动的见解",
|
||||
"quickActions": {
|
||||
"title": "快速操作",
|
||||
"feeding": "喂养",
|
||||
"sleep": "睡眠",
|
||||
"diaper": "尿布",
|
||||
"medicine": "药物",
|
||||
"activities": "活动",
|
||||
"aiAssistant": "AI助手",
|
||||
"navigateTo": "导航到{{action}}"
|
||||
},
|
||||
"summary": {
|
||||
"title": "今日总结",
|
||||
"titleWithChild": "今日总结 - {{childName}}",
|
||||
"feedings": "喂养次数",
|
||||
"sleep": "睡眠",
|
||||
"diapers": "尿布",
|
||||
"medications": "药物",
|
||||
"noChild": "添加孩子以开始追踪",
|
||||
"noActivities": "今天没有追踪任何活动"
|
||||
},
|
||||
"predictions": {
|
||||
"title": "下一个预测活动",
|
||||
"napTime": "{{minutes}}分钟后小睡时间",
|
||||
"basedOnPatterns": "基于您孩子的睡眠模式"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user