We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 149bcbe commit 3b9e6c9Copy full SHA for 3b9e6c9
docs/src/pages/docs/getting-started/app-router/with-i18n-routing.mdx
@@ -223,12 +223,14 @@ The `locale` that was matched by the middleware is available via the `locale` pa
223
import {NextIntlClientProvider, hasLocale} from 'next-intl';
224
import {notFound} from 'next/navigation';
225
import {routing} from '@/i18n/routing';
226
-import type { PropsWithChildren } from 'react';
227
228
export default async function LocaleLayout({
229
children,
230
params
231
-}: PropsWithChildren<{ readonly params: Promise<{ locale: string }> }) {
+}: {
+ children: React.ReactNode;
232
+ params: Promise<{locale: string}>;
233
+}) {
234
// Ensure that the incoming `locale` is valid
235
const {locale} = await params;
236
if (!hasLocale(routing.locales, locale)) {
0 commit comments