Improve tod translation strings (#69251)

This commit is contained in:
Erik Montnemery 2022-04-04 17:43:25 +02:00 committed by GitHub
parent fa07dd660f
commit 88c76be5ad
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 16 deletions

View file

@ -1,13 +1,12 @@
{ {
"title": "Times of the Day Sensor",
"config": { "config": {
"step": { "step": {
"user": { "user": {
"title": "New Times of the Day Sensor", "title": "Add Times of the Day Sensor",
"description": "Configure when the sensor should turn on and off.", "description": "Create a binary sensor that turns on or off depending on the time.",
"data": { "data": {
"after": "On after",
"after_time": "On time", "after_time": "On time",
"before": "Off after",
"before_time": "Off time", "before_time": "Off time",
"name": "Name" "name": "Name"
} }
@ -17,11 +16,8 @@
"options": { "options": {
"step": { "step": {
"init": { "init": {
"description": "[%key:component::tod::config::step::user::description%]",
"data": { "data": {
"after": "[%key:component::tod::config::step::user::data::after%]",
"after_time": "[%key:component::tod::config::step::user::data::after_time%]", "after_time": "[%key:component::tod::config::step::user::data::after_time%]",
"before": "[%key:component::tod::config::step::user::data::before%]",
"before_time": "[%key:component::tod::config::step::user::data::before_time%]" "before_time": "[%key:component::tod::config::step::user::data::before_time%]"
} }
} }

View file

@ -3,14 +3,12 @@
"step": { "step": {
"user": { "user": {
"data": { "data": {
"after": "On after",
"after_time": "On time", "after_time": "On time",
"before": "Off after",
"before_time": "Off time", "before_time": "Off time",
"name": "Name" "name": "Name"
}, },
"description": "Configure when the sensor should turn on and off.", "description": "Create a binary sensor that turns on or off depending on the time.",
"title": "New Times of the Day Sensor" "title": "Add Times of the Day Sensor"
} }
} }
}, },
@ -18,13 +16,11 @@
"step": { "step": {
"init": { "init": {
"data": { "data": {
"after": "On after",
"after_time": "On time", "after_time": "On time",
"before": "Off after",
"before_time": "Off time" "before_time": "Off time"
}
}
}
}, },
"description": "Configure when the sensor should turn on and off." "title": "Times of the Day Sensor"
}
}
}
} }