mirror of
https://github.com/home-assistant/frontend.git
synced 2025-11-15 22:10:20 +00:00
Make missed strings translatable in ha-script-trace and ha-automation-trace (#23013)
This commit is contained in:
committed by
GitHub
parent
f9701b2363
commit
81cc73ece3
@@ -230,10 +230,30 @@ export class HaScriptTrace extends LitElement {
|
||||
<div class="info">
|
||||
<div class="tabs top">
|
||||
${[
|
||||
["details", "Step Details"],
|
||||
["timeline", "Trace Timeline"],
|
||||
["logbook", "Related logbook entries"],
|
||||
["config", "Script Config"],
|
||||
[
|
||||
"details",
|
||||
this.hass.localize(
|
||||
"ui.panel.config.automation.trace.tabs.details"
|
||||
),
|
||||
],
|
||||
[
|
||||
"timeline",
|
||||
this.hass.localize(
|
||||
"ui.panel.config.automation.trace.tabs.timeline"
|
||||
),
|
||||
],
|
||||
[
|
||||
"logbook",
|
||||
this.hass.localize(
|
||||
"ui.panel.config.automation.trace.tabs.logbook"
|
||||
),
|
||||
],
|
||||
[
|
||||
"config",
|
||||
this.hass.localize(
|
||||
"ui.panel.config.automation.trace.tabs.script_config"
|
||||
),
|
||||
],
|
||||
].map(
|
||||
([view, label]) => html`
|
||||
<button
|
||||
@@ -410,7 +430,9 @@ export class HaScriptTrace 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"
|
||||
),
|
||||
});
|
||||
}
|
||||
|
||||
@@ -457,7 +479,11 @@ export class HaScriptTrace 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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user