Skip to content

Commit 35dbb71

Browse files
authored
Merge pull request #247 from vtex-apps/fix/default-locale-googleAddressForm
Set default locale for google address form
2 parents 5ac2b9c + 68da5dd commit 35dbb71

File tree

6 files changed

+41
-7
lines changed

6 files changed

+41
-7
lines changed

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,14 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
77

88
## [Unreleased]
99

10+
### Fixed
11+
12+
- Set default locale for google address form as GBR
13+
14+
### Added
15+
16+
- Add IRL in locales file
17+
1018
## [0.18.4] - 2024-05-07
1119

1220
### Changed

checkout-ui-custom/checkout6-custom.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

checkout-ui-custom/src/_js/_customAddressForm.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1169,7 +1169,8 @@ class fnsCustomAddressForm {
11691169
_this.lang = _this.orderForm.clientPreferencesData.locale
11701170

11711171
_this.locale =
1172-
_locale[_this.orderForm.storePreferencesData.countryCode]
1172+
_locale[_this.orderForm.storePreferencesData.countryCode] ||
1173+
_locale.GBR
11731174

11741175
if (_this.lang === 'es-AR') _this.lang = 'es'
11751176

checkout-ui-custom/src/_js/_locale-infos.js

Lines changed: 28 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,8 @@ module.exports._locale = {
7272
city: 'City',
7373
state: 'State',
7474
locale: 'en-US',
75-
noStreetAddress: 'Your shipping information is missing a required field, please include a street or P.O. Box',
75+
noStreetAddress:
76+
'Your shipping information is missing a required field, please include a street or P.O. Box',
7677
},
7778
GBR: {
7879
couponInactive: 'No discounts available. Check the conditions.',
@@ -100,6 +101,32 @@ module.exports._locale = {
100101
postalCode: 'Postal Code',
101102
locale: 'en-GB',
102103
},
104+
IRL: {
105+
couponInactive: 'No discounts available. Check the conditions.',
106+
editLabel: 'Edit',
107+
paypalImg: '',
108+
paypalPhone: '',
109+
cartSubmitButton: 'Proceed to Payment',
110+
deliveryDateText: 'Arrives by',
111+
PickupDateText: 'Ready by',
112+
eachLabel: 'each',
113+
tomorrowLabel: 'Tomorrow',
114+
cartNoteLabel: 'Gift Message or Comments',
115+
identifiedUserMessage: `Thanks for coming back!\nTo expedite your transaction, we have securely populated your information for you.`,
116+
address1Placeholder: 'Street address',
117+
address2Placeholder: 'Apartment, suite, building, floor, etc (optional)',
118+
checkoutStepsLabelCart: 'Cart',
119+
checkoutStepsLabelIdentification: 'Identification',
120+
checkoutStepsLabelShipping: 'Shipping',
121+
checkoutStepsLabelPayment: 'Payment',
122+
checkoutStepsLabelConfirmation: 'Confirmation',
123+
requiredField: 'This field is required.',
124+
city: 'Town',
125+
state: 'County',
126+
number: 'Number',
127+
postalCode: 'Postal Code',
128+
locale: 'en-IE',
129+
},
103130
POR: {
104131
couponInactive: 'Nenhum desconto aplicado. Confira as regras.',
105132
editLabel: 'Editar',

manifest.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,9 +75,7 @@
7575
"url": "https://support.vtex.com/hc/requests"
7676
},
7777
"type": "free",
78-
"availableCountries": [
79-
"*"
80-
]
78+
"availableCountries": ["*"]
8179
},
8280
"$schema": "https://raw.githubusercontent.com/vtex/node-vtex-api/master/gen/manifest.schema"
8381
}

node/templates/checkout6-custom.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)