Rallly is an open-source scheduling and collaboration tool designed to make organizing events and meetings easier.
TypeScript i18nextnext-authnextjspostgresqlprismareact-emailt3-stacktailwindcsstrpcturborepotypescriptzod
🐛 Fix participant count (#1944)
Luke Vella4784c71242c5
diff --git a/apps/web/public/locales/en/app.json b/apps/web/public/locales/en/app.jsonindex d08bddd03..d2606ce31 100644--- a/apps/web/public/locales/en/app.json+++ b/apps/web/public/locales/en/app.json@@ -455,7 +455,7 @@"loading": "Loading...","endOfList": "You've reached the end of the list","attendeeCount": "{count, plural, =0 {No attendees} one {1 attendee} other {# attendees}}",- "participantCount": "{count, plural, one {1 participant} other {# participants}}",+ "participantCount": "{count, plural, =0 {No participants} one {1 participant} other {# participants}}","imageCropDialogTitle": "Crop Image","cropPreview": "Crop preview","annualSavings": "Save {amount} with yearly billing",diff --git a/apps/web/src/features/poll/components/poll-list.tsx b/apps/web/src/features/poll/components/poll-list.tsxindex 2ccdc66d7..0c2a1ddf3 100644--- a/apps/web/src/features/poll/components/poll-list.tsx+++ b/apps/web/src/features/poll/components/poll-list.tsx@@ -5,7 +5,6 @@ import { OptimizedAvatarImage } from "@/components/optimized-avatar-image";import { StackedList, StackedListItem } from "@/components/stacked-list";import { Trans } from "@/components/trans";import { PollStatusIcon } from "@/features/poll/components/poll-status-icon";-import type { PollStatus } from "../schema";export const PollList = StackedList;@@ -44,7 +43,7 @@ export function PollListItem({<span className="cursor-help text-muted-foreground text-sm"><Transi18nKey="participantCount"- defaults="{count, plural, one {1 participant} other {# participants}}"+ defaults="{count, plural, =0 {No participants} =1 {1 participant} other {# participants}}"values={{ count: participants.length }}/></span>@@ -70,8 +69,8 @@ export function PollListItem({<span className="text-muted-foreground text-sm"><Transi18nKey="participantCount"- defaults="{count, plural, one {1 participant} other {# participants}}"- values={{ count: 0 }}+ defaults="{count, plural, =0 {No participants} =1 {1 participant} other {# participants}}"+ values={{ count: participants.length }}/></span>)}