add lang html attrs with current locale

This commit is contained in:
lesion
2021-12-02 12:12:16 +01:00
parent 3ab930731a
commit d43cfbd6f9

View File

@@ -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']
}