fix: locales
This commit is contained in:
@@ -45,7 +45,7 @@ setupVbenForm<ComponentType>({
|
|||||||
if (value === undefined || value === null || value.length === 0) {
|
if (value === undefined || value === null || value.length === 0) {
|
||||||
return true;
|
return true;
|
||||||
} else if (!MOBILE_REGEX.test(value)) {
|
} else if (!MOBILE_REGEX.test(value)) {
|
||||||
return $t('ui.formRules.phone', [ctx.label]);
|
return $t('ui.formRules.mobile', [ctx.label]);
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
},
|
},
|
||||||
@@ -55,7 +55,7 @@ setupVbenForm<ComponentType>({
|
|||||||
return $t('ui.formRules.required', [ctx.label]);
|
return $t('ui.formRules.required', [ctx.label]);
|
||||||
}
|
}
|
||||||
if (!MOBILE_REGEX.test(value)) {
|
if (!MOBILE_REGEX.test(value)) {
|
||||||
return $t('ui.formRules.phone', [ctx.label]);
|
return $t('ui.formRules.mobile', [ctx.label]);
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user