mirror of
https://github.com/bitwarden/browser
synced 2025-12-20 10:13:31 +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"
|
||||
rel="noreferrer noopener"
|
||||
>
|
||||
{{ "routeToPaymentMethodTrigger" | i18n }}
|
||||
{{ "clickHereToAddPaymentMethod" | i18n }}
|
||||
</a>
|
||||
</bit-banner>
|
||||
<app-header></app-header>
|
||||
|
||||
@@ -54,11 +54,11 @@ export class TrialFlowService {
|
||||
|
||||
getFreeTrialMessage(trialRemainingDays: number): string {
|
||||
if (trialRemainingDays >= 2) {
|
||||
return this.i18nService.t("freeTrialEndPrompt", trialRemainingDays);
|
||||
return this.i18nService.t("freeTrialEndPromptCount", trialRemainingDays);
|
||||
} else if (trialRemainingDays === 1) {
|
||||
return this.i18nService.t("freeTrialEndPromptForOneDayNoOrgName");
|
||||
return this.i18nService.t("freeTrialEndPromptTomorrowNoOrgName");
|
||||
} else {
|
||||
return this.i18nService.t("freeTrialEndingSoonWithoutOrgName");
|
||||
return this.i18nService.t("freeTrialEndingTodayWithoutOrgName");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
class="tw-cursor-pointer"
|
||||
rel="noreferrer noopener"
|
||||
>
|
||||
{{ "routeToPaymentMethodTrigger" | i18n }}
|
||||
{{ "clickHereToAddPaymentMethod" | i18n }}
|
||||
</a>
|
||||
</bit-banner>
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
rel="noreferrer noopener"
|
||||
class="tw-cursor-pointer"
|
||||
>
|
||||
{{ "routeToPaymentMethodTrigger" | i18n }}
|
||||
{{ "clickHereToAddPaymentMethod" | i18n }}
|
||||
</a>
|
||||
</bit-banner>
|
||||
|
||||
|
||||
@@ -71,14 +71,14 @@ export class VaultBannersComponent implements OnInit {
|
||||
freeTrialMessage(organization: FreeTrial) {
|
||||
if (organization.remainingDays >= 2) {
|
||||
return this.i18nService.t(
|
||||
"freeTrialEndPromptAboveTwoDays",
|
||||
"freeTrialEndPromptMultipleDays",
|
||||
organization.organizationName,
|
||||
organization.remainingDays.toString(),
|
||||
);
|
||||
} else if (organization.remainingDays === 1) {
|
||||
return this.i18nService.t("freeTrialEndPromptForOneDay", organization.organizationName);
|
||||
return this.i18nService.t("freeTrialEndPromptTomorrow", organization.organizationName);
|
||||
} else {
|
||||
return this.i18nService.t("freeTrialEndPromptForLessThanADay", organization.organizationName);
|
||||
return this.i18nService.t("freeTrialEndPromptToday", organization.organizationName);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
class="tw-cursor-pointer"
|
||||
rel="noreferrer noopener"
|
||||
>
|
||||
{{ "routeToPaymentMethodTrigger" | i18n }}
|
||||
{{ "clickHereToAddPaymentMethod" | i18n }}
|
||||
</a>
|
||||
</bit-banner>
|
||||
</ng-container>
|
||||
|
||||
Reference in New Issue
Block a user