fix lang
Co-authored-by: Alberto Xamin <alberto@xamin.it>
This commit is contained in:
parent
01f0992363
commit
3aa786395a
@ -108,9 +108,10 @@ export default {
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
if (localStorage.getItem('lang'))
|
||||
if (localStorage.getItem('lang')) {
|
||||
this.$i18n.locale = localStorage.getItem('lang');
|
||||
document.documentElement.lang = this.$i18n.locale;
|
||||
}
|
||||
this.detectColorScheme()
|
||||
},
|
||||
created() {
|
||||
|
Loading…
Reference in New Issue
Block a user