feat(i18n): add locale dictionaries and pilot surfaces

This commit is contained in:
2026-06-11 04:55:47 +02:00
parent 2c6d6bffcd
commit ac3dfe69cd
15 changed files with 354 additions and 19 deletions
+5 -2
View File
@@ -2,6 +2,7 @@ import "@/styles/globals.css"
import type { Metadata } from "next"
import { Geist, Geist_Mono } from "next/font/google"
import { getI18n } from "@/i18n/server"
const geistSans = Geist({
variable: "--font-geist-sans",
@@ -18,13 +19,15 @@ export const metadata: Metadata = {
description: "Manage your inventory with ease",
}
export default function RootLayout({
export default async function RootLayout({
children,
}: Readonly<{
children: React.ReactNode
}>) {
const { locale } = await getI18n()
return (
<html lang="en">
<html lang={locale}>
<body
className={`${geistSans.variable} ${geistMono.variable} antialiased`}
>