mirror of
https://github.com/IT4Change/Ocelot-Social.git
synced 2025-12-13 07:45:56 +00:00
Added lang attribute to html tag
This commit is contained in:
parent
3633ebe04f
commit
dc3a4204f8
9
components/mixins/seo.js
Normal file
9
components/mixins/seo.js
Normal file
@ -0,0 +1,9 @@
|
||||
export default {
|
||||
head() {
|
||||
return {
|
||||
htmlAttrs: {
|
||||
lang: this.$i18n.locale()
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -7,3 +7,11 @@
|
||||
</ds-container>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import seo from '~/components/mixins/seo'
|
||||
|
||||
export default {
|
||||
mixins: [seo]
|
||||
}
|
||||
</script>
|
||||
|
||||
@ -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',
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user