Transifex Native is a full end-to-end, cloud-based localization stack for moderns apps.
Transifex Native SDK: JavaScript i18n CLI tool
A command line tool that parses .js, .ts, .jsx, .tsx and .html source files, extracts phrases marked for localization by Transifex Native and pushes them to Transifex for translation.
ARGUMENTS PATTERN [default: */.{js,jsx,ts,tsx,html,vue,pug,ejs}] file pattern to scan for strings
FLAGS -v, --verbose verbose output --append-tags= append tags to strings --cds-host= CDS host URL --do-not-keep-translations remove translations when source strings change --dry-run dry run, do not apply changes in Transifex --fake do not push content to remote server --key-generator=
DESCRIPTION Detect and push source content to Transifex Parse .js, .ts, .jsx, .tsx and .html 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_SECRET= (optional) TRANSIFEX_CDS_HOST=
FLAGS -f, --folder= output as files to folder -l, --locale= pull specific language locale code --cds-host= CDS host URL --filter-status=
filter over translation status --filter-tags= filter over specific tags --pretty beautify JSON output --secret= native project secret --token= native project public token
DESCRIPTION Pull content from Transifex for offline caching Get content as JSON files, to be used by mobile Javascript SDKs for offline support or warming up the cache with initial translations.
By default, JSON files are printed in the console, unless the "-f foldername" parameter is provided. In that case the JSON files will be downloaded to that folder with the .json format.
To pull content some environment variables must be set: TRANSIFEX_TOKEN= TRANSIFEX_SECRET= (optional) TRANSIFEX_CDS_HOST=
FLAGS --cds-host= CDS host URL --purge force delete CDS cached content --secret= native project secret --token= native project public token
DESCRIPTION Invalidate and refresh CDS cache Content for delivery is cached in CDS and refreshed automatically every hour. This command triggers a refresh of cached content on the fly.
By default, invalidation does not remove existing cached content, but starts the process of updating with latest translations from Transifex.
Passing the --purge option, cached content will be forced to be deleted, however use that with caution, as it may introduce downtime of translation delivery to the apps until fresh content is cached in the CDS.
To invalidate translations some environment variables must be set: TRANSIFEX_TOKEN= TRANSIFEX_SECRET= (optional) TRANSIFEX_CDS_HOST=