From 5d2d7ce97977bca675ab1ba87e7dbdc857e6d571 Mon Sep 17 00:00:00 2001 From: ajayjha1 <42446367+ajayjha1@users.noreply.github.com> Date: Sat, 15 Mar 2025 13:42:04 +0530 Subject: [PATCH] fix: German translation for seats_availability text (#20086) * Fix German translation for seats_availability text * enhancements --------- Co-authored-by: Tushar Bhatt <95581504+TusharBhatt1@users.noreply.github.com> Co-authored-by: Tushar --- apps/web/public/static/locales/de/common.json | 2 +- apps/web/public/static/locales/en/common.json | 3 ++- .../features/bookings/components/SeatsAvailabilityText.tsx | 3 +-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/apps/web/public/static/locales/de/common.json b/apps/web/public/static/locales/de/common.json index 699dcd49ba..c4f9677573 100644 --- a/apps/web/public/static/locales/de/common.json +++ b/apps/web/public/static/locales/de/common.json @@ -1118,7 +1118,7 @@ "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_other": "Verfügbare Plätze", + "seats_available_other": "Plätze verfügbar", "seats_nearly_full": "Plätze fast voll", "seats_half_full": "Plätze werden schnell belegt", "number_of_seats": "Anzahl der Plätze pro Termin", diff --git a/apps/web/public/static/locales/en/common.json b/apps/web/public/static/locales/en/common.json index 8b4ef4be22..1ee1408196 100644 --- a/apps/web/public/static/locales/en/common.json +++ b/apps/web/public/static/locales/en/common.json @@ -1118,7 +1118,8 @@ "duplicate": "Duplicate", "offer_seats": "Offer seats", "offer_seats_description": "Offer seats for booking. This automatically disables guest & opt-in bookings.", - "seats_available_other": "available", + "seats_available_one": "Seat available", + "seats_available_other": "Seats available", "seats_nearly_full": "Seats almost full", "seats_half_full": "Seats filling fast", "number_of_seats": "Number of seats per booking", diff --git a/packages/features/bookings/components/SeatsAvailabilityText.tsx b/packages/features/bookings/components/SeatsAvailabilityText.tsx index 8390e29fbd..fb2541ec87 100644 --- a/packages/features/bookings/components/SeatsAvailabilityText.tsx +++ b/packages/features/bookings/components/SeatsAvailabilityText.tsx @@ -1,5 +1,4 @@ import { useLocale } from "@calcom/lib/hooks/useLocale"; -import classNames from "@calcom/ui/classNames"; type Props = { /** @@ -34,7 +33,7 @@ export const SeatsAvailabilityText = ({ const isNearlyFull = bookedSeats / totalSeats >= 0.83; return ( - + {showExact ? `${availableSeats}${variant === "fraction" ? ` / ${totalSeats}` : ""} ${t("seats_available", { count: availableSeats,