I Have a vue2 project with vue-meta and i have vue-i18n to localize the project. In my browser bookmark the title of the webpage is not shown. The variable is shown instead. Same issue when looking in google analytics it seems that my variable is being shown instead of the values in the variable.
Here is a code snippet from my Home component:
name: 'Home',
metaInfo () {
return {
title: this.$t("home.meta.title"),
meta: [{
name: "description",
content: this.$t("home.meta.descriptioncontent")
}, {
name: "keywords",
content: this.$t("home.meta.keywordscontent")
},
{ property: 'og:title', content: this.$t("home.meta.title")},
{ property: 'og:site_name', content: 'www.examplesite.se'},
{ property: 'og:description', content: this.$t("home.meta.descriptioncontent")},
{ property: 'og:type', content: 'Home'},
{ property: 'og:url', content: 'https://examplesite.se/'},
{ property: 'og:image', content: 'https://www.examplesite.se' + '/img/' + 'example_logo_social.png'}
]
}
},
data() {
return {
fimagefolder: '../../Images/',
bimagefolder: '../../fImages/',
};
},
So the this.$t("home.meta.title") variable stores a swedish and a english translation. And when inside the website it shows the correct title for both languages, but google analytics shows only "home.meta.title" instead.
From what i understood the crawlers doesnt see my variable values due to not loading any scripts?? Any ideas?