У меня есть фильтр на моем компоненте
filters: {
formatStatus (value) {
let status = {
active: {
text: this.$t('general.successful'),
class: 'secondary--text'
},
processing: {
text: this.$t('general.processing'),
class: 'tertiary--text'
},
waiting: {
text: this.$t('general.pending'),
class: 'tertiary--text'
}
}
return status[value]
}
}
но я получил ошибку
Ошибка типа: невозможно прочитать свойство '$ t' из неопределенного
но по методам,
$ t работает нормально.