feat(lang): drawer lang.

This commit is contained in:
elforjani3
2021-06-07 15:19:02 +02:00
parent c6eadaca09
commit 23450a09cd
22 changed files with 152 additions and 121 deletions

View File

@@ -2,6 +2,7 @@ import React from 'react';
import classNames from 'classnames';
import { useFormikContext } from 'formik';
import { CLASSES } from 'common/classes';
import { FormattedMessage as T } from 'react-intl';
import MakeJournalEntriesHeaderFields from './MakeJournalEntriesHeaderFields';
import { PageFormBigNumber } from 'components';
import { safeSumBy } from 'utils';
@@ -20,7 +21,7 @@ export default function MakeJournalEntriesHeader() {
<MakeJournalEntriesHeaderFields />
<PageFormBigNumber
label={'Due Amount'}
label={<T id={'due_amount'} />}
amount={total}
currencyCode={currency_code}
/>

View File

@@ -11,7 +11,7 @@ import { inputIntent } from 'utils';
export default function MakeJournalFormFooter() {
return (
<div className={classNames(CLASSES.PAGE_FORM_FOOTER)}>
<Postbox title={'Journal details'} defaultOpen={false}>
<Postbox title={<T id={'journal_details'} />} defaultOpen={false}>
<Row>
<Col md={8}>
<FastField name={'description'}>
@@ -34,7 +34,7 @@ export default function MakeJournalFormFooter() {
initialFiles={[]}
// onDrop={handleDropFiles}
// onDeleteFile={handleDeleteFile}
hint={'Attachments: Maxiumum size: 20MB'}
hint={<T id={'attachments_maximum'} />}
/>
</Col>
</Row>

View File

@@ -44,7 +44,11 @@ export function DebitHeaderCell({ payload: { currencyCode } }) {
* Account footer cell.
*/
function AccountFooterCell({ payload: { currencyCode } }) {
return <span>{`Total ${currencyCode} `}</span>;
return (
<span>
{formatMessage({ id: 'total_currency' }, { currency: currencyCode })}
</span>
);
}
/**