Skip to content

Commit

Permalink
feat(language): Add default redirect functionality to ES
Browse files Browse the repository at this point in the history
Implemented functionality to redirect to Spanish by default
  • Loading branch information
JE1999 committed May 11, 2024
1 parent 90d8872 commit afb9e38
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/middlewares/i18n.middleware.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,6 @@ function getLocale(request: NextRequest): string | undefined {
// Use negotiator and intl-localematcher to get best locale
let languages = new Negotiator({ headers }).languages(locales);

return matchLocale(languages, locales, i18n.defaultLocale);
// return matchLocale(languages, locales, i18n.defaultLocale);
return 'es';
}

0 comments on commit afb9e38

Please sign in to comment.