This reverts commit aa2ad6b42c
.
This commit is contained in:
parent
aa2ad6b42c
commit
3d54c998fd
3 changed files with 5 additions and 5 deletions
|
@ -43,7 +43,7 @@ defmodule ExmrWeb do
|
|||
layouts: [html: ExmrWeb.Layouts]
|
||||
|
||||
import Plug.Conn
|
||||
use Gettext, backend: MyApp.Gettext
|
||||
import 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
|
||||
import ExmrWeb.Gettext
|
||||
|
||||
# Shortcut for generating JS commands
|
||||
alias Phoenix.LiveView.JS
|
||||
|
|
|
@ -17,7 +17,7 @@ defmodule ExmrWeb.CoreComponents do
|
|||
use Phoenix.Component
|
||||
|
||||
alias Phoenix.LiveView.JS
|
||||
use Gettext, backend: MyApp.Gettext
|
||||
import ExmrWeb.Gettext
|
||||
|
||||
@doc """
|
||||
Renders a modal.
|
||||
|
|
|
@ -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
|
||||
import ExmrWeb.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.Backend, otp_app: :exmr
|
||||
use Gettext, otp_app: :exmr
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue