Home Manual Reference Source Test Repository

Function

Static Public Summary
public

download(filePattern: string, locales: string[], options: object): function

Downloads the message translations from the Smartling server.

public

upload(file: string, options: object): function

Uploads the original source content to the Smartling server.

Static Public

public download(filePattern: string, locales: string[], options: object): function source

import {download} from '@cedx/gulp-smartling/src/index.js'

Downloads the message translations from the Smartling server.

Params:

NameTypeAttributeDescription
filePattern string

The pattern indicating the target path of the downloaded files.

locales string[]

The list of the target locales to be downloaded.

options object
  • optional

The task options.

Return:

function

A function allowing to download the message translations.

Test:

public upload(file: string, options: object): function source

import {upload} from '@cedx/gulp-smartling/src/index.js'

Uploads the original source content to the Smartling server.

Params:

NameTypeAttributeDescription
file string

The path to the message file.

options object
  • optional

The task options.

Return:

function

A function allowing to upload the original source content.

Test: