Fix i18n issue

This commit is contained in:
Gucheng Wang
2023-03-18 20:42:02 +08:00
parent ed9ceaefe1
commit 2bc4cd9337
12 changed files with 5 additions and 14 deletions

View File

@ -227,7 +227,7 @@ class LoginPage extends React.Component {
Setting.goToLinkSoft(ths, `/prompt/${application.name}?redirectUri=${oAuthParams.redirectUri}&code=${code}&state=${oAuthParams.state}`);
}
} else {
Setting.showMessage("error", `${i18next.t("application:Failed to log in")}: ${res.msg}`);
Setting.showMessage("error", `${i18next.t("application:Failed to sign in")}: ${res.msg}`);
}
});
} else {
@ -290,7 +290,7 @@ class LoginPage extends React.Component {
window.location.href = newUrl.toString();
}
} else {
Setting.showMessage("error", `${i18next.t("application:Failed to log in")}: ${res.msg}`);
Setting.showMessage("error", `${i18next.t("application:Failed to sign in")}: ${res.msg}`);
}
});
} else {
@ -328,7 +328,7 @@ class LoginPage extends React.Component {
}
}
} else {
Setting.showMessage("error", `${i18next.t("application:Failed to log in")}: ${res.msg}`);
Setting.showMessage("error", `${i18next.t("application:Failed to sign in")}: ${res.msg}`);
}
});
}