feat(branch & warehouse activate): localization.

This commit is contained in:
elforjani13
2022-03-21 20:03:18 +02:00
parent a17fafbc90
commit 8b78fbdb86
4 changed files with 38 additions and 19 deletions

View File

@@ -1,4 +1,5 @@
import React from 'react';
import intl from 'react-intl-universal';
import { Form } from 'formik';
import { Classes } from '@blueprintjs/core';
import BranchActivateFormFloatingActions from './BranchActivateFormFloatingActions';
@@ -11,17 +12,19 @@ export default function BranchActivateFormContent() {
<Form>
<div className={Classes.DIALOG_BODY}>
<p class="paragraph">
Once you enable <strong>Multiply Branches</strong>, you will not be able to disable it.
However, you can delete the branch or mark it inactive.
{intl.getHTML('branch_activate.dialog_paragraph_once_you_enable')}
</p>
<ul class="paragraph list">
<li>
The current organization will be considered as the Head Office or
Primary Branch.
{intl.get(
'branch_activate.dialog_paragraph_list_the_current_organization_will_be_considered',
)}
</li>
<li>
All accounts transactions will be considered as the primary office.
{intl.get(
'branch_activate.dialog_paragraph_list_all_accounts_transactions_will_be_considered',
)}
</li>
</ul>
</div>

View File

@@ -1,7 +1,7 @@
import React from 'react';
import intl from 'react-intl-universal';
import { Form } from 'formik';
import { Classes } from '@blueprintjs/core';
import WarehouseActivateFormFloatingActions from './WarehouseActivateFormFloatingActions';
/**
@@ -12,16 +12,19 @@ export default function WarehouseActivateFormContent() {
<Form>
<div className={Classes.DIALOG_BODY}>
<p class="paragraph">
Once you enable <strong>Multiply Warehouses</strong>, you will not be able to disable it.
However, you can delete the warehouse or mark it inactive.
{intl.getHTML('warehouse_activate.dialog_paragraph_once_you_enable')}
</p>
<ul class="paragraph list">
<li>
The current organization will be considered as the Primary Warehouse.
{intl.get(
'warehouse_activate.dialog_paragraph_list_the_current_organization_will_be_considered',
)}
</li>
<li>
All inventory transactions will be considered as the Primary Warehouse.
{intl.get(
'warehouse_activate.dialog_paragraph_list_all_accounts_transactions_will_be_considered',
)}
</li>
</ul>
</div>