Skip to content

Pass multiple strings in a single call #1

@richierocks

Description

@richierocks

Google Translate

Pass q arg repeatedly.

Required The input text to translate. Repeat this parameter to perform translation operations on multiple text inputs.

Microsoft Translator

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions