Add missing localization for "Deselect all" button in (#23448)

* Add missing localization for "Deselect all" button to en.json

* Add code for localizing "Deselect all" to dialog-media-manage.ts
This commit is contained in:
Norbert Rittel 2024-12-25 01:56:26 +01:00 committed by GitHub
parent 54eb7d169c
commit 1daaf50773
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 1 deletions

View File

@ -135,7 +135,9 @@ class DialogMediaManage extends LitElement {
: html`
<ha-button
slot="actionItems"
.label=${`Deselect all`}
.label=${this.hass.localize(
`ui.components.media-browser.file_management.deselect_all`
)}
@click=${this._handleDeselectAll}
>
<ha-svg-icon

View File

@ -935,6 +935,7 @@
"confirm_delete": "Do you want to delete {count} {count, plural,\n one {file}\n other {files}\n}?",
"delete": "Delete {count}",
"deleting": "Deleting {count}",
"deselect_all": "Deselect all",
"tip_media_storage": "[%key:ui::panel::config::tips::media_storage%]",
"tip_storage_panel": "storage"
},