Skip to content

Commit 28b0298

Browse files
committed
Update to CLDR v42.
1 parent 5491042 commit 28b0298

File tree

4 files changed

+60
-49
lines changed

4 files changed

+60
-49
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
Handles currency amounts, provides currency information and formatting.
44

5-
Powered by CLDR v41, in just ~30kb of data.
5+
Powered by CLDR v42, in just ~30kb of data.
66

77
Backstory: https://bojanz.github.io/price-currency-handling-go/
88

data.go

+57-41
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

formatter_test.go

+1-6
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ func TestFormatter_Format(t *testing.T) {
4444
{"1234.00", "CHF", "sr", "1.234,00\u00a0CHF"},
4545

4646
// Arabic digits.
47-
{"12345678.90", "USD", "ar", "١٢٬٣٤٥٬٦٧٨٫٩٠\u00a0US$"},
47+
{"12345678.90", "USD", "ar", "\u200f١٢٬٣٤٥٬٦٧٨٫٩٠\u00a0US$"},
4848
// Arabic extended (Persian) digits.
4949
{"12345678.90", "USD", "fa", "\u200e$۱۲٬۳۴۵٬۶۷۸٫۹۰"},
5050
// Bengali digits.
@@ -95,11 +95,6 @@ func TestFormatter_Grouping(t *testing.T) {
9595
{"1234.99", "USD", "hi", false, "$1,234.99"},
9696
{"1234567.99", "USD", "hi", false, "$12,34,567.99"},
9797
{"12345678.99", "USD", "hi", false, "$1,23,45,678.99"},
98-
99-
// The "bg" locale doesn't support grouping.
100-
{"123.99", "EUR", "bg", false, "123,99\u00a0€"},
101-
{"1234.99", "EUR", "bg", false, "1234,99\u00a0€"},
102-
{"1234567.99", "EUR", "bg", false, "1234567,99\u00a0€"},
10398
}
10499

105100
for _, tt := range tests {

gen.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -716,7 +716,7 @@ func shouldIgnoreLocale(locale string) bool {
716716
// Not present in "modern" data, just listed in parentLocales.
717717
"bm", "byn", "dje", "dyo", "ff", "ha", "shi", "vai", "wo", "yo",
718718
// Infrequently used locales.
719-
"jv", "kn", "ml", "row", "sat", "sd",
719+
"jv", "kn", "ml", "row", "sat", "sd", "to",
720720
}
721721
localeParts := strings.Split(locale, "-")
722722
ignore := false

0 commit comments

Comments
 (0)