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/fix-ebook-translation #1880

Merged
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
7 changes: 3 additions & 4 deletions src/components/layout/ebooks/header.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import PropTypes from 'prop-types'
import GetEbook from './get-ebook'
import { Flex } from 'components/containers'
import { Header } from 'components/elements'
import { localize } from 'components/localization'
import { localize, Localize } from 'components/localization'
import device from 'themes/device.js'

const MainWrapper = styled(Flex)`
Expand Down Expand Up @@ -161,9 +161,8 @@ const HeaderSection = ({
{localize('Plus a free demo account to practice.')}
</Header>
<AuthorText>
{localize(
'This e-book has been brought to you by a veteran online trader and New York Times bestselling author, ',
)}
<Localize translate_text="This e-book has been brought to you by a veteran online trader and New York Times bestselling author," />

<AuthorNameText>Vince Stanzione.</AuthorNameText>
</AuthorText>
<SignupWrapper>
Expand Down
4 changes: 2 additions & 2 deletions src/components/layout/ebooks/introduction.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +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'
import { localize, Localize } from 'components/localization'

const BacgroundWrapper = styled.div`
width: 100%;
Expand Down Expand Up @@ -122,7 +122,7 @@ const Introduction = ({ introImage, imageWidth, introPara, subPara, introList })
return (
<Li key={index}>
<img src={checkIcon} alt="Check Icon" />
{point}
<Localize translate_text={point} />
</Li>
)
})}
Expand Down
4 changes: 2 additions & 2 deletions src/components/layout/ebooks/topics.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +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'
import { localize, 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 @@ -99,7 +99,7 @@ const Topics = ({ topicsImage, topicsList }) => {
return (
<Li key={index} className="topic-item">
<img src={checkIcon} alt="Check Icon" />
{topic}
<Localize translate_text={topic} />
</Li>
)
})}
Expand Down