-
-
Notifications
You must be signed in to change notification settings - Fork 34.4k
Add HTML5 notification service translations #148582
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
base: dev
Are you sure you want to change the base?
Conversation
Added missing translation strings for the HTML5 notification service in the UI. The HTML5 'Send a notification with html5' action now displays properly localized strings for the service name, description, and field names (message, title, target, data). This resolves the issue where the HTML5 notification service appeared without translations in the Home Assistant UI automation editor. Fixes home-assistant#129359
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please take a look at the requested changes, and use the Ready for review button when you are done, thanks 👍 |
Hey there @alexyao2015, mind taking a look at this pull request as it has been labeled with an integration ( Code owner commandsCode owners of
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great you are addressing this translation gap! Two small comments below.
"name": "Send a notification with html5", | ||
"description": "Sends a notification message using the html5 service.", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should keep the action name short, consistent with "Dismiss"
Also we usually capitalize all abbreviations (I will fix the other action description, too)
"name": "Send a notification with html5", | |
"description": "Sends a notification message using the html5 service.", | |
"name": "Notify", | |
"description": "Sends a notification message using the HTML5 service.", |
Also makes it consistent with the description for the "data"
field.
}, | ||
"title": { | ||
"name": "Title", | ||
"description": "The title of the message (optional)." |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In the UI an optional field has a check box next to it so we don't need to add that to the description.
Also the data field is optional as well – IIRC.
"description": "The title of the message (optional)." | |
"description": "The title of the message." |
Summary
This PR adds the missing translation strings for the HTML5 notification service in the Home Assistant UI.
Changes Made
homeassistant/components/html5/strings.json
message
,title
,target
, anddata
fieldsProblem Solved
Previously, when users tried to use the "Send a notification with html5" action in the Home Assistant UI, the service would appear without proper translations, showing raw technical strings instead of user-friendly localized text.
Testing
strings.json
is valid JSONScreenshots
Before this fix, the HTML5 notification service displayed untranslated strings in the UI automation editor. After this fix, users will see properly localized strings for the service name, description, and all field names.
Fixes #129359