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

View File

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

View File

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

View File

@ -1431,8 +1431,6 @@
} }
}, },
"zha": { "zha": {
"caption": "ZHA",
"title": "Zigbee Home Automation",
"header": "Configure 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.", "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", "description": "Zigbee Home Automation network management",