Skip to content
This repository was archived by the owner on Feb 22, 2024. It is now read-only.

Commit e08afe6

Browse files
authored
Merge pull request #3698 from mitra-deriv/fix-translation-missing-strings
Mitra/fix translation strings binary landing page
2 parents 687e1f0 + 75c5187 commit e08afe6

File tree

3 files changed

+69
-69
lines changed

3 files changed

+69
-69
lines changed

src/indexPage/react-components/binary-landing/Card.jsx

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -4,23 +4,23 @@ import { translate } from '../../../common/i18n';
44
const CardSection = () => {
55
const cardContentArray = [
66
{
7-
title : translate('Trade multipliers'),
8-
content: translate('Amplify your potential profit without risking more than your stake.'),
7+
title : 'Trade multipliers',
8+
content: 'Amplify your potential profit without risking more than your stake.',
99
img : 'image/multiplier.png',
1010
},
1111
{
12-
title : translate('Peer-to-peer payments'),
13-
content: translate('Exchange your local currency with fellow traders to get funds in and out of your account with Deriv P2P.'),
12+
title : 'Peer-to-peer payments',
13+
content: 'Exchange your local currency with fellow traders to get funds in and out of your account with Deriv P2P.',
1414
img : 'image/p2p.png',
1515
},
1616
{
17-
title : translate('Learn with Deriv Academy'),
18-
content: translate('Enjoy complimentary articles and videos to help you learn the ropes of online trading.'),
17+
title : 'Learn with Deriv Academy',
18+
content: 'Enjoy complimentary articles and videos to help you learn the ropes of online trading.',
1919
img : 'image/academy.png',
2020
},
2121
{
22-
title : translate('Crash/Boom indices'),
23-
content: translate('Predict and potentially gain from exciting spikes and dips. Only available with multipliers on DTrader.'),
22+
title : 'Crash/Boom indices',
23+
content: 'Predict and potentially gain from exciting spikes and dips. Only available with multipliers on DTrader.',
2424
img : 'image/crashboom.png',
2525
},
2626
]
@@ -29,9 +29,9 @@ const CardSection = () => {
2929
<div className='card-container card-wrapper'>
3030
<div className='section-container-holder card-wrapper-holder'>
3131
<div className="container-header card-wrapper-holder-header">
32-
<h1>{translate ('Exclusively on Deriv')}</h1>
32+
<h1>{translate('Exclusively on Deriv')}</h1>
3333
<h2>{translate('There’s a bright future ahead.')}</h2>
34-
<h2>{translate ('Find these bonus features and more on Deriv:')}</h2>
34+
<h2>{translate('Find these bonus features and more on Deriv:')}</h2>
3535
</div>
3636
</div>
3737
<div className="card-container card-wrapper-holder-container">
@@ -42,8 +42,8 @@ const CardSection = () => {
4242
<div>
4343
<img src={img} />
4444
</div>
45-
<h1>{title}</h1>
46-
<h2>{content}</h2>
45+
<h1>{translate(title)}</h1>
46+
<h2>{translate(content)}</h2>
4747
</div>
4848
)
4949
})

src/indexPage/react-components/binary-landing/Carousel.jsx

Lines changed: 56 additions & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -4,82 +4,82 @@ import { translate } from '../../../common/i18n';
44

55
const carouselContentArray = [
66
{
7-
url: 'https://smarttrader.deriv.com/',
8-
action_text: translate('Check it out'),
9-
img: 'image/landing-carousel/smart-trader.png',
10-
platform_title: translate('SmartTrader'),
11-
platform_description: translate('Our classic options trading platform'),
7+
url : 'https://smarttrader.deriv.com/',
8+
action_text : 'Check it out',
9+
img : 'image/landing-carousel/smart-trader.png',
10+
platform_title : 'SmartTrader',
11+
platform_description: 'Our classic options trading platform',
1212
},
1313
{
14-
url: 'https://bot.deriv.com/',
15-
action_text: translate('Check it out'),
16-
img: 'image/landing-carousel/binary-bot.png',
17-
platform_title: translate('Binary Bot'),
18-
platform_description: translate('Our classic automated trading platform'),
14+
url : 'https://bot.deriv.com/',
15+
action_text : 'Check it out',
16+
img : 'image/landing-carousel/binary-bot.png',
17+
platform_title : 'Binary Bot',
18+
platform_description: 'Our classic automated trading platform',
1919
},
2020
{
21-
url: 'https://deriv.com/dmt5/',
22-
action_text: translate('Learn more'),
23-
img: 'image/landing-carousel/mt5.png',
24-
platform_title: translate('Deriv MT5'),
25-
platform_description: translate('The world-famous CFD trading platform'),
21+
url : 'https://deriv.com/dmt5/',
22+
action_text : 'Learn more',
23+
img : 'image/landing-carousel/mt5.png',
24+
platform_title : 'Deriv MT5',
25+
platform_description: 'The world-famous CFD trading platform',
2626
},
2727
{
28-
url: 'https://deriv.com/dtrader/',
29-
action_text: translate('Learn more'),
30-
img: 'image/landing-carousel/dtrader.png',
31-
platform_title: translate('DTrader'),
32-
platform_description: translate('Our flagship options and multipliers trading platform'),
28+
url : 'https://deriv.com/dtrader/',
29+
action_text : 'Learn more',
30+
img : 'image/landing-carousel/dtrader.png',
31+
platform_title : 'DTrader',
32+
platform_description: 'Our flagship options and multipliers trading platform',
3333
},
3434
{
35-
url: 'https://deriv.com/dbot/',
36-
action_text: translate('Learn more'),
37-
img: 'image/landing-carousel/dbot.png',
38-
platform_title: translate('DBot'),
39-
platform_description: translate('Our next generation automated trading platform'),
35+
url : 'https://deriv.com/dbot/',
36+
action_text : 'Learn more',
37+
img : 'image/landing-carousel/dbot.png',
38+
platform_title : 'DBot',
39+
platform_description: 'Our next generation automated trading platform',
4040
},
4141
{
42-
url: 'https://deriv.com/landing/deriv-go/',
43-
action_text: translate('Learn more'),
44-
img: 'image/landing-carousel/deriv-go.png',
45-
platform_title: translate('Deriv GO'),
46-
platform_description: translate('Trade on-the-go with our mobile trading platform'),
42+
url : 'https://deriv.com/landing/deriv-go/',
43+
action_text : 'Learn more',
44+
img : 'image/landing-carousel/deriv-go.png',
45+
platform_title : 'Deriv GO',
46+
platform_description: 'Trade on-the-go with our mobile trading platform',
4747
},
4848
{
49-
url: 'https://deriv.com/derivx/',
50-
action_text: translate('Learn more'),
51-
img: 'image/landing-carousel/derivX.png',
52-
platform_title: translate('Deriv X'),
53-
platform_description: translate('Our customisable CFD trading platform'),
49+
url : 'https://deriv.com/derivx/',
50+
action_text : 'Learn more',
51+
img : 'image/landing-carousel/derivX.png',
52+
platform_title : 'Deriv X',
53+
platform_description: 'Our customisable CFD trading platform',
5454
},
5555
]
5656

5757

5858
const Carousel = () => {
5959

6060
const settings = {
61-
dots: false,
62-
infinite: true,
63-
speed: 300,
64-
slidesToShow: 2,
61+
dots : false,
62+
infinite : true,
63+
speed : 300,
64+
slidesToShow : 2,
6565
slidesToScroll: 1,
66-
arrows: false,
67-
variableWidth: true,
66+
arrows : false,
67+
variableWidth : true,
6868
// initialSlide: 1,
69-
autoplay: true,
70-
autoplaySpeed: 1500,
71-
responsive: [
69+
autoplay : true,
70+
autoplaySpeed : 1500,
71+
responsive : [
7272
{
7373
breakpoint: 1024,
74-
settings: {
75-
slidesToShow: 1,
74+
settings : {
75+
slidesToShow : 1,
7676
slidesToScroll: 1,
7777
},
7878
},
7979
{
8080
breakpoint: 700,
81-
settings: {
82-
slidesToShow: 1,
81+
settings : {
82+
slidesToShow : 1,
8383
slidesToScroll: 1,
8484
},
8585
},
@@ -95,15 +95,15 @@ const Carousel = () => {
9595
return (
9696
<div className="carousel_section__slide_card">
9797
<div className="carousel_slide_info_wrapper">
98-
<h1 className="platform_title" >{platform_title}</h1>
99-
<h2 className="platform_description" >{platform_description}</h2>
98+
<h1 className="platform_title" >{translate(platform_title)}</h1>
99+
<h2 className="platform_description" >{translate(platform_description)}</h2>
100100
</div>
101101
<img className="carousel_section__slide_img" src={img} />
102102
<a href={url}>
103103
<button className="carousel_section__arrow-btn">
104104
<div className="carousel_section__btn_inner">
105-
{action_text}
106-
<img src={`image/landing-carousel/arrow.svg`} />
105+
{translate(action_text)}
106+
<img src={'image/landing-carousel/arrow.svg'} />
107107
</div>
108108
</button>
109109
</a>
@@ -119,15 +119,15 @@ const Carousel = () => {
119119
return (
120120
<div className="carousel_section__slide_card">
121121
<div className="carousel_slide_info_wrapper">
122-
<h1 className="platform_title" >{platform_title}</h1>
123-
<h2 className="platform_description" >{platform_description}</h2>
122+
<h1 className="platform_title" >{translate(platform_title)}</h1>
123+
<h2 className="platform_description" >{translate(platform_description)}</h2>
124124
</div>
125125
<img className="carousel_section__slide_img" src={img} />
126126
<a href={url}>
127127
<button className="carousel_section__arrow-btn">
128128
<div className="carousel_section__btn_inner">
129-
{action_text}
130-
<img src={`image/landing-carousel/arrow.svg`} />
129+
{translate(action_text)}
130+
<img src={'image/landing-carousel/arrow.svg'} />
131131
</div>
132132
</button>
133133
</a>

src/indexPage/react-components/binary-landing/WaitSection.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ const WaitSection = () => (
1616
<img src="../image/dont-wait-image.png" className='binary-wait-wrapper-inner-placeholder-binary-desktop'/>
1717
<div className='binary-wait-wrapper-inner-placeholder-binary'>
1818
<img src="../image/dtrader-mobile.png" className='binary-wait-wrapper-inner-placeholder-binary-mobile'/>
19-
<h1>{translate ('Come over to Deriv and future-proof your trading now.')}</h1>
19+
<h1>{translate('Come over to Deriv and future-proof your trading now.')}</h1>
2020
</div>
2121
</div>
2222

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy