ادامه کار روی ترجمه | 80

temp
mahdi 2 years ago
parent 453e99aed9
commit 4b55d73f8c
  1. 2
      src/views/Contact/index.js
  2. 4
      src/views/Contact/layouts/Ticket.js
  3. 29
      src/views/Dashboard/layouts/Main/Addresses/index.js
  4. 2
      src/views/Dashboard/layouts/Main/MyBooks/index.js
  5. 12
      src/views/Dashboard/layouts/Mobile/List.js
  6. 26
      src/views/Dashboard/layouts/Mobile/ProfileAddress/index.js
  7. 22
      src/views/Dashboard/layouts/Mobile/ProfileBookmark/index.js
  8. 4
      src/views/Dashboard/layouts/Mobile/Trophy.js
  9. 2
      src/views/Dashboard/layouts/Mobile/User.js
  10. 24
      src/views/Dashboard/layouts/SidebarMenu/index.js
  11. 32
      src/views/DeliveryForm/Address/index.js
  12. 4
      src/views/DeliveryForm/PaymentMethod/index.js
  13. 2
      src/views/DeliveryForm/TransportDate/index.js
  14. 2
      src/views/Products/layouts/Desktop/Main.js

@ -111,7 +111,7 @@ Contact.defaultProps = {
title: { text: window.t("شماره تماس"), color: "#06A02A" },
description: {
text: window.t(
"در صورت هرگونه سوال شما میتوانید در ساعات اداری 9 الی 17 با شماره 021۸۸۸۱۴۶۳۷ تماس حاصل فرمایید"
"در صورت هرگونه سوال شما میتوانید در ساعات اداری 9 الی 17 با شماره ۰۲۱۸۸۸۱۴۶۳۷ تماس حاصل فرمایید"
),
color: "#025816",
},

@ -147,7 +147,7 @@ export const Ticket = ({
onChange={(name, value) => setTicket({ name, value })}
value={ticket?.subject || ""}
regex={(val) => val}
placeholder={window.t("موضوع")}
label={window.t("موضوع")}
/>
<Textarea
placeholder={window.t("پیام خود را اینجا بنویسید")}
@ -163,7 +163,7 @@ export const Ticket = ({
/>
<br />
<Button
placeholder={window.t("ارسال پیام")}
title={window.t("ارسال پیام")}
backgroundColor={isDark ? "bg-blueC0" : "bg-blueC0"}
border={{ color: isDark ? "#ffffff55" : "#196EC055", width: "0px" }}
width="100%"

@ -63,7 +63,8 @@ const ProfileAddress = ({
border: `1px solid ${isDark ? "#DBDBDB22" : "#DBDBDB"}`,
}}
>
&nbsp;یک آدرس جدید اضافه کنید
&nbsp;
{window.t("یک آدرس جدید اضافه کنید")}
<strong className="text-lg transform translate-y-0.5 mr-1">+</strong>
</button>
</div>
@ -116,7 +117,7 @@ const Location = ({
const delAddress = (id) => {
setMenu();
setDialog({
text: "آدرس رو حذف کنیم؟",
text: window.t("آدرس رو حذف کنیم؟"),
type: "confirm",
accept: () => deleteAddress({ id }),
open: true,
@ -155,24 +156,30 @@ const Location = ({
{active && (
<div className="w-full flex justify-between mb-3">
<div className="flex items-center">
<strong className="text-base">آدرس انتخابی شما</strong>
<span className="mr-4 text-sm">فعال</span>
<strong className="text-base">
{window.t("آدرس انتخابی شما")}
</strong>
<span className="mr-4 text-sm"> {window.t("فعال")}</span>
</div>
</div>
)}
<div className={`flex w-full ${active ? "" : "flex-row"}`}>
<div className="flex flex-col flex-1 mb-4">
<span className="mb-2 leading-6">
{"آدرس:" + " " + address.address}
{`{window.t("آدرس")}` + " " + address.address}
</span>
<span className="mb-2 leading-6">
{"نام:" + " " + address.firstName + " " + address.lastName}
{`{window.t("نام:")}` +
" " +
address.firstName +
" " +
address.lastName}
</span>
<span className="mb-2 leading-6">
{"کد پستی:" + " " + address.postalCode}
{`{window.t("کد پستی:")}` + " " + address.postalCode}
</span>
<span className="mb-2 leading-6">
{"شماره تماس:" + " " + address.cellphone}
{`{window.t("شماره تماس:")}` + " " + address.cellphone}
</span>
</div>
</div>
@ -185,7 +192,7 @@ const Location = ({
className="w-full flex flex-row text-sm items-center justify-between px-2 py-1 rounded-sm cursor-pointer"
onClick={() => setMenu()}
>
ویرایش
{window.t("ویرایش")}
<img src={editButton} alt="edit-address" className="w-5 mr-3 " />
</Link>
<div
@ -193,13 +200,13 @@ const Location = ({
class="w-full flex flex-row items-center justify-between px-2 py-1 rounded-sm cursor-pointer"
onClick={() => delAddress(address.id)}
>
<button class="text-sm ">حذف</button>
<button class="text-sm ">{window.t("حذف")}</button>
<img src={trash} alt="delete-address" className="w-5 mr-3" />
</div>
</div>
</div>
<Button
title="مشاهده روی نقشه"
title={window.t("مشاهده روی نقشه")}
backgroundColor={isDark ? "bg-blueC0" : "bg-blueC0"}
border={{ color: isDark ? "#ffffff55" : "#196EC055", width: "0px" }}
width="100%"

@ -50,7 +50,7 @@ export const MyBooks = ({ books, grades, isMobile }) => {
))} */}
<div className="w-full scrolling-carousel mt-4 pb-2">
<p className="text-green7B font-bold text-2xl lg:text-base">
کتاب های من
{window.t("کتاب های من")}
</p>
<ScrollingCarousel className="py-3">
{books?.map((book, index) => (

@ -15,32 +15,32 @@ const List = ({ mobile }) => {
const pages = [
{
icon: <img src={userGreenIcon} alt="" />,
name: "اطلاعات حساب کاربری",
name: window.t("اطلاعات حساب کاربری"),
link: "/editProfile",
},
{
icon: <img src={cartGreenIcon} />,
name: "سفارشات",
name: window.t("سفارشات"),
link: "/Orders",
},
{
icon: <img src={bookGreenIcon} />,
name: "کتابهای من",
name: window.t("کتابهای من"),
link: "/AR",
},
{
icon: <img src={videoGreenIcon} />,
name: "دورههای من",
name: window.t("دورههای من"),
link: "#",
},
{
icon: <img src={bookmarkGreenIcon} />,
name: "لیست علاقهمندیها",
name: window.t("لیست علاقهمندیها"),
link: "/favorites",
},
{
icon: <img src={addressGreenIcon} />,
name: "آدرسها",
name: window.t("آدرسها"),
link: "/addresses",
},
];

@ -63,7 +63,7 @@ const ProfileAddress = ({
</div>
</div>
) : (
<Empty text="هیچ آدرسی ثبت نشده :(" />
<Empty title={window.t("هیچ آدرسی ثبت نشده")} />
)}
<FloatingButton
action={() => navigation("/createAddress", { state: { panel: true } })}
@ -102,7 +102,7 @@ const Location = ({
const delAddress = (id) => {
setMenu();
setDialog({
text: "آدرس رو حذف کنیم؟",
text: window.t("آدرس رو حذف کنیم؟"),
type: "confirm",
accept: () => deleteAddress({ id }),
open: true,
@ -140,7 +140,7 @@ const Location = ({
className="py-3 pr-2 pl-10 text-sm font-bold bg-blue-300"
onClick={() => setMenu()}
>
ویرایش
{window.t("ویرایش")}
</Link>
<button
className="py-3 pr-2 pl-10 border-none m-0 text-sm text-red19 font-bold"
@ -154,9 +154,11 @@ const Location = ({
<div className={"w-full flex flex-row justify-between mb-3"}>
<div className={"flex flex-row items-center"}>
<strong className={"text-base font-bold text-gray1"}>
آدرس انتخابی شما
{window.t("آدرس انتخابی شما")}
</strong>
<span className={"text-xs text-gray1 mr-2.5"}>فعال</span>
<span className={"text-xs text-gray1 mr-2.5"}>
{window.t("فعال")}
</span>
</div>
<svg
xmlns="http://www.w3.org/2000/svg"
@ -177,16 +179,20 @@ const Location = ({
<div className={`flex w-full ${active ? "" : "flex-row"}`}>
<div className={"flex flex-col flex-1 mb-4"}>
<span className={"text-sm leading-6"}>
{"آدرس:" + " " + address.address}
{`{window.t("آدرس:")}` + " " + address.address}
</span>
<span className={"text-sm leading-6 mt-1.5"}>
{"نام:" + " " + address.firstName + " " + address.lastName}
{`{window.t("نام:")}` +
" " +
address.firstName +
" " +
address.lastName}
</span>
<span className={"text-sm leading-6 mt-1.5"}>
{"کد پستی:" + " " + address.postalCode}
{`{window.t("کد پستی:")}` + " " + address.postalCode}
</span>
<span className={"text-sm leading-6 mt-1.5"}>
{"شماره تماس:" + " " + address.cellphone}
{`{window.t("شماره تماس:")}` + " " + address.cellphone}
</span>
</div>
{!active && (
@ -207,7 +213,7 @@ const Location = ({
)}
</div>
<Button
title="مشاهده روی نقشه"
title={window.t("مشاهده روی نقشه")}
backgroundColor={isDark ? "bg-transparent" : "bg-blueC0"}
border={{
color: isDark ? "#ffffff55" : "#196EC055",

@ -46,16 +46,16 @@ const ProfileBookmark = ({ bookmarkList, getList }) => {
backgroundColor: "white",
}}
>
x
headerOptions={{
logo: false,
menu: false,
hamburgerMenu: false,
title: "لیست علاقهمندیها",
bookmark: false,
qr: false,
back: true,
}}
x headerOptions=
{{
logo: false,
menu: false,
hamburgerMenu: false,
title: window.t("لیست علاقهمندیها"),
bookmark: false,
qr: false,
back: true,
}}
/>
{bookmarkList?.length > 0 ? (
<ScrollView
@ -71,7 +71,7 @@ const ProfileBookmark = ({ bookmarkList, getList }) => {
</View>
</ScrollView>
) : (
<Empty text="لیست علاقهمندیها خالی است." />
<Empty text={window.t("لیست علاقهمندیها خالی است.")} />
)}
</SafeAreaView>
);

@ -39,11 +39,11 @@ const Trophy = ({}) => {
</g>
</svg>
<strong className="text-sm mr-2.5 text-green4F">
{"امتیاز شما" + " " + 14560}
{`{window.t("امتیاز شما")}` + " " + 14560}
</strong>
</div>
<Link to="#" className="text-sm text-green4F">
مشاهده جوایز
{window.t("مشاهده جوایز")}
</Link>
</div>
);

@ -52,7 +52,7 @@ const User = ({ user, mobile }) => {
className={`flex items-center w-full pb-3 mb-3 flex-row border-b border-solid border-gray-100`}
>
<strong className="text-sm text-gray1">
افزودن حساب کاربری جدید
{window.t("افزودن حساب کاربری جدید")}
</strong>
<span className="mr-1 mt-1 text-xl text-gray1">+</span>
</div>

@ -91,42 +91,42 @@ const SidebarMenu = ({
const buttons = [
{
icon: myBooksIcon,
title: "کتاب های من",
title: window.t("کتاب های من"),
onClick: () => setPage("mybooks"),
name: "mybooks",
},
{
icon: myVideosIcon,
title: "ویدئوهای من",
title: window.t("ویدئوهای من"),
onClick: () => setPage("myvideos"),
name: "myvideos",
},
{
icon: ordersIcon,
title: "سفارشات",
title: window.t("سفارشات"),
onClick: () => setPage("orders"),
name: "orders",
},
{
icon: favoritesIcon,
title: "علاقمندی ها",
title: window.t("علاقمندی ها"),
onClick: () => setPage("favorites"),
name: "favorites",
},
{
icon: addressIcon,
title: "آدرس ها",
title: window.t("آدرس ها"),
onClick: () => setPage("addresses"),
name: "addresses",
},
{ icon: moon, title: "حالت شب", onClick: () => {}, name: "dark" },
{ icon: moon, title: window.t("حالت شب"), onClick: () => {}, name: "dark" },
{
icon: logoutIcon,
title: "خروج از حساب کاربری",
title: window.t("خروج از حساب کاربری"),
// onClick: () => logout(),
onClick: () =>
setDialog({
text: "میخوای تنهامون بذاری؟",
text: window.t("میخوای تنهامون بذاری؟"),
type: "confirm",
accept: () => logout(),
open: true,
@ -214,16 +214,16 @@ SidebarMenu.defaultProps = {
profile: {
name: "profile",
icon: userEdit,
title: "حساب کاربری",
title: window.t("حساب کاربری"),
notification: null,
list: [{ title: "ویرایش حساب کاربری", value: "profile" }],
list: [{ title: window.t("ویرایش حساب کاربری"), value: "profile" }],
},
support: {
name: "support",
icon: sms,
title: "پشتیبانی",
title: window.t("پشتیبانی"),
notification: null,
list: [{ title: "ثبت نظر", value: "setTicket" }],
list: [{ title: window.t("ثبت نظر"), value: window.t("setTicket") }],
},
};

@ -64,14 +64,14 @@ function Address({
style={{ border: "solid 1px #fca5a5" }}
class="w-full flex flex-row items-center justify-between px-2 py-1 rounded-sm cursor-pointer"
>
<button class="text-sm">حذف</button>
<button class="text-sm">{window.t("حذف")}</button>
<img src={trash} alt="delete-address" className="w-5 mr-3" />
</div>
<div
style={{ border: "solid 1px #12CF7F" }}
class="w-full flex flex-row items-center justify-between px-2 py-1 rounded-sm cursor-pointer"
>
<button class="text-sm">ویرایش</button>
<button class="text-sm">{window.t("ویرایش")}</button>
<img src={editButton} alt="edit-address" className="w-5 mr-3 " />
</div>
</div>
@ -106,19 +106,23 @@ function Address({
)}
<div className="flex flex-col gap-y-2">
<li className="text-right text-tiny leading-6 text-blue52 dark:text-white">
آدرس:&nbsp;{address.address}
{window.t(" آدرس:")}
&nbsp;{address.address}
</li>
<li className="text-right text-tiny leading-6 text-blue52 dark:text-white">
کد پستی:&nbsp;{address.postalCode}
{window.t("کد پستی:")}
&nbsp;{address.postalCode}
</li>
</div>
</div>
<div className="flex flex-col">
<li className="text-right text-tiny leading-6 text-blue52 dark:text-white">
نام تحویل گیرنده:&nbsp;{address.firstName + " " + address.lastName}
{window.t("نام تحویل گیرنده:")}
&nbsp;{address.firstName + " " + address.lastName}
</li>
<li className="text-right text-tiny leading-6 text-blue52 dark:text-white mt-3">
شماره تماس:&nbsp;{address.cellphone}
{window.t("شماره تماس:")}
&nbsp;{address.cellphone}
</li>
</div>
<div className="flex flex-col items-center gap-y-2">
@ -126,14 +130,14 @@ function Address({
style={{ border: "solid 1px #fca5a5" }}
class="w-full flex flex-row items-center justify-between px-2 py-1 rounded-sm cursor-pointer"
>
<button class="text-sm">حذف</button>
<button class="text-sm">{window.t("حذف")}</button>
<img src={trash} alt="delete-address" className="w-5 mr-3" />
</div>
<div
style={{ border: "solid 1px #12CF7F" }}
class="w-full flex flex-row items-center justify-between px-2 py-1 rounded-sm cursor-pointer"
>
<button class="text-sm">ویرایش</button>
<button class="text-sm">{window.t("ویرایش")}</button>
<img src={editButton} alt="edit-address" className="w-5 mr-3 " />
</div>
</div>
@ -148,7 +152,7 @@ function Address({
return isMobile ? (
<section className="mt-2 w-full">
<strong className="font-bold text-green7B dark:text-white lg:text-tiny">
انتخاب آدرس
{window.t("انتخاب آدرس")}
</strong>
<ul className="list-none p-0 m-0 flex flex-col gap-y-3">
{addresses.map((address, index) => (
@ -169,14 +173,17 @@ function Address({
border: `1px solid ${isDark ? "#DBDBDB22" : "#DBDBDB"}`,
}}
>
&nbsp;یک آدرس جدید اضافه کنید
&nbsp;
{window.t("یک آدرس جدید اضافه کنید")}
<strong className="text-lg transform translate-y-0.5 mr-1">+</strong>
</button>
</div>
</section>
) : (
<section className="mt-0.5 w-full">
<strong className="font-medium dark:text-white">انتخاب آدرس</strong>
<strong className="font-medium dark:text-white">
{window.t("انتخاب آدرس")}
</strong>
<ul className="list-none p-0 m-0 flex flex-col gap-y-2">
{addresses.map((address, index) => (
<Location
@ -196,7 +203,8 @@ function Address({
border: `1px solid ${isDark ? "#DBDBDB22" : "#DBDBDB"}`,
}}
>
&nbsp;یک آدرس جدید اضافه کنید
&nbsp;
{window.t("یک آدرس جدید اضافه کنید")}
<strong className="text-lg transform translate-y-0.5 mr-1">+</strong>
</button>
</div>

@ -19,7 +19,9 @@ function PaymentMethods({ paymentMethods }) {
};
return (
<section className="mt-8">
<strong className="font-medium dark:text-white text-base">انتخاب شیوه پرداخت</strong>
<strong className="font-medium dark:text-white text-base">
{window.t("انتخاب شیوه پرداخت")}
</strong>
<ul className="list-none p-0 m-0 flex flex-row justify-between flex-wrap">
{paymentMethods.map((method, index) => (
<Method method={method} key={index} />

@ -50,7 +50,7 @@ function TransportDate({ transportDate, isMobile }) {
activeDate === time ? "text-green7B" : "text-blue52"
}`}
>
تکمیل ظرفیت
{window.t("تکمیل ظرفیت")}
</span>
)}
</button>

@ -267,7 +267,7 @@ export const Main = ({
{pages.map((e) => (
<div
className={`w-8 p-2 text-sm text-center rounded-md text-green7B cursor-pointer transform translate ${
pages ? "bg-red-400" : "bg-blue-600"
page === true ? "bg-red-400" : "bg-blue-600"
}`}
onClick={() => setPage(e)}
>

Loading…
Cancel
Save