Skip to content

Commit

Permalink
fix(GithubStats): t fn was not reactive
Browse files Browse the repository at this point in the history
  • Loading branch information
felix-berlin committed Feb 27, 2025
1 parent f059603 commit df78cab
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/components/GithubStats.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit df78cab

Please sign in to comment.