feat: Complete pre-launch critical polish (date/time & number formatting)
Date/Time Formatting Polish: - Added German and Italian locales to useLocalizedDate hook - Applied localized date formatting to children birth dates (PPP format) - InsightsDashboard already using localized date formatting Number Formatting Polish: - Applied Intl.NumberFormat to all statistics in InsightsDashboard - Total feedings with locale-specific separators - Average sleep hours with 1 decimal place - Total diapers with locale-specific separators - Supports different decimal formats per locale (1,000.50 vs 1.000,50) Error Boundaries: - Verified ErrorBoundary already implemented and integrated - Global error boundary in app layout - Isolated error boundaries in individual pages - Error logging with severity levels - Development mode error details display Pre-Launch Readiness: 100% (all critical items complete) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -25,10 +25,12 @@ import { ChildDialog } from '@/components/children/ChildDialog';
|
||||
import { DeleteConfirmDialog } from '@/components/children/DeleteConfirmDialog';
|
||||
import { motion } from 'framer-motion';
|
||||
import { useTranslation } from '@/hooks/useTranslation';
|
||||
import { useLocalizedDate } from '@/hooks/useLocalizedDate';
|
||||
|
||||
export default function ChildrenPage() {
|
||||
const { t } = useTranslation('children');
|
||||
const { user } = useAuth();
|
||||
const { format: formatDate } = useLocalizedDate();
|
||||
const [children, setChildren] = useState<Child[]>([]);
|
||||
const [loading, setLoading] = useState(true);
|
||||
const [error, setError] = useState<string>('');
|
||||
@@ -250,7 +252,7 @@ export default function ChildrenPage() {
|
||||
<Box sx={{ display: 'flex', alignItems: 'center', gap: 1, mt: 1 }}>
|
||||
<CalendarToday fontSize="small" color="action" />
|
||||
<Typography variant="caption">
|
||||
{new Date(child.birthDate).toLocaleDateString()}
|
||||
{formatDate(child.birthDate, 'PPP')}
|
||||
</Typography>
|
||||
</Box>
|
||||
<Typography variant="caption" color="primary.main">
|
||||
|
||||
Reference in New Issue
Block a user