whisper-money/resources/js
Víctor Falcón a19a8d52ec
Fix: Use locale to disambiguate date format during CSV import (#107)
## Summary
- When CSV dates are ambiguous (e.g. `05/03/2024` parses as both
DD-MM-YYYY and MM-DD-YYYY), the auto-detection heuristic now uses the
user's locale preference as a tie-breaker instead of relying on array
order
- Adds `getLocaleDateFormat()` helper that maps locale strings to their
expected date format (US → MM-DD-YYYY, most others → DD-MM-YYYY, CJK →
YYYY-MM-DD)
- Passes locale from Inertia shared props to both transaction and
balance import flows

Closes #100

## Test plan
- [x] Added 15 Vitest tests for `getLocaleDateFormat` and
`autoDetectDateFormat` with locale tie-breaking
- [ ] Manual test: Import CSV with ambiguous dates (day ≤ 12) using a
non-US locale, verify DD-MM-YYYY is preferred
- [ ] Manual test: Import CSV with unambiguous dates (day > 12), verify
locale does NOT override correct detection
2026-02-12 09:08:52 +01:00
..
components Fix: Use locale to disambiguate date format during CSV import (#107) 2026-02-12 09:08:52 +01:00
contexts feat: Add PostHog (#70) 2026-01-20 10:47:59 +01:00
hooks feat: Plaintext transactions behind feature flag (#105) 2026-02-10 14:31:24 +01:00
layouts Remove encryption from bank account names (#104) 2026-02-09 14:15:26 +01:00
lib Fix: Use locale to disambiguate date format during CSV import (#107) 2026-02-12 09:08:52 +01:00
pages chore: Update landing 2026-02-10 15:46:47 +01:00
providers chore: Update discord link 2026-02-10 14:12:37 +01:00
services feat: Plaintext transactions behind feature flag (#105) 2026-02-10 14:31:24 +01:00
types feat: Plaintext transactions behind feature flag (#105) 2026-02-10 14:31:24 +01:00
utils feat: Spanish localization (#74) 2026-02-08 11:58:08 +01:00
app.tsx feat: Spanish localization (#74) 2026-02-08 11:58:08 +01:00
ssr.tsx SSR was missing the privacy mode provider (#46) 2025-12-30 08:55:03 +01:00