Skip to content

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

License

Notifications You must be signed in to change notification settings

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

image

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].

Usage

image

About

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

Resources

License

Stars

Watchers

Forks

Languages