mirror of
https://github.com/node-red/node-red.git
synced 2025-03-01 10:36:34 +00:00
complete traditional chinese translation
This commit is contained in:
43
packages/node_modules/@node-red/nodes/locales/zh-TW/parsers/70-CSV.html
vendored
Normal file
43
packages/node_modules/@node-red/nodes/locales/zh-TW/parsers/70-CSV.html
vendored
Normal file
@@ -0,0 +1,43 @@
|
||||
<!--
|
||||
Copyright JS Foundation and other contributors, http://js.foundation
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
-->
|
||||
|
||||
<script type="text/x-red" data-help-name="csv">
|
||||
<p>在CSV格式的字符串及其JavaScript對象表示形式之間進行相互轉換。</p>
|
||||
<h3>輸入</h3>
|
||||
<dl class="message-properties">
|
||||
<dt>payload<span class="property-type">object | 數組 | 字符串</span></dt>
|
||||
<dd>JavaScript對象,數組或CSV字符串。</dd>
|
||||
</dl>
|
||||
<h3>輸出</h3>
|
||||
<dl class="message-properties">
|
||||
<dt>payload<span class="property-type">object | 數組 | 字符串</span></dt>
|
||||
<dd>
|
||||
<ul>
|
||||
<li>如果輸入是字符串,它將嘗試將其解析爲CSV,並爲每行創建鍵/值對的JavaScript對象。然後該節點將爲每行發送一條消息,或者發送一條包含對象數組的消息。</li>
|
||||
<li>如果輸入是JavaScript對象,它將嘗試構建CSV字符串。</li>
|
||||
<li>如果輸入是簡單值的數組,則將構建單行CSV字符串。</li>
|
||||
<li>如果輸入是數組數組或對象數組,則會創建多行CSV字符串。</li>
|
||||
</ul>
|
||||
</dd>
|
||||
</dl>
|
||||
<h3>詳細</h3>
|
||||
<p>列模板可以包含列名稱的有序列表。將CSV轉換爲對象時,列名將用作屬性名稱。或者也可以從CSV的第一行中獲取列名稱。</p>
|
||||
<p>轉換爲CSV時,列模板用于標識從對象中提取的屬性以及提取的順序。</p>
|
||||
<p>如果輸入是數組,則列模板僅用于有選擇地生成一行列標題。</p>
|
||||
<p>只要正確設置<code>parts</code>屬性,該節點就可以接受多部分輸入。</p>
|
||||
<p>如果輸出多個消息,則將設置其<code>parts</code>屬性並形成完整的消息序列。</p>
|
||||
<p><b>注意:</b>列模板必須用逗號分隔,即使數據中已有了其他分隔符。</p>
|
||||
</script>
|
33
packages/node_modules/@node-red/nodes/locales/zh-TW/parsers/70-HTML.html
vendored
Normal file
33
packages/node_modules/@node-red/nodes/locales/zh-TW/parsers/70-HTML.html
vendored
Normal file
@@ -0,0 +1,33 @@
|
||||
<!--
|
||||
Copyright JS Foundation and other contributors, http://js.foundation
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
-->
|
||||
|
||||
<script type="text/x-red" data-help-name="html">
|
||||
<p>使用CSS選擇器從<code>msg.payload</code>中保存的html文檔中提取元素。</p>
|
||||
<h3>輸入</h3>
|
||||
<dl class="message-properties">
|
||||
<dt>payload <span class="property-type">字符串</span></dt>
|
||||
<dd>從中提取元素的html字符串。</dd>
|
||||
<dt class="optional">select <span class="property-type">字符串</span></dt>
|
||||
<dd>如果未在編輯面板中配置,則可以將選擇器設置爲msg的屬性。</dd>
|
||||
</dl>
|
||||
<h3>Output</h3>
|
||||
<dl class="message-properties">
|
||||
<dt>payload <span class="property-type">數組 | 字符串</span></dt>
|
||||
<dd>結果可以是有效載荷中包含匹配元素的數組的單個消息;也可以是多條消息,每條消息都包含匹配元素。發送多條消息時,需要爲消息設置<code>parts</code>。</dd>
|
||||
</dl>
|
||||
<h3>詳細</h3>
|
||||
<p>該節點支持CSS和jQuery選擇器的組合。查看<a href="https://github.com/fb55/CSSselect#user-content-supported-selectors" target="_blank">css-select documentation</a> 來獲得更多信息。</p>
|
||||
</script>
|
43
packages/node_modules/@node-red/nodes/locales/zh-TW/parsers/70-JSON.html
vendored
Normal file
43
packages/node_modules/@node-red/nodes/locales/zh-TW/parsers/70-JSON.html
vendored
Normal file
@@ -0,0 +1,43 @@
|
||||
<!--
|
||||
Copyright JS Foundation and other contributors, http://js.foundation
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
-->
|
||||
|
||||
<script type="text/x-red" data-help-name="json">
|
||||
<p>在JSON字符串及其JavaScript對象表示形式之間相互轉換。</p>
|
||||
<h3>輸入</h3>
|
||||
<dl class="message-properties">
|
||||
<dt>payload<span class="property-type">object | 字符串</span></dt>
|
||||
<dd>JavaScript對象或JSON字符串。</dd>
|
||||
<dt>schema<span class="property-type">object</span></dt>
|
||||
<dd>可選的JSON Schema對象用于驗證有效負載。在將<code>msg</code>發送到下一個節點之前,將刪除該屬性。</dd>
|
||||
</dl>
|
||||
<h3>Outputs</h3>
|
||||
<dl class="message-properties">
|
||||
<dt>payload<span class="property-type">object | 字符串</span></dt>
|
||||
<dd>
|
||||
<ul>
|
||||
<li>如果輸入是JSON字符串,它將嘗試將其解析爲JavaScript對象。</li>
|
||||
<li>如果輸入是JavaScript對象,它將創建一個JSON字符串。並可以選擇對此JSON字符串進行整形。</li>
|
||||
</ul>
|
||||
</dd>
|
||||
<dt>schemaError<span class="property-type">數組</span></dt>
|
||||
<dd>如果JSON模式驗證失敗,則catch節點將具有包含錯誤數組的<code>schemaError</code>屬性。</dd>
|
||||
</dl>
|
||||
<h3>詳細</h3>
|
||||
<p>默認的轉換目標是<code>msg.payload</code>,但是也可以轉換消息的其它屬性。</p>
|
||||
<p>您可以將其設置爲僅執行特定的轉換,而不是自動選擇雙向轉換。例如,即使對<code>HTTP In</code>節點的請求未正確設置‘content-type’,也可以使用它來確保JSON節點的轉換結果是JavaScript對象</p>
|
||||
<p>如果指定了轉換爲JSON字符串,則不會對收到的字符串進行進一步的檢查。也就是說,即使指定了格式化選項,它也不會檢查字符串是否正確爲JSON或對JSON執行整形。</p>
|
||||
<p>有關JSON模式的更多詳細信息,請查閱<a href="http://json-schema.org/latest/json-schema-validation.html">規範</a>.</p>
|
||||
</script>
|
48
packages/node_modules/@node-red/nodes/locales/zh-TW/parsers/70-XML.html
vendored
Normal file
48
packages/node_modules/@node-red/nodes/locales/zh-TW/parsers/70-XML.html
vendored
Normal file
@@ -0,0 +1,48 @@
|
||||
<!--
|
||||
Copyright JS Foundation and other contributors, http://js.foundation
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
-->
|
||||
|
||||
<script type="text/x-red" data-help-name="xml">
|
||||
<p>在XML字符串及其JavaScript對象表示形式之間進行相互轉換。</p>
|
||||
<h3>輸入</h3>
|
||||
<dl class="message-properties">
|
||||
<dt>payload<span class="property-type">object | 字符串</span></dt>
|
||||
<dd>JavaScript對象或XML字符串。</dd>
|
||||
</dl>
|
||||
<h3>輸出</h3>
|
||||
<dl class="message-properties">
|
||||
<dt>payload<span class="property-type">object | 字符串</span></dt>
|
||||
<dd>
|
||||
<ul>
|
||||
<li>如果輸入是字符串,它將嘗試將其解析爲XML並創建一個JavaScript對象。</li>
|
||||
<li>如果輸入是JavaScript對象,它將嘗試構建XML字符串。</li>
|
||||
</ul>
|
||||
</dd>
|
||||
<dt class="optional">options <span class="property-type">object</span></dt>
|
||||
<dd>可以將選項傳遞給內部使用的XML轉換庫。請參見<a href="https://github.com/Leonidas-from-XIV/node-xml2js/blob/master/README.md#options" target="_blank"> xml2js文檔</a> 來獲取更多信息。</dd>
|
||||
</dl>
|
||||
<h3>詳細</h3>
|
||||
<p>在XML和對象之間進行轉換時,默認情況下XML屬性會添加到名爲<code>$</code>的屬性中。將文本內容添加到名爲<code>_</code>的屬性中。這些屬性名稱可以在節點設置中更改。</p>
|
||||
<p>例如,將如下所示轉換以下XML:</p>
|
||||
<pre><p class="tag">Hello World</p></pre>
|
||||
<pre>{
|
||||
"p": {
|
||||
"$": {
|
||||
"class": "tag"
|
||||
},
|
||||
"_": "Hello World"
|
||||
}
|
||||
}</pre>
|
||||
</script>
|
34
packages/node_modules/@node-red/nodes/locales/zh-TW/parsers/70-YAML.html
vendored
Normal file
34
packages/node_modules/@node-red/nodes/locales/zh-TW/parsers/70-YAML.html
vendored
Normal file
@@ -0,0 +1,34 @@
|
||||
<!--
|
||||
Copyright JS Foundation and other contributors, http://js.foundation
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
-->
|
||||
|
||||
<script type="text/x-red" data-help-name="yaml">
|
||||
<p>在YAML格式的字符串及其JavaScript對象表示形式之間相互轉換。</p>
|
||||
<h3>輸入</h3>
|
||||
<dl class="message-properties">
|
||||
<dt>payload<span class="property-type">object | 字符串</span></dt>
|
||||
<dd>JavaScript對象或YAML字符串。</dd>
|
||||
</dl>
|
||||
<h3>Outputs</h3>
|
||||
<dl class="message-properties">
|
||||
<dt>payload<span class="property-type">object | 字符串</span></dt>
|
||||
<dd>
|
||||
<ul>
|
||||
<li>如果輸入是YAML字符串,它將嘗試將其解析爲JavaScript對象。</li>
|
||||
<li>如果輸入是JavaScript對象,它將創建一個YAML字符串。</li>
|
||||
</ul>
|
||||
</dd>
|
||||
</dl>
|
||||
</script>
|
Reference in New Issue
Block a user