mirror of
https://github.com/bitwarden/browser
synced 2025-12-12 22:33:35 +00:00
[PM-15180] - update copy for free trial banner (#12151)
* update copy for free trial banner * add v2 translation keys * remove old keys. don't use V2 in new key name * re-add removed keys * fix copy and examples * fix i18n key
This commit is contained in:
@@ -14,7 +14,7 @@
|
|||||||
class="tw-cursor-pointer"
|
class="tw-cursor-pointer"
|
||||||
rel="noreferrer noopener"
|
rel="noreferrer noopener"
|
||||||
>
|
>
|
||||||
{{ "routeToPaymentMethodTrigger" | i18n }}
|
{{ "clickHereToAddPaymentMethod" | i18n }}
|
||||||
</a>
|
</a>
|
||||||
</bit-banner>
|
</bit-banner>
|
||||||
<app-header></app-header>
|
<app-header></app-header>
|
||||||
|
|||||||
@@ -54,11 +54,11 @@ export class TrialFlowService {
|
|||||||
|
|
||||||
getFreeTrialMessage(trialRemainingDays: number): string {
|
getFreeTrialMessage(trialRemainingDays: number): string {
|
||||||
if (trialRemainingDays >= 2) {
|
if (trialRemainingDays >= 2) {
|
||||||
return this.i18nService.t("freeTrialEndPrompt", trialRemainingDays);
|
return this.i18nService.t("freeTrialEndPromptCount", trialRemainingDays);
|
||||||
} else if (trialRemainingDays === 1) {
|
} else if (trialRemainingDays === 1) {
|
||||||
return this.i18nService.t("freeTrialEndPromptForOneDayNoOrgName");
|
return this.i18nService.t("freeTrialEndPromptTomorrowNoOrgName");
|
||||||
} else {
|
} else {
|
||||||
return this.i18nService.t("freeTrialEndingSoonWithoutOrgName");
|
return this.i18nService.t("freeTrialEndingTodayWithoutOrgName");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -14,7 +14,7 @@
|
|||||||
class="tw-cursor-pointer"
|
class="tw-cursor-pointer"
|
||||||
rel="noreferrer noopener"
|
rel="noreferrer noopener"
|
||||||
>
|
>
|
||||||
{{ "routeToPaymentMethodTrigger" | i18n }}
|
{{ "clickHereToAddPaymentMethod" | i18n }}
|
||||||
</a>
|
</a>
|
||||||
</bit-banner>
|
</bit-banner>
|
||||||
|
|
||||||
|
|||||||
@@ -14,7 +14,7 @@
|
|||||||
rel="noreferrer noopener"
|
rel="noreferrer noopener"
|
||||||
class="tw-cursor-pointer"
|
class="tw-cursor-pointer"
|
||||||
>
|
>
|
||||||
{{ "routeToPaymentMethodTrigger" | i18n }}
|
{{ "clickHereToAddPaymentMethod" | i18n }}
|
||||||
</a>
|
</a>
|
||||||
</bit-banner>
|
</bit-banner>
|
||||||
|
|
||||||
|
|||||||
@@ -71,14 +71,14 @@ export class VaultBannersComponent implements OnInit {
|
|||||||
freeTrialMessage(organization: FreeTrial) {
|
freeTrialMessage(organization: FreeTrial) {
|
||||||
if (organization.remainingDays >= 2) {
|
if (organization.remainingDays >= 2) {
|
||||||
return this.i18nService.t(
|
return this.i18nService.t(
|
||||||
"freeTrialEndPromptAboveTwoDays",
|
"freeTrialEndPromptMultipleDays",
|
||||||
organization.organizationName,
|
organization.organizationName,
|
||||||
organization.remainingDays.toString(),
|
organization.remainingDays.toString(),
|
||||||
);
|
);
|
||||||
} else if (organization.remainingDays === 1) {
|
} else if (organization.remainingDays === 1) {
|
||||||
return this.i18nService.t("freeTrialEndPromptForOneDay", organization.organizationName);
|
return this.i18nService.t("freeTrialEndPromptTomorrow", organization.organizationName);
|
||||||
} else {
|
} else {
|
||||||
return this.i18nService.t("freeTrialEndPromptForLessThanADay", organization.organizationName);
|
return this.i18nService.t("freeTrialEndPromptToday", organization.organizationName);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -15,7 +15,7 @@
|
|||||||
class="tw-cursor-pointer"
|
class="tw-cursor-pointer"
|
||||||
rel="noreferrer noopener"
|
rel="noreferrer noopener"
|
||||||
>
|
>
|
||||||
{{ "routeToPaymentMethodTrigger" | i18n }}
|
{{ "clickHereToAddPaymentMethod" | i18n }}
|
||||||
</a>
|
</a>
|
||||||
</bit-banner>
|
</bit-banner>
|
||||||
</ng-container>
|
</ng-container>
|
||||||
|
|||||||
@@ -3903,30 +3903,30 @@
|
|||||||
"updateBrowserDesc": {
|
"updateBrowserDesc": {
|
||||||
"message": "You are using an unsupported web browser. The web vault may not function properly."
|
"message": "You are using an unsupported web browser. The web vault may not function properly."
|
||||||
},
|
},
|
||||||
"freeTrialEndPrompt": {
|
"freeTrialEndPromptCount": {
|
||||||
"message": "Your free trial ends in $COUNT$ days. To maintain your subscription,",
|
"message": "Your free trial ends in $COUNT$ days.",
|
||||||
"placeholders": {
|
"placeholders": {
|
||||||
"count": {
|
"count": {
|
||||||
"content": "$1",
|
|
||||||
"example": "You must set up 2FA on your user account before you can join this organization."
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"freeTrialEndPromptAboveTwoDays": {
|
|
||||||
"message": "$ORGANIZATION$, your free trial ends in $COUNT$ days. To maintain your subscription,",
|
|
||||||
"placeholders": {
|
|
||||||
"count": {
|
|
||||||
"content": "$2",
|
|
||||||
"example": "organization name"
|
|
||||||
},
|
|
||||||
"organization": {
|
|
||||||
"content": "$1",
|
"content": "$1",
|
||||||
"example": "remaining days"
|
"example": "remaining days"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"freeTrialEndPromptForOneDay": {
|
"freeTrialEndPromptMultipleDays": {
|
||||||
"message": "$ORGANIZATION$, your free trial ends tomorrow. To maintain your subscription,",
|
"message": "$ORGANIZATION$, your free trial ends in $COUNT$ days.",
|
||||||
|
"placeholders": {
|
||||||
|
"count": {
|
||||||
|
"content": "$2",
|
||||||
|
"example": "remaining days"
|
||||||
|
},
|
||||||
|
"organization": {
|
||||||
|
"content": "$1",
|
||||||
|
"example": "organization name"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"freeTrialEndPromptTomorrow": {
|
||||||
|
"message": "$ORGANIZATION$, your free trial ends tomorrow.",
|
||||||
"placeholders": {
|
"placeholders": {
|
||||||
"organization": {
|
"organization": {
|
||||||
"content": "$1",
|
"content": "$1",
|
||||||
@@ -3934,11 +3934,11 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"freeTrialEndPromptForOneDayNoOrgName": {
|
"freeTrialEndPromptTomorrowNoOrgName": {
|
||||||
"message": "Your free trial ends tomorrow. To maintain your subscription,"
|
"message": "Your free trial ends tomorrow."
|
||||||
},
|
},
|
||||||
"freeTrialEndPromptForLessThanADay": {
|
"freeTrialEndPromptToday": {
|
||||||
"message": "$ORGANIZATION$, your free trial ends today. To maintain your subscription,",
|
"message": "$ORGANIZATION$, your free trial ends today.",
|
||||||
"placeholders": {
|
"placeholders": {
|
||||||
"organization": {
|
"organization": {
|
||||||
"content": "$1",
|
"content": "$1",
|
||||||
@@ -3946,11 +3946,11 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"freeTrialEndingSoonWithoutOrgName": {
|
"freeTrialEndingTodayWithoutOrgName": {
|
||||||
"message": "Your free trial ends today. To maintain your subscription,"
|
"message": "Your free trial ends today."
|
||||||
},
|
},
|
||||||
"routeToPaymentMethodTrigger": {
|
"clickHereToAddPaymentMethod": {
|
||||||
"message": "add a payment method."
|
"message": "Click here to add a payment method."
|
||||||
},
|
},
|
||||||
"joinOrganization": {
|
"joinOrganization": {
|
||||||
"message": "Join organization"
|
"message": "Join organization"
|
||||||
|
|||||||
@@ -15,7 +15,7 @@
|
|||||||
(click)="navigateToPaymentMethod()"
|
(click)="navigateToPaymentMethod()"
|
||||||
rel="noreferrer noopener"
|
rel="noreferrer noopener"
|
||||||
>
|
>
|
||||||
{{ "routeToPaymentMethodTrigger" | i18n }}
|
{{ "clickHereToAddPaymentMethod" | i18n }}
|
||||||
</a>
|
</a>
|
||||||
</bit-banner>
|
</bit-banner>
|
||||||
</ng-container>
|
</ng-container>
|
||||||
|
|||||||
Reference in New Issue
Block a user