Improve derivative translation strings (#69245)

This commit is contained in:
Erik Montnemery 2022-04-04 14:14:26 +02:00 committed by GitHub
parent 9c1f37aa95
commit c058478edb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 11 additions and 8 deletions

View File

@ -1,8 +1,9 @@
{ {
"title": "Derivative sensor",
"config": { "config": {
"step": { "step": {
"user": { "user": {
"title": "New Derivative sensor", "title": "Add Derivative sensor",
"description": "Create a sensor that estimates the derivative of a sensor.", "description": "Create a sensor that estimates the derivative of a sensor.",
"data": { "data": {
"name": "Name", "name": "Name",
@ -15,14 +16,14 @@
"data_description": { "data_description": {
"round": "Controls the number of decimal digits in the output.", "round": "Controls the number of decimal digits in the output.",
"time_window": "If set, the sensor's value is a time weighted moving average of derivatives within this window.", "time_window": "If set, the sensor's value is a time weighted moving average of derivatives within this window.",
"unit_prefix": "The derivative will be scaled according to the selected metric prefix and time unit of the derivative." "unit_prefix": "The output will be scaled according to the selected metric prefix and time unit of the derivative."
} }
} }
} }
}, },
"options": { "options": {
"step": { "step": {
"options": { "init": {
"data": { "data": {
"name": "[%key:component::derivative::config::step::user::data::name%]", "name": "[%key:component::derivative::config::step::user::data::name%]",
"round": "[%key:component::derivative::config::step::user::data::round%]", "round": "[%key:component::derivative::config::step::user::data::round%]",

View File

@ -13,15 +13,16 @@
"data_description": { "data_description": {
"round": "Controls the number of decimal digits in the output.", "round": "Controls the number of decimal digits in the output.",
"time_window": "If set, the sensor's value is a time weighted moving average of derivatives within this window.", "time_window": "If set, the sensor's value is a time weighted moving average of derivatives within this window.",
"unit_prefix": "The derivative will be scaled according to the selected metric prefix and time unit of the derivative." "unit_prefix": "The output will be scaled according to the selected metric prefix and time unit of the derivative."
}, },
"title": "New Derivative sensor" "description": "Create a sensor that estimates the derivative of a sensor.",
"title": "Add Derivative sensor"
} }
} }
}, },
"options": { "options": {
"step": { "step": {
"options": { "init": {
"data": { "data": {
"name": "Name", "name": "Name",
"round": "Precision", "round": "Precision",
@ -33,9 +34,10 @@
"data_description": { "data_description": {
"round": "Controls the number of decimal digits in the output.", "round": "Controls the number of decimal digits in the output.",
"time_window": "If set, the sensor's value is a time weighted moving average of derivatives within this window.", "time_window": "If set, the sensor's value is a time weighted moving average of derivatives within this window.",
"unit_prefix": "The derivative will be scaled according to the selected metric prefix and time unit of the derivative.." "unit_prefix": "The output will be scaled according to the selected metric prefix and time unit of the derivative.."
}
} }
} }
} }
},
"title": "Derivative sensor"
} }