Files
maternal-app/maternal-web/locales/en/settings.json
Andrei 8bac3bad4b
Some checks failed
CI/CD Pipeline / Lint and Test (push) Has been cancelled
CI/CD Pipeline / E2E Tests (push) Has been cancelled
CI/CD Pipeline / Build Application (push) Has been cancelled
feat: Localize Sleep, Diaper, Activity, and Settings pages
Added comprehensive localization to tracking and settings pages:

**Translation Keys Added:**
- Sleep: locations, status, duration formatting, success/delete messages
- Diaper: conditions, rash severity and alert, success/delete messages
- Activity: activity types, form labels, placeholders
- Settings: profile, preferences, notifications, appearance, account actions
- Common: shared labels (selectChild, noChildrenAdded, etc.)

**Pages Localized:**
1. Sleep tracking page (/app/track/sleep/page.tsx)
   - All form labels and dropdowns
   - Location options (crib, bed, stroller, carrier, other)
   - Sleep status (completed/ongoing)
   - Duration display with interpolation
   - Success and delete messages

2. Diaper tracking page (/app/track/diaper/page.tsx)
   - Diaper types (wet, dirty, both, dry)
   - Conditions (normal, soft, hard, watery, mucus, blood)
   - Rash detection with severity levels
   - Alert message for diaper rash
   - Recent diapers display with translated labels

3. Activity tracking page (/app/track/activity/page.tsx)
   - Activity types (play, walk, music, reading, tummy time, outdoor, other)
   - Duration and description fields
   - Form placeholders
   - Recent activities display

4. Settings page (/app/settings/page.tsx)
   - Profile information section
   - Preferences, notifications, appearance sections
   - Account actions (logout)
   - Save/saving button states
   - Success message

All pages now support multi-language translation and are ready for
Spanish, French, Portuguese, and Chinese translations.

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-03 13:18:01 +00:00

148 lines
3.9 KiB
JSON

{
"title": "Settings",
"account": {
"title": "Account",
"profile": "Profile",
"email": "Email",
"password": "Password",
"changePassword": "Change Password",
"deleteAccount": "Delete Account",
"confirmDelete": "Are you sure you want to delete your account? This action cannot be undone."
},
"preferences": {
"title": "Preferences",
"language": "Language",
"measurementUnits": "Measurement Units",
"metric": "Metric (kg, cm, °C, ml)",
"imperial": "Imperial (lb, in, °F, oz)",
"timezone": "Time Zone",
"autoDetectTimezone": "Auto-Detect",
"timezoneUpdated": "Timezone updated successfully",
"timezoneAutoDetected": "Auto-detected timezone",
"dateFormat": "Date Format",
"timeFormat": "Time Format",
"12hour": "12-hour format",
"24hour": "24-hour format",
"timeFormatUpdated": "Time format updated successfully",
"theme": "Theme",
"light": "Light",
"dark": "Dark",
"auto": "Auto (System)"
},
"notifications": {
"title": "Notifications",
"push": "Push Notifications",
"email": "Email Notifications",
"feedingReminders": "Feeding Reminders",
"sleepReminders": "Sleep Reminders",
"milestoneAlerts": "Milestone Alerts",
"familyUpdates": "Family Updates",
"aiSuggestions": "AI Suggestions"
},
"privacy": {
"title": "Privacy & Security",
"dataSharing": "Data Sharing",
"familyAccess": "Family Access",
"biometric": "Biometric Authentication",
"enableFaceId": "Enable Face ID",
"enableTouchId": "Enable Touch ID",
"enableFingerprint": "Enable Fingerprint",
"dataExport": "Export Data",
"downloadData": "Download Your Data"
},
"family": {
"title": "Family",
"members": "Family Members",
"inviteMember": "Invite Member",
"removeMember": "Remove Member",
"permissions": "Permissions",
"role": "Role",
"roles": {
"admin": "Admin",
"parent": "Parent",
"caregiver": "Caregiver",
"viewer": "Viewer"
}
},
"children": {
"title": "Children",
"addChild": "Add Child",
"editChild": "Edit Child",
"removeChild": "Remove Child",
"name": "Name",
"dateOfBirth": "Date of Birth",
"gender": "Gender",
"genders": {
"male": "Male",
"female": "Female",
"other": "Other",
"preferNotToSay": "Prefer not to say"
}
},
"subscription": {
"title": "Subscription",
"plan": "Current Plan",
"free": "Free",
"premium": "Premium",
"upgradeToPremium": "Upgrade to Premium",
"manageBilling": "Manage Billing",
"cancelSubscription": "Cancel Subscription",
"renewalDate": "Renewal Date",
"features": {
"unlimitedAi": "Unlimited AI questions",
"familySync": "Family sync",
"advancedAnalytics": "Advanced analytics",
"exportReports": "Export reports",
"prioritySupport": "Priority support"
}
},
"about": {
"title": "About",
"version": "Version",
"termsOfService": "Terms of Service",
"privacyPolicy": "Privacy Policy",
"helpCenter": "Help Center",
"contactSupport": "Contact Support",
"rateApp": "Rate App",
"shareApp": "Share App"
},
"profile": {
"title": "Profile Information",
"name": "Name",
"nameRequired": "Name cannot be empty",
"email": "Email",
"emailNotEditable": "Email cannot be changed"
},
"appearance": {
"title": "Appearance",
"darkMode": "Dark Mode (Coming Soon)"
},
"security": {
"title": "Security"
},
"sessions": {
"title": "Sessions"
},
"deviceTrust": {
"title": "Device Trust"
},
"biometric": {
"title": "Biometric Authentication"
},
"dataExport": {
"title": "Data Export"
},
"accountDeletion": {
"title": "Account Deletion"
},
"accountActions": {
"title": "Account Actions",
"logout": "Logout"
},
"save": "Save Preferences",
"saving": "Saving...",
"saved": "Settings saved successfully!",
"cancel": "Cancel",
"reset": "Reset to Default"
}