DeepL translate output should be same format as input

Describe the problem/error/question

Hello,

this is my workflow. I try to translate the data with DeepL. DeepL does translate it, but the output format should stay the same as in imput format. What must I do to keep the data in the same format?

Greetings Max

What is the error message (if any)?

Please share your workflow

Share the output returned by the last node

Information on your n8n setup

  • n8n version:
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app):
  • Operating system:

Hello @Bringasher , thank you for your reply. Can you give me a hint which node to use to pull out only the words and then put them back into the original structure?

I am struggling with the java script in the function node that pulls out the data that needs to be translated and then puts the words back into the same structur as it was before

Its not working yet as it should.

This is my flow now. I am not sure what I must input into the field “Text” in the DeepL node. I also tried it with “data” but there was no output when I did that.

After the translate node, if you attach a function(requires javascript) OR an AI model and instruction in his system prompt to d extract the text from the json … there are plenty ways to do that, with coding exp or without…

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.