feat: Complete comprehensive localization of all tracking and management pages
- 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.
This commit is contained in:
@@ -26,17 +26,41 @@
|
||||
},
|
||||
"amount": "Amount",
|
||||
"duration": "Duration",
|
||||
"startTime": "Start Time",
|
||||
"endTime": "End Time",
|
||||
"startTime": "Start Timer",
|
||||
"endTime": "Stop Timer",
|
||||
"reset": "Reset",
|
||||
"notes": "Notes",
|
||||
"bottleType": "Bottle Type",
|
||||
"bottleTypes": {
|
||||
"formula": "Formula",
|
||||
"breastmilk": "Breast Milk",
|
||||
"other": "Other"
|
||||
},
|
||||
"foodDescription": "Food Description",
|
||||
"amountDescription": "Amount Description",
|
||||
"placeholders": {
|
||||
"amount": "Enter amount",
|
||||
"notes": "Add any notes about this feeding..."
|
||||
"notes": "Add any notes about this feeding...",
|
||||
"duration": "Or enter duration manually",
|
||||
"foodDescription": "e.g., Rice cereal, Banana puree",
|
||||
"amountDescription": "e.g., 1/4 cup, 2 spoonfuls"
|
||||
},
|
||||
"units": {
|
||||
"ml": "ml",
|
||||
"oz": "oz",
|
||||
"minutes": "minutes"
|
||||
},
|
||||
"validation": {
|
||||
"durationRequired": "Please enter duration or use the timer",
|
||||
"amountRequired": "Please enter amount",
|
||||
"foodRequired": "Please enter food description"
|
||||
},
|
||||
"success": "Feeding logged successfully!",
|
||||
"deleted": "Feeding deleted successfully",
|
||||
"recentFeedings": "Recent Feedings",
|
||||
"error": {
|
||||
"saveFailed": "Failed to save feeding",
|
||||
"deleteFailed": "Failed to delete feeding"
|
||||
}
|
||||
},
|
||||
"sleep": {
|
||||
@@ -148,7 +172,35 @@
|
||||
},
|
||||
"temperature": "Temperature",
|
||||
"medication": "Medication",
|
||||
"dosage": "Dosage",
|
||||
"medicineInfo": "Medicine Information",
|
||||
"medicineName": {
|
||||
"label": "Medicine Name",
|
||||
"placeholder": "e.g., Acetaminophen, Ibuprofen",
|
||||
"required": "Please enter medicine name"
|
||||
},
|
||||
"dosage": {
|
||||
"label": "Dosage",
|
||||
"placeholder": "e.g., 5, 2.5",
|
||||
"required": "Please enter dosage"
|
||||
},
|
||||
"unit": "Unit",
|
||||
"route": {
|
||||
"label": "Route",
|
||||
"oral": "Oral",
|
||||
"topical": "Topical",
|
||||
"injection": "Injection",
|
||||
"other": "Other"
|
||||
},
|
||||
"reason": {
|
||||
"label": "Reason (optional)",
|
||||
"placeholder": "e.g., Fever, Pain, Allergy"
|
||||
},
|
||||
"logMedicine": "Log Medicine",
|
||||
"recentMedicines": "Recent Medicines",
|
||||
"success": "Medicine logged successfully!",
|
||||
"error": "Failed to save medicine",
|
||||
"deleted": "Medicine deleted successfully",
|
||||
"deleteError": "Failed to delete medicine",
|
||||
"symptom": "Symptom",
|
||||
"severity": "Severity",
|
||||
"severities": {
|
||||
@@ -164,6 +216,12 @@
|
||||
"notes": "Add any notes..."
|
||||
},
|
||||
"units": {
|
||||
"ml": "ml",
|
||||
"mg": "mg",
|
||||
"tsp": "tsp",
|
||||
"tbsp": "tbsp",
|
||||
"drops": "drops",
|
||||
"tablet": "tablet(s)",
|
||||
"celsius": "°C",
|
||||
"fahrenheit": "°F"
|
||||
}
|
||||
@@ -202,7 +260,10 @@
|
||||
"noChildrenAdded": "No Children Added",
|
||||
"noChildrenMessage": "You need to add a child before you can track activities",
|
||||
"addChild": "Add Child",
|
||||
"recentActivities": "Recent Activities"
|
||||
"recentActivities": "Recent Activities",
|
||||
"error": {
|
||||
"loadChildrenFailed": "Failed to load children"
|
||||
}
|
||||
},
|
||||
"quickLog": "Quick Log",
|
||||
"viewHistory": "View History",
|
||||
|
||||
Reference in New Issue
Block a user