Traductor de Discourse

:discourse2: Summary Discourse Translator translates posts on Discourse using Microsoft, Google, or Yandex translation APIs.
:hammer_and_wrench: Repository Link https://github.com/discourse/discourse-translator
:open_book: Install Guide How to install plugins in Discourse

Features

  • Each post is only translated once per locale which saves you :moneybag:
    • Note that language detection is also run once for every post. Be careful when enabling this on old and large forums.
  • Access Token is cached server side for faster translations.
  • Translations are rate limited to 3 per minute by default (admins can configure this value)

Translation Services Supported

Configuration Steps

Microsoft
  1. Follow the steps in Microsoft Translator API on Azure to obtain a subscription key. You may pick from any of the available subscription offers.

  2. In your Discourse, under Admin > Settings > Plugins, enter the subscription key that you’ve obtained from the steps above.

  1. In your Discourse, under Admin > Settings > Basic Setup, enable allow user locale.
Google Translator
  1. Go to https://console.developers.google.com

  2. Click on My Project

  1. Click on the :heavy_plus_sign: to create a new project

  1. Enter your project name and click create

  2. Select Enable API and search for Google Cloud Translator API. Look for the enable button and click it to enable the API. Note that there is no free tier for the Google Translator API so it may prompt you to enable billing.

  3. Once you’re done, click on credentials in the left menu

  1. Click create credentials and select API key. Copy the API Key and paste it into the translator google api key site setting in Discourse.

  2. In Discourse, under Admin > Settings > Basic Setup, enable allow user locale.

Settings

Name Description
translator enabled Allow inline translation of posts.
translator The provider of the translation service.
translator azure subscription key Azure Subscription Key
translator azure region Azure Region
translator azure custom subdomain Required if using a Virtual Network or Firewall for Azure Cognitive Services. Note: Only enter the custom subdomain not the full custom endpoint.
translator aws region AWS Region
translator aws key id AWS Key ID
translator aws secret access AWS secret access key
translator aws iam role AWS IAM Role
translator google api key Google API Key
translator yandex api key Yandex API Key
translator libretranslate endpoint LibreTranslate Endpoint
translator libretranslate api key LibreTranslate API Key
max translations per minute The number of translations per minute a regular user can perform.
restrict translation by group Only allowlisted groups can translate
restrict translation by poster group Only allow translation of posts made by allowlisted users

Known Issues

  • Does not translate text within polls generated by discourse-poll plugin.
  • Images are enlarged upon translating.

:discourse2: Hosted by us? This plugin is available on our Enterprise plan.

102 Me gusta
Advice for bilingual communities
Inline translation of posts into another language
Language Translation
Can we have have one post with two different language
Plugin for signatures?
Translate plugin installed, but no translate button
LibreTranslate Plugin -- Free and Open Source Translation API
Discourse Translator plugin is not showing for non-logged in users
What exactly are the effects of "allow user locale"
DeepL integration for Translator plugin
How do I get the forum here in German
Moving up the translator icon
How do you use Discourse AI? Tell us and make it even better!
Is Google translate really so expensive?
Anyone migrated to version 3 of Microsoft Translator API yet?
Anyone Using Discourse Translator Plugin on small forum, Cost/month?
How to handle users that don't really read the answers they get?
Image zoom is not working
Localized email templates
Mute ALL other languages
Translating text in polls
FYI, Full translation of Discourse including posts is possible
How to install a plugin on Discourse-hosted-Discourse?
Make a multi-language forum
Yandex Translation Service
Translates to user's local language
DeepL integration for Translator plugin
Translate email notifications and digests into user preferred locale language
Translate email notifications and digests into user preferred locale language
Getting user profile custom field via JS
DeepL support for Discourse Translator
Translation from Lugandan yields uncaught 500 error (in a different Discourse)
What exactly are the effects of "allow user locale"
Virtual Keyboard hides critical editor buttons for 3.3.0-beta
Virtual Keyboard hides critical editor buttons for 3.3.0-beta
Translation support about the topic content
Translates to user's local language
Is Automatic Translation for Most Content Now Official?
Everything is translated, help!
No errors, instance not coming back up after rebuild
Javascript pop up block help
Implementing In-House Translation Features on Discourse
Structuring a multilingual community
Help which plugin is in the screenshot
Changing default language will not change the site TITLE or DESCRIPTION!
Simple idea for translator-assisted bilingual forum
Yandex Translation Service
Google Translate shows "blank" page
MKJ's Opinionated Discourse Deployment Configuration
Include translated posts in search?
Übersetzung wie hier auf Meta