Multilingual.Plugs.StoreView (multilingual v0.1.9)
Store the view information in the connection's private data.
This plug must be used in the router pipeline in order to enable all other Multilingual features in Phoenix views.
Example
defmodule MyAppWeb.Router do
use MyAppWeb, :router
alias Multilingual.Plugs.StoreView
pipeline :browser do
...
plug StoreView, default_locale: "en"
end
end
Summary
Functions
Link to this function
call(conn, opts)
Link to this function