style: fix deprecated warnings
Some checks failed
Checks / check (push) Failing after 2m26s

This commit is contained in:
Vladimir Rubin 2024-11-28 09:46:02 +02:00
parent 1a6b7bb3da
commit 7b14c537aa
Signed by: vavakado
GPG key ID: CAB744727F36B524
3 changed files with 5 additions and 5 deletions

View file

@ -43,7 +43,7 @@ defmodule ExmrWeb do
layouts: [html: ExmrWeb.Layouts]
import Plug.Conn
import ExmrWeb.Gettext
use Gettext, backend: MyApp.Gettext
unquote(verified_routes())
end
@ -85,7 +85,7 @@ defmodule ExmrWeb do
import Phoenix.HTML
# Core UI components and translation
import ExmrWeb.CoreComponents
import ExmrWeb.Gettext
use Gettext, backend: MyApp.Gettext
# Shortcut for generating JS commands
alias Phoenix.LiveView.JS

View file

@ -17,7 +17,7 @@ defmodule ExmrWeb.CoreComponents do
use Phoenix.Component
alias Phoenix.LiveView.JS
import ExmrWeb.Gettext
use Gettext, backend: MyApp.Gettext
@doc """
Renders a modal.

View file

@ -5,7 +5,7 @@ defmodule ExmrWeb.Gettext do
By using [Gettext](https://hexdocs.pm/gettext),
your module gains a set of macros for translations, for example:
import ExmrWeb.Gettext
use Gettext, backend: MyApp.Gettext
# Simple translation
gettext("Here is the string to translate")
@ -20,5 +20,5 @@ defmodule ExmrWeb.Gettext do
See the [Gettext Docs](https://hexdocs.pm/gettext) for detailed usage.
"""
use Gettext, otp_app: :exmr
use Gettext.Backend, otp_app: :exmr
end