Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on May 20, 2025. It is now read-only.

Suthesh/add-ebook-strings #1873

Merged
merged 1 commit into from
Jul 5, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion crowdin/messages.json

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions src/components/layout/ebooks/header.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const MainWrapper = styled(Flex)`
}
@media ${device.tablet} {
background-image: ${(props) =>
props.bgMobile ? props.bgMobile : 'linear-gradient(281deg, #1b1b1b, #0e0e0e)'};
props.bgMobile ? props.bgMobile : 'linear-gradient(281deg, #1b1b1b, #0e0e0e)'};
}
`
const HeaderBody = styled(Flex)`
Expand Down Expand Up @@ -164,7 +164,7 @@ const HeaderSection = ({
{localize(
'This e-book has been brought to you by a veteran online trader and New York Times bestselling author, ',
)}
<AuthorNameText>{localize('Vince Stanzione.')}</AuthorNameText>
<AuthorNameText>Vince Stanzione.</AuthorNameText>
</AuthorText>
<SignupWrapper>
<GetEbook ebook_utm_code={ebook_utm_code} />
Expand Down
5 changes: 3 additions & 2 deletions src/components/layout/ebooks/introduction.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { Header, Text, Li } from 'components/elements'
import checkIcon from 'images/common/ebooks/check-icon.png'
import BackgroundPattern from 'images/svg/ebook-intro-bg.svg'
import device from 'themes/device'
import { localize } from 'components/localization'

const BacgroundWrapper = styled.div`
width: 100%;
Expand Down Expand Up @@ -109,13 +110,13 @@ const Introduction = ({ introImage, imageWidth, introPara, subPara, introList })
/>
<MediaBody>
<Header as="h3" className="mt-0 intro-text">
Introduction
{localize("Introduction")}
</Header>
<Text className="intro-desc">{introPara}</Text>
{subPara && <Text className="intro-desc">{subPara}</Text>}
{introList && (
<>
<Header as="h5">In this book you’ll learn:</Header>
<Header as="h5">{localize("In this book you’ll learn:")}</Header>
<MediaItemList>
{introList?.map((point, index) => {
return (
Expand Down
5 changes: 3 additions & 2 deletions src/components/layout/ebooks/topics.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import PropTypes from 'prop-types'
import { Header, Li } from 'components/elements'
import checkIcon from 'images/common/ebooks/check-icon.png'
import device from 'themes/device'
import { localize } from 'components/localization'

const FullWidth = styled.div`
background-image: linear-gradient(to bottom, #eaf4f5 1%, rgba(242, 245, 248, 0) 99%);
Expand Down Expand Up @@ -92,7 +93,7 @@ const Topics = ({ topicsImage, topicsList }) => {
<Wrapper>
<ItemList>
<Header as="h5" className="header">
Topics covered
{localize("Topics covered")}
</Header>
{topicsList?.map((topic, index) => {
return (
Expand All @@ -104,7 +105,7 @@ const Topics = ({ topicsImage, topicsList }) => {
})}
</ItemList>
<TopicImgWrapper className="topic-wrapper">
<Image src={topicsImage} alt="Forex Topics" />
<Image src={topicsImage} alt={localize("Forex Topics")} />
</TopicImgWrapper>
</Wrapper>
</FullWidth>
Expand Down
24 changes: 12 additions & 12 deletions src/pages/landing/ebooks/forex.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,21 +10,21 @@ import forexEbookImage from 'images/common/ebooks/forex-ebook.png'
import forexEbookInside from 'images/common/ebooks/forex-ebook-inside.png'

const introPoints = [
'The simple basics of forex',
'How to make more profitable forex trades and lower your trading risks',
'How to use digital options to profit from up, down, and even sideways moves',
'How to trade like professionals without spending hours each day analysing the world market',
localize('The simple basics of forex'),
localize('How to make more profitable forex trades and lower your trading risks'),
localize('How to use digital options to profit from up, down, and even sideways moves'),
localize('How to trade like professionals without spending hours each day analysing the world market'),
]

const topicsCovered = [
'The basics of forex',
'Who uses the forex market?',
'Which currencies are on the forex market?',
'Why trade forex on Deriv?',
'Advantages of trading forex on DTrader',
'Advantages of trading forex on DMT5',
'Currency pairs you can trade on Deriv',
'Forex in more detail',
localize('The basics of forex'),
localize('Who uses the forex market?'),
localize('Which currencies are on the forex market?'),
localize('Why trade forex on Deriv?'),
localize('Advantages of trading forex on DTrader'),
localize('Advantages of trading forex on DMT5'),
localize('Currency pairs you can trade on Deriv'),
localize('Forex in more detail'),
]

const ForexEbook = () => {
Expand Down
10 changes: 5 additions & 5 deletions src/pages/landing/ebooks/stocks.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ import stocksEbookInside from 'images/common/ebooks/stocks-ebook-inside.png'
import StocksIntroImage from 'images/svg/stock-indices/stocksHeaderBelowSection.svg'

const topicsCovered = [
'The basics of CFD trading',
'Stocks and stock indices: the basics',
'CFD trading: order types',
'Rise or fall? Assessing stocks',
'Stock market seasonality',
localize('The basics of CFD trading'),
localize('Stocks and stock indices: the basics'),
localize('CFD trading: order types'),
localize('Rise or fall? Assessing stocks'),
localize('Stock market seasonality'),
]

const StocksEbook = () => {
Expand Down