i18n: Update English translations
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
4244779521
commit
b103ae3a5f
4 changed files with 33 additions and 298 deletions
|
|
@ -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}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue