client side i18n

This commit is contained in:
peintnermax
2024-10-09 10:31:10 +02:00
parent f2262666fb
commit 9633853bf0
32 changed files with 46 additions and 37 deletions

View File

@@ -31,7 +31,7 @@ export async function setLanguageCookie(language: string) {
// @ts-ignore
return cookiesList.set({
name: "NEXT_LOCALE",
value: JSON.stringify(language),
value: language,
httpOnly: true,
path: "/",
});