feat: update i18n (#790)

* feat: tag type i18n

* feat: custom server dialog i18n

* feat: i18n resources name

* feat: i18n toast

* fix: eslint

* eslint: fix

* fix: eslint

* fix: eslint
This commit is contained in:
ChasLui
2022-12-20 17:47:02 +08:00
committed by GitHub
parent c177db69d5
commit a0face6695
16 changed files with 214 additions and 49 deletions

View File

@ -92,7 +92,7 @@ const UpdateAccountDialog: React.FC<Props> = ({ destroy }: Props) => {
userPatch.email = state.email;
}
await userStore.patchUser(userPatch);
toastHelper.info("Update succeed");
toastHelper.info(t("message.update-succeed"));
handleCloseBtnClick();
} catch (error: any) {
console.error(error);