We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cdb3750 commit 91d6d6bCopy full SHA for 91d6d6b
src/components/Picker.js
@@ -588,9 +588,15 @@ function Picker({
588
const item = getSelectedItem();
589
590
if (multiple)
591
- if (item.length > 0)
592
- return _multipleText.replace('{count}', item.length);
593
- else
+ if (item.length > 0) {
+ let mtext = _multipleText;
+
594
+ if (typeof mtext !== 'string') {
595
+ mtext = mtext[item.length] ?? mtext.n;
596
+ }
597
598
+ return mtext.replace('{count}', item.length);
599
+ } else
600
return fallback;
601
602
try {
0 commit comments