0👍
Just use a computed.
Assuming 'contract'
and 'vat'
are existing translation keys:
computed: {
translatedOptions() {
return this.hiring_types.map(i => ({ ...i, text: this.$t(i.text)}))
}
}
- [Vuejs]-Why isnt vue-chartjs receiving data from api?
- [Vuejs]-FullCalendar Vue – Webpack bundling error on /node_modules/@fullcalendar/common/main.css
Source:stackexchange.com