Address gettext deprecations

Deprecation warning:

	warning: defining a Gettext backend by calling

	    use Gettext, otp_app: ...

	is deprecated. To define a backend, call:

	    use Gettext.Backend, otp_app: :my_app

	Then, instead of importing your backend, call this in your module:

	    use Gettext, backend: MyApp.Gettext
This commit is contained in:
Claudio Ortolina
2024-09-12 14:13:06 +01:00
parent 72fd62c492
commit 8255e50e1d
3 changed files with 4 additions and 3 deletions
+2 -1
View File
@@ -42,8 +42,9 @@ defmodule MusicLibraryWeb do
formats: [:html, :json],
layouts: [html: MusicLibraryWeb.Layouts]
use Gettext, backend: MusicLibraryWeb.Gettext
import Plug.Conn
import MusicLibraryWeb.Gettext
unquote(verified_routes())
end