From d43cfbd6f94acdf389c02ca4a5d2c38833b23496 Mon Sep 17 00:00:00 2001 From: lesion Date: Thu, 2 Dec 2021 12:12:16 +0100 Subject: [PATCH] add lang html attrs with current locale --- layouts/default.vue | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/layouts/default.vue b/layouts/default.vue index 1a7a1d1e..f81418f6 100644 --- a/layouts/default.vue +++ b/layouts/default.vue @@ -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'] }