primevue icon indicating copy to clipboard operation
primevue copied to clipboard

MultiSelect: Translation does not take effect

Open cromerc opened this issue 5 months ago • 0 comments

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

  1. Add a multi select component that is comma separated and set its max selected labels to a value lower than the number of options.
  2. Change the locale for the primevue components.
  3. The translation does not take effect on this specific component.

Expected behavior

The component should show "N elementos seleccionados" instead of "N items selected" if spanish is selected for example.

cromerc avatar Aug 28 '24 15:08 cromerc