1
0
mirror of https://github.com/home-assistant/frontend.git synced 2025-12-24 20:55:49 +00:00

Translate message that script/automation is unavailable (#17066)

This commit is contained in:
Philip Allgaier
2023-06-28 14:38:10 +02:00
committed by GitHub
parent c90c4d88af
commit 32a9b13af0
3 changed files with 8 additions and 2 deletions

View File

@@ -301,7 +301,9 @@ export class HaAutomationEditor extends KeyboardShortcutMixin(LitElement) {
? html`<ha-alert
alert-type="error"
.title=${stateObj?.state === UNAVAILABLE
? "Automation unavailable"
? this.hass.localize(
"ui.panel.config.automation.editor.unavailable"
)
: undefined}
>
${this._errors || this._validationErrors}

View File

@@ -315,7 +315,9 @@ export class HaScriptEditor extends KeyboardShortcutMixin(LitElement) {
<ha-alert
alert-type="error"
.title=${stateObj?.state === UNAVAILABLE
? "Script unavailable"
? this.hass.localize(
"ui.panel.config.script.editor.unavailable"
)
: undefined}
>
${this._errors || this._validationErrors}

View File

@@ -2206,6 +2206,7 @@
"disable": "[%key:ui::common::disable%]",
"disabled": "Automation is disabled",
"read_only": "This automation cannot be edited from the UI, because it is not stored in the automations.yaml file, or doesn't have an ID.",
"unavailable": "Automation is unavailable",
"migrate": "Migrate",
"duplicate": "[%key:ui::common::duplicate%]",
"run": "[%key:ui::panel::config::automation::editor::actions::run%]",
@@ -2790,6 +2791,7 @@
"show_trace": "[%key:ui::panel::config::automation::editor::show_trace%]",
"show_info": "[%key:ui::panel::config::automation::editor::show_info%]",
"read_only": "This script cannot be edited from the UI, because it is not stored in the ''scripts.yaml'' file.",
"unavailable": "Script is unavailable",
"migrate": "Migrate",
"duplicate": "[%key:ui::common::duplicate%]",
"header": "Script: {name}",