Add italian locale (#276)

This commit is contained in:
Luke Vella 2022-08-06 13:07:40 +01:00 committed by GitHub
parent 2648be9b0a
commit 49f31d4904
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 201 additions and 3 deletions

View file

@ -1,7 +1,7 @@
import languageParser from "accept-language-parser";
import { NextRequest, NextResponse } from "next/server";
const supportedLocales = ["en", "es", "de", "fr", "sv", "pt-BR"];
const supportedLocales = ["en", "es", "de", "fr", "it", "sv", "pt-BR"];
export function middleware({ headers, cookies, nextUrl }: NextRequest) {
const newUrl = nextUrl.clone();