Skip to content

Commit

Permalink
fix: Attempt to solve Locale error
Browse files Browse the repository at this point in the history
  • Loading branch information
amaury1093 committed Dec 29, 2023
1 parent f555d11 commit d8cbfef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/middleware.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ function getLocale({ headers }: NextRequest): string {
headers: {
"accept-language": headers.get("accept-language") || undefined,
},
}).languages();
}).languages(locales);

return match(languages, locales, defaultLocale);
}

1 comment on commit d8cbfef

@vercel
Copy link

@vercel vercel bot commented on d8cbfef Dec 29, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.