From 152b665f2e5345f65bbc2c8ccfac894b1d0148ce Mon Sep 17 00:00:00 2001 From: Wendelin <12148533+wendevlin@users.noreply.github.com> Date: Thu, 31 Oct 2024 13:57:40 +0100 Subject: [PATCH] Fix hassio backups translations (#22609) * Fix hassio backup styling * Add missing hassio backups data-table translations --- hassio/src/backups/hassio-backups.ts | 3 ++ src/layouts/hass-tabs-subpage-data-table.ts | 12 ++++---- src/translations/en.json | 31 +++++++++++++++++++++ 3 files changed, 41 insertions(+), 5 deletions(-) diff --git a/hassio/src/backups/hassio-backups.ts b/hassio/src/backups/hassio-backups.ts index c089d395bfd8..af8cbf170b86 100644 --- a/hassio/src/backups/hassio-backups.ts +++ b/hassio/src/backups/hassio-backups.ts @@ -374,6 +374,9 @@ export class HassioBackups extends LitElement { haStyle, hassioStyle, css` + :host { + color: var(--primary-text-color); + } .table-header { display: flex; justify-content: space-between; diff --git a/src/layouts/hass-tabs-subpage-data-table.ts b/src/layouts/hass-tabs-subpage-data-table.ts index cdc5d9f84551..9ac568e80d4f 100644 --- a/src/layouts/hass-tabs-subpage-data-table.ts +++ b/src/layouts/hass-tabs-subpage-data-table.ts @@ -371,11 +371,13 @@ export class HaTabsSubpageDataTable extends LitElement { -

- ${localize("ui.components.subpage-data-table.selected", { - selected: this.selected || "0", - })} -

+ ${this.selected !== undefined + ? html`

+ ${localize("ui.components.subpage-data-table.selected", { + selected: this.selected || "0", + })} +

` + : nothing}
diff --git a/src/translations/en.json b/src/translations/en.json index 5c62be98d216..7c6051cb42c5 100644 --- a/src/translations/en.json +++ b/src/translations/en.json @@ -7814,6 +7814,37 @@ "cancel": "[%key:ui::common::cancel%]", "move": "Move" } + }, + "ui": { + "components": { + "subpage-data-table": { + "filters": "[%key:ui::components::subpage-data-table::filters%]", + "show_results": "[%key:ui::components::subpage-data-table::show_results%]", + "clear_filter": "[%key:ui::components::subpage-data-table::clear_filter%]", + "close_filter": "[%key:ui::components::subpage-data-table::close_filter%]", + "exit_selection_mode": "[%key:ui::components::subpage-data-table::exit_selection_mode%]", + "enter_selection_mode": "[%key:ui::components::subpage-data-table::enter_selection_mode%]", + "sort_by": "[%key:ui::components::subpage-data-table::sort_by%]", + "group_by": "[%key:ui::components::subpage-data-table::group_by%]", + "dont_group_by": "[%key:ui::components::subpage-data-table::dont_group_by%]", + "collapse_all_groups": "[%key:ui::components::subpage-data-table::collapse_all_groups%]", + "expand_all_groups": "[%key:ui::components::subpage-data-table::expand_all_groups%]", + "select": "[%key:ui::components::subpage-data-table::select%]", + "selected": "[%key:ui::components::subpage-data-table::selected%]", + "select_all": "[%key:ui::components::subpage-data-table::select_all%]", + "select_none": "[%key:ui::components::subpage-data-table::select_none%]", + "settings": "[%key:ui::components::subpage-data-table::settings%]" + }, + "data-table": { + "settings": { + "header": "[%key:ui::components::data-table::settings::header%]", + "hide": "[%key:ui::components::data-table::settings::hide%]", + "show": "[%key:ui::components::data-table::settings::show%]", + "done": "[%key:ui::components::data-table::settings::done%]", + "restore": "[%key:ui::components::data-table::settings::restore%]" + } + } + } } } }