PhoenixMultilingual.Plugs.StoreView (phoenix_multilingual v0.1.11)
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 Phoenix Multilingual features in Phoenix views.
Example
defmodule MyAppWeb.Router do
use MyAppWeb, :router
alias PhoenixMultilingual.Plugs.StoreView
pipeline :browser do
...
plug StoreView, default_locale: "en"
end
end