mirror of
https://github.com/node-red/node-red.git
synced 2025-03-01 10:36:34 +00:00
add zn-CN translation for nodes: network, parsers, sequence
This commit is contained in:
43
packages/node_modules/@node-red/nodes/locales/zh-CN/parsers/70-CSV.html
vendored
Normal file
43
packages/node_modules/@node-red/nodes/locales/zh-CN/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-CN/parsers/70-HTML.html
vendored
Normal file
33
packages/node_modules/@node-red/nodes/locales/zh-CN/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-CN/parsers/70-JSON.html
vendored
Normal file
43
packages/node_modules/@node-red/nodes/locales/zh-CN/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-CN/parsers/70-XML.html
vendored
Normal file
48
packages/node_modules/@node-red/nodes/locales/zh-CN/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-CN/parsers/70-YAML.html
vendored
Normal file
34
packages/node_modules/@node-red/nodes/locales/zh-CN/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