Pass multiple strings in a single call
richierocks opened this issue · 0 comments
richierocks commented
Pass q
arg repeatedly.
Required The input text to translate. Repeat this parameter to perform translation operations on multiple text inputs.
Use POST TranslateArray
.
texts: Required. An array containing the texts for translation. All strings must be of the same language. The total of all texts to be translated must not exceed 10000 characters. The maximum number of array elements is 2000.
The trick will be to split the input into suitable chunks and split/recombine as appropriate. factor(cumsum(nchar(x)) %/% 1e4)
is probably what I want.