From 9cf8ec4cbbbe20ddfbd9836f4ee1d241ed1a0929 Mon Sep 17 00:00:00 2001 From: Simon Lamon <32477463+silamon@users.noreply.github.com> Date: Tue, 4 Jul 2023 20:42:36 +0200 Subject: [PATCH] Make voice assistant translatable in dialog (#17163) --- .../entities/entity-registry-settings-editor.ts | 11 +++++++++-- src/translations/en.json | 1 + 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/src/panels/config/entities/entity-registry-settings-editor.ts b/src/panels/config/entities/entity-registry-settings-editor.ts index a1ce59f5ef..699fd8933a 100644 --- a/src/panels/config/entities/entity-registry-settings-editor.ts +++ b/src/panels/config/entities/entity-registry-settings-editor.ts @@ -798,7 +798,11 @@ export class EntityRegistrySettingsEditor extends LitElement { .disabled=${this.disabled} @click=${this._handleVoiceAssistantsClicked} > - Voice assistants + ${this.hass.localize( + "ui.dialogs.entity_registry.editor.voice_assistants" + )} ${this.entry.aliases.length ? [...this.entry.aliases] @@ -1320,7 +1324,10 @@ export class EntityRegistrySettingsEditor extends LitElement { } private _handleVoiceAssistantsClicked() { - showVoiceAssistantsView(this, "Voice assistants"); + showVoiceAssistantsView( + this, + this.hass.localize("ui.dialogs.entity_registry.editor.voice_assistants") + ); } private async _showOptionsFlow() { diff --git a/src/translations/en.json b/src/translations/en.json index 2be6dbba16..39ae20882b 100644 --- a/src/translations/en.json +++ b/src/translations/en.json @@ -1101,6 +1101,7 @@ "stream_orientation_7": "Rotate right and flip", "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" } },