Skip to content

mattpallatt/MP.LanguageManager.DeepLTranslate

Repository files navigation

MP.LanguageManager.DeepLTranslate

Description

This package extends the Optimizely CMS Language Manager to allow translations through the DeepL API.

Configuration

To use the DeepL Translator to perform automated translations make sure it's selected as Translator Provider in the settings of the Language Manager.

image

You will need a Authentication Key for the DeepL API - you can create one at https://www.deepl.com/pro-api

AppSettings

Add the following to startup.cs.

services.Configure(_configuration.GetSection("DeepL"));

Thent the following options are valid in appsettings.json

  "DeepL": {
    "Formality": "low",
    "English": "en-GB",
    "AutoGlossary": "0",
    "GlossaryList": "[en>de]",
    "ignoreExistingPages":  "1"
  },

A <DeepL><Formality> Configuration element in appSettings can be used to control the formality of translations, with options Less, More, PreferLess, PreferMore, Default - a pro license is required for any other setting than Default.

A <DeepL><English> Configuration element in appSettings controls whether to translate to en-GB or en-US where "En" is your target language in Optimizely.

A <DeepL><AutoGlossary> Confguration element in appSettings controls whether ANY available configured glossary in the DeepL account will be used. Options are 0 (off) and 1 (on).

A <DeepL><GlossaryList> Confguration element in appSettings controls which specific configured glossaries from DeepL account will be used where AutoGlossary is set to 0. Format is comma delimited [2 letter source lang > 2 letter target lang] i.e. [en>de].

A <DeepL><ignoreExistingPages> Configuration element in appSettings controls whether to ignore existing pages in the target language. Options are 0 (off) and 1 (on). This is useful if you want to stop the re-translation of content in a target language. Default is 1 (on).

Usage

image

About

An extension for EPiServer.Labs.LanguageManager to allow automated translations in Optimizely CMS using DeepL translations.

Resources

License

Stars

Watchers

Forks

Contributors

Languages