From df78cab1407402945e45ee5c6abc6c201f5b8474 Mon Sep 17 00:00:00 2001 From: Felix Scholze Date: Thu, 27 Feb 2025 21:29:05 +0100 Subject: [PATCH] fix(GithubStats): t fn was not reactive --- src/components/GithubStats.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/components/GithubStats.vue b/src/components/GithubStats.vue index d8a659d..844473e 100644 --- a/src/components/GithubStats.vue +++ b/src/components/GithubStats.vue @@ -45,7 +45,9 @@ const totalBytes = ref(0); const totalCommits = ref(0); const totalAdditions = ref(0); const lang = useStore(currentLanguage); -const t = useTranslations(lang.value); + +// TODO: provide reactivity on global or function level +const t = computed(() => useTranslations(lang.value)); const filteredLanguagePercentages = computed(() => { return Object.fromEntries(