Language Weaver extension configuration properties
Implementing the Tridion extension for Language Weaver requires a JSON configuration file, which defines your specific integration of Tridion with Language Weaver.
In the JSON configuration file, use the following properties to configure the Language Weaver extension:
- hostUrl
- The URL of the Language Weaver host.
- clientId
- API username to be used to authenticate over OAuth.
- clientSecret
- API password to be used to authenticate over OAuth.
useTranslationManagerConfiguration-
A Boolean value (true/false) that indicates whether to enable the reading of Translation Manager configuration.
- Optional
- Default is
false - When set to
true, Translation Manager configuration will be used.
excludedSchemas- A string array of TCM URIs of specific Schemas that you want to be explicitly exclude from translation.
includedSchemas- A string array of TCM URIs of specific Schemas that you want to be explicitly include for translation.
translateMetadata-
A Boolean value (true/false) that indicates whether to translate Component metadata in addition to Component content.
- Optional
- Default is
false
translationSettings- An array of settings that can be used to apply additional settings to one or more specific Publications. Properties for each Publication include the following:
The following sample code illustrates the configuration file of a Language Weaver extension:
{
"configuration": {
"MachineTranslationEventHandler": {
"configuration": {
"hostUrl": "https://translate-api.sdlbeglobal.com",
"clientId": "<clientId>",
"clientSecret": "<clientSecret>",
"useTranslationManagerConfiguration": true,
"excludedSchemas": [ "tcm:3-111-8" ],
"includedSchemas": [ "tcm:3-111-8" ],
"translateMetadata": true,
"translationSettings": [
{
"publicationId": "10",
"sourceLanguageId": "eng",
"targetLanguageId": "fra",
"translateComponentNames": true,
"model": "generic",
"dictionaries": [ "0d967785-2857-46d7-9e10-4f6d1346db06" ],
"mode": "speed"
}
]
}
}
}
}