trails/apps/journal/app
Ullrich Schäfer 38ada3bd4f
Pass full locale from Accept-Language to ClientDate
Add detectLocale() that extracts the full locale tag (e.g. "de-DE")
from the request, not just the language. The journal root loader passes
it via LocaleContext so ClientDate renders with the correct locale on
both server and client — no more hardcoded "en-US" fallback.

Also fixes settings page hydration mismatch by using ClientDate for
passkey creation dates instead of inline toLocaleDateString().

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-29 11:46:21 +02:00
..
components Pass full locale from Accept-Language to ClientDate 2026-03-29 11:46:21 +02:00
lib Add purpose column to magic_tokens, fix email change race condition 2026-03-29 10:28:53 +02:00
routes Pass full locale from Accept-Language to ClientDate 2026-03-29 11:46:21 +02:00
entry.client.tsx Upgrade i18next v26 + react-i18next v17 with SSR-safe init 2026-03-29 11:38:36 +02:00
entry.server.tsx Upgrade i18next v26 + react-i18next v17 with SSR-safe init 2026-03-29 11:38:36 +02:00
root.tsx Pass full locale from Accept-Language to ClientDate 2026-03-29 11:46:21 +02:00
routes.ts Add account settings page with passkey management 2026-03-29 10:09:06 +02:00