diff --git a/build.zip b/build.zip new file mode 100644 index 0000000..9dc896e Binary files /dev/null and b/build.zip differ diff --git a/public/locales/zh-CN.json b/public/locales/zh-CN.json index 876a5a0..cf5c4f1 100644 --- a/public/locales/zh-CN.json +++ b/public/locales/zh-CN.json @@ -1126,5 +1126,6 @@ "possess LP": "持有LP", "capital pool": "资金池", "Unclaimed income": "待领取收益", - "pledge": "质押" + "pledge": "质押", + "top": "置顶" } diff --git a/src/config/localization/languages.ts b/src/config/localization/languages.ts index 90078b4..896a1b4 100644 --- a/src/config/localization/languages.ts +++ b/src/config/localization/languages.ts @@ -30,34 +30,34 @@ export const ZHCN: Language = { locale: 'zh-CN', language: '简体中文', code: export const ZHTW: Language = { locale: 'zh-TW', language: '繁體中文', code: 'zh-tw' } export const languages = { - // 'ar-SA': AR, - // 'bn-BD': BN, + 'ar-SA': AR, + 'bn-BD': BN, 'en-US': EN, - // 'de-DE': DE, - // 'el-GR': EL, - // 'es-ES': ESES, - // 'fi-FI': FI, - // 'fil-PH': FIL, - // 'fr-FR': FR, - // 'hi-IN': HI, - // 'hu-HU': HU, - // 'id-ID': ID, - // 'it-IT': IT, - // 'ja-JP': JA, - // 'ko-KR': KO, - // 'nl-NL': NL, - // 'pl-PL': PL, - // 'pt-BR': PTBR, - // 'pt-PT': PTPT, - // 'ro-RO': RO, - // 'ru-RU': RU, - // 'sv-SE': SVSE, - // 'ta-IN': TA, - // 'tr-TR': TR, - // 'uk-UA': UK, - // 'vi-VN': VI, + 'de-DE': DE, + 'el-GR': EL, + 'es-ES': ESES, + 'fi-FI': FI, + 'fil-PH': FIL, + 'fr-FR': FR, + 'hi-IN': HI, + 'hu-HU': HU, + 'id-ID': ID, + 'it-IT': IT, + 'ja-JP': JA, + 'ko-KR': KO, + 'nl-NL': NL, + 'pl-PL': PL, + 'pt-BR': PTBR, + 'pt-PT': PTPT, + 'ro-RO': RO, + 'ru-RU': RU, + 'sv-SE': SVSE, + 'ta-IN': TA, + 'tr-TR': TR, + 'uk-UA': UK, + 'vi-VN': VI, 'zh-CN': ZHCN, - // 'zh-TW': ZHTW, + 'zh-TW': ZHTW, } export const languageList = Object.values(languages) diff --git a/src/config/localization/translations.json b/src/config/localization/translations.json index 7d872c5..e850df9 100644 --- a/src/config/localization/translations.json +++ b/src/config/localization/translations.json @@ -1254,5 +1254,6 @@ "possess LP": "possess LP", "capital pool": "capital pool", "Unclaimed income": "Unclaimed income", - "pledge": "pledge" + "pledge": "pledge", + "top": "top" } diff --git a/src/views/Announcement/components/ListItem.tsx b/src/views/Announcement/components/ListItem.tsx index 9e9e455..6eae0ff 100644 --- a/src/views/Announcement/components/ListItem.tsx +++ b/src/views/Announcement/components/ListItem.tsx @@ -1,5 +1,6 @@ import React, { useState } from 'react' import styled from 'styled-components' +import { useTranslation } from 'contexts/Localization' import { Text, Flex } from '@pancakeswap/uikit' interface InfoProps { @@ -52,13 +53,14 @@ const TextTop = styled(Flex)` ` const ListItem: React.FC = ({ title, content, publishTime, top = false }) => { + const { t } = useTranslation() return ( <> {title} - {top ? 置顶 : ''} + {top ? {t('top')} : ''} {content}