From cb84ba985e2c5648a3a6e91d3690c8b358829550 Mon Sep 17 00:00:00 2001 From: Vladimir Rubin Date: Thu, 28 Nov 2024 11:06:55 +0200 Subject: [PATCH] fix: fix deprecated warnings --- lib/exmr_web.ex | 4 ++-- lib/exmr_web/components/core_components.ex | 2 +- lib/exmr_web/gettext.ex | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/exmr_web.ex b/lib/exmr_web.ex index d8fae0b..0e8a882 100644 --- a/lib/exmr_web.ex +++ b/lib/exmr_web.ex @@ -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 diff --git a/lib/exmr_web/components/core_components.ex b/lib/exmr_web/components/core_components.ex index 948b822..113ccbf 100644 --- a/lib/exmr_web/components/core_components.ex +++ b/lib/exmr_web/components/core_components.ex @@ -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. diff --git a/lib/exmr_web/gettext.ex b/lib/exmr_web/gettext.ex index 92aade1..aae7856 100644 --- a/lib/exmr_web/gettext.ex +++ b/lib/exmr_web/gettext.ex @@ -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")