chore: update i18n for validator message (#636)

This commit is contained in:
Zeng1998
2022-11-29 21:35:40 +08:00
committed by GitHub
parent 55f37664ef
commit 52038d26d2
9 changed files with 36 additions and 15 deletions

View File

@ -52,7 +52,7 @@ const ChangePasswordDialog: React.FC<Props> = ({ destroy }: Props) => {
const passwordValidResult = validate(newPassword, validateConfig);
if (!passwordValidResult.result) {
toastHelper.error(`${t("common.password")} ${passwordValidResult.reason}`);
toastHelper.error(`${t("common.password")} ${t(passwordValidResult.reason as string)}`);
return;
}