-
-
Notifications
You must be signed in to change notification settings - Fork 861
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
automatic rerender of translated data properties #258
Comments
close (fixed at #260) |
I'm facing the same issue in v7.3.3. After changing locale the translations used in data() are not updated. Reproduction link: https://codepen.io/mertindervish/pen/jYmgya |
@mertindervish You should use v-t. link:https://codepen.io/anon/pen/mpwqoN |
My use case requires the translation to be accessible by the component in created() without duplicating the translation key. I solved the problem using computed properties insted of data(). |
When I set a translation like this:
v-bind:label="$t('message.website')"
Then the view is updated at once when I change the locale.
However, if I set a translation for a data item like this:
label: this.$t('message.labelimage')
Then the view is not updated when changing the locale.
I have to reload the page to see the translation. Is there a way to have the view rerended automatically with new translations for data items too?
The text was updated successfully, but these errors were encountered: