Skip to content

Commit 651ef65

Browse files
committed
Clarify about edit URLs for alumni profiles
1 parent af47902 commit 651ef65

File tree

2 files changed

+40
-0
lines changed

2 files changed

+40
-0
lines changed

i18n/en/code.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,18 @@
211211
"message": "If you are an alumnus or an alumna of the Computerization club and would like us to update your listing or link to your homepage, please open an issue or pull request at the {link} repository, or drop us a WeChat message.",
212212
"description": "The description of the alumni page"
213213
},
214+
"alumni.description2": {
215+
"message": "Please take note that there are two places to make edits: {link1} and {link2}.",
216+
"description": "The second paragraph of description of the alumni page"
217+
},
218+
"alumni.description2.link1": {
219+
"message": "the Chinese version",
220+
"description": "The first link"
221+
},
222+
"alumni.description2.link2": {
223+
"message": "the English one",
224+
"description": "The second link"
225+
},
214226
"alumni.classOf": {
215227
"message": "Class of {classOf}",
216228
"description": "The section label for each class"

plugins/docusaurus-plugin-alumni/src/theme/AlumniPage/index.tsx

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,34 @@ export default function Alumni({ alumni }: Props): JSX.Element {
3131
}
3232
</Translate>
3333
</p>
34+
<p style={{ fontSize: '80%' }}>
35+
<Translate
36+
id="alumni.description2"
37+
values={{
38+
link1: (
39+
<a
40+
href="https://github.com/Computerization/Computerization-website/edit/master/alumni/alumni.yml"
41+
target="_blank"
42+
rel="noreferrer noopener">
43+
<Translate id="alumni.description2.link1">
44+
中文版
45+
</Translate>
46+
</a>
47+
),
48+
link2: (
49+
<a
50+
href="https://github.com/Computerization/Computerization-website/edit/master/i18n/en/docusaurus-plugin-alumni/alumni.yml"
51+
target="_blank"
52+
rel="noreferrer noopener">
53+
<Translate id="alumni.description2.link2">
54+
英文版
55+
</Translate>
56+
</a>
57+
),
58+
}}>
59+
{'注意,有两处文件需要修改:{link1}和{link2}。'}
60+
</Translate>
61+
</p>
3462
</div>
3563
<AlumniTimeline alumni={alumni} />
3664
</div>

0 commit comments

Comments
 (0)