Skip to content

Commit

Permalink
chore: modify testing script to include new env variables
Browse files Browse the repository at this point in the history
  • Loading branch information
moonlight-komorebi committed Dec 6, 2021
1 parent ccdd379 commit 9ce436c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion scripts/actions/translation_workflow/testing/script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"
pushd $SCRIPT_DIR/../../../..

# # step 1
export HUMAN_TRANSLATION_PROJECT_ID=''
export MACHINE_TRANSLATION_PROJECT_ID=''

export DB_CONNECTION_INFO=$(cat $SCRIPT_DIR/connection_info.json)
export GITHUB_TOKEN='' # token with no permissions

Expand All @@ -17,6 +20,7 @@ export TRANSLATION_VENDOR_API_URL=https://api.smartling.com
export TRANSLATION_VENDOR_PROJECT='' # use machine translation project
export TRANSLATION_VENDOR_USER='' # MT user
export TRANSLATION_VENDOR_SECRET='' # MT user secret
export TRANSLATION_TYPE='machine' # either 'human' or 'machine'. change as needed.


node $SCRIPT_DIR/../../send-and-update-translation-queue.js
Expand All @@ -30,4 +34,4 @@ node $SCRIPT_DIR/../../check-job-progress.js
# # step 4
node $SCRIPT_DIR/../../remove-completed-batch.js

popd
popd

0 comments on commit 9ce436c

Please sign in to comment.