Skip to content

Commit

Permalink
Ready for release
Browse files Browse the repository at this point in the history
  • Loading branch information
kipcole9 committed Jul 1, 2021
1 parent 33b5ecb commit 60e6bc1
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
4 changes: 3 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,12 @@

## Cldr_Currencies v2.11.0

This is the changelog for Cldr_Currencies v2.11.0 released on ______, 2021. For older changelogs please consult the release tag on [GitHub](https://github.com/elixir-cldr/cldr_currencies/tags)
This is the changelog for Cldr_Currencies v2.11.0 released on July 1st, 2021. For older changelogs please consult the release tag on [GitHub](https://github.com/elixir-cldr/cldr_currencies/tags)

### Enhancments

* Adds support for the `Cldr.DisplayName` protocol for `t:Cldr.Currency` structs.

* Updated to [ex_cldr version 2.23.0](https://hex.pm/packages/ex_cldr/2.23.0) which changes the names of some of the field in the "-u-" extension to match the CLDR canonical name. In particular the field name `currency_format` changes to `cf`.

## Cldr_Currencies v2.10.1
Expand Down
9 changes: 8 additions & 1 deletion lib/cldr/currency.ex
Original file line number Diff line number Diff line change
Expand Up @@ -758,7 +758,7 @@ defmodule Cldr.Currency do
:AUD
"""
@spec current_currency_for_territory(Cldr.territory()) ::
@spec current_currency_for_territory(Cldr.Locale.territory()) ::
code() | nil | {:error, {module(), String.t()}}

def current_currency_for_territory(territory) do
Expand Down Expand Up @@ -1369,4 +1369,11 @@ defmodule Cldr.Currency do
Cldr.default_backend()
end
end

defimpl Cldr.DisplayName do
def display_name(currency, options) do
{:ok, display_name} = Cldr.Currency.display_name(currency, options)
display_name
end
end
end
2 changes: 1 addition & 1 deletion mix.exs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
defmodule Cldr.Currencies.MixProject do
use Mix.Project

@version "2.11.0-dev"
@version "2.11.0"

def project do
[
Expand Down

0 comments on commit 60e6bc1

Please sign in to comment.