diff --git a/components/pages/products/filter/filter.tsx b/components/pages/products/filter/filter.tsx
index 72037b7..0f35baf 100644
--- a/components/pages/products/filter/filter.tsx
+++ b/components/pages/products/filter/filter.tsx
@@ -256,48 +256,10 @@ export default function Filter() {
className="lg:flex hidden p-2 text-lg underline hover:text-red-300 transition"
onClick={() => setDataExpanded(!dataExpanded)}
>
- {dataExpanded ? "Yashirish" : "Ko'proq ko'rish"}
+ {dataExpanded ? t("hide") : t("show_more")}
)}
-
- {/* O'lcham filtri */}
- {/* {visibleSectionNumber && visibleSectionNumber.length > 0 && (
-
-
- O'lcham
-
-
- {visibleSectionNumber.map((item: any) => (
-
toggleFilter(item)}
- className="hover:cursor-pointer flex items-center gap-2 w-auto shrink-0 hover:bg-gray-600 lg:p-2 rounded transition-colors"
- >
-
- {hasData(item.name) && (
-
- )}
-
-
{item.name}
-
- ))}
-
-
-
- )} */}
);
}
diff --git a/components/pages/products/product/productCard.tsx b/components/pages/products/product/productCard.tsx
index 3edec54..885dd49 100644
--- a/components/pages/products/product/productCard.tsx
+++ b/components/pages/products/product/productCard.tsx
@@ -1,6 +1,6 @@
"use client";
-import { useLocale } from "next-intl";
+import { useLocale, useTranslations } from "next-intl";
import Image from "next/image";
import Link from "next/link";
@@ -18,6 +18,7 @@ export default function ProductCard({
getProduct,
}: ProductCardProps) {
const locale = useLocale();
+ const t = useTranslations();
return (
- Batafsil
+ { t("home.services.learnmore")}
{/* Arrow */}
diff --git a/messages/en.json b/messages/en.json
index 97f5b18..cec596b 100644
--- a/messages/en.json
+++ b/messages/en.json
@@ -425,5 +425,7 @@
"clear_all": "Clear all",
"image_not_found": "Image not available",
"loading_error": "An error occurred while loading data",
- "products_not_found": "Products not found"
+ "products_not_found": "Products not found",
+ "hide": "Hide",
+ "show_more": "Show more"
}
diff --git a/messages/ru.json b/messages/ru.json
index 7f44429..afa437e 100644
--- a/messages/ru.json
+++ b/messages/ru.json
@@ -425,5 +425,7 @@
"clear_all": "Очистить всё",
"image_not_found": "Изображение отсутствует",
"loading_error": "Произошла ошибка при загрузке данных",
- "products_not_found": "Товары не найдены"
+ "products_not_found": "Товары не найдены",
+ "hide": "Скрыть",
+ "show_more": "Показать больше"
}
diff --git a/messages/uz.json b/messages/uz.json
index 93f6559..4d97252 100644
--- a/messages/uz.json
+++ b/messages/uz.json
@@ -425,5 +425,7 @@
"clear_all": "Barchasini tozalash",
"image_not_found": "Rasm mavjud emas",
"loading_error": "Ma'lumotlarni yuklashda xatolik yuz berdi",
- "products_not_found": "Mahsulotlar topilmadi"
+ "products_not_found": "Mahsulotlar topilmadi",
+ "hide":"Yashirish",
+ "show_more":"Ko'proq ko'rish"
}