No need to translate in normal way, but I want to translate two object arrays and bind into component
<InfoNews v-for="infonew in infonews" :id="infonew.id" :title="infonew.title" :content="infonew.content" /> data() { return { infonews: [ { id: "01", title: "what we do", content:"industke aecimen book. ", }, { id: "02", title: "our mission", content:"ggdddg", }, ], };
Make
infonews
a computed property. Each of thetitle
andcontent
should be translation keys.