TransifexRunnerAliases.

TransifexPush(ICakeContext, TransifexPushSettings) Method

Summary

This command pushes all local files that have been added to Transifex to the remote server. All new translations are merged with existing ones and if a language doesn't exist then it gets created. If you want to push the source file as well (either because this is your first time running the client or because you have updated with new entries), set the UploadSourceFiles to true. By default, this command will push all files which are watched by Transifex but you can filter this per resource or/and language.
Assembly
Cake.Transifex.dll
Namespace
Cake.Transifex
Containing Type
TransifexRunnerAliases

Syntax

public static void TransifexPush(this ICakeContext context, TransifexPushSettings settings)

Examples

Run 'tx push' with additional arguments

Cake task:

Task("Transifex-Push")
    .Does(() =>
{
    TransifexPush(options =>
    {
        options.UploadSourceFiles = true;
        options.UploadTranslations = true;
    });
};

Attributes

Type Description
CakeMethodAliasAttribute

Parameters

Name Type Description
context ICakeContext The context.
settings TransifexPushSettings The settings.

Return Value

Type Description
void