From ff75c89ed4221311069ab2ceb5d7d8fdef6a4e7c Mon Sep 17 00:00:00 2001 From: Norbert Rittel Date: Mon, 6 Jan 2025 07:49:22 +0100 Subject: [PATCH] Add missing localizations for Voice Assistants > Expose headers (#23452) * 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 --- .../voice-assistants/ha-config-voice-assistants-expose.ts | 4 ++++ src/translations/en.json | 4 +++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/panels/config/voice-assistants/ha-config-voice-assistants-expose.ts b/src/panels/config/voice-assistants/ha-config-voice-assistants-expose.ts index 4241500ee8b7..2f4a74036654 100644 --- a/src/panels/config/voice-assistants/ha-config-voice-assistants-expose.ts +++ b/src/panels/config/voice-assistants/ha-config-voice-assistants-expose.ts @@ -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, @@ -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: () => diff --git a/src/translations/en.json b/src/translations/en.json index cb69e4a8a2b1..b75f116a4d37 100644 --- a/src/translations/en.json +++ b/src/translations/en.json @@ -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",