Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
@doodle/i18n / dist / src / onesky
  ..
  api.js
  api.spec.js
  diff.js
  diff.spec.js
  extract.js
  extract.spec.js
  index.js
  index.spec.js
  transform.js
  transform.spec.js
  translations.js
  translations.spec.js
  utils.js
  utils.spec.js
  README.md
Size: Mime:

Documentation

onesky : object

Kind: module

onesky.getConfig(options)

Get combined configuration from parameters, .oneskyrc and environment variables

Kind: static method of onesky

Param Type
options object
options.credentials Credentials
options.projectId string
options.dependentProjectIds Array.<string>

onesky.downloadAllTranslations(options)

Download all translation files for all defined languages of multiple OneSky projects

Kind: static method of onesky

Param Type
options object
options.credentials Credentials
options.projectId string
options.dependentProjectIds Array.<string>

onesky.uploadBaseMessagesFromSource(options)

Upload directly the translation from the default messages defined in the source code

Kind: static method of onesky

Param Type
options object
options.credentials Credentials
options.projectId string
options.dependentProjectIds Array.<string>

onesky.unflatten(messages) ⇒ object

Unflatten a messages object

Kind: static method of onesky Returns: object - a hierarchical messages object

Param Type Description
messages object a flat messages object

onesky.flatten(messages) ⇒ object

Flatten a messages object

Kind: static method of onesky Returns: object - a flat messages object

Param Type Description
messages object hierarchical object

Credentials : object

Legacy credentials object interface

Kind: global typedef Properties

Name Type
key string
secret string