Skip to content

Commit ca3f825

Browse files
committed
fix(i18n): update i18n keys
1 parent e671caa commit ca3f825

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

packages/ui-react/src/components/ChooseOfferForm/ChooseOfferForm.tsx

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,19 +26,15 @@ const OfferBox: React.FC<OfferBoxProps> = ({ offer, selected, onChange }: OfferB
2626

2727
const getFreeTrialText = (offer: Offer) => {
2828
if (offer.freeDays) {
29-
return offer.freeDays === 1
30-
? t('choose_offer.benefits.first_days_free_one')
31-
: t('choose_offer.benefits.first_days_free_other', { count: offer.freeDays });
29+
return t('choose_offer.benefits.first_days_free', { count: offer.freeDays });
3230
} else if (offer.freePeriods) {
3331
// t('periods.day_one') = 'day' or t('periods.day_other') = 'days'
3432
// t('periods.week_one') = 'week' or t('periods.week_other') = 'weeks'
3533
// t('periods.month_one') = 'month' or t('periods.month_other') = 'months'
3634
// t('periods.year_one') = 'year' or t('periods.year_other') = 'years'
3735
const period = t(`periods.${offer.period}_${offer.freePeriods === 1 ? 'one' : 'other'}`);
3836

39-
return offer.freePeriods === 1
40-
? t('choose_offer.benefits.first_periods_free_one', { period })
41-
: t('choose_offer.benefits.first_periods_free_other', { count: offer.freePeriods, period });
37+
return t('choose_offer.benefits.first_periods_free', { count: offer.freePeriods, period });
4238
}
4339

4440
return null;

0 commit comments

Comments
 (0)