fix(slow_subs): remove redundant fields in i18n conf

This commit is contained in:
firest 2022-04-19 18:32:24 +08:00
parent a7482b2fea
commit 132298d30e
2 changed files with 34 additions and 74 deletions

View File

@ -1,92 +1,66 @@
emqx_slow_subs_api { emqx_slow_subs_api {
clear_records_api { clear_records_api {
desc { desc {
en: "Clear current data and re count slow topic." en: "Clear current data and re count slow topic"
zh: "清除当前记录,然后重新开始统计。" zh: "清除当前记录,然后重新开始统计"
}
label: {
en: "Clear Records"
zh: "清除记录"
} }
} }
get_records_api { get_records_api {
desc { desc {
en: "Get slow topics statistics record data." en: "View slow topics statistics record data"
zh: "查看慢订阅的统计数据。" zh: "查看慢订阅的统计数据"
}
label: {
en: "Records"
zh: "记录"
} }
} }
get_setting_api { get_setting_api {
desc { desc {
en: "Get slow subs settings." en: "View slow subs settings"
zh: "查看配置"
}
label: {
en: "View Settings"
zh: "查看配置" zh: "查看配置"
} }
} }
update_setting_api { update_setting_api {
desc { desc {
en: "Update slow subs settings." en: "Update slow subs settings"
zh: "更新配置"
}
label: {
en: "Update Settings"
zh: "更新配置" zh: "更新配置"
} }
} }
clientid { clientid {
desc { desc {
en: "Message clientid." en: "Message clientid"
zh: "消息的客户端 ID" zh: "消息的客户端 ID"
} }
label: {
en: "ClientID"
zh: "ClientID"
}
} }
node { node {
desc { desc {
en: "Message node name." en: "Message node name"
zh: "消息的节点名称" zh: "消息的节点名称"
} }
label: {
en: "Node Name"
zh: "节点名"
}
} }
topic { topic {
desc { desc {
en: "Message topic." en: "Message topic"
zh: "消息主题" zh: "消息的主题"
}
label: {
en: "Topic"
zh: "主题"
} }
} }
timespan { timespan {
desc { desc {
en: "Timespan for message transmission." en: "Timespan for message transmission"
zh: "消息的传输耗时。" zh: "消息的传输耗时"
}
label: {
en: "Timespan"
zh: "传输耗时"
} }
} }
last_update_time { last_update_time {
desc { desc {
en: "The timestamp of last update." en: "The timestamp of last update"
zh: "记录的更新时间戳。" zh: "记录的更新时间戳"
}
label: {
en: "Last Update Time"
zh: "更新时间"
} }
} }
} }

View File

@ -1,52 +1,38 @@
emqx_slow_subs_schema { emqx_slow_subs_schema {
enable { enable {
desc { desc {
en: "Enable this feature" en: "Enable this feature"
zh: "开启慢订阅" zh: "开启慢订阅"
} }
label: {
en: "Enable"
zh: "开启"
}
} }
threshold { threshold {
desc { desc {
en: "The latency threshold for statistics." en: "The latency threshold for statistics"
zh: "慢订阅统计的阈值" zh: "慢订阅统计的阈值"
} }
label: {
en: "Threshold"
zh: "阈值"
}
} }
expire_interval { expire_interval {
desc { desc {
en: "The eviction time of the record, which in the statistics record table." en: "The eviction time of the record, which in the statistics record table"
zh: "慢订阅记录的有效时间" zh: "慢订阅记录的有效时间"
} }
label: {
en: "Eviction Time"
zh: "有效时间"
}
} }
top_k_num { top_k_num {
desc { desc {
en: "The maximum number of records in the slow subscription statistics record table." en: "The maximum number of records in the slow subscription statistics record table"
zh: "慢订阅统计表的记录数量上限" zh: "慢订阅统计表的记录数量上限"
} }
label: {
en: "Numbers"
zh: "记录数上限"
}
} }
stats_type { stats_type {
desc { desc {
en: "The method to calculate the latency." en: "The method to calculate the latency"
zh: "慢订阅的统计类型" zh: "慢订阅的统计类型"
} }
label: {
en: "Stats Type"
zh: "统计类型"
}
} }
} }