diff --git a/docs/src/pages/docs/getting-started/app-router/with-i18n-routing.mdx b/docs/src/pages/docs/getting-started/app-router/with-i18n-routing.mdx index 6456eeb48..137a0fb7d 100644 --- a/docs/src/pages/docs/getting-started/app-router/with-i18n-routing.mdx +++ b/docs/src/pages/docs/getting-started/app-router/with-i18n-routing.mdx @@ -336,6 +336,7 @@ export default function IndexPage({params: {locale}}) { 1. The locale that you pass to `setRequestLocale` should be validated (e.g. in your [root layout](#layout)). 2. You need to call this function in every page and every layout that you intend to enable static rendering for since Next.js can render layouts and pages independently. +3. `setRequestLocale` needs to be called before you invoke any functions from `next-intl` like `useTranslations` or `getMessages`.
How does setRequestLocale work?