diff --git a/lib/music_library_web/controllers/stats_controller.ex b/lib/music_library_web/controllers/stats_controller.ex index 7ba18286..1c9bbc90 100644 --- a/lib/music_library_web/controllers/stats_controller.ex +++ b/lib/music_library_web/controllers/stats_controller.ex @@ -16,7 +16,7 @@ defmodule MusicLibraryWeb.StatsController do latest_record = Records.get_latest_record!() conn - |> assign(:page_title, "Stats") + |> assign(:page_title, gettext("Stats")) |> render(:index, records_count_by_format: records_count_by_format, records_count_by_type: records_count_by_type, diff --git a/lib/music_library_web/controllers/stats_html/index.html.heex b/lib/music_library_web/controllers/stats_html/index.html.heex index 3f46ea52..abf0254c 100644 --- a/lib/music_library_web/controllers/stats_html/index.html.heex +++ b/lib/music_library_web/controllers/stats_html/index.html.heex @@ -11,7 +11,7 @@ alt={@latest_record.title} />
- Latest record + <%= gettext("Latest record") %>