Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
fix(i18n): some leftover translation and use proper quote and newline mark (#226)
tianzhouccf142aeb9a3
diff --git a/frontend/src/components/EnvironmentTabFilter.vue b/frontend/src/components/EnvironmentTabFilter.vueindex 7ebbf26beb..32383d7d69 100644--- a/frontend/src/components/EnvironmentTabFilter.vue+++ b/frontend/src/components/EnvironmentTabFilter.vue@@ -20,6 +20,7 @@ import { useStore } from "vuex";import cloneDeep from "lodash-es/cloneDeep";import { Environment } from "../types";import { BBTabFilterItem } from "../bbkit/types";+import { useI18n } from "vue-i18n";interface LocalState {selectedIndex: number;@@ -35,6 +36,7 @@ export default {},emits: ["select-environment"],setup(props) {+ const { t } = useI18n();const store = useStore();const environmentList = computed(() => {@@ -67,7 +69,7 @@ export default {const tabItemList = computed((): BBTabFilterItem[] => {const list: BBTabFilterItem[] = [{- title: "All",+ title: t('common.all'),alert: false,},];diff --git a/frontend/src/locales/en.yml b/frontend/src/locales/en.ymlindex 254284db76..3693944f82 100644--- a/frontend/src/locales/en.yml+++ b/frontend/src/locales/en.yml@@ -148,6 +148,7 @@ common:connection-string: Connection stringagents: Agentsbillings: Billings+ all: Allerror-page:go-back-home: Go back homeanomaly-center: Anomaly Center@@ -471,7 +472,7 @@ instance:warn: >-If the connecting instance is managed by the cloud provider, thenSUPERUSER is not available and you should create the user via that- provider\'s admin console. The created user will have provider+ provider's admin console. The created user will have providerspecific semi-SUPERUSER privileges.template: >-Below is an example to create user 'bytebase' with password {password}@@ -483,11 +484,10 @@ instance:ignore-and-create: Ignore and createconnection-info-seems-to-be-incorrect: Connection info seems to be incorrectnew-instance: New Instance- unable-to-connect: >-- Bytebase is unable to connect the instance. We recommend you to review the- connection info again. But it's OK to ignore this warning for now. You can- still fix the connection info from the instance detail page after- creation.\n\nError detail: {0}+ unable-to-connect: |-+ Bytebase is unable to connect the instance. We recommend you to review the connection info again. But it's OK to ignore this warning for now. You can still fix the connection info from the instance detail page after creation.++ Error detail: {0}successfully-created-instance-createdinstance-name: Successfully created instance '{0}'.successfully-updated-instance-instance-name: Successfully updated instance '{0}'.copy-grant-statement: >-@@ -495,13 +495,11 @@ instance:client to apply.successfully-connected-instance: Successfully connected instance.failed-to-connect-instance: Failed to connect instance.- how-to-setup-instance: How to setup \'Instance\' ?- how-to-setup-instance-description: >-- Each Bytebase instance belongs to an environment. An instance usually maps- to one of your database instance represented by an host:port address. This- could be your on-premises MySQL instance, a RDS instance.\n\nBytebase- requires read/write (NOT the super privilege) access to the instance in- order to perform database operations on behalf of the user.+ how-to-setup-instance: How to setup 'Instance' ?+ how-to-setup-instance-description: |-+ Each Bytebase instance belongs to an environment. An instance usually maps to one of your database instance represented by an host:port address. This could be your on-premises MySQL instance, a RDS instance.++ Bytebase requires read/write (NOT the super privilege) access to the instance in order to perform database operations on behalf of the user.search-instance-name: Search instance namegrants: Grantsenvironment:@@ -511,6 +509,13 @@ environment:Archived environment will not be shown on the normal interface. You canstill restore later from the Archive page.create: Create Environment+ how-to-setup-environment: How to setup 'Environment' ?+ how-to-setup-environment-description: |-+ Each environment maps to one of your testing, staging, prod environment respectively.++ Environment is a global setting, one Bytebase deployment only contains a single set of environments.++ Database instances are created under a particular environment.quick-start:bookmark-an-issue: Bookmark an issueadd-a-comment: Add a comment@@ -601,12 +606,11 @@ database:sync-status: Sync statuslast-successful-sync: Last successful syncsearch-database-name: Search database name- how-to-setup-database: How to setup \'Database\' ?- show-guide-description: >-- Each Bytebase database maps to the one created by \'CREATE DATABASE xxx\'.- In Bytebase, a database always belongs to a single project.\n\nBytebase will- periodically sync the database info for every recorded instance. You can- also create a new database from the dashboard.+ how-to-setup-database: How to setup 'Database' ?+ show-guide-description: |-+ Each Bytebase database maps to the one created by 'CREATE DATABASE xxx'. In Bytebase, a database always belongs to a single project.++ Bytebase will periodically sync the database info for every recorded instance. You can also create a new database from the dashboard.restored-from: 'Restored from 'database-name-is-restored-from-another-database-backup: '{0} is restored from another database backup'database-backup: database backup@@ -770,7 +774,7 @@ anomaly:project:dashboard:modal:- title: How to setup \'@:{'common.project'}\' ?+ title: How to setup '@:{'common.project'}' ?content: >-Bytebase project is similar to the project concept in other common devtools.diff --git a/frontend/src/locales/zh-CN.yml b/frontend/src/locales/zh-CN.ymlindex df671ed9dc..9d9c5f0952 100644--- a/frontend/src/locales/zh-CN.yml+++ b/frontend/src/locales/zh-CN.yml@@ -148,6 +148,7 @@ common:connection-string: 连接字符串agents: Agentsbillings: 计费+ all: 全部error-page:go-back-home: 回到主页anomaly-center: 异常中心@@ -449,17 +450,21 @@ instance:ignore-and-create: 忽略并创建connection-info-seems-to-be-incorrect: 连接信息似乎错误new-instance: 新实例- unable-to-connect: >-- Bytebase 无法连接到实例。我们推荐您再检查一遍连接信息。但也可以暂时忽略此警告。您在创建后仍能在实例详细页里修复连接信息。\n\n错误详情:- {0}+ unable-to-connect: |-+ Bytebase 无法连接到实例。我们推荐您再检查一遍连接信息。但也可以暂时忽略此警告。您在创建后仍能在实例详细页里修复连接信息。++ 错误详情:{0}successfully-created-instance-createdinstance-name: 成功创建实例'{0}'。successfully-updated-instance-instance-name: 成功更新实例'{0}'。copy-grant-statement: CREATE USER and GRANT 语句已复制到剪贴板。 粘贴到您的 mysql 客户端。successfully-connected-instance: 成功连接到实例。failed-to-connect-instance: 连接到实例失败。- how-to-setup-instance: 如何设置'实例'?- how-to-setup-instance-description: >-- 每个 Bytebase 实例属于一个环境。一个实例通常映射到您的一个由 host:port 地址所代表的数据库实例。这可能是您在诸如 AWS 上的 RDS 实例,也可能您私有化部署的 MySQL 实例。\n\nBytebase 要求实例的读写权限(而不是 super 权限)以代表用户执行数据库操作。+ how-to-setup-instance: 如何设置「实例」?+ how-to-setup-instance-description: |-+ 每个 Bytebase 实例属于一个环境。一个实例通常映射到您的一个由 host:port 地址所代表的数据库实例。这可能是您在诸如 AWS 上的+ RDS 实例,也可能您私有化部署的 MySQL 实例。++ Bytebase 要求实例的读写权限(而不是 super 权限)以代表用户执行数据库操作。search-instance-name: 搜索实例名称grants: 权限environment:@@ -467,6 +472,13 @@ environment:archive: 归档此环境archive-info: 已归档环境不会显示。您可以从归档界面恢复。create: 创建环境+ how-to-setup-environment: 如何创建「环境」?+ how-to-setup-environment-description: |-+ 每个环境与您的诸如测试,预发,生产环境一一对应。++ 环境是一个全局配置,1 套 Bytebase 的部署也只包含一套环境配置的集合。++ 数据库实例是创建在某个特定环境下面的。quick-start:bookmark-an-issue: 收藏工单add-a-comment: 添加评论@@ -547,10 +559,10 @@ database:no-anomalies-detected: 没有检测到异常sync-status: 同步状态search-database-name: 搜索数据库名称- how-to-setup-database: 如何设置\'数据库\'?+ how-to-setup-database: 如何设置「数据库」?show-guide-description: |-- 每个 Bytebase 数据库都映射到由 \'CREATE DATABASE xxx\' 创建的一个数据库。- 在 Bytebase 中,一个数据库始终属于单个项目。\n\nBytebase 将定期同步每个实例的数据库信息。+ 每个 Bytebase 数据库都映射到由「CREATE DATABASE xxx」创建的一个数据库。+ 在 Bytebase 中,一个数据库始终属于单个项目。Bytebase 将定期同步每个实例的数据库信息。您还可以从仪表板创建新数据库。restored-from: 恢复于database-name-is-restored-from-another-database-backup: '{0}恢复于另一个数据库备份'@@ -627,7 +639,10 @@ repository:version-control-description-branch: 当脚本审核通过并且合并到 {branch} 分支后,Bytebase 将自动发起一条流水线来执行新的 schema 变更。version-control-description-description-schema-path: 当 schema 变更完成后, Bytebase 会把变更后的最新 schema 回写到指定的 {schemaPathTemplate}。restore-to-ui-workflow: 重置到 UI 工作流- restore-ui-workflow-description: "当使用 UI 工作流时,开发者会通过 Bytebase \b控制台直接提交一个 SQL 审核工单,让指定的 DBA 或者开发同事审核。当审核通过后,Bytebase 再执行相应的 SQL 变更。"+ restore-ui-workflow-description: |-+ 当使用 UI 工作流时,开发者会通过 Bytebase++ 控制台直接提交一个 SQL 审核工单,让指定的 DBA 或者开发同事审核。当审核通过后,Bytebase 再执行相应的 SQL 变更。restore-ui-workflow-success: 成功重置到 UI 工作流update-version-control-config-success: 成功更新@:common.version-control配置setup-wizard-guide: 如果您在过程中遇到问题, 请参考{guide}diff --git a/frontend/src/views/EnvironmentDashboard.vue b/frontend/src/views/EnvironmentDashboard.vueindex b6c0b14a6a..0f6c71fc73 100644--- a/frontend/src/views/EnvironmentDashboard.vue+++ b/frontend/src/views/EnvironmentDashboard.vue@@ -55,10 +55,10 @@<BBAlertv-if="state.showGuide":style="'INFO'"- :ok-text="'Do not show again'"- :cancel-text="'Dismiss'"- :title="'How to setup \'Environment\' ?'"- :description="'Each environment maps to one of your testing, staging, prod environment respectively.\n\nEnvironment is a global setting, one Bytebase deployment only contains a single set of environments.\n\nDatabase instances are created under a particular environment.'"+ :ok-text="$t('common.do-not-show-again')"+ :cancel-text="$t('common.dismiss')"+ :title="$t('environment.how-to-setup-environment')"+ :description="$t('environment.how-to-setup-environment-description')"@ok="() => {doDismissGuide();