-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5123 from newrelic/4204_download_translation_updates
Download translation script updates
- Loading branch information
Showing
4 changed files
with
40 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
/** | ||
* Module which holds configurable fields and their values for running scripts. | ||
* At the moment, only contains configuration for translation workflow. | ||
* @module configuration | ||
* */ | ||
|
||
const configuration = { | ||
/** Translation configuration section. */ | ||
TRANSLATION: { | ||
/** API endpoint for translation vendor. */ | ||
VENDOR_API_URL: process.env.TRANSLATION_VENDOR_API_URL, | ||
/** Project ID (from vendor) used for translation. */ | ||
VENDOR_PROJECT: process.env.TRANSLATION_VENDOR_PROJECT, | ||
/** User ID (from vendor) used for authentication */ | ||
VENDOR_USER: process.env.TRANSLATION_VENDOR_USER, | ||
/** User secret (from vendor) used for authentication */ | ||
VENDOR_SECRET: process.env.TRANSLATION_VENDOR_SECRET, | ||
/** Value indicating if configured for 'human' or 'machine' translation. Can also be undefined indicating neither or both. */ | ||
TYPE: process.env.TRANSLATION_TYPE, | ||
}, | ||
}; | ||
|
||
module.exports = { | ||
/** | ||
* Configurable fields and their values for running scripts. | ||
* At the moment, only contains configuration for translation workflow. | ||
*/ | ||
configuration, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters