Localize statistics datatable string (#19289)

This commit is contained in:
karwosts 2024-01-06 20:19:44 -08:00 committed by GitHub
parent 8960f5fef9
commit 90965a4f4d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 2 deletions

View File

@ -177,7 +177,9 @@ class HaPanelDevStatistics extends SubscribeMixin(LitElement) {
.hass=${this.hass}
.columns=${this._columns(this.hass.localize)}
.data=${this._displayData(this._data, this.hass.localize)}
noDataText="No statistics"
.noDataText=${this.hass.localize(
"ui.panel.developer-tools.tabs.statistics.data_table.no_statistics"
)}
id="statistic_id"
clickable
@row-click=${this._rowClicked}

View File

@ -6190,7 +6190,8 @@
"statistic_id": "Statistic id",
"statistics_unit": "Statistics unit",
"source": "Source",
"issue": "Issue"
"issue": "Issue",
"no_statistics": "[%key:ui::components::statistics_charts::no_statistics_found%]"
}
},
"yaml": {