Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The announcement command is incorrect for PT-BR #91292

Closed
cvroque opened this issue Apr 12, 2023 · 3 comments · Fixed by #91293
Closed

The announcement command is incorrect for PT-BR #91292

cvroque opened this issue Apr 12, 2023 · 3 comments · Fixed by #91293

Comments

@cvroque
Copy link
Contributor

cvroque commented Apr 12, 2023

The problem

Hello!

I've been having issues with the Google Assistant SDK ignoring some broadcasts when using my native language (pt-BR). Checking google web activity logs it seems that the Assistant fails to understand the commands because they aren't the expected ones.

After some digging I found this line:

"pt": ("Transmite {0}", "Transmite para {1} {0}"), in notify.py

These commands are correct for "pt" as seen here, but incorrect for pt-BR which is described here.

There's some code suggesting that the supported language should be only pt-BR:

SUPPORTED_LANGUAGE_CODES: Final = [... "pt-BR",] in const.py

DEFAULT_LANGUAGE_CODES = {..."pt": "pt-BR",} in helpers.py

The correct translation for these commands would be:

"pt": ("Transmitir {0}", "Transmitir {0} para {1}"),

I've tested this locally and now my broadcasts are working correctly!

Should we just overwrite the pt command with the correct translation (in this case I can make the PR) or we should try to keep both? Thanks in advance!

What version of Home Assistant Core has the issue?

core-2023.4.2

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant OS

Integration causing the issue

google_assistant_sdk

Link to integration documentation on our website

https://www.home-assistant.io/integrations/google_assistant_sdk/

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

No response

Additional information

No response

@home-assistant
Copy link

Hey there @tronikos, mind taking a look at this issue as it has been labeled with an integration (google_assistant_sdk) you are listed as a code owner for? Thanks!

Code owner commands

Code owners of google_assistant_sdk can trigger bot actions by commenting:

  • @home-assistant close Closes the issue.
  • @home-assistant rename Awesome new title Renames the issue.
  • @home-assistant reopen Reopen the issue.
  • @home-assistant unassign google_assistant_sdk Removes the current integration label and assignees on the issue, add the integration domain after the command.

(message by CodeOwnersMention)


google_assistant_sdk documentation
google_assistant_sdk source
(message by IssueLinks)

@tronikos
Copy link
Member

Being fixed in #91293
Thanks!

@cvroque
Copy link
Contributor Author

cvroque commented Apr 12, 2023

Thank you!

@github-actions github-actions bot locked and limited conversation to collaborators May 13, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants