<%= link to: Routes.live_path(CanneryWeb.Endpoint, HomeLive) do %>
-
Cannery
+
+ Cannery
+
<% end %>
- <%# user settings %>
<%= if assigns |> Map.has_key?(:current_user) && @current_user do %>
-
- <%= link @current_user.email, class: "hover:underline",
- to: Routes.user_settings_path(CanneryWeb.Endpoint, :edit) %>
+ <%= link(@current_user.email,
+ class: "hover:underline",
+ to: Routes.user_settings_path(CanneryWeb.Endpoint, :edit)
+ ) %>
-
- <%= link to: Routes.user_session_path(CanneryWeb.Endpoint, :delete), method: :delete,
- data: [confirm: "Are you sure you want to log out?"] do %>
+ <%= link to: Routes.user_session_path(CanneryWeb.Endpoint, :delete),
+ method: :delete,
+ data: [confirm: dgettext("prompts", "Are you sure you want to log out?")] do %>
<% end %>
<% else %>
<%= if Accounts.allow_registration?() do %>
-
- <%= link "Register", class: "hover:underline",
- to: Routes.user_registration_path(CanneryWeb.Endpoint, :new) %>
+ <%= link(dgettext("actions", "Register"),
+ class: "hover:underline",
+ to: Routes.user_registration_path(CanneryWeb.Endpoint, :new)
+ ) %>
<% end %>
-
- <%= link "Log in", class: "hover:underline",
- to: Routes.user_session_path(CanneryWeb.Endpoint, :new) %>
+ <%= link(dgettext("actions", "Log in"),
+ class: "hover:underline",
+ to: Routes.user_session_path(CanneryWeb.Endpoint, :new)
+ ) %>
<% end %>
diff --git a/priv/gettext/actions.pot b/priv/gettext/actions.pot
new file mode 100644
index 00000000..97809f83
--- /dev/null
+++ b/priv/gettext/actions.pot
@@ -0,0 +1,23 @@
+## This file is a PO Template file.
+##
+## "msgid"s here are often extracted from source code.
+## Add new translations manually only if they're dynamic
+## translations that can't be statically extracted.
+##
+## Run "mix gettext.extract" to bring this file up to
+## date. Leave "msgstr"s empty as changing them here has no
+## effect: edit them in PO (.po) files instead.
+msgid ""
+msgstr ""
+
+#, elixir-format, ex-autogen
+#: lib/cannery_web/component/topbar.ex:96
+#: lib/cannery_web/templates/layout/topbar.html.heex:36
+msgid "Log in"
+msgstr ""
+
+#, elixir-format, ex-autogen
+#: lib/cannery_web/component/topbar.ex:89
+#: lib/cannery_web/templates/layout/topbar.html.heex:28
+msgid "Register"
+msgstr ""
diff --git a/priv/gettext/default.pot b/priv/gettext/default.pot
index a766579d..28f332f7 100644
--- a/priv/gettext/default.pot
+++ b/priv/gettext/default.pot
@@ -74,3 +74,28 @@ msgstr ""
#: lib/cannery_web/live/home_live.ex:66
msgid "Self-host your own instance, or use an instance from someone you trust."
msgstr ""
+
+#, elixir-format, ex-autogen
+#: lib/cannery_web/component/topbar.ex:47
+msgid "Ammo"
+msgstr ""
+
+#, elixir-format, ex-autogen
+#: lib/cannery_web/component/topbar.ex:41
+msgid "Containers"
+msgstr ""
+
+#, elixir-format, ex-autogen
+#: lib/cannery_web/component/topbar.ex:60
+msgid "Invites"
+msgstr ""
+
+#, elixir-format, ex-autogen
+#: lib/cannery_web/component/topbar.ex:53
+msgid "Manage"
+msgstr ""
+
+#, elixir-format, ex-autogen
+#: lib/cannery_web/component/topbar.ex:35
+msgid "Tags"
+msgstr ""
diff --git a/priv/gettext/prompts.pot b/priv/gettext/prompts.pot
index 564e995c..c64e0fa1 100644
--- a/priv/gettext/prompts.pot
+++ b/priv/gettext/prompts.pot
@@ -14,3 +14,9 @@ msgstr ""
#: lib/cannery_web/live/home_live.ex:94
msgid "Register to setup %{name}"
msgstr ""
+
+#, elixir-format, ex-autogen
+#: lib/cannery_web/component/topbar.ex:75
+#: lib/cannery_web/templates/layout/topbar.html.heex:21
+msgid "Are you sure you want to log out?"
+msgstr ""