forked from shibao/cannery
gettext page_live
This commit is contained in:
@ -7,7 +7,12 @@ defmodule LokalWeb.PageLive do
|
||||
|
||||
@impl true
|
||||
def mount(_params, session, socket) do
|
||||
{:ok, socket |> assign_defaults(session) |> assign(query: "", results: %{})}
|
||||
socket =
|
||||
socket
|
||||
|> assign_defaults(session)
|
||||
|> assign(page_title: gettext("Home"), query: "", results: %{})
|
||||
|
||||
{:ok, socket}
|
||||
end
|
||||
|
||||
@impl true
|
||||
|
@ -1,9 +1,9 @@
|
||||
<div class="flex flex-col justify-center items-center text-center space-y-4">
|
||||
<h1 class="title text-primary-500 text-2xl">
|
||||
Welcome to Lokal
|
||||
<%= gettext("Welcome to Lokal") %>
|
||||
</h1>
|
||||
|
||||
|
||||
<p class="title text-primary-500 text-lg">
|
||||
Shop from your community
|
||||
<%= gettext("Shop from your community") %>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
|
Reference in New Issue
Block a user