diff options
| author | Haishan <[email protected]> | 2020-12-06 14:57:59 +0800 |
|---|---|---|
| committer | Haishan <[email protected]> | 2020-12-06 20:19:51 +0800 |
| commit | 8a50ef4ef2f6f6044d36ea2f4fe06e663083972e (patch) | |
| tree | da098c1434b5f745f391330dde37b6468deec45b /src/components/Home.tsx | |
| parent | a8c6cd23ce2b585362f515080b2167990c554fed (diff) | |
feat: initial Chinese UI language support
Diffstat (limited to 'src/components/Home.tsx')
| -rw-r--r-- | src/components/Home.tsx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/components/Home.tsx b/src/components/Home.tsx index 532379b..a6df373 100644 --- a/src/components/Home.tsx +++ b/src/components/Home.tsx @@ -1,4 +1,5 @@ import React, { Suspense } from 'react'; +import { useTranslation } from 'react-i18next'; import ContentHeader from './ContentHeader'; import s0 from './Home.module.css'; @@ -7,9 +8,10 @@ import TrafficChart from './TrafficChart'; import TrafficNow from './TrafficNow'; export default function Home() { + const { t } = useTranslation(); return ( <div> - <ContentHeader title="Overview" /> + <ContentHeader title={t('Overview')} /> <div className={s0.root}> <div> <TrafficNow /> |
