Skip to content

Commit

Permalink
refactor(i18n): move some label from connector to action
Browse files Browse the repository at this point in the history
add label for type S3
  • Loading branch information
Kinplemelon authored and ysfscream committed Feb 20, 2024
1 parent 256f534 commit 913f869
Show file tree
Hide file tree
Showing 4 changed files with 48 additions and 20 deletions.
16 changes: 15 additions & 1 deletion packages/i18n/lib/enActionsLabel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -149,5 +149,19 @@ export const enActionsLabel: Record<string, Record<string, string>> = {
},
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',
},
}
18 changes: 9 additions & 9 deletions packages/i18n/lib/enConnectorsLabel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,6 @@ export const enConnectorsLabel: Record<string, Record<string, string>> = {
details: 'Details',
},
clickhouse: {
batch_value_separator: 'Batch Value Separator',
connect_timeout: 'Clickhouse Timeout',
url: 'Server URL',
},
dynamo: {
Expand All @@ -120,7 +118,6 @@ export const enConnectorsLabel: Record<string, Record<string, string>> = {
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',
Expand All @@ -137,7 +134,6 @@ export const enConnectorsLabel: Record<string, Record<string, string>> = {
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',
Expand All @@ -148,10 +144,6 @@ export const enConnectorsLabel: Record<string, Record<string, string>> = {
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',
Expand All @@ -174,7 +166,6 @@ export const enConnectorsLabel: Record<string, Record<string, string>> = {
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',
Expand All @@ -189,4 +180,13 @@ export const enConnectorsLabel: Record<string, Record<string, string>> = {
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',
},
}
16 changes: 15 additions & 1 deletion packages/i18n/lib/zhActionsLabel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -149,5 +149,19 @@ export const zhActionsLabel: Record<string, Record<string, string>> = {
},
tdengine: {
database: '数据库名字',
}
},
rocketmq: {
topic: 'RocketMQ 主题',
refresh_interval: '主题路由更新间隔',
send_buffer: '发送消息的缓冲区大小',
sync_timeout: '同步调用超时时间',
},
clickhouse: {
batch_value_separator: '分隔符',
},
s3: {
bucket: '存储桶',
acl: 'ACL',
content: '内容',
},
}
18 changes: 9 additions & 9 deletions packages/i18n/lib/zhConnectorsLabel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,6 @@ export const zhConnectorsLabel: Record<string, Record<string, string>> = {
details: '详细信息',
},
clickhouse: {
batch_value_separator: '分隔符',
connect_timeout: '连接超时',
url: '服务器 URL',
},
dynamo: {
Expand All @@ -120,7 +118,6 @@ export const zhConnectorsLabel: Record<string, Record<string, string>> = {
service_account_json: 'GCP 服务账户凭证',
topic_mapping: '主题映射',
pull_max_messages: '拉取的最大消息数',
connect_timeout: '连接超时',
},
hstreamdb: {
url: 'HStreamDB 服务器 URL',
Expand All @@ -137,7 +134,6 @@ export const zhConnectorsLabel: Record<string, Record<string, string>> = {
consumer_mqtt_topic: 'MQTT 主题',
min_metadata_refresh_interval: '元数据刷新最小间隔',
metadata_request_timeout: '元数据请求超时',
connect_timeout: '连接超时',
consumer_max_batch_bytes: '拉取字节数',
consumer_offset_commit_interval_seconds: '偏移提交间隔',
topic: 'Kafka 主题名称',
Expand All @@ -148,10 +144,6 @@ export const zhConnectorsLabel: Record<string, Record<string, string>> = {
access_key: 'AccessKey',
secret_key: 'SecretKey',
security_token: '安全令牌',
topic: 'RocketMQ 主题',
refresh_interval: '主题路由更新间隔',
send_buffer: '发送消息的缓冲区大小',
sync_timeout: '同步调用超时时间',
},
sqlserver: {
driver: 'SQL Server Driver 名称',
Expand All @@ -174,7 +166,6 @@ export const zhConnectorsLabel: Record<string, Record<string, string>> = {
retention_period: '保留期',
send_buffer: 'Socket 发送缓存大小',
max_batch_bytes: '最大批量字节数',
connect_timeout: '连接超时',
buffer_mode: '缓存模式',
buffer_per_partition_limit: 'Pulsar 分区缓存上限',
buffer_segment_bytes: '缓存文件大小',
Expand All @@ -189,4 +180,13 @@ export const zhConnectorsLabel: Record<string, Record<string, string>> = {
greptimedb: {
dbname: '数据库',
},
s3: {
access_key_id: '访问密钥 ID',
secret_access_key: '访问密钥',
host: '地址',
port: '端口',
ipv6_probe: 'IPv6 探针',
headers: '请求头',
request_timeout: 'HTTP 请求超时',
},
}

0 comments on commit 913f869

Please sign in to comment.