mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-13 04:16:34 +00:00
Make missed strings translatable in ha-script-trace
and ha-automation-trace
(#23013)
This commit is contained in:
parent
f9701b2363
commit
81cc73ece3
@ -424,7 +424,9 @@ export class HaAutomationTrace extends LitElement {
|
|||||||
}
|
}
|
||||||
|
|
||||||
await showAlertDialog(this, {
|
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() {
|
private _importTrace() {
|
||||||
const traceText = prompt("Enter downloaded trace");
|
const traceText = prompt(
|
||||||
|
this.hass.localize(
|
||||||
|
"ui.panel.config.automation.trace.enter_downloaded_trace"
|
||||||
|
)
|
||||||
|
);
|
||||||
if (!traceText) {
|
if (!traceText) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -230,10 +230,30 @@ export class HaScriptTrace extends LitElement {
|
|||||||
<div class="info">
|
<div class="info">
|
||||||
<div class="tabs top">
|
<div class="tabs top">
|
||||||
${[
|
${[
|
||||||
["details", "Step Details"],
|
[
|
||||||
["timeline", "Trace Timeline"],
|
"details",
|
||||||
["logbook", "Related logbook entries"],
|
this.hass.localize(
|
||||||
["config", "Script Config"],
|
"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(
|
].map(
|
||||||
([view, label]) => html`
|
([view, label]) => html`
|
||||||
<button
|
<button
|
||||||
@ -410,7 +430,9 @@ export class HaScriptTrace extends LitElement {
|
|||||||
}
|
}
|
||||||
|
|
||||||
await showAlertDialog(this, {
|
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() {
|
private _importTrace() {
|
||||||
const traceText = prompt("Enter downloaded trace");
|
const traceText = prompt(
|
||||||
|
this.hass.localize(
|
||||||
|
"ui.panel.config.automation.trace.enter_downloaded_trace"
|
||||||
|
)
|
||||||
|
);
|
||||||
if (!traceText) {
|
if (!traceText) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -3614,6 +3614,8 @@
|
|||||||
"older_trace": "Older trace",
|
"older_trace": "Older trace",
|
||||||
"newer_trace": "Newer trace",
|
"newer_trace": "Newer trace",
|
||||||
"no_traces_found": "No traces found",
|
"no_traces_found": "No traces found",
|
||||||
|
"trace_no_longer_available": "Chosen trace is no longer available",
|
||||||
|
"enter_downloaded_trace": "Enter downloaded trace",
|
||||||
"tabs": {
|
"tabs": {
|
||||||
"details": "Step Details",
|
"details": "Step Details",
|
||||||
"timeline": "Trace Timeline",
|
"timeline": "Trace Timeline",
|
||||||
@ -3621,7 +3623,8 @@
|
|||||||
"automation_config": "Automation Config",
|
"automation_config": "Automation Config",
|
||||||
"step_config": "Step Config",
|
"step_config": "Step Config",
|
||||||
"changed_variables": "Changed Variables",
|
"changed_variables": "Changed Variables",
|
||||||
"blueprint_config": "Blueprint Config"
|
"blueprint_config": "Blueprint Config",
|
||||||
|
"script_config": "Script Config"
|
||||||
},
|
},
|
||||||
"path": {
|
"path": {
|
||||||
"choose": "Select a step on the left for more information.",
|
"choose": "Select a step on the left for more information.",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user