Co-authored-by: Alberto Xamin <alberto@xamin.it>
This commit is contained in:
Giulio 2021-06-12 13:07:46 +02:00
parent 01f0992363
commit 3aa786395a

View File

@ -108,9 +108,10 @@ export default {
} }
}, },
mounted() { mounted() {
if (localStorage.getItem('lang')) if (localStorage.getItem('lang')) {
this.$i18n.locale = localStorage.getItem('lang'); this.$i18n.locale = localStorage.getItem('lang');
document.documentElement.lang = this.$i18n.locale; document.documentElement.lang = this.$i18n.locale;
}
this.detectColorScheme() this.detectColorScheme()
}, },
created() { created() {