Four Years in a Row: Progress Recognized in the Gartner® Magic Quadrant™ for DXP.
Read the Report

banner

Sitefinity DeepL Machine Translation Connector

By Julian Steiner

Sitefinity DeepL Machine Translation Connector

Sitefinity Machine Translation Connector for DeepL API

This project provides a translation connector to work with the popular DeepL translator.

This project was heavily inspired by Sitefinity Microsoft Machine Translation Connector.

Tested Sitefinity versions:
Sitefinity CMS 15.2.8425 (works down to Sitefinity 14.1 but untested)

Documentation articles:
Custom translation connector


IMPORTANT:

This repository may not be compatible with the latest or your current Sitefinity CMS version. If you want to use this repository with a specific Sitefinity CMS version, either upgrade the code from this repository or your Sitefinity CMS project to ensure compatibility.


Overview

In addition to the built-in Translation module connectors, you can implement your own translation connector with custom logic to meet your requirements.

This project provides a translation connector that works with the popular DeepL V2 API service. It uses the DeepL REST API instead of the DeepL .NET Library due to the lack of .NET Framework 4.8 compatibility.


Prerequisites

  • Licensed Sitefinity CMS installation/PaaS
  • A setup that complies with the system requirements. For more information, see the System requirements for the respective Sitefinity CMS version
  • A DeepL API service account (Free Tier or Pro). After signing up, use the DeepL API key to configure the connector in Sitefinity CMS

Installation

Add the DeepL translation connector sample project to your solution by following these steps:

  1. Open your Sitefinity CMS solution in Visual Studio.
  2. Add the Jules.Sitefinity.Translations.DeeplMachineTranslatorConnector project to the same solution.
  3. Ensure the Telerik.Sitefinity.Translations NuGet package is installed in the Jules.Sitefinity.Translations.DeeplMachineTranslatorConnector project.
  4. In SitefinityWebApp, add a reference to the Jules.Sitefinity.Translations.DeeplMachineTranslatorConnector project.
  5. Build your solution.

Configure the Connector

Using one of the generated API keys, configure the connector as follows:

  1. In the Sitefinity CMS backend, navigate to Administration » Settings » Advanced.
  2. In the treeview on the left, expand Translations » Connectors » DeeplMachineTranslatorConnector » Parameters.
  3. Set the apiKey parameter to the API key provided by DeepL.
  4. Set the baseURL parameter:
    • For Pro/paying DeepL users: https://api.deepl.com/v2 (Omit the trailing slash!)
    • For Free Tier users: https://api-free.deepl.com/v2
      For more information, see the DeepL API documentation.
  5. The queryString parameter is for future compatibility and should be left empty.
  6. Navigate back to DeeplMachineTranslatorConnector.
  7. Select Enabled and deselect Strip HTML tags.
  8. Save your changes.