Learn R Programming

polyglotr (version 1.6.0)

batch_translate: Batch Translation Function

Description

This function translates a file into each target language using the polyglotr package's translate_file function, and saves the translated files.

Usage

batch_translate(input_file, source_language, target_languages)

Value

Nothing is returned.

Arguments

input_file

A character string indicating the path to the input file.

source_language

A character string indicating the source language.

target_languages

A character vector indicating the target languages.

Examples

Run this code
if (FALSE) {
batch_translate("README.md", "nl", c("fr", "es", "de"))
}

Run the code above in your browser using DataLab