localize input_select form (#19829)

This commit is contained in:
karwosts 2024-02-27 09:22:34 -05:00 committed by GitHub
parent 45e09a262b
commit dd8c1d359c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 12 additions and 3 deletions

View File

@ -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;

View File

@ -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",