Localize the statistics search label (#17223)

* Localize the statistics search label

* switch to common search
This commit is contained in:
karwosts 2023-07-09 15:39:51 -07:00 committed by GitHub
parent fdf5abd0f9
commit 0974d86bfd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 4 additions and 3 deletions

View File

@ -33,7 +33,7 @@ class SearchInput extends LitElement {
return html`
<ha-textfield
.autofocus=${this.autofocus}
.label=${this.label || "Search"}
.label=${this.label || this.hass.localize("ui.common.search")}
.value=${this.filter || ""}
icon
.iconTrailing=${this.filter || this.suffix}

View File

@ -166,8 +166,7 @@ export class HaTabsSubpageDataTable extends LitElement {
.filter=${this.filter}
.suffix=${!this.narrow}
@value-changed=${this._handleSearchChange}
.label=${this.searchLabel ||
this.hass.localize("ui.components.data-table.search")}
.label=${this.searchLabel}
>
${!this.narrow
? html`<div

View File

@ -162,6 +162,7 @@ class HaPanelDevStatistics extends SubscribeMixin(LitElement) {
protected render() {
return html`
<ha-data-table
.hass=${this.hass}
.columns=${this._columns(this.hass.localize)}
.data=${this._displayData(this._data)}
noDataText="No statistics"

View File

@ -280,6 +280,7 @@
"edit": "Edit",
"submit": "Submit",
"rename": "Rename",
"search": "[%key:ui::components::data-table::search%]",
"ok": "OK",
"yes": "Yes",
"no": "No",