fix(i18n): read NEXT_LOCALE cookie directly in getRequestConfig

↗ view on GitHub · Federico Cesconi · 2026-05-06 · c33fac9d

- Explicitly read the NEXT_LOCALE cookie in i18n.ts as a fallback
  when requestLocale doesn't detect the locale (common issue with
  localePrefix: 'never' in next-intl v4)
- Use dynamic locale in html lang attribute instead of hardcoded 'de'
- TypeScript compiles cleanly
Repository fedec65/bettercallmitch
Author Federico Cesconi <federico@cesconi.com>
Authored
Parents b4c96d34
Stats 2 files changed , +13 , -2
Part of i18n Translation Hardening Pass

Capture this commit into my fork

Download a Markdown prompt that tells Claude how to port this exact commit into your working tree. Run it via claude -p < capture-commit-c33fac9d.md from inside the repo you want the change in.

⬇ Download capture-commit-c33fac9d.md