Skip to content
This repository has been archived by the owner on Sep 26, 2024. It is now read-only.

Commit

Permalink
Translation 7005 deriv ez translation (#5795)
Browse files Browse the repository at this point in the history
* chore: remove deriv ez

* fix: deriv ez updated from help center

* fix: pr comments

* fix: translation issues

* auto-pull-translation

* translation: 📚 sync translations from crowdin feature branch

* chore: trigger vercel

* fix: scroll issue

* auto-pull-translation

* auto-pull-translation

* translation: 📚 sync translations from crowdin feature branch

* fix: scroll add

* fix: add height

* empty: 🚀 to redeploy and trigger build

---------

Co-authored-by: DerivFE <[email protected]>
Co-authored-by: mitra-deriv <[email protected]>
  • Loading branch information
3 people authored Oct 31, 2023
1 parent f6395cb commit 61258fa
Show file tree
Hide file tree
Showing 57 changed files with 151 additions and 2,887 deletions.
90 changes: 7 additions & 83 deletions crowdin/messages.json

Large diffs are not rendered by default.

30 changes: 0 additions & 30 deletions gatsby-node.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ exports.onCreatePage = ({ page, actions }) => {
const is_p2p = /responsible/g.test(page.path)
const who_we_are = /who-we-are/g.test(page.path)
const is_cfds = /cfds/g.test(page.path)
const is_deriv_ez = /deriv-ez/g.test(page.path)
const is_options = /options/g.test(page.path)

if (is_careers) {
Expand Down Expand Up @@ -172,20 +171,6 @@ exports.onCreatePage = ({ page, actions }) => {
})
}

if (is_deriv_ez) {
createRedirect({
fromPath: `/derivez/`,
toPath: `/deriv-ez/`,
redirectInBrowser: true,
isPermanent: true,
})
createRedirect({
fromPath: `/derivez`,
toPath: `/deriv-ez/`,
redirectInBrowser: true,
isPermanent: true,
})
}
const is_english = process.env.GATSBY_LANGUAGE === 'en'

Object.keys(is_english ? language_config_en : language_config).map((lang) => {
Expand Down Expand Up @@ -356,21 +341,6 @@ exports.onCreatePage = ({ page, actions }) => {
})
}

if (is_deriv_ez) {
createRedirect({
fromPath: `/${lang}/derivez/`,
toPath: `/${lang}/deriv-ez/`,
redirectInBrowser: true,
isPermanent: true,
})
createRedirect({
fromPath: `/${lang}/derivez`,
toPath: `/${lang}/deriv-ez/`,
redirectInBrowser: true,
isPermanent: true,
})
}

return current_page
})
}
Expand Down
16 changes: 0 additions & 16 deletions src/components/custom/other-platforms.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ import Community from 'images/svg/menu/community.svg'
import Contact from 'images/svg/menu/contact.svg'
import DerivedFX from 'images/svg/custom/derived-fx.svg'
import DerivX from 'images/svg/custom/deriv-x.svg'
import { DerivEzLogoRed } from 'images/svg/deriv-ez'
import { DbotIcon } from 'images/svg/dbot'
import DMT5 from 'images/svg/dmt5/dmt5-icon.svg'
import BinaryBot from 'images/svg/binarybot-icon.svg'
Expand Down Expand Up @@ -423,21 +422,6 @@ export const NavPlatform = ({ onClick, is_ppc, is_ppc_redirect }: NavPlatformPro
onClick={onClick}
to="/derivx/"
/>
<NavCard
aria_label="Derivez"
Icon={() => (
<img
src={DerivEzLogoRed}
alt={localize('_t_Deriv EZ trading paltform_t_')}
width="32"
height="32"
/>
)}
content="_t_Trade on global markets from anywhere with our mobile-first CFD trading platform._t_"
title="_t_Deriv EZ_t_"
onClick={onClick}
to="/deriv-ez/"
/>
<NavCard
aria_label="SmartTrader"
Icon={() => (
Expand Down
18 changes: 0 additions & 18 deletions src/components/elements/off-canvas-menu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ import API from 'images/svg/menu/developers.svg'
import Diagonal from 'images/svg/elements/pink-right-diagonal.svg'
import DMT5 from 'images/svg/dmt5/dmt5-icon.svg'
import DerivX from 'images/svg/custom/deriv-x.svg'
import { DerivEzLogoRed } from 'images/svg/deriv-ez'
import DTrader from 'images/svg/dtrader/dtrader-icon.svg'
import DerivGo from 'images/svg/deriv-go/deriv-go-icon.svg'
import Forex from 'images/svg/custom/forex-nav.svg'
Expand Down Expand Up @@ -277,23 +276,6 @@ export const OffCanvasMenuWrapper = (props: OffCanvasMenuWrapperProps) => {
to="/derivx/"
/>
</Flex>
<Flex mb="2rem">
<NavCard
aria_label="Derivez"
Icon={() => (
<img
src={DerivEzLogoRed}
alt={localize('_t_Deriv EZ trading paltform_t_')}
width="32"
height="32"
/>
)}
content="_t_Trade on global markets from anywhere with our mobile-first CFD trading platform._t_"
title="_t_Deriv EZ_t_"
onClick={handleArrowClick}
to="/deriv-ez/"
/>
</Flex>
</>
)}
<Flex mb="2rem">
Expand Down
21 changes: 6 additions & 15 deletions src/features/components/templates/footer/data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -146,18 +146,9 @@ const platformsLinks: SmartFooterLink[] = [
is_row: true,
},
},

{
id: 2,
data: {
text: '_t_Deriv EZ_t_',
url: { type: 'internal', to: '/deriv-ez/' },
},
visibility: {
is_row: true,
},
},
{
id: 3,
data: {
text: '_t_Deriv GO_t_',
url: { type: 'internal', to: '/deriv-go/' },
Expand All @@ -167,14 +158,14 @@ const platformsLinks: SmartFooterLink[] = [
},
},
{
id: 4,
id: 3,
data: {
text: '_t_Deriv Trader_t_',
url: { type: 'internal', to: '/dtrader/' },
},
},
{
id: 5,
id: 4,
data: {
text: '_t_SmartTrader_t_',
url: { type: 'company', url_name: 'smart_trader', target: '_blank' },
Expand All @@ -184,7 +175,7 @@ const platformsLinks: SmartFooterLink[] = [
},
},
{
id: 6,
id: 5,
data: {
text: '_t_Deriv Bot_t_',
url: { type: 'internal', to: '/dbot/' },
Expand All @@ -194,7 +185,7 @@ const platformsLinks: SmartFooterLink[] = [
},
},
{
id: 7,
id: 6,
data: {
text: '_t_Binary Bot_t_',
url: { type: 'company', url_name: 'binary_bot', target: '_blank' },
Expand All @@ -204,7 +195,7 @@ const platformsLinks: SmartFooterLink[] = [
},
},
{
id: 8,
id: 7,
data: {
text: '_t_Deriv cTrader_t_',
url: { type: 'internal', to: '/deriv-ctrader/' },
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import Smarttrader from 'images/svg/custom/rebranding/smarttrader-icon.svg'
import DerivGo from 'images/svg/custom/rebranding/deriv-go-icon.svg'
import DMT5 from 'images/svg/custom/rebranding/dmt5-icon.svg'
import DTrader from 'images/svg/custom/rebranding/dtrader-icon.svg'
import DerivEZ from 'images/svg/custom/rebranding/deriv-ez-icon.svg'
import DerivBot from 'images/svg/custom/rebranding/deriv-bot-icon.svg'

export const tradeTypesContent: SmartNavContent[] = [
Expand Down Expand Up @@ -120,23 +119,6 @@ export const tradingPlatformsContent: SmartNavContent[] = [
},
{
id: 2,
data: {
aria_label: 'Derivez',
icon: {
src: DerivEZ,
alt: 'Deriv EZ trading paltform',
},
content:
'_t_Trade on global markets from anywhere with our mobile-first CFD trading platform._t_',
title: '_t_Deriv EZ_t_',
url: { type: 'internal', to: '/deriv-ez/' },
},
visibility: {
is_row: true,
},
},
{
id: 3,
data: {
aria_label: 'SmartTrader',
icon: {
Expand All @@ -152,7 +134,7 @@ export const tradingPlatformsContent: SmartNavContent[] = [
},
},
{
id: 4,
id: 3,
data: {
aria_label: 'Deriv Trader',
icon: {
Expand All @@ -168,7 +150,7 @@ export const tradingPlatformsContent: SmartNavContent[] = [
},
},
{
id: 5,
id: 4,
data: {
aria_label: 'Deriv cTrader',
icon: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@

&_scrollable_menu {
@media screen and (max-height: 975px) {
block-size: 85vh;
block-size: 77vh;
padding-block-end: 3rem;
overflow: auto;
}
Expand Down
66 changes: 0 additions & 66 deletions src/features/pages/deriv-ez/app-banner/data.ts

This file was deleted.

9 changes: 0 additions & 9 deletions src/features/pages/deriv-ez/app-banner/index.tsx

This file was deleted.

57 changes: 0 additions & 57 deletions src/features/pages/deriv-ez/deprecated-other-platforms/index.tsx

This file was deleted.

Loading

1 comment on commit 61258fa

@vercel
Copy link

@vercel vercel bot commented on 61258fa Oct 31, 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-com – ./

deriv-com-git-master.binary.sx
deriv-com.binary.sx

Please sign in to comment.