feat(i18n): localize shell and common UI

This commit is contained in:
2026-06-11 17:54:56 +02:00
parent c3cf4182ad
commit 2fa6611719
15 changed files with 477 additions and 136 deletions
+6 -1
View File
@@ -3,6 +3,7 @@ import { Toaster } from "sonner"
import Navbar from "@/components/layout/navbar"
import AppSidebar from "@/components/layout/sidebar"
import { SidebarProvider } from "@/components/ui/sidebar"
import { getI18n } from "@/i18n/server"
import { auth } from "@/lib/auth"
export default async function LayoutDashboard({
@@ -11,10 +12,14 @@ export default async function LayoutDashboard({
children: React.ReactNode
}) {
const session = await auth()
const { dictionary } = await getI18n()
return (
<SidebarProvider>
<AppSidebar userRole={session?.user.role} />
<AppSidebar
copy={dictionary.layout.sidebar}
userRole={session?.user.role}
/>
<main className="w-full">
<Navbar />
<div className="flex-1 p-6">{children}</div>