From 5b5f295dc3d823fe3ce449636dab1ffca8e93e88 Mon Sep 17 00:00:00 2001 From: Massedil Date: Tue, 15 Oct 2024 17:35:27 +0200 Subject: [PATCH] #1459 Update translation to correctly pluralize the available places for an event --- src/components/Event/EventParticipationCard.vue | 10 +++++++--- src/i18n/en_US.json | 4 ++-- src/i18n/fr_FR.json | 4 ++-- 3 files changed, 11 insertions(+), 7 deletions(-) diff --git a/src/components/Event/EventParticipationCard.vue b/src/components/Event/EventParticipationCard.vue index 0376ee13e..f16348da1 100644 --- a/src/components/Event/EventParticipationCard.vue +++ b/src/components/Event/EventParticipationCard.vue @@ -124,9 +124,13 @@ {{ - t("{number} seats left", { - number: seatsLeft, - }) + t( + "{number} seats left", + { + number: seatsLeft, + }, + seatsLeft ?? 0 + ) }}