Translate user-facing docs and node help to English

README, NODES.md, install scripts, palette help text, and example flows — node .js logic unchanged.
This commit is contained in:
root
2026-08-22 17:36:38 +02:00
parent 5f5a381662
commit ec74e9208c
18 changed files with 361 additions and 390 deletions
+13 -15
View File
@@ -17,7 +17,7 @@
<script type="text/html" data-template-name="collabora-transform">
<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">
@@ -27,25 +27,23 @@
</script>
<script type="text/html" data-help-name="collabora-transform">
<p><strong>Skriv in värden i dokumentet.</strong> Tar dokument + JSON med fält/transform och ber CODE fylla i. Resultat = ny dokument-binär, inte JSON.</p>
<p><strong>Write values into a document.</strong> Takes document + JSON fields/transform and asks CODE to fill them in. Result is a new document binary, not JSON.</p>
<h4>Varifrån</h4>
<h4>Input</h4>
<ul>
<li>Dokument: <code>msg.payload</code> eller <code>msg.ncPath</code> (WebDAV)</li>
<li>Instruktion: <code>msg.transform</code> eller <code>msg.fields</code> — måste finnas</li>
<li>Document: <code>msg.payload</code> or <code>msg.ncPath</code> (WebDAV)</li>
<li>Instruction: <code>msg.transform</code> or <code>msg.fields</code> — required</li>
</ul>
<h4>Vart</h4>
<p>POST multipart → <code>/cool/transform-document-structure</code>. Fält: <code>data</code> = filen, <code>transform</code> = JSON.</p>
<h4>Output</h4>
<p>POST multipart to <code>/cool/transform-document-structure</code>. Fields: <code>data</code> = file, <code>transform</code> = JSON.</p>
<p><code>msg.payload</code> = modified file (Buffer), plus <code>contentType</code></p>
<h4>Ut</h4>
<p><code>msg.payload</code> = ändrad fil (Buffer), plus <code>contentType</code></p>
<h4>When to use</h4>
<p>Fill a template via CODE directly, not Nextcloud's template API. Save yourself afterwards (WebDAV PUT / bridge / nc-office) if the file should live in the cloud.</p>
<h4>När</h4>
<p>Fylla mall via CODE direkt, inte Nextclouds mall-API. Spara själv efteråt (WebDAV PUT / bridge / nc-office) om filen ska ligga i molnet.</p>
<pre>msg.ncPath = "/Mallar/avtal.docx"
msg.fields = { "Kund": "AB Exempel", "Datum": "2026-08-22" }
<pre>msg.ncPath = "/Templates/contract.docx"
msg.fields = { "Customer": "ACME Ltd", "Date": "2026-08-22" }
→ collabora-transform
→ (spara eller konvertera till PDF)</pre>
→ (save or convert to PDF)</pre>
</script>