language bug fixing
This commit is contained in:
@@ -1,12 +1,7 @@
|
||||
// app/layout.tsx
|
||||
import type { Metadata } from "next";
|
||||
import { Geist, Geist_Mono } from "next/font/google";
|
||||
import { dir } from "i18next";
|
||||
import "./globals.css";
|
||||
import UpScrollIcon from "@/components/upScroll";
|
||||
import Contact from "@/components/pageParts/contact";
|
||||
import Footer from "@/components/nav_foot/footer";
|
||||
import Navbar from "@/components/nav_foot/navbar";
|
||||
import Header from "@/components/nav_foot/header";
|
||||
|
||||
const geistSans = Geist({
|
||||
variable: "--font-geist-sans",
|
||||
@@ -19,28 +14,17 @@ const geistMono = Geist_Mono({
|
||||
});
|
||||
|
||||
export const metadata: Metadata = {
|
||||
title: "Create Next App",
|
||||
description: "Generated by create next app",
|
||||
title: "My App",
|
||||
description: "Multilingual Next.js 15 App",
|
||||
};
|
||||
|
||||
export default function RootLayout({
|
||||
children,
|
||||
params,
|
||||
}: Readonly<{
|
||||
children: React.ReactNode;
|
||||
params: { lang: string };
|
||||
}>) {
|
||||
}: Readonly<{ children: React.ReactNode }>) {
|
||||
return (
|
||||
<html lang={params.lang} dir={dir(params.lang)}>
|
||||
<body>
|
||||
<Header />
|
||||
<Navbar />
|
||||
<html lang="uz">
|
||||
<body className={`${geistSans.variable} ${geistMono.variable} antialiased`}>
|
||||
{children}
|
||||
<section id="contact" className="">
|
||||
<Contact />
|
||||
</section>
|
||||
<Footer />
|
||||
<UpScrollIcon />
|
||||
</body>
|
||||
</html>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user