-
Notifications
You must be signed in to change notification settings - Fork 6
/
translations.tsx
306 lines (299 loc) · 8.9 KB
/
translations.tsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
/*eslint sort-keys: "warn"*/
/*eslint "@typescript-eslint/camelcase": "off"*/
import { Link } from "gatsby";
import { TagID } from "../types/tags";
import * as React from "react";
const en = {
about_content: (
<>
<p>
Hi, I am <strong>Lesley Lai</strong>, a Computer Science and Applied Mathematics
undergraduate student at the{" "}
<a href="http://www.colorado.edu/"> University of Colorado at Boulder</a>.
</p>
<p>
I organize the{" "}
<a href="https://www.meetup.com/Graphics-Programming-Virtual-Meetup/">
Graphics Programming Virtual Meetup
</a>
.
</p>
<p>
My primary interests include{" "}
<a href="https://en.wikipedia.org/wiki/Computer_graphics">Computer Graphics</a>
{" and "}
<a href="https://en.wikipedia.org/wiki/Programming_language_theory">
Programming Language theories
</a>
. I love to code in various programming languages, though I am particularly fond of{" "}
<a href="https://isocpp.org/">C++</a>.
</p>
</>
),
ai: "AI",
all_n_posts: (n: number) => (
<>
All <Link to={`/en/archive`}>{n} posts</Link>
</>
),
algorithms: "Algorithms",
archive: "Archive",
archive_title: "Blog Archive",
blog: "Blog",
books: "Books",
build_using_gatsby: (
<>
This blog is built using <a href="https://www.gatsbyjs.org/">Gatsby</a>. The source is on the{" "}
<a href="https://github.com/LesleyLai/blog">Github repo</a>.
</>
),
c: "C",
cmake: "CMake",
code: "Coding",
code_at_github: (
<>
Code at <a href="https://github.com/LesleyLai">Github</a>
</>
),
compiler: "Compiler",
contact: "Contact",
contact_page_desc: "Contact me",
contact_page_text: (
<>
<p>
You can direct message me on <a href="https://twitter.com/LesleyLai6">Twitter</a>. I also{" "}
hang out a lot in{" "}
<a href="https://discord.gg/TsTDb4uYfR">Graphics Programming Virtual Meetup</a> and{" "}
<a href="https://www.includecpp.org/discord/">#include <C++></a> Discord servers. You can
direct message me on Discord if you are a member of either of those servers.
</p>
<p>
You can also send an email to{" "}
<a href="mailto:lesley@lesleylai.info?subject=Hello Lesley">lesley@lesleylai.info</a> or use
the following contact form:
</p>
</>
),
contact_form_message: "Message",
contact_form_message_placeholder: "Type your message here...",
contact_form_website_placeholder: "Your website (optional)",
contact_submitted_message: "Thank you for getting in touch! I will contact you back via Email.",
contact_validation_invalid_email: "Please enter a valid Email",
contact_validation_invalid_website: "Please enter a valid url (or leave this field blank)",
contact_validation_require_email: "Please enter your Email",
contact_validation_require_message: "Please enter your message",
contact_validation_require_name: "Please enter your name",
cpp: "C++",
create: "Create",
csharp: "C#",
cuda: "CUDA",
designpattern: "Design Patterns",
dod: "Data-oriented design",
elm: "Elm",
elsewhere: "Elsewhere",
email: "Email",
event: "Event",
functional: "Functional Programming",
game: "Game",
graphics: "Graphics",
graphql: "GraphQL",
home: "Home",
i18n: "i18n",
java: "Java",
javascript: "Javascript",
lang: "English",
lastModify: "Last Modify",
learning: "Learning",
library: "Library",
linkedin: (
<>
Profile on <a href="https://www.linkedin.com/in/lesley-lai/">LinkedIn</a>
</>
),
logic: "Logic",
math: "Mathematics",
myname: "Lesley Lai",
name: "Name",
n_posts: (n: number) => `${n} Posts`,
ocaml: "OCaml",
offtopic: "Off Topic",
oop: "OOP",
opengl: "OpenGL",
opinion: "Opinion",
page_not_found: "404 NOT FOUND",
page_not_found_text: "Sorry, the page you are looking for cannot be found.",
physics: "Physics",
pl: "Programming Languages",
projects: "Projects",
projects_page_description: "Check out my personal projects below",
python: "Python",
racket: "Racket",
rasterizer: "Rasterization",
react: "React",
return_to_home: (
<>
Return to the <Link to="/">Home Page</Link>
</>
),
rt: "Ray tracing",
rust: "Rust",
scheme: "Scheme",
show_projects_filtered: (count: number, tag: TagID) => (
<>
Show {count} projects filtered by <em>{en[tag]}</em>.
</>
),
showall: "Show all",
showall_projects: "Show all projects. Click tags to list them by topics.",
stuff_I_wrote_about: (tag: TagID) =>
tag === "opinion" ? "Stuff I Wrote to State My Opinion" : `Stuff I Wrote About ${en[tag]}`,
submit: "Submit",
tags: "Tags",
talks: "Talks",
talks_page_desc: "Here are the talks that I gave in various events.",
test: "Testing",
title: "Lesley Lai",
typescript: "Typescript",
web: "Web",
website: "Website",
x86: "x86",
};
export type Translations = typeof en;
const zh: Translations = {
about_content: (
<>
<p>
大家好,我叫赖思理,是
<a href="http://www.colorado.edu/">科罗拉多大学</a>
计算机科学以及应用数学的本科生。
</p>
<p>我喜欢计算机图形学、编程语言理论,以及C++。</p>
</>
),
ai: en.ai,
all_n_posts: (n: number) => (
<>
所有<Link to={`zh/archive`}>{n}篇博文</Link>
</>
),
algorithms: "算法",
archive: "博文目录",
archive_title: "博文目录",
blog: "博客",
books: "书籍",
build_using_gatsby: (
<>
本博客使用<a href="https://www.gatsbyjs.org/">Gatsby</a>
来搭建,源码在<a href="https://github.com/LesleyLai/blog">Github</a>
上。
</>
),
c: en.c,
cmake: en.cmake,
code: "编程",
code_at_github: (
<>
<a href="https://github.com/LesleyLai">Github</a>
</>
),
compiler: "编译器",
contact: "联系我",
contact_page_desc: "联系我",
contact_page_text: (
<>
<p>
您可以向<a href="mailto:lesley@lesleylai.info?subject=赖思理你好">lesley@lesleylai.info</a>
发送邮件, 或者使用以下的联系表单:
</p>
</>
),
contact_form_message: "留言",
contact_form_message_placeholder: "请在这里留下留言……",
contact_form_website_placeholder: "您的个人网站 (选填)",
contact_submitted_message: "感谢您联系我。我会通过电子邮件来回复您。",
contact_validation_invalid_email: "请输入一个合法的电子邮箱地址",
contact_validation_invalid_website: "请输入一个合法的网址 (或者将这一栏留空)",
contact_validation_require_email: "请输入您的电子邮箱地址",
contact_validation_require_message: "请输入您的留言",
contact_validation_require_name: "请输入您的姓名",
cpp: en.cpp,
create: "创建时间",
csharp: en.csharp,
cuda: en.cuda,
designpattern: "设计模式",
dod: "面向数据设计",
elm: en.elm,
elsewhere: "链接",
email: "电子邮箱",
event: "活动",
functional: "函数式编程",
game: "游戏",
graphics: "图形学",
graphql: en.graphql,
home: "主页",
i18n: "国际化",
java: en.java,
javascript: en.javascript,
lang: "中文",
lastModify: "最近修改时间",
learning: "学习",
library: "软件库",
linkedin: (
<>
<a href="https://www.linkedin.com/in/lesley-lai/?locale=zh_CN">领英</a>
</>
),
logic: "逻辑学",
math: "数学",
myname: "赖思理",
name: "姓名",
n_posts: (n: number) => `${n}篇博文`,
ocaml: en.ocaml,
offtopic: "非技术",
oop: "面向对象编程",
opengl: en.opengl,
opinion: "观点",
page_not_found: "找不到该页面",
page_not_found_text: "抱歉,您要访问的页面无法被找到。",
physics: "物理",
pl: "编程语言",
projects: "个人项目",
projects_page_description: "下列是我的一些个人项目",
python: en.python,
racket: en.racket,
rasterizer: "光栅化",
react: en.react,
return_to_home: (
<>
返回<Link to="/zh">主页</Link>
</>
),
rt: "光线追踪",
rust: en.rust,
scheme: en.scheme,
show_projects_filtered: (count: number, tag: TagID) => (
<>
显示{count}个关于{zh[tag]}的项目。
</>
),
showall: "显示所有",
showall_projects: "显示所有项目。您可以通过标签来限定显示包含指定标签的项目。",
stuff_I_wrote_about: (tag: TagID) =>
tag === "opinion" ? `阐述个人观点的博文` : `关于${zh[tag]}的博文`,
submit: "提交",
tags: "标签",
talks: "演讲",
talks_page_desc: "以下为我在不同场所的一些讲话:",
test: "软件测试",
title: "赖思理的博客",
typescript: en.typescript,
web: en.web,
website: "网站",
x86: en.x86,
};
export const translations = {
en: en,
zh: zh,
};
export type Language = keyof typeof translations;
export const languages = Object.keys(translations) as Language[];