Skip to content

Commit

Permalink
yashim/fix: translations (deriv-com#7754)
Browse files Browse the repository at this point in the history
  • Loading branch information
yashim-deriv authored and mahdiyeh-deriv committed Mar 2, 2023
1 parent de0e69a commit 29830f9
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ const CFDRealAccounts = ({
'Trade CFDs on MT5 with forex, stocks, stock indices, synthetics, cryptocurrencies, and commodities.'
)
: localize('Trade CFDs on MT5 with forex, stocks, stock indices, commodities, and cryptocurrencies.');

const available_real_accounts: TStaticAccountProps[] = [
{
name: 'Derived',
Expand Down
10 changes: 2 additions & 8 deletions packages/core/src/Stores/traders-hub-store.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,5 @@
import { action, makeObservable, observable, reaction, computed, runInAction } from 'mobx';
import {
available_traders_hub_cfd_accounts,
CFD_PLATFORMS,
ContentFlag,
formatMoney,
getAppstorePlatforms,
} from '@deriv/shared';
import { getCFDAvailableAccount, CFD_PLATFORMS, ContentFlag, formatMoney, getAppstorePlatforms } from '@deriv/shared';
import BaseStore from './base-store';
import { localize } from '@deriv/translations';
import { isEuCountry } from '_common/utility';
Expand Down Expand Up @@ -365,7 +359,7 @@ export default class TradersHubStore extends BaseStore {
);

const all_available_accounts = [
...available_traders_hub_cfd_accounts,
...getCFDAvailableAccount(),
{
name: !this.is_eu_user || this.is_demo_low_risk ? localize('Financial') : localize('CFDs'),
description: account_desc,
Expand Down
2 changes: 1 addition & 1 deletion packages/shared/src/utils/cfd/available-cfd-accounts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export interface AvailableAccount {
link_to?: string;
}

export const available_traders_hub_cfd_accounts: AvailableAccount[] = [
export const getCFDAvailableAccount = () => [
{
name: 'Derived',
description: localize('Trade CFDs on MT5 with synthetics, baskets, and derived FX.'),
Expand Down

0 comments on commit 29830f9

Please sign in to comment.