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.
Files changed (68) hide show
  1. checksums.yaml +4 -4
  2. data/.github/dependabot.yml +30 -1
  3. data/CHANGELOG.md +22 -0
  4. data/Gemfile +4 -1
  5. data/Gemfile.lock +3 -3
  6. data/data/cldr/likely_subtags.yml +1 -1
  7. data/data/cldr/locales/en/currencies.yml +4 -0
  8. data/data/cldr/locales/es/currencies.yml +5 -0
  9. data/data/cldr/locales/nl/currencies.yml +4 -0
  10. data/data/cldr/locales/root/currencies.yml +2 -0
  11. data/data/cldr/locales/sr/calendars.yml +232 -232
  12. data/data/cldr/locales/sr/characters.yml +5 -4
  13. data/data/cldr/locales/sr/currencies.yml +1134 -1134
  14. data/data/cldr/locales/sr/fields.yml +424 -426
  15. data/data/cldr/locales/sr/languages.yml +508 -508
  16. data/data/cldr/locales/sr/lists.yml +12 -12
  17. data/data/cldr/locales/sr/numbers.yml +108 -108
  18. data/data/cldr/locales/sr/rbnf.yml +123 -123
  19. data/data/cldr/locales/sr/subdivisions.yml +2478 -2478
  20. data/data/cldr/locales/sr/territories.yml +294 -294
  21. data/data/cldr/locales/sr/timezones.yml +765 -765
  22. data/data/cldr/locales/sr/units.yml +230 -230
  23. data/data/cldr/locales/sr-Cyrl/calendars.yml +375 -0
  24. data/data/cldr/locales/sr-Cyrl/characters.yml +12 -1
  25. data/data/cldr/locales/sr-Cyrl/currencies.yml +1673 -0
  26. data/data/cldr/locales/sr-Cyrl/delimiters.yml +10 -0
  27. data/data/cldr/locales/sr-Cyrl/fields.yml +669 -0
  28. data/data/cldr/locales/sr-Cyrl/languages.yml +511 -0
  29. data/data/cldr/locales/sr-Cyrl/lists.yml +33 -0
  30. data/data/cldr/locales/sr-Cyrl/numbers.yml +189 -0
  31. data/data/cldr/locales/sr-Cyrl/plurals.rb +1 -0
  32. data/data/cldr/locales/sr-Cyrl/rbnf.yml +288 -0
  33. data/data/cldr/locales/sr-Cyrl/subdivisions.yml +2481 -0
  34. data/data/cldr/locales/sr-Cyrl/territories.yml +297 -0
  35. data/data/cldr/locales/sr-Cyrl/timezones.yml +1537 -0
  36. data/data/cldr/locales/sr-Cyrl/units.yml +546 -0
  37. data/data/cldr/parent_locales.yml +2 -1
  38. data/data/cldr/paths.txt +13 -0
  39. data/data/other/currency/mappings/codes.yml +3 -0
  40. data/data/other/currency/mappings/digits.yml +2 -0
  41. data/data/other/generated/sr-Latn-BA.yml +17 -17
  42. data/data/other/generated/sr-Latn-ME.yml +15 -15
  43. data/data/other/generated/sr-Latn-RS.yml +15 -15
  44. data/data/other/generated/sr-Latn-XK.yml +15 -15
  45. data/data/other/generated/sr-Latn.yml +15 -15
  46. data/data/other/generated/sr.yml +73 -73
  47. data/data/other/hand_translated/sr.yml +15 -0
  48. data/data/other/paths.txt +1 -0
  49. data/data/regions/AR.yml +1 -0
  50. data/data/regions/AT.yml +1 -0
  51. data/data/regions/BE.yml +1 -0
  52. data/data/regions/BR.yml +1 -0
  53. data/data/regions/CH.yml +1 -0
  54. data/data/regions/CL.yml +1 -0
  55. data/data/regions/CZ.yml +1 -0
  56. data/data/regions/ES.yml +1 -0
  57. data/data/regions/FI.yml +1 -0
  58. data/data/regions/HU.yml +1 -0
  59. data/data/regions/MX.yml +1 -0
  60. data/data/regions/NO.yml +1 -0
  61. data/data/regions/PA.yml +3 -3
  62. data/data/regions/PT.yml +1 -0
  63. data/data/regions/SE.yml +1 -0
  64. data/data/regions/UY.yml +1 -0
  65. data/lib/worldwide/locale.rb +20 -23
  66. data/lib/worldwide/version.rb +1 -1
  67. data/lib/worldwide/zip.rb +1 -1
  68. metadata +16 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f5054681a0e6671c788effd1fdcd505371f6ce5eafadb9e4b7de96154a5547e5
4
- data.tar.gz: c6a2dd3e71e2cc77b06ac1cd4e70b5bf2c5f989e22d41676fec40f208a1a634f
3
+ metadata.gz: de8a80d57087c079ab1c023b73df7bab83b8e4d4efca610ada4fc1b36bf8a1fa
4
+ data.tar.gz: cb20c9fecdf12aaa8b8833deb5c19e7322e0799aa2f9bdb3fabba01d398d48f1
5
5
  SHA512:
6
- metadata.gz: 3e0f54d093e0b9e4a9543d4d2809caace44ec7593d557302aae58261e1fe4a8a0a3154e125c96c31062cf76ec828452d40087005daa5b67da2fe7d3933baaf67
7
- data.tar.gz: b68071dfe9fd8ffab70c95527aa739d62048e8d7e02d554cdd383f74d8418b89266bf993e9edc51f59a7aab902782c5c71dc88ac2807566b8d77f500dbb2a738
6
+ metadata.gz: 7bdd5c312d07f9ecf26be0ee0946d62d1d88980f9c071e8285972e85d68aa2cae9b236d053a6103098ceeef3246c7edf245c34873f3e06ad1b5cf86bc85869bf
7
+ data.tar.gz: b0a9fad71543e55efcb30e3fc3a2523602ca6f66e8f7455f19f5ab4101f6b0aadbe9f520259fc4d9776308d65fd9602fd0f98682cfa3faee6f5caa3bd434de2a
@@ -4,16 +4,45 @@ updates:
4
4
  directory: "/"
5
5
  schedule:
6
6
  interval: daily
7
- open-pull-requests-limit: 100
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
- gem "pry-byebug", require: false
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.31.2)
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.1)
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
@@ -1132,7 +1132,7 @@ subtags:
1132
1132
  spl: spl_Latn_ZZ
1133
1133
  sps: sps_Latn_ZZ
1134
1134
  sq: sq_Latn_AL
1135
- sr: sr_Cyrl_RS
1135
+ sr: sr_Latn_RS
1136
1136
  sr_ME: sr_Latn_ME
1137
1137
  sr_RO: sr_Latn_RO
1138
1138
  sr_RU: sr_Latn_RU
@@ -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
@@ -217,6 +217,8 @@ root:
217
217
  XCD:
218
218
  narrow_symbol: "$"
219
219
  symbol: EC$
220
+ XCG:
221
+ symbol: Cg
220
222
  XOF:
221
223
  symbol: F CFA
222
224
  XPF: