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 className='text-xs'>
{t('EmptyStateDescription', {
defaultValue: 'برای افزودن غذا، به منوی رستوران برگردید.',
defaultValue: 'برای افزودن کالا، به منوی فروشگاه برگردید.',
})}
</p>
</div>
+1 -1
View File
@@ -95,7 +95,7 @@ const CartIndex = () => {
<p>{t('EmptyStateTitle', { defaultValue: 'سبد خرید شما خالی است' })}</p>
<p className='text-xs'>
{t('EmptyStateDescription', {
defaultValue: 'برای افزودن غذا، به منوی رستوران برگردید.',
defaultValue: 'برای افزودن کالا، به منوی فروشگاه برگردید.',
})}
</p>
</div>
@@ -23,7 +23,7 @@ const getDeliveryMethodTitle = (method: string) => {
case 'pickup':
return 'تحویل حضوری';
case 'dineIn':
return 'سرو در رستوران';
return 'سرو در فروشگاه';
default:
return 'روش ارسال';
}
+1 -1
View File
@@ -93,7 +93,7 @@ function FoodPage({ }: Props) {
if (!food?.data) {
return (
<div className='flex items-center justify-center min-h-[400px]'>
<p className='text-disabled-text'>غذا یافت نشد</p>
<p className='text-disabled-text'>کالا یافت نشد</p>
</div>
);
}
+1 -1
View File
@@ -114,7 +114,7 @@ function AboutPage() {
{restaurant.images && restaurant.images.length > 0 && (
<div className='inline-flex gap-2 mt-[23px] items-center'>
<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>
@@ -8,7 +8,7 @@ import { InfoCircle, Star1 } from 'iconsax-react';
const AboutSkeleton = () => {
const firstTabSkeleton = () => (
<section className='py-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-1">
@@ -52,7 +52,7 @@ const MenuFilterDrawer = ({
},
{
id: "inPlace",
title: "سرو در رستوران",
title: "سرو در فروشگاه",
label: "",
},
];
+1 -1
View File
@@ -207,7 +207,7 @@ const MenuIndex = () => {
<VerticalScrollView className="mt-5! overflow-y-auto h-full">
{filteredReceiptItems.length === 0 ? (
<div className="text-center text-foreground/60 py-8">
{foodsData ? 'غذایی یافت نشد' : 'در حال بارگذاری...'}
{foodsData ? 'کالایی یافت نشد' : 'در حال بارگذاری...'}
</div>
) : (
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'>
<p>شما هیچ مورد علاقهمندی ثبت نکردهاید</p>
<p className='text-xs'>
برای افزودن غذا به علاقهمندیها، به صفحه جزئیات غذا بروید
برای افزودن کالا به علاقهمندیها، به صفحه جزئیات کالا بروید
</p>
</div>
</div>
@@ -87,7 +87,7 @@ function OrderTrackingPage() {
const iconHtml = `
<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>
`;
@@ -101,7 +101,7 @@ function OrderTrackingPage() {
if (restaurantPosition) {
markersToSet.push({
position: restaurantPosition,
title: 'موقعیت رستوران',
title: 'موقعیت فروشگاه',
icon: L.divIcon({
html: iconHtml,
className: 'custom-restaurant-marker',
+1 -1
View File
@@ -21,7 +21,7 @@ const ActiveChecker = () => {
if (data?.data && !data?.data?.isActive)
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>رستوران غیرفعال است.</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);
useEffect(() => {
if (markerRef.current && title === 'موقعیت رستوران') {
if (markerRef.current && title === 'موقعیت فروشگاه') {
markerRef.current.openPopup();
}
}, [title]);
+2 -2
View File
@@ -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,
+2 -2
View File
@@ -9,8 +9,8 @@
"Rate": "ثبت امتیاز"
},
"deliveryMethod": {
"dineIn": "سرو در رستوران",
"customerPickup": "تحویل در رستوران",
"dineIn": "سرو در فروشگاه",
"customerPickup": "تحویل در فروشگاه",
"deliveryCar": "تحویل به خودرو",
"deliveryCourier": "تحویل با پیک"
},
+2 -2
View File
@@ -14,7 +14,7 @@
"InputScope": {
"Label": "در مورد",
"Options": {
"Restaurant": "رستوران",
"Restaurant": "فروشگاه",
"Application": "اپلیکیشن"
}
},
@@ -41,7 +41,7 @@
"Label": "",
"Options": {
"Delivery": "ارسال با پیک",
"Serve": "سرو در رستوران",
"Serve": "سرو در فروشگاه",
"Pickup": "تحویل در محل"
}
}
+1 -1
View File
@@ -1,5 +1,5 @@
{
"Heading": "امتیاز شما به رستوران",
"Heading": "امتیاز شما به فروشگاه",
"Tabs": {
"Strengths": {
"Title": "نقاط قوت",