Skip to content

Scheduling infrastructure for absolutely everyone.

changed all new buttons, added i18n for routing forms (#4217)

Peer Richelsenc0b83c1df601
diff --git a/apps/web/public/static/locales/en/common.json b/apps/web/public/static/locales/en/common.json
index ffa11ebff64..b0db62ce341 100644
--- a/apps/web/public/static/locales/en/common.json
+++ b/apps/web/public/static/locales/en/common.json
@@ -1151,6 +1151,9 @@
"to": "To",
"attendee_required_enter_number": "This will require the attendee to enter a phone number when booking",
"workflow_turned_on_successfully": "{{workflowName}} workflow turned {{offOn}} successfully",
+ "download_responses": "Download Responses",
+ "create_your_first_form": "Create your first form",
+ "create_your_first_form_description": "With Routing Forms you can ask qualifying questions and route to the correct person or event type."
"for_a_maximum_of": "For a maximum of",
"event_one": "event",
"event_other": "events"
diff --git a/packages/app-store/ee/routing_forms/pages/forms/[...appPages].tsx b/packages/app-store/ee/routing_forms/pages/forms/[...appPages].tsx
index 55fabbdaf45..b741d66962d 100644
--- a/packages/app-store/ee/routing_forms/pages/forms/[...appPages].tsx
+++ b/packages/app-store/ee/routing_forms/pages/forms/[...appPages].tsx
@@ -22,7 +22,7 @@ export default function RoutingForms({
function NewFormButton() {
return (
<FormAction routingForm={null} data-testid="new-routing-form" StartIcon={Icon.FiPlus} action="create">
- New Form
+ {t("new")}
</FormAction>
);
}
@@ -37,8 +37,8 @@ export default function RoutingForms({
{!forms.length ? (
<EmptyScreen
Icon={Icon.FiGitMerge}
- headline="Create your first form"
- description="Forms enable you to allow a booker to connect with the right person or choose the right event, faster. It would work by taking inputs from the booker and using that data to route to the correct booker/event as configured by Cal user"
+ headline={t("create_your_first_form")}
+ description={t("create_your_first_form_description")}
buttonRaw={<NewFormButton />}
/>
) : null}
@@ -103,7 +103,7 @@ export default function RoutingForms({
routingForm={form}
color="minimal"
StartIcon={Icon.FiDownload}>
- Download Responses
+ {t("download_responses")}
</FormAction>
<FormAction
action="embed"
diff --git a/packages/ui/v2/modules/availability/NewScheduleButton.tsx b/packages/ui/v2/modules/availability/NewScheduleButton.tsx
index 490a54b7986..006fef6d2bd 100644
--- a/packages/ui/v2/modules/availability/NewScheduleButton.tsx
+++ b/packages/ui/v2/modules/availability/NewScheduleButton.tsx
@@ -41,7 +41,7 @@ export function NewScheduleButton({ name = "new-schedule" }: { name?: string })
<Dialog name={name} clearQueryParamsOnClose={["copy-schedule-id"]}>
<DialogTrigger asChild>
<Button data-testid={name} StartIcon={Icon.FiPlus}>
- {t("new_schedule_btn")}
+ {t("new")}
</Button>
</DialogTrigger>
<DialogContent>