diff --git a/.gitignore b/.gitignore index 97448750c..6b1acf8ed 100644 --- a/.gitignore +++ b/.gitignore @@ -9,4 +9,5 @@ coverage dist .DS_Store .vscode +.idea .eslintcache diff --git a/components/lib/multiselect/MultiSelect.vue b/components/lib/multiselect/MultiSelect.vue index fc017af66..949ac8767 100755 --- a/components/lib/multiselect/MultiSelect.vue +++ b/components/lib/multiselect/MultiSelect.vue @@ -770,12 +770,11 @@ export default { }, getSelectedItemsLabel() { let pattern = /{(.*?)}/; - - if (pattern.test(this.selectedItemsLabel)) { - return this.selectedItemsLabel.replace(this.selectedItemsLabel.match(pattern)[0], this.modelValue.length + ''); + const selectedItemsLabel = this.$primevue.config.locale.selectionMessage || this.selectedItemsLabel + if (pattern.test(selectedItemsLabel)) { + return selectedItemsLabel.replace(selectedItemsLabel.match(pattern)[0], this.modelValue.length + ''); } - - return this.selectedItemsLabel; + return selectedItemsLabel; }, onToggleAll(event) { if (this.selectAll !== null) {