Skip to content

Commit

Permalink
Localize statistics datatable string (#19289)
Browse files Browse the repository at this point in the history
  • Loading branch information
karwosts authored Jan 7, 2024
1 parent 8960f5f commit 90965a4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down
3 changes: 2 additions & 1 deletion src/translations/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down

0 comments on commit 90965a4

Please sign in to comment.