parent
cc0f5e2bf5
commit
d4a96614b3
|
@ -182,7 +182,7 @@ function PhoneForm() {
|
||||||
{
|
{
|
||||||
validator: (_, v) => {
|
validator: (_, v) => {
|
||||||
if (v != "" && !/^\d+$/.test(v)) {
|
if (v != "" && !/^\d+$/.test(v)) {
|
||||||
return Promise.reject(new Error("无效手机号"));
|
return Promise.reject(new Error(t("Invalid phone number")));
|
||||||
}
|
}
|
||||||
return Promise.resolve();
|
return Promise.resolve();
|
||||||
},
|
},
|
||||||
|
|
|
@ -19,5 +19,6 @@
|
||||||
"Official Website": "官方網站",
|
"Official Website": "官方網站",
|
||||||
"Download": "下載",
|
"Download": "下載",
|
||||||
"send successfully": "發送成功",
|
"send successfully": "發送成功",
|
||||||
"Send failure": "發送失敗"
|
"Send failure": "發送失敗",
|
||||||
|
"Invalid phone number": "無效手機號碼"
|
||||||
}
|
}
|
|
@ -19,5 +19,6 @@
|
||||||
"Official Website": "Official Website",
|
"Official Website": "Official Website",
|
||||||
"Download": "Download",
|
"Download": "Download",
|
||||||
"send successfully": "send successfully",
|
"send successfully": "send successfully",
|
||||||
"Send failure":"Send failure"
|
"Send failure": "Send failure",
|
||||||
|
"Invalid phone number": "Invalid phone number"
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue