feat: add translation
This commit is contained in:
parent
ddf9348eb8
commit
2a6f1ccf80
12 changed files with 260 additions and 38 deletions
|
|
@ -37,6 +37,9 @@ defmodule MvWeb.LiveUserAuth do
|
|||
end
|
||||
|
||||
def on_mount(:live_no_user, _params, _session, socket) do
|
||||
Gettext.put_locale(MvWeb.Gettext, "de")
|
||||
{:cont, assign(socket, :locale, "de")}
|
||||
|
||||
if socket.assigns[:current_user] do
|
||||
{:halt, Phoenix.LiveView.redirect(socket, to: ~p"/")}
|
||||
else
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue