From ab281ee3cd151c76927b23ccd7379d9125ff1789 Mon Sep 17 00:00:00 2001 From: "inna.ivashchuk" Date: Tue, 18 Jul 2023 11:42:50 +0300 Subject: [PATCH] fix(TDOPS-4795): faceted search wrong plural label --- .../Badges/BadgeCheckboxes/BadgeCheckboxes.component.js | 3 +-- .../src/components/Badges/BadgeTags/BadgeTags.component.js | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/packages/faceted-search/src/components/Badges/BadgeCheckboxes/BadgeCheckboxes.component.js b/packages/faceted-search/src/components/Badges/BadgeCheckboxes/BadgeCheckboxes.component.js index caab3750496..bee22be6dfd 100644 --- a/packages/faceted-search/src/components/Badges/BadgeCheckboxes/BadgeCheckboxes.component.js +++ b/packages/faceted-search/src/components/Badges/BadgeCheckboxes/BadgeCheckboxes.component.js @@ -12,8 +12,7 @@ const getSelectBadgeLabel = (value, t) => { if (checkedCheckboxes.length > 3) { return t('FACETED_SEARCH_VALUES_COUNT', { count: checkedCheckboxes.length, - defaultValue: '{{count}} value', - defaultValue_plural: '{{count}} values', + defaultValue: '{{count}} values', }); } else if (!checkedCheckboxes.length) { return labelAll; diff --git a/packages/faceted-search/src/components/Badges/BadgeTags/BadgeTags.component.js b/packages/faceted-search/src/components/Badges/BadgeTags/BadgeTags.component.js index 5a28d4bd7e0..deef59700e4 100644 --- a/packages/faceted-search/src/components/Badges/BadgeTags/BadgeTags.component.js +++ b/packages/faceted-search/src/components/Badges/BadgeTags/BadgeTags.component.js @@ -17,8 +17,7 @@ const getSelectBadgeLabel = (value, t) => { if (checkedCheckboxes.length > 3) { return t('FACETED_SEARCH_VALUES_COUNT', { count: checkedCheckboxes.length, - defaultValue: '{{count}} value', - defaultValue_plural: '{{count}} values', + defaultValue: '{{count}} values', }); } else if (!checkedCheckboxes.length) { return labelAll;