Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor(i18n): move some label from connector to action in kafka con… #27

Merged
merged 1 commit into from
Feb 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion packages/i18n/lib/enActionsLabel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,11 @@ export const enActionsLabel: Record<string, Record<string, string>> = {
record_template: 'Record Template',
},
kafka_consumer: {
payload_template: 'MQTT Payload Template',
key_encoding_mode: 'Key Encoding Mode',
value_encoding_mode: 'Value Encoding Mode',
offset_reset_policy: 'Offset Reset Policy',
offset_commit_interval_seconds: 'Offset Commit Interval',
topic: 'Kafka Topic',
},
rabbitmq: {
exchange: 'Exchange',
Expand Down
19 changes: 4 additions & 15 deletions packages/i18n/lib/enConnectorsLabel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,12 @@ export const enConnectorsLabel: Record<string, Record<string, string>> = {
servers: 'Servers',
enable_pipelining: 'HTTP Pipelining',
url: 'Server URL',
authentication: 'Authentication',
},
kafka_producer: {
kerberos_principal: 'Kerberos Principal',
kerberos_keytab_file: 'Kerberos keytab file',
mechanism: 'Mechanism',
authentication: 'Authentication',
},
http: {
url: 'URL',
Expand Down Expand Up @@ -119,19 +119,9 @@ export const enConnectorsLabel: Record<string, Record<string, string>> = {
grpc_timeout: 'gRPC Timeout',
},
kafka_consumer: {
bootstrap_hosts: 'Bootstrap Hosts',
consumer_key_encoding_mode: 'Key Encoding Mode',
consumer_value_encoding_mode: 'Value Encoding Mode',
consumer_topic_mapping: 'Topic Mapping',
consumer_offset_reset_policy: 'Offset Reset Policy',
consumer_mqtt_topic: 'MQTT Topic',
min_metadata_refresh_interval: 'Min Metadata Refresh Interval',
metadata_request_timeout: 'Metadata Request Timeout',
consumer_max_batch_bytes: 'Fetch Bytes',
consumer_offset_commit_interval_seconds: 'Offset Commit Interval',
topic: 'Kafka Topic',
mqtt_topic: 'MQTT Topic',
qos: 'QoS',
kerberos_principal: 'Kerberos Principal',
kerberos_keytab_file: 'Kerberos keytab file',
mechanism: 'Mechanism',
},
rocketmq: {
access_key: 'AccessKey',
Expand All @@ -153,7 +143,6 @@ export const enConnectorsLabel: Record<string, Record<string, string>> = {
},
pulsar: {
jwt: 'JWT',
authentication: 'Authentication',
},
kinesis: {
aws_access_key_id: 'AWS Access Key ID',
Expand Down
6 changes: 5 additions & 1 deletion packages/i18n/lib/zhActionsLabel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,11 @@ export const zhActionsLabel: Record<string, Record<string, string>> = {
record_template: 'Record 模板',
},
kafka_consumer: {
payload_template: 'MQTT Payload Template',
key_encoding_mode: 'Key 编码模式',
value_encoding_mode: 'Value 编码模式',
offset_reset_policy: '偏移重置策略',
offset_commit_interval_seconds: '偏移提交间隔',
topic: 'Kafka 主题名称',
},
rabbitmq: {
exchange: '交换机',
Expand Down
19 changes: 4 additions & 15 deletions packages/i18n/lib/zhConnectorsLabel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,12 @@ export const zhConnectorsLabel: Record<string, Record<string, string>> = {
servers: '服务器列表',
enable_pipelining: 'HTTP 流水线',
url: '服务器地址',
authentication: '认证',
},
kafka_producer: {
kerberos_principal: 'Kerberos Principal',
kerberos_keytab_file: 'Kerberos Keytab 文件',
mechanism: '认证方法',
authentication: '认证',
},
http: {
url: 'URL',
Expand Down Expand Up @@ -119,19 +119,9 @@ export const zhConnectorsLabel: Record<string, Record<string, string>> = {
grpc_timeout: 'gRPC 超时',
},
kafka_consumer: {
bootstrap_hosts: '主机列表',
consumer_key_encoding_mode: 'Key 编码模式',
consumer_value_encoding_mode: 'Value 编码模式',
consumer_topic_mapping: '主题映射关系',
consumer_offset_reset_policy: '偏移重置策略',
consumer_mqtt_topic: 'MQTT 主题',
min_metadata_refresh_interval: '元数据刷新最小间隔',
metadata_request_timeout: '元数据请求超时',
consumer_max_batch_bytes: '拉取字节数',
consumer_offset_commit_interval_seconds: '偏移提交间隔',
topic: 'Kafka 主题名称',
mqtt_topic: 'MQTT 主题',
qos: 'QoS',
kerberos_principal: 'Kerberos Principal',
kerberos_keytab_file: 'Kerberos Keytab 文件',
mechanism: '认证方法',
},
rocketmq: {
access_key: 'AccessKey',
Expand All @@ -153,7 +143,6 @@ export const zhConnectorsLabel: Record<string, Record<string, string>> = {
},
pulsar: {
jwt: 'JWT',
authentication: '认证',
},
kinesis: {
aws_access_key_id: 'AWS 访问密钥 ID',
Expand Down
Loading