Skip to content

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

Draft
wants to merge 1 commit into
base: dev
Choose a base branch
from

Conversation

emsilva
Copy link

@emsilva emsilva commented Jul 10, 2025

Summary

This PR adds the missing translation strings for the HTML5 notification service in the Home Assistant UI.

Changes Made

  • Added translation strings for the HTML5 notification service in homeassistant/components/html5/strings.json
  • Includes service name, description, and field translations for message, title, target, and data fields
  • All strings follow Home Assistant's translation conventions and style guidelines

Problem 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

  • Verified that strings.json is valid JSON
  • Ran translation generation script to ensure proper processing
  • Follows existing patterns used by other Home Assistant integrations

Screenshots

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

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
Copy link

@home-assistant home-assistant bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @emsilva

It seems you haven't yet signed a CLA. Please do so here.

Once you do that we will be able to review and accept this pull request.

Thanks!

@home-assistant home-assistant bot added cla-needed integration: html5 small-pr PRs with less than 30 lines. labels Jul 10, 2025
@home-assistant
Copy link

Please take a look at the requested changes, and use the Ready for review button when you are done, thanks 👍

Learn more about our pull request process.

@home-assistant home-assistant bot marked this pull request as draft July 10, 2025 23:05
@home-assistant
Copy link

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

Code owner commands

Code owners of html5 can trigger bot actions by commenting:

  • @home-assistant close Closes the pull request.
  • @home-assistant rename Awesome new title Renames the pull request.
  • @home-assistant reopen Reopen the pull request.
  • @home-assistant unassign html5 Removes the current integration label and assignees on the pull request, add the integration domain after the command.
  • @home-assistant add-label needs-more-information Add a label (needs-more-information, problem in dependency, problem in custom component) to the pull request.
  • @home-assistant remove-label needs-more-information Remove a label (needs-more-information, problem in dependency, problem in custom component) on the pull request.

Copy link
Contributor

@NoRi2909 NoRi2909 left a 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.

Comment on lines +31 to +32
"name": "Send a notification with html5",
"description": "Sends a notification message using the html5 service.",
Copy link
Contributor

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)

Suggested change
"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)."
Copy link
Contributor

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.

Suggested change
"description": "The title of the message (optional)."
"description": "The title of the message."

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

HTML5 Push Notifications: Partly missing translations in UI
2 participants
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy