Merge pull request #9912 from overleaf/ab-current-plan-group-tooltip-i18n-fix

[web] Fix translation for group plan tooltip

GitOrigin-RevId: c0a71c0379dea511f68d65b65b1673948b9451e0
This commit is contained in:
Alexandre Bourdin 2022-10-12 16:17:15 +02:00 committed by Copybot
parent debe76baa6
commit af90c5adc8
2 changed files with 10 additions and 7 deletions

View file

@ -112,6 +112,7 @@
"created_at": "", "created_at": "",
"creating": "", "creating": "",
"current_password": "", "current_password": "",
"date": "",
"delete": "", "delete": "",
"delete_account": "", "delete_account": "",
"delete_account_confirmation_label": "", "delete_account_confirmation_label": "",
@ -255,6 +256,8 @@
"go_prev_page": "", "go_prev_page": "",
"go_to_code_location_in_pdf": "", "go_to_code_location_in_pdf": "",
"go_to_pdf_location_in_code": "", "go_to_pdf_location_in_code": "",
"group_plan_tooltip": "",
"group_plan_with_name_tooltip": "",
"have_an_extra_backup": "", "have_an_extra_backup": "",
"headers": "", "headers": "",
"hide_outline": "", "hide_outline": "",
@ -457,7 +460,6 @@
"private": "", "private": "",
"processing": "", "processing": "",
"professional": "", "professional": "",
"proj_timed_out_reason": "",
"project": "", "project": "",
"project_approaching_file_limit": "", "project_approaching_file_limit": "",
"project_flagged_too_many_compiles": "", "project_flagged_too_many_compiles": "",
@ -519,7 +521,6 @@
"revoke": "", "revoke": "",
"revoke_invite": "", "revoke_invite": "",
"role": "", "role": "",
"save_changes": "",
"save_or_cancel-cancel": "", "save_or_cancel-cancel": "",
"save_or_cancel-or": "", "save_or_cancel-or": "",
"save_or_cancel-save": "", "save_or_cancel-save": "",

View file

@ -28,12 +28,14 @@ function GroupPlan({ subscription, plan, remainingTrialDays }: GroupPlanProps) {
<> <>
<span className="current-plan-label visible-xs">{currentPlanLabel}</span> <span className="current-plan-label visible-xs">{currentPlanLabel}</span>
<Tooltip <Tooltip
description={t( description={
subscription.teamName != null subscription.teamName != null
? 'group_plan_with_name_tooltip' ? t('group_plan_with_name_tooltip', {
: 'group_plan_tooltip', plan: plan.name,
{ plan: plan.name, groupName: subscription.teamName } groupName: subscription.teamName,
)} })
: t('group_plan_tooltip', { plan: plan.name })
}
id="group-plan" id="group-plan"
overlayProps={{ placement: 'bottom' }} overlayProps={{ placement: 'bottom' }}
> >