Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

chore: fix i18n of sso (#16550)

boojack9361c5f58a69
diff --git a/frontend/src/components/IdentityProvider/IdentityProviderCreateWizard.vue b/frontend/src/components/IdentityProvider/IdentityProviderCreateWizard.vue
index 678217e5c3..362a1a32ef 100644
--- a/frontend/src/components/IdentityProvider/IdentityProviderCreateWizard.vue
+++ b/frontend/src/components/IdentityProvider/IdentityProviderCreateWizard.vue
@@ -191,26 +191,25 @@
v-model:value="identityProvider.title"
required
size="large"
- class="w-full text-base"
+ class="w-full text-base mb-2"
:placeholder="$t('settings.sso.form.name-description')"
/>
+ <ResourceIdField
+ ref="resourceIdField"
+ resource-type="idp"
+ v-model:value="resourceIdValue"
+ :suffix="true"
+ :resource-title="identityProvider.title"
+ :fetch-resource="
+ (id) =>
+ identityProviderStore.getOrFetchIdentityProviderByName(
+ `${idpNamePrefix}${id}`,
+ true /* silent */
+ )
+ "
+ />
</div>
- <ResourceIdField
- ref="resourceIdField"
- resource-type="idp"
- v-model:value="resourceIdValue"
- :suffix="true"
- :resource-title="identityProvider.title"
- :fetch-resource="
- (id) =>
- identityProviderStore.getOrFetchIdentityProviderByName(
- `${idpNamePrefix}${id}`,
- true /* silent */
- )
- "
- />
-
<div>
<label class="block text-base font-semibold text-gray-800 mb-2">
{{ $t("settings.sso.form.domain") }}
diff --git a/frontend/src/locales/ja-JP.json b/frontend/src/locales/ja-JP.json
index 897bde49e9..7a17034a7c 100644
--- a/frontend/src/locales/ja-JP.json
+++ b/frontend/src/locales/ja-JP.json
@@ -471,8 +471,8 @@
"user-info-url": "ユーザー情報URL",
"user-info-url-placeholder": "例えばhttps://api.github.com/user",
"scopes": "スコープ",
- "scopes-placeholder": "例: ユーザーのメールプロフィール",
- "scopes-placeholder-oidc": "例:OpenIDプロファイルメール",
+ "scopes-placeholder": "例: user, email, profile",
+ "scopes-placeholder-oidc": "例: openid, user, email, profile",
"authentication-style": "認証スタイル",
"in-parameters": "パラメータ",
"in-parameters-description": "POST 本文で資格情報を送信する(推奨)",
diff --git a/frontend/src/locales/vi-VN.json b/frontend/src/locales/vi-VN.json
index 63250c7926..2538805d40 100644
--- a/frontend/src/locales/vi-VN.json
+++ b/frontend/src/locales/vi-VN.json
@@ -471,8 +471,8 @@
"user-info-url": "URL thông tin người dùng",
"user-info-url-placeholder": "ví dụ. https://api.github.com/user",
"scopes": "Phạm vi",
- "scopes-placeholder": "ví dụ: hồ sơ email của người dùng",
- "scopes-placeholder-oidc": "ví dụ email hồ sơ openid",
+ "scopes-placeholder": "ví dụ: user, email, profile",
+ "scopes-placeholder-oidc": "ví dụ: openid, user, email, profile",
"authentication-style": "Kiểu xác thực",
"in-parameters": "Trong các tham số",
"in-parameters-description": "Gửi thông tin xác thực trong nội dung POST (khuyến nghị)",
diff --git a/frontend/src/locales/zh-CN.json b/frontend/src/locales/zh-CN.json
index b7357952c4..c2691f83ff 100644
--- a/frontend/src/locales/zh-CN.json
+++ b/frontend/src/locales/zh-CN.json
@@ -471,13 +471,13 @@
"user-info-url": "用户信息 URL",
"user-info-url-placeholder": "例如 https://api.github.com/user",
"scopes": "作用域",
- "scopes-placeholder": "例如用户电子邮件资料",
- "scopes-placeholder-oidc": "例如 openid 个人资料电子邮件",
+ "scopes-placeholder": "例如,user、email、profile",
+ "scopes-placeholder-oidc": "例如,openid、user、email、profile",
"authentication-style": "身份验证方式",
"in-parameters": "在参数中",
- "in-parameters-description": "在 POST 正文中发送凭据(推荐)",
- "in-header": "在标题中",
- "in-header-description": "使用 HTTP 基本授权发送凭证",
+ "in-parameters-description": "在 POST body 中发送凭证(推荐)",
+ "in-header": "在头信息中",
+ "in-header-description": "使用 HTTP header 中发送凭证",
"security-options": "安全选项",
"skip-tls-verification": "跳过 TLS 证书验证",
"skip-tls-warning": "仅为开发或测试目的启用此功能",
@@ -486,11 +486,11 @@
"openid-scopes-description": "以空格分隔的 OIDC 范围列表(需要 openid)",
"host-placeholder": "例如 ldap.example.com",
"bind-dn": "绑定 DN",
- "bind-dn-placeholder": "例如uid=系统、ou=用户、dc=示例、dc=com",
+ "bind-dn-placeholder": "例如,uid=system、ou=user、dc=example、dc=com",
"bind-dn-description": "搜索请求时绑定的用户 DN",
"bind-password": "绑定密码",
"base-dn": "基本 DN",
- "base-dn-placeholder": "例如ou=用户、dc=示例、dc=com",
+ "base-dn-placeholder": "例如,ou=user、dc=example、dc=com",
"base-dn-description": "搜索用户的基本 DN",
"user-filter": "用户过滤器",
"user-filter-placeholder": "例如 (uid=%s)",
@@ -503,16 +503,16 @@
"none-description": "无加密(不建议用于生产)",
"domain-optional-hint": "(可选)如果 SSO 所提供的用户唯一标识符不是电子邮件格式,则会用域名进行拼接。",
"provider-type-readonly-hint": "提供商类型创建后无法更改",
- "identifier-placeholder": "例如登录名、电子邮件",
- "display-name-placeholder": "例如名称、显示名称",
- "phone-placeholder": "例如电话、手机",
- "groups-placeholder": "例如团体",
+ "identifier-placeholder": "例如,username、email",
+ "display-name-placeholder": "例如,title、nickname",
+ "phone-placeholder": "例如,phone、mobile",
+ "groups-placeholder": "例如,groups",
"groups-description": "用于基于组的访问控制(仅限 OIDC 提供商)",
"google-template-description": "使用 Google 帐户登录",
"github-template-description": "使用 GitHub 帐户登录",
"gitlab-template-description": "使用 GitLab 帐户登录",
"microsoft-entra-template-description": "使用 Microsoft Entra ID 登录",
- "custom-template-description": "配置自定义 OAuth 2.0 提供程序"
+ "custom-template-description": "配置自定义 OAuth 2.0 提供商"
},
"copy-redirect-url": "Redirect URL 已复制到剪切板。"
},