diff --git a/components/AppHeader/page.jsx b/components/AppHeader/page.jsx
index 3e84487..a5e5417 100644
--- a/components/AppHeader/page.jsx
+++ b/components/AppHeader/page.jsx
@@ -1,7 +1,6 @@
"use client";
import Avatar from "boring-avatars";
-import Link from "next/link";
import { useRouter } from "next/navigation";
import React, { useContext } from "react";
import { useLongPress } from "@uidotdev/usehooks";
@@ -9,6 +8,8 @@ import { toast } from "react-toastify";
import AppContext from "@ctx/AppContext";
import notifIcon from "@img/notif.png";
import Image from "next/image";
+import { useLocale, useTranslations } from "next-intl";
+import { Link } from "src/i18n/routing";
const AppHeader = ({
title,
@@ -34,10 +35,21 @@ const AppHeader = ({
const CTX = useContext(AppContext);
const notifUnreadData = CTX.state.notifUnreadData;
+ const t = useTranslations("login");
+ const locale = useLocale();
+ const isRTL = locale === "fa";
+
const handlelogOut = () => {
CTX.setStepLogin(0);
localStorage.removeItem("token");
- router.push("/app/login");
+
+ router.push(
+ locale === "zh"
+ ? "/zh/app/login"
+ : locale === "fa"
+ ? "/fa/app/login"
+ : "/app/login"
+ );
};
const attrs = useLongPress(() => handlelogOut(), {
@@ -96,7 +108,7 @@ const AppHeader = ({
viewBox="0 0 11 18"
fill="none"
xmlns="http://www.w3.org/2000/svg"
- className="mx-auto mt-[7px]"
+ className={`mx-auto mt-[7px] ${isRTL ? "" : "rotate-180"}`}
>
{sub}
{iconName3}
+{iconName3}
-
-
+
+
-
- + +
+ {isRTL ? (
+
+ {data?.logBy}{" "}
diff --git a/components/EmployeesComponent/Users/page.jsx b/components/EmployeesComponent/Users/page.jsx index d91adc3..25e544c 100644 --- a/components/EmployeesComponent/Users/page.jsx +++ b/components/EmployeesComponent/Users/page.jsx @@ -33,7 +33,7 @@ const UsersEmployees = () => { colors={["#9d9f88", "#83af96", "#b2de93"]} />- با تایید شماره تلفن با همه شرایط حریم خصوص اپلیکیشن بریز موافقت می کنم - . +
+ {t("acceptRule")}
- برای ورود یا ثبت نام به اپلیکیشن مدیریت وظایف رستوران باید شماره تلفن - همراه خود را وارد کنید +
+ {t("singUpDesc")}
- {" "}
- کد تایید برای شماره
-
-
+ کد تایید برای شماره
+
+
+ {t("confirmText")}{" "} +
+ )}- افزودن یوزر به پوزیشن {positionName} + {isRTL ? ( + <> افزودن یوزر به پوزیشن {positionName}> + ) : ( + <> + {" "} + {t("BottomSheetAddUserToPositionShiftPlanTitle")} {positionName} + > + )}
- افزودن کاربر جدید + {t("BottomSheetCreateEmployeesTitle")}{" "}
- افزودن پوزیشن جدید{" "} + {t("BottomSheetCreatePositionTitle")}{" "}
- افزودن روتین جدید{" "} + {t("BottomSheetCreateRoutineTitle")}{" "}
- افزودن سکشن جدید{" "} + {t("BottomSheetCreateSectionTitle")}{" "}
- افزودن شیفت کاری جدید + {t("BottomSheetCreateShiftsTitle")}{" "}
گزارشات
++ {" "} + {t("BottomSheetReportTitle")}{" "} +
- شما در حال گرفتن گزارش برای - {reportDetail?.title} - هستید + {t("BottomSheetReportDesc")}
گزارشات
++ {" "} + {t("BottomSheetReportManageShiftTitle")}{" "} +