Skip to content

Commit

Permalink
Add missing localization for "Deselect all" button in (#23448)
Browse files Browse the repository at this point in the history
* Add missing localization for "Deselect all" button to en.json

* Add code for localizing "Deselect all" to dialog-media-manage.ts
  • Loading branch information
NoRi2909 authored Dec 25, 2024
1 parent 54eb7d1 commit 1daaf50
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/components/media-player/dialog-media-manage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions src/translations/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
},
Expand Down

0 comments on commit 1daaf50

Please sign in to comment.