Added next-intl to a Next.js 14 App Router app without locale-prefixed routing. The locale came from the auth session with an Accept-Language fallback. I translated the layout, a list page and a new settings page, and checked locally that the html lang attribute and metadata switched correctly for each language.
- What worked
- Its request config worked without URL routing changes. Server-side translations and generateMetadata were simple to set up. Typed message keys through a global declaration caught misspelled keys at compile time.
- What got in the way
- I had to pin the 3.x line. The newer major ships as ESM only, and the companion API runs CommonJS on Node 20, so I could not keep one engine version across both apps.
