From e6a7e5cb722b7e463d32854d19799227699c6118 Mon Sep 17 00:00:00 2001 From: Reza_ashrafi Date: Wed, 1 Jun 2022 21:26:02 +0430 Subject: [PATCH 01/11] update ar1.json and src/views/Home/Download/index.js --- src/views/Home/Download/index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/views/Home/Download/index.js b/src/views/Home/Download/index.js index e578a45..b04636f 100644 --- a/src/views/Home/Download/index.js +++ b/src/views/Home/Download/index.js @@ -9,7 +9,8 @@ const H_DownloadApp = () => { {window.innerWidth > 1000 ? (
- لذت یادگیری را با")}{window.t("دانوین")} تجربه کنید")}{" "} + {window.t("لذت یادگیری را با")} + {window.t("دانوین")} {window.t("تجربه کنید")}
From 95d883d4270e161ddd72b185dcb39bd78edb5c85 Mon Sep 17 00:00:00 2001 From: Reza_ashrafi Date: Wed, 1 Jun 2022 22:13:32 +0430 Subject: [PATCH 02/11] update src/views/Home/Download/index.js, src/views/Home/HomeSlider/Simple/index.js and src/views/Home/SingleBlog/index.js --- src/views/Home/Download/index.js | 8 ++++---- src/views/Home/HomeSlider/Simple/index.js | 4 ++-- src/views/Home/SingleBlog/index.js | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/views/Home/Download/index.js b/src/views/Home/Download/index.js index b04636f..8539001 100644 --- a/src/views/Home/Download/index.js +++ b/src/views/Home/Download/index.js @@ -28,10 +28,10 @@ const H_DownloadApp = () => {
- دریافت اپلیکیشن اختصاصی دانوین")} + {window.t("دریافت اپلیکیشن اختصاصی دانوین")}
- به راحتی از همین جا دانلود کنید... + {window.t("به راحتی از همین جا دانلود کنید...")}
{
- دریافت اپلیکیشن اختصاصی دانوین")} + {window.t("دریافت اپلیکیشن اختصاصی دانوین")}
- به راحتی از همین جا دانلود کنید... + {window.t("به راحتی از همین جا دانلود کنید...")}
- {data.price} تومان")} + {data.price} {window.t("تومان")} ) : ( @@ -57,7 +57,7 @@ export default class Simple extends Component { style={{ fontSize: fontSize.desktop.notAvailable }} className="slider-simple__notAvailabe" > - ناموجود")}{" "} + {window.t("ناموجود")} )} diff --git a/src/views/Home/SingleBlog/index.js b/src/views/Home/SingleBlog/index.js index a9177f1..6ddba55 100644 --- a/src/views/Home/SingleBlog/index.js +++ b/src/views/Home/SingleBlog/index.js @@ -32,7 +32,7 @@ export default class SingleBlog extends Component { style={{ fontSize: fontSize.desktop.a }} to={"/blogs/" + data.id} > - ادامه مطلب")}{" "} + {window.t("ادامه مطلب")}
Date: Wed, 1 Jun 2022 22:19:31 +0430 Subject: [PATCH 03/11] update 5 files --- src/views/Product/AddToCart/index.js | 14 ++++++++------ src/views/Product/BreadCrumb/index.js | 4 ++-- src/views/Products/BreadCrumb/index.js | 4 ++-- src/views/Products/Product/index.js | 8 +++++--- 4 files changed, 17 insertions(+), 13 deletions(-) diff --git a/src/views/Product/AddToCart/index.js b/src/views/Product/AddToCart/index.js index 55ba432..46d6527 100644 --- a/src/views/Product/AddToCart/index.js +++ b/src/views/Product/AddToCart/index.js @@ -71,13 +71,13 @@ function AddToCart(props) { {price} {" "} - تومان")} + {window.t("تومان")}
{off ? ( - {off} تومان تخفیف")} + {off} {window.t("تومان تخفیف")} ) : null} @@ -89,7 +89,7 @@ function AddToCart(props) { style={{ fontSize: fontSize.desktop.button }} className="product-addtocart__box--sampleButton" > - مشاهده نمونه کتاب")} + {window.t("مشاهده نمونه کتاب")} - افزودن به سبد خرید")} + {window.t("افزودن به سبد خرید")}
@@ -143,7 +143,9 @@ function AddToCart(props) { to="/page/privacy" style={{ fontSize: "13px", margin: 0, padding: 0 }} > - شرایط استفاده از دانوین و حریم خصوصی را مطالعه کرده ام")} + {window.t( + "شرایط استفاده از دانوین و حریم خصوصی را مطالعه کرده ام" + )}
@@ -152,7 +154,7 @@ function AddToCart(props) { to="/page/returning" style={{ fontSize: "13px", margin: 0, padding: 0 }} > - شرایط مرجوع کردن کالا در دانوین")} + {window.t("شرایط مرجوع کردن کالا در دانوین")}
diff --git a/src/views/Product/BreadCrumb/index.js b/src/views/Product/BreadCrumb/index.js index 2c268b6..d8e05ef 100644 --- a/src/views/Product/BreadCrumb/index.js +++ b/src/views/Product/BreadCrumb/index.js @@ -22,7 +22,7 @@ export default function ActiveLastBreadcrumb(props) { }} to={"/"} > - صفحه اصلی")}{" "} + {window.t("صفحه اصلی")}{" "} - محصولات")}{" "} + {window.t("محصولات")}{" "} - صفحه اصلی")}{" "} + {window.t("صفحه اصلی")}{" "} - محصولات")}{" "} + {window.t("محصولات")}{" "} ); diff --git a/src/views/Products/Product/index.js b/src/views/Products/Product/index.js index 053387c..7ef9b2e 100644 --- a/src/views/Products/Product/index.js +++ b/src/views/Products/Product/index.js @@ -66,8 +66,10 @@ function Product(props) { to={`/products/physical/${product.id}`} className="mobile-products-product__links--physical d-flex justify-content-between align-items-center" > -

نسخه چاپی")}

- {product.product[0].price} تومان")} +

{window.t("نسخه چاپی")}

+ + {product.product[0].price} {window.t("تومان")} +

{window.t("نسخه چاپی")}

- {product.product[0].price} تومان")} + {product.product[0].price} {window.t("تومان")}
Date: Wed, 1 Jun 2022 22:26:53 +0430 Subject: [PATCH 04/11] update 5 files --- public/ar1.json | 3 ++- src/views/AR/BreadCrumb/index.js | 4 ++-- src/views/Auth/Login/Timer/index.js | 4 ++-- src/views/Auth/Profile/Document/index.js | 4 ++-- src/views/Auth/Profile/index.js | 12 ++++++++---- 5 files changed, 16 insertions(+), 11 deletions(-) diff --git a/public/ar1.json b/public/ar1.json index b5e4e8f..e3b0f30 100644 --- a/public/ar1.json +++ b/public/ar1.json @@ -299,5 +299,6 @@ "قبل": "قبل", "بعد": "التالي", "متن": "نص", - "شو": "تبين" + "شو": "تبين", + "ذخیره": "متجر" } diff --git a/src/views/AR/BreadCrumb/index.js b/src/views/AR/BreadCrumb/index.js index faf9e5f..b9bb5f2 100644 --- a/src/views/AR/BreadCrumb/index.js +++ b/src/views/AR/BreadCrumb/index.js @@ -21,7 +21,7 @@ export default function ActiveLastBreadcrumb(props) { }} to={"/"} > - صفحه اصلی")}{" "} + {window.t("صفحه اصلی")}{" "} - واقعیت افزوده")}{" "} + {window.t("واقعیت افزوده")}{" "} ); diff --git a/src/views/Auth/Login/Timer/index.js b/src/views/Auth/Login/Timer/index.js index 4afeaa8..57ad1b6 100644 --- a/src/views/Auth/Login/Timer/index.js +++ b/src/views/Auth/Login/Timer/index.js @@ -78,7 +78,7 @@ export default class Timer extends Component { fontFamily: "numeralLight", }} > - زمان باقیمانده تا انقضای کد: + {window.t("زمان باقیمانده تا انقضای کد:")}
{this.state.time.s} @@ -98,7 +98,7 @@ export default class Timer extends Component { fontSize: fontSize.mobile.div, }} > - زمان باقیمانده تا انقضای کد")}{" "} + {window.t("زمان باقیمانده تا انقضای کد:")}{" "}
- گواهی تدریس خود را آپلود کنید. + {window.t("گواهی تدریس خود را آپلود کنید.")} ) : ( @@ -77,7 +77,7 @@ export default function Document(props) { margin: "auto", }} > - گواهی تدریس خود را آپلود کنید. + {window.t("گواهی تدریس خود را آپلود کنید.")} ) : ( diff --git a/src/views/Auth/Profile/index.js b/src/views/Auth/Profile/index.js index 246d85a..ada469c 100644 --- a/src/views/Auth/Profile/index.js +++ b/src/views/Auth/Profile/index.js @@ -185,10 +185,10 @@ class Profile extends Component {

- حساب کاربری")} + {window.t("حساب کاربری")}

- لطفا مشخصات خود را به صورت کامل نمایید. + {window.t("لطفا مشخصات خود را به صورت کامل نمایید.")}

- +
@@ -562,7 +564,9 @@ class Profile extends Component { defaultValue={profile} />
- {" "} + {" "}
From ace663b4742a4307ab3ed3305d4ce705e874fafd Mon Sep 17 00:00:00 2001 From: Reza_ashrafi Date: Wed, 1 Jun 2022 22:28:46 +0430 Subject: [PATCH 05/11] update src/views/Blog/BreadCrumb/index.js --- src/views/Blog/BreadCrumb/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/views/Blog/BreadCrumb/index.js b/src/views/Blog/BreadCrumb/index.js index 4d60f2d..6107db0 100644 --- a/src/views/Blog/BreadCrumb/index.js +++ b/src/views/Blog/BreadCrumb/index.js @@ -23,7 +23,7 @@ export default function ActiveLastBreadcrumb(props) { }} to={"/"} > - صفحه اصلی")}{" "} + {window.t("صفحه اصلی")}{" "} {isblog ? ( - وبلاگ")} + {window.t("وبلاگ")} ) : null} Date: Wed, 1 Jun 2022 22:29:29 +0430 Subject: [PATCH 06/11] update src/views/Blogs/BreadCrumb/index.js --- src/views/Blogs/BreadCrumb/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/views/Blogs/BreadCrumb/index.js b/src/views/Blogs/BreadCrumb/index.js index 6e6bb61..42812da 100644 --- a/src/views/Blogs/BreadCrumb/index.js +++ b/src/views/Blogs/BreadCrumb/index.js @@ -22,7 +22,7 @@ export default function ActiveLastBreadcrumb() { }} // onClick={handleClick} > - صفحه اصلی")}{" "} + {window.t("صفحه اصلی")}{" "} - وبلاگ")} + {window.t("وبلاگ")} ); From 608dc3dbc6f2a1b419652d470ca4ef978f4f4d00 Mon Sep 17 00:00:00 2001 From: Reza_ashrafi Date: Wed, 1 Jun 2022 22:32:47 +0430 Subject: [PATCH 07/11] update en.json and src/views/Cart/Table/index.js --- public/en.json | 3 ++- src/views/Cart/Table/index.js | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/public/en.json b/public/en.json index ba536c6..608770e 100644 --- a/public/en.json +++ b/public/en.json @@ -299,5 +299,6 @@ "قبل": "Before", "بعد": "Next", "متن": "Text", - "شو": "show" + "شو": "show", + "ذخیره": "save" } diff --git a/src/views/Cart/Table/index.js b/src/views/Cart/Table/index.js index ab2ad19..94d714a 100644 --- a/src/views/Cart/Table/index.js +++ b/src/views/Cart/Table/index.js @@ -209,7 +209,7 @@ const Item = (props) => { {`پایه ${grades[data.product.book.gradeId]}`}

- همراه با: + {window.t("همراه با:")} {data.product.book.items || window.t("کد فعالسازی محتوای الکترونیک")} @@ -335,7 +335,7 @@ const Item = (props) => { {`پایه ${grades[data.product?.book?.gradeId]}`}

- همراه با: + {window.t("همراه با:")} {data.product?.book?.items || window.t("کد فعالسازی محتوای الکترونیک")} From ceb9ee26c033f0d378d60967350a6e7b84c0ce26 Mon Sep 17 00:00:00 2001 From: Reza_ashrafi Date: Wed, 1 Jun 2022 22:36:00 +0430 Subject: [PATCH 08/11] update src/views/QR/Image/index.js and src/views/Support/index.js --- src/views/QR/Image/index.js | 2 +- src/views/Support/index.js | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/src/views/QR/Image/index.js b/src/views/QR/Image/index.js index 7456f23..41fa781 100644 --- a/src/views/QR/Image/index.js +++ b/src/views/QR/Image/index.js @@ -223,7 +223,7 @@ export default function QRImage(props) {

- عکس‌ها")}{" "} + {window.test("عکس‌ها")}{" "}

{desktopImages()}
diff --git a/src/views/Support/index.js b/src/views/Support/index.js index 3e2aaa5..42aa27b 100644 --- a/src/views/Support/index.js +++ b/src/views/Support/index.js @@ -142,7 +142,12 @@ class Support extends Component { parent={this} /> ) : null} - + Date: Wed, 1 Jun 2022 22:36:08 +0430 Subject: [PATCH 09/11] update src/views/QR/Image/index.js --- src/views/QR/Image/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/views/QR/Image/index.js b/src/views/QR/Image/index.js index 41fa781..5fe9910 100644 --- a/src/views/QR/Image/index.js +++ b/src/views/QR/Image/index.js @@ -223,7 +223,7 @@ export default function QRImage(props) {

- {window.test("عکس‌ها")}{" "} + {window.t("عکس‌ها")}{" "}

{desktopImages()}
From a00871dcfd0c378a3fcece2fe70417ce3ac1f12a Mon Sep 17 00:00:00 2001 From: Reza_ashrafi Date: Wed, 1 Jun 2022 22:43:12 +0430 Subject: [PATCH 10/11] update 6 files --- src/views/Product/Comment/Reply/index.js | 2 +- src/views/Product/Gallery/Modal/index.js | 2 +- src/views/Product/MaterialModal/index.js | 4 ++-- src/views/Products/List/index.js | 2 +- src/views/Products/Product/index.js | 2 +- src/views/Products/index.js | 2 +- 6 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/views/Product/Comment/Reply/index.js b/src/views/Product/Comment/Reply/index.js index 2359cef..8ac866a 100644 --- a/src/views/Product/Comment/Reply/index.js +++ b/src/views/Product/Comment/Reply/index.js @@ -16,7 +16,7 @@ const Replay = (props) => { {window.innerWidth > 1000 ? (
- پاسخ مدیریت سایت")}{" "} + {window.t("پاسخ مدیریت سایت")}{" "}

{props.data}

diff --git a/src/views/Product/Gallery/Modal/index.js b/src/views/Product/Gallery/Modal/index.js index dd120a8..b56d87f 100644 --- a/src/views/Product/Gallery/Modal/index.js +++ b/src/views/Product/Gallery/Modal/index.js @@ -16,7 +16,7 @@ const Modal = (props) => { خروح setModal(null)} />
diff --git a/src/views/Product/MaterialModal/index.js b/src/views/Product/MaterialModal/index.js index 84f9851..bc84504 100644 --- a/src/views/Product/MaterialModal/index.js +++ b/src/views/Product/MaterialModal/index.js @@ -83,13 +83,13 @@ function SimpleModal(props) { style={{ marginTop: 20, borderRadius: 6, padding: 8 }} onClick={() => submitComment()} > - ثبت")}{" "} + {window.t("ثبت")}{" "}
); diff --git a/src/views/Products/List/index.js b/src/views/Products/List/index.js index 7e19f9f..75731fc 100644 --- a/src/views/Products/List/index.js +++ b/src/views/Products/List/index.js @@ -53,7 +53,7 @@ class List extends React.Component { align="center" style={{ margin: "20px auto", color: "gray" }} > - محصولی با این مشخصات یافت نشد")}{" "} + {window.t("محصولی با این مشخصات یافت نشد")}{" "}
) ) : ( diff --git a/src/views/Products/Product/index.js b/src/views/Products/Product/index.js index 7ef9b2e..62bda76 100644 --- a/src/views/Products/Product/index.js +++ b/src/views/Products/Product/index.js @@ -134,7 +134,7 @@ function Product(props) { alt={product.name} />

- {`${product.name} پایه ${grades[product.gradeId]}`} + {`${product.name} ${window.t("پایه")} ${grades[product.gradeId]}`}

diff --git a/src/views/Products/index.js b/src/views/Products/index.js index 8e0dfe7..4802473 100644 --- a/src/views/Products/index.js +++ b/src/views/Products/index.js @@ -131,7 +131,7 @@ class Products extends Component { textAlign: "center", }} > - سبد خرید")}{" "} + {window.t("سبد خرید")}{" "}
From 3a92b55db1f07642ee01a9a1c07cd9e601ca5ccc Mon Sep 17 00:00:00 2001 From: Reza_ashrafi Date: Wed, 1 Jun 2022 23:07:19 +0430 Subject: [PATCH 11/11] update 12 files --- src/views/ChatRoom/Header/index.js | 6 ++-- src/views/Checkout/Discount/index.js | 8 ++--- src/views/Checkout/Factor/index.js | 30 +++++++++++-------- src/views/Checkout/Table/index.js | 9 ++++-- src/views/Download/BreadCrumb/index.js | 4 +-- src/views/Download/index.js | 7 +++-- src/views/Faq/index.js | 2 +- src/views/Home/HomeScroll/Product/index.js | 4 +-- src/views/Home/HomeSearch/index.js | 2 +- .../Mobile/NavbarDrawer/NavbarDrawer.js | 12 ++++++-- src/views/Home/Navbar/Mobile/index.js | 2 +- src/views/NewProfile/index.js | 6 ++-- 12 files changed, 56 insertions(+), 36 deletions(-) diff --git a/src/views/ChatRoom/Header/index.js b/src/views/ChatRoom/Header/index.js index f36ff51..52ba59c 100644 --- a/src/views/ChatRoom/Header/index.js +++ b/src/views/ChatRoom/Header/index.js @@ -83,19 +83,19 @@ class Header extends Component { className="fontLight menu" onClick={() => this.handleClose()} > - پروفایل")} + {window.t("پروفایل")} this.handleClose()} > - حساب کاربری")}{" "} + {window.t("حساب کاربری")}{" "} this.handleClose()} > - خروج")}{" "} + {window.t("خروج")}{" "} diff --git a/src/views/Checkout/Discount/index.js b/src/views/Checkout/Discount/index.js index 13cfb1c..29b4f66 100644 --- a/src/views/Checkout/Discount/index.js +++ b/src/views/Checkout/Discount/index.js @@ -34,7 +34,7 @@ const DiscoutCode = ({ codeId, setCodeId, userId, factorId }) => { {window.t("کد تخفیف")}

- اگر کد تخفیفی دارید آن را در کادر زیر وارد نمائید")}{" "} + {window.t("اگر کد تخفیفی دارید آن را در کادر زیر وارد نمائید")}{" "}

{ style={{ fontSize: fontSize.desktop.button }} onClick={setOff} > - ثبت کد")}{" "} + {window.t("ثبت کد")}{" "}
@@ -58,7 +58,7 @@ const DiscoutCode = ({ codeId, setCodeId, userId, factorId }) => { {window.t("کد تخفیف")}

- اگر کد تخفیفی دارید آن را در کادر زیر وارد نمائید{" "} + {window.t("اگر کد تخفیفی دارید آن را در کادر زیر وارد نمائید")}{" "}

{ style={{ fontSize: fontSize.mobile.button }} onClick={setOff} > - ثبت کد")}{" "} + {window.t("ثبت کد")}{" "}
diff --git a/src/views/Checkout/Factor/index.js b/src/views/Checkout/Factor/index.js index 0351f51..de6c7e4 100644 --- a/src/views/Checkout/Factor/index.js +++ b/src/views/Checkout/Factor/index.js @@ -33,22 +33,28 @@ const Factor = (props) => {
{window.t("مبلغ سبد خرید")} - {factorInfo.sumPrice} تومان")} + + {factorInfo.sumPrice} {window.t("تومان")} +
{window.t("هزینه ارسال")} {factorInfo.transportPrice} - تومان")} + {window.t("تومان")}
{window.t("میزان تخفیف")} - {factorInfo.offPrice} تومان")} + + {factorInfo.offPrice} {window.t("تومان")} +
{window.t("مالیات بر ارزش افزوده")} - {factorInfo.vatPrice} تومان")} + + {factorInfo.vatPrice} {window.t("تومان")} +
) : null} @@ -56,35 +62,35 @@ const Factor = (props) => {
- مبلغ سبد خرید")}{" "} + {window.t("مبلغ سبد خرید")}{" "} - {factorInfo.sumPrice} تومان")} + {factorInfo.sumPrice} {window.t("تومان")}
- هزینه ارسال")} + {window.t("هزینه ارسال")} {factorInfo.transportPrice} - تومان")} + {window.t("تومان")}
- میزان تخفیف")} + {window.t("میزان تخفیف")} - {factorInfo.offPrice} تومان")} + {factorInfo.offPrice} {window.t("تومان")}
- مالیات بر ارزش افزوده")}{" "} + {window.t("مالیات بر ارزش افزوده")}{" "} - {factorInfo.vatPrice} تومان")} + {factorInfo.vatPrice} {window.t("تومان")}
diff --git a/src/views/Checkout/Table/index.js b/src/views/Checkout/Table/index.js index d2664bd..5fbf05f 100644 --- a/src/views/Checkout/Table/index.js +++ b/src/views/Checkout/Table/index.js @@ -178,12 +178,15 @@ const Item = (props) => {
- {data.product.price * data.count || "1000"} تومان")} + {data.product.price * data.count || "1000"}{" "} + {window.t("تومان")}
{route === "cart" ? (
- {data.count} عدد")} + + {data.count} {window.t("عدد")} +
) : null}
@@ -191,7 +194,7 @@ const Item = (props) => { {route === "callback" ? ( - {data.count} عدد")}{" "} + {data.count} {window.t("عدد")}{" "} ) : null} diff --git a/src/views/Download/BreadCrumb/index.js b/src/views/Download/BreadCrumb/index.js index d168efc..88ca3e4 100644 --- a/src/views/Download/BreadCrumb/index.js +++ b/src/views/Download/BreadCrumb/index.js @@ -21,7 +21,7 @@ export default function ActiveLastBreadcrumb(props) { }} to={"/"} > - صفحه اصلی")}{" "} + {window.t("صفحه اصلی")}{" "} - دریافت افزونه واقعیت افزوده")}{" "} + {window.t("دریافت افزونه واقعیت افزوده")}{" "} ); diff --git a/src/views/Download/index.js b/src/views/Download/index.js index 62a5c3d..b068f08 100644 --- a/src/views/Download/index.js +++ b/src/views/Download/index.js @@ -59,8 +59,9 @@ class AR extends Component { : fontSize.mobile.p, }} > - برای استفاده از بخش واقعیت افزوده می بایست افزونه آن را نصب - نمایید")}{" "} + {window.t( + "برای استفاده از بخش واقعیت افزوده می بایست افزونه آن را نصب نمایید" + )}{" "}

- دریافت افزونه")}{" "} + {window.t("دریافت افزونه")}{" "} diff --git a/src/views/Faq/index.js b/src/views/Faq/index.js index e872a57..105f647 100644 --- a/src/views/Faq/index.js +++ b/src/views/Faq/index.js @@ -146,7 +146,7 @@ class Faq extends Component {

- سلام چطوری میتونم کمکتون کنم؟ + {window.t("سلام چطوری میتونم کمکتون کنم؟")}

- {data.oldPrice} تومان")} + {data.oldPrice} {window.t("تومان")}
) : null}
- {data.price} تومان")} + {data.price} {window.t("تومان")}
) : ( diff --git a/src/views/Home/HomeSearch/index.js b/src/views/Home/HomeSearch/index.js index 1dd7ec8..64b4949 100644 --- a/src/views/Home/HomeSearch/index.js +++ b/src/views/Home/HomeSearch/index.js @@ -78,7 +78,7 @@ class HomeSearch extends Component { }); }} > - جستجو")} + {window.t("جستجو")} diff --git a/src/views/Home/Navbar/Mobile/NavbarDrawer/NavbarDrawer.js b/src/views/Home/Navbar/Mobile/NavbarDrawer/NavbarDrawer.js index 96ef0c1..71d58bf 100644 --- a/src/views/Home/Navbar/Mobile/NavbarDrawer/NavbarDrawer.js +++ b/src/views/Home/Navbar/Mobile/NavbarDrawer/NavbarDrawer.js @@ -193,7 +193,11 @@ class NavbarDrawer extends Component { className="navbar-drawer__header--dropdown" onClick={() => this.setState({ dropdown: false })} > - {score ? {score} امتیاز : null} + {score ? ( + + {score} {window.t("امتیاز")} + + ) : null} ) : ( @@ -201,7 +205,11 @@ class NavbarDrawer extends Component { className="navbar-drawer__header--dropdown" onClick={() => this.setState({ dropdown: true })} > - {score ? {score} امتیاز : null}{" "} + {score ? ( + + {score} {window.t("امتیاز")} + + ) : null}{" "} diff --git a/src/views/Home/Navbar/Mobile/index.js b/src/views/Home/Navbar/Mobile/index.js index 8f86e56..a3c8bbf 100644 --- a/src/views/Home/Navbar/Mobile/index.js +++ b/src/views/Home/Navbar/Mobile/index.js @@ -94,7 +94,7 @@ export default function MobileNavbar(props) { to={"/auth"} className="mobile-navbar__signup" > - ورود یا ثبت‌نام")} + {window.t("ورود یا ثبت‌نام")} {page !== "home" ? : null} diff --git a/src/views/NewProfile/index.js b/src/views/NewProfile/index.js index e5748af..4cfa7ee 100644 --- a/src/views/NewProfile/index.js +++ b/src/views/NewProfile/index.js @@ -210,7 +210,7 @@ class NewProfile extends Component { {window.t("حساب کاربری")}

- لطفا مشخصات خود را به صورت کامل نمایید. + {window.t("لطفا مشخصات خود را به صورت کامل نمایید.")}

{window.t("دانوین")} -

افزودن کاربر جدید

+

+ {window.t("افزودن کاربر جدید")} +

{window.t("لطفا مشحصات خود را به صورت کامل وارد نمایید")}{" "}