Skip to content

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

fix(i18n): migrate i18n YAML to JSON correctly (#1233)

Takuya N6cc6e34935e4
diff --git a/frontend/src/locales/en.json b/frontend/src/locales/en.json
index 177e11cc4e..60e1bb5267 100644
--- a/frontend/src/locales/en.json
+++ b/frontend/src/locales/en.json
@@ -982,6 +982,7 @@
"description": "Before any project can enable GitOps workflow, Bytebase first needs to integrate with the corresponding version control system (VCS) by registering as an OAuth application in that VCS. Below are the steps to configure this, you can also follow our {guide}.",
"gitlab-self-host": "GitLab self-host",
"gitlab-self-host-admin-requirement": "You need to be an Admin of your chosen GitLab instance to configure this. Otherwise, you need to ask your GitLab instance Admin to register Bytebase as a GitLab instance-wide OAuth application, then provide you that Application ID and Secret to fill at the 'OAuth application info' step.",
+ "github-com-admin-requirement": "You need to be an admin of your chosen GitHub organization to configure this. Otherwise, you need to ask your GitHub organization admin to register Bytebase as a GitHub organization-wide OAuth application, then provide you that Application ID and Secret to fill at the 'OAuth application info' step.",
"ouath-info-correct": "Verified OAuth info is correct",
"check-oauth-info-match": "Please make sure Secret matches the one from your GitLab instance Application.",
"add-success": "Successfully added Git provider {vcs}",
@@ -991,20 +992,27 @@
"self": "Basic info",
"gitlab-instance-url": "GitLab instance URL",
"gitlab-instance-url-label": "The VCS instance URL. Make sure this instance and Bytebase are network reachable from each other.",
+ "github-instance-url": "GitHub instance URL",
"instance-url-error": "Instance URL must begin with https:// or http://",
"display-name": "Display name",
"display-name-label": "An optional display name to help identifying among different configs using the same Git provider."
},
"oauth-info": {
"self": "OAuth application info",
- "register-oauth-application": "Register Bytebase as a GitLab instance-wide OAuth application.",
- "login-as-admin": "Login as an Admin user to the GitLab instance. The account must be an Admin of the entire GitLab instance (it has a wrench icon on the top bar).",
- "visit-admin-page": "Go to the Admin page by clicking the wrench icon, then navigate to \"Applications\" section and click \"New application\" button.",
+ "gitlab-register-oauth-application": "Register Bytebase as a GitLab instance-wide OAuth application.",
+ "gitlab-login-as-admin": "Login as an Admin user to the GitLab instance. The account must be an Admin of the entire GitLab instance (it has a wrench icon on the top bar).",
+ "gitlab-visit-admin-page": "Go to the Admin page by clicking the wrench icon, then navigate to \"Applications\" section and click \"New application\" button.",
+ "gitlab-paste-oauth-info": "Paste the Application ID and Secret from that just created application into fields below.",
+ "github-register-oauth-application": "Register Bytebase as a GitHub organization-wide OAuth application.",
+ "github-login-as-admin": "Login as an organization admin user to the GitHub.com. The account must be an organization admin of the GitHub organization (able to access the organiztion Settings page).",
+ "github-visit-admin-page": "Go to the Settings page, then navigate to \"Developer settings > OAuth Apps\" section and click \"Register an application\" button.",
+ "github-paste-oauth-info": "Paste the Client ID and Client secret from that just created application into fields below.",
"direct-link": "Direct link",
"create-oauth-app": "Create your Bytebase OAuth application with the following info.",
- "paste-oauth-info": "Paste the Application ID and Secret from that just created application into fields below.",
- "application-id-error": "Application ID must be a 64-character alphanumeric string",
- "secret-error": "Secret must be a 64-character alphanumeric string"
+ "gitlab-application-id-error": "Application ID must be a 64-character alphanumeric string",
+ "gitlab-secret-error": "Secret must be a 64-character alphanumeric string",
+ "github-application-id-error": "Application ID must be a 20-character alphanumeric string",
+ "github-secret-error": "Secret must be a 40-character alphanumeric string"
},
"confirm": {
"confirm-info": "Confirm the info",
@@ -1012,9 +1020,11 @@
}
},
"git-provider": {
- "application-id-label": "Application ID for the registered GitLab instance-wide OAuth application.",
+ "gitlab-application-id-label": "Application ID for the registered GitLab instance-wide OAuth application.",
"view-in-gitlab": "View in GitLab",
"secret-label-gitlab": "Secret for the registered GitLab instance-wide OAuth application.",
+ "github-application-id-label": "Client ID for the registered GitHub organization-wide OAuth application.",
+ "secret-label-github": "Client secret for the registered GitHub organization-wide OAuth application.",
"delete": "To delete this provider, unlink all repositories first."
}
}
diff --git a/frontend/src/locales/zh-CN.json b/frontend/src/locales/zh-CN.json
index c5ae3d068d..546fc98649 100644
--- a/frontend/src/locales/zh-CN.json
+++ b/frontend/src/locales/zh-CN.json
@@ -982,6 +982,7 @@
"description": "在项目可以启用 GitOps 工作流前,Bytebase 首先需要以在 VCS 中注册为 OAuth 应用的方式和 VCS 进行集成。以下是配置该集成的步骤,您也可以按照我们的{guide}。",
"gitlab-self-host": "自托管 GitLab",
"gitlab-self-host-admin-requirement": "您必须是 GitLab 实例的管理员才能进行该配置。否则您需要让您的 GitLab 实例管理员把 Bytebase 先注册为 GitLab 整个实例级别的 OAuth 应用,之后再让对方提供给您注册完成后的应用 ID 以及 Secret,以让您在「OAuth 应用信息」步骤进行填写。",
+ "github-com-admin-requirement": "您必须是 GitHub 组织的管理员才能进行该配置。否则您需要让您的 GitHub 组织管理员把 Bytebase 先注册为组织级别的 OAuth 应用,之后再让对方提供给您注册完成后的应用 ID 以及 Secret,以让您在「OAuth 应用信息」步骤进行填写。",
"ouath-info-correct": "OAuth 信息验证成功",
"check-oauth-info-match": "请确认 Secret 和注册在 GitLab 实例上的应用信息匹配。",
"add-success": "成功添加了 Git 提供方「{vcs}」",
@@ -991,20 +992,27 @@
"self": "基本信息",
"gitlab-instance-url": "GitLab 实例 URL",
"gitlab-instance-url-label": "VCS 实例 URL。请确认这个实例和 Bytebase 之间网络是互通的。",
+ "github-instance-url": "GitHub 实例 URL",
"instance-url-error": "实例 URL 必须以 https:// or http:// 开头",
"display-name": "展示名称",
"display-name-label": "一个可选的展示名称用以区分不同的 Git 供应方。"
},
"oauth-info": {
"self": "OAuth 应用信息",
- "register-oauth-application": "注册 Bytebase 为一个 GitLab 实例级别 (instance-wide) 的 OAuth 应用。",
- "login-as-admin": "以管理员身份登录 GitLab 实例。这个账号必须是整个 GitLab 实例的管理员 (会看到小扳手在顶栏)。",
- "visit-admin-page": "通过点击小扳手访问管理员界面,然后导航到「应用」分区,再点击「创建应用」。",
+ "gitlab-register-oauth-application": "注册 Bytebase 为一个 GitLab 实例级别 (instance-wide) 的 OAuth 应用。",
+ "gitlab-login-as-admin": "以管理员身份登录 GitLab 实例。这个账号必须是整个 GitLab 实例的管理员 (会看到小扳手在顶栏)。",
+ "gitlab-visit-admin-page": "通过点击小扳手访问管理员界面,然后导航到「应用」分区,再点击「创建应用」。",
+ "gitlab-paste-oauth-info": "从刚创建好的应用上粘贴它的应用 ID 和 Secret 到下面的字段。",
+ "github-register-oauth-application": "注册 Bytebase 为一个 GitHub 组织级别 (organization-wide) 的 OAuth 应用。",
+ "github-login-as-admin": "以组织管理员身份登录 GitHub.com。这个账号必须是 GitHub 组织的管理员 (能够进入组织 Settings 页面)。",
+ "github-visit-admin-page": "进入组织 Settings 页面,然后导航到「Developer settings > OAuth Apps」分区,再点击「Register an application」。",
+ "github-paste-oauth-info": "从刚创建好的应用上粘贴它的 Client ID 和 Client secret 到下面的字段。",
"direct-link": "直达链接",
"create-oauth-app": "使用如下信息来创建您的 Bytebase OAuth 应用。",
- "paste-oauth-info": "从刚创建好的应用上粘贴他的应用 ID 和 Secret 到下面的字段。",
- "application-id-error": "应用 ID 必须是 64 个字母长度",
- "secret-error": "Secret 必须是 64 个字母长度"
+ "gitlab-application-id-error": "应用 ID 必须是 64 个字母长度",
+ "gitlab-secret-error": "Secret 必须是 64 个字母长度",
+ "github-application-id-error": "应用 ID 必须是 20 个字母长度",
+ "github-secret-error": "Secret 必须是 40 个字母长度"
},
"confirm": {
"confirm-info": "确认信息",
@@ -1012,9 +1020,11 @@
}
},
"git-provider": {
- "application-id-label": "注册为 GitLab 实例级 OAuth 应用的应用 ID。",
+ "gitlab-application-id-label": "注册为 GitLab 实例级 OAuth 应用的应用 ID。",
"view-in-gitlab": "查看 GitLab",
"secret-label-gitlab": "注册为 GitLab 实例级 OAuth 应用的 Secret。",
+ "github-application-id-label": "注册为 GitHub 组织级别 OAuth 应用的 Client ID。",
+ "secret-label-github": "注册为 GitHub 组织级别 OAuth 应用的 Client secret。",
"delete": "删除这个提供方前,需要先解除所有仓库的关联。"
}
}
@@ -1267,12 +1277,12 @@
"sql-check-basic": "基础",
"sql-check-basic-tooltip": "语法检查、数据库连接检查",
"sql-check-advanced": "高级",
- "sql-check-advanced-tooltip": "基础版功能+向后兼容性检查",
+ "sql-check-advanced-tooltip": "基础版功能 + 向后兼容性检查",
"anomaly-detection": "异常检测",
"anomaly-detection-basic": "基础",
"anomaly-detection-basic-tooltip": "数据库连接异常、备份缺失",
"anomaly-detection-advanced": "高级",
- "anomaly-detection-advanced-tooltip": "基础版功能+ Schema 偏差检测",
+ "anomaly-detection-advanced-tooltip": "基础版功能 + Schema 偏差检测",
"schedule-change": "设定任务执行时间",
"review-and-backup-policy": "审核和备份策略",
"tenancy": "多地域/多租户部署"