Icon

02_​DeepL_​Translate_​Text_​with_​Context

Go to Product
DeepL_Context_Example

This example shows how to make translations with DeepL more “context aware”.

If you have several strings which you translate in isolation, each for themselves, DeepL will need to guess their meaning.

For example for the word “table”, DeepL will assume a “a table of numbers”, and not a piece of furniture. However, if you have a context, such as “table and chair”, DeepL will be able to deduct the proper meaning.

If you need to translate a bunch of single words or short texts (e.g. for internationalization aka. i18n of your software products or websites), it makes sense to combine them into one bigger text which improves the ability for DeepL to detect the proper context.

This workflow demonstrates how to combine a table with input strings into a larger XML string, translate it in one go, and then split the text back into the input rows.

This idea was suggested by Tim Cadenbach, DeepL - thank you very much!

Start for free and sign up for your DeepL API keyhere:https://www.deepl.com/pro-api Select eitherfree or paidAPI, dependingon your subscriptionEnter your personal APIkeyList withwords or texts totranslateCreate XMLstructure foreach word or textCombine to one singlecellPass a flow variable inputto next nodeTranslate the XML contentKeep therow ID asdedicatedcolumnGet the translatedXML stringParse XMLExtract rootXML elementExtract singlewords or textsRe-assignrow IDRemove undesired columnsCombine original strings and translations Server Auth Header Table Creator Column To XML XML Row Combiner Table Rowto Variable Translate Text RowID JSON Path String To XML XPath XPath RowID Column Filter Joiner Start for free and sign up for your DeepL API keyhere:https://www.deepl.com/pro-api Select eitherfree or paidAPI, dependingon your subscriptionEnter your personal APIkeyList withwords or texts totranslateCreate XMLstructure foreach word or textCombine to one singlecellPass a flow variable inputto next nodeTranslate the XML contentKeep therow ID asdedicatedcolumnGet the translatedXML stringParse XMLExtract rootXML elementExtract singlewords or textsRe-assignrow IDRemove undesired columnsCombine original strings and translationsServer Auth Header Table Creator Column To XML XML Row Combiner Table Rowto Variable Translate Text RowID JSON Path String To XML XPath XPath RowID Column Filter Joiner

Nodes

Extensions

Links