setup | R Documentation |
Initialize some basic environment variables needed for the API calls.
setup(base.url, token, to.project, debug = FALSE)
base.url |
The URL of your Weblate instance. This is the same URL that you would use to access the Weblate web interface in your browser. "https://example.com" (no trailing "/"). |
token |
Your authorization token. See https://docs.weblate.org/en/latest/api.html#authentication-and-generic-parameters |
to.project |
The project you want to upload the translation files to. CAREFUL: make sure to set this to the appropriate project. It is set here instead of in copyTranslations() or postFile() to avoid mistakenly writing to the wrong project. |
debug |
Controls httr verbose logging (httr::verbose()). Defaults to FALSE |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.