Skip to content

Commit

Permalink
chore: Fix translations
Browse files Browse the repository at this point in the history
  • Loading branch information
memoyil committed Jan 16, 2025
1 parent bffe70a commit 9253b51
Show file tree
Hide file tree
Showing 16 changed files with 35 additions and 36 deletions.
2 changes: 1 addition & 1 deletion apps/aptos/components/SwapWarningModal/MojoWarning.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const MojitoWarning = () => {
<>
<Text>{t('Please note that the Mojito Markets team have paused project development for the time being')}</Text>
<LinkExternal href="https://x.com/MojitoMarkets/status/1604940075636527104">
{t('For more info, please see %brand%’s twitter.', { brand: 'Mojito Markets' })}
{t('For more info, please see %brand%’s X.', { brand: 'Mojito Markets' })}
</LinkExternal>
</>
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ const Question = () => {
<FoldableText title={t('What is the criteria to become a PancakeSwap affiliate?')} mt="24px">
<StyledListText color="textSubtle">
{t(
'At least 10,000 followers across social media platforms such as Twitter, Youtube, Discord, Instagram and Telegram',
'At least 10,000 followers across social media platforms such as X, Youtube, Discord, Instagram and Telegram',
)}
</StyledListText>
<StyledListText color="textSubtle">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ export const LeftBottomBox: React.FC = () => {
return (
<LeftImageWrapper>
<Image className="discord" src={`${ASSET_CDN}/web/landing/socials/1.png`} alt="discord" />
<Image className="twitter" src={`${ASSET_CDN}/web/landing/socials/2.png`} alt="twitter" />
<Image className="x" src={`${ASSET_CDN}/web/landing/socials/2.png`} alt="x" />
<Image className="telegram" src={`${ASSET_CDN}/web/landing/socials/3.png`} alt="telegram" />
<Image className="instagram" src={`${ASSET_CDN}/web/landing/socials/4.png`} alt="instagram" />
</LeftImageWrapper>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,14 +68,14 @@ const TweetBox = styled.div`
line-height: 120%;
`

export const useTweetsData = () => {
export const useXPostsData = () => {
return useMemo(() => {
return [
{
tweet: `Get Your Uniswap Interface Fees Refunded on PancakeSwap, up to $8M!
post: `Get Your Uniswap Interface Fees Refunded on PancakeSwap, up to $8M!
Match your Ethereum Uniswap volume 1:1 on Ethereum PancakeSwap, and we’ll refund ALL your interface fees paid.
Trade now: https://pancakeswap.finance/swap?chain=eth&utm_source=twitter&utm_medium=Ethereum&utm_campaign=Swap&utm_id=InterfacefeeRefund
Trade now: https://pancakeswap.finance/swap?chain=eth&utm_source=x&utm_medium=Ethereum&utm_campaign=Swap&utm_id=InterfacefeeRefund
`,
link: 'https://x.com/PancakeSwap/status/1791076335462314097',
date: 'May 16',
Expand Down Expand Up @@ -105,15 +105,15 @@ const StyledText = styled(Text)`
}
`

export const TwitterCards: React.FC = () => {
export const XCards: React.FC = () => {
const { t } = useTranslation()
const tweets = useTweetsData()
const posts = useXPostsData()
const { theme } = useTheme()
const { isMobile } = useMatchBreakpoints()
return (
<Wrapper>
<Text bold mb="24px">
{t('Top Tweet of the week')}
{t('Top Post of the Week on X')}
</Text>
<LogoBox>
<LogoIcon width={30} />
Expand All @@ -130,23 +130,23 @@ export const TwitterCards: React.FC = () => {
</StyledText>
<Divider />
<Text fontSize={14} color={theme.colors.textSubtle}>
{tweets[0].date}
{posts[0].date}
</Text>
<Divider />
<FavoriteBorderIcon width={isMobile ? 14 : 16} color={theme.colors.textSubtle} mr="2px" />
<Text fontSize={14} color={theme.colors.textSubtle}>
{tweets[0].like}
{posts[0].like}
</Text>
<Divider />
<BarChartIcon color={theme.colors.textSubtle} />
<Text fontSize={14} color={theme.colors.textSubtle}>
{tweets[0].impression}
{posts[0].impression}
</Text>
</Flex>
<TweetWrapper>
<TweetBox>{tweets[0].tweet}</TweetBox>
<TweetBox>{posts[0].post}</TweetBox>
</TweetWrapper>
<Link external href={tweets[0].link} marginTop="5px">
<Link external href={posts[0].link} marginTop="5px">
{t('Web link')} <OpenNewIcon ml="3px" color="primary" />
</Link>
</Wrapper>
Expand Down
6 changes: 3 additions & 3 deletions apps/web/src/views/Home/components/CommunitySection/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { Swiper, SwiperSlide } from 'swiper/react'
import CommunitySummary, { sharedCss } from './CommunitySummary'
import { CommunityTags } from './CommunityTags'
import { LeftBottomBox, RightBottomBox } from './ImagesOnBg'
import { BlogCard, TwitterCards } from './TwitterCards'
import { BlogCard, XCards } from './XCards'

const TransparentFrame = styled.div<{ isDark: boolean }>`
position: relative;
Expand Down Expand Up @@ -107,8 +107,8 @@ const CommunitySection = () => {
loop
pagination={{ clickable: true }}
>
<SwiperSlide key="TwitterCards">
<TwitterCards />
<SwiperSlide key="XCards">
<XCards />
</SwiperSlide>
<SwiperSlide key="BlogCard">
<BlogCard />
Expand Down
2 changes: 1 addition & 1 deletion apps/web/src/views/Nft/market/NftSubgraphWarning.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const NftSubgraphWarning: React.FC = () => {
'Due to an ongoing Subgraph indexing issue from the underlying infrastructure provider. The PancakeSwap NFT marketplace is currently showing outdated data. Continuing trading may be subject to the risk of executing orders at unexpected prices and loss of funds. We recommend not to trade until the issue is resolved. Follow our ',
)}
<StyledAnchor target="_blank" rel="noreferrer noopener" href="https://x.com/pancakeswap/">
Twitter
X
</StyledAnchor>{' '}
{t('for the latest update.')}
</Text>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const MPendleWarning = () => {
</Link>
. {t('For more information, please refer to Penpie’s')}{' '}
<Link style={{ display: 'inline' }} external href="https://x.com/penpiexyz_io">
{t('Twitter')}
{X}
</Link>
.
<br />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const GalaWarning = () => {
<Box maxWidth="380px">
<Text>{t('Warning: The pGALA token pool is not a valid token trading pair - please stop buying.')}</Text>
<LinkExternal href="https://x.com/pNetworkDeFi/status/1588266897061031936">
{t('For more info, please see pGALA’s twitter.')}
{t('For more info, please see pGALA’s X.')}
</LinkExternal>
</Box>
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const LUSDWarning = () => {
</Link>
{t('For more information, please refer to Linear Finance’s')}
<Link external ml="4px" style={{ display: 'inline' }} href="https://x.com/LinearFinance">
{t('Twitter')}
{X}
</Link>
</Text>
</Box>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const METISWarning = () => {
</Link>
{t('For more information, please refer to MetisDAO’s')}
<Link external ml="4px" style={{ display: 'inline' }} href="https://x.com/MetisDAO">
{t('Twitter')}
{X}
</Link>
</Text>
</Box>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ const NFPWarning = () => {
<Box maxWidth="380px">
<Text>
{t(
`The NFP token has recently experienced an exploit. Please refrain from swapping NFP until further notice. More information can be found on the project's twitter page.`,
`The NFP token has recently experienced an exploit. Please refrain from swapping NFP until further notice. More information can be found on the project's X page.`,
)}
</Text>
<LinkExternal href="https://x.com/nfprompt/status/1768558658697433464?s=20">{t('twitter page')}</LinkExternal>
<LinkExternal href="https://x.com/nfprompt/status/1768558658697433464?s=20">{t('X page')}</LinkExternal>
</Box>
)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const PNPWarning = () => {
</Link>
. {t('For more information, please refer to Penpie’s')}{' '}
<Link style={{ display: 'inline' }} external href="https://x.com/penpiexyz_io">
{t('Twitter')}
{X}
</Link>
.
<br />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const LUSDWarning = () => {

{t('For more information, please refer to %org%’s', { org: 'BedRock' })}
<Link external ml="4px" style={{ display: 'inline' }} href="https://x.com/Bedrock_DeFi">
{t('Twitter')}
{X}
</Link>
</Text>
</Box>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const ALETHWarning = () => {
</Link>
<Text as="span">{t('For more information, please refer to Alchemix’s')}</Text>
<Link external m="0 4px" style={{ display: 'inline' }} href="https://x.com/AlchemixFi/status/1685737632133971968">
{t('Twitter')}
{X}
</Link>
<Text as="span">{t('and await further updates from the team')}</Text>
</Box>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const USDPlusWarning = () => {
style={{ display: 'inline' }}
href="https://x.com/overnight_fi/status/1797552748789195237"
>
{t('twitter page')}.
{t('X page')}.
</Link>
</Box>
)
Expand Down
15 changes: 7 additions & 8 deletions packages/localization/src/config/translations.json
Original file line number Diff line number Diff line change
Expand Up @@ -1034,7 +1034,7 @@
"24H": "24H",
"7D performance": "7D performance",
"Please note that the Mojito Markets team have paused project development for the time being": "Please note that the Mojito Markets team have paused project development for the time being",
"For more info, please see %brand%’s twitter.": "For more info, please see %brand%’s twitter.",
"For more info, please see %brand%’s X.": "For more info, please see %brand%’s X.",
"Based on last 7 days' performance. Does not account for impermanent loss": "Based on last 7 days' performance. Does not account for impermanent loss",
"View token on CoinMarketCap": "View token on CoinMarketCap",
"Top Movers": "Top Movers",
Expand Down Expand Up @@ -1208,7 +1208,7 @@
"Buy how many?": "Buy how many?",
"Activate your profile and make sure you have at least the cost of 1 NFT in your wallet to buy a Squad Ticket.": "Activate your profile and make sure you have at least the cost of 1 NFT in your wallet to buy a Squad Ticket.",
"Sold Out!": "Sold Out!",
"Follow on Twitter": "Follow on Twitter",
"Follow on X": "Follow on X",
"Confirming...": "Confirming...",
"Your Squad (%tokens%)": "Your Squad (%tokens%)",
"Minting...": "Minting...",
Expand Down Expand Up @@ -1958,7 +1958,7 @@
"Default": "Default",
"Shows username of wallet instead of bunnies": "Shows username of wallet instead of bunnies",
"Show username": "Show username",
"For more info, please see pGALA’s twitter.": "For more info, please see pGALA’s twitter.",
"For more info, please see pGALA’s X.": "For more info, please see pGALA’s X.",
"Discovered from registered coins": "Discovered from registered coins",
"Register coin to receive transfers": "Register coin to receive transfers",
"Anyone can create a coin on Aptos with any name, including fake versions of existing coins or ones that claim to represent projects that do not have a coin.": "Anyone can create a coin on Aptos with any name, including fake versions of existing coins or ones that claim to represent projects that do not have a coin.",
Expand Down Expand Up @@ -2079,7 +2079,7 @@
"Affiliates can login to the affiliate dashboard and view your referral and commission information": "Affiliates can login to the affiliate dashboard and view your referral and commission information",
"Is there a limited number of referrals i can refer?": "Is there a limited number of referrals i can refer?",
"No, users can refer as many friends as they wish": "No, users can refer as many friends as they wish",
"At least 10,000 followers across social media platforms such as Twitter, Youtube, Discord, Instagram and Telegram": "At least 10,000 followers across social media platforms such as Twitter, Youtube, Discord, Instagram and Telegram",
"At least 10,000 followers across social media platforms such as X, Youtube, Discord, Instagram and Telegram": "At least 10,000 followers across social media platforms such as X, Youtube, Discord, Instagram and Telegram",
"You will receive your commissions on a monthly basis. This means that you will receive payments for your commissions earned in the previous month at the beginning of each month.": "You will receive your commissions on a monthly basis. This means that you will receive payments for your commissions earned in the previous month at the beginning of each month.",
"You will be able to redeem your CAKE rewards from the affiliate dashboard page. Once redeemed, PancakeSwap will transfer the commission amount earned to your designated wallet. You will be able to see the details of each payment in your affiliate dashboard, including the amount, date, and status of each payment.": "You will be able to redeem your CAKE rewards from the affiliate dashboard page. Once redeemed, PancakeSwap will transfer the commission amount earned to your designated wallet. You will be able to see the details of each payment in your affiliate dashboard, including the amount, date, and status of each payment.",
"Your referrals will be listed in your affiliate dashboard, along with the date they were made, their status, and the commission amount earned": "Your referrals will be listed in your affiliate dashboard, along with the date they were made, their status, and the commission amount earned",
Expand Down Expand Up @@ -2422,7 +2422,6 @@
"Please exercise due caution when trading / providing liquidity for the METIS token. The protocol was recently affected by the": "Please exercise due caution when trading / providing liquidity for the METIS token. The protocol was recently affected by the",
"PolyNetwork Exploit.": "PolyNetwork Exploit.",
"For more information, please refer to MetisDAO’s": "For more information, please refer to MetisDAO’s",
"Twitter": "Twitter",
"Caution - lUSD Token": "Caution - lUSD Token",
"Please exercise due caution when trading or providing liquidity for the lUSD token. The protocol was recently affected by an ": "Please exercise due caution when trading or providing liquidity for the lUSD token. The protocol was recently affected by an ",
"exploit.": "exploit.",
Expand Down Expand Up @@ -2538,7 +2537,7 @@
"Community Members": "Community Members",
"Multilingual Communities": "Multilingual Communities",
"Community Ambassadors": "Community Ambassadors",
"Top Tweet of the week": "Top Tweet of the week",
"Top Post of the Week on X": "Top Post of the Week on X",
"Web link": "Web link",
"Latest Blog Post": "Latest Blog Post",
"Join our": "Join our",
Expand Down Expand Up @@ -3073,8 +3072,8 @@
"Introducing PancakeSwap v4": "Introducing PancakeSwap v4",
"Your DEX Your Innovation Introducing PancakeSwap v4": "Your DEX Your Innovation Introducing PancakeSwap v4",
"Whitepaper": "Whitepaper",
"twitter page": "twitter page",
"The NFP token has recently experienced an exploit. Please refrain from swapping NFP until further notice. More information can be found on the project's twitter page.": "The NFP token has recently experienced an exploit. Please refrain from swapping NFP until further notice. More information can be found on the project's twitter page.",
"X page": "X page",
"The NFP token has recently experienced an exploit. Please refrain from swapping NFP until further notice. More information can be found on the project's X page.": "The NFP token has recently experienced an exploit. Please refrain from swapping NFP until further notice. More information can be found on the project's X page.",
"NMT Token has recently experienced an exploit. Please refrain from swapping NMT until further notice.": "NMT Token has recently experienced an exploit. Please refrain from swapping NMT until further notice.",
"Withdrawal Fee": "Withdrawal Fee",
"View Staking Token Project Site": "View Staking Token Project Site",
Expand Down

0 comments on commit 9253b51

Please sign in to comment.