fix: fix deprecated warnings
All checks were successful
Checks / check (push) Successful in 1m32s
Build and Push Docker Image / Build and Push Image (push) Successful in 1m16s

This commit is contained in:
Vladimir Rubin 2024-11-28 11:06:55 +02:00
parent 7fd0c4bfa0
commit cb84ba985e
Signed by: vavakado
GPG key ID: CAB744727F36B524
3 changed files with 4 additions and 4 deletions

View file

@ -43,7 +43,7 @@ defmodule ExmrWeb do
layouts: [html: ExmrWeb.Layouts]
import Plug.Conn
use Gettext, backend: MyApp.Gettext
use Gettext, backend: ExmrWeb.Gettext
unquote(verified_routes())
end
@ -85,7 +85,7 @@ defmodule ExmrWeb do
import Phoenix.HTML
# Core UI components and translation
import ExmrWeb.CoreComponents
use Gettext, backend: MyApp.Gettext
use Gettext, backend: ExmrWeb.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
use Gettext, backend: MyApp.Gettext
use Gettext, backend: ExmrWeb.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:
use Gettext, backend: MyApp.Gettext
use Gettext, backend: ExmrWeb.Gettext
# Simple translation
gettext("Here is the string to translate")