Skip to content

Commit

Permalink
Revert translation change for device quick bar (#23131)
Browse files Browse the repository at this point in the history
  • Loading branch information
jpbede authored Dec 4, 2024
1 parent 697a99f commit 3c03dfb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 4 additions & 2 deletions src/dialogs/quick-bar/ha-quick-bar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -172,9 +172,11 @@ export class QuickBar extends LitElement {
);

const translationKey =
this._mode === QuickBarMode.Device ? "devices" : "entities";
this._mode === QuickBarMode.Device
? "filter_placeholder_devices"
: "filter_placeholder";
const placeholder = this.hass.localize(
`ui.dialogs.quick-bar.filter_placeholder.${translationKey}`
`ui.dialogs.quick-bar.${translationKey}`
);

const commandMode = this._mode === QuickBarMode.Command;
Expand Down
6 changes: 2 additions & 4 deletions src/translations/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -1195,10 +1195,8 @@
"addon_info": "{addon} Info"
}
},
"filter_placeholder": {
"entities": "Search entities",
"devices": "Search devices"
},
"filter_placeholder": "Search entities",
"filter_placeholder_devices": "Search devices",
"title": "Quick search",
"key_c_hint": "Press 'c' on any page to open the command dialog",
"nothing_found": "Nothing found!"
Expand Down

0 comments on commit 3c03dfb

Please sign in to comment.