Skip to content

Commit

Permalink
Merge pull request #5180 from newrelic/smol_updates_to_feature_machin…
Browse files Browse the repository at this point in the history
…e_translation

minor fixups
  • Loading branch information
John P Vajda committed Dec 7, 2021
2 parents a14353d + 9ce436c commit 6560a3b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
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
3 changes: 2 additions & 1 deletion scripts/actions/utils/constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ const LOCALE_IDS = {
jp: 'ja-JP',
};

const EXCLUSIONS_FILE = 'scripts/utils/docs-content-tools/i18n-exclusions.yml';
const EXCLUSIONS_FILE =
'scripts/actions/utils/docs-content-tools/i18n-exclusions.yml';

module.exports = {
LOCALE_IDS,
Expand Down

0 comments on commit 6560a3b

Please sign in to comment.