fix: fix deprecated warnings
This commit is contained in:
parent
7fd0c4bfa0
commit
cb84ba985e
3 changed files with 4 additions and 4 deletions
|
@ -43,7 +43,7 @@ defmodule ExmrWeb do
|
||||||
layouts: [html: ExmrWeb.Layouts]
|
layouts: [html: ExmrWeb.Layouts]
|
||||||
|
|
||||||
import Plug.Conn
|
import Plug.Conn
|
||||||
use Gettext, backend: MyApp.Gettext
|
use Gettext, backend: ExmrWeb.Gettext
|
||||||
|
|
||||||
unquote(verified_routes())
|
unquote(verified_routes())
|
||||||
end
|
end
|
||||||
|
@ -85,7 +85,7 @@ defmodule ExmrWeb do
|
||||||
import Phoenix.HTML
|
import Phoenix.HTML
|
||||||
# Core UI components and translation
|
# Core UI components and translation
|
||||||
import ExmrWeb.CoreComponents
|
import ExmrWeb.CoreComponents
|
||||||
use Gettext, backend: MyApp.Gettext
|
use Gettext, backend: ExmrWeb.Gettext
|
||||||
|
|
||||||
# Shortcut for generating JS commands
|
# Shortcut for generating JS commands
|
||||||
alias Phoenix.LiveView.JS
|
alias Phoenix.LiveView.JS
|
||||||
|
|
|
@ -17,7 +17,7 @@ defmodule ExmrWeb.CoreComponents do
|
||||||
use Phoenix.Component
|
use Phoenix.Component
|
||||||
|
|
||||||
alias Phoenix.LiveView.JS
|
alias Phoenix.LiveView.JS
|
||||||
use Gettext, backend: MyApp.Gettext
|
use Gettext, backend: ExmrWeb.Gettext
|
||||||
|
|
||||||
@doc """
|
@doc """
|
||||||
Renders a modal.
|
Renders a modal.
|
||||||
|
|
|
@ -5,7 +5,7 @@ defmodule ExmrWeb.Gettext do
|
||||||
By using [Gettext](https://hexdocs.pm/gettext),
|
By using [Gettext](https://hexdocs.pm/gettext),
|
||||||
your module gains a set of macros for translations, for example:
|
your module gains a set of macros for translations, for example:
|
||||||
|
|
||||||
use Gettext, backend: MyApp.Gettext
|
use Gettext, backend: ExmrWeb.Gettext
|
||||||
|
|
||||||
# Simple translation
|
# Simple translation
|
||||||
gettext("Here is the string to translate")
|
gettext("Here is the string to translate")
|
||||||
|
|
Loading…
Reference in a new issue