Skip to content

Commit

Permalink
Backport fixes for ex_cldr 2.37.0 and help names
Browse files Browse the repository at this point in the history
  • Loading branch information
kipcole9 committed Apr 29, 2023
1 parent bec5ff5 commit bfb0a71
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
6 changes: 5 additions & 1 deletion lib/cldr/route.ex
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
4 changes: 2 additions & 2 deletions mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -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"},
Expand Down

0 comments on commit bfb0a71

Please sign in to comment.