From bfb0a713d913479f6c9ec005b0fbd21dc57f0d90 Mon Sep 17 00:00:00 2001 From: Kip Cole Date: Sat, 29 Apr 2023 14:02:40 +0800 Subject: [PATCH] Backport fixes for ex_cldr 2.37.0 and help names --- lib/cldr/route.ex | 6 +++++- mix.exs | 4 ++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/lib/cldr/route.ex b/lib/cldr/route.ex index 1263329..4fa0b55 100644 --- a/lib/cldr/route.ex +++ b/lib/cldr/route.ex @@ -522,8 +522,12 @@ defmodule Cldr.Route do end) end - defp locales_from_unique_gettext_locales(cldr_backend) do + @meta_locales [:und, :en_001] + + @doc false + def locales_from_unique_gettext_locales(cldr_backend) do cldr_backend.known_locale_names() + |> Enum.reject(&(&1 in @meta_locales)) |> Enum.map(&cldr_backend.validate_locale/1) |> Enum.map(&elem(&1, 1)) |> Enum.uniq_by(& &1.gettext_locale_name) diff --git a/mix.exs b/mix.exs index 799f9ec..fd76529 100644 --- a/mix.exs +++ b/mix.exs @@ -52,8 +52,8 @@ defmodule CldrRoutes.MixProject do defp deps do [ - {:ex_cldr, "~> 2.32"}, - {:phoenix, "~> 1.6"}, + {:ex_cldr, "~> 2.37"}, + {:phoenix, "~> 1.7"}, {:phoenix_live_view, "~> 0.18", optional: true}, {:jason, "~> 1.0"}, {:gettext, "~> 0.19"},