diff options
| author | Shpuld Shpludson <shp@cock.li> | 2021-02-12 19:15:42 +0000 |
|---|---|---|
| committer | Shpuld Shpludson <shp@cock.li> | 2021-02-12 19:15:42 +0000 |
| commit | 7f3fd9ca21b1365f3cc6222c18fe700660dd5881 (patch) | |
| tree | c424ffa6c2f0950e25f068bee334a87a2a66add1 /src/components/poll/poll.vue | |
| parent | b2a96417cf95da5e34f2394835f0790911259182 (diff) | |
| parent | 01275fbac0e28d183e761e656a8e7b1c3b9612e9 (diff) | |
Merge branch 'multi-choice-poll-wording' into 'develop'
Display 'people voted' instead of 'votes' for multi-answers polls
Closes #993
See merge request pleroma/pleroma-fe!1341
Diffstat (limited to 'src/components/poll/poll.vue')
| -rw-r--r-- | src/components/poll/poll.vue | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/components/poll/poll.vue b/src/components/poll/poll.vue index 42819c19..187d1829 100644 --- a/src/components/poll/poll.vue +++ b/src/components/poll/poll.vue @@ -58,7 +58,12 @@ {{ $t('polls.vote') }} </button> <div class="total"> - {{ totalVotesCount }} {{ $t("polls.votes") }} · + <template v-if="typeof poll.voters_count === 'number'"> + {{ $tc("polls.people_voted_count", poll.voters_count, { count: poll.voters_count }) }} · + </template> + <template v-else> + {{ $tc("polls.votes_count", poll.votes_count, { count: poll.votes_count }) }} · + </template> </div> <i18n :path="expired ? 'polls.expired' : 'polls.expires_in'"> <Timeago |
