diff --git a/packages/features/auth/lib/getLocale.ts b/packages/features/auth/lib/getLocale.ts index ec77edab69..9fad1bb7c4 100644 --- a/packages/features/auth/lib/getLocale.ts +++ b/packages/features/auth/lib/getLocale.ts @@ -29,5 +29,5 @@ export const getLocale = async (req: GetTokenParams["req"]): Promise => const languages = acceptLanguage ? parse(acceptLanguage) : []; - return languages[0]?.code || "en"; + return languages.length === 1 && languages[0].code === "*" ? "en" : languages[0]?.code ?? "en"; };