View source: R/google_translate_file.R
translate_file | R Documentation |
Translates the content of a file using Google Translate API.
translate_file(
file_path,
target_language = "en",
source_language = "auto",
overwrite = FALSE
)
file_path |
The path to the file to be translated. |
target_language |
The target language to translate the file content to. Default is "en". |
source_language |
The source language of the file content. Default is "auto". |
overwrite |
Logical indicating whether to overwrite the original file with the translated content. Default is FALSE. |
## Not run:
translate_file("path/to/file.txt", target_language = "fr", source_language = "en", overwrite = TRUE)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.