translate-o-tron-import

1.0.9 • Public • Published

Translate-a-Tron CLI

This package contains a collection of scripts for various tasks related to translations.

How to use

Specify TRANSLATE_O_TRON_API_KEY in env and call this command:

npx translate-o-tron-import <projectId> <lang> <operation> <filePath>

Reccomended usage

  1. Sync terms from primary language

    TRANSLATE_O_TRON_API_KEY=xxx npx translate-o-tron-import 123 cs download  ./public/locales/cs/translation.json
  2. Upload translations from other languages

    TRANSLATE_O_TRON_API_KEY=xxx npx translate-o-tron-import 123 en upload  ./public/locales/en/translation.json
  3. Download translations for all languages

    TRANSLATE_O_TRON_API_KEY=xxx npx translate-o-tron-import 123 cs download  ./public/locales/cs/translation.json
    TRANSLATE_O_TRON_API_KEY=xxx npx translate-o-tron-import 123 en download  ./public/locales/en/translation.json

/translate-o-tron-import/

    Package Sidebar

    Install

    npm i translate-o-tron-import

    Weekly Downloads

    0

    Version

    1.0.9

    License

    ISC

    Unpacked Size

    2.87 kB

    Total Files

    3

    Last publish

    Collaborators

    • chami