fix: localization.

This commit is contained in:
elforjani13
2021-11-02 14:22:55 +02:00
parent cd3105b320
commit fd09ea12ff
8 changed files with 28 additions and 25 deletions

View File

@@ -50,7 +50,7 @@ function BadDebtForm({
// Handle request response success.
const onSuccess = (response) => {
AppToaster.show({
message: intl.get('badDebt_writte_off_success_message'),
message: intl.get('bad_debt.dialog.success_message'),
intent: Intent.SUCCESS,
});
closeDialog(dialogName);

View File

@@ -36,7 +36,7 @@ function BadDebtFormFields() {
<div className={Classes.DIALOG_BODY}>
<Callout intent={Intent.PRIMARY}>
<p>
<T id={'badDebt_the_seller_can_charge_the_amount_of_an_invoice'} />
<T id={' bad_debt.dialog.header_note'} />
</p>
</Callout>
@@ -48,7 +48,7 @@ function BadDebtFormFields() {
meta: { error, touched },
}) => (
<FormGroup
label={<T id={'badDebt.label_written_off_amount'} />}
label={<T id={'bad_debt.dialog.written_off_amount'} />}
labelInfo={<FieldRequiredHint />}
className={classNames('form-group--amount', CLASSES.FILL)}
intent={inputIntent({ error, touched })}

View File

@@ -14,7 +14,7 @@ function BadDebtDialog({ dialogName, payload: { invoiceId = null }, isOpen }) {
return (
<Dialog
name={dialogName}
title={<T id={'badDebt.label'} />}
title={<T id={'bad_debt.dialog.bad_debt'} />}
isOpen={isOpen}
canEscapeJeyClose={true}
autoFocus={true}