From 8c2b417ffcdce2d6e6e9931327d493578a520904 Mon Sep 17 00:00:00 2001 From: Chingiz Mammadov Date: Wed, 11 Oct 2023 02:16:10 +0400 Subject: [PATCH] Fix #4558 - locale "selectedItemsLabel" is broken on MultiSelect --- components/lib/multiselect/MultiSelect.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/lib/multiselect/MultiSelect.vue b/components/lib/multiselect/MultiSelect.vue index 8355d233ee..949ac87675 100755 --- a/components/lib/multiselect/MultiSelect.vue +++ b/components/lib/multiselect/MultiSelect.vue @@ -770,7 +770,7 @@ export default { }, getSelectedItemsLabel() { let pattern = /{(.*?)}/; - const selectedItemsLabel = this.$primevue.config.locale.selectedItemsLabel || this.selectedItemsLabel + const selectedItemsLabel = this.$primevue.config.locale.selectionMessage || this.selectedItemsLabel if (pattern.test(selectedItemsLabel)) { return selectedItemsLabel.replace(selectedItemsLabel.match(pattern)[0], this.modelValue.length + ''); }