mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-25 18:26:35 +00:00
Add miscellaneous UI elements for translation (#16797)
This commit is contained in:
parent
e7c2625cf1
commit
19fc92419a
@ -224,8 +224,12 @@ export class HaConfigDeviceDashboard extends LitElement {
|
|||||||
this.hass,
|
this.hass,
|
||||||
deviceEntityLookup[device.id]
|
deviceEntityLookup[device.id]
|
||||||
),
|
),
|
||||||
model: device.model || "<unknown>",
|
model:
|
||||||
manufacturer: device.manufacturer || "<unknown>",
|
device.model ||
|
||||||
|
`<${localize("ui.panel.config.devices.data_table.unknown")}>`,
|
||||||
|
manufacturer:
|
||||||
|
device.manufacturer ||
|
||||||
|
`<${localize("ui.panel.config.devices.data_table.unknown")}>`,
|
||||||
area:
|
area:
|
||||||
device.area_id && areaLookup[device.area_id]
|
device.area_id && areaLookup[device.area_id]
|
||||||
? areaLookup[device.area_id].name
|
? areaLookup[device.area_id].name
|
||||||
|
@ -71,33 +71,43 @@ class HaPanelDevStatistics extends SubscribeMixin(LitElement) {
|
|||||||
private _columns = memoizeOne(
|
private _columns = memoizeOne(
|
||||||
(localize): DataTableColumnContainer => ({
|
(localize): DataTableColumnContainer => ({
|
||||||
displayName: {
|
displayName: {
|
||||||
title: "Name",
|
title: localize(
|
||||||
|
"ui.panel.developer-tools.tabs.statistics.data_table.name"
|
||||||
|
),
|
||||||
sortable: true,
|
sortable: true,
|
||||||
filterable: true,
|
filterable: true,
|
||||||
grows: true,
|
grows: true,
|
||||||
},
|
},
|
||||||
statistic_id: {
|
statistic_id: {
|
||||||
title: "Statistic id",
|
title: localize(
|
||||||
|
"ui.panel.developer-tools.tabs.statistics.data_table.statistic_id"
|
||||||
|
),
|
||||||
sortable: true,
|
sortable: true,
|
||||||
filterable: true,
|
filterable: true,
|
||||||
hidden: this.narrow,
|
hidden: this.narrow,
|
||||||
width: "20%",
|
width: "20%",
|
||||||
},
|
},
|
||||||
statistics_unit_of_measurement: {
|
statistics_unit_of_measurement: {
|
||||||
title: "Statistics unit",
|
title: localize(
|
||||||
|
"ui.panel.developer-tools.tabs.statistics.data_table.statistics_unit"
|
||||||
|
),
|
||||||
sortable: true,
|
sortable: true,
|
||||||
filterable: true,
|
filterable: true,
|
||||||
width: "10%",
|
width: "10%",
|
||||||
forceLTR: true,
|
forceLTR: true,
|
||||||
},
|
},
|
||||||
source: {
|
source: {
|
||||||
title: "Source",
|
title: localize(
|
||||||
|
"ui.panel.developer-tools.tabs.statistics.data_table.source"
|
||||||
|
),
|
||||||
sortable: true,
|
sortable: true,
|
||||||
filterable: true,
|
filterable: true,
|
||||||
width: "10%",
|
width: "10%",
|
||||||
},
|
},
|
||||||
issues: {
|
issues: {
|
||||||
title: "Issue",
|
title: localize(
|
||||||
|
"ui.panel.developer-tools.tabs.statistics.data_table.issue"
|
||||||
|
),
|
||||||
sortable: true,
|
sortable: true,
|
||||||
filterable: true,
|
filterable: true,
|
||||||
direction: "asc",
|
direction: "asc",
|
||||||
|
@ -802,7 +802,7 @@ class HUIRoot extends LitElement {
|
|||||||
}
|
}
|
||||||
if (this._yamlMode) {
|
if (this._yamlMode) {
|
||||||
showAlertDialog(this, {
|
showAlertDialog(this, {
|
||||||
text: "The edit UI is not available when in YAML mode.",
|
text: this.hass!.localize("ui.panel.lovelace.editor.yaml_unsupported"),
|
||||||
});
|
});
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -3062,7 +3062,8 @@
|
|||||||
"battery": "Battery",
|
"battery": "Battery",
|
||||||
"disabled_by": "Disabled",
|
"disabled_by": "Disabled",
|
||||||
"no_devices": "No devices",
|
"no_devices": "No devices",
|
||||||
"no_integration": "No integration"
|
"no_integration": "No integration",
|
||||||
|
"unknown": "unknown"
|
||||||
},
|
},
|
||||||
"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?",
|
||||||
@ -4284,6 +4285,7 @@
|
|||||||
},
|
},
|
||||||
"editor": {
|
"editor": {
|
||||||
"header": "Edit UI",
|
"header": "Edit UI",
|
||||||
|
"yaml_unsupported": "The edit UI is not available when in YAML mode.",
|
||||||
"menu": {
|
"menu": {
|
||||||
"open": "Open dashboard menu",
|
"open": "Open dashboard menu",
|
||||||
"raw_editor": "Raw configuration editor",
|
"raw_editor": "Raw configuration editor",
|
||||||
@ -5269,7 +5271,14 @@
|
|||||||
"clear": "Delete all old statistic data for this entity"
|
"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": {
|
"yaml": {
|
||||||
"title": "YAML",
|
"title": "YAML",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user