mirror of
https://github.com/lukevella/rallly.git
synced 2025-06-18 18:41:51 +02:00
Add pt and ko locales (#288)
This commit is contained in:
parent
f21eaa92cf
commit
4176d8e1a6
13 changed files with 416 additions and 2 deletions
|
@ -1,7 +1,17 @@
|
|||
import languageParser from "accept-language-parser";
|
||||
import { NextRequest, NextResponse } from "next/server";
|
||||
|
||||
const supportedLocales = ["en", "es", "de", "fr", "it", "sv", "pt-BR"];
|
||||
const supportedLocales = [
|
||||
"en",
|
||||
"es",
|
||||
"de",
|
||||
"fr",
|
||||
"it",
|
||||
"ko",
|
||||
"sv",
|
||||
"pt",
|
||||
"pt-BR",
|
||||
];
|
||||
|
||||
export function middleware({ headers, cookies, nextUrl }: NextRequest) {
|
||||
const newUrl = nextUrl.clone();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue