Skip to content

Enable Machine Translation for Deepl

As a system administrator, I can define my deepl credentials, and the languages I want to support. Once setted, the decidim instance translate it self.

Ref: github.com/DecidimAustria/decidim-module-amazon_translate/blob/main/lib/decidim/amazon_translate.rb

Tasks

  • Save current organization in Current.context
  • Save current space in Current.context
  • Save current component in Current.context
  • Add page topics to current space context with a serializer compatible with a space
  • Compute context with :
    • Plateform: title, address, description
    • Space: kind, title, short-description, announcement
    • Current component: kind, title, short description, annoucement
    • Author: public name, nickname, bio
  • Compute translation with
    • Deepl HTML Api for html node.
    • Deepl Text Api for text node.
Edited by Hadrien Froger