UNPKG

i18nucleus-transifex

Version:
38 lines (30 loc) 865 B
/* * Available options: * - username: String - Required. For Transifex account connection. * - password: String - Required. For Transifex account connection. * - projectSlug: String - Required. Slug of Transifex project containing resources to be used in the App. * - ignoredNamespaces: [String] - Optional. List of namespaces to be ignored. */ exports = module.exports = function (options, utils) { options = options || {}; if (!options.username) { return { err: 'Transifex user name not defined' }; } if (!options.password) { return { err: 'Transifex password not defined' }; } if (!options.projectSlug) { return { err: 'Transifex project slug not defined' }; } options.ignoredNamespaces = utils.arrayize(options.ignoredNamespaces); return { err: null , options: options }; };