feat(frontend): Discussions sidebar volgt taal

This commit is contained in:
Tibo De Peuter 2025-05-19 14:50:44 +02:00
parent 5646598229
commit a67315e05d
Signed by: tdpeuter
GPG key ID: 38297DE43F75FFE2

View file

@ -4,13 +4,18 @@
import DiscussionSideBarElement from "@/components/DiscussionSideBarElement.vue";
import { useI18n } from "vue-i18n";
import { useGetAllLearningPaths } from "@/queries/learning-paths.ts";
import { ref } from "vue";
import { ref, watch } from 'vue';
const { t, locale } = useI18n();
const navigationDrawerShown = ref(true);
const currentLocale = ref(locale.value);
const allLearningPathsResult = useGetAllLearningPaths(locale.value);
watch(locale, (newLocale) => {
currentLocale.value = newLocale;
})
const allLearningPathsResult = useGetAllLearningPaths(() => currentLocale.value);
</script>
<template>