mirror of
https://github.com/home-assistant/developers.home-assistant.git
synced 2025-07-15 13:26:28 +00:00
Improve documentation of translation of collapsible groups in service actions (#2284)
This commit is contained in:
parent
615fc11729
commit
613d1190f3
@ -128,7 +128,11 @@ The translation for selectors are defined under the `selector` key. It supports
|
|||||||
The translations of service actions strings are defined under the `services` key.
|
The translations of service actions strings are defined under the `services` key.
|
||||||
|
|
||||||
It supports translating the `name` and `description` of each action,
|
It supports translating the `name` and `description` of each action,
|
||||||
and the `name` and `description` of each action's `fields`.
|
`name` and `description` of each action's `fields`, and the `name` of
|
||||||
|
each collapsible section of fields.
|
||||||
|
|
||||||
|
Note that also the translations for `name` and `description` of fields which
|
||||||
|
are displayed in a collapsible section should be under the `fields` key.
|
||||||
|
|
||||||
```json
|
```json
|
||||||
{
|
{
|
||||||
@ -151,6 +155,11 @@ and the `name` and `description` of each action's `fields`.
|
|||||||
"name": "Speed",
|
"name": "Speed",
|
||||||
"description": "The speed to set."
|
"description": "The speed to set."
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
"sections": {
|
||||||
|
"advanced_fields": {
|
||||||
|
"name": "Advanced options"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user