Skip to content

feat: Re-enable machine translations#998

Draft
AyakorK wants to merge 3 commits into
developfrom
feat/enable_deepl_machine_translations
Draft

feat: Re-enable machine translations#998
AyakorK wants to merge 3 commits into
developfrom
feat/enable_deepl_machine_translations

Conversation

@AyakorK

@AyakorK AyakorK commented Jun 9, 2026

Copy link
Copy Markdown
Contributor

🎩 Description

Configures DeepL as the machine translation service using Decidim's built-in machine translation framework.

The DeepL API key is read from the DEEPL_AUTH_KEY environment variable (free accounts use a :fx suffix). Machine translations can be toggled per-organisation via the admin settings, and globally via DECIDIM_MACHINE_TRANSLATIONS_ENABLED.

✅ Testing

Setup

  1. Add your DeepL API key to your .env: DEEPL_AUTH_KEY=your_key_here
  2. Add DECIDIM_MACHINE_TRANSLATIONS_ENABLED=true to your.env.
  3. Enable machine translations on the organisation: Admin → Settings → Configuration → Check Enable machine translations
  4. Make sure Sidekiq is running and consuming the translations queue

Test

  1. Create or edit translatable content (proposal, comment, participatory process…) in one language
  2. Switch the interface language
  3. The translated content should appear automatically

📌 Related Issues

Tasks

  • Add specs
  • Add DeepL
  • Configure env vars for machine translations
  • Add locales

@AyakorK AyakorK requested review from Stef-Rousset and moustachu June 9, 2026 14:47
@AyakorK AyakorK marked this pull request as ready for review June 9, 2026 14:47
@AyakorK AyakorK requested review from Stef-Rousset and removed request for Stef-Rousset June 9, 2026 14:47
@AyakorK AyakorK changed the title Feat/enable deepl machine translations feat: Re-enable machine translations Jun 12, 2026
@AyakorK AyakorK marked this pull request as draft June 12, 2026 08:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant