From d002b61ad106e15cab27ee216f3b11e89e8e27dd Mon Sep 17 00:00:00 2001 From: 0721Betty <1942433767@qq.com> Date: Tue, 30 Jan 2024 15:51:24 +0800 Subject: [PATCH] feat(i18n): add mqtt/influxdb/iotdb/elasticsearch label i18n --- packages/i18n/CHANGELOG.md | 6 ++++++ packages/i18n/lib/enActionsLabel.ts | 28 ++++++++++++++++++++++++++ packages/i18n/lib/enConnectorsLabel.ts | 25 +++++++++++++++++++++++ packages/i18n/lib/zhActionsLabel.ts | 28 ++++++++++++++++++++++++++ packages/i18n/lib/zhConnectorsLabel.ts | 25 +++++++++++++++++++++++ packages/i18n/package.json | 2 +- 6 files changed, 113 insertions(+), 1 deletion(-) diff --git a/packages/i18n/CHANGELOG.md b/packages/i18n/CHANGELOG.md index c735615..dcb5520 100644 --- a/packages/i18n/CHANGELOG.md +++ b/packages/i18n/CHANGELOG.md @@ -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 diff --git a/packages/i18n/lib/enActionsLabel.ts b/packages/i18n/lib/enActionsLabel.ts index 0cae4d1..cf1e45f 100644 --- a/packages/i18n/lib/enActionsLabel.ts +++ b/packages/i18n/lib/enActionsLabel.ts @@ -78,4 +78,32 @@ export const enActionsLabel: Record> = { 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', + }, } diff --git a/packages/i18n/lib/enConnectorsLabel.ts b/packages/i18n/lib/enConnectorsLabel.ts index 2eab62d..a321f84 100644 --- a/packages/i18n/lib/enConnectorsLabel.ts +++ b/packages/i18n/lib/enConnectorsLabel.ts @@ -22,11 +22,13 @@ export const enConnectorsLabel: Record> = { 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', @@ -69,4 +71,27 @@ export const enConnectorsLabel: Record> = { 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', + }, } diff --git a/packages/i18n/lib/zhActionsLabel.ts b/packages/i18n/lib/zhActionsLabel.ts index d6ef1ef..2eee8ec 100644 --- a/packages/i18n/lib/zhActionsLabel.ts +++ b/packages/i18n/lib/zhActionsLabel.ts @@ -78,4 +78,32 @@ export const zhActionsLabel: Record> = { 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: '启用更新插入', + }, } diff --git a/packages/i18n/lib/zhConnectorsLabel.ts b/packages/i18n/lib/zhConnectorsLabel.ts index 28e0412..9ab1814 100644 --- a/packages/i18n/lib/zhConnectorsLabel.ts +++ b/packages/i18n/lib/zhConnectorsLabel.ts @@ -22,11 +22,13 @@ export const zhConnectorsLabel: Record> = { 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', @@ -69,4 +71,27 @@ export const zhConnectorsLabel: Record> = { 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: '飞行窗口', + }, } diff --git a/packages/i18n/package.json b/packages/i18n/package.json index 803254e..58c4b5c 100644 --- a/packages/i18n/package.json +++ b/packages/i18n/package.json @@ -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": {