mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-19 07:16:39 +00:00
Fix bad localize keys (#13245)
Co-authored-by: Bram Kragten <mail@bramkragten.nl>
This commit is contained in:
parent
adfef05110
commit
d332b8ab14
@ -81,10 +81,10 @@ class HassioAddonRepositoryEl extends LitElement {
|
|||||||
? this.supervisor.localize(
|
? this.supervisor.localize(
|
||||||
"common.new_version_available"
|
"common.new_version_available"
|
||||||
)
|
)
|
||||||
: this.supervisor.localize("addon.installed")
|
: this.supervisor.localize("addon.state.installed")
|
||||||
: addon.available
|
: addon.available
|
||||||
? this.supervisor.localize("addon.not_installed")
|
? this.supervisor.localize("addon.state.not_installed")
|
||||||
: this.supervisor.localize("addon.not_available")}
|
: this.supervisor.localize("addon.state.not_available")}
|
||||||
.iconClass=${addon.installed
|
.iconClass=${addon.installed
|
||||||
? addon.update_available
|
? addon.update_available
|
||||||
? "update"
|
? "update"
|
||||||
|
@ -336,7 +336,7 @@ class HassioAddonConfig extends LitElement {
|
|||||||
fireEvent(this, "hass-api-called", eventdata);
|
fireEvent(this, "hass-api-called", eventdata);
|
||||||
} catch (err: any) {
|
} catch (err: any) {
|
||||||
this._error = this.supervisor.localize(
|
this._error = this.supervisor.localize(
|
||||||
"addon.common.update_available",
|
"addon.failed_to_reset",
|
||||||
"error",
|
"error",
|
||||||
extractApiErrorMessage(err)
|
extractApiErrorMessage(err)
|
||||||
);
|
);
|
||||||
|
@ -81,7 +81,7 @@ class HassioAddonDocumentationDashboard extends LitElement {
|
|||||||
);
|
);
|
||||||
} catch (err: any) {
|
} catch (err: any) {
|
||||||
this._error = this.supervisor.localize(
|
this._error = this.supervisor.localize(
|
||||||
"addon.documentation.get_logs",
|
"addon.documentation.get_documentation",
|
||||||
"error",
|
"error",
|
||||||
extractApiErrorMessage(err)
|
extractApiErrorMessage(err)
|
||||||
);
|
);
|
||||||
|
@ -84,20 +84,20 @@ class HaAddonPicker extends LitElement {
|
|||||||
} else {
|
} else {
|
||||||
showAlertDialog(this, {
|
showAlertDialog(this, {
|
||||||
title: this.hass.localize(
|
title: this.hass.localize(
|
||||||
"ui.componencts.addon-picker.error.no_supervisor.title"
|
"ui.components.addon-picker.error.no_supervisor.title"
|
||||||
),
|
),
|
||||||
text: this.hass.localize(
|
text: this.hass.localize(
|
||||||
"ui.componencts.addon-picker.error.no_supervisor.description"
|
"ui.components.addon-picker.error.no_supervisor.description"
|
||||||
),
|
),
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
} catch (err: any) {
|
} catch (err: any) {
|
||||||
showAlertDialog(this, {
|
showAlertDialog(this, {
|
||||||
title: this.hass.localize(
|
title: this.hass.localize(
|
||||||
"ui.componencts.addon-picker.error.fetch_addons.title"
|
"ui.components.addon-picker.error.fetch_addons.title"
|
||||||
),
|
),
|
||||||
text: this.hass.localize(
|
text: this.hass.localize(
|
||||||
"ui.componencts.addon-picker.error.fetch_addons.description"
|
"ui.components.addon-picker.error.fetch_addons.description"
|
||||||
),
|
),
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
@ -51,7 +51,7 @@ class HaBluePrintPicker extends LitElement {
|
|||||||
return html`
|
return html`
|
||||||
<ha-select
|
<ha-select
|
||||||
.label=${this.label ||
|
.label=${this.label ||
|
||||||
this.hass.localize("ui.components.blueprint-picker.label")}
|
this.hass.localize("ui.components.blueprint-picker.select_blueprint")}
|
||||||
fixedMenuPosition
|
fixedMenuPosition
|
||||||
naturalMenuWidth
|
naturalMenuWidth
|
||||||
.value=${this.value}
|
.value=${this.value}
|
||||||
|
@ -23,7 +23,7 @@ export class HaThemePicker extends LitElement {
|
|||||||
return html`
|
return html`
|
||||||
<ha-select
|
<ha-select
|
||||||
.label=${this.label ||
|
.label=${this.label ||
|
||||||
this.hass!.localize("ui.components.theme_picker.theme")}
|
this.hass!.localize("ui.components.theme-picker.theme")}
|
||||||
.value=${this.value}
|
.value=${this.value}
|
||||||
.required=${this.required}
|
.required=${this.required}
|
||||||
.disabled=${this.disabled}
|
.disabled=${this.disabled}
|
||||||
@ -34,7 +34,7 @@ export class HaThemePicker extends LitElement {
|
|||||||
>
|
>
|
||||||
<mwc-list-item value="remove"
|
<mwc-list-item value="remove"
|
||||||
>${this.hass!.localize(
|
>${this.hass!.localize(
|
||||||
"ui.components.theme_picker.no_theme"
|
"ui.components.theme-picker.no_theme"
|
||||||
)}</mwc-list-item
|
)}</mwc-list-item
|
||||||
>
|
>
|
||||||
${Object.keys(this.hass!.themes.themes)
|
${Object.keys(this.hass!.themes.themes)
|
||||||
|
@ -89,7 +89,7 @@ class DialogHardwareAvailable extends LitElement implements HassDialog {
|
|||||||
)}
|
)}
|
||||||
</h2>
|
</h2>
|
||||||
<ha-icon-button
|
<ha-icon-button
|
||||||
.label=${this.hass.localize("common.close")}
|
.label=${this.hass.localize("ui.common.close")}
|
||||||
.path=${mdiClose}
|
.path=${mdiClose}
|
||||||
dialogAction="close"
|
dialogAction="close"
|
||||||
></ha-icon-button>
|
></ha-icon-button>
|
||||||
@ -97,7 +97,9 @@ class DialogHardwareAvailable extends LitElement implements HassDialog {
|
|||||||
.hass=${this.hass}
|
.hass=${this.hass}
|
||||||
.filter=${this._filter}
|
.filter=${this._filter}
|
||||||
@value-changed=${this._handleSearchChange}
|
@value-changed=${this._handleSearchChange}
|
||||||
.label=${this.hass.localize("common.search")}
|
.label=${this.hass.localize(
|
||||||
|
"ui.panel.config.hardware.available_hardware.search"
|
||||||
|
)}
|
||||||
>
|
>
|
||||||
</search-input>
|
</search-input>
|
||||||
</div>
|
</div>
|
||||||
|
@ -202,7 +202,7 @@ class HaConfigHardware extends LitElement {
|
|||||||
title: this.hass.localize("ui.panel.config.hardware.reboot_host"),
|
title: this.hass.localize("ui.panel.config.hardware.reboot_host"),
|
||||||
text: this.hass.localize("ui.panel.config.hardware.reboot_host_confirm"),
|
text: this.hass.localize("ui.panel.config.hardware.reboot_host_confirm"),
|
||||||
confirmText: this.hass.localize("ui.panel.config.hardware.reboot_host"),
|
confirmText: this.hass.localize("ui.panel.config.hardware.reboot_host"),
|
||||||
dismissText: this.hass.localize("common.cancel"),
|
dismissText: this.hass.localize("ui.common.cancel"),
|
||||||
});
|
});
|
||||||
|
|
||||||
if (!confirmed) {
|
if (!confirmed) {
|
||||||
@ -236,7 +236,7 @@ class HaConfigHardware extends LitElement {
|
|||||||
"ui.panel.config.hardware.shutdown_host_confirm"
|
"ui.panel.config.hardware.shutdown_host_confirm"
|
||||||
),
|
),
|
||||||
confirmText: this.hass.localize("ui.panel.config.hardware.shutdown_host"),
|
confirmText: this.hass.localize("ui.panel.config.hardware.shutdown_host"),
|
||||||
dismissText: this.hass.localize("common.cancel"),
|
dismissText: this.hass.localize("ui.common.cancel"),
|
||||||
});
|
});
|
||||||
|
|
||||||
if (!confirmed) {
|
if (!confirmed) {
|
||||||
|
@ -423,9 +423,7 @@
|
|||||||
"remove_user": "Remove user"
|
"remove_user": "Remove user"
|
||||||
},
|
},
|
||||||
"blueprint-picker": {
|
"blueprint-picker": {
|
||||||
"select_blueprint": "Select a Blueprint",
|
"select_blueprint": "Select a Blueprint"
|
||||||
"add_user": "Add user",
|
|
||||||
"remove_user": "Remove user"
|
|
||||||
},
|
},
|
||||||
"device-picker": {
|
"device-picker": {
|
||||||
"clear": "Clear",
|
"clear": "Clear",
|
||||||
@ -1592,6 +1590,7 @@
|
|||||||
"available_hardware": {
|
"available_hardware": {
|
||||||
"failed_to_get": "Failed to get available hardware",
|
"failed_to_get": "Failed to get available hardware",
|
||||||
"title": "All Hardware",
|
"title": "All Hardware",
|
||||||
|
"search": "Search hardware",
|
||||||
"subsystem": "Subsystem",
|
"subsystem": "Subsystem",
|
||||||
"device_path": "Device path",
|
"device_path": "Device path",
|
||||||
"id": "ID",
|
"id": "ID",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user