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

feat(i18n): add labels for clickhouse etc. #16

Merged
merged 1 commit into from
Feb 1, 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
36 changes: 34 additions & 2 deletions packages/i18n/lib/enActionsLabel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export const enActionsLabel: Record<string, Record<string, string>> = {
request_ttl: 'Request TTL',
inflight_window: 'Inflight Window',
max_buffer_bytes: 'Max Buffer Queue Size',
sql: 'SQL',
sql: 'SQL Template',
batch_size: 'Batch Size',
topic: 'Kafka Topic',
key: 'Message Key',
Expand All @@ -30,6 +30,7 @@ export const enActionsLabel: Record<string, Record<string, string>> = {
segment_bytes: 'Segment File Bytes',
memory_overload_protection: 'Memory Overload Protection',
sync_query_timeout: 'Synchronous Query Timeout',
template: 'Message Template',
},
kafka_producer: {
timestamp: 'Message Timestamp',
Expand Down Expand Up @@ -69,7 +70,6 @@ export const enActionsLabel: Record<string, Record<string, string>> = {
syskeeper_forwarder: {
target_topic: 'Topic',
target_qos: 'QoS',
template: '"Message Template',
},
redis: {
command_template: 'Redis Command Template',
Expand Down Expand Up @@ -106,4 +106,36 @@ export const enActionsLabel: Record<string, Record<string, string>> = {
overwrite: 'Overwrite Document',
doc_as_upsert: 'Enable Upsert',
},
cassandra: {
cql: 'CQL Template',
},
opents: {
timestamp: 'Timestamp',
metric: 'Metric',
tags: 'Tags',
value: 'Value',
data: 'Write Data',
},
gcp_pubsub_consumer: {
payload_template: 'Payload Template',
},
hstreamdb: {
record_template: 'HStream Record Template',
},
kafka_consumer: {
payload_template: 'MQTT Payload Template',
},
rabbitmq: {
payload_template: 'Payload Template',
},
pulsar: {
message_key: 'Message Key',
message_value: 'Message Value',
},
kinesis: {
payload_template: 'Payload template',
},
greptimedb: {
write_syntax: 'Write Syntax',
},
}
103 changes: 103 additions & 0 deletions packages/i18n/lib/enConnectorsLabel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,4 +94,107 @@ export const enConnectorsLabel: Record<string, Record<string, string>> = {
retry_interval: 'Message Retry Interval',
max_inflight: 'Max Inflight',
},
cassandra: {
keyspace: 'Keyspace',
},
opents: {
summary: 'Summary',
details: 'Details',
},
clickhouse: {
batch_value_separator: 'Batch Value Separator',
connect_timeout: 'Clickhouse Timeout',
url: 'Server URL',
},
dynamo: {
url: 'DynamoDB Endpoint',
table: 'Table ',
aws_access_key_id: 'AWS Access Key ID',
aws_secret_access_key: 'AWS Secret Access Key',
},
gcp_pubsub_consumer: {
consumer_pubsub_topic: 'GCP PubSub Topic',
consumer_mqtt_topic: 'MQTT Topic',
consumer_qos: 'QoS',
pipelining: 'HTTP Pipelining',
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',
stream: 'HStreamDB Stream Name',
partition_key: 'HStreamDB Partition Key',
grpc_timeout: 'HStreamDB 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',
connect_timeout: 'Connect Timeout',
consumer_max_batch_bytes: 'Fetch Bytes',
consumer_offset_commit_interval_seconds: 'Offset Commit Interval',
topic: 'Kafka Topic',
mqtt_topic: 'MQTT Topic',
qos: 'QoS',
},
rocketmq: {
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',
},
oracle: {
sid: 'Oracle Database SID',
service_name: 'Oracle Database Service Name',
},
rabbitmq: {
port: 'Port',
exchange: 'Exchange',
routing_key: 'Routing Key',
virtual_host: 'Virtual Host',
heartbeat: 'Heartbeat',
delivery_mode: 'Message Delivery Mode',
wait_for_publish_confirmations: 'Wait for Publish Confirmations',
publish_confirmation_timeout: 'Publish Confirmation Timeout',
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',
connect_timeout: 'Connect Timeout',
buffer_mode: 'Buffer Mode',
buffer_per_partition_limit: 'Per-partition Buffer Limit',
buffer_segment_bytes: 'Segment File Bytes',
buffer_memory_overload_protection: 'Memory Overload Protection',
authentication_jwt: 'JWT',
},
kinesis: {
aws_access_key_id: 'AWS Access Key ID',
aws_secret_access_key: 'AWS Secret Access Key',
endpoint: 'Amazon Kinesis Endpoint',
stream_name: 'Amazon Kinesis Stream',
partition_key: 'Partition key',
},
greptimedb: {
dbname: 'Database',
precision: 'Time Precision',
},
}
36 changes: 34 additions & 2 deletions packages/i18n/lib/zhActionsLabel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export const zhActionsLabel: Record<string, Record<string, string>> = {
request_ttl: '请求超期',
inflight_window: '请求飞行队列窗口',
max_buffer_bytes: '缓存队列最大长度',
sql: 'SQL',
sql: 'SQL 模板',
batch_size: '最大批量请求大小',
topic: 'Kafka 主题名称',
key: '消息的键',
Expand All @@ -30,6 +30,7 @@ export const zhActionsLabel: Record<string, Record<string, string>> = {
segment_bytes: '缓存文件大小',
memory_overload_protection: '内存过载保护',
sync_query_timeout: '同步查询超时时间',
template: '消息模板',
},
kafka_producer: {
timestamp: '消息的时间戳',
Expand Down Expand Up @@ -69,7 +70,6 @@ export const zhActionsLabel: Record<string, Record<string, string>> = {
syskeeper_forwarder: {
target_topic: '主题',
target_qos: 'QoS',
template: '消息模板',
},
redis: {
command_template: 'Redis 命令模板',
Expand Down Expand Up @@ -106,4 +106,36 @@ export const zhActionsLabel: Record<string, Record<string, string>> = {
overwrite: '是否覆盖文档',
doc_as_upsert: '启用更新插入',
},
cassandra: {
cql: 'CQL 模板',
},
opents: {
timestamp: '时间戳',
metric: '度量',
tags: '标签',
value: '值',
data: '写入数据',
},
gcp_pubsub_consumer: {
payload_template: 'HTTP 请求消息体模板',
},
hstreamdb: {
record_template: 'HStream Record 模板',
},
kafka_consumer: {
payload_template: 'MQTT Payload Template',
},
rabbitmq: {
payload_template: '有效载荷模板',
},
pulsar: {
message_key: '消息的 Key',
message_value: '消息的 Value',
},
kinesis: {
payload_template: '载荷模板',
},
greptimedb: {
write_syntax: '写语法',
},
}
105 changes: 104 additions & 1 deletion packages/i18n/lib/zhConnectorsLabel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export const zhConnectorsLabel: Record<string, Record<string, string>> = {
},
kafka_producer: {
kerberos_principal: 'Kerberos Principal',
kerberos_keytab_file: 'Kerberos keytab 文件',
kerberos_keytab_file: 'Kerberos Keytab 文件',
mechanism: '认证方法',
authentication: '认证',
},
Expand Down Expand Up @@ -94,4 +94,107 @@ export const zhConnectorsLabel: Record<string, Record<string, string>> = {
retry_interval: '消息重发间隔',
max_inflight: '飞行窗口',
},
cassandra: {
keyspace: 'Keyspace',
},
opents: {
summary: '摘要信息',
details: '详细信息',
},
clickhouse: {
batch_value_separator: '分隔符',
connect_timeout: '连接超时',
url: '服务器 URL',
},
dynamo: {
url: 'DynamoDB 地址',
table: '表',
aws_access_key_id: '连接访问 ID',
aws_secret_access_key: '连接访问密钥',
},
gcp_pubsub_consumer: {
consumer_pubsub_topic: 'GCP PubSub 主题',
consumer_mqtt_topic: 'MQTT 主题',
consumer_qos: 'QoS',
pipelining: 'HTTP 流水线',
service_account_json: 'GCP 服务账户凭证',
topic_mapping: '主题映射',
pull_max_messages: '拉取的最大消息数',
connect_timeout: '连接超时',
},
hstreamdb: {
url: 'HStreamDB 服务器 URL',
stream: 'HStreamDB 流名称',
partition_key: 'HStreamDB 分区键',
grpc_timeout: 'HStreamDB 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: '元数据请求超时',
connect_timeout: '连接超时',
consumer_max_batch_bytes: '拉取字节数',
consumer_offset_commit_interval_seconds: '偏移提交间隔',
topic: 'Kafka 主题名称',
mqtt_topic: 'MQTT 主题',
qos: 'QoS',
},
rocketmq: {
access_key: 'AccessKey',
secret_key: 'SecretKey',
security_token: '安全令牌',
topic: 'RocketMQ 主题',
refresh_interval: '主题路由更新间隔',
send_buffer: '发送消息的缓冲区大小',
sync_timeout: '同步调用超时时间',
},
sqlserver: {
driver: 'SQL Server Driver 名称',
},
oracle: {
sid: 'Oracle Database SID',
service_name: 'Oracle 数据库服务名称',
},
rabbitmq: {
port: '端口',
exchange: '交换机',
routing_key: '路由键',
virtual_host: '虚拟主机',
heartbeat: '心跳',
delivery_mode: '消息传递模式',
wait_for_publish_confirmations: '等待发布确认',
publish_confirmation_timeout: '发布确认超时时间',
timeout: '连接超时时间',
},
pulsar: {
pulsar_topic: 'Pulsar 主题名称',
strategy: '分区选择策略',
compression: '压缩',
sync_timeout: '同步发布超时',
retention_period: '保留期',
send_buffer: 'Socket 发送缓存大小',
max_batch_bytes: '最大批量字节数',
connect_timeout: '连接超时',
buffer_mode: '缓存模式',
buffer_per_partition_limit: 'Pulsar 分区缓存上限',
buffer_segment_bytes: '缓存文件大小',
buffer_memory_overload_protection: '内存过载保护',
authentication_jwt: 'JWT',
},
kinesis: {
aws_access_key_id: 'AWS 访问密钥 ID',
aws_secret_access_key: 'AWS 秘密访问密钥',
endpoint: 'Amazon Kinesis 端点',
stream_name: 'Amazon Kinesis 流',
partition_key: '分区键',
},
greptimedb: {
dbname: '数据库',
precision: '时间精度',
},
}
Loading