Skip to content

Commit 5aba986

Browse files
fix: 👀 QA Anniversary date
1 parent 1c4e846 commit 5aba986

File tree

2 files changed

+14
-9
lines changed

2 files changed

+14
-9
lines changed

‎ditto/base.json‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,12 @@
88
"text_62ea7cd44cd4b14bb9ac1d8a": "Subscription will be billed every 30 of the month if applicable, otherwise it will be billed at the last date of the month (e.g. Feb. 28).",
99
"text_62ea7cd44cd4b14bb9ac1d8e": "Subscription will be billed every 31 of the month if applicable, otherwise it will be billed at the last date of the month (e.g. Feb. 28, Apr. 30 …).",
1010
"text_62ea7cd44cd4b14bb9ac1d92": "Subscription will be billed at the beginning of every year. First invoice will be bill prorated until beginning of next year.",
11-
"text_62ea7cd44cd4b14bb9ac1d96": "Subscription will be billed every Jul. 26 of the year.",
11+
"text_62ea7cd44cd4b14bb9ac1d96": "Subscription will be billed every {{date}} of the year.",
1212
"text_62ea7cd44cd4b14bb9ac1d9a": "Subscription will be billed every Feb. 29 of the year if applicable, otherwise it will be billed every Feb. 28 of the year.",
1313
"text_62ea7cd44cd4b14bb9ac1d9e": "Subscription will be billed at the beginning of every week. First invoice will be bill prorated until next Monday.",
1414
"text_62ea7cd44cd4b14bb9ac1da2": "Subscription will be billed every {{day}} of the week.",
15+
"text_62ebd597d5d5130a03ced107": "Beginning of year",
16+
"text_62ebd597d5d5130a03ced101": "Beginning of week",
1517
"text_62f50d3cc15266f3bd1d83ce": "Infos copy to clipboard",
1618
"text_62f50d26c989ab0319688498": "Environment information",
1719
"text_62f50d26c989ab031968849a": "Use and share those information if you’re <a rel=\"external\" target=\"_blank\" href=\"https://github.com/getlago/lago-front/issues/new?labels=%F0%9F%90%9E+bug&template=bug.md&title=%5BBUG%5D\">reporting a bug to Lago</a>",

‎src/components/customers/subscriptions/AddPlanToCustomerDialog.tsx‎

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -163,13 +163,11 @@ export const AddPlanToCustomerDialog = forwardRef<
163163
return translate('text_62ea7cd44cd4b14bb9ac1d8e')
164164

165165
case PlanInterval.Yearly:
166-
return translate(
167-
billingTime === BillingTimeEnum.Calendar
168-
? 'text_62ea7cd44cd4b14bb9ac1d92'
169-
: formattedCurrentDate === february29
170-
? 'text_62ea7cd44cd4b14bb9ac1d9a'
171-
: 'text_62ea7cd44cd4b14bb9ac1d96'
172-
)
166+
return billingTime === BillingTimeEnum.Calendar
167+
? translate('text_62ea7cd44cd4b14bb9ac1d92')
168+
: formattedCurrentDate === february29
169+
? translate('text_62ea7cd44cd4b14bb9ac1d9a')
170+
: translate('text_62ea7cd44cd4b14bb9ac1d96', { date: currentDate.toFormat('LLL. dd') })
173171

174172
case PlanInterval.Weekly:
175173
default:
@@ -260,7 +258,12 @@ export const AddPlanToCustomerDialog = forwardRef<
260258
helperText={billingTimeHelper}
261259
options={[
262260
{
263-
label: translate('text_62ea7cd44cd4b14bb9ac1db9'),
261+
label:
262+
selectedPlan?.interval === PlanInterval.Yearly
263+
? translate('text_62ebd597d5d5130a03ced107')
264+
: selectedPlan?.interval === PlanInterval.Weekly
265+
? translate('text_62ebd597d5d5130a03ced101')
266+
: translate('text_62ea7cd44cd4b14bb9ac1db9'),
264267
value: BillingTimeEnum.Calendar,
265268
},
266269
{

0 commit comments

Comments
 (0)