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 mqtt/influxdb/iotdb/elasticsearch label i18n #15

Merged
merged 1 commit into from
Jan 31, 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.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',
},
}
1 change: 1 addition & 0 deletions packages/i18n/lib/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ export * from './enActionsLabel'
export * from './zhActionsLabel'
export * from './enConnectorsLabel'
export * from './zhConnectorsLabel'
export * from './authHelpCodeMap'
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
Loading