Skip to content

Commit

Permalink
feat: i18n
Browse files Browse the repository at this point in the history
  • Loading branch information
ChefJerry committed Feb 12, 2025
1 parent 97dcc9a commit 729e5ce
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
4 changes: 1 addition & 3 deletions apps/web/src/views/Idos/components/Footer.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
import { useTranslation } from '@pancakeswap/localization'
import { BscScanIcon, CardBody, FlexGap, LanguageIcon, Link, Text } from '@pancakeswap/uikit'
import useTheme from 'hooks/useTheme'
import { useCurrentIDOConfig } from '../hooks/ido/useCurrentIDOConfig'
import { useIDOContract } from '../hooks/ido/useIDOContract'

export const Footer: React.FC = () => {
const { theme } = useTheme()
const { t } = useTranslation()
const idoContract = useIDOContract()
const currentIdoConfig = useCurrentIDOConfig()
return (
Expand All @@ -21,7 +19,7 @@ export const Footer: React.FC = () => {
</Link>
</FlexGap>
<Text color="textSubtle" fontSize="14px" lineHeight="16.8px">
{t(currentIdoConfig.description)}
{currentIdoConfig.description}
</Text>
</FlexGap>
</CardBody>
Expand Down
3 changes: 2 additions & 1 deletion apps/web/src/views/Idos/config/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ export const idoConfigDict: Record<string, IDOConfig> = {
chainId: ChainId.BSC,
bannerUrl: `${ASSET_CDN}/web/ido/myshell-banner.png`,
contractAddress: '0x',
tgeTitle: <Trans>{`MyShell's Token Generation Event`}</Trans>,
// eslint-disable-next-line react/no-unescaped-entities
tgeTitle: <Trans>MyShell's Token Generation Event</Trans>,
tgeSubtitle: <Trans>Exclusively via Binance Keyless Wallet</Trans>,
description: (
<Trans>
Expand Down
6 changes: 5 additions & 1 deletion packages/localization/src/config/translations.json
Original file line number Diff line number Diff line change
Expand Up @@ -3727,5 +3727,9 @@
"To participate, please create a wallet using the Binance Wallet, as importing wallets with seed phrases is not supported for this sale.": "To participate, please create a wallet using the Binance Wallet, as importing wallets with seed phrases is not supported for this sale.",
"MyShell's Token Generation Event": "MyShell's Token Generation Event",
"Exclusively via Binance Keyless Wallet": "Exclusively via Binance Keyless Wallet",
"Due to regulatory requirements, you are not eligible to participate in.": "Due to regulatory requirements, you are not eligible to participate in."
"Due to regulatory requirements, you are not eligible to participate in.": "Due to regulatory requirements, you are not eligible to participate in.",
"Disconnected from Binance Wallet": "Disconnected from Binance Wallet",
"MyShell is an AI creator platform for everyone to build, share, and own AI agents. Our vision is to create a unified platform that provides product-driven value for web2 users and offers the crypto community participating ownership in practical AI applications, bridging the gap between frontier AI applications and blockchain technology.": "MyShell is an AI creator platform for everyone to build, share, and own AI agents. Our vision is to create a unified platform that provides product-driven value for web2 users and offers the crypto community participating ownership in practical AI applications, bridging the gap between frontier AI applications and blockchain technology.",
"hours": "hours",
"< 1 hour": "< 1 hour"
}

0 comments on commit 729e5ce

Please sign in to comment.