Improve documentation of translation of collapsible groups in service actions (#2284)

This commit is contained in:
Erik Montnemery 2024-08-25 18:33:48 +02:00 committed by GitHub
parent 615fc11729
commit 613d1190f3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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.
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
{
@ -151,6 +155,11 @@ and the `name` and `description` of each action's `fields`.
"name": "Speed",
"description": "The speed to set."
}
},
"sections": {
"advanced_fields": {
"name": "Advanced options"
}
}
}
}