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 actions i18n #13

Merged
merged 1 commit into from
Jan 22, 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: 6 additions & 0 deletions packages/i18n/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @emqx/shared-ui-i18n

## 0.0.8

### Patch Changes

- add label i18n for some action types

## 0.0.7

### Patch Changes
Expand Down
57 changes: 45 additions & 12 deletions packages/i18n/lib/enActionsLabel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,24 @@ export const enActionsLabel: Record<string, Record<string, string>> = {
common: {
health_check_interval: 'Health Check Interval',
query_mode: 'Query Mode',
},
kafka_producer: {
max_retries: 'Max Retries',
worker_pool_size: 'Buffer Pool Size',
start_after_created: 'Start After Created',
start_timeout: 'Start Timeout',
request_ttl: 'Request TTL',
inflight_window: 'Inflight Window',
max_buffer_bytes: 'Max Buffer Queue Size',
sql: 'SQL',
batch_size: 'Batch Size',
topic: 'Kafka Topic',
key: 'Message Key',
value: 'Message Value',
timestamp: 'Message Timestamp',
compression: 'Compression',
partition_strategy: 'Partition Strategy',
kafka_headers: 'Kafka Headers',
kafka_ext_headers: 'More Kafka Headers',
kafka_ext_header_key: 'Kafka Header Key',
kafka_ext_header_value: 'Kafka Header Value',
kafka_ext_header_key: 'Key',
kafka_ext_header_value: 'Value',
kafka_header_value_encode_mode: 'Kafka Header Value Encode Mode',
max_batch_bytes: 'Max Batch Bytes',
required_acks: 'Required Acks',
Expand All @@ -25,17 +31,44 @@ export const enActionsLabel: Record<string, Record<string, string>> = {
memory_overload_protection: 'Memory Overload Protection',
sync_query_timeout: 'Synchronous Query Timeout',
},
kafka_producer: {
timestamp: 'Message Timestamp',
kafka_ext_header_key: 'Kafka Header Key',
kafka_ext_header_value: 'Kafka Header Value',
},
http: {
body: 'Body',
headers: 'Headers',
method: 'Method',
path: 'URL Path',
max_retries: 'Max Retries',
worker_pool_size: 'Buffer Pool Size',
start_after_created: 'Start After Created',
start_timeout: 'Start Timeout',
request_ttl: 'Request TTL',
inflight_window: 'Inflight Window',
max_buffer_bytes: 'Max Buffer Queue Size',
},
azure_event_hub_producer: {
topic: 'Event Hub Name',
key: 'Message Key',
value: 'Message Value',
partition_strategy: 'Partition Strategy',
required_acks: 'Required Acks',
kafka_headers: 'Azure Event Hubs Headers',
kafka_ext_headers: 'Extra Azure Event Hubs headers',
kafka_header_value_encode_mode: 'Azure Event Hubs headers value encode mode',
partition_count_refresh_interval: 'Partition Count Refresh Interval',
max_inflight: 'Max Inflight',
mode: 'Buffer Mode',
per_partition_limit: 'Per-partition Buffer Limit',
segment_bytes: 'Segment File Bytes',
memory_overload_protection: 'Memory Overload Protection',
max_batch_bytes: 'Max Batch Bytes',
query_mode: 'Query mode',
},
gcp_pubsub_producer: {
attributes_template: 'Attributes Template',
pubsub_topic: 'GCP PubSub Topic',
ordering_key_template: 'Ordering Key template',
payload_template: 'Payload Template',
},
syskeeper_forwarder: {
target_topic: 'Topic',
target_qos: 'QoS',
template: '"Message Template',
},
}
57 changes: 45 additions & 12 deletions packages/i18n/lib/zhActionsLabel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,24 @@ export const zhActionsLabel: Record<string, Record<string, string>> = {
common: {
health_check_interval: '健康检查间隔',
query_mode: '请求模式',
},
kafka_producer: {
max_retries: '最大重试次数',
worker_pool_size: '缓存池大小',
start_after_created: '创建后立即启动',
start_timeout: '启动超时时间',
request_ttl: '请求超期',
inflight_window: '请求飞行队列窗口',
max_buffer_bytes: '缓存队列最大长度',
sql: 'SQL',
batch_size: '最大批量请求大小',
topic: 'Kafka 主题名称',
key: '消息的键',
value: '消息的值',
timestamp: '消息的时间戳',
compression: '压缩',
partition_strategy: '分区选择策略',
kafka_headers: 'Kafka Headers',
kafka_ext_headers: '更多的 Kafka Headers',
kafka_ext_header_key: 'Kafka Headers 键',
kafka_ext_header_value: 'Kafka Headers 值',
kafka_ext_header_key: '键',
kafka_ext_header_value: '值',
kafka_header_value_encode_mode: 'Kafka Headers 值编码类型',
max_batch_bytes: '最大批量字节数',
required_acks: 'Kafka 确认数量',
Expand All @@ -25,17 +31,44 @@ export const zhActionsLabel: Record<string, Record<string, string>> = {
memory_overload_protection: '内存过载保护',
sync_query_timeout: '同步查询超时时间',
},
kafka_producer: {
timestamp: '消息的时间戳',
kafka_ext_header_key: 'Kafka Headers 键',
kafka_ext_header_value: 'Kafka Headers 值',
},
http: {
body: '请求体',
headers: '请求头',
method: '请求方法',
path: 'URL 路径',
max_retries: '最大重试次数',
worker_pool_size: '缓存池大小',
start_after_created: '创建后立即启动',
start_timeout: '启动超时时间',
request_ttl: '请求超期',
inflight_window: '请求飞行队列窗口',
max_buffer_bytes: '缓存队列最大长度',
},
azure_event_hub_producer: {
topic: '事件中心名称',
key: '消息键',
value: '消息值',
partition_strategy: '分区策略',
required_acks: '所需确认',
kafka_headers: 'Azure Event Hubs 头部',
kafka_ext_headers: '额外的 Azure Event Hubs 头部信息',
kafka_header_value_encode_mode: 'Azure Event Hubs 头部值编码模式',
partition_count_refresh_interval: '分区数刷新间隔',
max_inflight: '最大传输数',
mode: '缓冲区模式',
per_partition_limit: '每个分区缓冲限制',
segment_bytes: '段文件字节数',
memory_overload_protection: '内存过载保护',
max_batch_bytes: '最大批次字节数',
query_mode: '查询模式',
},
gcp_pubsub_producer: {
attributes_template: '属性模版',
pubsub_topic: 'GCP PubSub 主题',
ordering_key_template: '排序键模板',
payload_template: 'HTTP 请求消息体模板',
},
syskeeper_forwarder: {
target_topic: '主题',
target_qos: 'QoS',
template: '消息模板',
},
}
2 changes: 1 addition & 1 deletion packages/i18n/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@emqx/shared-ui-i18n",
"version": "0.0.7",
"version": "0.0.8",
"homepage": "https://emqx.io",
"license": "Apache-2.0",
"repository": {
Expand Down