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

i18n array and v-for #91

Closed
samhh opened this issue Nov 22, 2016 · 6 comments
Closed

i18n array and v-for #91

samhh opened this issue Nov 22, 2016 · 6 comments
Labels
Type: Bug Bug or Bug fixes

Comments

@samhh
Copy link

samhh commented Nov 22, 2016

Hope I'm not making a simple mistake here, but I can't seem to get i18n arrays to work within v-for loops?

vue & vue-i18n version

2.0.7, 4.7.2

Reproduction Link

http://jsfiddle.net/SamHH/chc7k4cz/

What is Expected?

Iterate through the array.

What is actually happening?

Console errors, e.g.: Error when rendering root instance & Uncaught TypeError: n.replace is not a function

@samhh
Copy link
Author

samhh commented Nov 23, 2016

Maybe related to #59 ?

@kazupon
Copy link
Owner

kazupon commented Nov 24, 2016

Thank you for your feedback.
I'll try to fix.

@kazupon kazupon added the Type: Bug Bug or Bug fixes label Nov 24, 2016
kazupon added a commit that referenced this issue Nov 24, 2016
@helloyxw
Copy link

this bug is fixed? how to do can get array data?

@ConorMurphy21
Copy link

ConorMurphy21 commented Mar 17, 2022

Is this issue fixed? when I try to translate an array it seems to fail. This is with version 9.*, vue 3, and options API.

Edit: need to use $tm instead of $t

@turgunov01
Copy link

"Hello! It appears I am facing a similar problem while attempting to define translations from json as an array using v-for in Nuxt3. However, instead of displaying the array content, I am seeing the variable itself portrayed as if it were a string manipulation, akin to the charAt function, which results in individual characters of the variable name being displayed.

What could be the solution of this error? ASAP

@ceigh
Copy link

ceigh commented Jul 30, 2024

It looks a bit complicated, what are tm, rt, I don't even understand what that means xD, where is my old good $t(), which was capable of such things?

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

No branches or pull requests

6 participants