feat: support custom user mapping (#2029)

* feat: support custom user mapping

* fix: parse id to string

* Update data.json

* Update data.json

---------

Co-authored-by: hsluoyz <hsluoyz@qq.com>
This commit is contained in:
Yaodong Yu
2023-07-05 20:35:02 +08:00
committed by GitHub
parent ba97458edd
commit 3d4ca1adb1
24 changed files with 297 additions and 127 deletions

View File

@ -66,7 +66,7 @@ class PricingPage extends React.Component {
.then(results => {
const hasError = results.some(result => result.status === "error");
if (hasError) {
Setting.showMessage("error", `${i18next.t("Failed to get plans")}`);
Setting.showMessage("error", i18next.t("pricing:Failed to get plans"));
return;
}
this.setState({
@ -75,7 +75,7 @@ class PricingPage extends React.Component {
});
})
.catch(error => {
Setting.showMessage("error", `Failed to get plans: ${error}`);
Setting.showMessage("error", i18next.t("pricing:Failed to get plans") + `: ${error}`);
});
}