wortsteg

Worsteg cli is the command line tool for Worteg translation service

Usage no npm install needed!

<script type="module">
  import wortsteg from 'https://cdn.skypack.dev/wortsteg';
</script>

README

Wortsteg cli

Worsteg cli is the command line tool for Worteg translation service

Install

Install as a global package

npm install -g wortsteg

Configuration

The command line tool will run read a configuration file inside the running directory, called wortsteg.yml The configuration contains the following settings:

  • document : the document id. This id can be retrieved from the website
  • sources : a list of source locale files containing the file (file path of the locale file) and locale name
document: 7188a1e2-35dc-4bae-a38b-86a624809fbe
sources:
  -
    file: translation/en.json
    locale: en

Available cli parameters

  • credentials : e.g. john.doe@example.com:1234

Available commands

  • upload : uploads all the sources defined in the configuration file if they have been changed since the last upload

Run

wortsteg --credentials username:password upload