getFile: Download a translation file.

View source: R/apiCalls.R

getFileR Documentation

Download a translation file.

Description

Download a translation file from the location specified by a combination of Project, Component, and Language. The file is written to disk at "~/from.language/slug.csv". Existing files are overwritten.

Usage

getFile(slug, from.project, from.language, method = "api", verbose = FALSE)

Arguments

slug

The slug of the component to download the translation file from.

from.project

The project to download the file from.

from.language

The language to download the file from.

method

How to get the file. "api" or "public". If "public" is specified, the file is downloaded from the public.url provided in setup, without using the token for authorization. Only works if the file is publicly available.

verbose

Optional. Whether to print a detailed log to the console or not.

Value

The response from the server, as returned by httr::GET().


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