fix: localize Yup validation messages
Deploy banu-front / deploy (push) Successful in 1m50s

This commit is contained in:
sajjadtalkhabi
2026-08-14 21:08:43 +03:30
parent fe08fc46fb
commit fec1da6ec8
8 changed files with 120 additions and 22 deletions
+4 -1
View File
@@ -22,7 +22,10 @@ export const studentProfileSchema = object().shape({
virtualPhoneNumber: string()
.nullable()
.notRequired()
.matches(/^\d{10,15}$/, { message: 'شماره تلفن مجازی نامعتبر است', excludeEmptyString: true }),
.matches(/^\d{10,15}$/, {
message: 'شماره تلفن مجازی باید فقط شامل ۱۰ تا ۱۵ رقم باشد',
excludeEmptyString: true,
}),
seminaryCode: string().nullable().notRequired(),
seminaryServiceCenterCode: string().nullable().notRequired(),
childrenCount: string()