Translate character vectors via the Google Translate API.
Value
A tibble of translatedText
, detectedSourceLanguage
, and text
of length equal to the vector of text you passed in
Details
You can translate a vector of strings; if too many for one call, it will be broken up into one API call per element. The API charges per character translated, so splitting does not change cost but may take longer.
If translating HTML, set format = "html"
.
Consider removing anything not needed to be translated first, such as JavaScript or CSS.
API limits: characters per day, characters per 100 seconds, and API requests per 100 seconds. These can be configured in the API manager: https://console.developers.google.com/apis/api/translate.googleapis.com/quotas
See also
https://cloud.google.com/translate/docs/reference/translate
Other translations:
gl_translate_detect()
,
gl_translate_document()
,
gl_translate_languages()