From 913f8692891315e00643539f60b89562cb5db9ea Mon Sep 17 00:00:00 2001 From: Kinplemelon Date: Tue, 20 Feb 2024 10:12:42 +0800 Subject: [PATCH] refactor(i18n): move some label from connector to action add label for type S3 --- packages/i18n/lib/enActionsLabel.ts | 16 +++++++++++++++- packages/i18n/lib/enConnectorsLabel.ts | 18 +++++++++--------- packages/i18n/lib/zhActionsLabel.ts | 16 +++++++++++++++- packages/i18n/lib/zhConnectorsLabel.ts | 18 +++++++++--------- 4 files changed, 48 insertions(+), 20 deletions(-) diff --git a/packages/i18n/lib/enActionsLabel.ts b/packages/i18n/lib/enActionsLabel.ts index d1a8ec5..4e349db 100644 --- a/packages/i18n/lib/enActionsLabel.ts +++ b/packages/i18n/lib/enActionsLabel.ts @@ -149,5 +149,19 @@ export const enActionsLabel: Record> = { }, tdengine: { database: 'Database Name', - } + }, + rocketmq: { + topic: 'RocketMQ Topic', + refresh_interval: 'Topic Route Refresh Interval', + send_buffer: 'Send Buffer Size', + sync_timeout: 'Sync Timeout', + }, + clickhouse: { + batch_value_separator: 'Batch Value Separator', + }, + s3: { + bucket: 'Bucket', + acl: 'ACL', + content: 'Content', + }, } diff --git a/packages/i18n/lib/enConnectorsLabel.ts b/packages/i18n/lib/enConnectorsLabel.ts index ca1a295..649f780 100644 --- a/packages/i18n/lib/enConnectorsLabel.ts +++ b/packages/i18n/lib/enConnectorsLabel.ts @@ -102,8 +102,6 @@ export const enConnectorsLabel: Record> = { details: 'Details', }, clickhouse: { - batch_value_separator: 'Batch Value Separator', - connect_timeout: 'Clickhouse Timeout', url: 'Server URL', }, dynamo: { @@ -120,7 +118,6 @@ export const enConnectorsLabel: Record> = { service_account_json: 'GCP Service Account Credentials', topic_mapping: 'Topic Mapping', pull_max_messages: 'Maximum Messages to Pull', - connect_timeout: 'Connect Timeout', }, hstreamdb: { url: 'HStreamDB Server URL', @@ -137,7 +134,6 @@ export const enConnectorsLabel: Record> = { consumer_mqtt_topic: 'MQTT Topic', min_metadata_refresh_interval: 'Min Metadata Refresh Interval', metadata_request_timeout: 'Metadata Request Timeout', - connect_timeout: 'Connect Timeout', consumer_max_batch_bytes: 'Fetch Bytes', consumer_offset_commit_interval_seconds: 'Offset Commit Interval', topic: 'Kafka Topic', @@ -148,10 +144,6 @@ export const enConnectorsLabel: Record> = { access_key: 'AccessKey', secret_key: 'SecretKey', security_token: 'Security Token', - topic: 'RocketMQ Topic', - refresh_interval: 'Topic Route Refresh Interval', - send_buffer: 'Send Buffer Size', - sync_timeout: 'Sync Timeout', }, sqlserver: { driver: 'SQL Server Driver Name', @@ -174,7 +166,6 @@ export const enConnectorsLabel: Record> = { retention_period: 'Retention Period', send_buffer: 'Socket Send Buffer Size', max_batch_bytes: 'Max Batch Bytes', - connect_timeout: 'Connect Timeout', buffer_mode: 'Buffer Mode', buffer_per_partition_limit: 'Per-partition Buffer Limit', buffer_segment_bytes: 'Segment File Bytes', @@ -189,4 +180,13 @@ export const enConnectorsLabel: Record> = { greptimedb: { dbname: 'Database', }, + s3: { + access_key_id: 'Access Key ID', + secret_access_key: 'Secret Access Key', + host: 'Host', + port: 'Port', + ipv6_probe: 'IPv6 Probe', + headers: 'HTTP Headers', + request_timeout: 'Request Timeout', + }, } diff --git a/packages/i18n/lib/zhActionsLabel.ts b/packages/i18n/lib/zhActionsLabel.ts index 293175f..1a0c2f5 100644 --- a/packages/i18n/lib/zhActionsLabel.ts +++ b/packages/i18n/lib/zhActionsLabel.ts @@ -149,5 +149,19 @@ export const zhActionsLabel: Record> = { }, tdengine: { database: '数据库名字', - } + }, + rocketmq: { + topic: 'RocketMQ 主题', + refresh_interval: '主题路由更新间隔', + send_buffer: '发送消息的缓冲区大小', + sync_timeout: '同步调用超时时间', + }, + clickhouse: { + batch_value_separator: '分隔符', + }, + s3: { + bucket: '存储桶', + acl: 'ACL', + content: '内容', + }, } diff --git a/packages/i18n/lib/zhConnectorsLabel.ts b/packages/i18n/lib/zhConnectorsLabel.ts index 73fa5c3..7c92591 100644 --- a/packages/i18n/lib/zhConnectorsLabel.ts +++ b/packages/i18n/lib/zhConnectorsLabel.ts @@ -102,8 +102,6 @@ export const zhConnectorsLabel: Record> = { details: '详细信息', }, clickhouse: { - batch_value_separator: '分隔符', - connect_timeout: '连接超时', url: '服务器 URL', }, dynamo: { @@ -120,7 +118,6 @@ export const zhConnectorsLabel: Record> = { service_account_json: 'GCP 服务账户凭证', topic_mapping: '主题映射', pull_max_messages: '拉取的最大消息数', - connect_timeout: '连接超时', }, hstreamdb: { url: 'HStreamDB 服务器 URL', @@ -137,7 +134,6 @@ export const zhConnectorsLabel: Record> = { consumer_mqtt_topic: 'MQTT 主题', min_metadata_refresh_interval: '元数据刷新最小间隔', metadata_request_timeout: '元数据请求超时', - connect_timeout: '连接超时', consumer_max_batch_bytes: '拉取字节数', consumer_offset_commit_interval_seconds: '偏移提交间隔', topic: 'Kafka 主题名称', @@ -148,10 +144,6 @@ export const zhConnectorsLabel: Record> = { access_key: 'AccessKey', secret_key: 'SecretKey', security_token: '安全令牌', - topic: 'RocketMQ 主题', - refresh_interval: '主题路由更新间隔', - send_buffer: '发送消息的缓冲区大小', - sync_timeout: '同步调用超时时间', }, sqlserver: { driver: 'SQL Server Driver 名称', @@ -174,7 +166,6 @@ export const zhConnectorsLabel: Record> = { retention_period: '保留期', send_buffer: 'Socket 发送缓存大小', max_batch_bytes: '最大批量字节数', - connect_timeout: '连接超时', buffer_mode: '缓存模式', buffer_per_partition_limit: 'Pulsar 分区缓存上限', buffer_segment_bytes: '缓存文件大小', @@ -189,4 +180,13 @@ export const zhConnectorsLabel: Record> = { greptimedb: { dbname: '数据库', }, + s3: { + access_key_id: '访问密钥 ID', + secret_access_key: '访问密钥', + host: '地址', + port: '端口', + ipv6_probe: 'IPv6 探针', + headers: '请求头', + request_timeout: 'HTTP 请求超时', + }, }