Open cromerc opened 2 weeks ago
There is a selectedItemsLabel
prop for MultiSelect, which takes precedence over the locale.
Demo: https://stackblitz.com/edit/primevue-4-vite-issue-template-shrs7a?file=src%2FApp.vue,src%2Fassets%2Fprimevuelocales.json
By looking at the code, the selectedItemsLabel
has a default value, so selectionMessage
from locale config will never render.
selectedItemsLabel
should be removed in favor of locale data. Happy to put a PR for this. @tugcekucukoglu thoughts?
Describe the bug
MultiSelect does not show the locale translation when you have a comma separated select and have selected various items. It always shows in English.
In the stackblitz that I shared I show a working Select component that will change between English, Spanish or Chinese. Then after that there is a MultiSelect component that does not change language when the language is modified.
Reproducer
https://stackblitz.com/edit/primevue-4-vite-issue-template-v4fdq8
PrimeVue version
4.0.5
Vue version
3.x
Language
TypeScript
Build / Runtime
Vite
Browser(s)
No response
Steps to reproduce the behavior
Expected behavior
The component should show "N elementos seleccionados" instead of "N items selected" if spanish is selected for example.