mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-24 17:56:46 +00:00
Add translations for 'No area' strings (#6000)
This commit is contained in:
parent
af23110074
commit
bfb11790a2
@ -52,7 +52,7 @@ const rowRenderer = (root: HTMLElement, _owner, model: { item: Device }) => {
|
|||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
<paper-item>
|
<paper-item>
|
||||||
<paper-item-body two-line="">
|
<paper-item-body two-line="">
|
||||||
<div class='name'>[[item.name]]</div>
|
<div class='name'>[[item.name]]</div>
|
||||||
<div secondary>[[item.area]]</div>
|
<div secondary>[[item.area]]</div>
|
||||||
</paper-item-body>
|
</paper-item-body>
|
||||||
@ -188,7 +188,9 @@ export class HaDevicePicker extends SubscribeMixin(LitElement) {
|
|||||||
this.hass,
|
this.hass,
|
||||||
deviceEntityLookup[device.id]
|
deviceEntityLookup[device.id]
|
||||||
),
|
),
|
||||||
area: device.area_id ? areaLookup[device.area_id].name : "No area",
|
area: device.area_id
|
||||||
|
? areaLookup[device.area_id].name
|
||||||
|
: this.hass.localize("ui.components.device-picker.no_area"),
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
if (outputDevices.length === 1) {
|
if (outputDevices.length === 1) {
|
||||||
|
@ -154,7 +154,9 @@ export class HaConfigDeviceDashboard extends LitElement {
|
|||||||
),
|
),
|
||||||
model: device.model || "<unknown>",
|
model: device.model || "<unknown>",
|
||||||
manufacturer: device.manufacturer || "<unknown>",
|
manufacturer: device.manufacturer || "<unknown>",
|
||||||
area: device.area_id ? areaLookup[device.area_id].name : "No area",
|
area: device.area_id
|
||||||
|
? areaLookup[device.area_id].name
|
||||||
|
: this.hass.localize("ui.panel.config.devices.data_table.no_area"),
|
||||||
integration: device.config_entries.length
|
integration: device.config_entries.length
|
||||||
? device.config_entries
|
? device.config_entries
|
||||||
.filter((entId) => entId in entryLookup)
|
.filter((entId) => entId in entryLookup)
|
||||||
|
@ -258,7 +258,8 @@
|
|||||||
"clear": "Clear",
|
"clear": "Clear",
|
||||||
"toggle": "Toggle",
|
"toggle": "Toggle",
|
||||||
"show_devices": "Show devices",
|
"show_devices": "Show devices",
|
||||||
"device": "Device"
|
"device": "Device",
|
||||||
|
"no_area": "No area"
|
||||||
},
|
},
|
||||||
"area-picker": {
|
"area-picker": {
|
||||||
"clear": "Clear",
|
"clear": "Clear",
|
||||||
@ -1244,7 +1245,8 @@
|
|||||||
"area": "Area",
|
"area": "Area",
|
||||||
"integration": "Integration",
|
"integration": "Integration",
|
||||||
"battery": "Battery",
|
"battery": "Battery",
|
||||||
"no_devices": "No devices"
|
"no_devices": "No devices",
|
||||||
|
"no_area": "No area"
|
||||||
},
|
},
|
||||||
"delete": "Delete",
|
"delete": "Delete",
|
||||||
"confirm_delete": "Are you sure you want to delete this device?"
|
"confirm_delete": "Are you sure you want to delete this device?"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user