From dd8c1d359c50b47e28fdf43e7b1f66122c398183 Mon Sep 17 00:00:00 2001 From: karwosts <32912880+karwosts@users.noreply.github.com> Date: Tue, 27 Feb 2024 09:22:34 -0500 Subject: [PATCH] localize input_select form (#19829) --- src/panels/config/helpers/forms/ha-input_select-form.ts | 9 +++++++-- src/translations/en.json | 6 +++++- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/src/panels/config/helpers/forms/ha-input_select-form.ts b/src/panels/config/helpers/forms/ha-input_select-form.ts index e5a16fb54af0..47ebdc6e32ec 100644 --- a/src/panels/config/helpers/forms/ha-input_select-form.ts +++ b/src/panels/config/helpers/forms/ha-input_select-form.ts @@ -177,8 +177,13 @@ class HaInputSelectForm extends LitElement { const index = (ev.target as any).index; if ( !(await showConfirmationDialog(this, { - title: "Delete this item?", - text: "Are you sure you want to delete this item?", + title: this.hass.localize( + "ui.dialogs.helper_settings.input_select.confirm_delete.delete" + ), + text: this.hass.localize( + "ui.dialogs.helper_settings.input_select.confirm_delete.prompt" + ), + destructive: true, })) ) { return; diff --git a/src/translations/en.json b/src/translations/en.json index 972c6753f50b..c5a3c72808dc 100644 --- a/src/translations/en.json +++ b/src/translations/en.json @@ -1371,7 +1371,11 @@ "add_option": "[%key:ui::panel::config::automation::editor::actions::type::choose::add_option%]", "remove_option": "[%key:ui::panel::config::automation::editor::actions::type::choose::remove_option%]", "no_options": "There are no options yet.", - "add": "Add" + "add": "Add", + "confirm_delete": { + "delete": "[%key:ui::components::todo::item::confirm_delete::delete%]", + "prompt": "[%key:ui::components::todo::item::confirm_delete::prompt%]" + } }, "counter": { "minimum": "Minimum value",