fix: added SetLocale to update LiveViews if language changes
This commit is contained in:
parent
f485f7bd8f
commit
df51731ae8
2 changed files with 14 additions and 1 deletions
|
|
@ -46,7 +46,7 @@ defmodule MvWeb.Router do
|
|||
AshAuthentication-specific: We define that all routes can only be accessed when the user is signed in.
|
||||
"""
|
||||
ash_authentication_live_session :authentication_required,
|
||||
on_mount: {MvWeb.LiveUserAuth, :live_user_required} do
|
||||
on_mount: [{MvWeb.Live.SetLocale, :default}, {MvWeb.LiveUserAuth, :live_user_required}] do
|
||||
get "/", PageController, :home
|
||||
|
||||
live "/members", MemberLive.Index, :index
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue