issue_schema: Add optional short_title translations (#183883)

This commit is contained in:
Wendelin
2026-10-05 11:47:34 +00:00
committed by Franck Nijhof
parent ea72f864c0
commit 34dd7ba9d2
3 changed files with 8 additions and 0 deletions
@@ -1,5 +1,6 @@
{
"common": {
"validation_failed_short_title": "Automation failed to set up",
"validation_failed_title": "Automation {name} failed to set up"
},
"entity_component": {
@@ -48,22 +49,27 @@
},
"validation_failed_actions": {
"description": "The automation \"{name}\" (`{entity_id}`) is not active because its actions could not be set up.\n\nError:`{error}`.\n\nTo fix this error, [edit the automation]({edit}) to correct it, then save and reload the automation configuration.",
"short_title": "[%key:component::automation::common::validation_failed_short_title%]",
"title": "[%key:component::automation::common::validation_failed_title%]"
},
"validation_failed_blueprint": {
"description": "The blueprinted automation \"{name}\" (`{entity_id}`) failed to set up.\n\nError:`{error}`.\n\nTo fix this error, [edit the automation]({edit}) to correct it, then save and reload the automation configuration.",
"short_title": "[%key:component::automation::common::validation_failed_short_title%]",
"title": "[%key:component::automation::common::validation_failed_title%]"
},
"validation_failed_conditions": {
"description": "The automation \"{name}\" (`{entity_id}`) is not active because its conditions could not be set up.\n\nError:`{error}`.\n\nTo fix this error, [edit the automation]({edit}) to correct it, then save and reload the automation configuration.",
"short_title": "[%key:component::automation::common::validation_failed_short_title%]",
"title": "[%key:component::automation::common::validation_failed_title%]"
},
"validation_failed_schema": {
"description": "The automation \"{name}\" (`{entity_id}`) is not active because the configuration has errors.\n\nError:`{error}`.\n\nTo fix this error, [edit the automation]({edit}) to correct it, then save and reload the automation configuration.",
"short_title": "[%key:component::automation::common::validation_failed_short_title%]",
"title": "[%key:component::automation::common::validation_failed_title%]"
},
"validation_failed_triggers": {
"description": "The automation \"{name}\" (`{entity_id}`) is not active because its triggers could not be set up.\n\nError:`{error}`.\n\nTo fix this error, [edit the automation]({edit}) to correct it, then save and reload the automation configuration.",
"short_title": "[%key:component::automation::common::validation_failed_short_title%]",
"title": "[%key:component::automation::common::validation_failed_title%]"
}
},
+1
View File
@@ -325,6 +325,7 @@ def gen_issues_schema(frontend_issues: frozenset[str]) -> dict[str, Any]:
probatio.Schema(
{
probatio.Required("title"): translation_value_validator,
probatio.Optional("short_title"): translation_value_validator,
probatio.Exclusive(
"description", "fixable"
): translation_value_validator,
+1
View File
@@ -251,6 +251,7 @@ SAMPLE_STRINGS = {
},
"deprecated_yaml": {
"title": "Deprecated YAML configuration",
"short_title": "Deprecated YAML",
"description": "YAML configuration is deprecated, please use the UI",
},
},