Ver Fonte

Merge pull request #8724 from overleaf/ta-subscription-contact-link

Link to Contact Page in Subscription Translations

GitOrigin-RevId: f255b0408cf4cf1e6e19cf8d3eebbe996327a598
Timothée Alby há 4 anos atrás
pai
commit
e48c23546e

+ 2 - 2
services/web/app/views/subscriptions/dashboard/_personal_subscription_recurly.pug

@@ -22,7 +22,7 @@ div(ng-controller="RecurlySubscriptionController")
 				if (personalSubscription.pendingPlan)
 					p #{translate("want_change_to_apply_before_plan_end")}
 				else if (personalSubscription.plan.groupPlan)
-					p #{translate("contact_support_to_change_group_subscription")}
+					p !{translate("contact_support_to_change_group_subscription", {}, [{ name: "a", attrs: { href: "/contact"}}])}
 				if (personalSubscription.recurly.trialEndsAtFormatted && personalSubscription.recurly.trial_ends_at > Date.now())
 					p You're on a free trial which ends on <strong ng-non-bindable>#{personalSubscription.recurly.trialEndsAtFormatted}</strong>
 				p !{translate("next_payment_of_x_collectected_on_y", {paymentAmmount: personalSubscription.recurly.displayPrice, collectionDate: personalSubscription.recurly.nextPaymentDueAt}, ['strong', 'strong'])}
@@ -86,7 +86,7 @@ div(ng-controller="RecurlySubscriptionController")
 					ng-click="openGroupPlanModal()"
 				) #{translate('change_to_group_plan')}
 			div(ng-hide="isValidCurrencyForUpgrade")
-				span #{translate('contact_support_to_upgrade_to_group_subscription')}
+				span !{translate('contact_support_to_upgrade_to_group_subscription', {}, [{ name: "a", attrs: { href: "/contact"}}])}
 
 
 	.div(ng-controller="RecurlyCancellationController", ng-show="showCancellation").text-center

+ 2 - 2
services/web/locales/en.json

@@ -1182,8 +1182,8 @@
   "currently_subscribed_to_plan": "You are currently subscribed to the <0>__planName__</0> plan.",
   "your_plan_is_changing_at_term_end": "Your plan is changing to <0>__pendingPlanName__</0> at the end of the current billing period.",
   "want_change_to_apply_before_plan_end": "If you wish this change to apply before the end of your current billing period, please contact us.",
-  "contact_support_to_change_group_subscription": "Please contact support if you wish to change your group subscription.",
-  "contact_support_to_upgrade_to_group_subscription": "Please contact support if you wish to be upgraded to a group subscription.",
+  "contact_support_to_change_group_subscription": "Please <0>contact support</0> if you wish to change your group subscription.",
+  "contact_support_to_upgrade_to_group_subscription": "Please <0>contact support</0> if you wish to be upgraded to a group subscription.",
   "change_plan": "Change plan",
   "change_to_group_plan": "Change to a group plan",
   "next_payment_of_x_collectected_on_y": "The next payment of <0>__paymentAmmount__</0> will be collected on <1>__collectionDate__</1>.",