Skip to content

Commit

Permalink
Add missing localizations for Voice Assistants > Expose headers (#23452)
Browse files Browse the repository at this point in the history
* Add missing localizations for Voice Assistants > Expose headers

* Add localizable labels to Icon and Remove columns

* Variant with all changes on a single line

* Prettier?

* Revert

* Line length limited to 80 chars
  • Loading branch information
NoRi2909 authored Jan 6, 2025
1 parent a8803de commit ff75c89
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,7 @@ export class VoiceAssistantsExpose extends LitElement {
): DataTableColumnContainer => ({
icon: {
title: "",
label: localize("ui.panel.config.voice_assistants.expose.headers.icon"),
type: "icon",
moveable: false,
hidden: narrow,
Expand Down Expand Up @@ -241,6 +242,9 @@ export class VoiceAssistantsExpose extends LitElement {
},
remove: {
title: "",
label: localize(
"ui.panel.config.voice_assistants.expose.headers.remove"
),
type: "icon-button",
hidden: narrow,
template: () =>
Expand Down
4 changes: 3 additions & 1 deletion src/translations/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -2829,12 +2829,14 @@
"expose": {
"caption": "Expose",
"headers": {
"icon": "Icon",
"name": "Name",
"entity_id": "Entity ID",
"area": "Area",
"domain": "Domain",
"assistants": "Assistants",
"aliases": "Aliases"
"aliases": "Aliases",
"remove": "[%key:ui::common::remove%]"
},
"aliases": "{count} aliases",
"expose": "Expose",
Expand Down

0 comments on commit ff75c89

Please sign in to comment.