Translate user-facing docs and node help to English
README, NODES.md, install scripts, palette help text, and example flows — node .js logic unchanged. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -18,7 +18,7 @@
|
||||
|
||||
<script type="text/html" data-template-name="collabora-extract">
|
||||
<div class="form-row">
|
||||
<label for="node-input-name"><i class="fa fa-tag"></i> Namn</label>
|
||||
<label for="node-input-name"><i class="fa fa-tag"></i> Name</label>
|
||||
<input type="text" id="node-input-name">
|
||||
</div>
|
||||
<div class="form-row">
|
||||
@@ -32,23 +32,21 @@
|
||||
</script>
|
||||
|
||||
<script type="text/html" data-help-name="collabora-extract">
|
||||
<p><strong>Lista vad som finns i dokumentet.</strong> Content controls, fält, ev. annan struktur beroende på filter. Returnerar JSON — ingen ny fil.</p>
|
||||
<p><strong>List what's inside a document.</strong> Content controls, fields, or other structure depending on filter. Returns JSON — no new file.</p>
|
||||
|
||||
<h4>Varifrån</h4>
|
||||
<p>Samma som convert: <code>msg.payload</code> eller WebDAV GET <code>msg.ncPath</code>.</p>
|
||||
<p>Filter: dropdown eller <code>msg.filter</code>. Default <code>contentcontrol</code>.</p>
|
||||
<h4>Input</h4>
|
||||
<p>Same as convert: <code>msg.payload</code> or WebDAV GET <code>msg.ncPath</code>.</p>
|
||||
<p>Filter: dropdown or <code>msg.filter</code>. Default <code>contentcontrol</code>.</p>
|
||||
|
||||
<h4>Vart</h4>
|
||||
<p>POST multipart → <code>/cool/extract-document-structure</code></p>
|
||||
<h4>Output</h4>
|
||||
<p>POST multipart to <code>/cool/extract-document-structure</code></p>
|
||||
<p><code>msg.payload</code> and <code>msg.structure</code> = structure JSON</p>
|
||||
|
||||
<h4>Ut</h4>
|
||||
<p><code>msg.payload</code> och <code>msg.structure</code> = struktur-JSON</p>
|
||||
<h4>When to use</h4>
|
||||
<p>Before filling a template. You get field names (Customer, Date …) for the next node.</p>
|
||||
|
||||
<h4>När</h4>
|
||||
<p>Innan du fyller en mall. Du får fältnamnen (Kund, Datum …) så nästa nod vet vad den ska slå in.</p>
|
||||
|
||||
<pre>inject { ncPath: "/Mallar/avtal.docx" }
|
||||
<pre>inject { ncPath: "/Templates/contract.docx" }
|
||||
→ collabora-extract (filter: contentcontrol)
|
||||
→ function (mappa data till fältnamn)
|
||||
→ function (map your data to field names)
|
||||
→ collabora-transform / nc-office / bridge fillTemplateSave</pre>
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user