onesky-sync

2.0.1 • Public • Published

OneSky sync

npm version

Simple CLI wrapper over @brainly/onesky-utils.

Installation

npm install -g onesky-sync

Usage

onesky-sync upload <input> [options]
onesky-sync download <output> [options]
Common options
Option Required Default Value Description
api-key Api Key can be obtained on Site Settings page on OneSky
secret Secret can also be obtained on Site Settings page on OneSky
project-id Project ID can be found in the URL admin/project/dashboard/project/:project-id on OneSky Dashboard

You can pass any options from onesky-utils API

Upload

onesky-sync upload ./translations/en.json --api-key=111 --secret=111 --project-id=111
onesky-sync upload ./translations/*.json --api-key=111 --secret=111 --project-id=111
Option Required Default Value Description
format HIERARCHICAL_JSON File format. (list here)
content From input file String with the content of the file
keep-strings false Boolean saying if already uploaded strings not present on this file should be deprecated or kept
allow-same-as-original false Keep the translations that are the same as source text
language en Language code
file-name File name from input Name of translation file

Download

onesky-sync download ./translations/ --file-name=en.json --language=ru --api-key=111 --secret=111 --project-id=111
onesky-sync download ./translations/ --file-name=en.json --api-key=111 --secret=111 --project-id=111
Option Required Default Value Description
language All available translations Language code
file-name Name of translation file

Package Sidebar

Install

npm i onesky-sync

Weekly Downloads

1

Version

2.0.1

License

MIT

Unpacked Size

10.7 kB

Total Files

5

Last publish

Collaborators

  • pfrankov