cacheComponents with next-intl

Go to Pathnames page

Cached Component

Receives locale from params (generated by generateStaticParams()) as prop and uses getTranslations with explicit locale. Works with 'use cache' because locale is passed explicitly, not read from headers().

Demo showing how next-intl static rendering setup with generateStaticParams() and setRequestLocale() enables Next.js 16 cacheComponents. Page extracts locale from params and passes it explicitly to cached components.