You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I recently created a new Phoenix app using mix phx.new my_app and encountered the following warning when running it:
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
Expected behavior
This warning appears in lib/my_app_web/gettext.ex:23, indicating that the way of defining the Gettext backend is outdated.
It would be helpful for the generated code to be updated to reflect the new approach to defining Gettext backends. This could prevent confusion for new users encountering this deprecation warning.
Thank you for your attention!
The text was updated successfully, but these errors were encountered:
Environment
Actual behavior
I recently created a new Phoenix app using
mix phx.new my_app
and encountered the following warning when running it:Expected behavior
This warning appears in
lib/my_app_web/gettext.ex:23
, indicating that the way of defining the Gettext backend is outdated.It would be helpful for the generated code to be updated to reflect the new approach to defining Gettext backends. This could prevent confusion for new users encountering this deprecation warning.
Thank you for your attention!
The text was updated successfully, but these errors were encountered: