diff --git a/src/dialogs/device-registry-detail/dialog-device-registry-detail.ts b/src/dialogs/device-registry-detail/dialog-device-registry-detail.ts index 64039847c4..fc51180de8 100644 --- a/src/dialogs/device-registry-detail/dialog-device-registry-detail.ts +++ b/src/dialogs/device-registry-detail/dialog-device-registry-detail.ts @@ -74,7 +74,10 @@ class DialogDeviceRegistryDetail extends LitElement { opened @opened-changed="${this._openedChanged}" > -

${device.name || "Unnamed device"}

+

+ ${device.name || + this.hass.localize("ui.panel.config.devices.unnamed_device")} +

${this._error ? html` @@ -90,7 +93,12 @@ class DialogDeviceRegistryDetail extends LitElement { .disabled=${this._submitting} >
- + -

Toggle Domains

+

+ ${this.hass.localize("ui.dialogs.domain_toggler.title")} +

${domains.map( (domain) => diff --git a/src/panels/lovelace/editor/unused-entities/hui-unused-entities.ts b/src/panels/lovelace/editor/unused-entities/hui-unused-entities.ts index 10e4b21293..72cc7593e7 100644 --- a/src/panels/lovelace/editor/unused-entities/hui-unused-entities.ts +++ b/src/panels/lovelace/editor/unused-entities/hui-unused-entities.ts @@ -57,7 +57,7 @@ export class HuiUnusedEntities extends LitElement { private _columns = memoizeOne((narrow: boolean) => { const columns: DataTableColumnContainer = { entity: { - title: "Entity", + title: this.hass!.localize("ui.panel.lovelace.unused_entities.entity"), sortable: true, filterable: true, filterKey: "friendly_name", @@ -79,17 +79,19 @@ export class HuiUnusedEntities extends LitElement { } columns.entity_id = { - title: "Entity id", + title: this.hass!.localize("ui.panel.lovelace.unused_entities.entity_id"), sortable: true, filterable: true, }; columns.domain = { - title: "Domain", + title: this.hass!.localize("ui.panel.lovelace.unused_entities.domain"), sortable: true, filterable: true, }; columns.last_changed = { - title: "Last Changed", + title: this.hass!.localize( + "ui.panel.lovelace.unused_entities.last_changed" + ), type: "numeric", sortable: true, template: (lastChanged: string) => html` @@ -121,14 +123,20 @@ export class HuiUnusedEntities extends LitElement { } return html` - +
- These are the entities that you have available, but are not in your - Lovelace UI yet. + ${this.hass.localize( + "ui.panel.lovelace.unused_entities.available_entities" + )} ${this.lovelace.mode === "storage" ? html` -
Select the entities you want to add to a card and then - click the add card button. +
${this.hass.localize( + "ui.panel.lovelace.unused_entities.select_to_add" + )} ` : ""}
diff --git a/src/panels/lovelace/hui-root.ts b/src/panels/lovelace/hui-root.ts index 629de76eb8..1f71706f7d 100644 --- a/src/panels/lovelace/hui-root.ts +++ b/src/panels/lovelace/hui-root.ts @@ -142,12 +142,12 @@ class HUIRoot extends LitElement { : html` ${this.hass!.localize( - "ui.panel.lovelace.menu.unused_entities" + "ui.panel.lovelace.unused_entities.title" )} `} @@ -203,12 +203,12 @@ class HUIRoot extends LitElement { ${this.hass!.localize( - "ui.panel.lovelace.menu.unused_entities" + "ui.panel.lovelace.unused_entities.title" )} ` diff --git a/src/translations/en.json b/src/translations/en.json index a4d67a2193..4010000729 100755 --- a/src/translations/en.json +++ b/src/translations/en.json @@ -618,6 +618,9 @@ "area_picker_label": "Area", "update_name_button": "Update Name" } + }, + "domain_toggler": { + "title": "Toggle Domains" } }, "duration": { @@ -1141,6 +1144,9 @@ "devices": { "caption": "Devices", "description": "Manage connected devices", + "unnamed_device": "Unnamed device", + "unknown_error": "Unknown error", + "area_picker_label": "Area", "automation": { "triggers": { "caption": "Do something when..." @@ -1408,13 +1414,21 @@ "more_info": "Show more-info: {name}" } }, + "unused_entities": { + "title": "Unused entities", + "available_entities": "These are the entities that you have available, but are not in your Lovelace UI yet.", + "select_to_add": "Select the entities you want to add to a card and then click the add card button.", + "entity": "Entity", + "entity_id": "Entity ID", + "domain": "Domain", + "last_changed": "Last Changed" + }, "views": { "confirm_delete": "Are you sure you want to delete this view?", "existing_cards": "You can't delete a view that has cards in it. Remove the cards first." }, "menu": { "configure_ui": "Configure UI", - "unused_entities": "Unused entities", "help": "Help", "refresh": "Refresh", "close": "Close"