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

@@ -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>`
: ""}