Multilingual.Hooks.StoreView (multilingual v0.1.9)
Store the view information in the LiveView socket's private data.
This hook must be registered for each LiveView in order to enable all other Multilingual features in Phoenix live views.
Example
defmodule MyAppWeb.HomeLive do
use MyAppWeb, :live_view
alias Multilingual.Hooks.StoreView
on_mount {StoreView, default_locale: "en"}
end
Summary
Functions
Link to this function