You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm wondering if there is a correct/best way to translate a list of items. Let's say I have an array ["apple", "pear", "banana"] and I want to display something like "You chose apple, pear and banana".
I could do it with some v-for, but this would force it to be "a, b and c" "english-style" and couldn't do "a と b と c" or something else (like rtl).
Obviously, I would also like it to be able to display only one item "You chose apple" or any number.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi,
I'm wondering if there is a correct/best way to translate a list of items. Let's say I have an array
["apple", "pear", "banana"]
and I want to display something like"You chose apple, pear and banana"
.I could do it with some
v-for
, but this would force it to be"a, b and c"
"english-style" and couldn't do"a と b と c"
or something else (like rtl).Obviously, I would also like it to be able to display only one item
"You chose apple"
or any number.How would you go about it ?
Beta Was this translation helpful? Give feedback.
All reactions