2.0.1 • Published 6 years ago

onesky-sync v2.0.1

Weekly downloads
384
License
MIT
Repository
github
Last release
6 years ago

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
OptionRequiredDefault ValueDescription
api-keyApi Key can be obtained on Site Settings page on OneSky
secretSecret can also be obtained on Site Settings page on OneSky
project-idProject 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
OptionRequiredDefault ValueDescription
formatHIERARCHICAL_JSONFile format. (list here)
contentFrom input fileString with the content of the file
keep-stringsfalseBoolean saying if already uploaded strings not present on this file should be deprecated or kept
allow-same-as-originalfalseKeep the translations that are the same as source text
languageenLanguage code
file-nameFile name from inputName 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
OptionRequiredDefault ValueDescription
languageAll available translationsLanguage code
file-nameName of translation file
2.0.1

6 years ago

2.0.0

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago