Skip to content

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

chore: several update for subscription localization (#3224)

ecmadao9401cd72e670
diff --git a/frontend/src/components/SQLReview/SQLReviewConfig.vue b/frontend/src/components/SQLReview/SQLReviewConfig.vue
index 6528201669..bf984b7597 100644
--- a/frontend/src/components/SQLReview/SQLReviewConfig.vue
+++ b/frontend/src/components/SQLReview/SQLReviewConfig.vue
@@ -125,7 +125,7 @@ const onRuleActivate = (type: RuleType) => {
const onPayloadChange = (
rule: RuleTemplate,
- data: (string | number | string[])[]
+ data: (string | number | boolean | string[])[]
) => {
if (!rule.componentList) {
return;
@@ -153,6 +153,15 @@ const onPayloadChange = (
},
});
break;
+ case "BOOLEAN":
+ list.push({
+ ...component,
+ payload: {
+ ...component.payload,
+ value: data[index] as boolean,
+ },
+ });
+ break;
default:
list.push({
...component,
diff --git a/frontend/src/locales/en-US.json b/frontend/src/locales/en-US.json
index c5845f0d02..4d257c69d0 100644
--- a/frontend/src/locales/en-US.json
+++ b/frontend/src/locales/en-US.json
@@ -1410,7 +1410,7 @@
},
"bb-feature-sql-review": {
"title": "SQL review policy",
- "desc": "Customize the SQL review policy for different environments, can only use limited rules in the free plan. @:{'subscription.trial'}."
+ "desc": "Customize the SQL review policy for different environments, can only use limited rules in the free plan. @:{'subscription.free-trial'}."
},
"bb-feature-vcs-sql-review": {
"title": "SQL Review in GitOps workflow",
@@ -1418,7 +1418,7 @@
},
"bb-feature-rbac": {
"title": "Role management",
- "desc": "Role management can assign a particular role (e.g. DBA) to a member. @:{'subscription.trial'}."
+ "desc": "Role management can assign a particular role (e.g. DBA) to a member. @:{'subscription.free-trial'}."
},
"bb-feature-schema-drift": {
"title": "Schema drift",
@@ -1426,7 +1426,7 @@
},
"bb-feature-3rd-party-auth": {
"title": "3rd party authentication & authorization",
- "desc": "Bytebase supports 3rd-party authentication & authorization based on your VCS configuration. @:{'subscription.trial'}.",
+ "desc": "Bytebase supports 3rd-party authentication & authorization based on your VCS configuration. @:{'subscription.free-trial'}.",
"login": "@:{'subscription.upgrade'} to unlock this feature"
},
"bb-feature-branding": {
diff --git a/frontend/src/locales/subscription/en-US.json b/frontend/src/locales/subscription/en-US.json
index 1819360212..48bb1fd6e5 100644
--- a/frontend/src/locales/subscription/en-US.json
+++ b/frontend/src/locales/subscription/en-US.json
@@ -2,12 +2,11 @@
"current": "Current plan",
"instance-count": "Instance count",
"expires-at": "Expires at",
- "free-trial": "Your first 14 days are free - no credit card required",
+ "free-trial": "You can start a free trial for 14 days - no credit card required",
"purchase-license": "Purchase a license",
"sensitive-placeholder": "Paste your license here - write only",
"plan-compare": "Compare features between different plans",
"disabled-feature": "This is a premium feature in subscription plan",
- "trial": "You can start a free trial - no credit card required",
"upgrade": "Upgrade subscription",
"per-month": "/ month",
"price-unit-for-enterprise": "/ month",
diff --git a/frontend/src/locales/subscription/zh-CN.json b/frontend/src/locales/subscription/zh-CN.json
index 0eef35c359..54717f8a95 100644
--- a/frontend/src/locales/subscription/zh-CN.json
+++ b/frontend/src/locales/subscription/zh-CN.json
@@ -2,12 +2,11 @@
"current": "当前版本",
"instance-count": "实例数",
"expires-at": "过期时间",
- "free-trial": "无需信用卡即可免费试用",
+ "free-trial": "您可以免费试用 14 天 - 无需信用卡或预付费",
"purchase-license": "购买证书",
"sensitive-placeholder": "粘贴您的证书 - 仅写入",
"plan-compare": "比较不同版本的功能,寻找适合您的方案",
"disabled-feature": "这是一个订阅版高级功能",
- "trial": "您可以免费试用 14 天({plan})",
"upgrade": "升级订阅",
"per-month": "/ 月",
"price-unit-for-enterprise": "/ 月起",
diff --git a/frontend/src/locales/zh-CN.json b/frontend/src/locales/zh-CN.json
index c1a7bccf96..b69be5eb21 100644
--- a/frontend/src/locales/zh-CN.json
+++ b/frontend/src/locales/zh-CN.json
@@ -1410,7 +1410,7 @@
},
"bb-feature-sql-review": {
"title": "Schema 审核策略",
- "desc": "给不同的环境定制 schema 审核策略,免费版仅可使用部分规则。可以通过@:{'subscription.upgrade'}来完全开启该功能。"
+ "desc": "给不同的环境定制 schema 审核策略,免费版仅可使用部分规则。@:{'subscription.free-trial'}。"
},
"bb-feature-vcs-sql-review": {
"title": "GitOps 工作流中的 SQL 审核",
@@ -1418,7 +1418,7 @@
},
"bb-feature-rbac": {
"title": "角色管理",
- "desc": "「角色管理」可以赋予成员诸如 DBA 这样的特定角色,可以通过@:{'subscription.upgrade'}来开启该功能。"
+ "desc": "「角色管理」可以赋予成员诸如 DBA 这样的特定角色。@:{'subscription.free-trial'}。"
},
"bb-feature-schema-drift": {
"title": "Schema 偏差",
@@ -1426,7 +1426,7 @@
},
"bb-feature-3rd-party-auth": {
"title": "第三方认证 & 授权",
- "desc": "Bytebase 可根据您配置的 VCS 来支持相应的第三方认证 & 授权。请通过@:{'subscription.upgrade'}来开启该功能。",
+ "desc": "Bytebase 可根据您配置的 VCS 来支持相应的第三方认证 & 授权。@:{'subscription.free-trial'}。",
"login": "请@:{'subscription.upgrade'}来开启该功能"
},
"bb-feature-branding": {