fix: use user locale instead of hardcoded de-DE for number/date formatting — closes #144

- CurrencyWidget: format numbers with user's locale
- ReservationModal: date formatting uses locale
- TripPDF: locale fallback to browser default instead of de-DE
- holidays.ts: formatDate accepts optional locale parameter
This commit is contained in:
Maurice
2026-03-30 17:28:14 +02:00
parent 095cb1b9d1
commit 533d6f84d8
4 changed files with 6 additions and 6 deletions
@@ -573,5 +573,5 @@ export function ReservationModal({ isOpen, onClose, onSave, reservation, days, p
function formatDate(dateStr, locale) {
if (!dateStr) return ''
const d = new Date(dateStr + 'T00:00:00')
return d.toLocaleDateString(locale || 'de-DE', { day: 'numeric', month: 'short' })
return d.toLocaleDateString(locale || undefined, { day: 'numeric', month: 'short' })
}