Skip to content
This repository was archived by the owner on May 18, 2021. It is now read-only.

Commit 771d712

Browse files
committed
translate FAQ.
Signed-off-by: Bo-Yi Wu <[email protected]>
1 parent 1ab7d36 commit 771d712

File tree

3 files changed

+22
-22
lines changed

3 files changed

+22
-22
lines changed

es6.html

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
<div class="content">
1919
<a href="/" class="logo">io.js</a>
2020
<div class="spacer"></div>
21-
<a href="faq.html">FAQ</a>
21+
<a href="faq.html">常見問題</a>
2222
<a href="es6.html">ES6</a>
2323
<a href="https://iojs.org/api/">API 文件</a>
2424
</div>
@@ -30,21 +30,21 @@ <h1>io.js 的 ES6</h1>
3030

3131
<div class="description">
3232

33-
<p>io.js 建構於目前版本的 <a href="https://code.google.com/p/v8/">V8</a> 之上,將會持續更新並引入最新的引擎版本,以確保最新的<a href="http://www.ecma-international.org/publications/standards/Ecma-662.htm">JavaScript ECMA-262 specification</a> 特性能以最短的時間內被 io.js 的開發人員所使用,此外能藉此持續改善效能及穩定度。
34-
<p>目前釋出的 io.js v1.1.0 版本已採用 V8 4.1.0.14,其支援的 ES6 特性遠超過 joyent/[email protected] 所使用的 V8 3.26.23 。</p>
33+
<p>io.js 建構於目前版本的 <a href="https://code.google.com/p/v8/">V8</a> 之上,將會持續更新並引入最新的引擎版本,以確保最新的<a href="http://www.ecma-international.org/publications/standards/Ecma-662.htm">JavaScript ECMA-262 specification</a> 特性能以最短的時間內被 io.js 的開發人員所使用,此外能藉此持續改善效能及穩定度。
34+
<p>目前釋出的 io.js v1.1.0 版本已採用 V8 4.1.0.14,其支援的 ES6 特性遠超過 joyent/[email protected] 所使用的 V8 3.26.23 。</p>
3535
</div>
3636

3737
<div class="faq-item">
3838

3939
<h2 class="faq-title">不再需要 --harmony 參數</h2>
4040
<div class="faq-body">
41-
<p>在 joyent/[email protected] (V8 3.26) 上,參數 <code>--harmony</code> 將會啟用所有 <strong>完成(completed)</strong><strong>階段性(staged)</strong><strong>程序中(in progress)</strong> 狀態之下的 ES6 特性支援,甚至是非標準(nonstandard/non-harmonious)的 <code>typeof</code> 支援(此特性在使用參數 <code>--harmony-typeof</code> 時會被隱藏)。這意味著一些臭蟲或是很有問題的特性像是 <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Proxy">proxies</a> ,可能將會很容易的被開發人員所誤用在專案中,就如同沒有問題的特性 <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/function*">generators</a> 一般。因此,往往最好的做法就是代入一些參數,只啟動特定的 harmony 特性支援(如:<code>--harmony-generators</code>),或是直接啟用所有的特性支援,然後在開發時限定只使用特定某些穩定的功能。</p>
42-
<p>不過在使用 [email protected] (V8 4.1+) 之後,前面所提到的所有麻煩將不再是問題。現在所有的 harmony 特性都將會被分類到不同的群組中,分別為 <strong>shipping</strong><strong>staged</strong><strong>in progress</strong></p>
41+
<p>在 joyent/[email protected] (V8 3.26) 上,參數 <code>--harmony</code> 將會啟用所有 <strong>完成(completed)</strong><strong>階段性(staged)</strong><strong>程序中(in progress)</strong> 狀態之下的 ES6 特性支援,甚至是非標準(nonstandard/non-harmonious)的 <code>typeof</code> 支援(此特性在使用參數 <code>--harmony-typeof</code> 時會被隱藏)。這意味著一些臭蟲或是很有問題的特性像是 <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Proxy">proxies</a> ,可能將會很容易的被開發人員所誤用在專案中,就如同沒有問題的特性 <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/function*">generators</a> 一般。因此,往往最好的做法就是代入一些參數,只啟動特定的 harmony 特性支援(如:<code>--harmony-generators</code>),或是直接啟用所有的特性支援,然後在開發時限定只使用特定某些穩定的功能。</p>
42+
<p>不過在使用 [email protected] (V8 4.1+) 之後,前面所提到的所有麻煩將不再是問題。現在所有的 harmony 特性都將會被分類到不同的群組中,分別為 <strong>shipping</strong><strong>staged</strong><strong>in progress</strong></p>
4343

4444
<ul class="task-list">
45-
<li>所有屬於 <strong>shipping</strong> 群組的特性,都是被 V8 認定為穩定(stable)的功能,如:<a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/function*">generators</a><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/template_strings">templates</a><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/New_in_JavaScript/ECMAScript_6_support_in_Mozilla#Additions_to_the_String_object">new string methods</a> 。值得一提的是,現在屬於此群組的更多特性都將被 <strong>預設啟用於 io.js</strong> ,且不需要在執行時添加使用任何參數。</li>
46-
<li>那些被歸類為 <strong>staged</strong> 群組的特性,都是功能上幾乎已經完整支援(almost-completed)的特性,但缺少測試或尚未支援到最新的 ES6 規格,所以尚未被 V8 的開發團隊視為穩定(stable)。這些特性的支援可能相當於 V8 3.26 時的 <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/function*">generators</a> ,如果要使用,開發人員必須要自行承擔其風險,而且必須要在執行時使用 <code>--es_staging</code> 參數(同等於 --harmony)。</li>
47-
<li>最後,所有處於 <strong>in progress</strong> 群組的特性,可以以特定的參數啟用支援(如:<code>--harmony_arrow_functions</code>,儘管這些特性不被推薦使用。</li>
45+
<li>所有屬於 <strong>shipping</strong> 群組的特性,都是被 V8 認定為穩定(stable)的功能,如:<a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/function*">generators</a><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/template_strings">templates</a><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/New_in_JavaScript/ECMAScript_6_support_in_Mozilla#Additions_to_the_String_object">new string methods</a> 。值得一提的是,現在屬於此群組的更多特性都將被 <strong>預設啟用於 io.js</strong> ,且不需要在執行時添加使用任何參數。</li>
46+
<li>那些被歸類為 <strong>staged</strong> 群組的特性,都是功能上幾乎已經完整支援(almost-completed)的特性,但缺少測試或尚未支援到最新的 ES6 規格,所以尚未被 V8 的開發團隊視為穩定(stable)。這些特性的支援可能相當於 V8 3.26 時的 <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/function*">generators</a> ,如果要使用,開發人員必須要自行承擔其風險,而且必須要在執行時使用 <code>--es_staging</code> 參數(同等於 --harmony)。</li>
47+
<li>最後,所有處於 <strong>in progress</strong> 群組的特性,可以以特定的參數啟用支援(如:<code>--harmony_arrow_functions</code>,儘管這些特性不被推薦使用。</li>
4848
</ul>
4949
</div>
5050

@@ -79,7 +79,7 @@ <h2 class="faq-title">
7979
<li><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/template_strings">Template strings</a></li>
8080
</ul>
8181

82-
<p>你可以參閱更多的細節,以及比較其他的 JavaScript 引擎,在 <a href="https://kangax.github.io/compat-table/es6/">compat-table</a> 專案網頁。</p>
82+
<p>你可以參閱更多的細節,以及比較其他的 JavaScript 引擎,在 <a href="https://kangax.github.io/compat-table/es6/">compat-table</a> 專案網頁。</p>
8383
</div>
8484
</div>
8585

@@ -102,7 +102,7 @@ <h2 class="faq-title">
102102
我過去已經大量使用了 --harmony 參數,我該移除它嗎?
103103
</h2>
104104
<div class="faq-body">
105-
<p>目前 <code>--harmony</code> 在 io.js 的行為,只會啟用 <strong>staged</strong> 的特性,與 <code>--es_staging</code> 參數相同。如前面所提及,這些都是些尚未被視為穩定的特性,如果你想要更安全的使用 io.js ,尤其特別是在已上線的服務或產品上使用,請考慮移除並停止使用此參數,直到這些特性被 V8 所預設支援,接著被 io.js 所支援。假設你仍然持續使用這個參數,你可能要有因為升級 io.js 而導致程式壞掉的心理準備,尤其是如果 V8 為了更接近標準而修改語法,就會出現這樣的問題。</p>
105+
<p>目前 <code>--harmony</code> 在 io.js 的行為,只會啟用 <strong>staged</strong> 的特性,與 <code>--es_staging</code> 參數相同。如前面所提及,這些都是些尚未被視為穩定的特性,如果你想要更安全的使用 io.js ,尤其特別是在已上線的服務或產品上使用,請考慮移除並停止使用此參數,直到這些特性被 V8 所預設支援,接著被 io.js 所支援。假設你仍然持續使用這個參數,你可能要有因為升級 io.js 而導致程式壞掉的心理準備,尤其是如果 V8 為了更接近標準而修改語法,就會出現這樣的問題。</p>
106106
</div>
107107
</div>
108108

@@ -112,7 +112,7 @@ <h2 class="faq-title">
112112
我如何得知 io.js 正在使用的 V8 版本?
113113
</h2>
114114
<div class="faq-body">
115-
<p>io.js 提供了一個非常簡單的方法去取得所有的依賴函式庫及版本號,只要透過存取 <code>process</code> 全域物件即可。所以,如果想知道 V8 引擎的版本資訊,可以直接在終端機(Terminal)上輸入:</p>
115+
<p>io.js 提供了一個非常簡單的方法去取得所有的依賴函式庫及版本號,只要透過存取 <code>process</code> 全域物件即可。所以,如果想知道 V8 引擎的版本資訊,可以直接在終端機(Terminal)上輸入:</p>
116116
<div class="highlight highlight-sh"><pre>iojs -p process.versions.v8</span></pre></div>
117117
</div>
118118
</div>

faq.html

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
<head>
55
<meta charset="utf-8">
6-
<title>io.js - FAQ</title>
6+
<title>io.js - 常見問題</title>
77
<meta http-equiv="X-UA-Compatible" content="IE=edge">
88
<meta name="viewport" content="width=device-width,initial-scale=1">
99
<meta name="description" content="iojs">
@@ -18,7 +18,7 @@
1818
<div class="content">
1919
<a href="/" class="logo">io.js</a>
2020
<div class="spacer"></div>
21-
<a href="faq.html">FAQ</a>
21+
<a href="faq.html">常見問題</a>
2222
<a href="es6.html">ES6</a>
2323
<a href="https://iojs.org/api/">API 文件</a>
2424
</div>
@@ -30,22 +30,22 @@ <h1 class="heading">常見問題(FAQ)</h1>
3030

3131
<h2 id="what-is-io-js">什麼是 io.js ?</h2>
3232
<p><a href="https://github.com/iojs/io.js">io.js</a> 是一個以 <a href="http://code.google.com/p/v8/">Chrome's V8 runtime</a> 為基礎的 JavaScript 應用程式開發平台,這個專案一開始是從 <a href="https://nodejs.org/">Joyent Node.js™</a> 分之出來的一個版本,完全與 <a href="https://www.npmjs.org/">npm</a> 相容。</p>
33-
<p>為什麼這麼做呢? io.js 目標將提供更快速且可預期的釋出週期,目前已經整合了最新的語言特性、 API 以及 V8 的效能改進,此外也更新了 libuv 與其他的基礎函式庫。</p>
34-
<p>這個專案目標將以『<a href="https://github.com/iojs/io.js/blob/v1.x/GOVERNANCE.md#readme">開放管理模式(open governance model)</a>』持續進行維護與開發,不同於被特定公司所主導發展的營運方式。</p>
33+
<p>為什麼這麼做呢? io.js 目標將提供更快速且可預期的釋出週期,目前已經整合了最新的語言特性、 API 以及 V8 的效能改進,此外也更新了 libuv 與其他的基礎函式庫。</p>
34+
<p>這個專案目標將以『<a href="https://github.com/iojs/io.js/blob/v1.x/GOVERNANCE.md#readme">開放管理模式(open governance model)</a>』持續進行維護與開發,不同於被特定公司所主導發展的營運方式。</p>
3535

3636
<h2 id="version">版本 1.0.x?</h2>
37-
<p>io.js 的改進與版本更新將遵守<a href="http://semver.org/">語意化版本控制規範(Semver)</a>,我們認為目前專案的發展狀況,完全有足夠的理由提升主版本號,使專案從 Node.js™ 0.10 到 io.js 1.0.0 版本。</p>
37+
<p>io.js 的改進與版本更新將遵守<a href="http://semver.org/">語意化版本控制規範(Semver)</a>,我們認為目前專案的發展狀況,完全有足夠的理由提升主版本號,使專案從 Node.js™ 0.10 到 io.js 1.0.0 版本。</p>
3838
<p>我們的 v1.x 版本的 <a href="https://github.com/iojs/io.js/blob/v1.x/CHANGELOG.md">更新日誌</a> 將提供 <a href="https://github.com/iojs/io.js/blob/v1.x/CHANGELOG.md#summary-of-changes-from-nodejs-v01035-to-iojs-v100">從 Node.js v0.10.35 到 io.js v1.0.x 版本的變更說明</a></p>
3939

4040
<h2>
41-
我如何能貢獻?
41+
我如何能貢獻?
4242
</h2>
4343
<p>
44-
任何人都可以給予這個專案幫助,io.js 遵守 <a href="https://github.com/iojs/io.js/blob/v1.x/CONTRIBUTING.md#code-of-conduct">行為準則(code of conduct)</a> 且接受不違反 <a href="https://github.com/iojs/io.js/blob/v1.x/GOVERNANCE.md#readme">開放管理模式(open governance model)</a> 下的貢獻、釋出及貢獻關係。
44+
任何人都可以給予這個專案幫助,io.js 遵守 <a href="https://github.com/iojs/io.js/blob/v1.x/CONTRIBUTING.md#code-of-conduct">行為準則(code of conduct)</a> 且接受不違反 <a href="https://github.com/iojs/io.js/blob/v1.x/GOVERNANCE.md#readme">開放管理模式(open governance model)</a> 下的貢獻、釋出及貢獻關係。
4545
</p>
4646
<p>
4747
一開始,可以在 <a href="https://github.com/iojs/io.js/issues"> discussions on GitHub</a> 進行公開討論,我們非常樂意聽到您的意見回饋。
48-
加入並參與各種討論是一個找到能貢獻之處的好方法,如果你找到一個自己可以幫忙的事,請直接 <a href="https://github.com/iojs/io.js/blob/v1.x/CONTRIBUTING.md#code-contributions">建立一個 pull request</a>
48+
加入並參與各種討論是一個找到能貢獻之處的好方法,如果你找到一個自己可以幫忙的事,請直接 <a href="https://github.com/iojs/io.js/blob/v1.x/CONTRIBUTING.md#code-contributions">建立一個 pull request</a>
4949
此外,使用 <a href="http://nodebug.me/">Nodebug.me</a> 是一個協助社群指派分配任務的好方法。
5050
</p>
5151

@@ -61,7 +61,7 @@ <h2>
6161
什麼是開放原始碼管理?
6262
</h2>
6363
<p>
64-
開源管理方式引入開放原始碼的哲學以及開放內容運動,讓各個有興趣的團體對最終產品做出貢獻。其決策程序對於一般公民開放,就能夠以眾人的智慧來改善決策、深化參與。 <a href="https://en.wikipedia.org/wiki/Open-source_governance" target="_blank">[參考連結]</a>
64+
開源管理方式引入開放原始碼的哲學以及開放內容運動,讓各個有興趣的團體對最終產品做出貢獻。其決策程序對於一般公民開放,就能夠以眾人的智慧來改善決策、深化參與。 <a href="https://en.wikipedia.org/wiki/Open-source_governance" target="_blank">[參考連結]</a>
6565
</p>
6666

6767
</div>

index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
<div class="content">
2525
<a href="/" class="logo">io.js</a>
2626
<div class="spacer"></div>
27-
<a href="faq.html">FAQ</a>
27+
<a href="faq.html">常見問題</a>
2828
<a href="es6.html">ES6</a>
2929
<a href="https://iojs.org/api/">API 文件</a>
3030
</div>
@@ -51,7 +51,7 @@ <h1>JavaScript I/O</h1>
5151
</span>
5252
<br>
5353
<span class="release-downloads">
54-
下載各種平台版本
54+
下載各種平台版本
5555
<a href="https://iojs.org/dist/v1.1.0/iojs-v1.1.0-linux-x64.tar.xz">Linux</a>,
5656
<a href="https://iojs.org/dist/v1.1.0/iojs-v1.1.0-x86.msi">Win32</a>, <a href="https://iojs.org/dist/v1.1.0/iojs-v1.1.0-x64.msi">Win64</a>,
5757
or

0 commit comments

Comments
 (0)