diff --git a/apps/web/public/static/locales/en/common.json b/apps/web/public/static/locales/en/common.json
index 4fb8a6f3a8a57b..e553cc233fcbee 100644
--- a/apps/web/public/static/locales/en/common.json
+++ b/apps/web/public/static/locales/en/common.json
@@ -143,6 +143,7 @@
"request_another_invitation_email": "If you prefer not to use {{toEmail}} as your {{appName}} email or already have a {{appName}} account, please request another invitation to that email.",
"you_have_been_invited": "You have been invited to join the team {{teamName}}",
"user_invited_you": "{{user}} invited you to join the {{entity}} {{team}} on {{appName}}",
+ "user_invited_you_to_subteam": "{{user}} invited you to join the team {{team}} of organization {{parentTeamName}} on {{appName}}",
"hidden_team_member_title": "You are hidden in this team",
"hidden_team_member_message": "Your seat is not paid for, either Upgrade to PRO or let the team owner know they can pay for your seat.",
"hidden_team_owner_message": "You need a pro account to use teams, you are hidden until you upgrade.",
@@ -1746,9 +1747,11 @@
"organizer_timezone": "Organizer timezone",
"email_user_cta": "View Invitation",
"email_no_user_invite_heading_team": "You’ve been invited to join a {{appName}} team",
+ "email_no_user_invite_heading_subteam": "You’ve been invited to join a team of {{parentTeamName}} organization",
"email_no_user_invite_heading_org": "You’ve been invited to join a {{appName}} organization",
"email_no_user_invite_subheading": "{{invitedBy}} has invited you to join their team on {{appName}}. {{appName}} is the event-juggling scheduler that enables you and your team to schedule meetings without the email tennis.",
"email_user_invite_subheading_team": "{{invitedBy}} has invited you to join their team `{{teamName}}` on {{appName}}. {{appName}} is the event-juggling scheduler that enables you and your team to schedule meetings without the email tennis.",
+ "email_user_invite_subheading_subteam": "{{invitedBy}} has invited you to join the team `{{teamName}}` in their organization {{parentTeamName}} on {{appName}}. {{appName}} is the event-juggling scheduler that enables you and your team to schedule meetings without the email tennis.",
"email_user_invite_subheading_org": "{{invitedBy}} has invited you to join their organization `{{teamName}}` on {{appName}}. {{appName}} is the event-juggling scheduler that enables you and your organization to schedule meetings without the email tennis.",
"email_no_user_invite_steps_intro": "We’ll walk you through a few short steps and you’ll be enjoying stress free scheduling with your {{entity}} in no time.",
"email_no_user_step_one": "Choose your username",
diff --git a/packages/emails/src/templates/TeamInviteEmail.tsx b/packages/emails/src/templates/TeamInviteEmail.tsx
index 4edc91c4e6603f..6742fb5e7376c4 100644
--- a/packages/emails/src/templates/TeamInviteEmail.tsx
+++ b/packages/emails/src/templates/TeamInviteEmail.tsx
@@ -12,6 +12,7 @@ type TeamInvite = {
joinLink: string;
isCalcomMember: boolean;
isOrg: boolean;
+ parentTeamName: string | undefined;
};
export const TeamInviteEmail = (
@@ -19,17 +20,22 @@ export const TeamInviteEmail = (
) => {
return (
<>
- {props.language(`email_no_user_invite_heading_${props.isOrg ? "org" : "team"}`, {
- appName: APP_NAME,
- })}
+ {props.language(
+ `email_no_user_invite_heading_${props.isOrg ? "org" : props.parentTeamName ? "subteam" : "team"}`,
+ {
+ appName: APP_NAME,
+ parentTeamName: props.parentTeamName,
+ }
+ )}
>
<>
- {props.language(`email_user_invite_subheading_${props.isOrg ? "org" : "team"}`, {
- invitedBy: props.from,
- appName: APP_NAME,
- teamName: props.teamName,
- })}
+ {props.language(
+ `email_user_invite_subheading_${props.isOrg ? "org" : props.parentTeamName ? "subteam" : "team"}`,
+ {
+ invitedBy: props.from,
+ appName: APP_NAME,
+ teamName: props.teamName,
+ parentTeamName: props.parentTeamName,
+ }
+ )}
>