Skip to content

Commit

Permalink
feat(i18n): add mqtt/influxdb/iotdb/elasticsearch label i18n
Browse files Browse the repository at this point in the history
  • Loading branch information
0721Betty committed Jan 30, 2024
1 parent 60957e4 commit d002b61
Show file tree
Hide file tree
Showing 6 changed files with 113 additions and 1 deletion.
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.10

### Patch Changes

- add mqtt/influxdb/iotdb/elasticsearch label i18n

## 0.0.9

### Patch Changes
Expand Down
28 changes: 28 additions & 0 deletions packages/i18n/lib/enActionsLabel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,4 +78,32 @@ export const enActionsLabel: Record<string, Record<string, string>> = {
collection: 'Collection',
payload_template: 'Payload template',
},
iotdb: {
device_id: 'Device ID',
is_aligned: 'Align Timeseries',
data: 'Write Data',
timestamp: 'Timestamp',
measurement: 'Measurement',
data_type: 'Data Type',
value: 'Value',
},
influxdb: {
precision: 'Time Precision',
write_syntax: 'Write Syntax',
},
mqtt: {
topic: 'Topic',
qos: 'QoS',
retain: 'Retain',
payload: 'Payload',
},
elasticsearch: {
parameters: 'Action',
index: 'Index Name',
id: 'Document ID',
doc: 'Document Template',
routing: 'Routing',
overwrite: 'Overwrite Document',
doc_as_upsert: 'Enable Upsert',
},
}
25 changes: 25 additions & 0 deletions packages/i18n/lib/enConnectorsLabel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,13 @@ export const enConnectorsLabel: Record<string, Record<string, string>> = {
max_buffer_bytes: 'Max Buffer Queue Size',
inflight_window: 'Inflight Window',
servers: 'Servers',
enable_pipelining: 'HTTP Pipelining',
},
kafka_producer: {
kerberos_principal: 'Kerberos Principal',
kerberos_keytab_file: 'Kerberos keytab file',
mechanism: 'Mechanism',
authentication: 'Authentication',
},
http: {
url: 'URL',
Expand Down Expand Up @@ -69,4 +71,27 @@ export const enConnectorsLabel: Record<string, Record<string, string>> = {
heartbeat_frequency_ms: 'Heartbeat period',
min_heartbeat_frequency_ms: 'Minimum Heartbeat Period',
},
influxdb: {
parameters: 'Version of InfluxDB',
bucket: 'Bucket',
org: 'Organization',
token: 'Token',
},
iotdb: {
base_url: 'IoTDB REST Service Base URL',
iotdb_version: 'IoTDB Version',
},
elasticsearch: {
server: 'Server',
},
mqtt: {
server: 'MQTT Broker',
clientid_prefix: 'ClientID Prefix',
proto_ver: 'MQTT Version',
bridge_mode: 'Bridge Mode',
clean_start: 'Clean start',
keepalive: 'Keepalive',
retry_interval: 'Message Retry Interval',
max_inflight: 'Max Inflight',
},
}
28 changes: 28 additions & 0 deletions packages/i18n/lib/zhActionsLabel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,4 +78,32 @@ export const zhActionsLabel: Record<string, Record<string, string>> = {
collection: '集合(Collection)',
payload_template: '有效载荷模板',
},
iotdb: {
device_id: '设备 ID',
is_aligned: '对齐时间序列',
data: '写入数据',
timestamp: '时间戳',
measurement: '字段',
data_type: '数据类型',
value: '值',
},
influxdb: {
precision: '时间精度',
write_syntax: '写语句',
},
mqtt: {
topic: '主题',
qos: 'QoS',
retain: 'Retain',
payload: '消息模版',
},
elasticsearch: {
parameters: '操作',
index: '索引名称',
id: '文档 ID',
doc: '文档模版',
routing: '路由',
overwrite: '是否覆盖文档',
doc_as_upsert: '启用更新插入',
},
}
25 changes: 25 additions & 0 deletions packages/i18n/lib/zhConnectorsLabel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,13 @@ export const zhConnectorsLabel: Record<string, Record<string, string>> = {
max_buffer_bytes: '缓存队列最大长度',
inflight_window: '请求飞行队列窗口',
servers: '服务器列表',
enable_pipelining: 'HTTP 流水线',
},
kafka_producer: {
kerberos_principal: 'Kerberos Principal',
kerberos_keytab_file: 'Kerberos keytab 文件',
mechanism: '认证方法',
authentication: '认证',
},
http: {
url: 'URL',
Expand Down Expand Up @@ -69,4 +71,27 @@ export const zhConnectorsLabel: Record<string, Record<string, string>> = {
heartbeat_frequency_ms: '心跳期',
min_heartbeat_frequency_ms: '最小心跳周期',
},
influxdb: {
parameters: 'InfluxDB 版本',
bucket: 'Bucket',
org: '组织',
token: 'Token',
},
iotdb: {
base_url: 'IoTDB REST 服务基础 URL',
iotdb_version: 'IoTDB 版本',
},
elasticsearch: {
server: '服务器地址',
},
mqtt: {
server: 'MQTT 服务地址',
clientid_prefix: '客户端 ID 前缀',
proto_ver: 'MQTT 协议版本',
bridge_mode: '桥接模式',
clean_start: '清除会话',
keepalive: 'Keepalive',
retry_interval: '消息重发间隔',
max_inflight: '飞行窗口',
},
}
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.9",
"version": "0.0.10",
"homepage": "https://emqx.io",
"license": "Apache-2.0",
"repository": {
Expand Down

0 comments on commit d002b61

Please sign in to comment.