Skip to content

Commit 919a6b0

Browse files
authored
Merge pull request #93 from Junweif2/develop
Translation: Getting Started & Developers & Technology & Learn [zh]
2 parents a36b43a + 3731d41 commit 919a6b0

File tree

83 files changed

+5632
-3582
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

83 files changed

+5632
-3582
lines changed

astro-i18next.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22
export default {
33
defaultLocale: "en",
44
showDefaultLocale: true,
5-
locales: ["en", "es"],
5+
locales: ["en", "es", "zh"],
66
load: ["server", "client"],
77
}

package-lock.json

Lines changed: 696 additions & 3540 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
},
5555
"devDependencies": {
5656
"@astrojs/mdx": "^0.19.7",
57-
"@astrojs/preact": "^1.2.0",
57+
"@astrojs/preact": "^3.0.1",
5858
"@astrojs/react": "^2.2.0",
5959
"@astrojs/sitemap": "^1.0.0",
6060
"@nomicfoundation/hardhat-toolbox": "^2.0.0",

public/locales/zh/translation.json

Lines changed: 115 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,15 @@
11
{
2+
"rightSidebar": {
3+
"onThisPage": "本页",
4+
"more": "更多",
5+
"editThisPage": "编辑本页",
6+
"joinOurCommunity": "加入我们的社区",
7+
"feedback": "反馈"
8+
},
9+
"ui": {
10+
"whatsNext": "接下来是什么",
11+
"readMore": "阅读更多"
12+
},
213
"landing": {
314
"test": "test",
415
"search": {
@@ -38,45 +49,136 @@
3849
},
3950
"NewsletterCTA": {
4051
"title": "随时了解最新的 Scroll 新闻",
41-
"placeholder": "输入你的电子邮箱地址",
42-
"buttonText": "报名"
52+
"text": "路线图更新,虚拟和现场活动,生态机会等等",
53+
"placeholder": "在此输入您的电子邮件地址",
54+
"thankYouForSubscribing": "感谢您的订阅!",
55+
"correctEmail": "请使用正确的电子邮件地址。",
56+
"pleaseInsertEmail": "请输入您的电子邮件。"
4357
}
4458
},
4559
"sidebar": {
4660
"gettingStarted": {
4761
"gettingStarted": "入门",
48-
"overview": "概述",
62+
"overview": "概览",
63+
"scrollSepoliaTestnet": "Scroll Sepolia 测试网",
4964
"userGuide": "用户指南",
5065
"setup": "设置",
5166
"faucet": "水龙头",
52-
"bridge": "桥接器",
67+
"bridge": "跨链桥",
5368
"transferTokens": "转移代币",
5469
"commonErrors": "常见错误",
55-
"rollupExplorer": "Rollup浏览器",
70+
"rollupExplorer": "Rollup 浏览器",
71+
"scrollSepoliaBlockExplorer": "Scroll Sepolia 浏览器",
72+
"scrollMainnet": "Scroll 主网",
73+
"scrollscan": "Scrollscan 区块浏览器",
74+
"sepoliaBlockExplorer": "Sepolia 浏览器",
5675
"community": "社区",
76+
"discord": "Discord",
5777
"communityForum": "社区论坛"
5878
},
5979
"developers": {
6080
"developers": "开发者",
61-
"buildingOnScroll": "构建Scroll应用",
81+
"buildingOnScroll": "在 Scroll 上开发",
6282
"developerQuickstart": "开发者快速入门",
63-
"integrations": "集成",
83+
"verifyingSmartContracts": "验证智能合约",
84+
"scrollContracts": "Scroll 合约",
85+
"ethereumAndScrollDifferences": "以太坊 和 Scroll 的区别",
86+
"l1AndL2Bridging": "L1 和 L2 跨链",
87+
"ethAndErc20TokenBridge": "ETH 和 ERC20 代币跨链桥",
88+
"erc721NftBridge": "ERC721 NFT 跨链桥",
89+
"erc1155TokenBridge": "ERC1155 代币跨链桥",
90+
"theScrollMessenger": "The Scroll Messenger",
91+
"transactionFeesOnScroll": "Scroll 上的交易手续费",
92+
"l2Fee": "L2 Fee",
93+
"l1Fee": "L1 Fee",
94+
"gasOracle": "Gas 预言机",
95+
"future": "未来",
6496
"guides": "指南",
6597
"contractDeploymentTutorial": "合约部署教程",
98+
"crossChainInteraction": "Scroll Messenger 跨链交互",
99+
"bridgingERC20TokenThroughCustomGateway": "通过自定义网关跨链 ERC20",
100+
"bridgingERC721NftThroughCustomGateway": "通过自定义网关跨链 ERC721 NFT",
101+
"bridgingERC1155ThroughCustomGateway": "通过自定义网关跨链 ERC1155",
102+
"estimatingGasAndTxFees": "预估 Gas 费和交易手续费",
66103
"resources": "资源",
67-
"rollupExplorer": "Rollup浏览器"
104+
"mainnetResources": "主网资源",
105+
"sepoliaResources": "Sepolia资源",
106+
"scrollBlockExplorer": "Scrollscan 区块浏览器",
107+
"rollupExplorer": "Rollup 浏览器",
108+
"scrollSepoliaBlockExplorer": "Scroll Sepolia 浏览器",
109+
"sepoliaRollupExplorer": "Rollup 浏览器",
110+
"sepoliaBlockExplorer": "Sepolia 浏览器"
68111
},
69112
"technology": {
70-
"overview": "概述",
71-
"scrollArchitecture": "Scroll架构"
113+
"introduction": "介绍",
114+
"principles": "原则",
115+
"scrollArchitecture": "Scroll 架构",
116+
"overview": "概览",
117+
118+
"scrollChain": "Scroll 链",
119+
"accountsAndState": "账户和状态",
120+
"blocks": "区块",
121+
"transactions": "交易",
122+
"rollupProcess": "Rollup 流程",
123+
"evmDifferencesFromEthereum": "和以太坊 EVM 的区别",
124+
125+
"bridge": "跨链桥",
126+
"crossDomainMessaging": "跨链消息传递",
127+
"depositGateways": "存款网关",
128+
"withdrawGateways": "提款网关",
129+
130+
"sequencer": "排序器",
131+
"executionNode": "执行节点",
132+
"rollupNode": "Rollup 节点",
133+
"zkTrie": "zkTrie树",
134+
135+
"zkevm": "zkEVM",
136+
"introToZkevm": "zkEVM 介绍",
137+
"zkevmOverview": "zkEVM 概览",
138+
"bridgeOverview": "跨链桥 概览",
139+
"prover": "prover",
140+
"proofGeneration": "证明生成",
141+
"cpuProverRepo": "CPU prover 代码仓库",
142+
143+
"security": "安全",
144+
"auditsAndBugBounty": "审计和漏洞赏金",
145+
"l2BeatAssessment": "L2Beat 评估"
72146
},
73147
"learn": {
74-
"zkEVMOverview": "zkEVM概述"
148+
"ethereumAndProtocols": "以太坊与协议",
149+
"theScalabilityProblem": "扩容问题",
150+
"introToRollups": "Rollups 介绍",
151+
"zeroKnowledge": "零知识证明",
152+
"introToZeroKnowledge": "零知识证明介绍",
153+
"polynomialCommitmentSchemes": "多项式承诺方案",
154+
"kzgCommitmentScheme": "KZG 承诺方案",
155+
"additionalResources": "其他资源"
156+
}
157+
},
158+
"footer": {
159+
"aboutScroll": {
160+
"title": "关于 Scroll",
161+
"bugBounty": "漏洞赏金",
162+
"joinUs": "加入我们",
163+
"healthStatus": "健康状况",
164+
"privacyPolicy": "隐私政策",
165+
"termsAndConditions": "条款和条件"
166+
},
167+
"resources": {
168+
"title": "资源",
169+
"scrollDocsURL": "https://docs.scroll.io/",
170+
"blog": "博客",
171+
"documentation": "文档",
172+
"brandKit": "品牌工具包"
75173
},
76-
"infrastructure": {
77-
"introduction": "介绍"
174+
"followUs": {
175+
"title": "关注我们"
78176
}
79177
},
178+
"pageNotFound": {
179+
"title": "页面未找到",
180+
"text": "很抱歉,我们找不到您正在寻找的页面"
181+
},
80182
"notTranslated": {
81183
"notTranslated": "此页面尚未翻译。"
82184
}
Lines changed: 164 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,164 @@
1+
---
2+
section: gettingStarted
3+
title: "Article Components"
4+
date: Last Modified
5+
lang: "en"
6+
permalink: "/article-components"
7+
excerpt: "Learn more about the topics of Ethereum Scalability and Zero Knowledge Cryptography"
8+
whatsnext: { "Next Up Page 1": "/", "Second Next Up Page": "/" }
9+
---
10+
11+
import ClickToZoom from "../../../components/ClickToZoom.astro"
12+
import priceAggr from "../../../assets/images/contract-devs/price-aggr.png"
13+
import ToggleElement from "../../../components/ToggleElement.astro"
14+
import Aside from "../../../components/Aside.astro"
15+
import MarkmapView from "../../../components/MarkmapView/index.astro"
16+
17+
This is body text right under the article title. It typically is just paragraph text that's pretty straightforward. Then there's **bold text**, and _italic text_, and **_bold-italic text_**, and `inline-code` and **`bold inline code`** and even _`italic inline code`_ and **_`bold italic inline code`_**. And of course don't forget [links](#), and [**bold links**](#), and [_italic links_](#), and [**_bold-italic links_**](#).
18+
19+
## Markdown Components (also an H2 Heading)
20+
21+
- We've also got unordered lists!
22+
- They can have multiple items.
23+
- And some sub-items.
24+
- That get into details
25+
- That's an unordered list.
26+
27+
What else do we have?
28+
29+
1. Of course there's also ordered lists.
30+
1. They look like this.
31+
1. They're pretty useful.
32+
33+
### H3 Heading
34+
35+
#### H4 Heading
36+
37+
##### H5 Heading
38+
39+
Let's see a horizontal rule.
40+
41+
---
42+
43+
We define the Square-Fibonacci sequence[^1], a variation of the Fibonacci sequence:
44+
45+
### Math
46+
47+
- Let $f_0 = 1, f_1 = 1$
48+
- For $$i \geq 2$$, define $f_{i} := (f_{i-2})^2 + (f_{i-1})^2 \mod q$
49+
- Where $q$ is a large prime integer. We use this modulus to bound the size of each element, so that it can be represented by some predetermined number of bits.
50+
51+
### Tables
52+
53+
| Syntax | Description |
54+
| --------- | ----------- |
55+
| Header | Title |
56+
| Paragraph | Text |
57+
58+
### Blockquotes
59+
60+
> #### Success
61+
>
62+
> Vitae reprehenderit at aliquid error voluptates eum dignissimos.
63+
64+
### Footnotes
65+
66+
Here's a simple footnote,[^1] and here's a longer one.[^bignote]
67+
68+
[^1]: This is the first footnote.
69+
[^bignote]: Here's one with multiple paragraphs and code.
70+
71+
### Callout that worked in MD, but might not in MDX?
72+
73+
:::tip[Did you know?]
74+
Astro helps you build faster websites with “Islands Architecture”.
75+
:::
76+
77+
## Imported MDX Components
78+
79+
### Callouts
80+
81+
<Aside type="note" title="note">
82+
{" "}
83+
Astro helps you build faster websites with “Islands Architecture”.{" "}
84+
</Aside>
85+
<Aside type="caution" title="caution">
86+
{" "}
87+
Astro helps you build faster websites with “Islands Architecture”.{" "}
88+
</Aside>
89+
<Aside type="danger" title="danger">
90+
{" "}
91+
Astro helps you build faster websites with “Islands Architecture”.{" "}
92+
</Aside>
93+
94+
<Aside type="tip" title="tip">
95+
For .md file you can use this code.
96+
</Aside>
97+
98+
```
99+
:::tip[Did you know?]
100+
Astro helps you build faster websites with “Islands Architecture”.
101+
:::
102+
```
103+
104+
### Images zoom
105+
106+
<ClickToZoom src={priceAggr} />
107+
108+
### Toggle
109+
110+
<ToggleElement anchor="Why build on Scroll?">
111+
<div slot="title">Why build on Scroll?</div>
112+
<p>
113+
Scroll enables creators to turn their content into interactive, explorable experiences. With Scroll, you can create
114+
rich, interactive stories that engage readers, provide a better user experience, and help you stand out from the
115+
crowd.
116+
</p>
117+
</ToggleElement>
118+
<ToggleElement anchor="How does Scroll work?">
119+
<div slot="title">How does Scroll work?</div>
120+
<p>
121+
Scroll combines powerful technologies like WebGL and WebRTC to create immersive, interactive experiences. The
122+
platform allows you to build 3D environments, add interactivity, and embed content from popular web services to
123+
create a unique, engaging experience for your audience.
124+
</p>
125+
</ToggleElement>
126+
<ToggleElement anchor="What can I build with Scroll?">
127+
<div slot="title">What can I build with Scroll?</div>
128+
<p>
129+
You can build a wide range of experiences with Scroll, from interactive articles to immersive product demos and
130+
virtual tours. Scroll is designed to help you create engaging, interactive experiences that elevate your content and
131+
captivate your audience.
132+
</p>
133+
</ToggleElement>
134+
135+
### Markmap
136+
137+
#### Referenced File
138+
139+
<MarkmapView src="/samples/markmap.md" />
140+
141+
<MarkmapView>
142+
[](#markmap)markmap
143+
===================
144+
145+
- beautiful2
146+
- useful
147+
- easy
148+
- interactive
149+
150+
</MarkmapView>
151+
152+
### Mermaid
153+
154+
```mermaid
155+
stateDiagram
156+
Step --> StepState
157+
Step --> CellManager
158+
ConstraintBuilder --> CellManager
159+
CellManager --> ProofSystem(Halo2)
160+
StepState --> ExecutionState
161+
StepState --> step_context
162+
ExecutionState --> ConstraintBuilder
163+
step_context --> ConstraintBuilder
164+
```
51.4 KB
Loading
68.7 KB
Loading
15.8 KB
Loading
23 KB
Loading
83.5 KB
Loading

0 commit comments

Comments
 (0)