From 0b9533d4b903a458f57027bf53a95e82c3df2e1c Mon Sep 17 00:00:00 2001 From: zojgame Date: Mon, 10 Jun 2024 14:29:09 +0500 Subject: [PATCH] fix arab --- src/components/UnitList.tsx | 14 +++++++--- .../Appartment/ParameterDescription.tsx | 26 +++++++++++++++---- 2 files changed, 32 insertions(+), 8 deletions(-) diff --git a/src/components/UnitList.tsx b/src/components/UnitList.tsx index c387941..e981f80 100644 --- a/src/components/UnitList.tsx +++ b/src/components/UnitList.tsx @@ -17,7 +17,11 @@ const UnitList = ({ units, startIndex = 0 }: UnitListProps) => { }`} >
-
+
{t("Unit")}
{t("Area (m)")}
@@ -29,8 +33,12 @@ const UnitList = ({ units, startIndex = 0 }: UnitListProps) => { i18n.language === "ar" ? "flex-row-reverse" : "" } ${index % 2 === 0 ? "bg-[#EAE5E0] rounded-lg" : ""}`} > -
{startIndex + index + 1}
-
+
{startIndex + index + 1}
+
{t(`${unit.title}`)}
{unit.value}
diff --git a/src/components/desktop/Appartment/ParameterDescription.tsx b/src/components/desktop/Appartment/ParameterDescription.tsx index 5421ebc..1ba4c34 100644 --- a/src/components/desktop/Appartment/ParameterDescription.tsx +++ b/src/components/desktop/Appartment/ParameterDescription.tsx @@ -3,7 +3,7 @@ import useStore from "../../../store/store"; const ParameterDescription = () => { const { currentVilla } = useStore(); - const [t] = useTranslation(); + const [t, i18n] = useTranslation(); return (
@@ -12,22 +12,38 @@ const ParameterDescription = () => {
-
+
{t("VillaTheme")}
{t(`${currentVilla && currentVilla.villaTheme}`)}
-
+
{t("Total no. of Bedrooms")}
{currentVilla && currentVilla.totalCountBedroms}
-
+
{t("PlotArea")}
{currentVilla && currentVilla.plotArea}
-
+
{t("Total Build up Area, m 2")}
{currentVilla && currentVilla.totalBuildUpArea}