Skip to content

Commit

Permalink
fix(TDOPS-4795): faceted search wrong plural label (#4804)
Browse files Browse the repository at this point in the history
* fix(TDOPS-4795): faceted search wrong plural label

* chore: update faceted-search version

* fix: use patch version
  • Loading branch information
inna-i authored Jul 18, 2023
1 parent 0789cda commit a17306f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
5 changes: 5 additions & 0 deletions .changeset/smart-dodos-battle.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@talend/react-faceted-search': patch
---

TDOPS-4795 - [TUI] Faceted search display wrong plural label
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit a17306f

Please sign in to comment.