chore: add i18n
This commit is contained in:
parent
3597ee7c93
commit
1ad3100cad
|
@ -338,6 +338,8 @@ egress_pool_size(Prop) ->
|
|||
|
||||
desc("server_configs") ->
|
||||
?DESC("server_configs");
|
||||
desc("config_connector") ->
|
||||
?DESC("config_connector");
|
||||
desc("ingress") ->
|
||||
?DESC("ingress_desc");
|
||||
desc("ingress_remote") ->
|
||||
|
@ -350,6 +352,8 @@ desc("egress_remote") ->
|
|||
?DESC("egress_remote");
|
||||
desc("egress_local") ->
|
||||
?DESC("egress_local");
|
||||
desc(resource_opts) ->
|
||||
?DESC(emqx_resource_schema, <<"resource_opts">>);
|
||||
desc(_) ->
|
||||
undefined.
|
||||
|
||||
|
|
|
@ -107,6 +107,10 @@ desc("config") ->
|
|||
?DESC("desc_config");
|
||||
desc(action_resource_opts) ->
|
||||
?DESC(emqx_resource_schema, "creation_opts");
|
||||
desc(action_parameters) ->
|
||||
?DESC(action_parameters);
|
||||
desc(ingress_parameters) ->
|
||||
?DESC(ingress_parameters);
|
||||
desc(Method) when Method =:= "get"; Method =:= "put"; Method =:= "post" ->
|
||||
["Configuration for WebHook using `", string:to_upper(Method), "` method."];
|
||||
desc("config_connector") ->
|
||||
|
@ -115,6 +119,10 @@ desc("http_action") ->
|
|||
?DESC("desc_config");
|
||||
desc("parameters_opts") ->
|
||||
?DESC("config_parameters_opts");
|
||||
desc("mqtt_publisher_action") ->
|
||||
?DESC("mqtt_publisher_action");
|
||||
desc("mqtt_subscriber_source") ->
|
||||
?DESC("mqtt_subscriber_source");
|
||||
desc(_) ->
|
||||
undefined.
|
||||
|
||||
|
|
|
@ -194,4 +194,9 @@ username.desc:
|
|||
username.label:
|
||||
"""Username"""
|
||||
|
||||
config_connector.desc:
|
||||
"""Configurations for an MQTT connector."""
|
||||
config_connector.label:
|
||||
"""MQTT connector"""
|
||||
|
||||
}
|
||||
|
|
|
@ -0,0 +1,22 @@
|
|||
emqx_bridge_mqtt_pubsub_schema {
|
||||
action_parameters.desc:
|
||||
"""Action specific configs."""
|
||||
action_parameters.label:
|
||||
"""Action"""
|
||||
|
||||
ingress_parameters.desc:
|
||||
"""Source specific configs."""
|
||||
ingress_parameters.label:
|
||||
"""Source"""
|
||||
|
||||
mqtt_publisher_action.desc:
|
||||
"""Action configs."""
|
||||
mqtt_publisher_action.label:
|
||||
"""Action"""
|
||||
|
||||
mqtt_subscriber_source.desc:
|
||||
"""Source configs."""
|
||||
mqtt_subscriber_source.label:
|
||||
"""Source"""
|
||||
|
||||
}
|
|
@ -1,10 +1,16 @@
|
|||
emqx_bridge_v2_schema {
|
||||
|
||||
desc_bridges_v2.desc:
|
||||
"""Configuration for bridges."""
|
||||
"""Configuration for actions."""
|
||||
|
||||
desc_bridges_v2.label:
|
||||
"""Bridge Configuration"""
|
||||
"""Action Configuration"""
|
||||
|
||||
desc_sources.desc:
|
||||
"""Configuration for sources."""
|
||||
|
||||
desc_sources.label:
|
||||
"""Source Configuration"""
|
||||
|
||||
mqtt_topic.desc:
|
||||
"""MQTT topic or topic filter as data source (action input). If rule action is used as data source, this config should be left empty, otherwise messages will be duplicated in the remote system."""
|
||||
|
|
Loading…
Reference in New Issue