Skip to content

Commit

Permalink
Support translation for delete row action submit button text.
Browse files Browse the repository at this point in the history
  • Loading branch information
hasansezertasan committed Dec 27, 2023
1 parent 769a85f commit 9f057e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion starlette_admin/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -498,7 +498,7 @@ def row_action_2_edit(self, request: Request, pk: Any) -> str:
text=_("Delete"),
confirmation=_("Are you sure you want to delete this item?"),
icon_class="fa-solid fa-trash",
submit_btn_text="Yes, delete",
submit_btn_text=_("Yes, delete"),
submit_btn_class="btn-danger",
action_btn_class="btn-danger",
)
Expand Down

0 comments on commit 9f057e5

Please sign in to comment.