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

@ -139,7 +139,7 @@ class AuthCallback extends React.Component {
window.location.href = newUrl.toString();
}
} else {
Setting.showMessage("error", `Failed to log in: ${res.msg}`);
Setting.showMessage("error", `${i18next.t("application:Failed to sign in")}: ${res.msg}`);
}
});
return;

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}`);
}
});
}

View File

@ -173,7 +173,7 @@ class SignupPage extends React.Component {
this.onUpdateAccount(account);
Setting.goToLinkSoft(this, this.getResultPath(application));
} else {
Setting.showMessage("error", `Failed to sign in: ${res.msg}`);
Setting.showMessage("error", `${i18next.t("application:Failed to sign in")}: ${res.msg}`);
}
});
} else {

View File

@ -40,7 +40,6 @@
"Enable signin session - Tooltip": "Ob Casdoor eine Sitzung aufrechterhält, nachdem man sich von der Anwendung aus bei Casdoor angemeldet hat",
"Enable signup": "Aktivieren Sie die Registrierung",
"Enable signup - Tooltip": "Ob Benutzern erlaubt werden soll, ein neues Konto zu registrieren",
"Failed to log in": "Fehler beim Einloggen",
"Failed to sign in": "Fehler bei der Anmeldung",
"File uploaded successfully": "Datei erfolgreich hochgeladen",
"Follow organization theme": "Folge dem Thema der Organisation",

View File

@ -40,7 +40,6 @@
"Enable signin session - Tooltip": "Whether Casdoor maintains a session after logging into Casdoor from the application",
"Enable signup": "Enable signup",
"Enable signup - Tooltip": "Whether to allow users to register a new account",
"Failed to log in": "Failed to log in",
"Failed to sign in": "Failed to sign in",
"File uploaded successfully": "File uploaded successfully",
"Follow organization theme": "Follow organization theme",

View File

@ -40,7 +40,6 @@
"Enable signin session - Tooltip": "Si Casdoor mantiene una sesión después de iniciar sesión en Casdoor desde la aplicación",
"Enable signup": "Habilitar registro",
"Enable signup - Tooltip": "Ya sea permitir que los usuarios registren una nueva cuenta",
"Failed to log in": "No se pudo iniciar sesión",
"Failed to sign in": "Error al iniciar sesión",
"File uploaded successfully": "Archivo subido exitosamente",
"Follow organization theme": "Seguir el tema de la organización",

View File

@ -40,7 +40,6 @@
"Enable signin session - Tooltip": "Que Casdoor conserve une session après s'être connecté à Casdoor à partir de l'application",
"Enable signup": "Activer l'inscription",
"Enable signup - Tooltip": "Doit-on autoriser les utilisateurs à créer un nouveau compte ?",
"Failed to log in": "Échec de la connexion",
"Failed to sign in": "Échec de la connexion",
"File uploaded successfully": "Fichier téléchargé avec succès",
"Follow organization theme": "Suivre le thème de l'organisation",

View File

@ -40,7 +40,6 @@
"Enable signin session - Tooltip": "Enable signin session - Tooltip",
"Enable signup": "サインアップを有効にする",
"Enable signup - Tooltip": "Whether to allow users to sign up",
"Failed to log in": "Failed to log in",
"Failed to sign in": "Failed to sign in",
"File uploaded successfully": "ファイルが正常にアップロードされました",
"Follow organization theme": "Follow organization theme",

View File

@ -40,7 +40,6 @@
"Enable signin session - Tooltip": "Enable signin session - Tooltip",
"Enable signup": "Enable signup",
"Enable signup - Tooltip": "Whether to allow users to sign up",
"Failed to log in": "Failed to log in",
"Failed to sign in": "Failed to sign in",
"File uploaded successfully": "File uploaded successfully",
"Follow organization theme": "Follow organization theme",

View File

@ -40,7 +40,6 @@
"Enable signin session - Tooltip": "Включить сеанс входа - Подсказка",
"Enable signup": "Включить регистрацию",
"Enable signup - Tooltip": "Whether to allow users to sign up",
"Failed to log in": "Failed to log in",
"Failed to sign in": "Failed to sign in",
"File uploaded successfully": "Файл успешно загружен",
"Follow organization theme": "Follow organization theme",

View File

@ -40,7 +40,6 @@
"Enable signin session - Tooltip": "Enable signin session - Tooltip",
"Enable signup": "Enable signup",
"Enable signup - Tooltip": "Enable signup - Tooltip",
"Failed to log in": "Failed to log in",
"Failed to sign in": "Failed to sign in",
"File uploaded successfully": "File uploaded successfully",
"Follow organization theme": "Follow organization theme",

View File

@ -40,7 +40,6 @@
"Enable signin session - Tooltip": "从应用登录Casdoor后Casdoor是否保持会话",
"Enable signup": "启用注册",
"Enable signup - Tooltip": "是否允许用户注册",
"Failed to log in": "登录失败",
"Failed to sign in": "登录失败",
"File uploaded successfully": "文件上传成功",
"Follow organization theme": "使用组织主题",