mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-27 19:26:36 +00:00
Add missing translations to statistics fixing (#10159)
This commit is contained in:
parent
ea3fae2ce4
commit
a696d849b2
@ -81,14 +81,16 @@ class HaPanelDevStatistics extends LitElement {
|
||||
issue.data
|
||||
) || issue.type
|
||||
)
|
||||
: "No issues"}`,
|
||||
: localize("ui.panel.developer-tools.tabs.statistics.no_issue")}`,
|
||||
},
|
||||
fix: {
|
||||
title: "",
|
||||
template: (_, data: any) =>
|
||||
html`${data.issues
|
||||
? html`<mwc-button @click=${this._fixIssue} .data=${data.issues}>
|
||||
Fix issue
|
||||
${localize(
|
||||
"ui.panel.developer-tools.tabs.statistics.fix_issue.fix"
|
||||
)}
|
||||
</mwc-button>`
|
||||
: ""}`,
|
||||
width: "113px",
|
||||
|
@ -82,7 +82,7 @@ export class DialogStatisticsFixUnitsChanged extends LitElement {
|
||||
|
||||
<mwc-button slot="primaryAction" @click=${this._fixIssue}>
|
||||
${this.hass.localize(
|
||||
"ui.panel.developer-tools.tabs.statistics.fix_issue.units_changed.fix"
|
||||
"ui.panel.developer-tools.tabs.statistics.fix_issue.fix"
|
||||
)}
|
||||
</mwc-button>
|
||||
<mwc-button slot="secondaryAction" @click=${this.closeDialog}>
|
||||
|
@ -3730,6 +3730,7 @@
|
||||
"title": "Statistics",
|
||||
"entity": "Entity",
|
||||
"issue": "Issue",
|
||||
"no_issue": "No issue",
|
||||
"issues": {
|
||||
"units_changed": "The unit of this entity changed from ''{metadata_unit}'' to ''{state_unit}''.",
|
||||
"unsupported_unit_state": "The unit (''{state_unit}'') of this entity doesn't match a unit of device class ''{device_class}''.",
|
||||
@ -3738,11 +3739,11 @@
|
||||
"entity_not_recorded": "This entity is excluded from being recorded."
|
||||
},
|
||||
"fix_issue": {
|
||||
"fix": "Fix issue",
|
||||
"units_changed": {
|
||||
"title": "The unit of this entity changed",
|
||||
"update": "Update the historic statistic values from ''{metadata_unit}'' to ''{state_unit}''",
|
||||
"clear": "Delete all old statistic data for this entity",
|
||||
"fix": "Fix issue"
|
||||
"clear": "Delete all old statistic data for this entity"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user