Skip to content

Commit

Permalink
Revert territory alias encoding. Closes #216
Browse files Browse the repository at this point in the history
  • Loading branch information
kipcole9 committed Oct 12, 2023
1 parent db544e6 commit 0a59e71
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 10 deletions.
10 changes: 9 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,15 @@

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

## Cldr v2.37.3
## Cldr v2.37.4

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

### Bug Fixes

* Reverts a change to the format of the alias data for subdivisions which was causing an exception in `ex_cldr_territories`. The change, which normalizes subdivision codes to be upcase atoms when the subdivision has its own ISO 3166 territory code, will be be added back for `ex_cldr` version 2.38.0 which will align with CLDR 44. Closes #216.

## Cldr v2.37.3 [Deprecated]

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

Expand Down
16 changes: 8 additions & 8 deletions lib/cldr/config/config.ex
Original file line number Diff line number Diff line change
Expand Up @@ -1940,14 +1940,14 @@ defmodule Cldr.Config do
|> File.read!()
|> json_library().decode!
|> Cldr.Map.atomize_keys(level: 1..1)
|> Cldr.Map.deep_map(fn
{k, v} when is_binary(v) ->
if String.length(v) == 2, do: {k, String.to_atom(v)}, else: {k, v}
other ->
other
end,
filter: :subdivision
)
# |> Cldr.Map.deep_map(fn
# {k, v} when is_binary(v) ->
# if String.length(v) == 2, do: {k, String.to_atom(v)}, else: {k, v}
# other ->
# other
# end,
# filter: :subdivision
# )
|> structify_languages
end

Expand Down
2 changes: 1 addition & 1 deletion mix.exs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
defmodule Cldr.Mixfile do
use Mix.Project

@version "2.37.3"
@version "2.37.4"

def project do
[
Expand Down

0 comments on commit 0a59e71

Please sign in to comment.