language bug fixing

This commit is contained in:
nabijonovdavronbek619@gmail.com
2025-10-25 16:36:01 +05:00
parent abcccfbf4b
commit f19a20878e
8 changed files with 65 additions and 62 deletions

View File

@@ -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>
);