diff --git a/app/[locale]/catalog_page/products/[slug]/page.tsx b/app/[locale]/catalog_page/products/[slug]/page.tsx
index e560189..7ccee8a 100644
--- a/app/[locale]/catalog_page/products/[slug]/page.tsx
+++ b/app/[locale]/catalog_page/products/[slug]/page.tsx
@@ -5,7 +5,6 @@ import { useProductPageInfo } from "@/store/useProduct";
import { useQuery } from "@tanstack/react-query";
import httpClient from "@/request/api";
import { endPoints } from "@/request/links";
-import { AlertCircle } from "lucide-react";
import { LoadingSkeleton } from "@/components/pages/products/slug/loading";
import { EmptyState } from "@/components/pages/products/slug/empty";
import { useEffect } from "react";
diff --git a/components/pages/products/slug/features.tsx b/components/pages/products/slug/features.tsx
index 9e1d14f..cb09cb1 100644
--- a/components/pages/products/slug/features.tsx
+++ b/components/pages/products/slug/features.tsx
@@ -1,4 +1,7 @@
+import { useTranslations } from "next-intl";
+
export function Features({ features }: { features: string[] }) {
+ const t = useTranslations();
if (!features || features.length === 0) {
return null;
}
@@ -6,14 +9,14 @@ export function Features({ features }: { features: string[] }) {
return (
- Xususiyatlar
+ {t("products.features")}
-
+
|
- Xususiyat
+ {t("products.feature")}
|
@@ -38,4 +41,4 @@ export function Features({ features }: { features: string[] }) {
);
-}
\ No newline at end of file
+}
diff --git a/components/pages/products/slug/rightSide.tsx b/components/pages/products/slug/rightSide.tsx
index ec18bcd..99ed69b 100644
--- a/components/pages/products/slug/rightSide.tsx
+++ b/components/pages/products/slug/rightSide.tsx
@@ -1,5 +1,6 @@
import { usePriceModalStore } from "@/store/useProceModalStore";
import { Instagram, Send, Share2 } from "lucide-react";
+import { useTranslations } from "next-intl";
interface RightSideProps {
id: number;
@@ -21,6 +22,7 @@ export function RightSide({
image,
}: RightSideProps) {
const openModal = usePriceModalStore((state) => state.openModal);
+ const t = useTranslations();
const handleGetPrice = () => {
openModal({
@@ -68,7 +70,7 @@ export function RightSide({
{/* Price */}
-
Narx:
+
{t("products.price")}:
${price}
@@ -79,14 +81,14 @@ export function RightSide({
onClick={handleGetPrice}
className="w-full bg-red-700 hover:bg-red-800 text-white font-bold py-4 px-6 rounded-lg transition-all duration-300 transform hover:scale-105 hover:shadow-lg hover:shadow-red-700/50"
>
- Xabar yuborish
+ {t("products.send")}
{/* Social Share */}
- Ulashish:
+ {t("products.share")}:
{/*
diff --git a/messages/en.json b/messages/en.json
index 27c9483..6f05adf 100644
--- a/messages/en.json
+++ b/messages/en.json
@@ -160,7 +160,12 @@
"subtitle": "Ignum Technology Ready",
"description": "We not only supply equipment but become a successful partner for every client."
},
- "ourproducts": "Our Products"
+ "ourproducts": "Our Products",
+ "price": "Price",
+ "send": "Send Message",
+ "share": "Share",
+ "features": "Features",
+ "feature": "Feature"
},
"faq": {
"banner": {
diff --git a/messages/ru.json b/messages/ru.json
index a71abeb..6192aff 100644
--- a/messages/ru.json
+++ b/messages/ru.json
@@ -160,7 +160,12 @@
"subtitle": "Технология Ignum Готова",
"description": "Мы не просто поставляем оборудование, мы становимся успешным партнером для каждого клиента."
},
- "ourproducts": "Наши продукты"
+ "ourproducts": "Наши продукты",
+ "price": "Цена",
+ "send": "Отправить сообщение",
+ "share": "Поделиться",
+ "features": "Характеристики",
+ "feature": "Характеристика"
},
"faq": {
"banner": {
diff --git a/messages/uz.json b/messages/uz.json
index ac56ed0..704aa2b 100644
--- a/messages/uz.json
+++ b/messages/uz.json
@@ -160,7 +160,12 @@
"subtitle": "Ignum Texnologiyasi Tayyor",
"description": "Biz nafaqat uskunalar yetkazib beramiz, balki har bir mijozning muvaffaqiyatli hamkoriga aylanamiz."
},
- "ourproducts": "Bizning mahsulotlarimiz"
+ "ourproducts": "Bizning mahsulotlarimiz",
+ "price":"Narx",
+ "send":"Xabar yuborish",
+ "share":"Ulashish",
+ "features":"Xususiyatlar",
+ "feature":"Xususiyat"
},
"faq": {
"banner": {