worldwide 0.13.0 → 0.14.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (56) hide show
  1. checksums.yaml +4 -4
  2. data/.github/dependabot.yml +20 -0
  3. data/CHANGELOG.md +8 -2
  4. data/Gemfile.lock +1 -1
  5. data/db/data/regions/AE/bg.yml +1 -3
  6. data/db/data/regions/AE/cs.yml +1 -3
  7. data/db/data/regions/AE/da.yml +1 -3
  8. data/db/data/regions/AE/de.yml +1 -3
  9. data/db/data/regions/AE/el.yml +1 -3
  10. data/db/data/regions/AE/en.yml +1 -3
  11. data/db/data/regions/AE/es.yml +1 -3
  12. data/db/data/regions/AE/fi.yml +1 -3
  13. data/db/data/regions/AE/fr.yml +1 -3
  14. data/db/data/regions/AE/hi.yml +1 -3
  15. data/db/data/regions/AE/hr.yml +1 -3
  16. data/db/data/regions/AE/hu.yml +1 -3
  17. data/db/data/regions/AE/id.yml +1 -3
  18. data/db/data/regions/AE/it.yml +1 -3
  19. data/db/data/regions/AE/ja.yml +1 -3
  20. data/db/data/regions/AE/ko.yml +1 -3
  21. data/db/data/regions/AE/lt.yml +1 -3
  22. data/db/data/regions/AE/ms.yml +1 -2
  23. data/db/data/regions/AE/nb.yml +1 -3
  24. data/db/data/regions/AE/nl.yml +1 -3
  25. data/db/data/regions/AE/pl.yml +1 -3
  26. data/db/data/regions/AE/pt-BR.yml +1 -3
  27. data/db/data/regions/AE/pt-PT.yml +1 -3
  28. data/db/data/regions/AE/ro.yml +1 -3
  29. data/db/data/regions/AE/ru.yml +1 -3
  30. data/db/data/regions/AE/sk.yml +1 -3
  31. data/db/data/regions/AE/sl.yml +1 -3
  32. data/db/data/regions/AE/sv.yml +1 -3
  33. data/db/data/regions/AE/th.yml +1 -3
  34. data/db/data/regions/AE/tr.yml +1 -3
  35. data/db/data/regions/AE/vi.yml +1 -3
  36. data/db/data/regions/AE/zh-CN.yml +1 -3
  37. data/db/data/regions/AE/zh-TW.yml +1 -3
  38. data/db/data/regions/AE.yml +2 -3
  39. data/db/data/regions/BE.yml +1 -1
  40. data/db/data/regions/BR.yml +2 -2
  41. data/db/data/regions/CL.yml +3 -3
  42. data/db/data/regions/CO.yml +2 -2
  43. data/db/data/regions/ES.yml +1 -1
  44. data/db/data/regions/ID.yml +2 -2
  45. data/db/data/regions/IL.yml +8 -0
  46. data/db/data/regions/MX.yml +4 -4
  47. data/db/data/regions/PH.yml +2 -2
  48. data/db/data/regions/TR.yml +2 -2
  49. data/db/data/regions/TW.yml +1 -1
  50. data/db/data/regions/VN.yml +2 -2
  51. data/db/data/regions/_default/en.yml +23 -1
  52. data/db/data/regions/_default/pl.yml +1 -1
  53. data/lib/worldwide/address.rb +3 -0
  54. data/lib/worldwide/field.rb +1 -0
  55. data/lib/worldwide/version.rb +1 -1
  56. metadata +3 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e5f1c770329ba40871714943c6c452fef6f83dfd0cd953d7f77eed768813ca50
4
- data.tar.gz: 0f2c38dbe144fb20a6170ee96fe21311e87fd684c2f3ed6371f00c55071d8cef
3
+ metadata.gz: 71a30322e1ce268ee14bd305d110453248f648b24578674e44dce7d4efa965ee
4
+ data.tar.gz: ead9f3925d94766690e304e6f116057f57cca186eaa80921eb465c24f1559bc9
5
5
  SHA512:
6
- metadata.gz: ef479b6e96db4c6f6e8115c90486698fe640c426fb8ce64064ae1fa5508fecb05d15971590713f5ed3ad957ea1248d0948a6b2f3f076ccfee54837d9306b69ea
7
- data.tar.gz: 037644c70830596802059e8b924abf2b8a07352f0b35aaa3c3bb856c90fae026276d6b7721bd597931105814441e9924b2ab3edff28572b10515d82035532885
6
+ metadata.gz: 6c9a8ea7a0c92d45b2ba4464a5f7b1d33441fcc8ef7aaf7f2c4dc4a350f5eb7a44bb34e397562faab6e7da4c4e7b266b0c42663a1eed86c28e42b92373b5a6a2
7
+ data.tar.gz: 4b36019c2de3ee5d88f8d888c12ae73bedd25ff68465765e0c0a08c31208b44333150d0522e92730e483f9dd43abe4cb1aab00190c2efbc3ee35001939ea14e0
@@ -0,0 +1,20 @@
1
+ version: 2
2
+ registries:
3
+ ruby-shopify:
4
+ type: rubygems-server
5
+ url: https://pkgs.shopify.io/basic/gems/ruby
6
+ username: ${{secrets.RUBYGEMS_SERVER_PKGS_SHOPIFY_IO_USERNAME}}
7
+ password: ${{secrets.RUBYGEMS_SERVER_PKGS_SHOPIFY_IO_PASSWORD}}
8
+ github-com:
9
+ type: git
10
+ url: https://github.com
11
+ username: ${{secrets.DEPENDENCIES_GITHUB_USER}}
12
+ password: ${{secrets.DEPENDENCIES_GITHUB_TOKEN}}
13
+ updates:
14
+ - package-ecosystem: bundler
15
+ directory: "/"
16
+ schedule:
17
+ interval: daily
18
+ open-pull-requests-limit: 100
19
+ insecure-external-code-execution: allow
20
+ registries: "*"
data/CHANGELOG.md CHANGED
@@ -27,16 +27,22 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
27
27
 
28
28
  ## [Unreleased]
29
29
 
30
- nil.
31
-
32
30
  ---
33
31
 
32
+ ## [0.14.0] - 2024-05-29
33
+
34
+ - Add support for a line2 address field [#173](https://github.com/Shopify/worldwide/pull/173)
35
+ - Remove city from UAE address form and enable city autofill [#175](https://github.com/Shopify/worldwide/pull/175)
36
+
34
37
  ## [0.13.0] - 2024-05-27
35
38
 
36
39
  - Add Address#split_address1 and Address#split_address2 methods [#165](https://github.com/Shopify/worldwide/pull/165)
37
40
  - Add Address#concatenated_address1 and Address#concatenated_address2 methods [#158](https://github.com/Shopify/worldwide/pull/158)
38
41
  - Updated root translation keys for regional locales `bg-BG`, `hr-HR`, `lt-LT`, `ro-RO`, `sk-SK`, `sl-SI` to the base locale (e.g. `bg`) [#164](https://github.com/Shopify/worldwide/pull/164).
39
42
  - Remove city from UAE address form and enable city autofill [#159](https://github.com/Shopify/worldwide/pull/159)
43
+ - Support additional fields in IL, update streetNumber and neighborhood requirement for BE, CL, ES, MX [#166](https://github.com/Shopify/worldwide/pull/166)
44
+
45
+ ---
40
46
 
41
47
  ## [0.12.2] - 2024-05-21
42
48
 
data/Gemfile.lock CHANGED
@@ -13,7 +13,7 @@ GIT
13
13
  PATH
14
14
  remote: .
15
15
  specs:
16
- worldwide (0.13.0)
16
+ worldwide (0.14.0)
17
17
  activesupport (>= 7.0)
18
18
  i18n
19
19
  phonelib (~> 0.8)
@@ -9,6 +9,4 @@ bg:
9
9
  optional: Емирство (незадължително)
10
10
  errors:
11
11
  blank: Изберете емирство
12
- city:
13
- # This is the placeholder city text for an address in the United Arab Emirates.
14
- autofill: "-"
12
+
@@ -9,6 +9,4 @@ cs:
9
9
  optional: Emirát (volitelné)
10
10
  errors:
11
11
  blank: Vyberte emirát
12
- city:
13
- # This is the placeholder city text for an address in the United Arab Emirates.
14
- autofill: "-"
12
+
@@ -9,6 +9,4 @@ da:
9
9
  optional: Emirat (valgfrit)
10
10
  errors:
11
11
  blank: Vælg et emirat
12
- city:
13
- # This is the placeholder city text for an address in the United Arab Emirates.
14
- autofill: "-"
12
+
@@ -9,6 +9,4 @@ de:
9
9
  optional: Emirat (optional)
10
10
  errors:
11
11
  blank: Wähle ein Emirat aus
12
- city:
13
- # This is the placeholder city text for an address in the United Arab Emirates.
14
- autofill: "-"
12
+
@@ -9,6 +9,4 @@ el:
9
9
  optional: Εμιράτο (προαιρετικά)
10
10
  errors:
11
11
  blank: Επιλέξτε εμιράτο
12
- city:
13
- # This is the placeholder city text for an address in the United Arab Emirates.
14
- autofill: "-"
12
+
@@ -9,6 +9,4 @@ en:
9
9
  optional: Emirate (optional)
10
10
  errors:
11
11
  blank: Select an emirate
12
- city:
13
- # This is the placeholder city text for an address in the United Arab Emirates.
14
- autofill: "-"
12
+
@@ -9,6 +9,4 @@ es:
9
9
  optional: Emirato (opcional)
10
10
  errors:
11
11
  blank: Selecciona un emirato
12
- city:
13
- # This is the placeholder city text for an address in the United Arab Emirates.
14
- autofill: "-"
12
+
@@ -9,6 +9,4 @@ fi:
9
9
  optional: Emiraatti (valinnainen)
10
10
  errors:
11
11
  blank: Valitse emiraatti
12
- city:
13
- # This is the placeholder city text for an address in the United Arab Emirates.
14
- autofill: "-"
12
+
@@ -9,6 +9,4 @@ fr:
9
9
  optional: Émirat (facultatif)
10
10
  errors:
11
11
  blank: Sélectionner un émirat
12
- city:
13
- # This is the placeholder city text for an address in the United Arab Emirates.
14
- autofill: "-"
12
+
@@ -9,6 +9,4 @@ hi:
9
9
  optional: अमीरात (वैकल्पिक)
10
10
  errors:
11
11
  blank: एक अमीरात चुनें
12
- city:
13
- # This is the placeholder city text for an address in the United Arab Emirates.
14
- autofill: "-"
12
+
@@ -9,6 +9,4 @@ hr:
9
9
  optional: Emirat (neobavezno)
10
10
  errors:
11
11
  blank: Odaberi emirat
12
- city:
13
- # This is the placeholder city text for an address in the United Arab Emirates.
14
- autofill: "-"
12
+
@@ -9,6 +9,4 @@ hu:
9
9
  optional: Emírség (nem kötelező megadni)
10
10
  errors:
11
11
  blank: Válassz emírséget
12
- city:
13
- # This is the placeholder city text for an address in the United Arab Emirates.
14
- autofill: "-"
12
+
@@ -9,6 +9,4 @@ id:
9
9
  optional: Emirat (opsional)
10
10
  errors:
11
11
  blank: Pilih emirat
12
- city:
13
- # This is the placeholder city text for an address in the United Arab Emirates.
14
- autofill: "-"
12
+
@@ -9,6 +9,4 @@ it:
9
9
  optional: Emirato (facoltativo)
10
10
  errors:
11
11
  blank: Seleziona un emirato
12
- city:
13
- # This is the placeholder city text for an address in the United Arab Emirates.
14
- autofill: "-"
12
+
@@ -9,6 +9,4 @@ ja:
9
9
  optional: 首長国 (任意)
10
10
  errors:
11
11
  blank: 首長国を選択してください
12
- city:
13
- # This is the placeholder city text for an address in the United Arab Emirates.
14
- autofill: "-"
12
+
@@ -9,6 +9,4 @@ ko:
9
9
  optional: 토후국(선택 사항)
10
10
  errors:
11
11
  blank: 에미레이트 선택
12
- city:
13
- # This is the placeholder city text for an address in the United Arab Emirates.
14
- autofill: "-"
12
+
@@ -9,6 +9,4 @@ lt:
9
9
  optional: Emyratas (pasirinktinai)
10
10
  errors:
11
11
  blank: Pasirinkite emyratą
12
- city:
13
- # This is the placeholder city text for an address in the United Arab Emirates.
14
- autofill: "-"
12
+
@@ -9,5 +9,4 @@ ms:
9
9
  optional: Emiriah (opsyenal)
10
10
  errors:
11
11
  blank: Pilih amiriah
12
- city:
13
- autofill: "-"
12
+
@@ -9,6 +9,4 @@ nb:
9
9
  optional: Emirat (valgfritt)
10
10
  errors:
11
11
  blank: Velg et emirat
12
- city:
13
- # This is the placeholder city text for an address in the United Arab Emirates.
14
- autofill: "-"
12
+
@@ -9,6 +9,4 @@ nl:
9
9
  optional: Emiraat (optioneel)
10
10
  errors:
11
11
  blank: Selecteer een emiraat
12
- city:
13
- # This is the placeholder city text for an address in the United Arab Emirates.
14
- autofill: "-"
12
+
@@ -9,6 +9,4 @@ pl:
9
9
  optional: Emirat (opcjonalnie)
10
10
  errors:
11
11
  blank: Wybierz emirat
12
- city:
13
- # This is the placeholder city text for an address in the United Arab Emirates.
14
- autofill: "-"
12
+
@@ -9,6 +9,4 @@ pt-BR:
9
9
  optional: Emirado (opcional)
10
10
  errors:
11
11
  blank: Selecione um emirado
12
- city:
13
- # This is the placeholder city text for an address in the United Arab Emirates.
14
- autofill: "-"
12
+
@@ -9,6 +9,4 @@ pt-PT:
9
9
  optional: Emirado (opcional)
10
10
  errors:
11
11
  blank: Selecione um emirato
12
- city:
13
- # This is the placeholder city text for an address in the United Arab Emirates.
14
- autofill: "-"
12
+
@@ -9,6 +9,4 @@ ro:
9
9
  optional: Emirat (opțional)
10
10
  errors:
11
11
  blank: Selectează un emirat
12
- city:
13
- # This is the placeholder city text for an address in the United Arab Emirates.
14
- autofill: "-"
12
+
@@ -9,6 +9,4 @@ ru:
9
9
  optional: Эмират (необязательно)
10
10
  errors:
11
11
  blank: Выберите эмират
12
- city:
13
- # This is the placeholder city text for an address in the United Arab Emirates.
14
- autofill: "-"
12
+
@@ -9,6 +9,4 @@ sk:
9
9
  optional: Emirát (voliteľné)
10
10
  errors:
11
11
  blank: Vyberte emirát
12
- city:
13
- # This is the placeholder city text for an address in the United Arab Emirates.
14
- autofill: "-"
12
+
@@ -9,6 +9,4 @@ sl:
9
9
  optional: Emirat (izbirno)
10
10
  errors:
11
11
  blank: Izberite emirat
12
- city:
13
- # This is the placeholder city text for an address in the United Arab Emirates.
14
- autofill: "-"
12
+
@@ -9,6 +9,4 @@ sv:
9
9
  optional: Emirat (valfritt)
10
10
  errors:
11
11
  blank: Välj ett emirat
12
- city:
13
- # This is the placeholder city text for an address in the United Arab Emirates.
14
- autofill: "-"
12
+
@@ -9,6 +9,4 @@ th:
9
9
  optional: เอมิเรต (ไม่จำเป็น)
10
10
  errors:
11
11
  blank: เลือกเอมิเรต
12
- city:
13
- # This is the placeholder city text for an address in the United Arab Emirates.
14
- autofill: "-"
12
+
@@ -9,6 +9,4 @@ tr:
9
9
  optional: Emirlik (isteğe bağlı)
10
10
  errors:
11
11
  blank: Emirlik seçin
12
- city:
13
- # This is the placeholder city text for an address in the United Arab Emirates.
14
- autofill: "-"
12
+
@@ -9,6 +9,4 @@ vi:
9
9
  optional: Tiểu vương quốc (không bắt buộc)
10
10
  errors:
11
11
  blank: Chọn tiểu vương quốc
12
- city:
13
- # This is the placeholder city text for an address in the United Arab Emirates.
14
- autofill: "-"
12
+
@@ -9,6 +9,4 @@ zh-CN:
9
9
  optional: 酋长国(可选)
10
10
  errors:
11
11
  blank: 选择酋长国
12
- city:
13
- # This is the placeholder city text for an address in the United Arab Emirates.
14
- autofill: "-"
12
+
@@ -9,6 +9,4 @@ zh-TW:
9
9
  optional: 大公國 (選填)
10
10
  errors:
11
11
  blank: 選擇一個大公國
12
- city:
13
- # This is the placeholder city text for an address in the United Arab Emirates.
14
- autofill: "-"
12
+
@@ -10,10 +10,9 @@ group_name: Asia
10
10
  phone_number_prefix: 971
11
11
  building_number_required: true
12
12
  week_start_day: saturday
13
- autofill_city_enabled: true
14
13
  format:
15
- edit: "{country}_{firstName}{lastName}_{company}_{address1}_{address2}_{province}_{phone}"
16
- show: "{firstName} {lastName}_{company}_{address1}_{address2} {province}_{country}_{phone}"
14
+ edit: "{country}_{firstName}{lastName}_{company}_{address1}_{address2}_{city}{province}_{phone}"
15
+ show: "{firstName} {lastName}_{company}_{address1}_{address2}_{city} {province}_{country}_{phone}"
17
16
  emoji: "\U0001F1E6\U0001F1EA"
18
17
  languages:
19
18
  - ar
@@ -31,6 +31,6 @@ additional_address_fields:
31
31
  - key: streetName
32
32
  required: true
33
33
  - key: streetNumber
34
- required: false
34
+ required: true
35
35
  emoji: "\U0001F1E7\U0001F1EA"
36
36
  timezone: Europe/Brussels
@@ -20,7 +20,7 @@ format:
20
20
  edit: "{country}_{firstName}{lastName}_{company}_{zip}_{address1}_{address2}_{city}{province}_{phone}"
21
21
  show: "{firstName} {lastName}_{company}_{address1}_{address2}_{zip} {city} {province}_{country}_{phone}"
22
22
  format_extended:
23
- edit: "{country}_{firstName}{lastName}_{company}_{zip}_{streetName}{streetNumber}_{address2}{neighborhood}_{city}{province}_{phone}"
23
+ edit: "{country}_{firstName}{lastName}_{company}_{zip}_{streetName}{streetNumber}_{line2}{neighborhood}_{city}{province}_{phone}"
24
24
  additional_address_fields:
25
25
  address1:
26
26
  - key: streetName
@@ -29,7 +29,7 @@ additional_address_fields:
29
29
  decorator: ","
30
30
  required: true
31
31
  address2:
32
- - key: address2
32
+ - key: line2
33
33
  required: false
34
34
  - key: neighborhood
35
35
  decorator: ","
@@ -15,15 +15,15 @@ format:
15
15
  edit: "{country}_{firstName}{lastName}_{company}_{address1}_{address2}_{zip}{city}_{province}_{phone}"
16
16
  show: "{firstName} {lastName}_{company}_{address1}_{address2}_{zip} {city}_{province}_{country}_{phone}"
17
17
  format_extended:
18
- edit: "{country}_{firstName}{lastName}_{company}_{streetName}{streetNumber}_{address2}{neighborhood}_{zip}{city}_{province}_{phone}"
18
+ edit: "{country}_{firstName}{lastName}_{company}_{streetName}{streetNumber}_{line2}{neighborhood}_{zip}{city}_{province}_{phone}"
19
19
  additional_address_fields:
20
20
  address1:
21
21
  - key: streetName
22
22
  required: true
23
23
  - key: streetNumber
24
- required: false
24
+ required: true
25
25
  address2:
26
- - key: address2
26
+ - key: line2
27
27
  required: false
28
28
  - key: neighborhood
29
29
  required: false
@@ -16,10 +16,10 @@ format:
16
16
  edit: "{country}_{firstName}{lastName}_{company}_{address1}_{address2}_{city}{province}{zip}_{phone}"
17
17
  show: "{firstName} {lastName}_{company}_{address1}_{address2}_{zip} {city} {province}_{country}_{phone}"
18
18
  format_extended:
19
- edit: "{country}_{firstName}{lastName}_{company}_{address1}_{address2}{neighborhood}_{city}{province}{zip}_{phone}"
19
+ edit: "{country}_{firstName}{lastName}_{company}_{address1}_{line2}{neighborhood}_{city}{province}{zip}_{phone}"
20
20
  additional_address_fields:
21
21
  address2:
22
- - key: address2
22
+ - key: line2
23
23
  required: false
24
24
  - key: neighborhood
25
25
  required: false
@@ -28,7 +28,7 @@ additional_address_fields:
28
28
  - key: streetName
29
29
  required: true
30
30
  - key: streetNumber
31
- required: false
31
+ required: true
32
32
  emoji: "\U0001F1EA\U0001F1F8"
33
33
  zones:
34
34
  - name: A Coruña
@@ -18,10 +18,10 @@ format:
18
18
  edit: "{country}_{firstName}{lastName}_{company}_{address1}_{address2}_{city}_{province}{zip}_{phone}"
19
19
  show: "{firstName} {lastName}_{company}_{address1}_{address2}_{city}_{province} {zip}_{country}_{phone}"
20
20
  format_extended:
21
- edit: "{country}_{firstName}{lastName}_{company}_{address1}_{address2}{neighborhood}_{city}_{province}{zip}_{phone}"
21
+ edit: "{country}_{firstName}{lastName}_{company}_{address1}_{line2}{neighborhood}_{city}_{province}{zip}_{phone}"
22
22
  additional_address_fields:
23
23
  address2:
24
- - key: address2
24
+ - key: line2
25
25
  required: false
26
26
  - key: neighborhood
27
27
  decorator: ","
@@ -16,6 +16,14 @@ week_start_day: sunday
16
16
  format:
17
17
  edit: "{country}_{firstName}{lastName}_{company}_{address1}_{address2}_{zip}{city}_{phone}"
18
18
  show: "{firstName} {lastName}_{company}_{address1}_{address2}_{zip} {city}_{country}_{phone}"
19
+ format_extended:
20
+ edit: "{country}_{firstName}{lastName}_{company}_{streetName}{streetNumber}_{address2}_{zip}{city}_{phone}"
21
+ additional_address_fields:
22
+ address1:
23
+ - key: streetNumber
24
+ required: true
25
+ - key: streetName
26
+ required: true
19
27
  emoji: "\U0001F1EE\U0001F1F1"
20
28
  languages:
21
29
  - ar
@@ -16,18 +16,18 @@ format:
16
16
  edit: "{country}_{firstName}{lastName}_{company}_{address1}_{address2}_{zip}{city}{province}_{phone}"
17
17
  show: "{firstName} {lastName}_{company}_{address1}_{address2}_{zip} {city} {province}_{country}_{phone}"
18
18
  format_extended:
19
- edit: "{country}_{firstName}{lastName}_{company}_{streetName}{streetNumber}_{address2}{neighborhood}_{zip}{city}{province}_{phone}"
19
+ edit: "{country}_{firstName}{lastName}_{company}_{streetName}{streetNumber}_{line2}{neighborhood}_{zip}{city}{province}_{phone}"
20
20
  additional_address_fields:
21
21
  address1:
22
22
  - key: streetName
23
23
  required: true
24
24
  - key: streetNumber
25
- required: false
25
+ required: true
26
26
  address2:
27
- - key: address2
27
+ - key: line2
28
28
  required: false
29
29
  - key: neighborhood
30
- required: true
30
+ required: false
31
31
  emoji: "\U0001F1F2\U0001F1FD"
32
32
  languages:
33
33
  - es
@@ -16,10 +16,10 @@ format:
16
16
  edit: "{country}_{firstName}{lastName}_{company}_{address1}_{address2}_{zip}{city}_{province}_{phone}"
17
17
  show: "{firstName} {lastName}_{company}_{address1}_{address2}_{zip} {city}_{province}_{country}_{phone}"
18
18
  format_extended:
19
- edit: "{country}_{firstName}{lastName}_{company}_{address1}_{address2}{neighborhood}_{zip}{city}_{province}_{phone}"
19
+ edit: "{country}_{firstName}{lastName}_{company}_{address1}_{line2}{neighborhood}_{zip}{city}_{province}_{phone}"
20
20
  additional_address_fields:
21
21
  address2:
22
- - key: address2
22
+ - key: line2
23
23
  required: false
24
24
  - key: neighborhood
25
25
  decorator: " Barangay"
@@ -17,10 +17,10 @@ format:
17
17
  edit: "{country}_{firstName}{lastName}_{company}_{address1}_{address2}_{zip}{city}_{phone}"
18
18
  show: "{firstName} {lastName}_{company}_{address1}_{address2}_{zip} {city}_{country}_{phone}"
19
19
  format_extended:
20
- edit: "{country}_{firstName}{lastName}_{company}_{address1}_{address2}{neighborhood}_{zip}{city}_{phone}"
20
+ edit: "{country}_{firstName}{lastName}_{company}_{address1}_{line2}{neighborhood}_{zip}{city}_{phone}"
21
21
  additional_address_fields:
22
22
  address2:
23
- - key: address2
23
+ - key: line2
24
24
  required: false
25
25
  - key: neighborhood
26
26
  required: false
@@ -18,7 +18,7 @@ format:
18
18
  edit: "{country}_{firstName}{lastName}_{company}_{address1}_{address2}_{city}{zip}_{phone}"
19
19
  show: "{firstName} {lastName}_{company}_{address1}_{address2}_{zip} {city}_{country}_{phone}"
20
20
  format_extended:
21
- edit: "{country}_{firstName}{lastName}_{company}_{address1}_{address2}_{neighborhood}{city}{zip}_{phone}"
21
+ edit: "{country}_{firstName}{lastName}_{company}_{address1}_{line2}_{neighborhood}{city}{zip}_{phone}"
22
22
  emoji: "\U0001F1F9\U0001F1FC"
23
23
  languages:
24
24
  - "zh-TW"
@@ -14,10 +14,10 @@ format:
14
14
  edit: "{country}_{firstName}{lastName}_{company}_{address1}_{address2}_{city}{zip}_{phone}"
15
15
  show: "{firstName} {lastName}_{company}_{address1}_{address2}_{city} {zip}_{country}_{phone}"
16
16
  format_extended:
17
- edit: "{country}_{firstName}{lastName}_{company}_{address1}_{address2}_{neighborhood}_{city}{zip}_{phone}"
17
+ edit: "{country}_{firstName}{lastName}_{company}_{address1}_{line2}_{neighborhood}_{city}{zip}_{phone}"
18
18
  additional_address_fields:
19
19
  address2:
20
- - key: address2
20
+ - key: line2
21
21
  required: false
22
22
  - key: neighborhood
23
23
  decorator: ", Quận"
@@ -121,13 +121,35 @@ en:
121
121
  unknown_for_address: Address line 2 may be incorrect.
122
122
  warnings:
123
123
  contains_too_many_words: Address line 2 is recommended to have less than %{word_count} words
124
+ line2:
125
+ label:
126
+ default: Apartment, suite, etc.
127
+ optional: Apartment, suite, etc. (optional)
128
+ errors:
129
+ blank: Enter an apartment, suite, etc.
130
+ too_long: The second address line is too long (maximum is %{limit} characters)
131
+ contains_emojis: The second address line cannot contain emojis
132
+ contains_mathematical_symbols: The second address line cannot contain mathematical symbols
133
+ contains_restricted_characters: The second address line can only contain letters, numbers,
134
+ local characters, and special characters
135
+ contains_too_many_words: The second address line cannot have more than %{word_count}
136
+ words
137
+ contains_html_tags: The second address line cannot contain HTML tags.
138
+ contains_url: The second address line cannot contain URLs.
139
+ missing_building_number: Add a building number if you have one.
140
+ street_unknown_for_zip: Enter a valid street name for %{zip}.
141
+ building_number_invalid: Building number couldn't be located for %{street},
142
+ %{zip}.
143
+ unknown_for_address: The second address line may be incorrect.
144
+ warnings:
145
+ contains_too_many_words: The second address line is recommended to have less than %{word_count} words
124
146
  neighborhood:
125
147
  label:
126
148
  default: Neighborhood
127
149
  optional: Neighborhood (optional)
128
150
  errors:
129
151
  blank: Enter a neighborhood
130
- too_long: Neighborhood is too long (maximum is 255 characters)
152
+ too_long: Neighborhood is too long (maximum is %{limit} characters)
131
153
  contains_emojis: Neighborhood cannot contain emojis
132
154
  contains_mathematical_symbols: Neighborhood cannot contain mathematical symbols
133
155
  contains_restricted_characters: Neighborhood can only contain letters, numbers,
@@ -177,7 +177,7 @@ pl:
177
177
  optional: Ulica (opcjonalnie)
178
178
  errors:
179
179
  blank: Wpisz nazwę ulicy
180
- too_long: Ulica jest za długa (maksymalnie 255 znaków)
180
+ too_long: Ulica jest za długa (maksymalna liczba znaków to 255)
181
181
  contains_emojis: Ulica nie może zawierać emoji
182
182
  contains_mathematical_symbols: Ulica nie może zawierać symboli matematycznych
183
183
  contains_restricted_characters: Ulica może zawierać tylko litery, cyfry,
@@ -14,6 +14,7 @@ module Worldwide
14
14
  :phone,
15
15
  :street_name,
16
16
  :street_number,
17
+ :line2,
17
18
  :neighborhood
18
19
 
19
20
  def initialize(
@@ -29,6 +30,7 @@ module Worldwide
29
30
  phone: nil,
30
31
  street_name: nil,
31
32
  street_number: nil,
33
+ line2: nil,
32
34
  neighborhood: nil
33
35
  )
34
36
  @first_name = first_name
@@ -43,6 +45,7 @@ module Worldwide
43
45
  @phone = phone
44
46
  @street_name = street_name
45
47
  @street_number = street_number
48
+ @line2 = line2
46
49
  @neighborhood = neighborhood
47
50
  end
48
51
 
@@ -14,6 +14,7 @@ module Worldwide
14
14
  :street_name,
15
15
  :street_number,
16
16
  :address2,
17
+ :line2,
17
18
  :neighborhood,
18
19
  :city,
19
20
  :province,
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Worldwide
4
- VERSION = "0.13.0"
4
+ VERSION = "0.14.0"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: worldwide
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.13.0
4
+ version: 0.14.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shopify
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-05-27 00:00:00.000000000 Z
11
+ date: 2024-05-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -62,6 +62,7 @@ extra_rdoc_files: []
62
62
  files:
63
63
  - ".github/CODE_OF_CONDUCT.md"
64
64
  - ".github/CONTRIBUTING.md"
65
+ - ".github/dependabot.yml"
65
66
  - ".github/pull_request_template.md"
66
67
  - ".github/workflows/ci.yml"
67
68
  - ".github/workflows/cla.yml"