Initialize language settings earlier

This commit is contained in:
Florian Dupret 2021-03-06 10:27:02 +01:00
commit 4101951f2c

View file

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