mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-26 02:36:37 +00:00
Add missing translations to actions, triggers and conditions of device automations (#6002)
This commit is contained in:
parent
6b8cfe661c
commit
3faebaeb4b
@ -51,14 +51,18 @@ export class HaDeviceAction extends LitElement {
|
|||||||
.value=${deviceId}
|
.value=${deviceId}
|
||||||
@value-changed=${this._devicePicked}
|
@value-changed=${this._devicePicked}
|
||||||
.hass=${this.hass}
|
.hass=${this.hass}
|
||||||
label="Device"
|
label=${this.hass.localize(
|
||||||
|
"ui.panel.config.automation.editor.actions.type.device_id.label"
|
||||||
|
)}
|
||||||
></ha-device-picker>
|
></ha-device-picker>
|
||||||
<ha-device-action-picker
|
<ha-device-action-picker
|
||||||
.value=${this.action}
|
.value=${this.action}
|
||||||
.deviceId=${deviceId}
|
.deviceId=${deviceId}
|
||||||
@value-changed=${this._deviceActionPicked}
|
@value-changed=${this._deviceActionPicked}
|
||||||
.hass=${this.hass}
|
.hass=${this.hass}
|
||||||
label="Action"
|
label=${this.hass.localize(
|
||||||
|
"ui.panel.config.automation.editor.actions.type.device_id.action"
|
||||||
|
)}
|
||||||
></ha-device-action-picker>
|
></ha-device-action-picker>
|
||||||
${extraFieldsData
|
${extraFieldsData
|
||||||
? html`
|
? html`
|
||||||
@ -125,7 +129,7 @@ export class HaDeviceAction extends LitElement {
|
|||||||
// Returns a callback for ha-form to calculate labels per schema object
|
// Returns a callback for ha-form to calculate labels per schema object
|
||||||
return (schema) =>
|
return (schema) =>
|
||||||
localize(
|
localize(
|
||||||
`ui.panel.config.automation.editor.actions.type.device.extra_fields.${schema.name}`
|
`ui.panel.config.automation.editor.actions.type.device_id.extra_fields.${schema.name}`
|
||||||
) || schema.name;
|
) || schema.name;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -45,14 +45,18 @@ export class HaDeviceCondition extends LitElement {
|
|||||||
.value=${deviceId}
|
.value=${deviceId}
|
||||||
@value-changed=${this._devicePicked}
|
@value-changed=${this._devicePicked}
|
||||||
.hass=${this.hass}
|
.hass=${this.hass}
|
||||||
label="Device"
|
label=${this.hass.localize(
|
||||||
|
"ui.panel.config.automation.editor.conditions.type.device.label"
|
||||||
|
)}
|
||||||
></ha-device-picker>
|
></ha-device-picker>
|
||||||
<ha-device-condition-picker
|
<ha-device-condition-picker
|
||||||
.value=${this.condition}
|
.value=${this.condition}
|
||||||
.deviceId=${deviceId}
|
.deviceId=${deviceId}
|
||||||
@value-changed=${this._deviceConditionPicked}
|
@value-changed=${this._deviceConditionPicked}
|
||||||
.hass=${this.hass}
|
.hass=${this.hass}
|
||||||
label="Condition"
|
label=${this.hass.localize(
|
||||||
|
"ui.panel.config.automation.editor.conditions.type.device.condition"
|
||||||
|
)}
|
||||||
></ha-device-condition-picker>
|
></ha-device-condition-picker>
|
||||||
${extraFieldsData
|
${extraFieldsData
|
||||||
? html`
|
? html`
|
||||||
|
@ -45,14 +45,18 @@ export class HaDeviceTrigger extends LitElement {
|
|||||||
.value=${deviceId}
|
.value=${deviceId}
|
||||||
@value-changed=${this._devicePicked}
|
@value-changed=${this._devicePicked}
|
||||||
.hass=${this.hass}
|
.hass=${this.hass}
|
||||||
label="Device"
|
label=${this.hass.localize(
|
||||||
|
"ui.panel.config.automation.editor.triggers.type.device.label"
|
||||||
|
)}
|
||||||
></ha-device-picker>
|
></ha-device-picker>
|
||||||
<ha-device-trigger-picker
|
<ha-device-trigger-picker
|
||||||
.value=${this.trigger}
|
.value=${this.trigger}
|
||||||
.deviceId=${deviceId}
|
.deviceId=${deviceId}
|
||||||
@value-changed=${this._deviceTriggerPicked}
|
@value-changed=${this._deviceTriggerPicked}
|
||||||
.hass=${this.hass}
|
.hass=${this.hass}
|
||||||
label="Trigger"
|
label=${this.hass.localize(
|
||||||
|
"ui.panel.config.automation.editor.triggers.type.device.trigger"
|
||||||
|
)}
|
||||||
></ha-device-trigger-picker>
|
></ha-device-trigger-picker>
|
||||||
${extraFieldsData
|
${extraFieldsData
|
||||||
? html`
|
? html`
|
||||||
|
@ -781,6 +781,7 @@
|
|||||||
"type": {
|
"type": {
|
||||||
"device": {
|
"device": {
|
||||||
"label": "Device",
|
"label": "Device",
|
||||||
|
"trigger": "Trigger",
|
||||||
"extra_fields": {
|
"extra_fields": {
|
||||||
"above": "Above",
|
"above": "Above",
|
||||||
"below": "Below",
|
"below": "Below",
|
||||||
@ -875,6 +876,7 @@
|
|||||||
},
|
},
|
||||||
"device": {
|
"device": {
|
||||||
"label": "Device",
|
"label": "Device",
|
||||||
|
"condition": "Condition",
|
||||||
"extra_fields": {
|
"extra_fields": {
|
||||||
"above": "Above",
|
"above": "Above",
|
||||||
"below": "Below",
|
"below": "Below",
|
||||||
@ -957,6 +959,7 @@
|
|||||||
},
|
},
|
||||||
"device_id": {
|
"device_id": {
|
||||||
"label": "Device",
|
"label": "Device",
|
||||||
|
"action": "Action",
|
||||||
"extra_fields": {
|
"extra_fields": {
|
||||||
"code": "Code"
|
"code": "Code"
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user