Add czech locale (#339)

This commit is contained in:
Luke Vella 2022-10-26 15:10:36 +01:00 committed by GitHub
parent 2092fa639b
commit 0280489e22
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 212 additions and 15 deletions

View file

@ -2,20 +2,21 @@ import languageParser from "accept-language-parser";
import { NextRequest, NextResponse } from "next/server";
const supportedLocales = [
"en",
"es",
"cs",
"da",
"de",
"en",
"es",
"fr",
"hu",
"it",
"ko",
"nl",
"sv",
"hu",
"zh",
"pt",
"pt-BR",
"pl",
"pt-BR",
"pt",
"sv",
"zh",
];
export function middleware({ headers, cookies, nextUrl }: NextRequest) {