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

View File

@@ -110,7 +110,7 @@ interface downloadTripPDFProps {
export async function downloadTripPDF({ trip, days, places, assignments, categories, dayNotes, reservations = [], t: _t, locale: _locale }: downloadTripPDFProps) {
await ensureRenderer()
const loc = _locale || 'de-DE'
const loc = _locale || undefined
const tr = _t || (k => k)
const sorted = [...(days || [])].sort((a, b) => a.day_number - b.day_number)
const range = longDateRange(sorted, loc)