Skip to content

Commit

Permalink
yashim/fix: translations (#7754)
Browse files Browse the repository at this point in the history
  • Loading branch information
yashim-deriv committed Feb 28, 2023
1 parent 2a809ab commit fb4652a
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

1 comment on commit fb4652a

@vercel
Copy link

@vercel vercel bot commented on fb4652a Feb 28, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

deriv-app – ./

binary.sx
deriv-app-git-master.binary.sx
deriv-app.vercel.app
deriv-app.binary.sx

Please sign in to comment.