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