feat: add localization.

This commit is contained in:
elforjani13
2021-12-22 15:59:16 +02:00
parent 10c421dea0
commit b36468ff7f
10 changed files with 202 additions and 33 deletions

View File

@@ -38,9 +38,8 @@ export function useRefundCreditTransactionsTableColumns() {
align: 'right',
},
{
Header: intl.get(
'refund_credit_transactions.column.withdrawal_account',
),
id: 'from_account',
Header: intl.get('refund_credit_transactions.column.withdrawal_account'),
accessor: ({ from_account }) => from_account.name,
width: 100,
className: 'from_account',

View File

@@ -56,7 +56,9 @@ function VendorCreditDetailDrawerProvider({ vendorCreditId, ...props }) {
>
<DrawerHeaderContent
name="vendor-credit-detail-drawer"
title={intl.get('vendor_credit.drawer_vendor_credit_detail')}
title={intl.get('vendor_credit.drawer_vendor_credit_detail', {
vendorNumber: vendorCredit.vendor_credit_number,
})}
/>
<VendorCreditDetailDrawerContext.Provider value={provider} {...props} />
</DrawerLoading>