change texts

This commit is contained in:
hamid zarghami
2026-02-07 15:45:21 +03:30
parent 2096ae6046
commit f9308b470a
16 changed files with 20 additions and 20 deletions
@@ -35,7 +35,7 @@ const CartItemsList = () => {
<p>{t('EmptyStateTitle', { defaultValue: 'سبد خرید شما خالی است' })}</p> <p>{t('EmptyStateTitle', { defaultValue: 'سبد خرید شما خالی است' })}</p>
<p className='text-xs'> <p className='text-xs'>
{t('EmptyStateDescription', { {t('EmptyStateDescription', {
defaultValue: 'برای افزودن غذا، به منوی رستوران برگردید.', defaultValue: 'برای افزودن کالا، به منوی فروشگاه برگردید.',
})} })}
</p> </p>
</div> </div>
+1 -1
View File
@@ -95,7 +95,7 @@ const CartIndex = () => {
<p>{t('EmptyStateTitle', { defaultValue: 'سبد خرید شما خالی است' })}</p> <p>{t('EmptyStateTitle', { defaultValue: 'سبد خرید شما خالی است' })}</p>
<p className='text-xs'> <p className='text-xs'>
{t('EmptyStateDescription', { {t('EmptyStateDescription', {
defaultValue: 'برای افزودن غذا، به منوی رستوران برگردید.', defaultValue: 'برای افزودن کالا، به منوی فروشگاه برگردید.',
})} })}
</p> </p>
</div> </div>
@@ -23,7 +23,7 @@ const getDeliveryMethodTitle = (method: string) => {
case 'pickup': case 'pickup':
return 'تحویل حضوری'; return 'تحویل حضوری';
case 'dineIn': case 'dineIn':
return 'سرو در رستوران'; return 'سرو در فروشگاه';
default: default:
return 'روش ارسال'; return 'روش ارسال';
} }
+1 -1
View File
@@ -93,7 +93,7 @@ function FoodPage({ }: Props) {
if (!food?.data) { if (!food?.data) {
return ( return (
<div className='flex items-center justify-center min-h-[400px]'> <div className='flex items-center justify-center min-h-[400px]'>
<p className='text-disabled-text'>غذا یافت نشد</p> <p className='text-disabled-text'>کالا یافت نشد</p>
</div> </div>
); );
} }
+1 -1
View File
@@ -114,7 +114,7 @@ function AboutPage() {
{restaurant.images && restaurant.images.length > 0 && ( {restaurant.images && restaurant.images.length > 0 && (
<div className='inline-flex gap-2 mt-[23px] items-center'> <div className='inline-flex gap-2 mt-[23px] items-center'>
<Gallery size={20} className='stroke-disabled-text' /> <Gallery size={20} className='stroke-disabled-text' />
<span className='text-sm2 text-disabled-text font-medium pt-0.5'>عکس های رستوران</span> <span className='text-sm2 text-disabled-text font-medium pt-0.5'>عکس های فروشگاه</span>
</div> </div>
)} )}
</div> </div>
@@ -8,7 +8,7 @@ import { InfoCircle, Star1 } from 'iconsax-react';
const AboutSkeleton = () => { const AboutSkeleton = () => {
const firstTabSkeleton = () => ( const firstTabSkeleton = () => (
<section className='py-4'> <section className='py-4'>
{/* اطلاعات رستوران */} {/* اطلاعات فروشگاه */}
<section className="bg-container rounded-container shadow-container p-4"> <section className="bg-container rounded-container shadow-container p-4">
<div className="flex justify-between items-center border-b-[1.5px] border-gray-200 pb-[25px]"> <div className="flex justify-between items-center border-b-[1.5px] border-gray-200 pb-[25px]">
<div className="flex-1"> <div className="flex-1">
@@ -52,7 +52,7 @@ const MenuFilterDrawer = ({
}, },
{ {
id: "inPlace", id: "inPlace",
title: "سرو در رستوران", title: "سرو در فروشگاه",
label: "", label: "",
}, },
]; ];
+1 -1
View File
@@ -207,7 +207,7 @@ const MenuIndex = () => {
<VerticalScrollView className="mt-5! overflow-y-auto h-full"> <VerticalScrollView className="mt-5! overflow-y-auto h-full">
{filteredReceiptItems.length === 0 ? ( {filteredReceiptItems.length === 0 ? (
<div className="text-center text-foreground/60 py-8"> <div className="text-center text-foreground/60 py-8">
{foodsData ? 'غذایی یافت نشد' : 'در حال بارگذاری...'} {foodsData ? 'کالایی یافت نشد' : 'در حال بارگذاری...'}
</div> </div>
) : ( ) : (
filteredReceiptItems.map((food) => ( filteredReceiptItems.map((food) => (
+1 -1
View File
@@ -86,7 +86,7 @@ function FavoritePage() {
<div className='flex flex-col items-center gap-2 text-sm2 text-muted-foreground'> <div className='flex flex-col items-center gap-2 text-sm2 text-muted-foreground'>
<p>شما هیچ مورد علاقهمندی ثبت نکردهاید</p> <p>شما هیچ مورد علاقهمندی ثبت نکردهاید</p>
<p className='text-xs'> <p className='text-xs'>
برای افزودن غذا به علاقهمندیها، به صفحه جزئیات غذا بروید برای افزودن کالا به علاقهمندیها، به صفحه جزئیات کالا بروید
</p> </p>
</div> </div>
</div> </div>
@@ -87,7 +87,7 @@ function OrderTrackingPage() {
const iconHtml = ` const iconHtml = `
<div style="display: flex; flex-direction: column; align-items: center; text-align: center;"> <div style="display: flex; flex-direction: column; align-items: center; text-align: center;">
<img src="/icons/restaurant-marker.svg" alt="موقعیت رستوران" style="width: 32px; height: 40px; display: block;" /> <img src="/icons/restaurant-marker.svg" alt="موقعیت فروشگاه" style="width: 32px; height: 40px; display: block;" />
</div> </div>
`; `;
@@ -101,7 +101,7 @@ function OrderTrackingPage() {
if (restaurantPosition) { if (restaurantPosition) {
markersToSet.push({ markersToSet.push({
position: restaurantPosition, position: restaurantPosition,
title: 'موقعیت رستوران', title: 'موقعیت فروشگاه',
icon: L.divIcon({ icon: L.divIcon({
html: iconHtml, html: iconHtml,
className: 'custom-restaurant-marker', className: 'custom-restaurant-marker',
+1 -1
View File
@@ -21,7 +21,7 @@ const ActiveChecker = () => {
if (data?.data && !data?.data?.isActive) if (data?.data && !data?.data?.isActive)
return ( return (
<div className='fixed top-0 size-full bg-black/60 z-999999999 flex justify-center items-center text-white! text-lg font-bold backdrop-blur-sm'> <div className='fixed top-0 size-full bg-black/60 z-999999999 flex justify-center items-center text-white! text-lg font-bold backdrop-blur-sm'>
<div>رستوران غیرفعال است.</div> <div>فروشگاه غیرفعال است.</div>
</div> </div>
) )
} }
+1 -1
View File
@@ -91,7 +91,7 @@ function MarkerWithAutoOpen({ position, icon, title }: { position: [number, numb
const markerRef = React.useRef<L.Marker>(null); const markerRef = React.useRef<L.Marker>(null);
useEffect(() => { useEffect(() => {
if (markerRef.current && title === 'موقعیت رستوران') { if (markerRef.current && title === 'موقعیت فروشگاه') {
markerRef.current.openPopup(); markerRef.current.openPopup();
} }
}, [title]); }, [title]);
+2 -2
View File
@@ -29,8 +29,8 @@ export async function getAboutData(name: string) {
// return res.json(); // return res.json();
let title_fa = ''; let title_fa = '';
if (name.toLocaleLowerCase() == 'zhivan') title_fa = 'کافه رستوران ژیوان' if (name.toLocaleLowerCase() == 'zhivan') title_fa = 'کافه فروشگاه ژیوان'
if (name.toLocaleLowerCase() == 'boote') title_fa = 'کافه رستوران بوته' if (name.toLocaleLowerCase() == 'boote') title_fa = 'کافه فروشگاه بوته'
return { return {
name, name,
+2 -2
View File
@@ -9,8 +9,8 @@
"Rate": "ثبت امتیاز" "Rate": "ثبت امتیاز"
}, },
"deliveryMethod": { "deliveryMethod": {
"dineIn": "سرو در رستوران", "dineIn": "سرو در فروشگاه",
"customerPickup": "تحویل در رستوران", "customerPickup": "تحویل در فروشگاه",
"deliveryCar": "تحویل به خودرو", "deliveryCar": "تحویل به خودرو",
"deliveryCourier": "تحویل با پیک" "deliveryCourier": "تحویل با پیک"
}, },
+2 -2
View File
@@ -14,7 +14,7 @@
"InputScope": { "InputScope": {
"Label": "در مورد", "Label": "در مورد",
"Options": { "Options": {
"Restaurant": "رستوران", "Restaurant": "فروشگاه",
"Application": "اپلیکیشن" "Application": "اپلیکیشن"
} }
}, },
@@ -41,7 +41,7 @@
"Label": "", "Label": "",
"Options": { "Options": {
"Delivery": "ارسال با پیک", "Delivery": "ارسال با پیک",
"Serve": "سرو در رستوران", "Serve": "سرو در فروشگاه",
"Pickup": "تحویل در محل" "Pickup": "تحویل در محل"
} }
} }
+1 -1
View File
@@ -1,5 +1,5 @@
{ {
"Heading": "امتیاز شما به رستوران", "Heading": "امتیاز شما به فروشگاه",
"Tabs": { "Tabs": {
"Strengths": { "Strengths": {
"Title": "نقاط قوت", "Title": "نقاط قوت",