diff --git a/CHANGELOG.md b/CHANGELOG.md index 5782e12..d2c7878 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,14 @@ -# Changelog for Cldr_Lists v2.8.0 +# Changelog + +## Cldr_Lists v2.9.0-rc.0 + +This is the changelog for Cldr_lists v2.9.0-rc.0 released on October 3rd, 2021. For older changelogs please consult the release tag on [GitHub](https://github.com/kipcole9/cldr_lists/tags) + +### Enhancements + +* Support [CLDR 40](http://cldr.unicode.org/index/downloads/cldr-40) + +## Cldr_Lists v2.8.0 This is the changelog for Cldr_lists v2.8.0 released on April 8th, 2021. For older changelogs please consult the release tag on [GitHub](https://github.com/kipcole9/cldr_lists/tags) @@ -6,7 +16,7 @@ This is the changelog for Cldr_lists v2.8.0 released on April 8th, 2021. For ol * Support [CLDR 39](http://cldr.unicode.org/index/downloads/cldr-39) -# Changelog for Cldr_Lists v2.7.0 +## Cldr_Lists v2.7.0 This is the changelog for Cldr_lists v2.7.0 released on November 1st, 2020. For older changelogs please consult the release tag on [GitHub](https://github.com/kipcole9/cldr_lists/tags) @@ -14,7 +24,7 @@ This is the changelog for Cldr_lists v2.7.0 released on November 1st, 2020. For * Support [CLDR 38](http://cldr.unicode.org/index/downloads/cldr-38) -# Changelog for Cldr_Lists v2.6.1 +## Cldr_Lists v2.6.1 This is the changelog for Cldr_lists v2.6.1 released on September 26th, 2020. For older changelogs please consult the release tag on [GitHub](https://github.com/kipcole9/cldr_lists/tags) @@ -22,7 +32,7 @@ This is the changelog for Cldr_lists v2.6.1 released on September 26th, 2020. F * Use `Cldr.default_backend!/0` instead of `Cldr.default_backend/0` if its available -# Changelog for Cldr_Lists v2.6.0 +## Cldr_Lists v2.6.0 This is the changelog for Cldr_lists v2.6.0 released on July 1st, 2020. For older changelogs please consult the release tag on [GitHub](https://github.com/kipcole9/cldr_lists/tags) @@ -34,7 +44,7 @@ This is the changelog for Cldr_lists v2.6.0 released on July 1st, 2020. For old * Updates to use `Cldr.locale_and_backend_from/{1, 2}` which normalizes extraction of backend and locale from parameters and options. As a result, also bump the minimum version of `ex_cldr_numbers` to `2.15` -# Changelog for Cldr_Lists v2.5.0 +## Cldr_Lists v2.5.0 This is the changelog for Cldr_lists v2.5.0 released on May 4th, 2020. For older changelogs please consult the release tag on [GitHub](https://github.com/kipcole9/cldr_lists/tags) @@ -44,7 +54,7 @@ This is the changelog for Cldr_lists v2.5.0 released on May 4th, 2020. For olde * Depends upon [ex_cldr_numbers versin 2.17](https://hex.pm/packages/ex_cldr_numbers/2.17.0) which encapsulates CLDR39 data. -# Changelog for Cldr_Lists v2.4.0 +## Cldr_Lists v2.4.0 This is the changelog for Cldr_lists v2.4.0 released on August 31st, 2019. For older changelogs please consult the release tag on [GitHub](https://github.com/kipcole9/cldr_lists/tags) @@ -54,7 +64,7 @@ This is the changelog for Cldr_lists v2.4.0 released on August 31st, 2019. For * Rename `Cldr.List.list_pattern_styles_for/2` to `Cldr.List.list_styles_for/2`. `Cldr.List.list_pattern_styles_for/2` will still operate and delegates to `Cldr.List.list_styles_for/2`. It is now deprecated and will be removed in `ex_cldr_lists` 3.0. -# Changelog for Cldr_Lists v2.3.0 +## Cldr_Lists v2.3.0 This is the changelog for Cldr_lists v2.3.0 released on August 29th, 2019. For older changelogs please consult the release tag on [GitHub](https://github.com/kipcole9/cldr_lists/tags) @@ -62,7 +72,7 @@ This is the changelog for Cldr_lists v2.3.0 released on August 29th, 2019. For * Add `Cldr.List.known_list_styles/0` -# Changelog for Cldr_Lists v2.2.2 +## Cldr_Lists v2.2.2 This is the changelog for Cldr_lists v2.2.2 released on August 23rd, 2019. For older changelogs please consult the release tag on [GitHub](https://github.com/kipcole9/cldr_lists/tags) @@ -70,7 +80,7 @@ This is the changelog for Cldr_lists v2.2.2 released on August 23rd, 2019. For * Fix `@spec` for `Cldr.List.to_string/3` and `Cldr.List.to_string!/3` -# Changelog for Cldr_Lists v2.2.1 +## Cldr_Lists v2.2.1 This is the changelog for Cldr_lists v2.2.1 released on August 21st, 2019. For older changelogs please consult the release tag on [GitHub](https://github.com/kipcole9/cldr_lists/tags) @@ -82,7 +92,7 @@ This is the changelog for Cldr_lists v2.2.1 released on August 21st, 2019. For * Fix dialyzer warnings -# Changelog for Cldr_Lists v2.2.0 +## Cldr_Lists v2.2.0 This is the changelog for Cldr_lists v2.2.0 released on March 28th, 2019. For older changelogs please consult the release tag on [GitHub](https://github.com/kipcole9/cldr_lists/tags) @@ -90,7 +100,7 @@ This is the changelog for Cldr_lists v2.2.0 released on March 28th, 2019. For o * Updates to [CLDR version 35.0.0](http://cldr.unicode.org/index/downloads/cldr-35) released on March 27th 2019. -# Changelog for Cldr_Lists v2.1.0 +## Cldr_Lists v2.1.0 This is the changelog for Cldr_lists v2.1.0 released on March 23rd, 2019. For older changelogs please consult the release tag on [GitHub](https://github.com/kipcole9/cldr_lists/tags) @@ -98,7 +108,7 @@ This is the changelog for Cldr_lists v2.1.0 released on March 23rd, 2019. For o * Support `Cldr.default_backend/0` and apply it as the default for functions in `Cldr.List` -# Changelog for Cldr_Lists v2.0.2 +## Cldr_Lists v2.0.2 This is the changelog for Cldr_lists v2.0.2 released on March 20th, 2019. For older changelogs please consult the release tag on [GitHub](https://github.com/kipcole9/cldr_lists/tags) @@ -106,7 +116,7 @@ This is the changelog for Cldr_lists v2.0.2 released on March 20th, 2019. For o * Fix dialyzer warnings -# Changelog for Cldr_Lists v2.0.1 +## Cldr_Lists v2.0.1 This is the changelog for Cldr_lists v2.0.1 released on March 15th, 2019. For older changelogs please consult the release tag on [GitHub](https://github.com/kipcole9/cldr_lists/tags) @@ -124,7 +134,7 @@ defmodule MyApp.Cldr do end ``` -# Changelog for Cldr_Lists v2.0.0 +## Cldr_Lists v2.0.0 This is the changelog for Cldr_lists v2.0.0 released on November 24th, 2018. For older changelogs please consult the release tag on [GitHub](https://github.com/kipcole9/cldr_lists/tags) diff --git a/lib/cldr/list.ex b/lib/cldr/list.ex index 09a337f..1dd091f 100644 --- a/lib/cldr/list.ex +++ b/lib/cldr/list.ex @@ -290,8 +290,9 @@ defmodule Cldr.List do :standard_short, :unit, :unit_narrow, :unit_short] """ + @root_locale Cldr.Config.root_locale_name() - @known_list_formats Cldr.Config.get_locale("root", %Cldr.Config{locales: ["root"]}) + @known_list_formats Cldr.Config.get_locale(@root_locale, %Cldr.Config{locales: [@root_locale]}) |> Map.get(:list_formats) |> Map.keys def known_list_formats do diff --git a/mix.exs b/mix.exs index ccf371d..865d4f6 100644 --- a/mix.exs +++ b/mix.exs @@ -1,7 +1,7 @@ defmodule Cldr.Lists.Mixfile do use Mix.Project - @version "2.9.0" + @version "2.9.0-rc.0" def project do [ @@ -30,18 +30,15 @@ defmodule Cldr.Lists.Mixfile do """ end - # Run "mix help compile.app" to learn about applications. def application do [ extra_applications: [:logger] ] end - # Run "mix help deps" to learn about dependencies. defp deps do [ - # {:ex_cldr_numbers, "~> 2.17"}, - {:ex_cldr_numbers, path: "../cldr_numbers"}, + {:ex_cldr_numbers, "~> 2.23-rc"}, {:ex_doc, "~> 0.18", optional: true, runtime: false}, {:jason, "~> 1.0", optional: true}, {:dialyxir, "~> 1.0", only: [:dev], runtime: false} diff --git a/mix.lock b/mix.lock index 7e797a4..a2e7836 100644 --- a/mix.lock +++ b/mix.lock @@ -1,13 +1,13 @@ %{ - "cldr_utils": {:hex, :cldr_utils, "2.15.1", "1136987437ac4821f3ec7d46ff150f1c020a1f79730ff1252bfa7681ed577f31", [:mix], [{:castore, "~> 0.1", [hex: :castore, repo: "hexpm", optional: true]}, {:certifi, "~> 2.5", [hex: :certifi, repo: "hexpm", optional: true]}, {:decimal, "~> 1.9 or ~> 2.0", [hex: :decimal, repo: "hexpm", optional: false]}], "hexpm", "ca3c8da0aab18b4d944541392e9548422e30854e3a9d7768dc629c8123f8efb8"}, + "cldr_utils": {:hex, :cldr_utils, "2.17.0-rc.0", "3356664647cfd47e47af22dfeb1a66f50309623588d50908bb775c1c1431f7cd", [:mix], [{:castore, "~> 0.1", [hex: :castore, repo: "hexpm", optional: true]}, {:certifi, "~> 2.5", [hex: :certifi, repo: "hexpm", optional: true]}, {:decimal, "~> 1.9 or ~> 2.0", [hex: :decimal, repo: "hexpm", optional: false]}], "hexpm", "ccff70d78c53019c4f980a39d5fec77bdd0f25895021834bc7a476a2741d523d"}, "decimal": {:hex, :decimal, "2.0.0", "a78296e617b0f5dd4c6caf57c714431347912ffb1d0842e998e9792b5642d697", [:mix], [], "hexpm", "34666e9c55dea81013e77d9d87370fe6cb6291d1ef32f46a1600230b1d44f577"}, "dialyxir": {:hex, :dialyxir, "1.1.0", "c5aab0d6e71e5522e77beff7ba9e08f8e02bad90dfbeffae60eaf0cb47e29488", [:mix], [{:erlex, ">= 0.2.6", [hex: :erlex, repo: "hexpm", optional: false]}], "hexpm", "07ea8e49c45f15264ebe6d5b93799d4dd56a44036cf42d0ad9c960bc266c0b9a"}, "earmark": {:hex, :earmark, "1.4.7", "7b5f0474469688f5514948a4e0c42955a5690d165deaf19c8eb950a3443a40f3", [:mix], [], "hexpm", "0a55a49ee6fa8bc8678f894dfa8a882af6fe8deb65aed6856122226db5b0fe5b"}, "earmark_parser": {:hex, :earmark_parser, "1.4.15", "b29e8e729f4aa4a00436580dcc2c9c5c51890613457c193cc8525c388ccb2f06", [:mix], [], "hexpm", "044523d6438ea19c1b8ec877ec221b008661d3c27e3b848f4c879f500421ca5c"}, "erlex": {:hex, :erlex, "0.2.6", "c7987d15e899c7a2f34f5420d2a2ea0d659682c06ac607572df55a43753aa12e", [:mix], [], "hexpm", "2ed2e25711feb44d52b17d2780eabf998452f6efda104877a3881c2f8c0c0c75"}, - "ex_cldr": {:hex, :ex_cldr, "2.20.0", "571a4b490c333809be59cc984a21be2deaab1db9e2418e323d5935aec8b1394a", [:mix], [{:castore, "~> 0.1", [hex: :castore, repo: "hexpm", optional: true]}, {:certifi, "~> 2.5", [hex: :certifi, repo: "hexpm", optional: true]}, {:cldr_utils, "~> 2.15", [hex: :cldr_utils, repo: "hexpm", optional: false]}, {:decimal, "~> 1.6 or ~> 2.0", [hex: :decimal, repo: "hexpm", optional: false]}, {:gettext, "~> 0.13", [hex: :gettext, repo: "hexpm", optional: true]}, {:jason, "~> 1.0", [hex: :jason, repo: "hexpm", optional: true]}, {:nimble_parsec, "~> 0.5 or ~> 1.0", [hex: :nimble_parsec, repo: "hexpm", optional: false]}, {:plug, "~> 1.9", [hex: :plug, repo: "hexpm", optional: true]}, {:telemetry, "~> 0.4.0", [hex: :telemetry, repo: "hexpm", optional: true]}], "hexpm", "06147e4a27be62e6fe92db14cf5048c645927bfc530aa1cc6af8c92d65e32427"}, - "ex_cldr_currencies": {:hex, :ex_cldr_currencies, "2.11.1", "a6e56209d6f98082cd197aa424333e7a0e38e79253fce9589117719728de4fef", [:mix], [{:ex_cldr, "~> 2.23", [hex: :ex_cldr, repo: "hexpm", optional: false]}, {:ex_doc, "~> 0.18", [hex: :ex_doc, repo: "hexpm", optional: true]}, {:jason, "~> 1.0", [hex: :jason, repo: "hexpm", optional: true]}], "hexpm", "99e8eb3f48a30127bb11ab70f484c124c9fe5b11bce710c94c53939032b0c58c"}, - "ex_cldr_numbers": {:hex, :ex_cldr_numbers, "2.17.0", "e79d4161ca82ce8d40bec5bb7dc83d457e81d03e39042e5b62ff48b2cc3c35f3", [:mix], [{:decimal, "~> 1.6 or ~> 2.0", [hex: :decimal, repo: "hexpm", optional: false]}, {:ex_cldr, "~> 2.20", [hex: :ex_cldr, repo: "hexpm", optional: false]}, {:ex_cldr_currencies, "~> 2.9", [hex: :ex_cldr_currencies, repo: "hexpm", optional: false]}, {:ex_doc, "~> 0.18", [hex: :ex_doc, repo: "hexpm", optional: true]}, {:jason, "~> 1.0", [hex: :jason, repo: "hexpm", optional: true]}], "hexpm", "c6b7ee62e97cefc6d3c47896608f8152cc65ea40238ea99cd92c6f04acdd1627"}, + "ex_cldr": {:hex, :ex_cldr, "2.24.0-rc.0", "878edd979cd1047273e2b84a12eca42546eefb1e3c1dce67019ee9a48cd5df4a", [:mix], [{:castore, "~> 0.1", [hex: :castore, repo: "hexpm", optional: true]}, {:certifi, "~> 2.5", [hex: :certifi, repo: "hexpm", optional: true]}, {:cldr_utils, "~> 2.17-rc", [hex: :cldr_utils, repo: "hexpm", optional: false]}, {:decimal, "~> 1.6 or ~> 2.0", [hex: :decimal, repo: "hexpm", optional: false]}, {:gettext, "~> 0.13", [hex: :gettext, repo: "hexpm", optional: true]}, {:jason, "~> 1.0", [hex: :jason, repo: "hexpm", optional: true]}, {:nimble_parsec, "~> 0.5 or ~> 1.0", [hex: :nimble_parsec, repo: "hexpm", optional: true]}, {:plug, "~> 1.9", [hex: :plug, repo: "hexpm", optional: true]}], "hexpm", "ef0bf0f461a15c51f267e08bf6dea9b66c2f0aa1d0ade195c6fa1995794eb70c"}, + "ex_cldr_currencies": {:hex, :ex_cldr_currencies, "2.12.0-rc.0", "2e8fa788282140916d4034b1cfdf6b290e4394301b5637506976fa2baa9889e9", [:mix], [{:ex_cldr, "~> 2.24-rc", [hex: :ex_cldr, repo: "hexpm", optional: false]}, {:ex_doc, "~> 0.18", [hex: :ex_doc, repo: "hexpm", optional: true]}, {:jason, "~> 1.0", [hex: :jason, repo: "hexpm", optional: true]}], "hexpm", "ef8fb5e228b324ddef95b180e5b385554ae58da9d2ebbaf39b38872476755f22"}, + "ex_cldr_numbers": {:hex, :ex_cldr_numbers, "2.23.0-rc.0", "53835775c7cb22432330adee6186fac7f6c906eb1b90e27ebfee7fe2948f4083", [:mix], [{:decimal, "~> 1.6 or ~> 2.0", [hex: :decimal, repo: "hexpm", optional: false]}, {:ex_cldr, "~> 2.24-rc", [hex: :ex_cldr, repo: "hexpm", optional: false]}, {:ex_cldr_currencies, "~> 2.12-rc", [hex: :ex_cldr_currencies, repo: "hexpm", optional: false]}, {:ex_doc, "~> 0.18", [hex: :ex_doc, repo: "hexpm", optional: true]}, {:jason, "~> 1.0", [hex: :jason, repo: "hexpm", optional: true]}], "hexpm", "d957a92c1578eb72193242333c04b581d481f5f4aab8c7dc30f55c63db5aa390"}, "ex_doc": {:hex, :ex_doc, "0.25.3", "3edf6a0d70a39d2eafde030b8895501b1c93692effcbd21347296c18e47618ce", [:mix], [{:earmark_parser, "~> 1.4.0", [hex: :earmark_parser, repo: "hexpm", optional: false]}, {:makeup_elixir, "~> 0.14", [hex: :makeup_elixir, repo: "hexpm", optional: false]}, {:makeup_erlang, "~> 0.1", [hex: :makeup_erlang, repo: "hexpm", optional: false]}], "hexpm", "9ebebc2169ec732a38e9e779fd0418c9189b3ca93f4a676c961be6c1527913f5"}, "jason": {:hex, :jason, "1.2.2", "ba43e3f2709fd1aa1dce90aaabfd039d000469c05c56f0b8e31978e03fa39052", [:mix], [{:decimal, "~> 1.0 or ~> 2.0", [hex: :decimal, repo: "hexpm", optional: true]}], "hexpm", "18a228f5f0058ee183f29f9eae0805c6e59d61c3b006760668d8d18ff0d12179"}, "makeup": {:hex, :makeup, "1.0.5", "d5a830bc42c9800ce07dd97fa94669dfb93d3bf5fcf6ea7a0c67b2e0e4a7f26c", [:mix], [{:nimble_parsec, "~> 0.5 or ~> 1.0", [hex: :nimble_parsec, repo: "hexpm", optional: false]}], "hexpm", "cfa158c02d3f5c0c665d0af11512fed3fba0144cf1aadee0f2ce17747fba2ca9"},