feat: message lang.

This commit is contained in:
elforjani3
2021-06-12 19:36:14 +02:00
parent 3fe85c519d
commit 7a384c54be
12 changed files with 25 additions and 21 deletions

View File

@@ -1,5 +1,5 @@
import React from 'react';
import intl from 'react-intl-universal';
import intl, { init } from 'react-intl-universal';
import FinancialSheet from 'components/FinancialSheet';
import { DataTable } from 'components';
@@ -14,8 +14,6 @@ export default function InventoryValuationTable({
//#ownProps
companyName,
}) {
// inventory valuation context.
const {
inventoryValuation: { tableRows },
@@ -56,7 +54,9 @@ export default function InventoryValuationTable({
expandColumnSpace={1}
sticky={true}
rowClassNames={rowClassNames}
noResults={'There were no inventory transactions during the selected date range.'}
noResults={intl.get(
'there_were_no_inventory_transactions_during_the_selected_date_range',
)}
/>
</FinancialSheet>
);