|
|
41320638e5
|
feat: Complete comprehensive localization of all tracking and management pages
CI/CD Pipeline / Build Application (push) Has been cancelled
CI/CD Pipeline / Lint and Test (push) Has been cancelled
CI/CD Pipeline / E2E Tests (push) Has been cancelled
- Feeding page: 47+ strings localized with validation, success/error messages
- Medicine page: 44 strings localized with unit conversion support
- Sleep page: Already localized (verified)
- Diaper page: Already localized (verified)
- Activity page: Already localized (verified)
- AI Assistant: 51 strings localized including chat interface and suggested questions
- Children page: 38 strings fully localized with gender labels
- Family page: 42 strings localized with role management
- Insights page: 41 strings localized including charts and analytics
Added translation files:
- locales/en/ai.json (44 keys)
- locales/en/family.json (42 keys)
- locales/en/insights.json (41 keys)
Updated translation files:
- locales/en/tracking.json (added feeding, health/medicine sections)
- locales/en/children.json (verified complete)
All pages now use useTranslation hook with proper namespaces.
All user-facing text externalized and ready for multi-language support.
|
2025-10-03 13:57:47 +00:00 |
|
|
|
b56f9546c2
|
feat: Complete high-priority i18n localization with date/time support
This commit implements comprehensive localization for high-priority components:
## Tracking Pages (4 files)
- Localized feeding, sleep, diaper, and medicine tracking pages
- Replaced hardcoded strings with translation keys from tracking namespace
- Added useTranslation hook integration
- All form labels, buttons, and messages now support multiple languages
## Child Dialog Components (2 files)
- Localized ChildDialog (add/edit child form)
- Localized DeleteConfirmDialog
- Added new translation keys to children.json for dialog content
- Includes validation messages and action buttons
## Date/Time Localization (14 files + new hook)
- Created useLocalizedDate hook wrapping date-fns with locale support
- Supports 5 languages: English, Spanish, French, Portuguese, Chinese
- Updated all date formatting across:
* Tracking pages (feeding, sleep, diaper, medicine)
* Activity pages (activities, history, track activity)
* Settings components (sessions, biometric, device trust)
* Analytics components (insights, growth, sleep chart, feeding graph)
- Date displays automatically adapt to user's language (e.g., "2 hours ago" → "hace 2 horas")
## Translation Updates
- Enhanced children.json with dialog section containing:
* Form field labels (name, birthDate, gender, photoUrl)
* Action buttons (add, update, delete, cancel, saving, deleting)
* Delete confirmation messages
* Validation error messages
Files changed: 17 files (+164, -113)
Languages supported: en, es, fr, pt-BR, zh-CN
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
|
2025-10-03 11:49:48 +00:00 |
|