admin/texts/validation.ts
alisaza 82593dc18c refactor(events): update event management components and remove unused files
- Replaced `LIST_PUBLIC_CATEGORIES` with `LIST_ADMIN_CATEGORIES_FLAT` in `ArticleFormModal.tsx`.
- Removed the "Add Event" button from the dashboard page.
- Simplified the `EventsPage` by removing the button and adjusting the layout.
- Cleaned up the `AdminEventEditPage` by removing unnecessary props.
- Deleted unused layout and page files related to event creation.
- Updated `AdminAuthContent` to use `useAdminCitiesQuery` instead of `useDiscoveryCitiesQuery`.
- Refactored `EventGuestListAccessPanel` to remove the `accessMode` prop and adjust API calls accordingly.
- Removed several unused components and tests related to event creation, enhancing project maintainability.
2026-09-07 18:09:55 +03:30

45 lines
2.3 KiB
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

export const validation = {
person: {
firstNameRequired: 'نام را وارد کنید',
firstNameMax: 'نام حداکثر ۱۰۰ کاراکتر است',
lastNameRequired: 'نام خانوادگی را وارد کنید',
lastNameMax: 'نام خانوادگی حداکثر ۱۰۰ کاراکتر است',
genderRequired: 'جنسیت را انتخاب کنید',
},
nationalId: {
nationalCodeRequired: 'کد ملی را وارد کنید',
nationalCodeDigits: 'کد ملی باید ۱۰ رقم باشد',
},
cityRequired: 'شهر را انتخاب کنید',
auth: {
mobileRequired: 'شماره موبایل را وارد کنید',
mobileInvalid: 'شماره موبایل معتبر نیست',
otpInvalid: 'کد وارد شده صحیح نیست',
otpDigits: 'کد باید ۴ رقم باشد',
birthDateRange: 'تاریخ تولد باید بین سال‌های ۱۳۳۰ تا ۱۳۹۵ باشد',
},
withdrawal: {
accountHolderRequired: 'نام صاحب حساب را وارد کنید',
accountHolderMax: 'نام صاحب حساب حداکثر ۲۰۰ کاراکتر است',
ibanInvalid: 'شماره شبا معتبر نیست (فرمت: IR + ۲۴ رقم)',
bankNameMax: 'نام بانک حداکثر ۱۰۰ کاراکتر است',
bankAccountRequired: 'حساب بانکی را انتخاب کنید',
amountRequired: 'مبلغ را وارد کنید',
amountInteger: 'مبلغ باید عدد صحیح باشد',
amountPositive: 'مبلغ باید بیشتر از صفر باشد',
},
eventWizard: {
endAfterStart: 'زمان پایان باید بعد از زمان شروع باشد',
cancelPenaltyOrder: 'درصد جریمه باید با نزدیک‌شدن به زمان رویداد بیشتر یا مساوی شود',
faqQuestionRequired: 'سوال را وارد کنید',
faqAnswerRequired: 'پاسخ را وارد کنید',
},
map: {
invalidCoords: 'مختصات نامعتبر است',
mapKeyMissing: 'کلید نقشه تنظیم نشده است',
mapServiceError: 'خطا در ارتباط با سرویس نقشه',
mapInvalidResponse: 'پاسخ نامعتبر از سرویس نقشه',
mapAddressFailed: 'دریافت آدرس از نقشه ناموفق بود',
},
} as const