You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When submitting an array of strings for translation, I am getting a single TextResult object back, whose text field is a concatenation of all the translations, comma-separated.
The documentation states that a list of TextResult objects should be returned, and this is also the behavior I used to see. I didn't update anything in our code nor update the version of the deepl-node package.
To Reproduce
Steps to reproduce the behavior:
import * as deepl from 'deepl-node';
const translator = new deepl.Translator('***');
const targetLang: deepl.TargetLanguageCode = 'fr';
const results = await translator.translateText(['Hello, world!', 'How are you?'], null, targetLang);
console.log(results);
Expected behavior
The result should be an array of TextResult objects, each containing the translated text of the corresponding string from the input array.
The output I was expecting (and was previously getting) is:
Describe the bug
When submitting an array of strings for translation, I am getting a single
TextResult
object back, whosetext
field is a concatenation of all the translations, comma-separated.The documentation states that a list of
TextResult
objects should be returned, and this is also the behavior I used to see. I didn't update anything in our code nor update the version of thedeepl-node
package.To Reproduce
Steps to reproduce the behavior:
The output I'm seeing currently is:
Expected behavior
The result should be an array of
TextResult
objects, each containing the translated text of the corresponding string from the input array.The output I was expecting (and was previously getting) is:
The text was updated successfully, but these errors were encountered: