Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MultiSelect: selectionMessage not changing using locales #3929

Closed
itpzzi opened this issue May 5, 2023 · 6 comments
Closed

MultiSelect: selectionMessage not changing using locales #3929

itpzzi opened this issue May 5, 2023 · 6 comments

Comments

@itpzzi
Copy link

itpzzi commented May 5, 2023

Describe the bug

According to the documentation, it is described that it is possible to change the messages, including the one for the number of selected items. However, applying the translation for the "selectionMessage" does not have any effect, even using different translation files. I needed to use the Portuguese version "{0} itens selecionados", but the component continues to display "{0} items selected" no matter what I do.

image

Looking at the code, I suspect that it is the computed variable that is used in the template, not taking into account the translation definitions.
image

Reproducer

https://codesandbox.io/s/laughing-snowflake-j73vgg

PrimeVue version

3.20.0

Vue version

3.x

Language

TypeScript

Build / Runtime

Vue CLI App

Browser(s)

any

Steps to reproduce the behavior

  1. Define a translation file with any language other than English and set it in VuePrime config options;
  2. Use a MultiSelect component;
  3. Select multiple items;
  4. When the maximum number of items defined in maxSelectedLabels is reached, note that the quantity label is in English.

Expected behavior

I needed to use the Portuguese version "{0} itens selecionados"

@itpzzi itpzzi added the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label May 5, 2023
@panruza
Copy link

panruza commented Jun 6, 2023

Same for me :(

@victormedeiros1
Copy link

Same for me, was resolved?

@tugcekucukoglu
Copy link
Member

The issue is fixed for the next version. Please track at #4558

@tugcekucukoglu tugcekucukoglu removed the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label Oct 17, 2023
@lucasdevdotnet
Copy link

esse problema já foi solocionado sabem informar ?

@UnforgetMemory
Copy link

Unfortunately, in the latest version @ 4.0.5, this issue still exists. The locle of other components is normal.

@losthunter52
Copy link

Use the selectedItemsLabel prop

<MultiSelect selectedItemsLabel="{0} Columns Selected" ...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants