Skip to content

[pull] main from nodejs:main - #522

Merged
pull[bot] merged 2 commits into
adamlaska:mainfrom
nodejs:main
Aug 19, 2026
Merged

[pull] main from nodejs:main#522
pull[bot] merged 2 commits into
adamlaska:mainfrom
nodejs:main

Conversation

@pull

@pull pull Bot commented Aug 19, 2026

Copy link
Copy Markdown

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.4)

Can you help keep this open source service alive? 💖 Please sponsor : )

bmuenzenmeyer and others added 2 commits August 19, 2026 21:34
feat(i18n): adopt next/root-params

Next.js 16.3 exposes the `[locale]` root segment to Server Components via
`next/root-params`, which next-intl reads directly as of 4.13. That removes the
`setRequestLocale` bookkeeping the app needed for static rendering, along with
the locale threading through every page's `params`.

- `i18n.tsx` resolves the locale from the root param, so `requestLocale` is no
  longer needed. An explicit locale passed by a call site still wins, which
  stays useful for Server Actions and Route Handlers, where `next/root-params`
  is not supported yet
- the root layout reads the locale via `getLocale()`, which returns the already
  validated value from `i18n.tsx`, and no longer receives `params`
- `generateMetadata` and `getLocaleAndPath` read `next/root-params` directly
  rather than `getLocale()`, because they need the raw segment: `getLocale()`
  returns the already defaulted value, which would change the metadata emitted
  for unknown and disabled locales and make the notFound/redirect validation in
  `getLocaleAndPath` unreachable
@pull pull Bot locked and limited conversation to collaborators Aug 19, 2026
@pull pull Bot added the ⤵️ pull label Aug 19, 2026
@pull
pull Bot merged commit 2300abb into adamlaska:main Aug 19, 2026
0 of 4 checks passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants