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` return html`
<ha-textfield <ha-textfield
.autofocus=${this.autofocus} .autofocus=${this.autofocus}
.label=${this.label || "Search"} .label=${this.label || this.hass.localize("ui.common.search")}
.value=${this.filter || ""} .value=${this.filter || ""}
icon icon
.iconTrailing=${this.filter || this.suffix} .iconTrailing=${this.filter || this.suffix}

View File

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

View File

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

View File

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