Skip to content

Scheduling infrastructure for absolutely everyone.

fix: signing_up_terms i18n (#15156)

Udit Takkarb1bbbcee90e3
diff --git a/apps/web/pages/signup.tsx b/apps/web/pages/signup.tsx
index 7bfa0a60bf6..a01d18f46f4 100644
--- a/apps/web/pages/signup.tsx
+++ b/apps/web/pages/signup.tsx
@@ -538,23 +538,25 @@ export default function Signup({
</Link>
</div>
<div className="text-subtle ">
- <Trans i18nKey="signing_up_terms">
- By proceeding, you agree to our{" "}
- <Link
- className="text-emphasis hover:underline"
- href={`${WEBSITE_URL}/terms`}
- target="_blank">
- Terms
- </Link>{" "}
- and{" "}
- <Link
- className="text-emphasis hover:underline"
- href={`${WEBSITE_URL}/privacy`}
- target="_blank">
- Privacy Policy
- </Link>
- .
- </Trans>
+ <Trans
+ i18nKey="signing_up_terms"
+ components={[
+ <Link
+ className="text-emphasis hover:underline"
+ key="terms"
+ href={`${WEBSITE_URL}/terms`}
+ target="_blank">
+ Terms
+ </Link>,
+ <Link
+ className="text-emphasis hover:underline"
+ key="privacy"
+ href={`${WEBSITE_URL}/privacy`}
+ target="_blank">
+ Privacy Policy.
+ </Link>,
+ ]}
+ />
</div>
</div>
</div>
diff --git a/apps/web/public/static/locales/en/common.json b/apps/web/public/static/locales/en/common.json
index 2ec5493f9a9..baa0df45dad 100644
--- a/apps/web/public/static/locales/en/common.json
+++ b/apps/web/public/static/locales/en/common.json
@@ -2442,7 +2442,7 @@
"lowest_rated_members": "Members with lowest rated meetings",
"csat_score": "CSAT Score",
"lockedSMS": "Locked SMS",
- "signing_up_terms": "By proceeding, you agree to our <1>Terms</1> and <2>Privacy Policy</2>.",
+ "signing_up_terms": "By proceeding, you agree to our <0>Terms</0> and <1>Privacy Policy</1>.",
"always_show_x_days": "Always {{x}} days available",
"unable_to_subscribe_to_the_platform": "An error occurred while trying to subscribe to the platform plan, please try again later",
"updating_oauth_client_error": "An error occurred while updating the OAuth client, please try again later",
diff --git a/packages/features/bookings/Booker/components/BookEventForm/BookEventForm.tsx b/packages/features/bookings/Booker/components/BookEventForm/BookEventForm.tsx
index 7dd9f8da4d1..d5d09ebc7e0 100644
--- a/packages/features/bookings/Booker/components/BookEventForm/BookEventForm.tsx
+++ b/packages/features/bookings/Booker/components/BookEventForm/BookEventForm.tsx
@@ -114,17 +114,25 @@ export const BookEventForm = ({
)}
{!isPlatform && IS_CALCOM && (
<div className="text-subtle my-3 w-full text-xs opacity-80">
- <Trans i18nKey="signing_up_terms">
- By proceeding, you agree to our
- <Link className="text-emphasis hover:underline" href={`${WEBSITE_URL}/terms`} target="_blank">
- Terms
- </Link>{" "}
- and{" "}
- <Link className="text-emphasis hover:underline" href={`${WEBSITE_URL}/privacy`} target="_blank">
- Privacy Policy
- </Link>
- .
- </Trans>
+ <Trans
+ i18nKey="signing_up_terms"
+ components={[
+ <Link
+ className="text-emphasis hover:underline"
+ key="terms"
+ href={`${WEBSITE_URL}/terms`}
+ target="_blank">
+ Terms
+ </Link>,
+ <Link
+ className="text-emphasis hover:underline"
+ key="privacy"
+ href={`${WEBSITE_URL}/privacy`}
+ target="_blank">
+ Privacy Policy.
+ </Link>,
+ ]}
+ />
</div>
)}
<div className="modalsticky mt-auto flex justify-end space-x-2 rtl:space-x-reverse">