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>
This commit is contained in:
@@ -106,8 +106,42 @@
|
||||
"rateApp": "Rate App",
|
||||
"shareApp": "Share App"
|
||||
},
|
||||
"save": "Save Changes",
|
||||
"saved": "Settings saved successfully",
|
||||
"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"
|
||||
}
|
||||
|
||||
@@ -42,6 +42,7 @@
|
||||
"sleep": {
|
||||
"title": "Sleep",
|
||||
"addSleep": "Add Sleep",
|
||||
"logSleep": "Log Sleep",
|
||||
"startTime": "Sleep Start",
|
||||
"endTime": "Sleep End",
|
||||
"duration": "Duration",
|
||||
@@ -52,14 +53,33 @@
|
||||
"good": "Good",
|
||||
"excellent": "Excellent"
|
||||
},
|
||||
"location": "Location",
|
||||
"locations": {
|
||||
"crib": "Crib",
|
||||
"bed": "Bed",
|
||||
"stroller": "Stroller",
|
||||
"carrier": "Carrier",
|
||||
"other": "Other"
|
||||
},
|
||||
"status": {
|
||||
"title": "Sleep Status",
|
||||
"completed": "Completed (has end time)",
|
||||
"ongoing": "Ongoing (still sleeping)"
|
||||
},
|
||||
"now": "Now",
|
||||
"notes": "Notes",
|
||||
"placeholders": {
|
||||
"notes": "Add any notes about this sleep session..."
|
||||
}
|
||||
},
|
||||
"recentSleeps": "Recent Sleeps",
|
||||
"success": "Sleep logged successfully!",
|
||||
"deleted": "Sleep deleted successfully",
|
||||
"ongoing_duration": "Ongoing - {{duration}}"
|
||||
},
|
||||
"diaper": {
|
||||
"title": "Diaper",
|
||||
"addDiaper": "Add Diaper Change",
|
||||
"logDiaper": "Log Diaper Change",
|
||||
"type": "Type",
|
||||
"types": {
|
||||
"wet": "Wet",
|
||||
@@ -68,10 +88,35 @@
|
||||
"dry": "Dry"
|
||||
},
|
||||
"time": "Time",
|
||||
"now": "Now",
|
||||
"conditions": {
|
||||
"title": "Conditions",
|
||||
"normal": "Normal",
|
||||
"soft": "Soft",
|
||||
"hard": "Hard",
|
||||
"watery": "Watery",
|
||||
"mucus": "Mucus",
|
||||
"blood": "Blood"
|
||||
},
|
||||
"rash": {
|
||||
"title": "Has Rash",
|
||||
"yes": "Yes",
|
||||
"no": "No",
|
||||
"severity": "Rash Severity",
|
||||
"alert": "Diaper rash detected. Consider applying diaper rash cream and consulting your pediatrician if it persists.",
|
||||
"severities": {
|
||||
"mild": "Mild",
|
||||
"moderate": "Moderate",
|
||||
"severe": "Severe"
|
||||
}
|
||||
},
|
||||
"notes": "Notes",
|
||||
"placeholders": {
|
||||
"notes": "Add any notes about this diaper change..."
|
||||
}
|
||||
},
|
||||
"recentDiapers": "Recent Diaper Changes",
|
||||
"success": "Diaper change logged successfully!",
|
||||
"deleted": "Diaper change deleted successfully"
|
||||
},
|
||||
"milestone": {
|
||||
"title": "Milestone",
|
||||
@@ -123,6 +168,42 @@
|
||||
"fahrenheit": "°F"
|
||||
}
|
||||
},
|
||||
"activity": {
|
||||
"title": "Activity",
|
||||
"addActivity": "Add Activity",
|
||||
"logActivity": "Log Activity",
|
||||
"type": "Activity Type",
|
||||
"types": {
|
||||
"play": "Play",
|
||||
"tummyTime": "Tummy Time",
|
||||
"walk": "Walk",
|
||||
"music": "Music",
|
||||
"reading": "Reading",
|
||||
"outdoor": "Outdoor Play",
|
||||
"other": "Other"
|
||||
},
|
||||
"duration": "Duration (minutes)",
|
||||
"description": "Description",
|
||||
"notes": "Notes",
|
||||
"placeholders": {
|
||||
"duration": "Enter duration in minutes",
|
||||
"description": "Describe the activity...",
|
||||
"notes": "Add any notes..."
|
||||
},
|
||||
"recentActivities": "Recent Activities",
|
||||
"success": "Activity logged successfully!",
|
||||
"deleted": "Activity deleted successfully"
|
||||
},
|
||||
"common": {
|
||||
"selectChild": "Select Child",
|
||||
"cancel": "Cancel",
|
||||
"delete": "Delete",
|
||||
"loading": "Loading...",
|
||||
"noChildrenAdded": "No Children Added",
|
||||
"noChildrenMessage": "You need to add a child before you can track activities",
|
||||
"addChild": "Add Child",
|
||||
"recentActivities": "Recent Activities"
|
||||
},
|
||||
"quickLog": "Quick Log",
|
||||
"viewHistory": "View History",
|
||||
"editEntry": "Edit Entry",
|
||||
|
||||
Reference in New Issue
Block a user