-
-
Notifications
You must be signed in to change notification settings - Fork 310
Closed
Labels
documentationImprovements or additions to documentationImprovements or additions to documentation
Description
Link to page
https://next-intl-docs.vercel.app/docs/getting-started/app-router/with-i18n-routing#layout
Describe the problem
The change required is pretty simple as it's just the following:
export default async function LocaleLayout({
children,
- params: {locale},
+ params,
}: {
children: React.ReactNode;
- params: {locale: string};
+ params: Promise<{locale: string}>;
}) {
+ const locale = (await params).locale;
// ...
The issue is that the docs wouldn't be correct for Next 14 if this diff was to be applied. As such I didn't want to open a PR straight away and wanted to start a conversation how to proceed here from a UX-perspective.
- Should two tabs be introduced like in this example to distinguish Next 14 and 15? https://next-intl-docs.vercel.app/docs/getting-started/app-router/without-i18n-routing#next-config
- Should a separate page for v15 be introduced?
- Should a short paragraph be added that explains this particular required diff?
hugok2k, intelryzen, EdwardBock, niksimFS24, MikeAwad662442 and 12 morepdovhomilja
Metadata
Metadata
Assignees
Labels
documentationImprovements or additions to documentationImprovements or additions to documentation