Hey there!
I'm currently dealing with a property that looks like this,
but encountering a type error when trying to translate text using i18n
@Prop({
default: function() {
return [
{
> text: this.$t('wawi_id'),
align: 'start',
sortable: false,
value: 'id'
},
{ text: 'Name', value: 'name' },
]
}
})
Here's the error message I'm seeing in typescript
Property '$t' does not exist on type 'PropOptions<any> | Constructor | Constructor[]'.
Property '$t' does not exist on type 'PropOptions<any>'.Vetur(2339)
Any ideas on how to resolve this issue?