diff --git a/i18n/en.json b/i18n/en.json index 3ef1b010..634e44e8 100644 --- a/i18n/en.json +++ b/i18n/en.json @@ -503,5 +503,24 @@ "请输入 AZURE_OPENAI_ENDPOINT": "Please enter AZURE_OPENAI_ENDPOINT", "请输入自定义渠道的 Base URL": "Please enter the Base URL of the custom channel", "Homepage URL 填": "Fill in the Homepage URL", - "Authorization callback URL 填": "Fill in the Authorization callback URL" + "Authorization callback URL 填": "Fill in the Authorization callback URL", + "允许通过 Discord 账户登录和注册": "Allow login and registration via Discord account", + "Discord 身份验证": "Discord Authentication", + "确认文字": "Confirmation Text", + "请输入 \"CONFIRM\" 以删除您的帐户。": "Please enter \"CONFIRM\" to delete your account.", + "请确认您要删除账户!": "Please confirm that you want to delete the account!", + "账户已删除!": "Account deleted!", + "您是否确认删除自己的帐户?": "Are you sure you want to delete your account?", + "配置 Discord OAuth App": "Configure Discord OAuth App", + "管理你的 Discord OAuth App": "Manage your Discord OAuth App", + "输入你注册的 Discord OAuth APP 的 ID": "Enter the ID of your registered Discord OAuth APP", + "保存 Discord OAuth 设置": "Save Discord OAuth Settings", + "删除个人账户": "Delete personal account", + "绑定 Discord 账号": "Bind Discord account", + "无权将其他用户权限等级提升到大于等于自己的权限等级": "You are not allowed to upgrade the permission level of other users to greater than or equal to your own permission level", + "无权删除超级管理员": "You are not allowed to delete super administrators", + "该 Discord 账户已被绑定": "The Discord account has been bound", + "管理员未开启通过 Discord 登录以及注册": "The administrator has not enabled login and registration via Discord", + "无法启用 Discord OAuth,请先填入 Discord Client ID 以及 Discord Client Secret!": "Unable to enable Discord OAuth, please fill in the Discord Client ID and Discord Client Secret first!", + "兑换失败,": "Redemption failed, ", } diff --git a/web/src/components/SystemSetting.js b/web/src/components/SystemSetting.js index ad31b29f..bbe84b9c 100644 --- a/web/src/components/SystemSetting.js +++ b/web/src/components/SystemSetting.js @@ -195,55 +195,55 @@ const SystemSetting = () => {
-
通用设置
+
General Settings
- 更新服务器地址 + Update Server Address -
配置登录注册
+
Configure Login/Registration
@@ -251,82 +251,82 @@ const SystemSetting = () => {
- 配置 SMTP - 用以支持系统的邮件发送 + Configure SMTP + To support the system email sending
- 保存 SMTP 设置 + Save SMTP Settings
- 配置 Discord OAuth App + Configure Discord OAuth App - 用以支持通过 GitHub 进行登录注册, + To support login & registration via GitHub, - 点击此处 + Click here - 管理你的 Discord OAuth App + Manage your Discord OAuth App
- Homepage URL 填 {inputs.ServerAddress} - ,Authorization callback URL 填{' '} + Fill in the Homepage URL {inputs.ServerAddress} + ,Fill in the Authorization callback URL{' '} {`${inputs.ServerAddress}/oauth/discord`} @@ -336,7 +336,7 @@ const SystemSetting = () => { onChange={handleInputChange} autoComplete='new-password' value={inputs.DiscordClientId} - placeholder='输入你注册的 Discord OAuth APP 的 ID' + placeholder='Enter the ID of your registered Discord OAuth APP' /> { type='password' autoComplete='new-password' value={inputs.DiscordClientSecret} - placeholder='敏感信息不会发送到前端显示' + placeholder='Sensitive information will not be displayed in the frontend' /> - 保存 Discord OAuth 设置 + Save Discord OAuth Settings
- 配置 GitHub OAuth App + Configure GitHub OAuth App - 用以支持通过 GitHub 进行登录注册, + To support login & registration via GitHub, - 点击此处 + Click here - 管理你的 GitHub OAuth App + Manage your GitHub OAuth App
- Homepage URL 填 {inputs.ServerAddress} - ,Authorization callback URL 填{' '} + Fill in the Homepage URL {inputs.ServerAddress} + ,Fill in the Authorization callback URL{' '} {`${inputs.ServerAddress}/oauth/github`} @@ -374,7 +374,7 @@ const SystemSetting = () => { onChange={handleInputChange} autoComplete='new-password' value={inputs.GitHubClientId} - placeholder='输入你注册的 GitHub OAuth APP 的 ID' + placeholder='Enter your registered GitHub OAuth APP ID' /> { type='password' autoComplete='new-password' value={inputs.GitHubClientSecret} - placeholder='敏感信息不会发送到前端显示' + placeholder='Sensitive information will not be displayed in the frontend' /> - 保存 GitHub OAuth 设置 + Save GitHub OAuth Settings
- 配置 WeChat Server + Configure WeChat Server - 用以支持通过微信进行登录注册, + To support login & registration via WeChat, - 点击此处 + Click here - 了解 WeChat Server + Learn about WeChat Server
- 保存 WeChat Server 设置 + Save WeChat Server Settings
- 配置 Turnstile + Configure Turnstile - 用以支持用户校验, + To support user verification, - 点击此处 + Click here - 管理你的 Turnstile Sites,推荐选择 Invisible Widget Type + Manage your Turnstile Sites, recommend selecting Invisible Widget Type
@@ -451,7 +451,7 @@ const SystemSetting = () => { onChange={handleInputChange} autoComplete='new-password' value={inputs.TurnstileSiteKey} - placeholder='输入你注册的 Turnstile Site Key' + placeholder='Enter your registered Turnstile Site Key' /> { type='password' autoComplete='new-password' value={inputs.TurnstileSecretKey} - placeholder='敏感信息不会发送到前端显示' + placeholder='Sensitive information will not be displayed in the frontend' /> - 保存 Turnstile 设置 + Save Turnstile Settings