import {DownloadTask} from '@aquafadas/gulp-smartling/src/tasks/download_task.js'
DownloadTask
Extends:
Downloads the message translations from the Smartling server.
Constructor Summary
Public Constructor | ||
public |
constructor(options: object) Initializes a new instance of the class. |
Member Summary
Public Members | ||
public |
The pattern indicating the target path of the downloaded files (e.g. |
|
public get |
Value indicating whether to return the original string or an empty string when no translation is available. |
|
public set |
includeOriginalStrings(value: boolean): * Sets a value indicating whether to return the original string or an empty string when no translation is available. |
|
public |
The list of locales to be downloaded. |
|
public get |
The desired format for the download. |
|
public set |
retrievalType(value: string): * Sets the desired format for the download. |
Method Summary
Public Methods | ||
public |
Downloads the message translations from the Smartling server. |
Inherited Summary
From class FileTask | ||
public static |
getFileTypeFromURI(fileURI: string): string Returns the file type corresponding to the specified file URI. |
|
public |
A value that uniquely identifies the file. |
Public Constructors
public constructor(options: object) source
Initializes a new instance of the class.
Override:
FileTask#constructorParams:
Name | Type | Attribute | Description |
options | object |
|
An object specifying values used to initialize this instance. |
Public Members
public filePattern: string source
The pattern indicating the target path of the downloaded files (e.g. path/to/i18n/{{locale}}.json
).
public get includeOriginalStrings: boolean source
Value indicating whether to return the original string or an empty string when no translation is available.