CLI tool written in go to create txt file translation jobs.
Running translate w/ login command will allow you to authenticate with dev environment and save token locally in .token
flowchart TD
A[Login] --> B{CLI has data registry already?};
B -- Yes --> C[Set auth info into auth.json]
B -- No --> W[Set auth info into auth.json]
W --> D[Create Data Registry and save id in app_data.json]
C --> Q[Done]
D --> E[Create Schema and save id in app_data.json]
E --> F[Publish Schema and save id in app_data.json]
F --> G[Create Folder and save id in app_data.json]
G --> Q[Done]
-uUsername-pPassword
./translate login -u <username> -p <password> or go run . login -u <username> -p <password>
Me command will print the authenticate user if .token is valid
./translate me or go run . me
Create command will create a txt file translate job and append job id to jobs file for reference.
-urlURL to a txt file to be translated-langLanguage the txt file content to be translated to-wWait for the job to complete before exiting
./translate create -url https://example-files.online-convert.com/document/txt/example.txt -lang de -w
or
go run . create -url https://example-files.online-convert.com/document/txt/example.txt -lang de -w
Status command will display all job statuses or single job status if id is provided
-idJob Id-wWait for the job to be complete before exiting
./translate statusorgo run . statusDisplays all jobs with their statuses and tasks in a table format./translate status -id <jobId>orgo run . status -d <jobId>Displays a job and task status./translate status -id <jobId> -worgo run . status -d <jobId> -wWait for a job to be done before exiting
Search for TDO by SDO title field
-vValue used for fidning TDO by title field
./translate search -v testingorgo run . search -v testingDisplays all jobs with their statuses and tasks in a table format