This package contains a collection of scripts for various tasks related to translations.
Specify TRANSLATE_O_TRON_API_KEY in env and call this command:
npx translate-o-tron-import <projectId> <lang> <operation> <filePath>
-
Sync terms from primary language
TRANSLATE_O_TRON_API_KEY=xxx npx translate-o-tron-import 123 cs download ./public/locales/cs/translation.json
-
Upload translations from other languages
TRANSLATE_O_TRON_API_KEY=xxx npx translate-o-tron-import 123 en upload ./public/locales/en/translation.json
-
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