api.js
function (projectName, fileNameOrStream, callback) {
        if (typeof fileNameOrStream === "string") {
            fileNameOrStream = fs.createReadStream(fileNameOrStream);
        }

        return postApiCallWithFormData('project/' + projectName + '/upload-glossary', { file: fileNameOrStream }, callback);
    }
function (projectName, fileNameOrStream, callback) {
        if (typeof fileNameOrStream === "string") {
            fileNameOrStream = fs.createReadStream(fileNameOrStream);
        }

        return postApiCallWithFormData('project/' + projectName + '/upload-glossary', { file: fileNameOrStream }, callback);
    }
function ( projectName , fileNameOrStream , callback ) { if ( typeof fileNameOrStream === "string" ) { fileNameOrStream = fs . createReadStream ( fileNameOrStream ) ; } return postApiCallWithFormData ( 'project/' + projectName + '/upload-glossary' , { file : fileNameOrStream } , callback ) ; }
Upload your glossaries for Crowdin Project in TBX file format.
@param projectName {String} Should contain the project identifier.
@param fileNameOrStream {String} Name of the file to upload or stream which contains file to upload.
@param callback {Function} Callback to call on function completition.
Upload your glossaries for Crowdin Project in TBX file format .