From fb543d05756b16d6fe436cf49db9d17355b8710c Mon Sep 17 00:00:00 2001 From: Claudio Ortolina Date: Mon, 21 Oct 2024 10:27:07 +0100 Subject: [PATCH] Fix gettext import for views --- lib/music_library_web.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/music_library_web.ex b/lib/music_library_web.ex index f4335dfb..4dd1af24 100644 --- a/lib/music_library_web.ex +++ b/lib/music_library_web.ex @@ -82,11 +82,11 @@ defmodule MusicLibraryWeb do defp html_helpers do quote do + use Gettext, backend: MusicLibraryWeb.Gettext # HTML escaping functionality import Phoenix.HTML # Core UI components and translation import MusicLibraryWeb.CoreComponents - import MusicLibraryWeb.Gettext # Shortcut for generating JS commands alias Phoenix.LiveView.JS