Scheduling infrastructure for absolutely everyone.
fix: Toast message variable issue (#11879)
Raj Patelc75b5bec07ec
diff --git a/apps/web/pages/event-types/[type]/index.tsx b/apps/web/pages/event-types/[type]/index.tsxindex 04bbeae8245..1c0df98e0aa 100644--- a/apps/web/pages/event-types/[type]/index.tsx+++ b/apps/web/pages/event-types/[type]/index.tsx@@ -184,7 +184,7 @@ const EventTypePage = (props: EventTypeSetupProps) => {created: true,})));- showToast(t("event_type_updated_successfully"), "success");+ showToast(t("event_type_updated_successfully", { eventTypeTitle: eventType.title }), "success");},async onSettled() {await utils.viewer.eventTypes.get.invalidate();diff --git a/apps/web/public/static/locales/en/common.json b/apps/web/public/static/locales/en/common.jsonindex c92cb5385d0..2cdf3246e4a 100644--- a/apps/web/public/static/locales/en/common.json+++ b/apps/web/public/static/locales/en/common.json@@ -688,8 +688,8 @@"new_event_type_btn": "New event type","new_event_type_heading": "Create your first event type","new_event_type_description": "Event types enable you to share links that show available times on your calendar and allow people to make bookings with you.",- "event_type_created_successfully": "Event type created successfully",- "event_type_updated_successfully": "Event type updated successfully",+ "event_type_created_successfully": "{{eventTypeTitle}} event type created successfully",+ "event_type_updated_successfully": "{{eventTypeTitle}} event type updated successfully","event_type_deleted_successfully": "Event type deleted successfully","hours": "Hours","people": "People",diff --git a/apps/web/public/static/locales/fr/common.json b/apps/web/public/static/locales/fr/common.jsonindex 2eb3b983287..3771f99dbb3 100644--- a/apps/web/public/static/locales/fr/common.json+++ b/apps/web/public/static/locales/fr/common.json@@ -681,8 +681,8 @@"new_event_type_btn": "Nouveau type d'événement","new_event_type_heading": "Créez votre premier type d'événement","new_event_type_description": "Les types d'événements vous permettent de partager des liens qui affichent vos disponibilités sur votre calendrier et permettent aux personnes de réserver des créneaux.",- "event_type_created_successfully": "Type d'événement créé avec succès",- "event_type_updated_successfully": "Type d'événement mis à jour avec succès",+ "event_type_created_successfully": "{{eventTypeTitle}} type d'événement créé avec succès",+ "event_type_updated_successfully": "{{eventTypeTitle}} type d'événement mis à jour avec succès","event_type_deleted_successfully": "Type d'événement supprimé avec succès","hours": "heures","people": "Personnes",diff --git a/apps/web/public/static/locales/pt-BR/common.json b/apps/web/public/static/locales/pt-BR/common.jsonindex 39322cc7e2f..e4b4fabd8e3 100644--- a/apps/web/public/static/locales/pt-BR/common.json+++ b/apps/web/public/static/locales/pt-BR/common.json@@ -682,7 +682,7 @@"new_event_type_heading": "Crie seu primeiro evento","new_event_type_description": "Os eventos permitem que você compartilhe links que mostram os horários disponíveis no seu calendário para que os usuários façam agendamentos com você.","event_type_created_successfully": "{{eventTypeTitle}} evento criado com sucesso",- "event_type_updated_successfully": "Tipo de evento atualizado com sucesso",+ "event_type_updated_successfully": "{{eventTypeTitle}} tipo de evento atualizado com sucesso","event_type_deleted_successfully": "Tipo de evento removido com sucesso","hours": "Horas","people": "Pessoas",diff --git a/apps/web/public/static/locales/pt/common.json b/apps/web/public/static/locales/pt/common.jsonindex cfc18fa0c1c..df992ac7a9c 100644--- a/apps/web/public/static/locales/pt/common.json+++ b/apps/web/public/static/locales/pt/common.json@@ -682,7 +682,7 @@"new_event_type_heading": "Crie o seu primeiro tipo de evento","new_event_type_description": "Os tipos de evento permitem partilhar ligações que mostram os horários disponíveis na sua agenda, e permitem que as pessoas façam reservas consigo.","event_type_created_successfully": "Tipo de evento {{eventTypeTitle}} criado com sucesso",- "event_type_updated_successfully": "Tipo de evento atualizado com sucesso",+ "event_type_updated_successfully": "Tipo de evento {{eventTypeTitle}} atualizado com sucesso","event_type_deleted_successfully": "Tipo de evento eliminado com sucesso","hours": "Horas","people": "Pessoas",diff --git a/packages/features/eventtypes/components/CreateEventTypeDialog.tsx b/packages/features/eventtypes/components/CreateEventTypeDialog.tsxindex 4d315900dca..7032079c139 100644--- a/packages/features/eventtypes/components/CreateEventTypeDialog.tsx+++ b/packages/features/eventtypes/components/CreateEventTypeDialog.tsx@@ -117,7 +117,12 @@ export default function CreateEventTypeDialog({const createMutation = trpc.viewer.eventTypes.create.useMutation({onSuccess: async ({ eventType }) => {await router.replace(`/event-types/${eventType.id}`);- showToast(t("event_type_created_successfully"), "success");+ showToast(+ t("event_type_created_successfully", {+ eventTypeTitle: eventType.title,+ }),+ "success"+ );},onError: (err) => {if (err instanceof HttpError) {diff --git a/packages/features/eventtypes/components/DuplicateDialog.tsx b/packages/features/eventtypes/components/DuplicateDialog.tsxindex e91c9172130..86f1e7da9ec 100644--- a/packages/features/eventtypes/components/DuplicateDialog.tsx+++ b/packages/features/eventtypes/components/DuplicateDialog.tsx@@ -66,7 +66,12 @@ const DuplicateDialog = () => {const duplicateMutation = trpc.viewer.eventTypes.duplicate.useMutation({onSuccess: async ({ eventType }) => {await router.replace(`/event-types/${eventType.id}`);- showToast(t("event_type_created_successfully"), "success");+ showToast(+ t("event_type_created_successfully", {+ eventTypeTitle: eventType.title,+ }),+ "success"+ );},onError: (err) => {if (err instanceof HttpError) {