mirror of
https://github.com/home-assistant/frontend.git
synced 2025-11-12 04:20:28 +00:00
Use new localize format (#18574)
Co-authored-by: Bram Kragten <mail@bramkragten.nl>
This commit is contained in:
@@ -53,12 +53,11 @@ class HuiScriptEntityRow extends LitElement implements LovelaceRow {
|
||||
${stateObj.state === "on"
|
||||
? html`<mwc-button @click=${this._cancelScript}>
|
||||
${stateObj.attributes.mode !== "single" &&
|
||||
(stateObj.attributes.current || 0) > 0
|
||||
? this.hass.localize(
|
||||
"ui.card.script.cancel_multiple",
|
||||
"number",
|
||||
stateObj.attributes.current
|
||||
)
|
||||
stateObj.attributes.current &&
|
||||
stateObj.attributes.current > 0
|
||||
? this.hass.localize("ui.card.script.cancel_multiple", {
|
||||
number: stateObj.attributes.current,
|
||||
})
|
||||
: this.hass.localize("ui.card.script.cancel")}
|
||||
</mwc-button>`
|
||||
: ""}
|
||||
|
||||
Reference in New Issue
Block a user