mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-21 15:20:34 +00:00
feat: message lang.
This commit is contained in:
@@ -56,7 +56,7 @@ export default function AccountsMultiSelect({ accounts, onAccountSelected }) {
|
|||||||
return (
|
return (
|
||||||
<MultiSelect
|
<MultiSelect
|
||||||
items={accounts}
|
items={accounts}
|
||||||
noResults={<MenuItem disabled={true} text="No results." />}
|
noResults={<MenuItem disabled={true} text={<T id={'no_results'} />} />}
|
||||||
itemRenderer={accountItem}
|
itemRenderer={accountItem}
|
||||||
popoverProps={{ minimal: true }}
|
popoverProps={{ minimal: true }}
|
||||||
filterable={true}
|
filterable={true}
|
||||||
|
|||||||
@@ -79,7 +79,7 @@ export default function ContactSelecetList({
|
|||||||
return (
|
return (
|
||||||
<Select
|
<Select
|
||||||
items={contacts}
|
items={contacts}
|
||||||
noResults={<MenuItem disabled={true} text="No results." />}
|
noResults={<MenuItem disabled={true} text={<T id={'no_results'} />} />}
|
||||||
itemRenderer={handleContactRenderer}
|
itemRenderer={handleContactRenderer}
|
||||||
itemPredicate={filterContacts}
|
itemPredicate={filterContacts}
|
||||||
filterable={true}
|
filterable={true}
|
||||||
|
|||||||
@@ -58,7 +58,7 @@ export default function ContactsMultiSelect({
|
|||||||
return (
|
return (
|
||||||
<MultiSelect
|
<MultiSelect
|
||||||
items={contacts}
|
items={contacts}
|
||||||
noResults={<MenuItem disabled={true} text="No results." />}
|
noResults={<MenuItem disabled={true} text={<T id={'no_results'} />} />}
|
||||||
itemRenderer={contactRenderer}
|
itemRenderer={contactRenderer}
|
||||||
popoverProps={{ minimal: true }}
|
popoverProps={{ minimal: true }}
|
||||||
filterable={true}
|
filterable={true}
|
||||||
|
|||||||
@@ -68,7 +68,7 @@ function ItemsListField({
|
|||||||
return (
|
return (
|
||||||
<ListSelect
|
<ListSelect
|
||||||
items={filteredItems}
|
items={filteredItems}
|
||||||
noResults={<MenuItem disabled={true} text="No results." />}
|
noResults={<MenuItem disabled={true} text={<T id={'no_results'} />} />}
|
||||||
itemRenderer={itemRenderer}
|
itemRenderer={itemRenderer}
|
||||||
itemPredicate={filterItem}
|
itemPredicate={filterItem}
|
||||||
popoverProps={{ minimal: true }}
|
popoverProps={{ minimal: true }}
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ function PaymentReceiveListField({
|
|||||||
return (
|
return (
|
||||||
<ListSelect
|
<ListSelect
|
||||||
item={invoices}
|
item={invoices}
|
||||||
noResults={<MenuItem disabled={true} text="No results." />}
|
noResults={<MenuItem disabled={true} text={<T id={'no_results'} />} />}
|
||||||
itemRenderer={handleInvoiceRenderer}
|
itemRenderer={handleInvoiceRenderer}
|
||||||
popoverProps={{ minimal: true }}
|
popoverProps={{ minimal: true }}
|
||||||
onItemSelect={onInvoiceSelect}
|
onItemSelect={onInvoiceSelect}
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ import { transformToForm } from 'utils';
|
|||||||
import {
|
import {
|
||||||
CreateItemCategoryFormSchema,
|
CreateItemCategoryFormSchema,
|
||||||
EditItemCategoryFormSchema,
|
EditItemCategoryFormSchema,
|
||||||
} from './ItemCategoryForm.schema';
|
} from './itemCategoryForm.schema';
|
||||||
|
|
||||||
import withDialogActions from 'containers/Dialog/withDialogActions';
|
import withDialogActions from 'containers/Dialog/withDialogActions';
|
||||||
import ItemCategoryFormContent from './ItemCategoryFormContent'
|
import ItemCategoryFormContent from './ItemCategoryFormContent'
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import React from 'react';
|
import React from 'react';
|
||||||
import intl from 'react-intl-universal';
|
import intl, { init } from 'react-intl-universal';
|
||||||
|
|
||||||
import FinancialSheet from 'components/FinancialSheet';
|
import FinancialSheet from 'components/FinancialSheet';
|
||||||
import { DataTable } from 'components';
|
import { DataTable } from 'components';
|
||||||
@@ -14,8 +14,6 @@ export default function InventoryValuationTable({
|
|||||||
//#ownProps
|
//#ownProps
|
||||||
companyName,
|
companyName,
|
||||||
}) {
|
}) {
|
||||||
|
|
||||||
|
|
||||||
// inventory valuation context.
|
// inventory valuation context.
|
||||||
const {
|
const {
|
||||||
inventoryValuation: { tableRows },
|
inventoryValuation: { tableRows },
|
||||||
@@ -56,7 +54,9 @@ export default function InventoryValuationTable({
|
|||||||
expandColumnSpace={1}
|
expandColumnSpace={1}
|
||||||
sticky={true}
|
sticky={true}
|
||||||
rowClassNames={rowClassNames}
|
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>
|
</FinancialSheet>
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -12,8 +12,6 @@ import { usePurchasesByItemsTableColumns } from './components';
|
|||||||
* purchases by items data table.
|
* purchases by items data table.
|
||||||
*/
|
*/
|
||||||
export default function PurchasesByItemsTable({ companyName }) {
|
export default function PurchasesByItemsTable({ companyName }) {
|
||||||
|
|
||||||
|
|
||||||
// Purchases by items context.
|
// Purchases by items context.
|
||||||
const {
|
const {
|
||||||
purchaseByItems: { tableRows, query },
|
purchaseByItems: { tableRows, query },
|
||||||
@@ -55,7 +53,9 @@ export default function PurchasesByItemsTable({ companyName }) {
|
|||||||
expandColumnSpace={1}
|
expandColumnSpace={1}
|
||||||
sticky={true}
|
sticky={true}
|
||||||
rowClassNames={rowClassNames}
|
rowClassNames={rowClassNames}
|
||||||
noResults={'There were no purchases during the selected date range.'}
|
noResults={intl.get(
|
||||||
|
'there_were_no_purchases_during_the_selected_date_range',
|
||||||
|
)}
|
||||||
/>
|
/>
|
||||||
</FinancialSheet>
|
</FinancialSheet>
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -10,8 +10,6 @@ import { useSalesByItemsTableColumns } from './components';
|
|||||||
* Sales by items data table.
|
* Sales by items data table.
|
||||||
*/
|
*/
|
||||||
export default function SalesByItemsTable({ companyName }) {
|
export default function SalesByItemsTable({ companyName }) {
|
||||||
|
|
||||||
|
|
||||||
// Sales by items context.
|
// Sales by items context.
|
||||||
const {
|
const {
|
||||||
salesByItems: { tableRows, query },
|
salesByItems: { tableRows, query },
|
||||||
@@ -53,7 +51,9 @@ export default function SalesByItemsTable({ companyName }) {
|
|||||||
expandColumnSpace={1}
|
expandColumnSpace={1}
|
||||||
sticky={true}
|
sticky={true}
|
||||||
rowClassNames={rowClassNames}
|
rowClassNames={rowClassNames}
|
||||||
noResults={'There were no sales during the selected date range.'}
|
noResults={intl.get(
|
||||||
|
'there_were_no_sales_during_the_selected_date_range',
|
||||||
|
)}
|
||||||
/>
|
/>
|
||||||
</FinancialSheet>
|
</FinancialSheet>
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
import React from 'react';
|
import React from 'react';
|
||||||
import { Omnibar } from '@blueprintjs/select';
|
import { Omnibar } from '@blueprintjs/select';
|
||||||
import { MenuItem } from '@blueprintjs/core';
|
import { MenuItem } from '@blueprintjs/core';
|
||||||
|
import { FormattedMessage as T } from 'components';
|
||||||
import { compose } from 'utils';
|
import { compose } from 'utils';
|
||||||
import withSearch from 'containers/GeneralSearch/withSearch';
|
import withSearch from 'containers/GeneralSearch/withSearch';
|
||||||
|
|
||||||
@@ -30,7 +31,7 @@ function Search({
|
|||||||
<Omnibar
|
<Omnibar
|
||||||
className={'navbar-omnibar'}
|
className={'navbar-omnibar'}
|
||||||
isOpen={globalSearchShow}
|
isOpen={globalSearchShow}
|
||||||
noResults={<MenuItem disabled={true} text="No results." />}
|
noResults={<MenuItem disabled={true} text={<T id={'no_results'} />} />}
|
||||||
onClose={() => closeGlobalSearch(false)}
|
onClose={() => closeGlobalSearch(false)}
|
||||||
resetOnSelect={true}
|
resetOnSelect={true}
|
||||||
itemRenderer={renderSearch}
|
itemRenderer={renderSearch}
|
||||||
|
|||||||
@@ -98,7 +98,7 @@ export default function SetupOrganizationForm({ isSubmitting, values }) {
|
|||||||
>
|
>
|
||||||
<ListSelect
|
<ListSelect
|
||||||
items={currencies}
|
items={currencies}
|
||||||
noResults={<MenuItem disabled={true} text="No results." />}
|
noResults={<MenuItem disabled={true} text={<T id={'no_results'} />} />}
|
||||||
popoverProps={{ minimal: true }}
|
popoverProps={{ minimal: true }}
|
||||||
onItemSelect={(item) => {
|
onItemSelect={(item) => {
|
||||||
setFieldValue('baseCurrency', item.code);
|
setFieldValue('baseCurrency', item.code);
|
||||||
@@ -133,7 +133,7 @@ export default function SetupOrganizationForm({ isSubmitting, values }) {
|
|||||||
>
|
>
|
||||||
<ListSelect
|
<ListSelect
|
||||||
items={languages}
|
items={languages}
|
||||||
noResults={<MenuItem disabled={true} text="No results." />}
|
noResults={<MenuItem disabled={true} text={<T id={'no_results'} />} />}
|
||||||
onItemSelect={(item) => {
|
onItemSelect={(item) => {
|
||||||
setFieldValue('language', item.value);
|
setFieldValue('language', item.value);
|
||||||
}}
|
}}
|
||||||
@@ -165,7 +165,7 @@ export default function SetupOrganizationForm({ isSubmitting, values }) {
|
|||||||
>
|
>
|
||||||
<ListSelect
|
<ListSelect
|
||||||
items={fiscalYearOptions}
|
items={fiscalYearOptions}
|
||||||
noResults={<MenuItem disabled={true} text="No results." />}
|
noResults={<MenuItem disabled={true} text={<T id={'no_results'} />} />}
|
||||||
selectedItem={value}
|
selectedItem={value}
|
||||||
selectedItemProp={'value'}
|
selectedItemProp={'value'}
|
||||||
textProp={'name'}
|
textProp={'name'}
|
||||||
|
|||||||
@@ -1102,5 +1102,8 @@
|
|||||||
"mm_dd_yy_": "MM-DD-YY",
|
"mm_dd_yy_": "MM-DD-YY",
|
||||||
"dd_mm_yy_": "DD-MM-YY",
|
"dd_mm_yy_": "DD-MM-YY",
|
||||||
"yy_mm_dd_": "YY-MM-DD",
|
"yy_mm_dd_": "YY-MM-DD",
|
||||||
"plan_radio_name":"{name}"
|
"plan_radio_name":"{name}",
|
||||||
|
"there_were_no_purchases_during_the_selected_date_range":"There were no purchases during the selected date range.",
|
||||||
|
"there_were_no_sales_during_the_selected_date_range":"There were no sales during the selected date range.",
|
||||||
|
"there_were_no_inventory_transactions_during_the_selected_date_range":"There were no inventory transactions during the selected date range."
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user