forked from shibao/cannery
add locale as per user setting
This commit is contained in:
@ -10,9 +10,7 @@ defmodule CanneryWeb.ContainerLive.Index do
|
||||
alias Ecto.Changeset
|
||||
|
||||
@impl true
|
||||
def mount(_params, session, socket) do
|
||||
{:ok, socket |> assign_defaults(session)}
|
||||
end
|
||||
def mount(_params, _session, socket), do: {:ok, socket}
|
||||
|
||||
@impl true
|
||||
def handle_params(params, _url, %{assigns: %{live_action: live_action}} = socket) do
|
||||
|
@ -11,9 +11,7 @@ defmodule CanneryWeb.ContainerLive.Show do
|
||||
alias Phoenix.LiveView.Socket
|
||||
|
||||
@impl true
|
||||
def mount(_params, session, socket) do
|
||||
{:ok, socket |> assign_defaults(session)}
|
||||
end
|
||||
def mount(_params, _session, socket), do: {:ok, socket}
|
||||
|
||||
@impl true
|
||||
def handle_params(
|
||||
|
Reference in New Issue
Block a user