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:
@@ -7,7 +7,7 @@ import {
|
||||
formatRelative as dateFnsFormatRelative,
|
||||
} from 'date-fns';
|
||||
import { formatInTimeZone } from 'date-fns-tz';
|
||||
import { enUS, es, fr, ptBR, zhCN, type Locale } from 'date-fns/locale';
|
||||
import { enUS, es, fr, ptBR, zhCN, de, it, type Locale } from 'date-fns/locale';
|
||||
|
||||
/**
|
||||
* Map of i18next language codes to date-fns locales
|
||||
@@ -23,6 +23,10 @@ const localeMap: Record<string, Locale> = {
|
||||
'pt-BR': ptBR,
|
||||
'zh': zhCN,
|
||||
'zh-CN': zhCN,
|
||||
'de': de,
|
||||
'de-DE': de,
|
||||
'it': it,
|
||||
'it-IT': it,
|
||||
};
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user