feat(i18n): implement translation basis

This commit is contained in:
2026-04-14 22:23:33 +02:00
parent f0cbc758d9
commit 7ee9adcc9e
13 changed files with 525 additions and 20 deletions
+18 -15
View File
@@ -1,10 +1,11 @@
import type { Metadata } from "next";
import { Geist, Geist_Mono, Inter } from "next/font/google";
import "./globals.css";
import "../globals.css";
import { cn } from "@/lib/utils";
import { ThemeProvider } from "../components/theme-provider";
import BackgroundEffects from "../components/custom/background-effects";
import Navbar from "../components/custom/navbar";
import { ThemeProvider } from "../../components/theme-provider";
import BackgroundEffects from "../../components/custom/background-effects";
import Navbar from "../../components/custom/navbar";
import { NextIntlClientProvider } from "next-intl";
const inter = Inter({subsets:['latin'],variable:'--font-sans'});
@@ -34,17 +35,19 @@ export default function RootLayout({
className={cn("h-full", "antialiased", geistSans.variable, geistMono.variable, "font-sans", inter.variable)}
>
<body className="min-h-screen relative isolate flex flex-col">
<ThemeProvider
attribute="class"
defaultTheme="system"
enableSystem
>
<BackgroundEffects />
<Navbar/>
<div className="relative z-10 flex-1">
{children}
</div>
</ThemeProvider>
<NextIntlClientProvider>
<ThemeProvider
attribute="class"
defaultTheme="system"
enableSystem
>
<BackgroundEffects />
<Navbar/>
<div className="relative z-10 flex-1">
{children}
</div>
</ThemeProvider>
</NextIntlClientProvider>
</body>
</html>
);