Skip to content

Commit

Permalink
Bump CLDR (#26)
Browse files Browse the repository at this point in the history
  • Loading branch information
Schultzer authored Jan 14, 2023
1 parent b4ef305 commit 2da213e
Show file tree
Hide file tree
Showing 7 changed files with 24 additions and 11 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/elixir.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
elixir: [1.11.0]
otp: [22.3]
elixir: [">1.11"]
otp: [">22"]
steps:
- uses: actions/checkout@v2
- name: Set up Elixir
Expand Down
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Changelog

## Cldr Territories v2.6.0 January 14, 2023

### Enhancements

* Updates to support [CLDR release 42](https://cldr.unicode.org/index/downloads/cldr-42) via [ex_cldr version 2.34](https://hex.pm/packages/ex_cldr/2.34.0)

## Cldr Territories v2.5.0 Octorber 24, 2022

### Enhancements
Expand Down
6 changes: 4 additions & 2 deletions lib/cldr/backend.ex
Original file line number Diff line number Diff line change
Expand Up @@ -732,7 +732,8 @@ defmodule Cldr.Territory.Backend do
"ta" => %{population_percent: 3.2},
"tr" => %{population_percent: 0.2},
"ur" => %{population_percent: 3.5},
"zh-Hant" => %{population_percent: 0.3}
"zh-Hant" => %{population_percent: 0.3},
"en-Shaw" => %{population_percent: 0}
},
literacy_percent: 99,
measurement_system: %{
Expand Down Expand Up @@ -783,7 +784,8 @@ defmodule Cldr.Territory.Backend do
"ta" => %{population_percent: 3.2},
"tr" => %{population_percent: 0.2},
"ur" => %{population_percent: 3.5},
"zh-Hant" => %{population_percent: 0.3}
"zh-Hant" => %{population_percent: 0.3},
"en-Shaw" => %{population_percent: 0}
},
literacy_percent: 99,
measurement_system: %{
Expand Down
6 changes: 4 additions & 2 deletions lib/cldr/territory.ex
Original file line number Diff line number Diff line change
Expand Up @@ -739,7 +739,8 @@ defmodule Cldr.Territory do
"ta" => %{population_percent: 3.2},
"tr" => %{population_percent: 0.2},
"ur" => %{population_percent: 3.5},
"zh-Hant" => %{population_percent: 0.3}
"zh-Hant" => %{population_percent: 0.3},
"en-Shaw" => %{population_percent: 0}
},
literacy_percent: 99,
measurement_system: %{
Expand Down Expand Up @@ -798,7 +799,8 @@ defmodule Cldr.Territory do
"ta" => %{population_percent: 3.2},
"tr" => %{population_percent: 0.2},
"ur" => %{population_percent: 3.5},
"zh-Hant" => %{population_percent: 0.3}
"zh-Hant" => %{population_percent: 0.3},
"en-Shaw" => %{population_percent: 0}
},
literacy_percent: 99,
measurement_system: %{
Expand Down
4 changes: 2 additions & 2 deletions mix.exs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
defmodule Cldr.Territories.Mixfile do
use Mix.Project

@version "2.5.0"
@version "2.6.0"

def project do
[
Expand Down Expand Up @@ -39,7 +39,7 @@ defmodule Cldr.Territories.Mixfile do

defp deps do
[
{:ex_cldr, "~> 2.33"},
{:ex_cldr, "~> 2.34"},
{:ex_doc, "~> 0.18", only: [:release, :dev]},
{:jason, "~> 1.0", optional: true},
{:dialyxir, "~> 1.0", only: [:dev], runtime: false, optional: true},
Expand Down
2 changes: 1 addition & 1 deletion mix.lock
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"earmark": {:hex, :earmark, "1.4.5", "62ffd3bd7722fb7a7b1ecd2419ea0b458c356e7168c1f5d65caf09b4fbdd13c8", [:mix], [], "hexpm", "b7d0e6263d83dc27141a523467799a685965bf8b13b6743413f19a7079843f4f"},
"earmark_parser": {:hex, :earmark_parser, "1.4.19", "de0d033d5ff9fc396a24eadc2fcf2afa3d120841eb3f1004d138cbf9273210e8", [:mix], [], "hexpm", "527ab6630b5c75c3a3960b75844c314ec305c76d9899bb30f71cb85952a9dc45"},
"erlex": {:hex, :erlex, "0.2.6", "c7987d15e899c7a2f34f5420d2a2ea0d659682c06ac607572df55a43753aa12e", [:mix], [], "hexpm", "2ed2e25711feb44d52b17d2780eabf998452f6efda104877a3881c2f8c0c0c75"},
"ex_cldr": {:hex, :ex_cldr, "2.33.2", "8adc4df3985e7f5d1d55cbbf72f993569de20eff5012ff3ea9412753961d4c00", [:mix], [{:castore, "~> 0.1", [hex: :castore, repo: "hexpm", optional: true]}, {:certifi, "~> 2.5", [hex: :certifi, repo: "hexpm", optional: true]}, {:cldr_utils, "~> 2.18", [hex: :cldr_utils, repo: "hexpm", optional: false]}, {:decimal, "~> 1.6 or ~> 2.0", [hex: :decimal, repo: "hexpm", optional: false]}, {:gettext, "~> 0.19", [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]}], "hexpm", "fd81a7147b4ed86c0c44c0251444cb8d1defccc7b33b89067ca1635f23e9fbf8"},
"ex_cldr": {:hex, :ex_cldr, "2.34.0", "50385e1445f33537bea7d24ca7525aa849ccabb3cf88ac41a6d183693116aba7", [:mix], [{:castore, "~> 0.1", [hex: :castore, repo: "hexpm", optional: true]}, {:certifi, "~> 2.5", [hex: :certifi, repo: "hexpm", optional: true]}, {:cldr_utils, "~> 2.18", [hex: :cldr_utils, repo: "hexpm", optional: false]}, {:decimal, "~> 1.6 or ~> 2.0", [hex: :decimal, repo: "hexpm", optional: false]}, {:gettext, "~> 0.19", [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]}], "hexpm", "d026df7d580424ab8daf0d908fd38d3c12e0a63962b495b7faeabd66ab072588"},
"ex_doc": {:hex, :ex_doc, "0.28.1", "34fab7e7201c5a1f275f3b2f837125c940c512e8543d181bd4dd7acb19c8dba0", [:mix], [{:earmark_parser, "~> 1.4.19", [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", "10e564dd59101a5edc4de7009a54baed015a246dee01f7200aab24e8f57fc044"},
"jason": {:hex, :jason, "1.4.0", "e855647bc964a44e2f67df589ccf49105ae039d4179db7f6271dfd3843dc27e6", [:mix], [{:decimal, "~> 1.0 or ~> 2.0", [hex: :decimal, repo: "hexpm", optional: true]}], "hexpm", "79a3791085b2a0f743ca04cec0f7be26443738779d09302e01318f97bdb82121"},
"makeup": {:hex, :makeup, "1.1.0", "6b67c8bc2882a6b6a445859952a602afc1a41c2e08379ca057c0f525366fc3ca", [:mix], [{:nimble_parsec, "~> 1.2.2 or ~> 1.3", [hex: :nimble_parsec, repo: "hexpm", optional: false]}], "hexpm", "0a45ed501f4a8897f580eabf99a2e5234ea3e75a4373c8a52824f6e873be57a6"},
Expand Down
7 changes: 5 additions & 2 deletions test/territory_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,10 @@ defmodule Cldr.TerritoryTest do
"ru" => %{population_percent: 0.24},
"vi" => %{population_percent: 0.34},
"yi" => %{population_percent: 0.049},
"zh-Hant" => %{population_percent: 0.69}
"zh-Hant" => %{population_percent: 0.69},
"hnj" => %{population_percent: 0.035},
"io" => %{population_percent: 0},
"jbo" => %{population_percent: 0}
},
literacy_percent: 99,
measurement_system: %{
Expand Down Expand Up @@ -89,7 +92,7 @@ defmodule Cldr.TerritoryTest do
end

test "locales with subdivisions" do
assert 5517 == length(TestBackend.Cldr.Territory.available_subdivisions(@us))
assert 5384 == length(TestBackend.Cldr.Territory.available_subdivisions(@us))
end
end

Expand Down

0 comments on commit 2da213e

Please sign in to comment.