From f19a20878e915ceaf3c0b2f89bb0977e3a108375 Mon Sep 17 00:00:00 2001 From: "nabijonovdavronbek619@gmail.com" Date: Sat, 25 Oct 2025 16:36:01 +0500 Subject: [PATCH] language bug fixing --- app/{ => [lang]}/[carType]/layout.tsx | 0 app/{ => [lang]}/[carType]/page.tsx | 0 app/[lang]/layout.tsx | 30 +++++++++++++++++++++++++++ app/[lang]/page.tsx | 23 ++++++++++++++++++++ app/globals.css | 15 -------------- app/layout.tsx | 28 ++++++------------------- app/page.tsx | 23 +++----------------- next.config.ts | 8 +++---- 8 files changed, 65 insertions(+), 62 deletions(-) rename app/{ => [lang]}/[carType]/layout.tsx (100%) rename app/{ => [lang]}/[carType]/page.tsx (100%) create mode 100644 app/[lang]/layout.tsx create mode 100644 app/[lang]/page.tsx diff --git a/app/[carType]/layout.tsx b/app/[lang]/[carType]/layout.tsx similarity index 100% rename from app/[carType]/layout.tsx rename to app/[lang]/[carType]/layout.tsx diff --git a/app/[carType]/page.tsx b/app/[lang]/[carType]/page.tsx similarity index 100% rename from app/[carType]/page.tsx rename to app/[lang]/[carType]/page.tsx diff --git a/app/[lang]/layout.tsx b/app/[lang]/layout.tsx new file mode 100644 index 0000000..9a69b7e --- /dev/null +++ b/app/[lang]/layout.tsx @@ -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 ( + + +
+ + {children} +
+ +
+