-
Notifications
You must be signed in to change notification settings - Fork 130
/
Copy pathindex2.ts
79 lines (65 loc) · 3.71 KB
/
index2.ts
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
export const indexCopy = {
index_2_headline:
"TypeScript 是 <bold>带有类型语法的JavaScript</bold>",
index_2_byline: "TypeScript 扩展了 JavaScript ,为它添加了类型支持。",
index_2_summary:
"TypeScript是一种基于JavaScript的强类型编程语言,可以在任何规模上的项目为您提供更好的工具体验",
// Above the fold
index_2_cta_install: "现在尝试TypeScript",
index_2_cta_install_subtitle: "在线或通过npm",
index_2_cta_play: "在浏览器中尝试",
index_2_cta_play_subtitle: "通过演练场",
index_2_cta_download: "在你的电脑上",
index_2_cta_download_subtitle: "通过npm",
// Editor titles
index_2_tab_1: "编辑检查",
index_2_tab_2: "智能补全",
index_2_tab_3: "接口",
index_2_tab_4: "JSX",
index_2_tab_5: "ESNext",
// Quick pitch
index_2_what_is: "什么是TypeScript?",
index_2_what_is_js: "JavaScript以及更多",
index_2_what_is_js_copy: `TypeScript 向 JavaScript 添加额外的语法以提供<strong>与您的编辑器进行更紧密的集成</strong>。使得在编辑器中尽的早发现错误`,
index_2_trust: "值得信任的结果",
index_2_trust_copy: `TypeScript 代码转换成 JavaScript, 它 <strong>可以在 JavaScript 运行的任何地方运行</strong>: 在浏览器中、在 Node.js 或 Deno 上以及在您的应用程序中。`,
index_2_scale: "规模安全性",
index_2_scale_copy: `TypeScript 能够理解 JavaScript t并使用<strong>类型推断为您提供了很好的工具</strong>,而无需额外的代码。`,
// Links for getting started (this shows up twice)
index_2_started_title: "开始使用",
index_2_started_handbook: "手册",
index_2_started_handbook_blurb: "学习语言",
index_2_install: "安装 TypeScript",
index_2_playground_blurb: "在你的浏览器中尝试",
index_2_migrate_1: "JavaScript 文件",
index_2_migrate_2: "带有TS检查的 JavaScript ",
index_2_migrate_3: "带有JSDoc的 JavaScript",
index_2_migrate_4: "TypeScript 文件",
// Stories + OSS users`
index_2_migration_title: "推荐 TypeScript",
index_2_migration_oss: "开源的 TypeScript",
// Survey results
index_2_loved_by: "深受开发者喜爱",
index_2_loved_stack: `在<so>Stack Overflow 2020 开发人员调查</so>中被评为<strong>第二大最受欢迎的编程语言</strong>。`,
index_2_loved_state_js: `在 <js>2020 State of JS</js>调查者中,有<strong>78%</strong>的人使用过TypeScript,并且其中<strong>93% 的人说还会再次使用</strong>。`,
index_2_loved_state_js2: `TypeScript 因每年使用数量同比增长而获得了<strong>“最受采用技术”</strong>奖项`,
// Show me some code
index_2_describe: "描述您的数据",
index_2_describe_blurb1:
"在您的代码中<strong>描述对象和函数的形状结构</strong>。",
index_2_describe_blurb2:
"使您可以<strong>在编辑器中查看文档和问题</strong>。",
// Show how tsc 'works'
index_2_transform: "TypeScript 删除键能够编程JavaScript。",
index_2_transform_1: "<strong>TypeScript 文件</strong>",
index_2_transform_2: "<strong>移除类型</strong>",
index_2_transform_3: "<strong>JavaScript 文件</strong>",
// Adopt TS gradually animations
index_2_adopt: "逐步采用TypeScript",
index_2_adopt_blurb_1:
"逐步将类型应用到您的 JavaScript 项目,, <strong>每一步都提高了编辑器的支持</strong> 并改进了您的代码库。",
index_2_adopt_blurb_2:
"让我们以这段不正确的JavaScript代码为例, 看看 <strong>TypeScript如何在您的编辑器中捕获错误。</strong>.",
index_2_adopt_info_1:
"JavaScript文件中没有编辑器警告。<br/><br/>在运行时就会崩溃。",
}