Name local pipeline based on local or full choice (#24835)

This commit is contained in:
Bram Kragten 2025-03-28 18:29:47 +01:00
parent 9e32c24f3c
commit a4f07423ec
2 changed files with 4 additions and 3 deletions

View File

@ -465,7 +465,7 @@ export class HaVoiceAssistantSetupStepLocal extends LitElement {
}
let pipelineName = this.hass.localize(
"ui.panel.config.voice_assistants.satellite_wizard.local.local_pipeline"
`ui.panel.config.voice_assistants.satellite_wizard.local.${this.localOption}_pipeline`
);
let i = 1;
while (
@ -474,7 +474,7 @@ export class HaVoiceAssistantSetupStepLocal extends LitElement {
(pipeline) => pipeline.name === pipelineName
)
) {
pipelineName = `${this.hass.localize("ui.panel.config.voice_assistants.satellite_wizard.local.local_pipeline")} ${i}`;
pipelineName = `${this.hass.localize(`ui.panel.config.voice_assistants.satellite_wizard.local.${this.localOption}_pipeline`)} ${i}`;
i++;
}

View File

@ -3436,7 +3436,8 @@
"failed_secondary": "We were unable to install the add-ons for speech-to-text and text-to-speech automatically for you. Read the documentation to learn how to install them.",
"not_supported_title": "Installation of add-ons is not supported on your system",
"not_supported_secondary": "Your system is not supported to automatically install a local TTS and STT provider. Learn how to set up local TTS and STT providers in the documentation.",
"local_pipeline": "Local Assistant",
"full_local_pipeline": "Full local Assistant",
"focused_local_pipeline": "Focused local Assistant",
"state": {
"installing_piper": "Installing Piper",
"starting_piper": "Starting Piper",