feat(i18n): add locale dictionaries and pilot surfaces
This commit is contained in:
+5
-2
@@ -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`}
|
||||
>
|
||||
|
||||
Reference in New Issue
Block a user