- App Router: ICU and MF2 without a
'use client'wrapper -next-i18next/icuandnext-i18next/mf2export anI18nProviderwith the same props as the one fromnext-i18next/client, with i18next-icu or i18next-mf2 registered on the client instance. Render it from the root layout and keepuse: [ICU](or[MF2]) in the server config. A Server Component can not pass a plugin class to a Client Component, so<I18nProvider use={[ICU]}>in a layout failed the build with "Functions cannot be passed directly to Client Components", and ICU needed a hand-written'use client'wrapper around the provider. Both plugins are optional peer dependencies: apps that never import these entry points do not resolve or bundle them. New README section "ICU and MF2 with the App Router" (setup,getT/useT, rich text withIcuTransWithoutContextfrom react-i18next 17.0.21 in Server Components,parseInterpolation: falsefor TypeScript,extract.messageFormatin i18next-cli 1.76.0) and a new example,app-router-icu.