i18n: Update English translations
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Moritz 2026-01-13 16:30:32 +01:00
parent 4244779521
commit b103ae3a5f
Signed by: moritz
GPG key ID: 1020A035E5DD0824
4 changed files with 33 additions and 298 deletions

View file

@ -306,11 +306,16 @@ defmodule MvWeb.MemberLive.Form do
defp handle_save_success(socket, member) do
notify_parent({:saved, member})
action = get_action_name(socket.assigns.form.source.type)
flash_message =
case socket.assigns.form.source.type do
:create -> gettext("Member created successfully")
:update -> gettext("Member updated successfully")
other -> gettext("Member %{action} successfully", action: get_action_name(other))
end
socket =
socket
|> put_flash(:info, gettext("Member %{action} successfully", action: action))
|> put_flash(:info, flash_message)
|> push_navigate(to: return_path(socket.assigns.return_to, member))
{:noreply, socket}