setup: Initialize some basic environment variables needed for the...

View source: R/setup.R

setupR Documentation

Initialize some basic environment variables needed for the API calls.

Description

Initialize some basic environment variables needed for the API calls.

Usage

setup(base.url, token, to.project, debug = FALSE)

Arguments

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


GreenpeaceSchweiz/weblatetools documentation built on Nov. 21, 2022, 1:21 p.m.