fix: react intl.

This commit is contained in:
elforjani3
2021-06-10 15:49:12 +02:00
parent 71c8adbbb8
commit b2655a0ed2
11 changed files with 58 additions and 81 deletions

View File

@@ -1,6 +1,7 @@
import React from 'react';
import classNames from 'classnames';
import { FormattedMessage as T } from 'components';
import intl from 'react-intl-universal';
import 'style/pages/Subscription/PlanRadio.scss';
@@ -32,7 +33,7 @@ export default function BillingPlan({
>
<div className={'plan-radio__header'}>
<div className={'plan-radio__name'}>
<T id={name} />
{intl.get('plan_radio_name', { name: name })}
</div>
</div>
@@ -54,4 +55,4 @@ export default function BillingPlan({
</div>
</div>
);
}
}

View File

@@ -1,5 +1,6 @@
import React from 'react';
import { FormattedMessage as T } from 'components';
import intl from 'react-intl-universal';
import 'style/pages/Subscription/BillingPlans.scss';
@@ -14,15 +15,15 @@ export default function BillingPlansForm() {
return (
<div class="billing-plans">
<BillingPlansInput
title={<T id={'select_a_plan'} values={{ order: 1 }} />}
title={intl.get('select_a_plan', { order: 1 })}
description={<T id={'please_enter_your_preferred_payment_method'} />}
/>
<BillingPeriodsInput
title={<T id={'choose_your_billing'} values={{ order: 2 }} />}
title={intl.get('choose_your_billing', { order: 2 })}
description={<T id={'please_enter_your_preferred_payment_method'} />}
/>
<BillingPaymentMethod
title={<T id={'payment_methods'} values={{ order: 3 }} />}
title={intl.get('payment_methods', { order: 3 })}
description={<T id={'please_enter_your_preferred_payment_method'} />}
/>
</div>