From 613d1190f31809dfeb828a4d8e787aefcee5e42a Mon Sep 17 00:00:00 2001 From: Erik Montnemery Date: Sun, 25 Aug 2024 18:33:48 +0200 Subject: [PATCH] Improve documentation of translation of collapsible groups in service actions (#2284) --- docs/internationalization/core.md | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/docs/internationalization/core.md b/docs/internationalization/core.md index bb0bae2b..4aa6ae59 100644 --- a/docs/internationalization/core.md +++ b/docs/internationalization/core.md @@ -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" + } } } }