worldwide 1.31.2 → 2.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.github/dependabot.yml +30 -1
- data/CHANGELOG.md +22 -0
- data/Gemfile +4 -1
- data/Gemfile.lock +3 -3
- data/data/cldr/likely_subtags.yml +1 -1
- data/data/cldr/locales/en/currencies.yml +4 -0
- data/data/cldr/locales/es/currencies.yml +5 -0
- data/data/cldr/locales/nl/currencies.yml +4 -0
- data/data/cldr/locales/root/currencies.yml +2 -0
- data/data/cldr/locales/sr/calendars.yml +232 -232
- data/data/cldr/locales/sr/characters.yml +5 -4
- data/data/cldr/locales/sr/currencies.yml +1134 -1134
- data/data/cldr/locales/sr/fields.yml +424 -426
- data/data/cldr/locales/sr/languages.yml +508 -508
- data/data/cldr/locales/sr/lists.yml +12 -12
- data/data/cldr/locales/sr/numbers.yml +108 -108
- data/data/cldr/locales/sr/rbnf.yml +123 -123
- data/data/cldr/locales/sr/subdivisions.yml +2478 -2478
- data/data/cldr/locales/sr/territories.yml +294 -294
- data/data/cldr/locales/sr/timezones.yml +765 -765
- data/data/cldr/locales/sr/units.yml +230 -230
- data/data/cldr/locales/sr-Cyrl/calendars.yml +375 -0
- data/data/cldr/locales/sr-Cyrl/characters.yml +12 -1
- data/data/cldr/locales/sr-Cyrl/currencies.yml +1673 -0
- data/data/cldr/locales/sr-Cyrl/delimiters.yml +10 -0
- data/data/cldr/locales/sr-Cyrl/fields.yml +669 -0
- data/data/cldr/locales/sr-Cyrl/languages.yml +511 -0
- data/data/cldr/locales/sr-Cyrl/lists.yml +33 -0
- data/data/cldr/locales/sr-Cyrl/numbers.yml +189 -0
- data/data/cldr/locales/sr-Cyrl/plurals.rb +1 -0
- data/data/cldr/locales/sr-Cyrl/rbnf.yml +288 -0
- data/data/cldr/locales/sr-Cyrl/subdivisions.yml +2481 -0
- data/data/cldr/locales/sr-Cyrl/territories.yml +297 -0
- data/data/cldr/locales/sr-Cyrl/timezones.yml +1537 -0
- data/data/cldr/locales/sr-Cyrl/units.yml +546 -0
- data/data/cldr/parent_locales.yml +2 -1
- data/data/cldr/paths.txt +13 -0
- data/data/other/currency/mappings/codes.yml +3 -0
- data/data/other/currency/mappings/digits.yml +2 -0
- data/data/other/generated/sr-Latn-BA.yml +17 -17
- data/data/other/generated/sr-Latn-ME.yml +15 -15
- data/data/other/generated/sr-Latn-RS.yml +15 -15
- data/data/other/generated/sr-Latn-XK.yml +15 -15
- data/data/other/generated/sr-Latn.yml +15 -15
- data/data/other/generated/sr.yml +73 -73
- data/data/other/hand_translated/sr.yml +15 -0
- data/data/other/paths.txt +1 -0
- data/data/regions/AR.yml +1 -0
- data/data/regions/AT.yml +1 -0
- data/data/regions/BE.yml +1 -0
- data/data/regions/BR.yml +1 -0
- data/data/regions/CH.yml +1 -0
- data/data/regions/CL.yml +1 -0
- data/data/regions/CZ.yml +1 -0
- data/data/regions/ES.yml +1 -0
- data/data/regions/FI.yml +1 -0
- data/data/regions/HU.yml +1 -0
- data/data/regions/MX.yml +1 -0
- data/data/regions/NO.yml +1 -0
- data/data/regions/PA.yml +3 -3
- data/data/regions/PT.yml +1 -0
- data/data/regions/SE.yml +1 -0
- data/data/regions/UY.yml +1 -0
- data/lib/worldwide/locale.rb +20 -23
- data/lib/worldwide/version.rb +1 -1
- data/lib/worldwide/zip.rb +1 -1
- metadata +16 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: de8a80d57087c079ab1c023b73df7bab83b8e4d4efca610ada4fc1b36bf8a1fa
|
|
4
|
+
data.tar.gz: cb20c9fecdf12aaa8b8833deb5c19e7322e0799aa2f9bdb3fabba01d398d48f1
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 7bdd5c312d07f9ecf26be0ee0946d62d1d88980f9c071e8285972e85d68aa2cae9b236d053a6103098ceeef3246c7edf245c34873f3e06ad1b5cf86bc85869bf
|
|
7
|
+
data.tar.gz: b0a9fad71543e55efcb30e3fc3a2523602ca6f66e8f7455f19f5ab4101f6b0aadbe9f520259fc4d9776308d65fd9602fd0f98682cfa3faee6f5caa3bd434de2a
|
data/.github/dependabot.yml
CHANGED
|
@@ -4,16 +4,45 @@ updates:
|
|
|
4
4
|
directory: "/"
|
|
5
5
|
schedule:
|
|
6
6
|
interval: daily
|
|
7
|
-
open-pull-requests-limit:
|
|
7
|
+
open-pull-requests-limit: 5
|
|
8
8
|
insecure-external-code-execution: allow
|
|
9
|
+
groups:
|
|
10
|
+
bundler-minor-and-patch:
|
|
11
|
+
patterns:
|
|
12
|
+
- "*"
|
|
13
|
+
update-types:
|
|
14
|
+
- minor
|
|
15
|
+
- patch
|
|
16
|
+
ignore:
|
|
17
|
+
# Dependabot resolves the bundle with Ruby 3.1.7, the lowest version
|
|
18
|
+
# worldwide.gemspec allows. pry-byebug >= 3.12 requires Ruby >= 3.2, so
|
|
19
|
+
# every attempt to update it fails. The Gemfile also caps it at < 3.12.
|
|
20
|
+
- dependency-name: "pry-byebug"
|
|
21
|
+
versions: [">= 3.12"]
|
|
9
22
|
- package-ecosystem: npm
|
|
10
23
|
directory: "/lang/typescript"
|
|
11
24
|
schedule:
|
|
12
25
|
interval: daily
|
|
26
|
+
open-pull-requests-limit: 5
|
|
27
|
+
groups:
|
|
28
|
+
npm-minor-and-patch:
|
|
29
|
+
patterns:
|
|
30
|
+
- "*"
|
|
31
|
+
update-types:
|
|
32
|
+
- minor
|
|
33
|
+
- patch
|
|
13
34
|
- package-ecosystem: github-actions
|
|
14
35
|
directory: "/"
|
|
15
36
|
schedule:
|
|
16
37
|
interval: weekly
|
|
38
|
+
open-pull-requests-limit: 5
|
|
39
|
+
groups:
|
|
40
|
+
github-actions-minor-and-patch:
|
|
41
|
+
patterns:
|
|
42
|
+
- "*"
|
|
43
|
+
update-types:
|
|
44
|
+
- minor
|
|
45
|
+
- patch
|
|
17
46
|
ignore:
|
|
18
47
|
# Can not bump past v1.5.1 until https://github.com/changesets/action/issues/501 is fixed
|
|
19
48
|
- dependency-name: "changesets/action"
|
data/CHANGELOG.md
CHANGED
|
@@ -29,6 +29,28 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
|
29
29
|
|
|
30
30
|
---
|
|
31
31
|
|
|
32
|
+
## [2.1.0] - 2026-11-10
|
|
33
|
+
|
|
34
|
+
- Accept Panama's 10-character postal codes (`XXXXX-XXXXX`, for example `ADC96-M8H44`), as well as the 4-digit codes. `Zip.normalize` puts the hyphen after the 5th character. [#678](https://github.com/Shopify/worldwide/pull/678)
|
|
35
|
+
- Add street-first `address1` formats for AR, AT, BE, BR, CH, CL, CZ, ES, FI, HU, MX, NO, PT, SE, and UY.
|
|
36
|
+
- Add the XCG (Caribbean guilder) currency, which replaced ANG in Curaçao and Sint Maarten on 2025-03-31. XCG has English, Dutch and Spanish names, the symbol `Cg` and 2 decimal places. ANG is unchanged and still available. XCG has no numeric code yet, because ISO gives it 532, the code ANG uses, so `Worldwide::Currencies.alpha_code_for(532)` still returns `"ANG"`.
|
|
37
|
+
|
|
38
|
+
---
|
|
39
|
+
|
|
40
|
+
## [2.0.1] - 2026-10-27
|
|
41
|
+
|
|
42
|
+
- Dependabot now groups minor and patch updates into one pull request per ecosystem (bundler, npm, GitHub Actions) and limits open pull requests to 5. [#655](https://github.com/Shopify/worldwide/pull/655)
|
|
43
|
+
- Fix `Worldwide::Locale#name` and `#endonym` returning the result of their first call on the same object, even when later calls asked for a different `locale:` or `context:`. Because `Worldwide.locale(code:)` reuses objects, `Worldwide.locale(code: "de").name(locale: :en)` could return `allemand` after an earlier French call. [#658](https://github.com/Shopify/worldwide/pull/658)
|
|
44
|
+
- Fix `Worldwide::Locale#script` returning `Cyrl` for bare `sr`, `sr-RS`, `sr-BA` and `sr-XK`, whose CLDR data has been Serbian Latin since 2.0.0. The data patch step now also maps `sr` to `sr_Latn_RS` in the likely subtags, so these locales report `Latn`. `sr-Cyrl` and its regional variants still report `Cyrl`. [#657](https://github.com/Shopify/worldwide/pull/657)
|
|
45
|
+
|
|
46
|
+
---
|
|
47
|
+
|
|
48
|
+
## [2.0.0] - 2026-10-27
|
|
49
|
+
|
|
50
|
+
- **Breaking:** The bare `sr` locale now uses Serbian Latin instead of Cyrillic for CLDR data and date/time formats. Use `sr-Cyrl` to retain Cyrillic output; `sr-Latn` remains Latin. This reintroduces [#631](https://github.com/Shopify/worldwide/pull/631) for the 2.0.0 release after the 1.x compatibility restoration in [#645](https://github.com/Shopify/worldwide/pull/645). [#647](https://github.com/Shopify/worldwide/pull/647)
|
|
51
|
+
|
|
52
|
+
---
|
|
53
|
+
|
|
32
54
|
## [1.31.2] - 2026-10-22
|
|
33
55
|
|
|
34
56
|
- Fix Catalan names of Spain's provinces. They now drop the inconsistently capitalized "província de" prefix and the `²` markers CLDR uses for duplicate names, e.g. `Alacant` instead of `província d’Alacant` and `Illes Balears` instead of `Illes Balears²`. [#651](https://github.com/Shopify/worldwide/pull/651)
|
data/Gemfile
CHANGED
|
@@ -20,7 +20,10 @@ group :development do
|
|
|
20
20
|
gem "rubocop-shopify", require: false
|
|
21
21
|
gem "rubocop", require: false
|
|
22
22
|
gem "ruby-lsp", require: false
|
|
23
|
-
|
|
23
|
+
# pry-byebug >= 3.12 requires Ruby >= 3.2, but the gemspec still supports Ruby 3.1.
|
|
24
|
+
# Keep the lockfile installable on Ruby 3.1. Dependabot ignores newer versions
|
|
25
|
+
# via .github/dependabot.yml.
|
|
26
|
+
gem "pry-byebug", "< 3.12", require: false
|
|
24
27
|
end
|
|
25
28
|
|
|
26
29
|
group :test do
|
data/Gemfile.lock
CHANGED
|
@@ -13,7 +13,7 @@ GIT
|
|
|
13
13
|
PATH
|
|
14
14
|
remote: .
|
|
15
15
|
specs:
|
|
16
|
-
worldwide (1.
|
|
16
|
+
worldwide (2.1.0)
|
|
17
17
|
activesupport (>= 7.0)
|
|
18
18
|
i18n (>= 1.15)
|
|
19
19
|
phonelib (~> 0.8)
|
|
@@ -82,7 +82,7 @@ GEM
|
|
|
82
82
|
racc (1.8.1)
|
|
83
83
|
rainbow (3.1.1)
|
|
84
84
|
rake (13.4.2)
|
|
85
|
-
rake-compiler (1.3.
|
|
85
|
+
rake-compiler (1.3.3)
|
|
86
86
|
rake
|
|
87
87
|
rbs (3.10.4)
|
|
88
88
|
logger
|
|
@@ -145,7 +145,7 @@ DEPENDENCIES
|
|
|
145
145
|
minitest-focus
|
|
146
146
|
minitest-reporters
|
|
147
147
|
mocha
|
|
148
|
-
pry-byebug
|
|
148
|
+
pry-byebug (< 3.12)
|
|
149
149
|
rake (~> 13.4)
|
|
150
150
|
rake-compiler
|
|
151
151
|
rubocop
|
|
@@ -1111,6 +1111,10 @@ en:
|
|
|
1111
1111
|
name: East Caribbean Dollar
|
|
1112
1112
|
one: East Caribbean dollar
|
|
1113
1113
|
other: East Caribbean dollars
|
|
1114
|
+
XCG:
|
|
1115
|
+
name: Caribbean Guilder
|
|
1116
|
+
one: Caribbean guilder
|
|
1117
|
+
other: Caribbean guilders
|
|
1114
1118
|
XDR:
|
|
1115
1119
|
name: Special Drawing Rights
|
|
1116
1120
|
one: special drawing rights
|
|
@@ -1477,6 +1477,11 @@ es:
|
|
|
1477
1477
|
one: dólar del Caribe Oriental
|
|
1478
1478
|
other: dólares del Caribe Oriental
|
|
1479
1479
|
symbol: XCD
|
|
1480
|
+
XCG:
|
|
1481
|
+
many: florines caribeños
|
|
1482
|
+
name: florín caribeño
|
|
1483
|
+
one: florín caribeño
|
|
1484
|
+
other: florines caribeños
|
|
1480
1485
|
XDR:
|
|
1481
1486
|
name: derechos especiales de giro
|
|
1482
1487
|
XEU:
|
|
@@ -1471,6 +1471,10 @@ nl:
|
|
|
1471
1471
|
one: Oost-Caribische dollar
|
|
1472
1472
|
other: Oost-Caribische dollar
|
|
1473
1473
|
symbol: EC$
|
|
1474
|
+
XCG:
|
|
1475
|
+
name: Caribische gulden
|
|
1476
|
+
one: Caribische gulden
|
|
1477
|
+
other: Caribische gulden
|
|
1474
1478
|
XDR:
|
|
1475
1479
|
name: Special Drawing Rights
|
|
1476
1480
|
one: Special Drawing Rights
|