diff --git a/src/components/Navbar/index.js b/src/components/Navbar/index.js
index 3e9c3e3..f795368 100644
--- a/src/components/Navbar/index.js
+++ b/src/components/Navbar/index.js
@@ -62,7 +62,7 @@ function Navbar({
useEffect(() => {
if (!isMobile && isLogin) {
- console.log(111)
+ console.log(111);
getCartProducts();
}
}, [isLogin]);
@@ -206,7 +206,7 @@ function Navbar({
className="flex flex-row items-center text-2xl font-black text-green7B"
>
- دانوین
+ {window.t("دانوین")}
{pages.map((page, index) => (
@@ -264,14 +264,14 @@ function Navbar({
to="/signup"
className="bg-blueC0 font-semibold text-white rounded-md px-4 py-3 text-sm mr-7 hover:bg-opacity-90 shadow-sm"
>
- ورود یا ثبت نام
+ {window.t("ورود یا ثبت نام")}
) : (
- حساب کاربری
+ {window.t("حساب کاربری")}
)}
@@ -302,19 +302,19 @@ Navbar.defaultProps = {
pages: [
{
link: "/products",
- name: "فروشگاه",
+ name: `${window.t("فروشگاه")}`,
},
{
link: "/contact-us",
- name: "تماس با ما",
+ name: `${window.t("تماس با ما")}`,
},
{
link: "/about-us",
- name: "درباره دانوین",
+ name: `${window.t("درباره دانوین")}`,
},
{
link: "/blogs",
- name: "مجله دانوین",
+ name: `${window.t("مجله دانوین")}`,
},
],
logo: true,
@@ -326,12 +326,12 @@ Navbar.defaultProps = {
topHeader: true,
bottomHeader: true,
menuItems: [
- "محصولات",
- "دسته بندی",
- "تماس با ما",
- "درباره ما",
- "پیگیری",
- "وبلاگ",
+ `${window.t("محصولات")}`,
+ `${window.t("دسته بندی")}`,
+ `${window.t("تماس با ما")}`,
+ `${window.t("درباره ما")}`,
+ `${window.t("پیگیری")}`,
+ `${window.t("وبلاگ")}`,
],
category: true,
searchBox: true,