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'
|
||||
|
||||
export default {
|
||||
head () {
|
||||
return {
|
||||
htmlAttrs: {
|
||||
lang: this.locale
|
||||
}
|
||||
}
|
||||
},
|
||||
name: 'Default',
|
||||
components: { Nav, Snackbar, Footer, Confirm },
|
||||
computed: mapState(['settings']),
|
||||
computed: mapState(['settings', 'locale']),
|
||||
created () {
|
||||
this.$vuetify.theme.dark = this.settings['theme.is_dark']
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user