From 0ae8bf53a2a5e3684208b86b6a8c16895b7b8f5c Mon Sep 17 00:00:00 2001 From: renovate-bot Date: Wed, 2 Oct 2024 11:51:23 +0000 Subject: [PATCH] chore(deps): update dependency gettext to ~> 0.26.0 (#94) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [gettext](https://hex.pm/packages/gettext) | minor | `~> 0.25.0` -> `~> 0.26.0` | --- This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate). Co-authored-by: Joao P Dubas Reviewed-on: https://gitea.dubas.dev/joao.dubas/ex_trainer/pulls/94 Co-authored-by: renovate-bot Co-committed-by: renovate-bot --- lib/wabanex_web.ex | 7 ++++--- lib/wabanex_web/gettext.ex | 4 ++-- mix.exs | 2 +- mix.lock | 4 ++-- 4 files changed, 9 insertions(+), 8 deletions(-) diff --git a/lib/wabanex_web.ex b/lib/wabanex_web.ex index d6794f5..7277e16 100644 --- a/lib/wabanex_web.ex +++ b/lib/wabanex_web.ex @@ -19,10 +19,10 @@ defmodule WabanexWeb do def controller do quote do + use Gettext, backend: WabanexWeb.Gettext use Phoenix.Controller, namespace: WabanexWeb import Plug.Conn - import WabanexWeb.Gettext alias WabanexWeb.Router.Helpers, as: Routes end end @@ -54,17 +54,18 @@ defmodule WabanexWeb do def channel do quote do use Phoenix.Channel - import WabanexWeb.Gettext + use Gettext, backend: WabanexWeb.Gettext end end defp view_helpers do quote do + use Gettext, backend: WabanexWeb.Gettext + # Import basic rendering functionality (render, render_layout, etc) import Phoenix.View import WabanexWeb.ErrorHelpers - import WabanexWeb.Gettext alias WabanexWeb.Router.Helpers, as: Routes end end diff --git a/lib/wabanex_web/gettext.ex b/lib/wabanex_web/gettext.ex index 7aa3206..cabc92f 100644 --- a/lib/wabanex_web/gettext.ex +++ b/lib/wabanex_web/gettext.ex @@ -5,7 +5,7 @@ defmodule WabanexWeb.Gettext do By using [Gettext](https://hexdocs.pm/gettext), your module gains a set of macros for translations, for example: - import WabanexWeb.Gettext + use Gettext, backend: WabanexWeb.Gettext # Simple translation gettext("Here is the string to translate") @@ -20,5 +20,5 @@ defmodule WabanexWeb.Gettext do See the [Gettext Docs](https://hexdocs.pm/gettext) for detailed usage. """ - use Gettext, otp_app: :wabanex + use Gettext.Backend, otp_app: :wabanex end diff --git a/mix.exs b/mix.exs index 3323f16..769a5df 100644 --- a/mix.exs +++ b/mix.exs @@ -38,7 +38,7 @@ defmodule Wabanex.MixProject do {:dialyxir, "~> 1.4.0", only: [:dev, :test], runtime: false}, {:dns_cluster, "~> 0.1.1"}, {:ecto_sql, "~> 3.12.0"}, - {:gettext, "~> 0.25.0"}, + {:gettext, "~> 0.26.0"}, {:jason, "~> 1.4.0"}, {:junit_formatter, "~> 3.4.0", only: [:test]}, {:lcov_ex, "~> 0.3.0", only: [:dev, :test], runtime: false}, diff --git a/mix.lock b/mix.lock index ecdc73c..36a7746 100644 --- a/mix.lock +++ b/mix.lock @@ -15,10 +15,10 @@ "ecto": {:hex, :ecto, "3.12.0", "9014a3ccac7f91e680b9d237d461ebe3d4e16d62ca8e355d540e2c6afdc28309", [:mix], [{:decimal, "~> 2.0", [hex: :decimal, repo: "hexpm", optional: false]}, {:jason, "~> 1.0", [hex: :jason, repo: "hexpm", optional: true]}, {:telemetry, "~> 0.4 or ~> 1.0", [hex: :telemetry, repo: "hexpm", optional: false]}], "hexpm", "41e781a76e131093af8e1edf68b1319bf320878faff58da41ffa4b10fc6ff678"}, "ecto_sql": {:hex, :ecto_sql, "3.12.0", "73cea17edfa54bde76ee8561b30d29ea08f630959685006d9c6e7d1e59113b7d", [:mix], [{:db_connection, "~> 2.4.1 or ~> 2.5", [hex: :db_connection, repo: "hexpm", optional: false]}, {:ecto, "~> 3.12", [hex: :ecto, repo: "hexpm", optional: false]}, {:myxql, "~> 0.7", [hex: :myxql, repo: "hexpm", optional: true]}, {:postgrex, "~> 0.19 or ~> 1.0", [hex: :postgrex, repo: "hexpm", optional: true]}, {:tds, "~> 2.1.1 or ~> 2.2", [hex: :tds, repo: "hexpm", optional: true]}, {:telemetry, "~> 0.4.0 or ~> 1.0", [hex: :telemetry, repo: "hexpm", optional: false]}], "hexpm", "dc9e4d206f274f3947e96142a8fdc5f69a2a6a9abb4649ef5c882323b6d512f0"}, "erlex": {:hex, :erlex, "0.2.7", "810e8725f96ab74d17aac676e748627a07bc87eb950d2b83acd29dc047a30595", [:mix], [], "hexpm", "3ed95f79d1a844c3f6bf0cea61e0d5612a42ce56da9c03f01df538685365efb0"}, - "expo": {:hex, :expo, "1.0.0", "647639267e088717232f4d4451526e7a9de31a3402af7fcbda09b27e9a10395a", [:mix], [], "hexpm", "18d2093d344d97678e8a331ca0391e85d29816f9664a25653fd7e6166827827c"}, + "expo": {:hex, :expo, "1.1.0", "f7b9ed7fb5745ebe1eeedf3d6f29226c5dd52897ac67c0f8af62a07e661e5c75", [:mix], [], "hexpm", "fbadf93f4700fb44c331362177bdca9eeb8097e8b0ef525c9cc501cb9917c960"}, "file_system": {:hex, :file_system, "1.0.0", "b689cc7dcee665f774de94b5a832e578bd7963c8e637ef940cd44327db7de2cd", [:mix], [], "hexpm", "6752092d66aec5a10e662aefeed8ddb9531d79db0bc145bb8c40325ca1d8536d"}, "finch": {:hex, :finch, "0.18.0", "944ac7d34d0bd2ac8998f79f7a811b21d87d911e77a786bc5810adb75632ada4", [:mix], [{:castore, "~> 0.1 or ~> 1.0", [hex: :castore, repo: "hexpm", optional: false]}, {:mime, "~> 1.0 or ~> 2.0", [hex: :mime, repo: "hexpm", optional: false]}, {:mint, "~> 1.3", [hex: :mint, repo: "hexpm", optional: false]}, {:nimble_options, "~> 0.4 or ~> 1.0", [hex: :nimble_options, repo: "hexpm", optional: false]}, {:nimble_pool, "~> 0.2.6 or ~> 1.0", [hex: :nimble_pool, repo: "hexpm", optional: false]}, {:telemetry, "~> 0.4 or ~> 1.0", [hex: :telemetry, repo: "hexpm", optional: false]}], "hexpm", "69f5045b042e531e53edc2574f15e25e735b522c37e2ddb766e15b979e03aa65"}, - "gettext": {:hex, :gettext, "0.25.0", "98a95a862a94e2d55d24520dd79256a15c87ea75b49673a2e2f206e6ebc42e5d", [:mix], [{:expo, "~> 0.5.1 or ~> 1.0", [hex: :expo, repo: "hexpm", optional: false]}], "hexpm", "38e5d754e66af37980a94fb93bb20dcde1d2361f664b0a19f01e87296634051f"}, + "gettext": {:hex, :gettext, "0.26.1", "38e14ea5dcf962d1fc9f361b63ea07c0ce715a8ef1f9e82d3dfb8e67e0416715", [:mix], [{:expo, "~> 0.5.1 or ~> 1.0", [hex: :expo, repo: "hexpm", optional: false]}], "hexpm", "01ce56f188b9dc28780a52783d6529ad2bc7124f9744e571e1ee4ea88bf08734"}, "hpax": {:hex, :hpax, "1.0.0", "28dcf54509fe2152a3d040e4e3df5b265dcb6cb532029ecbacf4ce52caea3fd2", [:mix], [], "hexpm", "7f1314731d711e2ca5fdc7fd361296593fc2542570b3105595bb0bc6d0fad601"}, "jason": {:hex, :jason, "1.4.4", "b9226785a9aa77b6857ca22832cffa5d5011a667207eb2a0ad56adb5db443b8a", [:mix], [{:decimal, "~> 1.0 or ~> 2.0", [hex: :decimal, repo: "hexpm", optional: true]}], "hexpm", "c5eb0cab91f094599f94d55bc63409236a8ec69a21a67814529e8d5f6cc90b3b"}, "junit_formatter": {:hex, :junit_formatter, "3.4.0", "d0e8db6c34dab6d3c4154c3b46b21540db1109ae709d6cf99ba7e7a2ce4b1ac2", [:mix], [], "hexpm", "bb36e2ae83f1ced6ab931c4ce51dd3dbef1ef61bb4932412e173b0cfa259dacd"},