Skip to content

Commit

Permalink
Translate delete
Browse files Browse the repository at this point in the history
  • Loading branch information
piitaya committed Jan 7, 2025
1 parent 8f8dc20 commit b489ea5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion src/panels/config/backup/ha-config-backup-backups.ts
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,9 @@ class HaConfigBackupBackups extends SubscribeMixin(LitElement) {
`
: html`
<ha-icon-button
.label=${"Delete selected"}
.label=${this.hass.localize(
"ui.panel.config.backup.backups.delete_selected"
)}
.path=${mdiDelete}
id="delete-btn"
class="warning"
Expand Down
4 changes: 2 additions & 2 deletions src/panels/config/backup/ha-config-backup-details.ts
Original file line number Diff line number Diff line change
Expand Up @@ -386,8 +386,8 @@ class HaConfigBackupDetails extends LitElement {

private async _deleteBackup(): Promise<void> {
const confirm = await showConfirmationDialog(this, {
title: "Delete backup",
text: "This backup will be permanently deleted.",
title: this.hass.localize("ui.panel.config.backup.dialogs.delete.title"),
text: this.hass.localize("ui.panel.config.backup.dialogs.delete.text"),
confirmText: this.hass.localize("ui.common.delete"),
destructive: true,
});
Expand Down

0 comments on commit b489ea5

Please sign in to comment.