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

@ -73,7 +73,7 @@ const UpdateAccountDialog: React.FC<Props> = ({ destroy }: Props) => {
const usernameValidResult = validate(state.username, validateConfig);
if (!usernameValidResult.result) {
toastHelper.error(t("common.username") + ": " + usernameValidResult.reason);
toastHelper.error(t("common.username") + ": " + t(usernameValidResult.reason as string));
return;
}