[Vuejs]-Changing locale dynamically in Vue app doesn't update translated values on pages

0👍

If you mean the label: i18n.t(...), it will only run once. Any changes in language will not change the label. One solution is to put the text keys in your fields and use $t in your component on the variable containing the text key:

field.js

...
const fields = {
  userId: {
    label: 'users.generalInfo.userId',
...

component

<v-text-field 
  :label="$t(fields.userId.label)"
/>

Leave a comment