GameServerWeb.OnMount.Locale
(game_server_web v1.0.935)
Copy Markdown
LiveView on_mount hook that sets the Gettext locale from the session.
When the LocalePath plug stores a :preferred_locale in the session,
this hook reads it so that LiveView renders use the correct locale.