Skip to content

Commit

Permalink
Mod translations
Browse files Browse the repository at this point in the history
  • Loading branch information
gjohansson-ST committed Nov 3, 2024
1 parent c6c052b commit 39d2b7d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 16 deletions.
22 changes: 6 additions & 16 deletions src/dialogs/more-info/controls/more-info-climate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -201,10 +201,7 @@ class MoreInfoClimate extends LitElement {
${supportPresetMode && stateObj.attributes.preset_modes
? html`
<ha-control-select-menu
.label=${this.hass.formatEntityAttributeName(
stateObj,
"preset_mode"
)}
.label=${this.hass.localize("ui.card.climate.preset")}
.value=${stateObj.attributes.preset_mode}
.disabled=${this.stateObj.state === UNAVAILABLE}
fixedMenuPosition
Expand Down Expand Up @@ -252,10 +249,7 @@ class MoreInfoClimate extends LitElement {
${supportFanMode && stateObj.attributes.fan_modes
? html`
<ha-control-select-menu
.label=${this.hass.formatEntityAttributeName(
stateObj,
"fan_mode"
)}
.label=${this.hass.localize("ui.card.climate.fan")}
.value=${stateObj.attributes.fan_mode}
.disabled=${this.stateObj.state === UNAVAILABLE}
fixedMenuPosition
Expand Down Expand Up @@ -300,10 +294,9 @@ class MoreInfoClimate extends LitElement {
${supportSwingMode && stateObj.attributes.swing_modes
? html`
<ha-control-select-menu
.label=${this.hass.formatEntityAttributeName(
stateObj,
"swing_mode"
)}
.label=${supportSwingHorizontalMode
? this.hass.localize("ui.card.climate.vertical_swing")
: this.hass.localize("ui.card.climate.swing")}
.value=${stateObj.attributes.swing_mode}
.disabled=${this.stateObj.state === UNAVAILABLE}
fixedMenuPosition
Expand Down Expand Up @@ -352,10 +345,7 @@ class MoreInfoClimate extends LitElement {
stateObj.attributes.swing_horizontal_modes
? html`
<ha-control-select-menu
.label=${this.hass.formatEntityAttributeName(
stateObj,
"swing_horizontal_mode"
)}
.label=${this.hass.localize("ui.card.climate.horizontal_swing")}
.value=${stateObj.attributes.swing_horizontal_mode}
.disabled=${this.stateObj.state === UNAVAILABLE}
fixedMenuPosition
Expand Down
4 changes: 4 additions & 0 deletions src/translations/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,10 @@
"high": "high",
"low": "low",
"mode": "Mode",
"fan": "Fan",
"swing": "Swing",
"vertical_swing": "Vertical swing",
"horizontal_swing": "Horizontal swing",
"preset": "Preset",
"target_label": "{action} to target",
"target": "Target",
Expand Down

0 comments on commit 39d2b7d

Please sign in to comment.