1
0
mirror of https://github.com/home-assistant/frontend.git synced 2025-12-20 18:58:57 +00:00

Use new localize format (#18574)

Co-authored-by: Bram Kragten <mail@bramkragten.nl>
This commit is contained in:
Kendell R
2023-11-28 04:29:41 -08:00
committed by GitHub
parent 2087028c47
commit f4ee734ea3
105 changed files with 596 additions and 791 deletions

View File

@@ -483,8 +483,7 @@ export class HaScriptEditor extends KeyboardShortcutMixin(LitElement) {
)
: this.hass.localize(
"ui.panel.config.script.editor.load_error_unknown",
"err_no",
resp.status_code || resp.code
{ err_no: resp.status_code || resp.code }
)
);
history.back();
@@ -628,11 +627,9 @@ export class HaScriptEditor extends KeyboardShortcutMixin(LitElement) {
ev.stopPropagation();
await triggerScript(this.hass, this.scriptId!);
showToast(this, {
message: this.hass.localize(
"ui.notification_toast.triggered",
"name",
this._config!.alias
),
message: this.hass.localize("ui.notification_toast.triggered", {
name: this._config!.alias,
}),
});
}