Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/orange-doors-notice.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@clerk/localizations': patch
'@clerk/clerk-js': patch
'@clerk/types': patch
---
Comment thread
aeliox marked this conversation as resolved.
6 changes: 5 additions & 1 deletion packages/clerk-js/src/ui/components/Checkout/parts.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,11 @@ export const InvalidPlanScreen = () => {
<Alert
variant='info'
colorScheme='info'
title={localizationKeys('commerce.cannotSubscribeMonthly')}
title={
planFromError.annual_monthly_amount_formatted !== '0'
Comment thread
aeliox marked this conversation as resolved.
Outdated
? localizationKeys('commerce.cannotSubscribeMonthly')
: localizationKeys('commerce.cannotSubscribeMonthlyNoAnnual')
}
/>
</Box>
</Flex>
Expand Down
1 change: 1 addition & 0 deletions packages/localizations/src/en-US.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ export const enUS: LocalizationResource = {
cancelSubscriptionTitle: 'Cancel {{plan}} Subscription?',
cannotSubscribeMonthly:
'You cannot subscribe to this plan by paying monthly. To subscribe to this plan, you need to choose to pay annually.',
cannotSubscribeMonthlyNoAnnual: 'You cannot subscribe to this plan with an existing annual subscription.',
Comment thread
aeliox marked this conversation as resolved.
Outdated
checkout: {
description__paymentSuccessful: 'Your payment was successful.',
description__subscriptionSuccessful: 'Your new subscription is all set.',
Expand Down
1 change: 1 addition & 0 deletions packages/types/src/localization.ts
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,7 @@ export type __internal_LocalizationResource = {
monthly: LocalizationValue;
annually: LocalizationValue;
cannotSubscribeMonthly: LocalizationValue;
cannotSubscribeMonthlyNoAnnual: LocalizationValue;
pricingTable: {
billingCycle: LocalizationValue;
included: LocalizationValue;
Expand Down
Loading