Multilingual.StoreView (multilingual v0.1.1)

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.StoreView

pipeline :browser do
  ...
  plug StoreView, default_locale: "en"
end

end

Summary

Functions