Initialize language settings earlier (#199)

This commit is contained in:
sephrat 2021-03-06 22:13:00 +01:00 committed by GitHub
commit 25408f46b9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -71,13 +71,13 @@ export default {
this.search = !this.search;
}
});
this.$store.dispatch("initLang");
},
mounted() {
this.$store.dispatch("initTheme");
this.$store.dispatch("requestRecentRecipes");
this.$store.dispatch("requestHomePageSettings");
this.$store.dispatch("initLang");
this.darkModeSystemCheck();
this.darkModeAddEventListener();
},