Skip to content

Commit 60957e4

Browse files
0721Bettyysfscream
authored andcommitted
feat(i18n): add redis & mongodb label i18n
1 parent f3bf032 commit 60957e4

File tree

6 files changed

+69
-1
lines changed

6 files changed

+69
-1
lines changed

packages/i18n/CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# @emqx/shared-ui-i18n
22

3+
## 0.0.9
4+
5+
### Patch Changes
6+
7+
- add redis & mongodb label i18n
8+
39
## 0.0.8
410

511
### Patch Changes

packages/i18n/lib/enActionsLabel.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,4 +71,11 @@ export const enActionsLabel: Record<string, Record<string, string>> = {
7171
target_qos: 'QoS',
7272
template: '"Message Template',
7373
},
74+
redis: {
75+
command_template: 'Redis Command Template',
76+
},
77+
mongodb: {
78+
collection: 'Collection',
79+
payload_template: 'Payload template',
80+
},
7481
}

packages/i18n/lib/enConnectorsLabel.ts

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ export const enConnectorsLabel: Record<string, Record<string, string>> = {
2121
request_ttl: 'Request TTL',
2222
max_buffer_bytes: 'Max Buffer Queue Size',
2323
inflight_window: 'Inflight Window',
24+
servers: 'Servers',
2425
},
2526
kafka_producer: {
2627
kerberos_principal: 'Kerberos Principal',
@@ -45,4 +46,27 @@ export const enConnectorsLabel: Record<string, Record<string, string>> = {
4546
ack_mode: 'ACK Mode',
4647
ack_timeout: 'ACK Timeout',
4748
},
49+
redis: {
50+
parameters: 'Redis Mode',
51+
sentinel: 'Sentinel Mode',
52+
},
53+
mongodb: {
54+
parameters: 'MongoDB Mode',
55+
w_mode: 'Write Mode',
56+
r_mode: 'Read Mode',
57+
srv_record: 'Srv Record',
58+
use_legacy_protocol: 'Use Legacy Protocol',
59+
auth_source: 'Auth Source',
60+
replica_set_name: 'Replica Set Name',
61+
max_overflow: 'Max Overflow Workers',
62+
overflow_ttl: 'Overflow TTL',
63+
overflow_check_period: 'Overflow Check Period',
64+
local_threshold_ms: 'Local Threshold',
65+
connect_timeout_ms: 'Connect Timeout',
66+
socket_timeout_ms: 'Socket Timeout',
67+
server_selection_timeout_ms: 'Server Selection Timeout',
68+
wait_queue_timeout_ms: 'Wait Queue Timeout',
69+
heartbeat_frequency_ms: 'Heartbeat period',
70+
min_heartbeat_frequency_ms: 'Minimum Heartbeat Period',
71+
},
4872
}

packages/i18n/lib/zhActionsLabel.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,4 +71,11 @@ export const zhActionsLabel: Record<string, Record<string, string>> = {
7171
target_qos: 'QoS',
7272
template: '消息模板',
7373
},
74+
redis: {
75+
command_template: 'Redis 命令模板',
76+
},
77+
mongodb: {
78+
collection: '集合(Collection)',
79+
payload_template: '有效载荷模板',
80+
},
7481
}

packages/i18n/lib/zhConnectorsLabel.ts

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ export const zhConnectorsLabel: Record<string, Record<string, string>> = {
2121
request_ttl: '请求超期',
2222
max_buffer_bytes: '缓存队列最大长度',
2323
inflight_window: '请求飞行队列窗口',
24+
servers: '服务器列表',
2425
},
2526
kafka_producer: {
2627
kerberos_principal: 'Kerberos Principal',
@@ -45,4 +46,27 @@ export const zhConnectorsLabel: Record<string, Record<string, string>> = {
4546
ack_mode: 'ACK 模式',
4647
ack_timeout: 'ACK 超时',
4748
},
49+
redis: {
50+
parameters: '部署模式',
51+
sentinel: '哨兵模式',
52+
},
53+
mongodb: {
54+
parameters: '部署模式',
55+
w_mode: '写模式',
56+
r_mode: '读模式',
57+
srv_record: 'SRV 记录',
58+
use_legacy_protocol: '使用旧协议',
59+
auth_source: '认证源',
60+
replica_set_name: '副本集名称',
61+
max_overflow: '最大溢出',
62+
overflow_ttl: '溢出 TTL',
63+
overflow_check_period: '溢出检查周期',
64+
local_threshold_ms: '本地阈值',
65+
connect_timeout_ms: '连接超时',
66+
socket_timeout_ms: '套接字操作超时',
67+
server_selection_timeout_ms: '服务器选择超时',
68+
wait_queue_timeout_ms: '等待队列超时',
69+
heartbeat_frequency_ms: '心跳期',
70+
min_heartbeat_frequency_ms: '最小心跳周期',
71+
},
4872
}

packages/i18n/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@emqx/shared-ui-i18n",
3-
"version": "0.0.8",
3+
"version": "0.0.9",
44
"homepage": "https://emqx.io",
55
"license": "Apache-2.0",
66
"repository": {

0 commit comments

Comments
 (0)