Skip to content

Commit

Permalink
fix(TasksCounter): fix translations
Browse files Browse the repository at this point in the history
Signed-off-by: DorraJaouad <dorra.jaoued7@gmail.com>
  • Loading branch information
DorraJaouad committed Aug 29, 2024
1 parent 440560d commit 1e10872
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/components/TopBar/TasksCounter.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<script setup lang="ts">
import { computed } from 'vue'
import { t } from '@nextcloud/l10n'
import { t, n } from '@nextcloud/l10n'
import NcProgressBar from '@nextcloud/vue/dist/Components/NcProgressBar.js'
Expand All @@ -29,10 +29,7 @@ const tasksSummary = computed(() => {
return t('spreed', 'All tasks done!')
}
// TRANSLATORS number of tasks done of total number of tasks
return t('spreed', '{done} of {total} tasks', {
done: tasksDoneCount.value,
total: tasksCount.value,
})
return n('spreed', '{done} of %n task', '{done} of %n tasks', tasksCount.value, { done: tasksDoneCount.value })
})
</script>
Expand Down

0 comments on commit 1e10872

Please sign in to comment.