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:
@@ -17,7 +17,7 @@ defmodule MusicLibraryWeb.CoreComponents do
|
||||
use Phoenix.Component
|
||||
|
||||
alias Phoenix.LiveView.JS
|
||||
import MusicLibraryWeb.Gettext
|
||||
use Gettext, backend: MusicLibraryWeb.Gettext
|
||||
|
||||
@doc """
|
||||
Renders a modal.
|
||||
|
||||
Reference in New Issue
Block a user