VoileWeb.Live.Hooks.LocaleHook (Voile v0.1.31)

Copy Markdown View Source

LiveView hook to maintain locale across LiveView mount/remount cycles. This ensures the locale set by the Locale plug persists during LiveView updates.

Summary

Functions

on_mount callback to set the locale from session or conn assigns. This should be added to all live_session blocks in the router.

Functions

on_mount(atom, params, session, socket)

on_mount callback to set the locale from session or conn assigns. This should be added to all live_session blocks in the router.