mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-23 08:10:32 +00:00
BIG-356: add localize remove line entries.
This commit is contained in:
@@ -4,7 +4,12 @@ import { Popover2 } from '@blueprintjs/popover2';
|
|||||||
import { useFormikContext } from 'formik';
|
import { useFormikContext } from 'formik';
|
||||||
import intl from 'react-intl-universal';
|
import intl from 'react-intl-universal';
|
||||||
|
|
||||||
import { ExchangeRateInputGroup, Icon, Hint, FormattedMessage as T } from 'components';
|
import {
|
||||||
|
ExchangeRateInputGroup,
|
||||||
|
Icon,
|
||||||
|
Hint,
|
||||||
|
FormattedMessage as T,
|
||||||
|
} from 'components';
|
||||||
import {
|
import {
|
||||||
AccountsListFieldCell,
|
AccountsListFieldCell,
|
||||||
MoneyFieldCell,
|
MoneyFieldCell,
|
||||||
@@ -63,7 +68,10 @@ export const ActionsCellRenderer = ({
|
|||||||
};
|
};
|
||||||
const exampleMenu = (
|
const exampleMenu = (
|
||||||
<Menu>
|
<Menu>
|
||||||
<MenuItem onClick={handleClickRemoveRole} text="Remove line" />
|
<MenuItem
|
||||||
|
onClick={handleClickRemoveRole}
|
||||||
|
text={intl.get('make_journal.entries.remove_row')}
|
||||||
|
/>
|
||||||
</Menu>
|
</Menu>
|
||||||
);
|
);
|
||||||
return (
|
return (
|
||||||
|
|||||||
@@ -43,7 +43,7 @@ export function ActionsCellRenderer({
|
|||||||
|
|
||||||
const exampleMenu = (
|
const exampleMenu = (
|
||||||
<Menu>
|
<Menu>
|
||||||
<MenuItem onClick={onRemoveRole} text="Remove line" />
|
<MenuItem onClick={onRemoveRole} text={'item_entries.remove_row'} />
|
||||||
</Menu>
|
</Menu>
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
@@ -48,7 +48,10 @@ const ActionsCellRenderer = ({
|
|||||||
};
|
};
|
||||||
const exampleMenu = (
|
const exampleMenu = (
|
||||||
<Menu>
|
<Menu>
|
||||||
<MenuItem onClick={handleClickRemoveRole} text="Remove line" />
|
<MenuItem
|
||||||
|
onClick={handleClickRemoveRole}
|
||||||
|
text={intl.get('expense.entries.remove_row')}
|
||||||
|
/>
|
||||||
</Menu>
|
</Menu>
|
||||||
);
|
);
|
||||||
return (
|
return (
|
||||||
|
|||||||
@@ -21,7 +21,10 @@ export function ActionsCellRenderer({
|
|||||||
|
|
||||||
const exampleMenu = (
|
const exampleMenu = (
|
||||||
<Menu>
|
<Menu>
|
||||||
<MenuItem onClick={onRemoveRole} text="Remove line" />
|
<MenuItem
|
||||||
|
onClick={onRemoveRole}
|
||||||
|
text={intl.get('warehouse_transfer.entries.remove_row')}
|
||||||
|
/>
|
||||||
</Menu>
|
</Menu>
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
@@ -2010,5 +2010,8 @@
|
|||||||
"item.error.you_could_not_delete_item_has_associated": "لا يمكنك حذف العنصر لديه معاملات مرتبطة به ",
|
"item.error.you_could_not_delete_item_has_associated": "لا يمكنك حذف العنصر لديه معاملات مرتبطة به ",
|
||||||
"warehouse_transfer.quantity_cannot_be_zero_or_empty": "لا يمكن أن تكون الكمية صفراً أو فارغة.",
|
"warehouse_transfer.quantity_cannot_be_zero_or_empty": "لا يمكن أن تكون الكمية صفراً أو فارغة.",
|
||||||
"invoice.validation.due_date": "يجب أن يكون حقل {path} في وقت لاحق من {min}",
|
"invoice.validation.due_date": "يجب أن يكون حقل {path} في وقت لاحق من {min}",
|
||||||
"estimate.validation.expiration_date": "يجب أن يكون حقل {path} في وقت لاحق من {min}"
|
"estimate.validation.expiration_date": "يجب أن يكون حقل {path} في وقت لاحق من {min}",
|
||||||
|
"make_journal.entries.remove_row": "حذف الصف",
|
||||||
|
"expense.entries.remove_row": "حذف الصف",
|
||||||
|
"warehouse_transfer.entries.remove_row": "حذف الصف"
|
||||||
}
|
}
|
||||||
@@ -2010,5 +2010,8 @@
|
|||||||
"warehouse_transfer.form.reason.placeholder": "Enter the reason behind the transfer order.",
|
"warehouse_transfer.form.reason.placeholder": "Enter the reason behind the transfer order.",
|
||||||
"warehouse_transfer.quantity_cannot_be_zero_or_empty": "Quantity cannot be zero or empty.",
|
"warehouse_transfer.quantity_cannot_be_zero_or_empty": "Quantity cannot be zero or empty.",
|
||||||
"invoice.validation.due_date": "{path} field must be later than {min}",
|
"invoice.validation.due_date": "{path} field must be later than {min}",
|
||||||
"estimate.validation.expiration_date": "{path} field must be later than {min}"
|
"estimate.validation.expiration_date": "{path} field must be later than {min}",
|
||||||
|
"make_journal.entries.remove_row": "Remove line",
|
||||||
|
"expense.entries.remove_row": "Remove line",
|
||||||
|
"warehouse_transfer.entries.remove_row": "Remove line"
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user