Skip to content

Commit

Permalink
Merge pull request #13177 from nextcloud/fix/tasks-translations
Browse files Browse the repository at this point in the history
  • Loading branch information
Antreesy authored Aug 29, 2024
2 parents 440560d + 1e10872 commit 4b34023
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 4b34023

Please sign in to comment.