fix translations
This commit is contained in:
parent
874b3f05ac
commit
02199e0854
|
@ -3,6 +3,17 @@ import PageBodyContainer from '../components/PageBodyContainer'
|
|||
import TopBar from '../components/TopBar'
|
||||
import LeaderboardTable from '../components/LeaderboardTable'
|
||||
import ButtonGroup from 'components/ButtonGroup'
|
||||
import { serverSideTranslations } from 'next-i18next/serverSideTranslations'
|
||||
import { useTranslation } from 'next-i18next'
|
||||
|
||||
export async function getStaticProps({ locale }) {
|
||||
return {
|
||||
props: {
|
||||
...(await serverSideTranslations(locale, ['common'])),
|
||||
// Will be passed to the page component as props
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
const leaderboardRangePresets = [
|
||||
{ label: '7d', value: '7' },
|
||||
|
@ -14,6 +25,7 @@ const leaderboardRangePresetValues = leaderboardRangePresets.map((x) => x.value)
|
|||
|
||||
export default function Leaderboard() {
|
||||
const [leaderboardRange, setLeaderboardRange] = useState('30')
|
||||
const { t } = useTranslation('common')
|
||||
|
||||
return (
|
||||
<div className={`bg-th-bkg-1 text-th-fgd-1 transition-all`}>
|
||||
|
@ -21,7 +33,7 @@ export default function Leaderboard() {
|
|||
<PageBodyContainer>
|
||||
<div className="flex flex-col pt-8 pb-3 sm:flex-row sm:items-center sm:justify-between sm:pb-6 md:pt-10">
|
||||
<h1 className={`mb-4 text-2xl font-semibold text-th-fgd-1 sm:mb-0`}>
|
||||
Leaderboard
|
||||
{t('leaderboard')}
|
||||
</h1>
|
||||
<div className="w-full sm:ml-auto sm:w-56">
|
||||
<ButtonGroup
|
||||
|
|
|
@ -192,6 +192,7 @@
|
|||
"languages-tip-title": "Multilingual?",
|
||||
"layout-tip-desc": "Unlock to re-arrange and re-size the trading panels to your liking.",
|
||||
"layout-tip-title": "Customize Layout",
|
||||
"leaderboard": "Leaderboard",
|
||||
"learn": "Documentation",
|
||||
"learn-more": "Learn more",
|
||||
"lend": "Lend",
|
||||
|
|
|
@ -192,6 +192,7 @@
|
|||
"languages-tip-title": "Multilingüe?",
|
||||
"layout-tip-desc": "Desbloquee para reorganizar y cambiar el tamaño de los paneles comerciales a su gusto.",
|
||||
"layout-tip-title": "Personalizar diseño",
|
||||
"leaderboard": "Leaderboard",
|
||||
"learn": "Aprender",
|
||||
"learn-more": "Aprender más",
|
||||
"lend": "Lend",
|
||||
|
|
|
@ -192,6 +192,7 @@
|
|||
"languages-tip-title": "您会多种语言吗?",
|
||||
"layout-tip-desc": "解锁并根据您的喜好重新排列和调整交易面板的大小。",
|
||||
"layout-tip-title": "个人化页面布局",
|
||||
"leaderboard": "Leaderboard",
|
||||
"learn": "学习",
|
||||
"learn-more": "学习",
|
||||
"lend": "借出",
|
||||
|
|
|
@ -192,6 +192,7 @@
|
|||
"languages-tip-title": "您會多種語言嗎?",
|
||||
"layout-tip-desc": "解锁並根据您的喜好重新排列和调整交易面板的大小。",
|
||||
"layout-tip-title": "個人化頁面佈局",
|
||||
"leaderboard": "Leaderboard",
|
||||
"learn": "學習",
|
||||
"learn-more": "學習",
|
||||
"lend": "借出",
|
||||
|
|
Loading…
Reference in New Issue