Propose new functionalities for Decidim software
#DecidimRoadmap Designing Decidim together
Add support for machine translations of user-generated content
**Is your feature request related to a problem? Please describe.**
When a user submits content from the public area, they don't have a choice to translate the content. And, if they did, maybe they didn't know all the languages of the organization, leaving other users unable to read that content. This happened in Metadecidim, where we started using Catalan and Spanish, and later added English. This made new users potentially unable to read some of the content of the website.
**Describe the solution you'd like**
We propose adding a way to automatically translate user-submitted content. We'll work on a Decidim module to handle this feature, leaving integrations with real services up to other developers. This is the same idea we have with verifications: Decidim has the whole framework, but the real integration is made by each installation. Possible future integrations might include Google Translate or Bing, for example.
This should be both an installation configuration and an organization setting. The installation configuration is needed so that the app knows there's a way to translate content, and the organization setting will be used to enable this per organization.
Note that this proposal will affect submissions from any side of the app: public and admin. We'll avoid translating for a locale that has been submitted by a user, and users will be able to edit any machine-translated content if Decidim allows it (forms in the admin section, for example).
**Describe alternatives you've considered**
None.
**Additional context**
None.
**Does this issue could impact on users private data?**
No.
The development of this proposal has finished
- Reviewed by @product and included in Decidim Roadmap
- Developed by Codegram
- Available in release 0.23 via #6127
List of Endorsements
Report inappropriate content
Is this content inappropriate?
8 comments
Conversation with Virgile Deville
Hello @mrcasals,
Great idea for a module. We did a simple integration back then : Automatic translation for user generated content
We were using Deepl which translations are quite good quality but limited to dozens languages.
Do you plan to save the automated translation in the DB ?
Good idea to do it in a module !
Hi @virgile_deville ! Yes, since it's a project we expect it will have a lot of traffic we planned on saving the translations to the DB. Ideally, we'll detect those translations that are automatic, and notify the user that the content is automatically translated. We still have to refine the architecture for that, though.
I see you posted the code with the changes you made, but I can't see it live in the application linked in the comments! Did you remove that feature? I can't find a way to translate this Proposal into French: https://monopinion.belgium.be/processes/stopfakenews/f/81/proposals/107
Hey,
Can't wait to see your implementation !
You can test ours here : https://wb1170.monopinion.belgium.be/processes/budget/f/121/
You need to set the language of Decidim in a different one from the proposal so that the source language is different from the destination language.
@Armand-OSP can link a more recent version of the code I think.
Nice, thanks!
BTW, once the request is accepted by Product we'll open a technical discussion issue in GitHub with our proposal, so that community can keep participating! :)
BTW @virgile_deville I checked your implementation and we'll go with a different approach. Instead of requesting the translation every time, we'll automatically translate everything in the background, and try to show the translated content. We'll add a warning for the user saying that the content was automatically translated, and let them see the original content.
We've started working on this at https://github.com/decidim/decidim/pull/6127
Hi @mrcasals! This is a very welcome proposal which, as Virgile says, was proposed some time ago and we have never managed to integrate it. We look forward to continue discussing the details in the github issue.
btw, could you indicate which organization funds these features to give it the proper attribution? Thanks!
We've started working on this at https://github.com/decidim/decidim/pull/6127
Add your comment
Sign in with your account or sign up to add your comment.
Loading comments ...