Skip to content

Commit

Permalink
Merge branch 'main' into integration-test
Browse files Browse the repository at this point in the history
  • Loading branch information
kipcole9 committed Apr 21, 2024
2 parents a7a9cc5 + 5c7bafa commit 67b09f8
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 5 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,14 @@

**Note that `ex_cldr` version 2.33.0 and later are supported on Elixir 1.11 and later only.**

## Cldr v2.38.1

This is the changelog for Cldr v2.38.1 released on ______, 2024. For older changelogs please consult the release tag on [GitHub](https://github.com/elixir-cldr/cldr/tags)

### Bug Fixes

* Sort currency data in `Cldr.Config.territories/0` so ensure deterministic order. Closes #227.

## Cldr v2.38.0

This is the changelog for Cldr v2.38.0 released on April 21st, 2024. For older changelogs please consult the release tag on [GitHub](https://github.com/elixir-cldr/cldr/tags)
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ The currently known providers and their `hex` package names are:
| ex_cldr_locale_display | Cldr.LocaleDisplay | Localising locale names |
| ex_cldr_routes | Cldr.Route | Localized routes and route helpers |
| ex_money | Money | Operations on and formatting of a money type |
| ex_messages | Cldr.Message | Formatting of ICU-formatted messages |
| ex_cldr_messages | Cldr.Message | Formatting of ICU-formatted messages |

Any library author can create a provider module by exposing a function called `cldr_backend_provider/1` that takes a `Cldr.Config` struct as a single parameter. The function should return an AST that is inserted into the `backend` module being compiled.

Expand Down
2 changes: 1 addition & 1 deletion lib/cldr/config/config.ex
Original file line number Diff line number Diff line change
Expand Up @@ -1826,7 +1826,7 @@ defmodule Cldr.Config do
{currency, data}
end)

{territory, Map.put(data, :currency, currencies)}
{territory, Map.put(data, :currency, Enum.sort(currencies))}
end)
|> Map.new()
end
Expand Down
6 changes: 3 additions & 3 deletions test/cldr_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -248,10 +248,10 @@ defmodule Cldr.Test do
test "that we can have repeated currencies in a territory" do
assert Cldr.Config.territory(:PS)[:currency] ==
[
JOD: %{from: ~D[1996-02-12]},
JOD: %{from: ~D[1950-07-01], to: ~D[1967-06-01]},
ILP: %{from: ~D[1967-06-01], to: ~D[1980-02-22]},
ILS: %{from: ~D[1985-09-04]},
ILP: %{from: ~D[1967-06-01], to: ~D[1980-02-22]}
JOD: %{from: ~D[1996-02-12]},
JOD: %{from: ~D[1950-07-01], to: ~D[1967-06-01]}
]
end

Expand Down

0 comments on commit 67b09f8

Please sign in to comment.