diff --git a/rel/i18n/emqx_ee_bridge_clickhouse.hocon b/rel/i18n/emqx_ee_bridge_clickhouse.hocon
index 5096f8590..5bc6f12b2 100644
--- a/rel/i18n/emqx_ee_bridge_clickhouse.hocon
+++ b/rel/i18n/emqx_ee_bridge_clickhouse.hocon
@@ -6,11 +6,9 @@ emqx_ee_bridge_clickhouse {
matching the local_topic will be forwarded.
NOTE: if this bridge is used as the action of a rule (EMQX rule engine), and also local_topic is
configured, then both the data got from the rule and the MQTT messages that match local_topic
-will be forwarded.
-"""
+will be forwarded."""
zh: """发送到 'local_topic' 的消息都会转发到 Clickhouse。
-注意:如果这个 Bridge 被用作规则(EMQX 规则引擎)的输出,同时也配置了 'local_topic' ,那么这两部分的消息都会被转发。
-"""
+注意:如果这个 Bridge 被用作规则(EMQX 规则引擎)的输出,同时也配置了 'local_topic' ,那么这两部分的消息都会被转发。"""
}
label {
en: "Local Topic"
diff --git a/rel/i18n/emqx_ee_bridge_kafka.hocon b/rel/i18n/emqx_ee_bridge_kafka.hocon
index df32c1cae..d1a017416 100644
--- a/rel/i18n/emqx_ee_bridge_kafka.hocon
+++ b/rel/i18n/emqx_ee_bridge_kafka.hocon
@@ -547,7 +547,7 @@ emqx_ee_bridge_kafka {
"ts
: message timestamp.\n"
"ts_type
: message timestamp type, which is one of"
" create
, append
or undefined
.\n"
- "value
: Kafka message value (uses the chosen value encoding).\n"
+ "value
: Kafka message value (uses the chosen value encoding)."
zh: "用于转换收到的 Kafka 消息的模板。 "
"默认情况下,它将使用 JSON 格式来序列化来自 Kafka 的所有字段。 "
"这些字段包括:"
@@ -558,7 +558,7 @@ emqx_ee_bridge_kafka {
"ts
: 消息的时间戳。\n"
"ts_type
:消息的时间戳类型,值可能是:"
" create
, append
或 undefined
。\n"
- "value
: Kafka 消息值(使用选择的编码方式编码)。\n"
+ "value
: Kafka 消息值(使用选择的编码方式编码)。"
}
label {
diff --git a/rel/i18n/emqx_ee_bridge_tdengine.hocon b/rel/i18n/emqx_ee_bridge_tdengine.hocon
index 2d5af9f16..21fc013df 100644
--- a/rel/i18n/emqx_ee_bridge_tdengine.hocon
+++ b/rel/i18n/emqx_ee_bridge_tdengine.hocon
@@ -6,11 +6,9 @@ emqx_ee_bridge_tdengine {
matching the local_topic will be forwarded.
NOTE: if this bridge is used as the action of a rule (EMQX rule engine), and also local_topic is
configured, then both the data got from the rule and the MQTT messages that match local_topic
-will be forwarded.
-"""
+will be forwarded."""
zh: """发送到 'local_topic' 的消息都会转发到 TDengine。
-注意:如果这个 Bridge 被用作规则(EMQX 规则引擎)的输出,同时也配置了 'local_topic' ,那么这两部分的消息都会被转发。
-"""
+注意:如果这个 Bridge 被用作规则(EMQX 规则引擎)的输出,同时也配置了 'local_topic' ,那么这两部分的消息都会被转发。"""
}
label {
en: "Local Topic"
diff --git a/rel/i18n/emqx_ee_connector_dynamo.hocon b/rel/i18n/emqx_ee_connector_dynamo.hocon
index e1fc11e03..295929a72 100644
--- a/rel/i18n/emqx_ee_connector_dynamo.hocon
+++ b/rel/i18n/emqx_ee_connector_dynamo.hocon
@@ -2,8 +2,8 @@ emqx_ee_connector_dynamo {
url {
desc {
- en: """The url of DynamoDB endpoint.
"""
- zh: """DynamoDB 的地址。
"""
+ en: """The url of DynamoDB endpoint."""
+ zh: """DynamoDB 的地址。"""
}
label: {
en: "DynamoDB Endpoint"
diff --git a/rel/i18n/emqx_ee_connector_rocketmq.hocon b/rel/i18n/emqx_ee_connector_rocketmq.hocon
index d4a610212..44dda7931 100644
--- a/rel/i18n/emqx_ee_connector_rocketmq.hocon
+++ b/rel/i18n/emqx_ee_connector_rocketmq.hocon
@@ -2,16 +2,12 @@ emqx_ee_connector_rocketmq {
server {
desc {
- en: """
-The IPv4 or IPv6 address or the hostname to connect to.
+ en: """The IPv4 or IPv6 address or the hostname to connect to.
A host entry has the following form: `Host[:Port]`.
-The RocketMQ default port 9876 is used if `[:Port]` is not specified.
-"""
- zh: """
-将要连接的 IPv4 或 IPv6 地址,或者主机名。
+The RocketMQ default port 9876 is used if `[:Port]` is not specified."""
+ zh: """将要连接的 IPv4 或 IPv6 地址,或者主机名。
主机名具有以下形式:`Host[:Port]`。
-如果未指定 `[:Port]`,则使用 RocketMQ 默认端口 9876。
-"""
+如果未指定 `[:Port]`,则使用 RocketMQ 默认端口 9876。"""
}
label: {
en: "Server Host"
diff --git a/rel/i18n/emqx_ee_connector_tdengine.hocon b/rel/i18n/emqx_ee_connector_tdengine.hocon
index c6c58d82d..02254124c 100644
--- a/rel/i18n/emqx_ee_connector_tdengine.hocon
+++ b/rel/i18n/emqx_ee_connector_tdengine.hocon
@@ -2,16 +2,12 @@ emqx_ee_connector_tdengine {
server {
desc {
- en: """
-The IPv4 or IPv6 address or the hostname to connect to.
+ en: """The IPv4 or IPv6 address or the hostname to connect to.
A host entry has the following form: `Host[:Port]`.
-The TDengine default port 6041 is used if `[:Port]` is not specified.
-"""
- zh: """
-将要连接的 IPv4 或 IPv6 地址,或者主机名。
+The TDengine default port 6041 is used if `[:Port]` is not specified."""
+ zh: """将要连接的 IPv4 或 IPv6 地址,或者主机名。
主机名具有以下形式:`Host[:Port]`。
-如果未指定 `[:Port]`,则使用 TDengine 默认端口 6041。
-"""
+如果未指定 `[:Port]`,则使用 TDengine 默认端口 6041。"""
}
label: {
en: "Server Host"
diff --git a/rel/i18n/emqx_schema.hocon b/rel/i18n/emqx_schema.hocon
index 28c58713d..d36809c3b 100644
--- a/rel/i18n/emqx_schema.hocon
+++ b/rel/i18n/emqx_schema.hocon
@@ -1505,8 +1505,8 @@ In case PSK cipher suites are intended, make sure to configure
common_ssl_opts_schema_hibernate_after {
desc {
- en: """ Hibernate the SSL process after idling for amount of time reducing its memory footprint. """
- zh: """ 在闲置一定时间后休眠 SSL 进程,减少其内存占用。"""
+ en: """Hibernate the SSL process after idling for amount of time reducing its memory footprint."""
+ zh: """在闲置一定时间后休眠 SSL 进程,减少其内存占用。"""
}
label: {
en: "hibernate after"
diff --git a/scripts/check-i18n-style.escript b/scripts/check-i18n-style.escript
index 6ad6c1770..7e90f0807 100755
--- a/scripts/check-i18n-style.escript
+++ b/scripts/check-i18n-style.escript
@@ -1,5 +1,7 @@
#!/usr/bin/env escript
+%% called from check-i18n-style.sh
+
-mode(compile).
-define(YELLOW, "\e[33m").
diff --git a/scripts/check-i18n-style.sh b/scripts/check-i18n-style.sh
index 0be565f30..d21f43a72 100755
--- a/scripts/check-i18n-style.sh
+++ b/scripts/check-i18n-style.sh
@@ -3,6 +3,6 @@ set -euo pipefail
cd -P -- "$(dirname -- "$0")/.."
-all_files="$(git ls-files '*i18n*.conf')"
+all_files="$(git ls-files 'rel/i18n/*.hocon')"
./scripts/check-i18n-style.escript "$all_files"