
Security News
The Changelog Podcast: Practical Steps to Stay Safe on npm
Learn the essential steps every developer should take to stay secure on npm and reduce exposure to supply chain attacks.
@transifex/cli
Advanced tools
A command line tool that parses .js or .jsx source files, extracts phrases marked for localization by Transifex Native and pushes them to Transifex for translation.
Related packages:
$ npm install -g @transifex/cli
$ txjs-cli COMMAND
running command...
$ txjs-cli --help [COMMAND]
USAGE
  $ txjs-cli COMMAND
...
Install to local repo using npm.
$ npm install @transifex/cli --save
$ ./node_modules/.bin/txjs-cli COMMAND
running command...
Add it as a script command in package.json.
  ...
  "scripts": {
    "push": "txjs-cli push src/",
    ...
  },
Push content using npm.
$ npm run push
txjs-cli help [COMMAND]Display help for txjs-cli
USAGE
  $ txjs-cli help [COMMAND]
ARGUMENTS
  COMMAND  command to show help for
OPTIONS
  --all  see all commands in CLI
txjs-cli push [PATTERN]Detect translatable strings and push content to Transifex
USAGE
  $ txjs-cli push [PATTERN]
ARGUMENTS
  PATTERN  [default: **/*.{js,jsx}] file pattern to scan for strings
OPTIONS
  -v, --verbose        Verbose output
  --cds-host=cds-host  CDS host URL
  --dry-run            Dry run, do not push to Transifex
  --purge              Purge content on Transifex
  --secret=secret      Native project secret
  --token=token        Native project public token
  --tags=tags          Globally add tags to strings
DESCRIPTION
  Parse .js or .jsx files and detect phrases marked for
  translation by Transifex Native toolkit for Javascript and
  upload them to Transifex for translation.
  To push content some environment variables must be set:
  TRANSIFEX_TOKEN=<Transifex Native Project Token>
  TRANSIFEX_SECRET=<Transifex Native Project Secret>
  (optional) TRANSIFEX_CDS_HOST=<CDS HOST>
  or passed as --token=<TOKEN> --secret=<SECRET> parameters
  Default CDS Host is https://cds.svc.transifex.net
  Examples:
  txjs-cli push -v
  txjs-cli push src/
  txjs-cli push /home/repo/src
  txjs-cli push "*.js"
  txjs-cli push --dry-run
  txjs-cli push --tags="master,release:2.5"
  txjs-cli push --token=mytoken --secret=mysecret
  TRANSIFEX_TOKEN=mytoken TRANSIFEX_SECRET=mysecret txjs-cli push
Licensed under Apache License 2.0, see LICENSE file.
FAQs
i18n CLI tool for Transifex Native
We found that @transifex/cli demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Learn the essential steps every developer should take to stay secure on npm and reduce exposure to supply chain attacks.

Security News
Experts push back on new claims about AI-driven ransomware, warning that hype and sponsored research are distorting how the threat is understood.

Security News
Ruby's creator Matz assumes control of RubyGems and Bundler repositories while former maintainers agree to step back and transfer all rights to end the dispute.