Skip to content

Commit 2ed9890

Browse files
authored
Merge pull request #196 from vtex-apps/fix/l10n-es
Fix ES translation
2 parents 609e55d + 22fc5de commit 2ed9890

File tree

3 files changed

+32
-10
lines changed

3 files changed

+32
-10
lines changed

CHANGELOG.md

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,24 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
77

88
## [Unreleased]
99

10+
### Fixed
11+
12+
- Spanish translation
13+
1014
## [1.39.12] - 2025-03-31
1115

1216
## [1.39.11] - 2025-02-03
1317

1418
## [1.39.10] - 2025-01-16
19+
1520
### Fixed
21+
1622
- Fix render on organization requests when admin customer is missing from organization
1723

1824
## [1.39.9] - 2025-01-07
25+
1926
### Fixed
27+
2028
- Update imports
2129

2230
## [1.39.8] - 2025-01-07
@@ -26,35 +34,44 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
2634
## [1.39.6] - 2025-01-07
2735

2836
### Changed
37+
2938
- Remove payment terms and price table configuration
3039

3140
## [1.39.5] - 2024-12-12
3241

3342
## [1.39.4] - 2024-12-12
3443

3544
## [1.39.3] - 2024-12-12
45+
3646
### Changed
47+
3748
- Remove warning about tradeName from organizations screen
3849

3950
## [1.39.2] - 2024-12-09
51+
4052
### Fixed
53+
4154
- Fix object estructure
4255

4356
## [1.39.1] - 2024-12-09
4457

4558
## [1.39.0] - 2024-12-09
59+
4660
### Fixed
4761

4862
- Change `getOrganizationsByEmail` to `getActiveOrganizationsByEmail` to only allow listings from active organizations
4963

5064
## [1.38.0] - 2024-12-09
65+
5166
### Added
67+
5268
- Add topbar and allow customization of content and colors by the merchant via storeframework.
5369

5470
## [1.37.3] - 2024-11-14
71+
5572
### Fixed
56-
- Fix action url that was hard coded
5773

74+
- Fix action url that was hard coded
5875

5976
## [1.37.2] - 2024-11-11
6077

@@ -63,6 +80,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
6380
- Fixed the change `Is Required` text to `Is Filterable` present in warning
6481

6582
## [1.37.1] - 2024-11-07
83+
6684
### Feat
6785

6886
- Add warning holding to organizations list, show holding message and link to documentation

messages/es.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@
132132
"admin/b2b-organizations.organization-details.default": "General",
133133
"admin/b2b-organizations.organization-details.edit-user": "Editar usuario",
134134
"admin/b2b-organizations.organization-details.empty-state": "No se encontraron organizaciones.",
135-
"admin/b2b-organizations.organization-details.none": "Ei mitään",
135+
"admin/b2b-organizations.organization-details.none": "Ninguna",
136136
"admin/b2b-organizations.organization-details.organization-name": "Nombre de la organización",
137137
"admin/b2b-organizations.organization-details.organization-name-required": "El nombre de la organización es obligatorio.",
138138
"admin/b2b-organizations.organization-details.paymentTerms": "Términos de pago",

react/components/UserWidget.tsx

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -463,7 +463,7 @@ const UserWidget: VtexFunctionComponent<UserWidgetProps> = ({
463463

464464
const handleSearchOrganizations = (e: any) => {
465465
const { value }: { value: string } = e.target
466-
let dataList;
466+
let dataList
467467

468468
setSearchTerm(e.target.value)
469469

@@ -474,16 +474,20 @@ const UserWidget: VtexFunctionComponent<UserWidgetProps> = ({
474474
dataList =
475475
userWidgetData?.getActiveOrganizationsByEmail
476476
?.filter((organization: any) => {
477-
const organizationName = organization.organizationName?.toLowerCase() || '';
478-
const costCenterName = organization.costCenterName?.toLowerCase() || '';
479-
const searchValue = value.toLowerCase();
480-
477+
const organizationName =
478+
organization.organizationName?.toLowerCase() ?? ''
479+
480+
const costCenterName =
481+
organization.costCenterName?.toLowerCase() ?? ''
482+
483+
const searchValue = value.toLowerCase()
484+
481485
return (
482-
organizationName.includes(searchValue) ||
486+
organizationName.includes(searchValue) ??
483487
costCenterName.includes(searchValue)
484-
);
488+
)
485489
})
486-
?.slice(0, 15) ?? [];
490+
?.slice(0, 15) ?? []
487491
}
488492

489493
setOrganizationsState({

0 commit comments

Comments
 (0)