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
+11 -3
View File
@@ -1,19 +1,27 @@
import type { Metadata } from "next";
import { getLocale } from "next-intl/server";
import { ThemeProvider } from "@/components/theme-provider";
import { getDirection } from "@/lib/locale";
import "./globals.css";
export const metadata: Metadata = {
title: "moh-sass",
description: "Multilingual Next.js base project",
metadataBase: new URL(process.env.NEXT_PUBLIC_SITE_URL ?? "https://mohfarawati.de"),
};
export default function RootLayout({
export default async function RootLayout({
children,
}: Readonly<{
children: React.ReactNode;
}>) {
const locale = await getLocale().catch(() => "de");
return (
<html lang="de" suppressHydrationWarning>
<body>{children}</body>
<html lang={locale} dir={getDirection(locale)} suppressHydrationWarning>
<body>
<ThemeProvider>{children}</ThemeProvider>
</body>
</html>
);
}