deepel_X2X | R Documentation |
Translate English text from the clipboard into the specified target language using the DeepL API.
deepel_X2X(
target_lang = "JA",
Auth_Key = Sys.getenv("DeepL_API_KEY"),
free_mode = TRUE
)
target_lang |
The language into which the text should be translated. Options are:
BG - Bulgarian, CS - Czech, DA - Danish, DE - German, EL - Greek,
EN - English (unspecified variant for backward compatibility; please select EN-GB or EN-US instead),
EN-GB - English (British), EN-US - English (American), ES - Spanish, ET - Estonian,
FI - Finnish, FR - French, HU - Hungarian, ID - Indonesian, IT - Italian,
JA - Japanese, KO - Korean, LT - Lithuanian, LV - Latvian, NB - Norwegian (Bokmål),
NL - Dutch, PL - Polish, PT - Portuguese (unspecified variant for backward compatibility; please select PT-BR or PT-PT instead),
PT-BR - Portuguese (Brazilian), PT-PT - Portuguese (all Portuguese varieties excluding Brazilian Portuguese),
RO - Romanian, RU - Russian, SK - Slovak, SL - Slovenian, SV - Swedish,
TR - Turkish, UK - Ukrainian, ZH - Chinese (simplified).
|
Auth_Key |
The authentication key for the DeepL API. |
free_mode |
A logical value indicating whether to use the free or paid DeepL API. Default is TRUE. |
Translate X to X via DeepL API
This function takes text from the clipboard and translates it into the specified target language using the DeepL API. The translated text is then placed back into the clipboard, ready to be pasted wherever needed.
The translated text is placed into the clipboard and the function returns the result of clipr::write_clip
.
Satoshi Kume
## Not run:
#Copy text into your clipboard to excute the function. Then paste your clipboard.
deepel_X2X(target_lang = 'JA')
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.