Skip to content

Commit

Permalink
Change delete/remove wording in tag area to be consistent (#21299)
Browse files Browse the repository at this point in the history
delete tags
  • Loading branch information
silamon authored Jul 4, 2024
1 parent 050bef0 commit 3e4d06f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
7 changes: 4 additions & 3 deletions src/panels/config/tags/ha-config-tags.ts
Original file line number Diff line number Diff line change
Expand Up @@ -301,12 +301,13 @@ export class HaConfigTags extends SubscribeMixin(LitElement) {
private async _removeTag(selectedTag: Tag) {
if (
!(await showConfirmationDialog(this, {
title: this.hass!.localize("ui.panel.config.tag.confirm_remove_title"),
text: this.hass.localize("ui.panel.config.tag.confirm_remove", {
title: this.hass!.localize("ui.panel.config.tag.confirm_delete_title"),
text: this.hass.localize("ui.panel.config.tag.confirm_delete", {
tag: selectedTag.name || selectedTag.id,
}),
dismissText: this.hass!.localize("ui.common.cancel"),
confirmText: this.hass!.localize("ui.common.remove"),
confirmText: this.hass!.localize("ui.common.delete"),
destructive: true,
}))
) {
return false;
Expand Down
4 changes: 2 additions & 2 deletions src/translations/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -2107,8 +2107,8 @@
"edit": "Edit",
"never_scanned": "Never scanned",
"create_automation": "Create automation with tag",
"confirm_remove_title": "Remove tag?",
"confirm_remove": "Are you sure you want to remove tag {tag}?",
"confirm_delete_title": "Delete tag?",
"confirm_delete": "Are you sure you want to delete tag {tag}?",
"automation_title": "Tag {name} is scanned",
"qr_code_image": "QR code for tag {name}",
"headers": {
Expand Down

0 comments on commit 3e4d06f

Please sign in to comment.