From bf4a7e13508aa10e674ccbe4d4c4b1d1ce8b4fbe Mon Sep 17 00:00:00 2001 From: luojiyin Date: Tue, 6 Aug 2024 18:23:15 +0800 Subject: [PATCH] i18n --- pages/volunteer.tsx | 11 ++++++++--- translation/en-US.ts | 4 ++++ translation/zh-CN.ts | 4 ++++ translation/zh-TW.ts | 4 ++++ 4 files changed, 20 insertions(+), 3 deletions(-) diff --git a/pages/volunteer.tsx b/pages/volunteer.tsx index b802421..e307be4 100644 --- a/pages/volunteer.tsx +++ b/pages/volunteer.tsx @@ -8,6 +8,9 @@ import { PageHead } from '../components/PageHead'; import { PersonCard } from '../components/PersonCard'; import { SectionTitle } from '../components/SectionTitle'; import { repositoryStore } from '../models/Repository'; +import { i18n } from '../models/Translation'; + +const { t } = i18n; export const getServerSideProps = compose(cache(), errorLogger, async () => { const contributors: Contributor[] = @@ -21,10 +24,12 @@ const Organizer: FC> = ({ contributors, }) => ( - -

志愿者

+ +

{t('volunteer')}

- 线上开源志愿者 + + {t('online_volunteer')} +