From d17c473dc2951c923882f7eb7ab35d1304223995 Mon Sep 17 00:00:00 2001 From: JianBo He Date: Fri, 30 Sep 2022 18:57:08 +0800 Subject: [PATCH] chore(i18n): fix the bad desc for statsd --- .../i18n/emqx_mgmt_api_alarms_i18n.conf | 6 +++--- apps/emqx_statsd/i18n/emqx_statsd_api_i18n.conf | 16 ++++++++++++++++ 2 files changed, 19 insertions(+), 3 deletions(-) create mode 100644 apps/emqx_statsd/i18n/emqx_statsd_api_i18n.conf diff --git a/apps/emqx_management/i18n/emqx_mgmt_api_alarms_i18n.conf b/apps/emqx_management/i18n/emqx_mgmt_api_alarms_i18n.conf index 8932df048..0ab09520e 100644 --- a/apps/emqx_management/i18n/emqx_mgmt_api_alarms_i18n.conf +++ b/apps/emqx_management/i18n/emqx_mgmt_api_alarms_i18n.conf @@ -23,9 +23,9 @@ emqx_mgmt_api_alarms { get_alarms_qs_activated { desc { - en: """It is used to specify the alarm type of the query. -When true, it returns the currently activated alarm, -and when it is false, it returns the historical alarm. + en: """It is used to specify the alarm type of the query. +When true, it returns the currently activated alarm, +and when it is false, it returns the historical alarm. The default is false.""" zh: """用于指定查询的告警类型, 为 true 时返回当前激活的告警,为 false 时返回历史告警,默认为 false。""" diff --git a/apps/emqx_statsd/i18n/emqx_statsd_api_i18n.conf b/apps/emqx_statsd/i18n/emqx_statsd_api_i18n.conf new file mode 100644 index 000000000..2721188bd --- /dev/null +++ b/apps/emqx_statsd/i18n/emqx_statsd_api_i18n.conf @@ -0,0 +1,16 @@ +emqx_statsd_api { + + get_statsd_config_api { + desc { + en: """List the configuration of StatsD metrics collection and push service.""" + zh: """列出 StatsD 指标采集和推送服务的的配置。""" + } + } + + update_statsd_config_api { + desc { + en: """Update the configuration of StatsD metrics collection and push service.""" + zh: """更新 StatsD 指标采集和推送服务的配置。""" + } + } +}