1.0.0 • Published 2 years ago

@bux-web/get-translations-file v1.0.0

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

get-translations-file

Get multilingual translations file in json format from onesky.

Intallation

npm i get-translations-file

Usage

The args can be provided directly in the command line: get-translations-file --secret [onesky_secret_key] --apiKey [onesky_api_key] --projectId [onesky_project_id]

or by using a json config file: get-translations-file --settings onesky-config.json

{
  "secret": "onesky_secret_key",
  "apiKey": "onesky_api_key",
  "projectId": "123",
  "fileName": "someExistingFileName.po",
  "outputFile": "outputFile.json"
}

Documentation

Option nameOptionalDescription
secretnoOnesky secret key
apiKeynoOnesky api key
projectIdnoOnesky Project ID
fileNameyesThe name of a .po file in the Onesky project
outputFileyesThe name of json file that you want to generate

If you do not provide a fileName or outputFile the cli will ask for them.