feat(frontend): Discussions sidebar volgt taal
This commit is contained in:
		
							parent
							
								
									5646598229
								
							
						
					
					
						commit
						a67315e05d
					
				
					 1 changed files with 7 additions and 2 deletions
				
			
		|  | @ -4,13 +4,18 @@ | ||||||
|     import DiscussionSideBarElement from "@/components/DiscussionSideBarElement.vue"; |     import DiscussionSideBarElement from "@/components/DiscussionSideBarElement.vue"; | ||||||
|     import { useI18n } from "vue-i18n"; |     import { useI18n } from "vue-i18n"; | ||||||
|     import { useGetAllLearningPaths } from "@/queries/learning-paths.ts"; |     import { useGetAllLearningPaths } from "@/queries/learning-paths.ts"; | ||||||
|     import { ref } from "vue"; |     import { ref, watch } from 'vue'; | ||||||
| 
 | 
 | ||||||
|     const { t, locale } = useI18n(); |     const { t, locale } = useI18n(); | ||||||
| 
 | 
 | ||||||
|     const navigationDrawerShown = ref(true); |     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> | </script> | ||||||
| 
 | 
 | ||||||
| <template> | <template> | ||||||
|  |  | ||||||
		Reference in a new issue