diff --git a/src/panels/config/devices/ha-config-devices-dashboard.ts b/src/panels/config/devices/ha-config-devices-dashboard.ts index 0a2a027e30..f6f88f3246 100644 --- a/src/panels/config/devices/ha-config-devices-dashboard.ts +++ b/src/panels/config/devices/ha-config-devices-dashboard.ts @@ -224,8 +224,12 @@ export class HaConfigDeviceDashboard extends LitElement { this.hass, deviceEntityLookup[device.id] ), - model: device.model || "", - manufacturer: device.manufacturer || "", + model: + device.model || + `<${localize("ui.panel.config.devices.data_table.unknown")}>`, + manufacturer: + device.manufacturer || + `<${localize("ui.panel.config.devices.data_table.unknown")}>`, area: device.area_id && areaLookup[device.area_id] ? areaLookup[device.area_id].name diff --git a/src/panels/developer-tools/statistics/developer-tools-statistics.ts b/src/panels/developer-tools/statistics/developer-tools-statistics.ts index 6f0d7510f7..6fb023fbb6 100644 --- a/src/panels/developer-tools/statistics/developer-tools-statistics.ts +++ b/src/panels/developer-tools/statistics/developer-tools-statistics.ts @@ -71,33 +71,43 @@ class HaPanelDevStatistics extends SubscribeMixin(LitElement) { private _columns = memoizeOne( (localize): DataTableColumnContainer => ({ displayName: { - title: "Name", + title: localize( + "ui.panel.developer-tools.tabs.statistics.data_table.name" + ), sortable: true, filterable: true, grows: true, }, statistic_id: { - title: "Statistic id", + title: localize( + "ui.panel.developer-tools.tabs.statistics.data_table.statistic_id" + ), sortable: true, filterable: true, hidden: this.narrow, width: "20%", }, statistics_unit_of_measurement: { - title: "Statistics unit", + title: localize( + "ui.panel.developer-tools.tabs.statistics.data_table.statistics_unit" + ), sortable: true, filterable: true, width: "10%", forceLTR: true, }, source: { - title: "Source", + title: localize( + "ui.panel.developer-tools.tabs.statistics.data_table.source" + ), sortable: true, filterable: true, width: "10%", }, issues: { - title: "Issue", + title: localize( + "ui.panel.developer-tools.tabs.statistics.data_table.issue" + ), sortable: true, filterable: true, direction: "asc", diff --git a/src/panels/lovelace/hui-root.ts b/src/panels/lovelace/hui-root.ts index 3017c1ad3d..0447b6f646 100644 --- a/src/panels/lovelace/hui-root.ts +++ b/src/panels/lovelace/hui-root.ts @@ -802,7 +802,7 @@ class HUIRoot extends LitElement { } if (this._yamlMode) { showAlertDialog(this, { - text: "The edit UI is not available when in YAML mode.", + text: this.hass!.localize("ui.panel.lovelace.editor.yaml_unsupported"), }); return; } diff --git a/src/translations/en.json b/src/translations/en.json index 2f11673fe8..f275796d06 100755 --- a/src/translations/en.json +++ b/src/translations/en.json @@ -3062,7 +3062,8 @@ "battery": "Battery", "disabled_by": "Disabled", "no_devices": "No devices", - "no_integration": "No integration" + "no_integration": "No integration", + "unknown": "unknown" }, "delete": "Delete", "confirm_delete": "Are you sure you want to delete this device?", @@ -4284,6 +4285,7 @@ }, "editor": { "header": "Edit UI", + "yaml_unsupported": "The edit UI is not available when in YAML mode.", "menu": { "open": "Open dashboard menu", "raw_editor": "Raw configuration editor", @@ -5269,7 +5271,14 @@ "clear": "Delete all old statistic data for this entity" } }, - "adjust_sum": "Adjust sum" + "adjust_sum": "Adjust sum", + "data_table": { + "name": "Name", + "statistic_id": "Statistic id", + "statistics_unit": "Statistics unit", + "source": "Source", + "issue": "Issue" + } }, "yaml": { "title": "YAML",