Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
feat: i18n for banner (#144)
ecmadaofb79d0bdb52a
diff --git a/frontend/src/components/IntroBanner.vue b/frontend/src/components/IntroBanner.vueindex bd144d522f..d5b71ca256 100644--- a/frontend/src/components/IntroBanner.vue+++ b/frontend/src/components/IntroBanner.vue@@ -3,26 +3,30 @@<img class="m-4 h-72" src="../assets/illustration/guide.webp" alt="" /><div class="m-4"><h2 class="text-xl text-main">- Bytebase is for DBAs and Developers to collaborate on database schemas- changes. One can construct a single pipeline to propagate the schema- change across multiple environments. One can also store the schemas in- VCS and trigger a new pipeline upon commit push. Follow the- <span class="text-accent">Quickstart</span> on the bottom left to get- familiar with the product. If you encounter problems, visit- <a class="normal-link" href="https://docs.bytebase.com" target="__blank"- >doc</a- >- or report- <a- class="normal-link"- href="https://github.com/bytebase/bytebase/issues"- target="__blank"- >issue</a- >- on GitHub.+ <i18n-t keypath="intro.content" tag="p">+ <template v-slot:quickstart>+ <span class="text-accent">{{ $t("common.quickstart") }}</span>+ </template>+ <template v-slot:doc>+ <a class="normal-link" href="https://docs.bytebase.com" target="__blank">+ {{ $t("intro.doc") }}+ </a>+ </template>+ <template v-slot:issue>+ <a+ class="normal-link"+ href="https://github.com/bytebase/bytebase/issues"+ target="__blank"+ >+ {{ $t("intro.issue") }}+ </a>+ </template>+ </i18n-t></h2><div class="mt-4">- <button class="btn-normal" @click.prevent="dismiss">Dismiss</button>+ <button class="btn-normal" @click.prevent="dismiss">+ {{ $t("common.dismiss") }}+ </button></div></div></div>@@ -30,6 +34,7 @@<script lang="ts">import { useStore } from "vuex";+export default {name: "IntroBanner",components: {},diff --git a/frontend/src/locales/en.yml b/frontend/src/locales/en.ymlindex d84414e9b8..c3ca380d2a 100644--- a/frontend/src/locales/en.yml+++ b/frontend/src/locales/en.yml@@ -13,6 +13,7 @@ common:archive: Archivequickstart: Quickstartlogout: Logout+ dismiss: Dismissback: Backedit: Editupdate: Update@@ -40,6 +41,19 @@ kbar:preferences:common: Preferenceschange-language: Change Language…+banner:+ demo-intro: This is a demo version of Bytebase.+ demo-intro-readonly: This is a demo version of Bytebase in read-only mode.+ action: Deploy yours in 5 seconds+intro:+ content: Bytebase is for DBAs and Developers to collaborate on database schemas+ changes. One can construct a single pipeline to propagate the schema+ change across multiple environments. One can also store the schemas in+ VCS and trigger a new pipeline upon commit push. Follow the {quickstart} on the bottom left to get+ familiar with the product. If you encounter problems, visit {doc} or report {issue} on GitHub.+ quickstart: Quickstart+ doc: doc+ issue: issuebbkit:alert:ok: OKdiff --git a/frontend/src/locales/zh-CN.yml b/frontend/src/locales/zh-CN.ymlindex 3372f042a7..e6859f6728 100644--- a/frontend/src/locales/zh-CN.yml+++ b/frontend/src/locales/zh-CN.yml@@ -13,6 +13,7 @@ common:archive: 归档quickstart: 快速入门logout: 登出+ dismiss: 关闭back: 返回edit: 编辑update: 更新@@ -40,6 +41,14 @@ kbar:preferences:common: 偏好设置change-language: 更改语言…+banner:+ demo-intro: 这是 Bytebase 的演示版本。+ demo-intro-readonly: 这是 Bytebase 的只读演示版本+ action: 5 秒部署你自己的服务+intro:+ content: Bytebase 是为 DBA 和开发人员在数据库表结构 (schema) 变更上进行协作而设计的。用户可以通过一个 pipeline,来推进 schema 在多个环境中的变化。同时用户也可以把 schema 保存在 VCS 中 ,再由新的 schema 文件提交来触发 pipeline。请通过左下角的{quickstart}来熟悉该产品。如果遇到问题,请访问{doc}或在 GitHub 上报告{issue}。+ doc: 文档+ issue: 工单bbkit:alert:ok: 确认diff --git a/frontend/src/views/BannerDemo.vue b/frontend/src/views/BannerDemo.vueindex 5f93514180..5ad8b9e5a2 100644--- a/frontend/src/views/BannerDemo.vue+++ b/frontend/src/views/BannerDemo.vue@@ -6,9 +6,7 @@<p class="ml-3 font-medium text-white truncate"><span>{{- isReadonly- ? "This is a demo version of Bytebase in read-only mode."- : "This is a demo version of Bytebase."+ $t(`banner.demo-intro${isReadonly ? '-readonly' : ''}`)}}</span></p>@@ -36,7 +34,7 @@hover:bg-indigo-50">- Deploy yours in 5 seconds+ {{ $t("banner.action") }}<heroicons-outline:lightning-bolt class="ml-1 w-6 h-6" /></a></div>@@ -54,7 +52,7 @@"@click.prevent="show = false">- <span class="sr-only">Dismiss</span>+ <span class="sr-only">{{ $t("common.dismiss") }}</span><!-- Heroicon name: outline/x --><heroicons-outline:x class="h-6 w-6 text-white" /></button>