From 6d084813d51057ea946240563442d7a80f18f396 Mon Sep 17 00:00:00 2001 From: Norbert Rittel Date: Mon, 6 Jan 2025 07:49:22 +0100 Subject: [PATCH 1/2] 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 02586cbd7022..ea4f49db79b5 100644 --- a/src/translations/en.json +++ b/src/translations/en.json @@ -2826,12 +2826,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", From f53ac94e761ae16704b136af3b8478fa5781e573 Mon Sep 17 00:00:00 2001 From: Norbert Rittel Date: Mon, 6 Jan 2025 07:47:37 +0100 Subject: [PATCH 2/2] Add missing `ui.panel.config.labels.headers.description` (#23517) The header "Description" for the Labels list only shows up as optional in a narrow view like on mobile. This commit adds the missing string for proper localization. --- src/translations/en.json | 1 + 1 file changed, 1 insertion(+) diff --git a/src/translations/en.json b/src/translations/en.json index ea4f49db79b5..b513f6a8b336 100644 --- a/src/translations/en.json +++ b/src/translations/en.json @@ -2113,6 +2113,7 @@ "description": "Group devices and entities", "headers": { "name": "Name", + "description": "Description", "icon": "Icon", "color": "Color" },