Migrate select services to support translations (#96411)

Co-authored-by: c0ffeeca7 <38767475+c0ffeeca7@users.noreply.github.com>
This commit is contained in:
Franck Nijhof 2023-07-12 18:55:22 +02:00 committed by GitHub
parent c67a1a326f
commit 7021daf9fb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 40 additions and 16 deletions

View File

@ -1,56 +1,40 @@
select_first:
name: First
description: Select the first option of an select entity.
target:
entity:
domain: select
select_last:
name: Last
description: Select the last option of an select entity.
target:
entity:
domain: select
select_next:
name: Next
description: Select the next options of an select entity.
target:
entity:
domain: select
fields:
cycle:
name: Cycle
description: If the option should cycle from the last to the first.
default: true
selector:
boolean:
select_option:
name: Select
description: Select an option of an select entity.
target:
entity:
domain: select
fields:
option:
name: Option
description: Option to be selected.
required: true
example: '"Item A"'
selector:
text:
select_previous:
name: Previous
description: Select the previous options of an select entity.
target:
entity:
domain: select
fields:
cycle:
name: Cycle
description: If the option should cycle from the first to the last.
default: true
selector:
boolean:

View File

@ -24,5 +24,45 @@
}
}
}
},
"services": {
"select_first": {
"name": "First",
"description": "Selects the first option."
},
"select_last": {
"name": "Last",
"description": "Selects the last option."
},
"select_next": {
"name": "Next",
"description": "Selects the next option.",
"fields": {
"cycle": {
"name": "Cycle",
"description": "If the option should cycle from the last to the first."
}
}
},
"select_option": {
"name": "Select",
"description": "Selects an option.",
"fields": {
"option": {
"name": "Option",
"description": "Option to be selected."
}
}
},
"select_previous": {
"name": "Previous",
"description": "Selects the previous option.",
"fields": {
"cycle": {
"name": "Cycle",
"description": "If the option should cycle from the first to the last."
}
}
}
}
}