Skip to content

Commit

Permalink
i18n
Browse files Browse the repository at this point in the history
  • Loading branch information
luojiyin1987 committed Aug 6, 2024
1 parent 8d0d7e4 commit bf4a7e1
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 3 deletions.
11 changes: 8 additions & 3 deletions pages/volunteer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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[] =
Expand All @@ -21,10 +24,12 @@ const Organizer: FC<InferGetServerSidePropsType<typeof getServerSideProps>> = ({
contributors,
}) => (
<Container>
<PageHead title="志愿者" />
<h1 className="py-5 text-center text-md-start ps-md-4">志愿者</h1>
<PageHead title={t('volunteer')} />
<h1 className="py-5 text-center text-md-start ps-md-4">{t('volunteer')}</h1>

<SectionTitle count={contributors.length}>线上开源志愿者</SectionTitle>
<SectionTitle count={contributors.length}>
{t('online_volunteer')}
</SectionTitle>
<Row
as="ul"
className="list-unstyled justify-content-center text-center"
Expand Down
4 changes: 4 additions & 0 deletions translation/en-US.ts
Original file line number Diff line number Diff line change
Expand Up @@ -123,4 +123,8 @@ export default {
select_compatible_browser: 'select Compatible Browser',
select_features: 'select features',
search_feature: 'search Feature',

//volunteer page
volunteer: 'volunteer',
online_volunteer: 'online volunteer',
} as const;
4 changes: 4 additions & 0 deletions translation/zh-CN.ts
Original file line number Diff line number Diff line change
Expand Up @@ -120,4 +120,8 @@ export default {
select_compatible_browser: '选择兼容浏览器',
select_features: '选择特性',
search_feature: '搜索特性',

//volunteer page
volunteer: '志愿者',
online_volunteer: '线上志愿者',
} as const;
4 changes: 4 additions & 0 deletions translation/zh-TW.ts
Original file line number Diff line number Diff line change
Expand Up @@ -120,4 +120,8 @@ export default {
select_compatible_browser: '選擇相容瀏覽器',
select_features: '選擇特性',
search_feature: '搜尋特性',

//volunteer page
volunteer: '志願者',
online_volunteer: '線上志願者',
} as const;

1 comment on commit bf4a7e1

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Deploy preview for oss-toolbox ready!

✅ Preview
https://oss-toolbox-9v85iipt9-techquerys-projects.vercel.app

Built with commit bf4a7e1.
This pull request is being automatically deployed with vercel-action

Please sign in to comment.