diff --git a/src/components/bot-stopped.tsx b/src/components/bot-stopped.tsx index e9682188..a31d285b 100644 --- a/src/components/bot-stopped.tsx +++ b/src/components/bot-stopped.tsx @@ -2,8 +2,8 @@ import React from 'react'; import { observer } from 'mobx-react-lite'; import Text from '@/components/shared_ui/text'; import { useStore } from '@/hooks/useStore'; -import { localize } from '@/utils/tmp/dummy'; import { LegacyClose1pxIcon } from '@deriv/quill-icons'; +import { Localize, localize } from '@deriv-com/translations'; import Dialog from './shared_ui/dialog'; const BotStopped = observer(() => { @@ -24,7 +24,7 @@ const BotStopped = observer(() => { >
- {localize("You're back online")} +
{
- {localize( - 'The bot has stopped, but your trade may still be running. You can check it on the Reports page.' - )} + ); diff --git a/src/components/route-prompt-dialog/route-prompt-dialog.tsx b/src/components/route-prompt-dialog/route-prompt-dialog.tsx index 2fe1c104..0ab90267 100644 --- a/src/components/route-prompt-dialog/route-prompt-dialog.tsx +++ b/src/components/route-prompt-dialog/route-prompt-dialog.tsx @@ -1,8 +1,7 @@ import React from 'react'; import { observer } from 'mobx-react-lite'; import { useStore } from '@/hooks/useStore'; -import { localize } from '@/utils/tmp/dummy'; -import { Localize } from '@deriv-com/translations'; +import { Localize, localize } from '@deriv-com/translations'; import Dialog from '../shared_ui/dialog'; const RoutePromptDialog = observer(() => { diff --git a/src/components/shared/utils/helpers/chart-notifications.tsx b/src/components/shared/utils/helpers/chart-notifications.tsx index dd763583..734bcbb6 100644 --- a/src/components/shared/utils/helpers/chart-notifications.tsx +++ b/src/components/shared/utils/helpers/chart-notifications.tsx @@ -1,9 +1,8 @@ -import { localize } from '@/utils/tmp/dummy'; import { Localize } from '@deriv-com/translations'; export const switch_to_tick_chart = { key: 'switch_to_tick_chart', - header: localize('This chart display is not ideal for tick contracts'), + header: , message: , type: 'info', }; diff --git a/src/components/trading-view-chart/trading-view-modal.tsx b/src/components/trading-view-chart/trading-view-modal.tsx index 61cf2f59..ff1eb794 100644 --- a/src/components/trading-view-chart/trading-view-modal.tsx +++ b/src/components/trading-view-chart/trading-view-modal.tsx @@ -3,7 +3,7 @@ import { observer } from 'mobx-react-lite'; import DraggableResizeWrapper from '@/components/draggable/draggable-resize-wrapper'; import TradingViewComponent from '@/components/trading-view-chart/trading-view'; import { useStore } from '@/hooks/useStore'; -import { localize } from '@/utils/tmp/dummy'; +import { localize } from '@deriv-com/translations'; const TradingViewModal = observer(() => { const { dashboard } = useStore(); diff --git a/src/pages/chart/chart-modal/chart-modal-desktop.tsx b/src/pages/chart/chart-modal/chart-modal-desktop.tsx index 50dfdf47..acd0bd2a 100644 --- a/src/pages/chart/chart-modal/chart-modal-desktop.tsx +++ b/src/pages/chart/chart-modal/chart-modal-desktop.tsx @@ -2,7 +2,7 @@ import React from 'react'; import { observer } from 'mobx-react-lite'; import DraggableResizeWrapper from '@/components/draggable/draggable-resize-wrapper'; import { useStore } from '@/hooks/useStore'; -import { localize } from '@/utils/tmp/dummy'; +import { localize } from '@deriv-com/translations'; import Chart from '..'; const ChartModalDesktop = observer(() => { diff --git a/src/pages/dashboard/load-bot-preview/dashboard-bot-list.tsx b/src/pages/dashboard/load-bot-preview/dashboard-bot-list.tsx index c2b482ed..fd192a93 100644 --- a/src/pages/dashboard/load-bot-preview/dashboard-bot-list.tsx +++ b/src/pages/dashboard/load-bot-preview/dashboard-bot-list.tsx @@ -3,7 +3,6 @@ import { observer } from 'mobx-react-lite'; import Text from '@/components/shared_ui/text'; import { getSavedWorkspaces } from '@/external/bot-skeleton'; import { useStore } from '@/hooks/useStore'; -import { localize } from '@/utils/tmp/dummy'; import { Localize } from '@deriv-com/translations'; import { useDevice } from '@deriv-com/ui'; import DeleteDialog from './delete-dialog'; @@ -11,21 +10,21 @@ import RecentWorkspace from './recent-workspace'; import './index.scss'; type THeader = { - label: string; + label: React.ReactElement; className: string; }; const HEADERS: THeader[] = [ { - label: localize('Bot name'), + label: , className: 'bot-list__header__label', }, { - label: localize('Last modified'), + label: , className: 'bot-list__header__time-stamp', }, { - label: localize('Status'), + label: , className: 'bot-list__header__load-type', }, ]; diff --git a/src/pages/main/main.tsx b/src/pages/main/main.tsx index 9153210a..32eec92c 100644 --- a/src/pages/main/main.tsx +++ b/src/pages/main/main.tsx @@ -12,14 +12,13 @@ import dbot from '@/external/bot-skeleton/scratch/dbot'; import { api_base } from '@/external/bot-skeleton/services/api/api-base'; import { isDbotRTL } from '@/external/bot-skeleton/utils/workspace'; import { useStore } from '@/hooks/useStore'; -import { localize } from '@/utils/tmp/dummy'; import { LabelPairedChartLineCaptionRegularIcon, LabelPairedObjectsColumnCaptionRegularIcon, LabelPairedPuzzlePieceTwoCaptionBoldIcon, LegacyGuide1pxIcon, } from '@deriv/quill-icons'; -import { Localize } from '@deriv-com/translations'; +import { Localize, localize } from '@deriv-com/translations'; import { useDevice } from '@deriv-com/ui'; import RunPanel from '../../components/run-panel'; import Chart from '../chart';