Translate your blocks with Nelio Translate for WordPress

Published in Inside Nelio.

In this blog we write content quite frequently. Our readers are used to this and, even though we are a small team, we can achieve our editorial goals thanks to Nelio Content, our editorial plugin for WordPress.

However, there is a task in our content generation process that is still dead boring and that Nelio Content does not solve: translating the contents from Spanish to English.

As we live in a global environment, we want our content to be available in both languages to cover as many readers as possible. We usually write our contents in Spanish and then translate them into English. And this translation work is done manually. Or it was, because we’ve finally fixed the inefficiency of this process.

Nowadays, translating texts by hand make us feel a bit like ancient humans. That is why we have fixed our process and now we are more efficient.

With the release of the block editor for WordPress we have created Nelio Translate, a plugin that translates the content of the blocks automatically with the help of Google Translate. And today we are going to talk about it.

Translating the content of WordPress blocks

Surely you think that translating content is quite easy: just copy the content of the editor, paste it into Google Translate (or your preferred translator), translate it, and then bring the translated content back to the WordPress editor. And that’s what we used to do with the classic editor! Well, that and a manual review of the translate text, as automatic translators are not infallible… 😉

Anyway, this solution became inefficient when the WordPress blocks editor appeared, because the process of copying and pasting in Gutenberg must be done block by block. That is, we can’t translate the content all at once. If you don’t believe me, give it a try and you will see that the pasted translation is broken, some blocks are missing, etc.

This situation opened our eyes and made us try to find a solution to this problem. And that’s how Nelio Translate was born.

Nelio Translate is our plugin to translate the contents of the Gutenberg blocks in WordPress.

First, you’ll need to install our plugin in your site. Get it here and install it on your WordPress as you would do with any other plugin.

When you want to translate a block in Gutenberg, you just have to select it and access the translation section in the right panel (where the block options are). There, select the source language (optional) and the target language and click on the translation button. This will translate the contents of the block.

Nelio Translate includes an additional option in your blocks that allows their translation, creating a new block with the translated content or replacing the original block with the translation.

In Nelio Translate’s settings screen (placed in the Settings menu of your WordPress) you can decide whether to duplicate the original block with the translated content (appended next to the original block) or replace the original block with the translation.

Another thing you should know is Nelio Content needs an API Key for Google Translate. Getting your API Key is not complicated if you follow the steps I explained in a previous post. And if you think we should make Nelio Translate compatible with other translation systems besides Google Translate, let me know by commenting down below.

Nelio Translate is compatible with the set of blocks that are included by default in the Gutenberg block editor in WordPress. If you use additional blocks, you can extend the plugin with your own code to make those blocks translatable, or contact us to discuss their inclusion in the translation process (something that shouldn’t be very difficult if the blocks were properly implemented by their developers).

On the other hand, if you want to translate the entire document at once instead of going block by block, you can also do it with Nelio Translate. In the block editor you will see the translation icon to the right of the publish button. Open that section and you’ll see the button that translates the whole document. Click on it and all the blocks that appear in your editor will be translated at the same time. This is the process we now follow to translate our posts into English.

Nelio Translate allows to translate all the blocks of the editor at once. This way, if you want to translate all the post you don’t have to do it block by block manually.

With Nelio Translate, our efficiency in generating content in more than one language has increased dramatically. Knowing that with just one click you have all the content translated and that the only thing you have to do is fix the small errors in the translation is a luxury for WordPress writers using Gutenberg.

I encourage you to try Nelio Translate, because if you are in a situation similar to ours where you have to translate content regularly, the time that you are going to save thanks to not having to go copying and pasting contents from here to there justifies its acquisition.

Featured image by Jason Leung on Unsplash.

PoorNot badGoodGreatExcellent (No Ratings Yet)
Loading...

2 thoughts on “Translate your blocks with Nelio Translate for WordPress

  1. OH! That’s Awesome, Antonio! This was a new thing, I have heard about WordPress (Gutenberg), Thank you for sharing this informative article about Nelio Translate. Keep posting such a great article.

Leave a Reply

Your email address will not be published. Required fields are marked: •

I have read and agree to the Nelio Software Privacy Policy

Your personal data will be located on SiteGround and will be treated by Nelio Software with the sole purpose of publishing this comment here. The legitimation is carried out through your express consent. Contact us to access, rectify, limit, or delete your data.