Finalize multilingual routing and translations
CI / quality (push) Waiting to run

This commit is contained in:
MOH
2026-03-07 14:10:30 +01:00
parent 1ad9ae9629
commit 7f4277d1d7
53 changed files with 2805 additions and 1382 deletions
+6 -6
View File
@@ -2,11 +2,11 @@ import type { ReactNode } from "react";
import { unstable_noStore as noStore } from "next/cache";
import { redirect } from "next/navigation";
import { Footer } from "@/components/footer";
import { Navbar } from "@/components/navbar";
import { SiteFooter } from "@/components/layout/site-footer";
import { SiteHeader } from "@/components/layout/site-header";
import { isAdminAuthenticated } from "@/lib/admin-auth";
import { getMaintenanceMode } from "@/lib/app-config";
import { resolveLocale } from "@/lib/site-data";
import { getLocalizedPath, resolveLocale } from "@/lib/locale";
type SiteLayoutProps = {
children: ReactNode;
@@ -26,14 +26,14 @@ export default async function SiteLayout({ children, params: { locale } }: SiteL
const authenticated = isAdminAuthenticated();
if (maintenanceEnabled && !authenticated) {
redirect(`/${localeKey}/coming-soon`);
redirect(getLocalizedPath(localeKey, "/coming-soon"));
}
return (
<div className="flex min-h-screen flex-col">
<Navbar isAdmin={authenticated} />
<SiteHeader isAdmin={authenticated} />
<main className="flex-1">{children}</main>
<Footer isAdmin={authenticated} />
<SiteFooter isAdmin={authenticated} />
</div>
);
}