feat(i18n): translate library page

This commit is contained in:
Julien Froidefond
2025-02-27 12:29:15 +01:00
parent ed8817d76c
commit 52a212ef07
9 changed files with 147 additions and 56 deletions

View File

@@ -9,7 +9,7 @@ export function I18nProvider({ children, locale }: PropsWithChildren<{ locale: s
// Synchroniser la langue avec celle du cookie côté client
if (typeof window !== "undefined") {
const localeCookie = document.cookie.split("; ").find((row) => row.startsWith("NEXT_LOCALE="));
console.log(localeCookie);
if (localeCookie) {
const locale = localeCookie.split("=")[1];
if (i18n.language !== locale) {