From a2d521e0015b201ad90c6cd542f614c036b95d61 Mon Sep 17 00:00:00 2001 From: Leo Giovanetti Date: Tue, 5 Sep 2023 18:36:17 -0300 Subject: [PATCH] fix: i18n issues reported by crowdin (#11160) --- apps/web/public/static/locales/en/common.json | 7 ++++--- packages/emails/src/templates/TeamInviteEmail.tsx | 6 ++---- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/apps/web/public/static/locales/en/common.json b/apps/web/public/static/locales/en/common.json index 58f83d4d21..b33ac6554a 100644 --- a/apps/web/public/static/locales/en/common.json +++ b/apps/web/public/static/locales/en/common.json @@ -1689,9 +1689,11 @@ "delete_sso_configuration_confirmation_description": "Are you sure you want to delete the {{connectionType}} configuration? Your team members who use {{connectionType}} login will no longer be able to access Cal.com.", "organizer_timezone": "Organizer timezone", "email_user_cta": "View Invitation", - "email_no_user_invite_heading": "You’ve been invited to join a {{appName}} {{entity}}", + "email_no_user_invite_heading_team": "You’ve been invited to join a {{appName}} team", + "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": "{{invitedBy}} has invited you to join their {{entity}} `{{teamName}}` on {{appName}}. {{appName}} is the event-juggling scheduler that enables you and your {{entity}} 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_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", "email_no_user_step_two": "Connect your calendar account", @@ -1914,7 +1916,6 @@ "install_app_on": "Install app on", "create_for": "Create for", "currency": "Currency", - "setup_organization": "Setup an Organization", "organization_banner_description": "Create an environments where your teams can create shared apps, workflows and event types with round-robin and collective scheduling.", "organization_banner_title": "Manage organizations with multiple teams", "set_up_your_organization": "Set up your organization", diff --git a/packages/emails/src/templates/TeamInviteEmail.tsx b/packages/emails/src/templates/TeamInviteEmail.tsx index 87474c51eb..a5e34ba235 100644 --- a/packages/emails/src/templates/TeamInviteEmail.tsx +++ b/packages/emails/src/templates/TeamInviteEmail.tsx @@ -27,9 +27,8 @@ export const TeamInviteEmail = ( })}>

<> - {props.language("email_no_user_invite_heading", { + {props.language(`email_no_user_invite_heading_${props.isOrg ? "org" : "team"}`, { appName: APP_NAME, - entity: props.language(props.isOrg ? "organization" : "team").toLowerCase(), })}

@@ -57,11 +56,10 @@ export const TeamInviteEmail = ( lineHeightStep: "24px", }}> <> - {props.language("email_user_invite_subheading", { + {props.language(`email_user_invite_subheading_${props.isOrg ? "org" : "team"}`, { invitedBy: props.from, appName: APP_NAME, teamName: props.teamName, - entity: props.language(props.isOrg ? "organization" : "team").toLowerCase(), })}