Skip to content

Commit

Permalink
localize input_select form (#19829)
Browse files Browse the repository at this point in the history
  • Loading branch information
karwosts authored Feb 27, 2024
1 parent 45e09a2 commit dd8c1d3
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
9 changes: 7 additions & 2 deletions src/panels/config/helpers/forms/ha-input_select-form.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
6 changes: 5 additions & 1 deletion src/translations/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit dd8c1d3

Please sign in to comment.