This is an automated email from the ASF dual-hosted git repository.
dockerzhang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/inlong.git
The following commit(s) were added to refs/heads/master by this push:
new 021062b48 [INLONG-6930][Dashboard] Create a new cluster token
placeholder configuration i18n (#6930) (#6932)
021062b48 is described below
commit 021062b48d1d0bb4bd5787b55ce55fed59442647
Author: kinfuy <[email protected]>
AuthorDate: Mon Dec 19 09:47:10 2022 +0800
[INLONG-6930][Dashboard] Create a new cluster token placeholder
configuration i18n (#6930) (#6932)
---
inlong-dashboard/src/locales/cn.json | 1 +
inlong-dashboard/src/locales/en.json | 1 +
inlong-dashboard/src/metas/clusters/defaults/Pulsar.ts | 2 +-
3 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/inlong-dashboard/src/locales/cn.json
b/inlong-dashboard/src/locales/cn.json
index 749a2a9b6..981ad13f9 100644
--- a/inlong-dashboard/src/locales/cn.json
+++ b/inlong-dashboard/src/locales/cn.json
@@ -588,6 +588,7 @@
"pages.Clusters.Node.PortRule": "请输入正确的端口",
"pages.Clusters.Node.ProtocolTypeRule": "请输入正确的协议类型",
"pages.Clusters.Pulsar.Tenant": "默认租户",
+ "pages.Clusters.Pulsar.TokenPlaceholder": "如果群集配置了令牌,则为必需",
"pages.Clusters.Kafka.ClusterUrl": "集群 URL",
"pages.Clusters.Pulsar.ServiceUrlHelper": "用于生产和消费数据",
"pages.Clusters.Pulsar.AdminUrlHelper": "用于管理(如:创建、修改)租户、命名空间、Topic 和订阅组",
diff --git a/inlong-dashboard/src/locales/en.json
b/inlong-dashboard/src/locales/en.json
index 138288a71..1a8f6c90a 100644
--- a/inlong-dashboard/src/locales/en.json
+++ b/inlong-dashboard/src/locales/en.json
@@ -586,6 +586,7 @@
"pages.Clusters.Node.PortRule": "Please enter the port address correctly",
"pages.Clusters.Node.ProtocolTypeRule": "Please enter the protocol type
correctly",
"pages.Clusters.Pulsar.Tenant": "Default Tenant",
+ "pages.Clusters.Pulsar.TokenPlaceholder": "Required if the cluster is
configured with Token",
"pages.Clusters.Kafka.ClusterUrl": "Cluster URL",
"pages.Clusters.Pulsar.ServiceUrlHelper": "For producing and consuming data",
"pages.Clusters.Pulsar.AdminUrlHelper": "Used to manage (e.g. create,
modify) tenants, namespaces, topics and subscription groups",
diff --git a/inlong-dashboard/src/metas/clusters/defaults/Pulsar.ts
b/inlong-dashboard/src/metas/clusters/defaults/Pulsar.ts
index 86667cade..ba9306585 100644
--- a/inlong-dashboard/src/metas/clusters/defaults/Pulsar.ts
+++ b/inlong-dashboard/src/metas/clusters/defaults/Pulsar.ts
@@ -63,7 +63,7 @@ export default class PulsarCluster
@FieldDecorator({
type: 'input',
props: {
- placeholder: 'Required if the cluster is configured with Token',
+ placeholder: i18n.t('pages.Clusters.Pulsar.TokenPlaceholder'),
},
})
@I18n('Token')