Skip to content

Commit

Permalink
docs: Fix code sample in blog post
Browse files Browse the repository at this point in the history
  • Loading branch information
amannn committed Oct 21, 2024
1 parent c2b7182 commit 94bc964
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/pages/blog/next-intl-3-22.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ export default getRequestConfig(async ({
+ requestLocale
}) => {
+ // This typically corresponds to the `[locale]` segment
+ const locale = await requestLocale;
+ let locale = await requestLocale;

- // Validate that the incoming `locale` parameter is valid
- if (!routing.locales.includes(locale as any)) notFound();
Expand Down

0 comments on commit 94bc964

Please sign in to comment.