Skip to content

Commit

Permalink
docs: Add missing import in code snippet (#1063 by @jazsouf)
Browse files Browse the repository at this point in the history
  • Loading branch information
jazsouf committed May 8, 2024
1 parent 0a19357 commit 9c15137
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions docs/pages/docs/getting-started/app-router.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,7 @@ export const config = {
The `locale` that was matched by the middleware is available via the `locale` param and can be used to configure the document language. Additionally, we can use this place to pass configuration from `i18n.ts` to Client Components via `NextIntlClientProvider`.

```tsx filename="app/[locale]/layout.tsx"
import {NextIntlClientProvider} from 'next-intl';
import {getMessages} from 'next-intl/server';

export default async function LocaleLayout({
Expand Down

0 comments on commit 9c15137

Please sign in to comment.