feat: add localization.

This commit is contained in:
elforjani13
2021-12-22 15:59:16 +02:00
parent 10c421dea0
commit b36468ff7f
10 changed files with 202 additions and 33 deletions

View File

@@ -14,7 +14,7 @@ export default function VendorCreditNoteFormFooter() {
return (
<div class={classNames(CLASSES.PAGE_FORM_FOOTER)}>
<Postbox
title={<T id={'credit_note.label_credit_note_details'} />}
title={<T id={'vendor_credits_note.label_credit_note_details'} />}
defaultOpen={false}
>
<Row>

View File

@@ -80,7 +80,6 @@ function VendorsCreditNoteActionsBar({
allMenuItem={true}
resourceName={'vendor_credit'}
views={VendorCreditsViews}
allMenuItem={true}
allMenuItemText={<T id={'all'} />}
onChange={handleTabChange}
/>
@@ -88,7 +87,7 @@ function VendorsCreditNoteActionsBar({
<Button
className={Classes.MINIMAL}
icon={<Icon icon={'plus'} />}
text={<T id={'vendor_credits.action.new_vendor_credit'} />}
text={<T id={'vendor_credits.label.new_vendor_credit'} />}
onClick={handleClickNewVendorCredit}
/>
<AdvancedFilterPopover

View File

@@ -11,7 +11,7 @@ export default function VendorsCreditNoteEmptyStatus() {
title={<T id={'the_organization_doesn_t_receive_money_yet'} />}
description={
<p>
<T id={'credit_note.empty_status_description'} />
<T id={'vendor_credits.empty_status_description'} />
</p>
}
action={