diff --git a/src/components/ServiceSection.tsx b/src/components/ServiceSection.tsx index d15d778..eb4f5eb 100644 --- a/src/components/ServiceSection.tsx +++ b/src/components/ServiceSection.tsx @@ -9,7 +9,7 @@ const ServiceSection: FC = () => { دی منو
- منو رستوران + منو فروشگاه
diff --git a/src/langs/fa.json b/src/langs/fa.json index 03b2353..b15ffb0 100644 --- a/src/langs/fa.json +++ b/src/langs/fa.json @@ -51,7 +51,7 @@ "menu": "منو", "mainpage": "صفحه اصلی", "schedule": "زمان سفارش گیری", - "foods": "غذا ها", + "foods": "کالا ها", "orders": "سفارشات", "customers": "مشتریان", "discount": "کد تخفیف", @@ -71,7 +71,7 @@ "statistics": "گزارشات" }, "shipment": { - "dineIn": "سرو در رستوران", + "dineIn": "سرو در فروشگاه", "customerPickup": "دریافت از محل", "deliveryCar": "تحویل به خودرو", "deliveryCourier": "بیرون بر" @@ -93,8 +93,8 @@ "slider_deleted": "اسلایدر با موفقیت حذف شد" }, "submenu": { - "foods_list": "لیست غذا ها", - "add_food": "افزودن غذا", + "foods_list": "لیست کالا ها", + "add_food": "افزودن کالا", "categories": "دسته بندی ها", "orders_list": "لیست سفارشات", "add_order": "افزودن سفارش", @@ -236,7 +236,7 @@ "footer": { "home": "صفحه اصلی", "customers": "مشتریان", - "foods": "غذا ها", + "foods": "کالا ها", "announcements": "اطلاعیه ها", "orders": "سفارشات" }, diff --git a/src/pages/comments/Details.tsx b/src/pages/comments/Details.tsx index 7009dc9..a157ac8 100644 --- a/src/pages/comments/Details.tsx +++ b/src/pages/comments/Details.tsx @@ -13,7 +13,7 @@ const CommentsDetails: FC = () => { const [selectedCategories, setSelectedCategories] = useState([]) const allFoods = ['پیتزا پپرونی', 'سالاد سزار', 'پاستا', 'همبرگر', 'سوشی'] - const allCategories = ['پیش غذا', 'غذای اصلی', 'دسر', 'نوشیدنی', 'سالاد'] + const allCategories = ['پیش کالا', 'کالای اصلی', 'دسر', 'نوشیدنی', 'سالاد'] const foods = ['همه', ...allFoods] const categories = ['همه', ...allCategories] @@ -88,7 +88,7 @@ const CommentsDetails: FC = () => { @@ -123,7 +123,7 @@ const CommentsDetails: FC = () => {
وضعیت نمایش
-
نمایش در غذاهای
+
نمایش در کالاهای
{ }, { key: 'food', - title: 'غذا', + title: 'کالا', }, { key: 'date', @@ -142,7 +142,7 @@ const CommentsList: FC = () => { number: '۱۲۳۳۷', customerName: 'علی کریمی', strengths: 'سرویس سریع', - weaknesses: 'کم بودن حجم غذا', + weaknesses: 'کم بودن حجم کالا', food: 'پاستا کربونارا', date: '2024-11-04', isDisplayed: true, @@ -161,7 +161,7 @@ const CommentsList: FC = () => { id: 6, number: '۱۲۳۳۹', customerName: 'حسن نوری', - strengths: 'ارزش غذایی مناسب', + strengths: 'ارزش کالایی مناسب', weaknesses: 'بوی نامطبوع', food: 'کباب ترکی', date: '2024-11-06', diff --git a/src/pages/coupon/components/FoodSelector.tsx b/src/pages/coupon/components/FoodSelector.tsx index 747602f..f19d07a 100644 --- a/src/pages/coupon/components/FoodSelector.tsx +++ b/src/pages/coupon/components/FoodSelector.tsx @@ -48,7 +48,7 @@ const FoodSelector: FC = ({ formik, foods }) => { return (
-
غذاهایی که شامل تخفیف میشوند
+
کالاهایی که شامل تخفیف میشوند
{
-

دسته بندی غذا

+

دسته بندی کالا

{ order: 0 }, validationSchema: Yup.object().shape({ - title: Yup.string().required('نام غذا الزامی است'), + title: Yup.string().required('نام کالا الزامی است'), categoryId: Yup.string().required('دسته‌بندی الزامی است'), price: Yup.number().required('قیمت الزامی است').min(0, 'قیمت باید مثبت باشد'), prepareTime: Yup.number().required('زمان آماده‌سازی الزامی است').min(0, 'زمان آماده‌سازی باید مثبت باشد'), @@ -75,11 +75,11 @@ const CreateFood: FC = () => { createFood(foodData, { onSuccess: () => { - toast.success('غذا با موفقیت ایجاد شد') + toast.success('کالا با موفقیت ایجاد شد') window.location.href = Pages.foods.list }, onError: (error: ErrorType) => { - toast.error(error?.response?.data?.error?.message[0] || 'خطا در ایجاد غذا') + toast.error(error?.response?.data?.error?.message[0] || 'خطا در ایجاد کالا') } }) } @@ -104,7 +104,7 @@ const CreateFood: FC = () => {
- غذای جدید + کالای جدید
@@ -124,7 +124,7 @@ const CreateFood: FC = () => {
{