mirror of
https://github.com/home-assistant/core.git
synced 2026-10-06 14:29:21 -04:00
issue_schema: Add optional short_title translations (#183883)
This commit is contained in:
@@ -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%]"
|
||||
}
|
||||
},
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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",
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user