Skip to content
Discussion options

You must be logged in to vote

Hi @bci24,

:get-option-label should not be used for translations purposes.

It's better if you can "setup" your options passed to the VueSelect component. For example, it's better to derivate using a computed() that will use vue-i18n t() to translate the label before they hit VueSelect, like you've done in your previous example.

:get-option-label is similar to :get-option-value in how it should be used, it's when you have to use a key that's different than the default .value to do the mapping between label/value: https://vue3-select-component.vercel.app/props.html#getoptionlabel

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by TotomInc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #294 on June 24, 2025 05:09.