From 07c01b39da1b38d2bad2f2bc10d72b2fe6593853 Mon Sep 17 00:00:00 2001 From: Tom Date: Thu, 5 Dec 2024 11:31:48 +0100 Subject: [PATCH] Align exception-translations with translation requirements (#2487) --- .../rules/exception-translations.md | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/docs/core/integration-quality-scale/rules/exception-translations.md b/docs/core/integration-quality-scale/rules/exception-translations.md index 464a2b18..33be56ec 100644 --- a/docs/core/integration-quality-scale/rules/exception-translations.md +++ b/docs/core/integration-quality-scale/rules/exception-translations.md @@ -44,8 +44,12 @@ async def async_set_schedule(call: ServiceCall) -> ServiceResponse: ```json { "exceptions": { - "end_date_before_start_date": "The end date cannot be before the start date.", - "cannot_connect_to_schedule": "Cannot connect to the schedule." + "end_date_before_start_date": { + "message": "The end date cannot be before the start date." + }, + "cannot_connect_to_schedule": { + "message": "Cannot connect to the schedule." + } } } ```