This commit is contained in:
parent
ca4ac3a1c0
commit
dedd40b949
8 changed files with 73 additions and 13 deletions
|
|
@ -1,6 +1,4 @@
|
|||
defmodule MvWeb.LiveHelpers do
|
||||
import Phoenix.LiveView
|
||||
|
||||
def on_mount(:default, _params, session, socket) do
|
||||
locale = session["locale"] || "en"
|
||||
Gettext.put_locale(locale)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue