add lang html attrs with current locale
This commit is contained in:
@@ -19,9 +19,16 @@ import Confirm from '../components/Confirm'
|
|||||||
import { mapState } from 'vuex'
|
import { mapState } from 'vuex'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
|
head () {
|
||||||
|
return {
|
||||||
|
htmlAttrs: {
|
||||||
|
lang: this.locale
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
name: 'Default',
|
name: 'Default',
|
||||||
components: { Nav, Snackbar, Footer, Confirm },
|
components: { Nav, Snackbar, Footer, Confirm },
|
||||||
computed: mapState(['settings']),
|
computed: mapState(['settings', 'locale']),
|
||||||
created () {
|
created () {
|
||||||
this.$vuetify.theme.dark = this.settings['theme.is_dark']
|
this.$vuetify.theme.dark = this.settings['theme.is_dark']
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user