fix(core): description of cancel is incorrect when cloud subscription is activated (#6530)

This commit is contained in:
CatsJuice
2024-04-15 02:54:41 +00:00
parent d11d69ddf6
commit bb1294f425
3 changed files with 5 additions and 5 deletions

View File

@@ -254,9 +254,7 @@ const SubscriptionSettings = () => {
]()}
desc={t[
'com.affine.payment.billing-setting.cancel-subscription.description'
]({
cancelDate: new Date(subscription.end).toLocaleDateString(),
})}
]()}
>
<CancelSubscription />
</SettingRow>

View File

@@ -116,7 +116,9 @@ export function getPlanDetail(t: T) {
: detail.price;
return (
<>
{t['com.affine.payment.cloud.pro.title.price-monthly']({ price })}
{t['com.affine.payment.cloud.pro.title.price-monthly']({
price: '$' + price,
})}
{recurring === SubscriptionRecurring.Yearly ? (
<span className={planTitleTitleCaption}>
{t['com.affine.payment.cloud.pro.title.billed-yearly']()}

View File

@@ -924,7 +924,7 @@
"com.affine.payment.benefit-6": "Number of members per Workspace ≤ {{capacity}}",
"com.affine.payment.benefit-7": "{{capacity}}-days version history",
"com.affine.payment.billing-setting.cancel-subscription": "Cancel Subscription",
"com.affine.payment.billing-setting.cancel-subscription.description": "Subscription cancelled, your pro account will expire on {{cancelDate}}",
"com.affine.payment.billing-setting.cancel-subscription.description": "Once you canceled subscription you will no longer enjoy the plan benefits.",
"com.affine.payment.billing-setting.change-plan": "Change Plan",
"com.affine.payment.billing-setting.current-plan": "AFFiNE Cloud",
"com.affine.payment.billing-setting.current-plan.description": "You are currently on the <1>{{planName}} plan</1>.",