language bug fixing
This commit is contained in:
30
app/[lang]/layout.tsx
Normal file
30
app/[lang]/layout.tsx
Normal file
@@ -0,0 +1,30 @@
|
||||
// app/[lang]/layout.tsx
|
||||
import { dir } from "i18next";
|
||||
import Header from "@/components/nav_foot/header";
|
||||
import Navbar from "@/components/nav_foot/navbar";
|
||||
import Footer from "@/components/nav_foot/footer";
|
||||
import Contact from "@/components/pageParts/contact";
|
||||
import UpScrollIcon from "@/components/upScroll";
|
||||
|
||||
export default function LangLayout({
|
||||
children,
|
||||
params,
|
||||
}: Readonly<{
|
||||
children: React.ReactNode;
|
||||
params: { lang: "uz" | "ru" };
|
||||
}>) {
|
||||
return (
|
||||
<html lang={params.lang} dir={dir(params.lang)}>
|
||||
<body>
|
||||
<Header />
|
||||
<Navbar />
|
||||
{children}
|
||||
<section id="contact">
|
||||
<Contact />
|
||||
</section>
|
||||
<Footer />
|
||||
<UpScrollIcon />
|
||||
</body>
|
||||
</html>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user