Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
chore: move usage i18n (#16482)
Danny Xu219cd48dd14a
diff --git a/frontend/src/components/Instance/InstanceArchiveRestoreButton.vue b/frontend/src/components/Instance/InstanceArchiveRestoreButton.vueindex 5bb54ed489..ffee4adc5e 100644--- a/frontend/src/components/Instance/InstanceArchiveRestoreButton.vue+++ b/frontend/src/components/Instance/InstanceArchiveRestoreButton.vue@@ -47,15 +47,15 @@</template><script setup lang="ts">-import { NCheckbox } from "naive-ui";-import { computed, ref } from "vue";-import { useI18n } from "vue-i18n";import { restartAppRoot } from "@/AppRootContext";import { BBButtonConfirm } from "@/bbkit";import { pushNotification, useInstanceV1Store } from "@/store";import type { ComposedInstance } from "@/types";import { State } from "@/types/proto/v1/common";import { hasWorkspacePermissionV2 } from "@/utils";+import { NCheckbox } from "naive-ui";+import { computed, ref } from "vue";+import { useI18n } from "vue-i18n";const props = defineProps<{instance: ComposedInstance;@@ -88,7 +88,7 @@ const archiveOrRestoreInstance = async (archive: boolean) => {pushNotification({module: "bytebase",style: "SUCCESS",- title: t("instance.successfully-retored-instance", [+ title: t("instance.successfully-restored-instance", [props.instance.title,]),});diff --git a/frontend/src/locales/dynamic/en-US.json b/frontend/src/locales/dynamic/en-US.jsonindex 2e11e722c7..1891948d03 100644--- a/frontend/src/locales/dynamic/en-US.json+++ b/frontend/src/locales/dynamic/en-US.json@@ -81,20 +81,6 @@"title": "Set task schedule time","desc": "Set task schedule time allows you to set a specific time to run your tasks."},- "bb-feature-instance-count": {- "title": "Instance count limit",- "desc": "You have reached the maximum instance count limit. Please upgrade to get more instance quota.",- "remaining": "Your total instance quota is {total}, only have {count} instance remained.",- "runoutof": "Your have run out of your {total} instance quota.",- "upgrade": "@:{'subscription.upgrade'} to get more instance quota."- },- "bb-feature-user-count": {- "title": "User count limit",- "desc": "You have reached the maximum user count limit. Please upgrade to get unlimited user quota.",- "remaining": "Your total user quota is {total}, only have {count} user remained.",- "runoutof": "Your have run out of your {total} user quota.",- "upgrade": "@:{'subscription.upgrade'} to get unlimited user quota."- },"bb-feature-multi-tenancy": {"title": "Batch mode","desc": "Batch changing a group of databases from different tenants or partitions."diff --git a/frontend/src/locales/dynamic/es-ES.json b/frontend/src/locales/dynamic/es-ES.jsonindex 7216d987f6..052d569f43 100644--- a/frontend/src/locales/dynamic/es-ES.json+++ b/frontend/src/locales/dynamic/es-ES.json@@ -81,20 +81,6 @@"title": "Establecer horario de tareas","desc": "Establecer horario de tareas te permite programar una hora específica para ejecutar tus tareas."},- "bb-feature-instance-count": {- "title": "Límite de cantidad de instancias",- "desc": "Has alcanzado el límite máximo de cantidad de instancias. Por favor, actualiza para obtener más cuota de instancias.",- "remaining": "Tu cuota total de instancias es de {total}, sólo te quedan {count} instancias.",- "runoutof": "Te has quedado sin tu cuota de instancias {total}.",- "upgrade": "@:{'subscription.upgrade'} para obtener más cuota de instancias."- },- "bb-feature-user-count": {- "title": "Límite de conteo de usuarios",- "desc": "Ha alcanzado el límite máximo de recuento de usuarios. Actualice para obtener una cuota de usuario ilimitada.",- "remaining": "Su cuota total de usuarios es {total}, solo quedan {count} usuarios.",- "runoutof": "Se ha quedado sin su cuota de usuario {total}.",- "upgrade": "@:{'subscription.upgrade'} para obtener una cuota de usuario ilimitada."- },"bb-feature-multi-tenancy": {"title": "Modo Lote","desc": "Cambio por lotes de un grupo de bases de datos de diferentes inquilinos o particiones."diff --git a/frontend/src/locales/dynamic/ja-JP.json b/frontend/src/locales/dynamic/ja-JP.jsonindex 8dfc2bcfda..f51a73146b 100644--- a/frontend/src/locales/dynamic/ja-JP.json+++ b/frontend/src/locales/dynamic/ja-JP.json@@ -81,20 +81,6 @@"title": "タスクの実行時間を設定する","desc": "「タスク実行時刻の設定」では、特定の時刻に実行するタスクを設定できます"},- "bb-feature-instance-count": {- "title": "インスタンスの制限",- "desc": "インスタンスの最大制限に達しました。追加のインスタンス割り当てを取得するには、アップグレードに料金を支払ってください。",- "remaining": "現在の合計インスタンス割り当ては {total} で、使用可能な共有は {count} 個のみです。",- "runoutof": "すべての {total} インスタンス クレジットが使用されました。",- "upgrade": "@:{'subscription.upgrade'} を使用して、より多くのインスタンス割り当てを取得します。"- },- "bb-feature-user-count": {- "title": "ユーザー制限",- "desc": "ユーザーの最大数に達しました。無制限のユーザー割り当てを取得するには、アップグレードに料金を支払ってください。",- "remaining": "現在の合計ユーザー割り当ては {total} で、使用できる共有は {count} 個のみです。",- "runoutof": "{total} 個のユーザー クレジットがすべて使用されました。",- "upgrade": "@:{'subscription.upgrade'} を使用すると、無制限のユーザー割り当てを取得できます。"- },"bb-feature-multi-tenancy": {"title": "バッチモード","desc": "異なるテナントまたはデータベース シャードに属するデータベースのグループに対するバッチ変更。"diff --git a/frontend/src/locales/dynamic/vi-VN.json b/frontend/src/locales/dynamic/vi-VN.jsonindex d926b343f9..f05127e8cb 100644--- a/frontend/src/locales/dynamic/vi-VN.json+++ b/frontend/src/locales/dynamic/vi-VN.json@@ -81,20 +81,6 @@"title": "Đặt thời gian lập lịch tác vụ","desc": "Đặt thời gian lập lịch tác vụ cho phép bạn đặt thời gian cụ thể để chạy tác vụ của mình."},- "bb-feature-instance-count": {- "title": "Giới hạn số lượng phiên bản",- "desc": "Bạn đã đạt đến giới hạn số lượng phiên bản tối đa. Vui lòng nâng cấp để có thêm hạn ngạch phiên bản.",- "remaining": "Tổng hạn ngạch phiên bản của bạn là {total}, chỉ còn lại {count} phiên bản.",- "runoutof": "Bạn đã hết hạn ngạch {total} phiên bản của mình.",- "upgrade": "@:{'subscription.upgrade'} để có thêm hạn ngạch phiên bản."- },- "bb-feature-user-count": {- "title": "Giới hạn số lượng người dùng",- "desc": "Bạn đã đạt đến giới hạn số lượng người dùng tối đa. Vui lòng nâng cấp để có hạn ngạch người dùng không giới hạn.",- "remaining": "Tổng hạn ngạch người dùng của bạn là {total}, chỉ còn lại {count} người dùng.",- "runoutof": "Bạn đã hết hạn ngạch {total} người dùng của mình.",- "upgrade": "@:{'subscription.upgrade'} để có hạn ngạch người dùng không giới hạn."- },"bb-feature-multi-tenancy": {"title": "Chế độ hàng loạt","desc": "Thay đổi hàng loạt một nhóm cơ sở dữ liệu từ các đối tượng thuê hoặc phân vùng khác nhau."diff --git a/frontend/src/locales/dynamic/zh-CN.json b/frontend/src/locales/dynamic/zh-CN.jsonindex af13e40327..c736b8b771 100644--- a/frontend/src/locales/dynamic/zh-CN.json+++ b/frontend/src/locales/dynamic/zh-CN.json@@ -81,20 +81,6 @@"title": "设定任务执行时间","desc": "「设定任务执行时间」可以将任务设定在特定时间执行"},- "bb-feature-instance-count": {- "title": "实例数量限制",- "desc": "您已达最大实例数量限制,请付费升级来获取更多实例额度。",- "remaining": "当前总实例额度为 {total},目前仅剩 {count} 个份额可用。",- "runoutof": "已用尽全部 {total} 个实例额度。",- "upgrade": "@:{'subscription.upgrade'}来获取更多实例额度。"- },- "bb-feature-user-count": {- "title": "用户数量限制",- "desc": "您已达最大用户数量限制,请付费升级来获取无限的用户额度。",- "remaining": "当前总用户额度为 {total},目前仅剩 {count} 个份额可用。",- "runoutof": "已用尽全部 {total} 个用户额度。",- "upgrade": "@:{'subscription.upgrade'}来获取无限的用户额度。"- },"bb-feature-multi-tenancy": {"title": "批量模式","desc": "批量变更一组属于不同租户或者数据库分库的数据库。"diff --git a/frontend/src/locales/en-US.json b/frontend/src/locales/en-US.jsonindex 58756ecdef..9cbabec2dd 100644--- a/frontend/src/locales/en-US.json+++ b/frontend/src/locales/en-US.json@@ -304,7 +304,7 @@},"banner": {"license-expired": "Your license for {plan} has expired on {expireAt}.",- "license-expires": "Your license for {plan} will expires in {days} days on {expireAt}.",+ "license-expires": "Your license for {plan} will expire in {days} days on {expireAt}.","trial-expires": "Your free trial for {plan} will expire in {days} days on {expireAt}.","deploy": "Self Host","cloud": "Cloud",@@ -1142,7 +1142,7 @@},"selected-n-instances": "{n} instance selected | {n} instances selected","users": "Users",- "successfully-retored-instance": "Successfully retored the instance '{0}'.",+ "successfully-restored-instance": "Successfully restored the instance '{0}'.","successfully-archived-instance": "Successfully archived the instance '{0}'.","successfully-synced-schema-for-instance-instance-value-name": "Successfully synced schema for instance '{0}'.","archive-this-instance": "Archive this instance",@@ -1305,7 +1305,7 @@"description": "Only sync selected databases.","sync-all": "Sync all databases","search-database": "Search database",- "add-database": "+ Add database, press enter to sumbit"+ "add-database": "+ Add database, press enter to submit"},"advanced-search": {"scope": {@@ -2081,6 +2081,20 @@"upgrade-trial": "You can upgrade your free trial to this plan.","contact-to-upgrade": "Contact your Workspace admin to upgrade the plan.","upgrade-now": "Upgrade Now",+ "usage": {+ "instance-count": {+ "title": "Instance count limit",+ "remaining": "Your total instance quota is {total}, with only {count} instances remaining.",+ "runoutof": "You have run out of your {total} instance quota.",+ "upgrade": "@:{'subscription.upgrade'} to get more instance quota."+ },+ "user-count": {+ "title": "User count limit",+ "remaining": "Your total user quota is {total}, with only {count} users remaining.",+ "runoutof": "You have run out of your {total} user quota.",+ "upgrade": "@:{'subscription.upgrade'} to get unlimited user quota."+ }+ },"instance-assignment": {"license": "License","assign-license": "Assign License",@@ -2151,7 +2165,7 @@"no-linked-resources": "No attached resources","change-resources": "Change attached resources","self": "Attach to resources",- "label": "You can apply the SQL review policy to environments or projects. The database will use the project-level policy if exists, or fallback to the environment-level policy.",+ "label": "You can apply the SQL review policy to environments or projects. The database will use the project-level policy if it exists, or fallback to the environment-level policy.","label-environment": "The SQL review policy will affect all databases belonging to the selected environment.","label-project": "The SQL review policy will affect all databases belonging to the selected project. This will supersede the database environment-level policy.","override-warning": "Following resources already bound with other SQL review policies. Click \"{button}\" will override the config."diff --git a/frontend/src/locales/es-ES.json b/frontend/src/locales/es-ES.jsonindex 38d6b8dccd..3bb497395d 100644--- a/frontend/src/locales/es-ES.json+++ b/frontend/src/locales/es-ES.json@@ -1142,7 +1142,7 @@},"selected-n-instances": "{n} instancia seleccionada | {n} instancias seleccionadas","users": "Usuarios",- "successfully-retored-instance": "Se restauró exitosamente la instancia '{0}'.",+ "successfully-restored-instance": "Se restauró exitosamente la instancia '{0}'.","successfully-archived-instance": "Se archivó exitosamente la instancia '{0}'.","successfully-synced-schema-for-instance-instance-value-name": "Esquema sincronizado con éxito para la instancia '{0}'.","archive-this-instance": "Archivar esta instancia",@@ -2081,6 +2081,20 @@"upgrade-trial": "Puedes actualizar tu prueba gratuita a este plan.","contact-to-upgrade": "Contacta al administrador de tu espacio de trabajo para actualizar el plan.","upgrade-now": "Actualizar ahora",+ "usage": {+ "instance-count": {+ "title": "Límite de cantidad de instancias",+ "remaining": "Tu cuota total de instancias es de {total}, sólo te quedan {count} instancias.",+ "runoutof": "Te has quedado sin tu cuota de instancias {total}.",+ "upgrade": "@:{'subscription.upgrade'} para obtener más cuota de instancias."+ },+ "user-count": {+ "title": "Límite de conteo de usuarios",+ "remaining": "Su cuota total de usuarios es {total}, solo quedan {count} usuarios.",+ "runoutof": "Se ha quedado sin su cuota de usuario {total}.",+ "upgrade": "@:{'subscription.upgrade'} para obtener una cuota de usuario ilimitada."+ }+ },"instance-assignment": {"license": "Licencia","assign-license": "Asignar licencia",diff --git a/frontend/src/locales/ja-JP.json b/frontend/src/locales/ja-JP.jsonindex 3535b426ce..e6dfabe533 100644--- a/frontend/src/locales/ja-JP.json+++ b/frontend/src/locales/ja-JP.json@@ -1142,7 +1142,7 @@},"selected-n-instances": "{n} 個のインスタンスが選択されました","users": "ユーザー",- "successfully-retored-instance": "インスタンス '{0}' を正常に復元しました。",+ "successfully-restored-instance": "インスタンス '{0}' を正常に復元しました。","successfully-archived-instance": "インスタンス '{0}' を正常にアーカイブしました。","successfully-synced-schema-for-instance-instance-value-name": "インスタンス '{0}' のスキーマが正常に同期されました。","archive-this-instance": "このインスタンスをアーカイブする",@@ -2081,6 +2081,20 @@"upgrade-trial": "既存の試用版をこのバージョンに直接アップグレードできます。","contact-to-upgrade": "試用版にアップグレードするには、ワークスペースの所有者に問い合わせてください。","upgrade-now": "今すぐアップグレード",+ "usage": {+ "instance-count": {+ "title": "インスタンスの制限",+ "remaining": "現在の合計インスタンス割り当ては {total} で、使用可能な共有は {count} 個のみです。",+ "runoutof": "すべての {total} インスタンス クレジットが使用されました。",+ "upgrade": "@:{'subscription.upgrade'} を使用して、より多くのインスタンス割り当てを取得します。"+ },+ "user-count": {+ "title": "ユーザー制限",+ "remaining": "現在の合計ユーザー割り当ては {total} で、使用できる共有は {count} 個のみです。",+ "runoutof": "{total} 個のユーザー クレジットがすべて使用されました。",+ "upgrade": "@:{'subscription.upgrade'} を使用すると、無制限のユーザー割り当てを取得できます。"+ }+ },"instance-assignment": {"license": "ライセンス","assign-license": "ライセンスの割り当て",diff --git a/frontend/src/locales/vi-VN.json b/frontend/src/locales/vi-VN.jsonindex 2faa49d6a5..b359b899eb 100644--- a/frontend/src/locales/vi-VN.json+++ b/frontend/src/locales/vi-VN.json@@ -1142,7 +1142,7 @@},"selected-n-instances": "{n} phiên bản đã chọn | {n} phiên bản đã chọn","users": "Người dùng",- "successfully-retored-instance": "Đã khôi phục thành công trường hợp '{0}'.",+ "successfully-restored-instance": "Đã khôi phục thành công trường hợp '{0}'.","successfully-archived-instance": "Đã lưu trữ thành công phiên bản '{0}'.","successfully-synced-schema-for-instance-instance-value-name": "Đã đồng bộ hóa thành công lược đồ cho phiên bản '{0}'.","archive-this-instance": "Lưu trữ phiên bản này",@@ -2081,6 +2081,20 @@"upgrade-trial": "Bạn có thể nâng cấp bản dùng thử miễn phí của mình lên gói này.","contact-to-upgrade": "Liên hệ với quản trị viên Không gian làm việc của bạn để nâng cấp gói.","upgrade-now": "Nâng cấp ngay",+ "usage": {+ "instance-count": {+ "title": "Giới hạn số lượng phiên bản",+ "remaining": "Tổng hạn ngạch phiên bản của bạn là {total}, chỉ còn lại {count} phiên bản.",+ "runoutof": "Bạn đã hết hạn ngạch {total} phiên bản của mình.",+ "upgrade": "@:{'subscription.upgrade'} để có thêm hạn ngạch phiên bản."+ },+ "user-count": {+ "title": "Giới hạn số lượng người dùng",+ "remaining": "Tổng hạn ngạch người dùng của bạn là {total}, chỉ còn lại {count} người dùng.",+ "runoutof": "Bạn đã hết hạn ngạch {total} người dùng của mình.",+ "upgrade": "@:{'subscription.upgrade'} để có hạn ngạch người dùng không giới hạn."+ }+ },"instance-assignment": {"license": "Giấy phép","assign-license": "Gán giấy phép",diff --git a/frontend/src/locales/zh-CN.json b/frontend/src/locales/zh-CN.jsonindex 3a58a6a421..0e3d3c4625 100644--- a/frontend/src/locales/zh-CN.json+++ b/frontend/src/locales/zh-CN.json@@ -1142,7 +1142,7 @@},"selected-n-instances": "已选择 {n} 个实例","users": "用户",- "successfully-retored-instance": "已成功恢复实例“{0}”。",+ "successfully-restored-instance": "已成功恢复实例“{0}”。","successfully-archived-instance": "成功归档实例'{0}'。","successfully-synced-schema-for-instance-instance-value-name": "成功为实例'{0}'同步 schema 。","archive-this-instance": "归档该实例",@@ -2081,6 +2081,20 @@"upgrade-trial": "您可以直接将现有的试用升级到这个版本。","contact-to-upgrade": "请联系工作空间所有者来升级到试用版。","upgrade-now": "现在升级",+ "usage": {+ "instance-count": {+ "title": "实例数量限制",+ "remaining": "当前总实例额度为 {total},目前仅剩 {count} 个份额可用。",+ "runoutof": "已用尽全部 {total} 个实例额度。",+ "upgrade": "@:{'subscription.upgrade'}来获取更多实例额度。"+ },+ "user-count": {+ "title": "用户数量限制",+ "remaining": "当前总用户额度为 {total},目前仅剩 {count} 个份额可用。",+ "runoutof": "已用尽全部 {total} 个用户额度。",+ "upgrade": "@:{'subscription.upgrade'}来获取无限的用户额度。"+ }+ },"instance-assignment": {"license": "证书","assign-license": "分配证书",diff --git a/frontend/src/views/InstanceDashboard.vue b/frontend/src/views/InstanceDashboard.vueindex 3582670814..4ddac89411 100644--- a/frontend/src/views/InstanceDashboard.vue+++ b/frontend/src/views/InstanceDashboard.vue@@ -4,7 +4,7 @@v-if="remainingInstanceCount <= 3":type="'warning'":title="- $t('dynamic.subscription.features.bb-feature-instance-count.title')+ $t('subscription.usage.instance-count.title')":description="instanceCountAttention"/>@@ -219,13 +219,13 @@ const remainingInstanceCount = computed((): number => {const instanceCountAttention = computed((): string => {const upgrade = t(- "dynamic.subscription.features.bb-feature-instance-count.upgrade"+ "subscription.usage.instance-count.upgrade");let status = "";if (remainingInstanceCount.value > 0) {status = t(- "dynamic.subscription.features.bb-feature-instance-count.remaining",+ "subscription.usage.instance-count.remaining",{total: subscriptionStore.instanceCountLimit,count: remainingInstanceCount.value,@@ -233,7 +233,7 @@ const instanceCountAttention = computed((): string => {);} else {status = t(- "dynamic.subscription.features.bb-feature-instance-count.runoutof",+ "subscription.usage.instance-count.runoutof",{total: subscriptionStore.instanceCountLimit,}diff --git a/frontend/src/views/SettingWorkspaceUsers.vue b/frontend/src/views/SettingWorkspaceUsers.vueindex 744ff95c39..863255c0c9 100644--- a/frontend/src/views/SettingWorkspaceUsers.vue+++ b/frontend/src/views/SettingWorkspaceUsers.vue@@ -3,7 +3,7 @@<BBAttentionv-if="remainingUserCount <= 3":type="'warning'"- :title="$t('dynamic.subscription.features.bb-feature-user-count.title')"+ :title="$t('subscription.usage.user-count.title')":description="userCountAttention"/><NTabs v-model:value="state.typeTab" type="line" animated>@@ -394,20 +394,20 @@ const remainingUserCount = computed((): number => {const userCountAttention = computed((): string => {const upgrade = t(- "dynamic.subscription.features.bb-feature-user-count.upgrade"+ "subscription.usage.user-count.upgrade");let status = "";if (remainingUserCount.value > 0) {status = t(- "dynamic.subscription.features.bb-feature-user-count.remaining",+ "subscription.usage.user-count.remaining",{total: subscriptionV1Store.userCountLimit,count: remainingUserCount.value,});} else {- status = t("dynamic.subscription.features.bb-feature-user-count.runoutof", {+ status = t("subscription.usage.user-count.runoutof", {total: subscriptionV1Store.userCountLimit,});}