Configuration¶
Please include the Static Typoscript Template, either by going to “Template -> Includes” and selecting “datamints Locallang Builder” OR by including them in your site package:
setup
<INCLUDE_TYPOSCRIPT: source="FILE:EXT:datamints_locallang_builder/Configuration/TypoScript/setup.typoscript">
constants
<INCLUDE_TYPOSCRIPT: source="FILE:EXT:datamints_locallang_builder/Configuration/TypoScript/constants.typoscript">
The extension is usable without any custom configuration. If you want to use an auto-translation-provider, you have to enter your own API-Key and flag the provider active.
Example Azure Cloud¶
To use azure as translation-provider, enter this:
module.tx_datamintslocallangbuilder_tools_datamintslocallangbuildertranslate {
settings {
providers {
azure {
active = 1
key = YOUR_KEY
}
}
}
}
Note
To get your API-Key follow this Link: https://docs.microsoft.com/en-us/azure/cognitive-services/Translator/translator-how-to-signup . It’s a bit complicated at first, but it’s worth it. Insert this API-Key in the “YOUR_KEY” Field in the typoscript configuration example above.
Example DeepL¶
To use DeepL as translation-provider, enter this:
module.tx_datamintslocallangbuilder_tools_datamintslocallangbuildertranslate {
settings {
providers {
deepl {
active = 1
key = YOUR_KEY
}
}
}
}
Note
DeepL is probably the easiest provider to set up. Simply register and call https://www.deepl.com/pro-account/plan . You need the “Authentificationkey”. Insert this API-Key in the “YOUR_KEY” Field in the typoscript configuration example above.
Example Google¶
To use Google as translation-provider, enter this:
module.tx_datamintslocallangbuilder_tools_datamintslocallangbuildertranslate {
settings {
providers {
google {
active = 1
key = YOUR_KEY
}
}
}
}
Note
Get your API by calling: https://console.cloud.google.com/apis/api/translate.googleapis.com/credentials . Login to the Google Console and add a API-Key. Insert this API-Key in the “YOUR_KEY” Field in the typoscript configuration example above.