diff --git a/src/panels/config/automation/ha-automation-trace.ts b/src/panels/config/automation/ha-automation-trace.ts index eba5464722..b5039f3faf 100644 --- a/src/panels/config/automation/ha-automation-trace.ts +++ b/src/panels/config/automation/ha-automation-trace.ts @@ -424,7 +424,9 @@ export class HaAutomationTrace extends LitElement { } await showAlertDialog(this, { - text: "Chosen trace is no longer available", + text: this.hass!.localize( + "ui.panel.config.automation.trace.trace_no_longer_available" + ), }); } @@ -471,7 +473,11 @@ export class HaAutomationTrace extends LitElement { } private _importTrace() { - const traceText = prompt("Enter downloaded trace"); + const traceText = prompt( + this.hass.localize( + "ui.panel.config.automation.trace.enter_downloaded_trace" + ) + ); if (!traceText) { return; } diff --git a/src/panels/config/script/ha-script-trace.ts b/src/panels/config/script/ha-script-trace.ts index be1ac70464..8ede65d41d 100644 --- a/src/panels/config/script/ha-script-trace.ts +++ b/src/panels/config/script/ha-script-trace.ts @@ -230,10 +230,30 @@ export class HaScriptTrace extends LitElement {