mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-21 15:20:34 +00:00
fix: localization.
This commit is contained in:
@@ -2,11 +2,11 @@ import intl from 'react-intl-universal';
|
|||||||
|
|
||||||
export const moreVertOptions = [
|
export const moreVertOptions = [
|
||||||
{
|
{
|
||||||
name: intl.get('badDebt.label'),
|
name: intl.get('bad_debt.dialog.bad_debt'),
|
||||||
value: 'bad debt',
|
value: 'bad debt',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: intl.get('badDebt.label_cancel_bad_debt'),
|
name: intl.get('bad_debt.dialog.cancel_bad_debt'),
|
||||||
value: 'cancel bad debt',
|
value: 'cancel bad debt',
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
|||||||
@@ -35,7 +35,7 @@ function CancelBadDebtAlert({
|
|||||||
cancelBadDebtMutate(invoiceId)
|
cancelBadDebtMutate(invoiceId)
|
||||||
.then(() => {
|
.then(() => {
|
||||||
AppToaster.show({
|
AppToaster.show({
|
||||||
message: intl.get('badDebt_canceled_write_off_success_message'),
|
message: intl.get('bad_debt.cancel_alert.success_message'),
|
||||||
intent: Intent.SUCCESS,
|
intent: Intent.SUCCESS,
|
||||||
});
|
});
|
||||||
})
|
})
|
||||||
@@ -56,7 +56,7 @@ function CancelBadDebtAlert({
|
|||||||
loading={isLoading}
|
loading={isLoading}
|
||||||
>
|
>
|
||||||
<p>
|
<p>
|
||||||
<T id={'badDebt_are_sure_to_write_off_this_invoice'} />
|
<T id={'bad_debt.cancel_alert.message'} />
|
||||||
</p>
|
</p>
|
||||||
</Alert>
|
</Alert>
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -50,7 +50,7 @@ function BadDebtForm({
|
|||||||
// Handle request response success.
|
// Handle request response success.
|
||||||
const onSuccess = (response) => {
|
const onSuccess = (response) => {
|
||||||
AppToaster.show({
|
AppToaster.show({
|
||||||
message: intl.get('badDebt_writte_off_success_message'),
|
message: intl.get('bad_debt.dialog.success_message'),
|
||||||
intent: Intent.SUCCESS,
|
intent: Intent.SUCCESS,
|
||||||
});
|
});
|
||||||
closeDialog(dialogName);
|
closeDialog(dialogName);
|
||||||
|
|||||||
@@ -36,7 +36,7 @@ function BadDebtFormFields() {
|
|||||||
<div className={Classes.DIALOG_BODY}>
|
<div className={Classes.DIALOG_BODY}>
|
||||||
<Callout intent={Intent.PRIMARY}>
|
<Callout intent={Intent.PRIMARY}>
|
||||||
<p>
|
<p>
|
||||||
<T id={'badDebt_the_seller_can_charge_the_amount_of_an_invoice'} />
|
<T id={' bad_debt.dialog.header_note'} />
|
||||||
</p>
|
</p>
|
||||||
</Callout>
|
</Callout>
|
||||||
|
|
||||||
@@ -48,7 +48,7 @@ function BadDebtFormFields() {
|
|||||||
meta: { error, touched },
|
meta: { error, touched },
|
||||||
}) => (
|
}) => (
|
||||||
<FormGroup
|
<FormGroup
|
||||||
label={<T id={'badDebt.label_written_off_amount'} />}
|
label={<T id={'bad_debt.dialog.written_off_amount'} />}
|
||||||
labelInfo={<FieldRequiredHint />}
|
labelInfo={<FieldRequiredHint />}
|
||||||
className={classNames('form-group--amount', CLASSES.FILL)}
|
className={classNames('form-group--amount', CLASSES.FILL)}
|
||||||
intent={inputIntent({ error, touched })}
|
intent={inputIntent({ error, touched })}
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ function BadDebtDialog({ dialogName, payload: { invoiceId = null }, isOpen }) {
|
|||||||
return (
|
return (
|
||||||
<Dialog
|
<Dialog
|
||||||
name={dialogName}
|
name={dialogName}
|
||||||
title={<T id={'badDebt.label'} />}
|
title={<T id={'bad_debt.dialog.bad_debt'} />}
|
||||||
isOpen={isOpen}
|
isOpen={isOpen}
|
||||||
canEscapeJeyClose={true}
|
canEscapeJeyClose={true}
|
||||||
autoFocus={true}
|
autoFocus={true}
|
||||||
|
|||||||
@@ -72,12 +72,15 @@ export const BadDebtMenuItem = ({ invoice, onDialog, onAlert }) => {
|
|||||||
<Menu>
|
<Menu>
|
||||||
<Choose>
|
<Choose>
|
||||||
<Choose.When condition={!invoice.is_writtenoff}>
|
<Choose.When condition={!invoice.is_writtenoff}>
|
||||||
<MenuItem text={<T id={'badDebt.label'} />} onClick={onDialog} />
|
<MenuItem
|
||||||
|
text={<T id={'bad_debt.dialog.bad_debt'} />}
|
||||||
|
onClick={onDialog}
|
||||||
|
/>
|
||||||
</Choose.When>
|
</Choose.When>
|
||||||
<Choose.When condition={invoice.is_writtenoff}>
|
<Choose.When condition={invoice.is_writtenoff}>
|
||||||
<MenuItem
|
<MenuItem
|
||||||
onClick={onAlert}
|
onClick={onAlert}
|
||||||
text={<T id={'badDebt.label_cancel_bad_debt'} />}
|
text={<T id={'bad_debt.dialog.cancel_bad_debt'} />}
|
||||||
/>
|
/>
|
||||||
</Choose.When>
|
</Choose.When>
|
||||||
</Choose>
|
</Choose>
|
||||||
|
|||||||
@@ -1433,13 +1433,13 @@
|
|||||||
"cash_flow_money_out": "سحب",
|
"cash_flow_money_out": "سحب",
|
||||||
"cash_flow_transaction.switch_item": " {value} معاملة علي حساب",
|
"cash_flow_transaction.switch_item": " {value} معاملة علي حساب",
|
||||||
"cash_flow_transaction.balance_in_bigcapital": "الرصيد في Bigcapital",
|
"cash_flow_transaction.balance_in_bigcapital": "الرصيد في Bigcapital",
|
||||||
"badDebt.label_written_off_amount": "المبلغ المشطوب",
|
"bad_debt.dialog.written_off_amount": "المبلغ المشطوب",
|
||||||
"badDebt.label": "الديون المعدومة",
|
"bad_debt.dialog.bad_debt": "الديون المعدومة",
|
||||||
"badDebt.label_cancel_bad_debt": "إلغاء الديون المعدومة",
|
"bad_debt.dialog.cancel_bad_debt": "إلغاء الديون المعدومة",
|
||||||
"badDebt_the_seller_can_charge_the_amount_of_an_invoice": "يمكن للبائع تحميل مبلغ الفاتورة على حساب مصروفات الديون المعدومة عندما يكون من المؤكد أن الفاتورة لن يتم دفعها.",
|
"bad_debt.dialog.header_note": "يمكن للبائع تحميل مبلغ الفاتورة على حساب مصروفات الديون المعدومة عندما يكون من المؤكد أن الفاتورة لن يتم دفعها.",
|
||||||
"badDebt_writte_off_success_message":"تم شطب فاتورة البيع المقدمة بنجاح.",
|
"bad_debt.dialog.success_message":"تم شطب فاتورة البيع المقدمة بنجاح.",
|
||||||
"badDebt_canceled_write_off_success_message":"تم إلغاء شطب فاتورة البيع المقدمة بنجاح.",
|
"bad_debt.cancel_alert.success_message":"تم إلغاء شطب فاتورة البيع المقدمة بنجاح.",
|
||||||
"badDebt_are_sure_to_write_off_this_invoice": "هل أنت متأكد أنك تريد شطب هذه الفاتورة؟ "
|
"bad_debt.cancel_alert.message": "هل أنت متأكد أنك تريد شطب هذه الفاتورة؟ "
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -1421,12 +1421,12 @@
|
|||||||
"item.error.type_cannot_change_with_item_has_transactions": "Cannot change item type to inventory with item has associated transactions.",
|
"item.error.type_cannot_change_with_item_has_transactions": "Cannot change item type to inventory with item has associated transactions.",
|
||||||
"item.error.cannot_change_inventory_account": "Cannot change item inventory account while the item has transactions.",
|
"item.error.cannot_change_inventory_account": "Cannot change item inventory account while the item has transactions.",
|
||||||
"customer.link.customer_details": "Customer details ({amount})",
|
"customer.link.customer_details": "Customer details ({amount})",
|
||||||
"badDebt.label_written_off_amount": "Written-off amount",
|
"bad_debt.dialog.written_off_amount": "Written-off amount",
|
||||||
"badDebt.label": "Bad debt",
|
"bad_debt.dialog.bad_debt": "Bad debt",
|
||||||
"badDebt.label_cancel_bad_debt": "Cancel bad debt",
|
"bad_debt.dialog.cancel_bad_debt": "Cancel bad debt",
|
||||||
"badDebt_the_seller_can_charge_the_amount_of_an_invoice": "The seller can charge the amount of an invoice to the bad debt expense account when it is certain that the invoice will not be paid.",
|
"bad_debt.dialog.header_note": "The seller can charge the amount of an invoice to the bad debt expense account when it is certain that the invoice will not be paid.",
|
||||||
"badDebt_writte_off_success_message":"The given sale invoice has been writte-off successfully.",
|
"bad_debt.dialog.success_message":"The given sale invoice has been writte-off successfully.",
|
||||||
"badDebt_canceled_write_off_success_message":"The given sale invoice has been canceled write-off successfully.",
|
"bad_debt.cancel_alert.success_message":"The given sale invoice has been canceled write-off successfully.",
|
||||||
"badDebt_are_sure_to_write_off_this_invoice": "Are you sure you want to write off this invoice?"
|
"bad_debt.cancel_alert.message": "Are you sure you want to write off this invoice?"
|
||||||
|
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user