mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-19 22:30:31 +00:00
feat : lang
This commit is contained in:
@@ -5,12 +5,13 @@ import { Suggest } from '@blueprintjs/select';
|
|||||||
import { FormattedMessage as T } from 'react-intl';
|
import { FormattedMessage as T } from 'react-intl';
|
||||||
import classNames from 'classnames';
|
import classNames from 'classnames';
|
||||||
import { CLASSES } from 'common/classes';
|
import { CLASSES } from 'common/classes';
|
||||||
|
import { formatMessage } from 'services/intl';
|
||||||
|
|
||||||
export default function ContactsSuggestField({
|
export default function ContactsSuggestField({
|
||||||
contactsList,
|
contactsList,
|
||||||
initialContactId,
|
initialContactId,
|
||||||
selectedContactId,
|
selectedContactId,
|
||||||
defaultTextSelect = 'Select contact',
|
defaultTextSelect = formatMessage({id:'select_contact'}),
|
||||||
onContactSelected,
|
onContactSelected,
|
||||||
|
|
||||||
selectedContactType = [],
|
selectedContactType = [],
|
||||||
|
|||||||
@@ -10,7 +10,6 @@ import { useAutofocus } from 'hooks';
|
|||||||
|
|
||||||
import withDialogActions from 'containers/Dialog/withDialogActions';
|
import withDialogActions from 'containers/Dialog/withDialogActions';
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Payment via license form.
|
* Payment via license form.
|
||||||
*/
|
*/
|
||||||
@@ -31,7 +30,9 @@ function PaymentViaLicenseForm({
|
|||||||
return (
|
return (
|
||||||
<Form>
|
<Form>
|
||||||
<div className={CLASSES.DIALOG_BODY}>
|
<div className={CLASSES.DIALOG_BODY}>
|
||||||
<p>Please enter your preferred payment method below.</p>
|
<p>
|
||||||
|
<T id={'please_enter_your_preferred_payment_method_below'} />
|
||||||
|
</p>
|
||||||
|
|
||||||
<FastField name="license_code">
|
<FastField name="license_code">
|
||||||
{({ field, meta: { error, touched } }) => (
|
{({ field, meta: { error, touched } }) => (
|
||||||
@@ -72,6 +73,4 @@ function PaymentViaLicenseForm({
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
export default compose(
|
export default compose(withDialogActions)(PaymentViaLicenseForm);
|
||||||
withDialogActions
|
|
||||||
)(PaymentViaLicenseForm);
|
|
||||||
|
|||||||
@@ -1,15 +1,11 @@
|
|||||||
import React, {useCallback} from 'react';
|
import React, { useCallback } from 'react';
|
||||||
import {
|
import { Button, Intent } from '@blueprintjs/core';
|
||||||
Button,
|
|
||||||
Intent,
|
|
||||||
} from '@blueprintjs/core';
|
|
||||||
import Icon from 'components/Icon';
|
import Icon from 'components/Icon';
|
||||||
import withDialogActions from 'containers/Dialog/withDialogActions';
|
import withDialogActions from 'containers/Dialog/withDialogActions';
|
||||||
import {compose} from 'utils';
|
import { compose } from 'utils';
|
||||||
|
import { FormattedMessage as T } from 'react-intl';
|
||||||
|
|
||||||
function CurrenciesActions({
|
function CurrenciesActions({ openDialog }) {
|
||||||
openDialog,
|
|
||||||
}) {
|
|
||||||
const handleClickNewCurrency = useCallback(() => {
|
const handleClickNewCurrency = useCallback(() => {
|
||||||
openDialog('currency-form');
|
openDialog('currency-form');
|
||||||
}, [openDialog]);
|
}, [openDialog]);
|
||||||
@@ -17,15 +13,14 @@ function CurrenciesActions({
|
|||||||
return (
|
return (
|
||||||
<div class="users-actions">
|
<div class="users-actions">
|
||||||
<Button
|
<Button
|
||||||
icon={<Icon icon='plus' iconSize={12} />}
|
icon={<Icon icon="plus" iconSize={12} />}
|
||||||
onClick={handleClickNewCurrency}
|
onClick={handleClickNewCurrency}
|
||||||
intent={Intent.PRIMARY}>
|
intent={Intent.PRIMARY}
|
||||||
New Currency
|
>
|
||||||
|
<T id={'new_currency'} />
|
||||||
</Button>
|
</Button>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
export default compose(
|
export default compose(withDialogActions)(CurrenciesActions);
|
||||||
withDialogActions,
|
|
||||||
)(CurrenciesActions);
|
|
||||||
|
|||||||
@@ -28,8 +28,12 @@ function LicenseTab({ openDialog }) {
|
|||||||
<T id={'cards_will_be_charged'} />
|
<T id={'cards_will_be_charged'} />
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<Button onClick={handleSubmitBtnClick} intent={Intent.PRIMARY} large={true}>
|
<Button
|
||||||
Submit Voucher
|
onClick={handleSubmitBtnClick}
|
||||||
|
intent={Intent.PRIMARY}
|
||||||
|
large={true}
|
||||||
|
>
|
||||||
|
<T id={'submit_voucher'} />
|
||||||
</Button>
|
</Button>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -999,5 +999,7 @@
|
|||||||
"invoice": "Invoice",
|
"invoice": "Invoice",
|
||||||
"receipt_": "Receipt",
|
"receipt_": "Receipt",
|
||||||
"receipt_no": "Receipt No.",
|
"receipt_no": "Receipt No.",
|
||||||
"receipt_amount": "Receipt amount"
|
"receipt_amount": "Receipt amount",
|
||||||
|
"please_enter_your_preferred_payment_method_below": "Please enter your preferred payment method below.",
|
||||||
|
"submit_voucher": "Submit Voucher",
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user