GameServerWeb.OnMount.Locale (game_server_web v1.0.941)

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.

Summary

Functions

on_mount(atom, params, session, socket)