mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-15 20:30:33 +00:00
feat: fix localization.
This commit is contained in:
@@ -23,7 +23,7 @@ function DetailExchangeRate({
|
||||
}
|
||||
|
||||
return (
|
||||
<DetailItem label={intl.get('invoice.details.exchange_rate')}>
|
||||
<DetailItem label={intl.get('exchange_rate')}>
|
||||
1 {base_currency} = {exchangeRate} {toCurrency}
|
||||
</DetailItem>
|
||||
);
|
||||
|
||||
@@ -16,7 +16,7 @@ function BranchActivateDialog({ dialogName, payload: {}, isOpen }) {
|
||||
return (
|
||||
<Dialog
|
||||
name={dialogName}
|
||||
title={'Branches Activate'}
|
||||
title={<T id={'branch_activate.dialog.label'} />}
|
||||
isOpen={isOpen}
|
||||
canEscapeJeyClose={true}
|
||||
autoFocus={true}
|
||||
|
||||
@@ -16,7 +16,7 @@ function WarehouseActivateDialog({ dialogName, payload: {}, isOpen }) {
|
||||
return (
|
||||
<Dialog
|
||||
name={dialogName}
|
||||
title={'Warehouses Activate'}
|
||||
title={<T id={'warehouse_activate.dialog_success_message'} />}
|
||||
isOpen={isOpen}
|
||||
canEscapeJeyClose={true}
|
||||
autoFocus={true}
|
||||
|
||||
@@ -49,7 +49,7 @@ export function WarehouseTransferDetailsStatus({ warehouseTransfer }) {
|
||||
}
|
||||
>
|
||||
<Tag minimal={false} intent={Intent.SUCCESS} round={true}>
|
||||
<T id={'warehouse_transfer.label.initiated'} />
|
||||
<T id={'warehouse_transfer.label.transferred'} />
|
||||
</Tag>
|
||||
</Choose.When>
|
||||
<Choose.When
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
import React from 'react';
|
||||
import styled from 'styled-components';
|
||||
import { Button, Intent } from '@blueprintjs/core';
|
||||
import { FormattedMessage as T, EmptyStatus } from '../../../components';
|
||||
import withDialogActions from 'containers/Dialog/withDialogActions';
|
||||
@@ -17,7 +16,7 @@ function BranchesEmptyStatus({
|
||||
|
||||
return (
|
||||
<EmptyStatus
|
||||
title={'Id enim irure laborum laboris do'}
|
||||
title={<T id={'branches.empty_status.title'} />}
|
||||
description={
|
||||
'Commodo fugiat officia commodo proident officia excepteur proident anim. Eu sunt enim aute exercitation est. Dolore occaecat tempor elit commodo duis ipsum amet est quis. Est commodo laborum in nisi deserunt dolor ipsum.'
|
||||
}
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
import React from 'react';
|
||||
import styled from 'styled-components';
|
||||
import { Button, Intent } from '@blueprintjs/core';
|
||||
import { FormattedMessage as T, EmptyStatus } from '../../../components';
|
||||
import withDialogActions from 'containers/Dialog/withDialogActions';
|
||||
@@ -17,7 +16,7 @@ function WarehousesEmptyStatus({
|
||||
|
||||
return (
|
||||
<EmptyStatus
|
||||
title={'Id enim irure laborum laboris do'}
|
||||
title={<T id={'warehouses.empty_status.title'} />}
|
||||
description={
|
||||
'Commodo fugiat officia commodo proident officia excepteur proident anim. Eu sunt enim aute exercitation est. Dolore occaecat tempor elit commodo duis ipsum amet est quis. Est commodo laborum in nisi deserunt dolor ipsum.'
|
||||
}
|
||||
|
||||
@@ -82,7 +82,7 @@ export function StatusAccessor(warehouse) {
|
||||
condition={warehouse.is_initiated && warehouse.is_transferred}
|
||||
>
|
||||
<Tag minimal={true} intent={Intent.SUCCESS} round={true}>
|
||||
<T id={'warehouse_transfer.label.initiated'} />
|
||||
<T id={'warehouse_transfer.label.transferred'} />
|
||||
</Tag>
|
||||
</Choose.When>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user