iOS icon indicating copy to clipboard operation
iOS copied to clipboard

Wrong language from iOS Assist shortcut action pt-br

Open llluis opened this issue 2 years ago • 3 comments

Model Name: IPhone 12 Pro Software Version: 17.1 App version: 2023.7 (2023.471)

Home Assistant Core Version Home Assistant OS 11.1 Home Assistant Core 2023.11.1

Describe the bug Following the instructions from https://www.home-assistant.io/voice_control/apple/

When using the provided shortcuts or creating a custom one just to invoke the Assist action, if you select "Portuguese (Brazil)" as the language but the intent is not recognized, according to https://github.com/home-assistant/intents/blob/main/sentences/pt-br/_common.yaml the error message should be:

Desculpe, não consegui entender seu pedido

However, I'm getting:

Desculpe, não percebi o pedido. (from https://github.com/home-assistant/intents/blob/main/sentences/pt/_common.yaml)

Which indicates the wrong language code is being passed somewhere.

To Reproduce Install the iOS shortcut for "Assist" provided in the documentation or create a custom one to invoke the Assist action. Select the language "Portuguese (Brazil) Trigger the shortcut for something that does not exist (e.g. fly through the window :) )

Expected behavior Receive the message "Desculpe, não consegui entender seu pedido"

Screenshots

Additional context

llluis avatar Nov 09 '23 06:11 llluis

Oi Luis, tudo bem? What happens if you use Assist on a browser? Do you get the same response?

bgoncal avatar Dec 12 '23 19:12 bgoncal

Olá Bruno. Tudo jóia! Sorry for the delayed reply. If I use Assist anywhere else, I get the right answer (browser, esphome device with assitant, wyoming-stelitte). See the exemple below.

Browser via text (app / browser via voice has the same output): image

Siri via shortcut: image

llluis avatar Jan 09 '24 20:01 llluis

Note that if the intent is recognized, everything works, even with custom intents for pt-BR. It's just the "sorry" message which seem to trigger from the "parent" language pt instead of pt-BR.

llluis avatar Jan 09 '24 20:01 llluis