gettext page_live

This commit is contained in:
2022-02-25 21:58:07 -05:00
committed by oliviasculley
parent e35bdf101b
commit e16fbba810
7 changed files with 455 additions and 6 deletions

View File

@ -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

View File

@ -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>