Added lang attribute to html tag

This commit is contained in:
Grzegorz Leoniec 2018-12-21 14:49:27 +01:00
parent 3633ebe04f
commit dc3a4204f8
No known key found for this signature in database
GPG Key ID: 3AA43686D4EB1377
3 changed files with 19 additions and 0 deletions

9
components/mixins/seo.js Normal file
View File

@ -0,0 +1,9 @@
export default {
head() {
return {
htmlAttrs: {
lang: this.$i18n.locale()
}
}
}
}

View File

@ -7,3 +7,11 @@
</ds-container>
</div>
</template>
<script>
import seo from '~/components/mixins/seo'
export default {
mixins: [seo]
}
</script>

View File

@ -79,12 +79,14 @@
import { mapGetters } from 'vuex'
import LocaleSwitch from '~/components/LocaleSwitch'
import Dropdown from '~/components/Dropdown'
import seo from '~/components/mixins/seo'
export default {
components: {
Dropdown,
LocaleSwitch
},
mixins: [seo],
computed: {
...mapGetters({
user: 'auth/user',