[Vuejs]-How can i display translation in data?

0👍

Define a variable in the data function and point to the current Vue instance, then you can use it as follows:

data() {
  const self = this
  return {
    cards: [
      { id: 1, title: self.$vuetify.lang.t('$vuetify.selectProvince') }
    ]
  }
}

Leave a comment