How to add translator to CKEditor

268 Views Asked by At

I am using CKEditor in my rails 5 application. I would like to have a support of Internationalizationin my CKEditor means I will select language and when I am typing content should change to that language. Is it possible to add this feature to my CKEditor. Please tell me the possibilities on how to achieve this.

Thanks in Advance.

1

There are 1 best solutions below

1
On

As a proof of concept, you can try two approaches:

  1. If you need translation on the fly, you will need to use third party services with a JS made requests. You`ll have to learn the API of ,for example, Bing translation service. And add some JS to send the text to it and replace the CKEditor content with the result.
  2. You can also translate on server side using gems like this. So you can push text from ckeditor to your own backoffice, utilize the gem to send it to API. And render the form with the result.