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
  • Loading branch information
Kinplemelon authored and ysfscream committed Feb 27, 2024
1 parent 7faf61f commit 9721dbf
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 22 deletions.
7 changes: 7 additions & 0 deletions packages/i18n/lib/enActionsLabel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,13 @@ export const enActionsLabel: Record<string, Record<string, string>> = {
payload_template: 'Payload Template',
},
pulsar: {
pulsar_topic: 'Pulsar Topic Name',
strategy: 'Partition Strategy',
retention_period: 'Retention Period',
compression: 'Compression',
sync_timeout: 'Sync Publish Timeout',
send_buffer: 'Socket Send Buffer Size',
per_partition_limit: 'Per-partition Buffer Limit',
message_key: 'Message Key',
message_value: 'Message Value',
},
Expand Down
11 changes: 0 additions & 11 deletions packages/i18n/lib/enConnectorsLabel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -152,17 +152,6 @@ export const enConnectorsLabel: Record<string, Record<string, string>> = {
timeout: 'Connection Timeout',
},
pulsar: {
pulsar_topic: 'Pulsar Topic Name',
strategy: 'Partition Strategy',
compression: 'Compression',
sync_timeout: 'Sync Publish Timeout',
retention_period: 'Retention Period',
send_buffer: 'Socket Send Buffer Size',
max_batch_bytes: 'Max Batch Bytes',
mode: 'Buffer Mode',
per_partition_limit: 'Per-partition Buffer Limit',
segment_bytes: 'Segment File Bytes',
memory_overload_protection: 'Memory Overload Protection',
jwt: 'JWT',
authentication: 'Authentication',
},
Expand Down
7 changes: 7 additions & 0 deletions packages/i18n/lib/zhActionsLabel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,13 @@ export const zhActionsLabel: Record<string, Record<string, string>> = {
payload_template: '有效载荷模板',
},
pulsar: {
pulsar_topic: 'Pulsar 主题名称',
strategy: '分区选择策略',
retention_period: '消息保留时间',
compression: '压缩',
sync_timeout: '同步发布超时',
send_buffer: 'Socket 发送缓存大小',
per_partition_limit: '分区缓存上限',
message_key: '消息的 Key',
message_value: '消息的 Value',
},
Expand Down
11 changes: 0 additions & 11 deletions packages/i18n/lib/zhConnectorsLabel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -152,17 +152,6 @@ export const zhConnectorsLabel: Record<string, Record<string, string>> = {
timeout: '连接超时时间',
},
pulsar: {
pulsar_topic: 'Pulsar 主题名称',
strategy: '分区选择策略',
compression: '压缩',
sync_timeout: '同步发布超时',
retention_period: '消息保留时间',
send_buffer: 'Socket 发送缓存大小',
max_batch_bytes: '最大批量字节数',
mode: '缓存模式',
per_partition_limit: '分区缓存上限',
segment_bytes: '缓存文件大小',
memory_overload_protection: '内存过载保护',
jwt: 'JWT',
authentication: '认证',
},
Expand Down

0 comments on commit 9721dbf

Please sign in to comment.