From 5922f45112c258abbeeffd4f1b30dea39078839c Mon Sep 17 00:00:00 2001 From: xingyu4j Date: Mon, 12 May 2025 11:31:50 +0800 Subject: [PATCH] fix: locales --- apps/web-antd/src/adapter/form.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/web-antd/src/adapter/form.ts b/apps/web-antd/src/adapter/form.ts index cf75673e..d0932a0d 100644 --- a/apps/web-antd/src/adapter/form.ts +++ b/apps/web-antd/src/adapter/form.ts @@ -45,7 +45,7 @@ setupVbenForm({ if (value === undefined || value === null || value.length === 0) { return true; } else if (!MOBILE_REGEX.test(value)) { - return $t('ui.formRules.phone', [ctx.label]); + return $t('ui.formRules.mobile', [ctx.label]); } return true; }, @@ -55,7 +55,7 @@ setupVbenForm({ return $t('ui.formRules.required', [ctx.label]); } if (!MOBILE_REGEX.test(value)) { - return $t('ui.formRules.phone', [ctx.label]); + return $t('ui.formRules.mobile', [ctx.label]); } return true; },