From f9308b470a52fafdf71f5ac8171f751117ff3d7f Mon Sep 17 00:00:00 2001 From: hamid zarghami Date: Sat, 7 Feb 2026 15:45:21 +0330 Subject: [PATCH] change texts --- src/app/[name]/(Dialogs)/cart/components/CartItemsList.tsx | 2 +- src/app/[name]/(Dialogs)/cart/page.tsx | 2 +- src/app/[name]/(Dialogs)/order/track/[id]/page.tsx | 2 +- src/app/[name]/(Main)/[id]/page.tsx | 2 +- src/app/[name]/(Main)/about/AboutPage.tsx | 2 +- src/app/[name]/(Main)/about/components/AboutSkeleton.tsx | 2 +- src/app/[name]/(Main)/components/MenuFilterDrawer.tsx | 2 +- src/app/[name]/(Main)/page.tsx | 2 +- src/app/[name]/(Profile)/favorite/page.tsx | 2 +- src/app/[name]/(Profile)/profile/address/new/page.tsx | 4 ++-- src/components/ActiveChecker.tsx | 2 +- src/components/map/CustomMap.tsx | 2 +- src/lib/api/info/getAboutData.tsx | 4 ++-- src/locales/fa/orders.json | 4 ++-- src/locales/fa/parallels.json | 4 ++-- src/locales/fa/rating.json | 2 +- 16 files changed, 20 insertions(+), 20 deletions(-) diff --git a/src/app/[name]/(Dialogs)/cart/components/CartItemsList.tsx b/src/app/[name]/(Dialogs)/cart/components/CartItemsList.tsx index 8940676..47401d7 100644 --- a/src/app/[name]/(Dialogs)/cart/components/CartItemsList.tsx +++ b/src/app/[name]/(Dialogs)/cart/components/CartItemsList.tsx @@ -35,7 +35,7 @@ const CartItemsList = () => {

{t('EmptyStateTitle', { defaultValue: 'سبد خرید شما خالی است' })}

{t('EmptyStateDescription', { - defaultValue: 'برای افزودن غذا، به منوی رستوران برگردید.', + defaultValue: 'برای افزودن کالا، به منوی فروشگاه برگردید.', })}

diff --git a/src/app/[name]/(Dialogs)/cart/page.tsx b/src/app/[name]/(Dialogs)/cart/page.tsx index 3d1129b..218102d 100644 --- a/src/app/[name]/(Dialogs)/cart/page.tsx +++ b/src/app/[name]/(Dialogs)/cart/page.tsx @@ -95,7 +95,7 @@ const CartIndex = () => {

{t('EmptyStateTitle', { defaultValue: 'سبد خرید شما خالی است' })}

{t('EmptyStateDescription', { - defaultValue: 'برای افزودن غذا، به منوی رستوران برگردید.', + defaultValue: 'برای افزودن کالا، به منوی فروشگاه برگردید.', })}

diff --git a/src/app/[name]/(Dialogs)/order/track/[id]/page.tsx b/src/app/[name]/(Dialogs)/order/track/[id]/page.tsx index 7ef6b1f..58c7a42 100644 --- a/src/app/[name]/(Dialogs)/order/track/[id]/page.tsx +++ b/src/app/[name]/(Dialogs)/order/track/[id]/page.tsx @@ -23,7 +23,7 @@ const getDeliveryMethodTitle = (method: string) => { case 'pickup': return 'تحویل حضوری'; case 'dineIn': - return 'سرو در رستوران'; + return 'سرو در فروشگاه'; default: return 'روش ارسال'; } diff --git a/src/app/[name]/(Main)/[id]/page.tsx b/src/app/[name]/(Main)/[id]/page.tsx index 4623160..f3ffb37 100644 --- a/src/app/[name]/(Main)/[id]/page.tsx +++ b/src/app/[name]/(Main)/[id]/page.tsx @@ -93,7 +93,7 @@ function FoodPage({ }: Props) { if (!food?.data) { return (
-

غذا یافت نشد

+

کالا یافت نشد

); } diff --git a/src/app/[name]/(Main)/about/AboutPage.tsx b/src/app/[name]/(Main)/about/AboutPage.tsx index 05efaf0..8bba294 100644 --- a/src/app/[name]/(Main)/about/AboutPage.tsx +++ b/src/app/[name]/(Main)/about/AboutPage.tsx @@ -114,7 +114,7 @@ function AboutPage() { {restaurant.images && restaurant.images.length > 0 && (
- عکس های رستوران + عکس های فروشگاه
)} diff --git a/src/app/[name]/(Main)/about/components/AboutSkeleton.tsx b/src/app/[name]/(Main)/about/components/AboutSkeleton.tsx index f29aea9..3dc9b6f 100644 --- a/src/app/[name]/(Main)/about/components/AboutSkeleton.tsx +++ b/src/app/[name]/(Main)/about/components/AboutSkeleton.tsx @@ -8,7 +8,7 @@ import { InfoCircle, Star1 } from 'iconsax-react'; const AboutSkeleton = () => { const firstTabSkeleton = () => (
- {/* اطلاعات رستوران */} + {/* اطلاعات فروشگاه */}
diff --git a/src/app/[name]/(Main)/components/MenuFilterDrawer.tsx b/src/app/[name]/(Main)/components/MenuFilterDrawer.tsx index 604f089..8f086f3 100644 --- a/src/app/[name]/(Main)/components/MenuFilterDrawer.tsx +++ b/src/app/[name]/(Main)/components/MenuFilterDrawer.tsx @@ -52,7 +52,7 @@ const MenuFilterDrawer = ({ }, { id: "inPlace", - title: "سرو در رستوران", + title: "سرو در فروشگاه", label: "", }, ]; diff --git a/src/app/[name]/(Main)/page.tsx b/src/app/[name]/(Main)/page.tsx index ece8712..14f7747 100644 --- a/src/app/[name]/(Main)/page.tsx +++ b/src/app/[name]/(Main)/page.tsx @@ -207,7 +207,7 @@ const MenuIndex = () => { {filteredReceiptItems.length === 0 ? (
- {foodsData ? 'غذایی یافت نشد' : 'در حال بارگذاری...'} + {foodsData ? 'کالایی یافت نشد' : 'در حال بارگذاری...'}
) : ( filteredReceiptItems.map((food) => ( diff --git a/src/app/[name]/(Profile)/favorite/page.tsx b/src/app/[name]/(Profile)/favorite/page.tsx index 55d0890..afa06b0 100644 --- a/src/app/[name]/(Profile)/favorite/page.tsx +++ b/src/app/[name]/(Profile)/favorite/page.tsx @@ -86,7 +86,7 @@ function FavoritePage() {

شما هیچ مورد علاقه‌مندی ثبت نکرده‌اید

- برای افزودن غذا به علاقه‌مندی‌ها، به صفحه جزئیات غذا بروید + برای افزودن کالا به علاقه‌مندی‌ها، به صفحه جزئیات کالا بروید

diff --git a/src/app/[name]/(Profile)/profile/address/new/page.tsx b/src/app/[name]/(Profile)/profile/address/new/page.tsx index e09c6fe..6b2ac9d 100644 --- a/src/app/[name]/(Profile)/profile/address/new/page.tsx +++ b/src/app/[name]/(Profile)/profile/address/new/page.tsx @@ -87,7 +87,7 @@ function OrderTrackingPage() { const iconHtml = `
- موقعیت رستوران + موقعیت فروشگاه
`; @@ -101,7 +101,7 @@ function OrderTrackingPage() { if (restaurantPosition) { markersToSet.push({ position: restaurantPosition, - title: 'موقعیت رستوران', + title: 'موقعیت فروشگاه', icon: L.divIcon({ html: iconHtml, className: 'custom-restaurant-marker', diff --git a/src/components/ActiveChecker.tsx b/src/components/ActiveChecker.tsx index c2140b7..69d0e80 100644 --- a/src/components/ActiveChecker.tsx +++ b/src/components/ActiveChecker.tsx @@ -21,7 +21,7 @@ const ActiveChecker = () => { if (data?.data && !data?.data?.isActive) return (
-
رستوران غیرفعال است.
+
فروشگاه غیرفعال است.
) } diff --git a/src/components/map/CustomMap.tsx b/src/components/map/CustomMap.tsx index aa65d77..87213d2 100644 --- a/src/components/map/CustomMap.tsx +++ b/src/components/map/CustomMap.tsx @@ -91,7 +91,7 @@ function MarkerWithAutoOpen({ position, icon, title }: { position: [number, numb const markerRef = React.useRef(null); useEffect(() => { - if (markerRef.current && title === 'موقعیت رستوران') { + if (markerRef.current && title === 'موقعیت فروشگاه') { markerRef.current.openPopup(); } }, [title]); diff --git a/src/lib/api/info/getAboutData.tsx b/src/lib/api/info/getAboutData.tsx index 11d8944..aaba184 100644 --- a/src/lib/api/info/getAboutData.tsx +++ b/src/lib/api/info/getAboutData.tsx @@ -29,8 +29,8 @@ export async function getAboutData(name: string) { // return res.json(); let title_fa = ''; - if (name.toLocaleLowerCase() == 'zhivan') title_fa = 'کافه رستوران ژیوان' - if (name.toLocaleLowerCase() == 'boote') title_fa = 'کافه رستوران بوته' + if (name.toLocaleLowerCase() == 'zhivan') title_fa = 'کافه فروشگاه ژیوان' + if (name.toLocaleLowerCase() == 'boote') title_fa = 'کافه فروشگاه بوته' return { name, diff --git a/src/locales/fa/orders.json b/src/locales/fa/orders.json index bcb785d..34cbc6e 100644 --- a/src/locales/fa/orders.json +++ b/src/locales/fa/orders.json @@ -9,8 +9,8 @@ "Rate": "ثبت امتیاز" }, "deliveryMethod": { - "dineIn": "سرو در رستوران", - "customerPickup": "تحویل در رستوران", + "dineIn": "سرو در فروشگاه", + "customerPickup": "تحویل در فروشگاه", "deliveryCar": "تحویل به خودرو", "deliveryCourier": "تحویل با پیک" }, diff --git a/src/locales/fa/parallels.json b/src/locales/fa/parallels.json index 97f80f5..5008d63 100644 --- a/src/locales/fa/parallels.json +++ b/src/locales/fa/parallels.json @@ -14,7 +14,7 @@ "InputScope": { "Label": "در مورد", "Options": { - "Restaurant": "رستوران", + "Restaurant": "فروشگاه", "Application": "اپلیکیشن" } }, @@ -41,7 +41,7 @@ "Label": "", "Options": { "Delivery": "ارسال با پیک", - "Serve": "سرو در رستوران", + "Serve": "سرو در فروشگاه", "Pickup": "تحویل در محل" } } diff --git a/src/locales/fa/rating.json b/src/locales/fa/rating.json index 7c6d1fd..fa37573 100644 --- a/src/locales/fa/rating.json +++ b/src/locales/fa/rating.json @@ -1,5 +1,5 @@ { - "Heading": "امتیاز شما به رستوران", + "Heading": "امتیاز شما به فروشگاه", "Tabs": { "Strengths": { "Title": "نقاط قوت",