translation updated
This commit is contained in:
@@ -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")}
|
||||
</button>
|
||||
</div>
|
||||
)}
|
||||
|
||||
{/* O'lcham filtri */}
|
||||
{/* {visibleSectionNumber && visibleSectionNumber.length > 0 && (
|
||||
<div className="bg-gray-500 rounded-lg">
|
||||
<p className="bg-red-500 text-white p-2 font-semibold font-almarai text-lg rounded-t-lg">
|
||||
O'lcham
|
||||
</p>
|
||||
<div className="lg:space-y-3 space-x-6 lg:p-2 p-5 flex lg:flex-col overflow-x-auto lg:overflow-x-hidden items-start justify-start w-full">
|
||||
{visibleSectionNumber.map((item: any) => (
|
||||
<div
|
||||
key={item.id}
|
||||
onClick={() => 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"
|
||||
>
|
||||
<span
|
||||
className={`flex h-5 w-5 items-center justify-center rounded border-2 transition ${
|
||||
hasData(item.name)
|
||||
? "border-red-600 bg-red-600"
|
||||
: "border-gray-400 bg-transparent"
|
||||
}`}
|
||||
aria-label="Filter checkbox"
|
||||
>
|
||||
{hasData(item.name) && (
|
||||
<Check className="h-3 w-3 text-white" strokeWidth={3} />
|
||||
)}
|
||||
</span>
|
||||
<p>{item.name}</p>
|
||||
</div>
|
||||
))}
|
||||
</div>
|
||||
<button
|
||||
onClick={() => setNumberExpanded(!numberExpanded)}
|
||||
className="lg:flex hidden p-2 text-lg underline hover:text-red-300 transition"
|
||||
>
|
||||
{numberExpanded ? "Yashirish" : "Ko'proq ko'rish"}
|
||||
</button>
|
||||
</div>
|
||||
)} */}
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -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 (
|
||||
<Link
|
||||
@@ -121,7 +122,7 @@ export default function ProductCard({
|
||||
uppercase
|
||||
font-medium
|
||||
">
|
||||
Batafsil
|
||||
{ t("home.services.learnmore")}
|
||||
</span>
|
||||
|
||||
{/* Arrow */}
|
||||
|
||||
@@ -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"
|
||||
}
|
||||
|
||||
@@ -425,5 +425,7 @@
|
||||
"clear_all": "Очистить всё",
|
||||
"image_not_found": "Изображение отсутствует",
|
||||
"loading_error": "Произошла ошибка при загрузке данных",
|
||||
"products_not_found": "Товары не найдены"
|
||||
"products_not_found": "Товары не найдены",
|
||||
"hide": "Скрыть",
|
||||
"show_more": "Показать больше"
|
||||
}
|
||||
|
||||
@@ -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"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user