knitr::opts_chunk$set( collapse = TRUE, comment = "#>", fig.path = "man/figures/README-", out.width = "100%" ) library(transdoc)
Translate text, web, and help documents with Google Translate
remotes::install_github("atusy/transdoc")
The replaced ?
launches your browser and shows a translated help.
library(transdoc) options(transdoc_to = "ja") ?c
translate("This text will be translated to Japanese", to = "default") translate("https://transdoc.atusy.net", to = "ja")
Unless the destination language is set, it is taken as English.
options(transdoc_to = "ja")
You can see full list of available languages by the language
object.
You can use either a name or a value of an element in the language
.
language
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.