feat(i18n): localize shell and common UI
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user