diff --git a/apps/web/components/booking/AvailableTimes.tsx b/apps/web/components/booking/AvailableTimes.tsx index 4d4eebb6ad..178efafe99 100644 --- a/apps/web/components/booking/AvailableTimes.tsx +++ b/apps/web/components/booking/AvailableTimes.tsx @@ -176,7 +176,10 @@ const AvailableTimes: FC = ({ : "text-emerald-400" } text-sm`}> {slot.attendees ? seatsPerTimeSlot - slot.attendees : seatsPerTimeSlot} /{" "} - {seatsPerTimeSlot} {t("seats_available")} + {seatsPerTimeSlot}{" "} + {t("seats_available", { + count: slot.attendees ? seatsPerTimeSlot - slot.attendees : seatsPerTimeSlot, + })}

)} diff --git a/apps/web/components/booking/pages/BookingPage.tsx b/apps/web/components/booking/pages/BookingPage.tsx index ebd9d1ab68..2dc2e706ba 100644 --- a/apps/web/components/booking/pages/BookingPage.tsx +++ b/apps/web/components/booking/pages/BookingPage.tsx @@ -637,7 +637,12 @@ const BookingPage = ({ {currentSlotBooking ? eventType.seatsPerTimeSlot - currentSlotBooking.attendees.length : eventType.seatsPerTimeSlot}{" "} - / {eventType.seatsPerTimeSlot} {t("seats_available")} + / {eventType.seatsPerTimeSlot}{" "} + {t("seats_available", { + count: currentSlotBooking + ? eventType.seatsPerTimeSlot - currentSlotBooking.attendees.length + : eventType.seatsPerTimeSlot, + })}

)} diff --git a/apps/web/public/static/locales/ar/common.json b/apps/web/public/static/locales/ar/common.json index d5cf3375bf..4b0c3fe405 100644 --- a/apps/web/public/static/locales/ar/common.json +++ b/apps/web/public/static/locales/ar/common.json @@ -904,7 +904,8 @@ "duplicate": "تكرار", "offer_seats": "عرض مقاعد", "offer_seats_description": "عرض مقاعد للحجز. هذا يعطل تلقائياً حجز الضيوف وحجز الاشتراك.", - "seats_available": "المقاعد المتاحة", + "seats_available_one":"المقعد متاح", + "seats_available_other": "المقاعد المتاحة", "number_of_seats": "عدد المقاعد لكل حجز", "enter_number_of_seats": "أدخل عدد المقاعد", "you_can_manage_your_schedules": "يمكنك إدارة الجداول الخاصة بك في صفحة الأوقات المتاحة.", diff --git a/apps/web/public/static/locales/cs/common.json b/apps/web/public/static/locales/cs/common.json index f79da4d95a..4b73f53688 100644 --- a/apps/web/public/static/locales/cs/common.json +++ b/apps/web/public/static/locales/cs/common.json @@ -904,7 +904,8 @@ "duplicate": "Duplikovat", "offer_seats": "Nabídka míst", "offer_seats_description": "Nabídnout místa k rezervaci. Tím se vypnou rezervace hostů a volitelné rezervace.", - "seats_available": "Dostupná místa", + "seats_available_one":"K dispozici sedadlo", + "seats_available_other": "Dostupná místa", "number_of_seats": "Počet míst na rezervaci", "enter_number_of_seats": "Zadejte počet míst", "you_can_manage_your_schedules": "Své plány můžete spravovat na stránce Dostupnost.", diff --git a/apps/web/public/static/locales/da/common.json b/apps/web/public/static/locales/da/common.json index 60ec96fe87..e238291bd7 100644 --- a/apps/web/public/static/locales/da/common.json +++ b/apps/web/public/static/locales/da/common.json @@ -876,7 +876,8 @@ "duplicate": "Duplikér", "offer_seats": "Tilbyd pladser", "offer_seats_description": "Tilbyd pladser til booking. Dette deaktiverer automatisk gæste- og tilvalgs bookinger.", - "seats_available": "Tilgængelige pladser", + "seats_available_one":"Tilgængeligt sæde", + "seats_available_other": "Tilgængelige pladser", "number_of_seats": "Antal pladser pr. booking", "enter_number_of_seats": "Angiv antal pladser", "you_can_manage_your_schedules": "Du kan administrere dine tidsplaner på siden Tilgængelighed.", diff --git a/apps/web/public/static/locales/de/common.json b/apps/web/public/static/locales/de/common.json index 3e6525a7c2..45e6a4176c 100644 --- a/apps/web/public/static/locales/de/common.json +++ b/apps/web/public/static/locales/de/common.json @@ -904,7 +904,8 @@ "duplicate": "Duplizieren", "offer_seats": "Plätze anbieten", "offer_seats_description": "Bieten Sie Plätze für Buchungen an (dies deaktiviert Gäste & Opt-in-Buchungen)", - "seats_available": "Verfügbare Plätze", + "seats_available_one":"Verfügbarer Sitzplatz", + "seats_available_other": "Verfügbare Plätze", "number_of_seats": "Anzahl der Plätze pro Termin", "enter_number_of_seats": "Anzahl der Plätze eingeben", "you_can_manage_your_schedules": "Sie können Ihren Verfügbarkeitsplan bei Ihren Verfügbarkeiten ändern.", diff --git a/apps/web/public/static/locales/en/common.json b/apps/web/public/static/locales/en/common.json index b406c9ece6..c3f458020e 100644 --- a/apps/web/public/static/locales/en/common.json +++ b/apps/web/public/static/locales/en/common.json @@ -915,7 +915,8 @@ "duplicate": "Duplicate", "offer_seats": "Offer seats", "offer_seats_description": "Offer seats for booking. This automatically disables guest & opt-in bookings.", - "seats_available": "Seats available", + "seats_available_one":"Seat available", + "seats_available_other": "Seats available", "number_of_seats": "Number of seats per booking", "enter_number_of_seats": "Enter number of seats", "you_can_manage_your_schedules": "You can manage your schedules on the Availability page.", diff --git a/apps/web/public/static/locales/es/common.json b/apps/web/public/static/locales/es/common.json index fd98748da5..bb67c832cb 100644 --- a/apps/web/public/static/locales/es/common.json +++ b/apps/web/public/static/locales/es/common.json @@ -904,7 +904,8 @@ "duplicate": "Duplicado", "offer_seats": "Ofrecer plazas", "offer_seats_description": "Ofrecer plazas para las reservas (desactiva las reservas de invitados y las optativas)", - "seats_available": "Plazas disponibles", + "seats_available_one":"Asiento disponible", + "seats_available_other": "Plazas disponibles", "number_of_seats": "Número de plazas por reserva", "enter_number_of_seats": "Introduzca el número de plazas", "you_can_manage_your_schedules": "Puede administrar sus horarios en la página Disponibilidad.", diff --git a/apps/web/public/static/locales/fr/common.json b/apps/web/public/static/locales/fr/common.json index e058ebaf12..efb38d3d5f 100644 --- a/apps/web/public/static/locales/fr/common.json +++ b/apps/web/public/static/locales/fr/common.json @@ -908,7 +908,8 @@ "duplicate": "Dupliquer", "offer_seats": "Proposer des places", "offer_seats_description": "Proposez des places de réservation. Cela désactive automatiquement les réservations d'invités et d'opt-in.", - "seats_available": "places disponibles", + "seats_available_one":"Siège disponible", + "seats_available_other": "Places disponibles", "number_of_seats": "Nombre de places par réservation", "enter_number_of_seats": "Saisir le nombre de sièges", "you_can_manage_your_schedules": "Vous pouvez gérer vos disponibilités sur la page Disponibilité.", diff --git a/apps/web/public/static/locales/he/common.json b/apps/web/public/static/locales/he/common.json index 99d199a292..c2a7f0878a 100644 --- a/apps/web/public/static/locales/he/common.json +++ b/apps/web/public/static/locales/he/common.json @@ -880,7 +880,8 @@ "duplicate": "כפילות", "offer_seats": "הצעת מקומות", "offer_seats_description": "הצעת מקומות להזמנות (אפשרות זו משביתה באופן אוטומטי אישורי הזמנות ואורחים).", - "seats_available": "מקומות זמינים", + "seats_available_one":"מושב פנוי", + "seats_available_other": "מקומות זמינים", "number_of_seats": "מספר המקומות לכל הזמנה", "enter_number_of_seats": "יש להזין את מספר המקומות", "you_can_manage_your_schedules": "ניתן לנהל את לוחות הזמנים בדף 'זמינות'.", diff --git a/apps/web/public/static/locales/it/common.json b/apps/web/public/static/locales/it/common.json index f636eacea3..dc14e2eeee 100644 --- a/apps/web/public/static/locales/it/common.json +++ b/apps/web/public/static/locales/it/common.json @@ -904,7 +904,8 @@ "duplicate": "Duplica", "offer_seats": "Imposta posti", "offer_seats_description": "Indica i posti disponibili (ciò disabiliterà le prenotazioni ospite e le prenotazioni opt-in).", - "seats_available": "Posti disponibili", + "seats_available_one":"Posto disponibile", + "seats_available_other": "Posti disponibili", "number_of_seats": "Numero di posti per prenotazione", "enter_number_of_seats": "Immettere il numero di posti", "you_can_manage_your_schedules": "Puoi gestire i tuoi programmi dalla pagina Disponibilità.", diff --git a/apps/web/public/static/locales/ja/common.json b/apps/web/public/static/locales/ja/common.json index d76ca71193..233af58dce 100644 --- a/apps/web/public/static/locales/ja/common.json +++ b/apps/web/public/static/locales/ja/common.json @@ -904,7 +904,8 @@ "duplicate": "複製", "offer_seats": "座席を提供", "offer_seats_description": "予約可能な座席を設定します。これにより、ゲストおよびオプトイン予約は自動的に無効化されます。", - "seats_available": "空席あり", + "seats_available_one":"空席あり", + "seats_available_other": "空席あり", "number_of_seats": "1予約あたりの座席数", "enter_number_of_seats": "座席数を入力", "you_can_manage_your_schedules": "スケジュール管理は、「空き状況」ページで行えます。", diff --git a/apps/web/public/static/locales/ko/common.json b/apps/web/public/static/locales/ko/common.json index 00eb47a300..8a9fc485a2 100644 --- a/apps/web/public/static/locales/ko/common.json +++ b/apps/web/public/static/locales/ko/common.json @@ -906,7 +906,8 @@ "duplicate": "복제", "offer_seats": "좌석 제공", "offer_seats_description": "예약에 좌석 제공(게스트를 비활성화하고 예약을 선택함)", - "seats_available": "사용 가능한 좌석", + "seats_available_one":"사용 가능한 좌석", + "seats_available_other": "사용 가능한 좌석", "number_of_seats": "예약당 좌석 수", "enter_number_of_seats": "좌석 수 입력", "you_can_manage_your_schedules": "가용성 페이지에서 자신의 일정을 관리할 수 있습니다.", diff --git a/apps/web/public/static/locales/nl/common.json b/apps/web/public/static/locales/nl/common.json index 7c2d88017b..cce2887c81 100644 --- a/apps/web/public/static/locales/nl/common.json +++ b/apps/web/public/static/locales/nl/common.json @@ -904,7 +904,8 @@ "duplicate": "Dupliceren", "offer_seats": "Zitplaatsen aanbieden", "offer_seats_description": "Bied beschikbare plaatsen aan voor boekingen. Hiermee worden gastboekingen en aanmeldingsboekingen automatisch uitgeschakeld.", - "seats_available": "Beschikbare zitplaatsen", + "seats_available_one":"Beschikbare stoel", + "seats_available_other": "Beschikbare zitplaatsen", "number_of_seats": "Aantal zitplaatsen per boeking", "enter_number_of_seats": "Voer het aantal zitplaatsen in", "you_can_manage_your_schedules": "U kunt uw schema's beheren op de beschikbaarheidspagina.", diff --git a/apps/web/public/static/locales/no/common.json b/apps/web/public/static/locales/no/common.json index eb36121620..a4b09f5ace 100644 --- a/apps/web/public/static/locales/no/common.json +++ b/apps/web/public/static/locales/no/common.json @@ -861,7 +861,8 @@ "duplicate": "Dupliser", "offer_seats": "Tilby seter", "offer_seats_description": "Tilby seter for booking. Dette deaktiverer automatisk gjeste- og påmeldings-bookinger.", - "seats_available": "Tilgjengelige seter", + "seats_available_one":"Tilgjengelig sete", + "seats_available_other": "Tilgjengelige seter", "number_of_seats": "Antall seter per booking", "enter_number_of_seats": "Angi antall seter", "you_can_manage_your_schedules": "Du kan administrere tidsplanene dine på Tilgjengelighet-siden.", diff --git a/apps/web/public/static/locales/pl/common.json b/apps/web/public/static/locales/pl/common.json index 9182ceb014..542c122cdf 100644 --- a/apps/web/public/static/locales/pl/common.json +++ b/apps/web/public/static/locales/pl/common.json @@ -904,7 +904,8 @@ "duplicate": "Duplikat", "offer_seats": "Zaproponuj miejsca", "offer_seats_description": "Zaoferuj miejsca do zarezerwowania. To automatycznie wyłącza rezerwacje gości i rezerwacje wstępne.", - "seats_available": "Dostępne miejsca", + "seats_available_one":"Dostępne miejsce", + "seats_available_other": "Dostępne miejsca", "number_of_seats": "Liczba miejsc na rezerwację", "enter_number_of_seats": "Wprowadź liczbę miejsc", "you_can_manage_your_schedules": "Możesz zarządzać swoimi harmonogramami na stronie Dostępności.", diff --git a/apps/web/public/static/locales/pt-BR/common.json b/apps/web/public/static/locales/pt-BR/common.json index 7befbd7f5c..6cc4c93d9e 100644 --- a/apps/web/public/static/locales/pt-BR/common.json +++ b/apps/web/public/static/locales/pt-BR/common.json @@ -904,7 +904,8 @@ "duplicate": "Duplicar", "offer_seats": "Oferecer assentos", "offer_seats_description": "Oferecer assentos para reserva. Isto desativa automaticamente reservas de convidados e confirmações.", - "seats_available": "Assentos disponíveis", + "seats_available_one":"Assento disponível", + "seats_available_other": "Assentos disponíveis", "number_of_seats": "Número de assentos por reserva", "enter_number_of_seats": "Insira a quantidade de assentos", "you_can_manage_your_schedules": "Você pode gerenciar suas agendas na página de Disponibilidade.", diff --git a/apps/web/public/static/locales/pt/common.json b/apps/web/public/static/locales/pt/common.json index 98f0593770..b07cc38b8b 100644 --- a/apps/web/public/static/locales/pt/common.json +++ b/apps/web/public/static/locales/pt/common.json @@ -904,7 +904,8 @@ "duplicate": "Duplicar", "offer_seats": "Oferecer lugares", "offer_seats_description": "Oferecer lugares para reservas (isto desactiva os convidados e confirmações nas reservas)", - "seats_available": "Lugares disponíveis", + "seats_available_one":"Lugar disponível", + "seats_available_other": "Lugares disponíveis", "number_of_seats": "Número de lugares por reserva", "enter_number_of_seats": "Digite um número de lugares", "you_can_manage_your_schedules": "Pode gerir os seus horários na página de Disponibilidade.", diff --git a/apps/web/public/static/locales/ro/common.json b/apps/web/public/static/locales/ro/common.json index 208724c0ea..7648fba03f 100644 --- a/apps/web/public/static/locales/ro/common.json +++ b/apps/web/public/static/locales/ro/common.json @@ -904,7 +904,8 @@ "duplicate": "Duplicare", "offer_seats": "Oferiți locuri", "offer_seats_description": "Opțiunea oferă locuri pentru rezervare și dezactivează automat rezervările pentru oaspeți și cele la alegere.", - "seats_available": "Locuri disponibile", + "seats_available_one":"Loc disponibil", + "seats_available_other": "Locuri disponibile", "number_of_seats": "Numărul de locuri per rezervare", "enter_number_of_seats": "Introduceți numărul de locuri", "you_can_manage_your_schedules": "Vă puteți gestiona programările pe pagina Disponibilitate.", diff --git a/apps/web/public/static/locales/ru/common.json b/apps/web/public/static/locales/ru/common.json index 8affc056cd..588d5f1f5b 100644 --- a/apps/web/public/static/locales/ru/common.json +++ b/apps/web/public/static/locales/ru/common.json @@ -904,7 +904,8 @@ "duplicate": "Создать копию", "offer_seats": "Предложить места", "offer_seats_description": "Предлагать места при бронировании (данная настройка автоматически отключает гостевой режим и бронирование с подтверждением).", - "seats_available": "Доступные места", + "seats_available_one":"Доступное место", + "seats_available_other": "Доступные места", "number_of_seats": "Количество мест на одну бронь", "enter_number_of_seats": "Укажите количество мест", "you_can_manage_your_schedules": "Расписаниями можно управлять на странице «Доступность».", diff --git a/apps/web/public/static/locales/sr/common.json b/apps/web/public/static/locales/sr/common.json index 60596c4c11..ad5052de53 100644 --- a/apps/web/public/static/locales/sr/common.json +++ b/apps/web/public/static/locales/sr/common.json @@ -904,7 +904,8 @@ "duplicate": "Dupliraj", "offer_seats": "Ponudi mesta", "offer_seats_description": "Ponudite mesta za zakazivanje. Ovo automatski onemogućava gostujuća i opciona zakazivanja.", - "seats_available": "Slobodnih mesta", + "seats_available_one":"Slobodno mjesto", + "seats_available_other": "Slobodnih mesta", "number_of_seats": "Broj mesta po zakazivanju", "enter_number_of_seats": "Unesite broj slobodnih mesta", "you_can_manage_your_schedules": "Svojim rasporedima možete upravljati na stranici Dostupnost.", diff --git a/apps/web/public/static/locales/sv/common.json b/apps/web/public/static/locales/sv/common.json index 9fb50e2812..620614093c 100644 --- a/apps/web/public/static/locales/sv/common.json +++ b/apps/web/public/static/locales/sv/common.json @@ -904,7 +904,8 @@ "duplicate": "Duplicera", "offer_seats": "Erbjud platser", "offer_seats_description": "Erbjud platser till bokningar. Detta inaktiverar gäster och bokningar.", - "seats_available": "Tillgängliga platser", + "seats_available_one":"Tillgänglig sits", + "seats_available_other": "Tillgängliga platser", "number_of_seats": "Antal platser per bokning", "enter_number_of_seats": "Ange antal platser", "you_can_manage_your_schedules": "Du kan hantera dina scheman på sidan Tillgänglighet.", diff --git a/apps/web/public/static/locales/tr/common.json b/apps/web/public/static/locales/tr/common.json index d8cee8c53a..e61353e6b4 100644 --- a/apps/web/public/static/locales/tr/common.json +++ b/apps/web/public/static/locales/tr/common.json @@ -904,7 +904,8 @@ "duplicate": "Çoğalt", "offer_seats": "Yer teklif et", "offer_seats_description": "Rezervasyonlar için yer teklif edin. Bu işlem, misafirleri ve rezervasyon onaylarını devre dışı bırakır.", - "seats_available": "Yer mevcut", + "seats_available_one":"Yer mevcut", + "seats_available_other": "Yer mevcut", "number_of_seats": "Rezervasyon başına yer sayısı", "enter_number_of_seats": "Yer sayısını girin", "you_can_manage_your_schedules": "Müsaitlik durumu sayfasından planlarınızı yönetebilirsiniz.", diff --git a/apps/web/public/static/locales/uk/common.json b/apps/web/public/static/locales/uk/common.json index 4521b177bc..a9efebf81d 100644 --- a/apps/web/public/static/locales/uk/common.json +++ b/apps/web/public/static/locales/uk/common.json @@ -904,7 +904,8 @@ "duplicate": "Дублювати", "offer_seats": "Запропонувати місця", "offer_seats_description": "Пропонуйте місця під час бронювання (при цьому вимикається гостьовий режим і бронювання з підтвердженням).", - "seats_available": "Доступні місця", + "seats_available_one":"Місце вільне", + "seats_available_other": "Доступні місця", "number_of_seats": "Кількість місць на одне бронювання", "enter_number_of_seats": "Введіть кількість місць", "you_can_manage_your_schedules": "Керувати розкладами можна на сторінці «Доступність».", diff --git a/apps/web/public/static/locales/vi/common.json b/apps/web/public/static/locales/vi/common.json index bf3e226f1f..e6dd5afe80 100644 --- a/apps/web/public/static/locales/vi/common.json +++ b/apps/web/public/static/locales/vi/common.json @@ -904,7 +904,8 @@ "duplicate": "Sao chép", "offer_seats": "Cung cấp ghế ngồi", "offer_seats_description": "Cung cấp ghế để đặt lịch. Việc này sẽ tự động vô hiệu hoá đặt lịch của khách & đặt lịch tham gia.", - "seats_available": "Số ghế trống", + "seats_available_one":"Số ghế trống", + "seats_available_other": "Số ghế trống", "number_of_seats": "Số ghế cho mỗi lần đặt", "enter_number_of_seats": "Điền vào số lượng ghế", "you_can_manage_your_schedules": "Bạn có thể quản lý lịch biểu của mình trên trang \bLịch khả dụng.", diff --git a/apps/web/public/static/locales/zh-CN/common.json b/apps/web/public/static/locales/zh-CN/common.json index 169933d870..83ef07a570 100644 --- a/apps/web/public/static/locales/zh-CN/common.json +++ b/apps/web/public/static/locales/zh-CN/common.json @@ -904,7 +904,8 @@ "duplicate": "复制", "offer_seats": "提供位置", "offer_seats_description": "提供位置以供预约 (这将自动禁止访客和选择加入预约)。", - "seats_available": "可用位置", + "seats_available_one":"空座", + "seats_available_other": "可用位置", "number_of_seats": "每个预约的位置数目", "enter_number_of_seats": "输入位置数目", "you_can_manage_your_schedules": "您可以在“可预约时间”页面管理您的时间表。", diff --git a/apps/web/public/static/locales/zh-TW/common.json b/apps/web/public/static/locales/zh-TW/common.json index 2d109f5b61..a70f2c5e43 100644 --- a/apps/web/public/static/locales/zh-TW/common.json +++ b/apps/web/public/static/locales/zh-TW/common.json @@ -904,7 +904,8 @@ "duplicate": "複製", "offer_seats": "提供座位", "offer_seats_description": "為預約提供座位 (這將停用賓客和選擇加入的預約)", - "seats_available": "尚有座位", + "seats_available_one":"有座位", + "seats_available_other": "尚有座位", "number_of_seats": "每次預約的座位數", "enter_number_of_seats": "輸入座位數", "you_can_manage_your_schedules": "在開放時間頁面可以管理行程表。", diff --git a/packages/features/bookings/components/AvailableTimes.tsx b/packages/features/bookings/components/AvailableTimes.tsx index 6d8a106638..f807aba870 100644 --- a/packages/features/bookings/components/AvailableTimes.tsx +++ b/packages/features/bookings/components/AvailableTimes.tsx @@ -96,7 +96,9 @@ export const AvailableTimes = ({ aria-hidden /> {slot.attendees ? seatsPerTimeslot - slot.attendees : seatsPerTimeslot}{" "} - {t("seats_available")} + {t("seats_available", { + count: slot.attendees ? seatsPerTimeslot - slot.attendees : seatsPerTimeslot, + })}

)}