Skip to content

Commit

Permalink
Merge pull request #574 from vtex/update/l10n-malta
Browse files Browse the repository at this point in the history
fix malta geolocation
  • Loading branch information
camilavcoutinho authored May 21, 2024
2 parents 6e4fcbe + d50c600 commit 58736c3
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 8 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.

## [Unreleased]

## [3.35.6] - 2024-05-21

### Fixed

- Malta geolocation.

## [3.35.5] - 2024-05-09

### Fixed
Expand Down
6 changes: 4 additions & 2 deletions manifest.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
{
"name": "address-form",
"vendor": "vtex",
"version": "3.35.5",
"version": "3.35.6",
"title": "address-form React component",
"description": "address-form React component",
"defaultLocale": "en",
"mustUpdateAt": "2019-01-08",
"categories": [],
"registries": ["smartcheckout"],
"registries": [
"smartcheckout"
],
"settingsSchema": {},
"dependencies": {
"vtex.checkout": "0.x",
Expand Down
15 changes: 9 additions & 6 deletions react/country/MLT.ts
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,10 @@ const rules: PostalCodeRules = {
street: {
valueIn: 'long_name',
types: ['route'],
handler: (address, googleAddress) => {
address.street = { value: (googleAddress as { name: string }).name }
return address
},
},

neighborhood: {
Expand Down Expand Up @@ -199,16 +203,15 @@ const rules: PostalCodeRules = {
},
summary: [
[
{ name: 'street' },
{ delimiter: ' ', name: 'number' },
{ delimiter: ', ', name: 'complement' },
{ name: 'complement' },
{ delimiter: ' ', name: 'street' },
{ delimiter: ', ', name: 'neighborhood' },
],
[
{ name: 'neighborhood', delimiterAfter: ' - ' },
{ name: 'city' },
{ delimiter: ' - ', name: 'state' },
{ delimiter: ', ', name: 'state' },
{ delimiter: ' ', name: 'postalCode' },
],
[{ name: 'postalCode' }],
],
}

Expand Down

0 comments on commit 58736c3

Please sign in to comment.