postFile: Upload a translation file

View source: R/apiCalls.R

postFileR Documentation

Upload a translation file

Description

Upload the translation file stored at "~/from.language/slug.csv" to the specified language in the project defined in setup().

Usage

postFile(
  slug,
  to.language,
  from.directory,
  conflict = "ignore",
  filename,
  verbose = FALSE
)

Arguments

slug

The slug of the component to upload to.

to.language

The language to upload to.

from.directory

The directory the file is saved in.

conflict

Optional. How to handle conflicts on the server. One of "ignore", "replace-translated" or "replace-approved".

filename

Optional, defaults to slug. Name of the file, without ".csv" ending.

verbose

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

Value

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


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