1.0.0 • Published 4 years ago
@bux-web/get-translations-file v1.0.0
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 name | Optional | Description |
|---|---|---|
| secret | no | Onesky secret key |
| apiKey | no | Onesky api key |
| projectId | no | Onesky Project ID |
| fileName | yes | The name of a .po file in the Onesky project |
| outputFile | yes | The name of json file that you want to generate |
If you do not provide a fileName or outputFile the cli will ask for them.
1.0.0
4 years ago