Fix translations for Z-Wave & Zigbee (#5606)

This commit is contained in:
Paulus Schoutsen 2020-04-23 15:51:56 -07:00 committed by GitHub
parent 1ef2d3c7f2
commit 8420f73919
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 5 additions and 6 deletions

View File

@ -42,7 +42,8 @@ class HaConfigNavigation extends LitElement {
<ha-icon .icon=${page.icon} slot="item-icon"></ha-icon>
<paper-item-body two-line>
${this.hass.localize(
`ui.panel.config.${page.component}.caption`
page.translationKey ||
`ui.panel.config.${page.component}.caption`
)}
${page.component === "cloud" && (page.info as CloudStatus)
? page.info.logged_in

View File

@ -132,13 +132,13 @@ export const configSections: { [name: string]: PageNavigation[] } = {
{
component: "zha",
path: "/config/zha",
translationKey: "ui.panel.config.zha.caption",
translationKey: "component.zha.title",
icon: "hass:zigbee",
},
{
component: "zwave",
path: "/config/zwave",
translationKey: "ui.panel.config.zwave.caption",
translationKey: "component.zwave.title",
icon: "hass:z-wave",
},
],

View File

@ -113,7 +113,7 @@ class ZHAConfigDashboard extends LitElement {
protected render(): TemplateResult {
return html`
<hass-subpage .header=${this.hass.localize("ui.panel.config.zha.title")}>
<hass-subpage .header=${this.hass.localize("component.zha.title")}>
<ha-config-section .narrow=${this.narrow} .isWide=${this.isWide}>
<div slot="header">
${this.hass.localize("ui.panel.config.zha.header")}

View File

@ -1431,8 +1431,6 @@
}
},
"zha": {
"caption": "ZHA",
"title": "Zigbee Home Automation",
"header": "Configure Zigbee Home Automation",
"introduction": "Here it is possible to configure the ZHA component. Not everything is possible to configure from the UI yet, but we're working on it.",
"description": "Zigbee Home Automation network management",