mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-25 18:26:35 +00:00
Make voice assistant translatable in dialog (#17163)
This commit is contained in:
parent
7584404d31
commit
9cf8ec4cbb
@ -798,7 +798,11 @@ export class EntityRegistrySettingsEditor extends LitElement {
|
|||||||
.disabled=${this.disabled}
|
.disabled=${this.disabled}
|
||||||
@click=${this._handleVoiceAssistantsClicked}
|
@click=${this._handleVoiceAssistantsClicked}
|
||||||
>
|
>
|
||||||
<span>Voice assistants</span>
|
<span
|
||||||
|
>${this.hass.localize(
|
||||||
|
"ui.dialogs.entity_registry.editor.voice_assistants"
|
||||||
|
)}</span
|
||||||
|
>
|
||||||
<span slot="secondary">
|
<span slot="secondary">
|
||||||
${this.entry.aliases.length
|
${this.entry.aliases.length
|
||||||
? [...this.entry.aliases]
|
? [...this.entry.aliases]
|
||||||
@ -1320,7 +1324,10 @@ export class EntityRegistrySettingsEditor extends LitElement {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private _handleVoiceAssistantsClicked() {
|
private _handleVoiceAssistantsClicked() {
|
||||||
showVoiceAssistantsView(this, "Voice assistants");
|
showVoiceAssistantsView(
|
||||||
|
this,
|
||||||
|
this.hass.localize("ui.dialogs.entity_registry.editor.voice_assistants")
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
private async _showOptionsFlow() {
|
private async _showOptionsFlow() {
|
||||||
|
@ -1101,6 +1101,7 @@
|
|||||||
"stream_orientation_7": "Rotate right and flip",
|
"stream_orientation_7": "Rotate right and flip",
|
||||||
"stream_orientation_8": "Rotate right"
|
"stream_orientation_8": "Rotate right"
|
||||||
},
|
},
|
||||||
|
"voice_assistants": "[%key:ui::panel::config::dashboard::voice_assistants::main%]",
|
||||||
"no_aliases": "Configure aliases and expose settings for voice assistants"
|
"no_aliases": "Configure aliases and expose settings for voice assistants"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user