Using
UsingTranslating Gutenberg

Translating Gutenberg

Support for Gutenberg is built-in, to translate all the blocks in your Gutenberg content.

Gato AI Translations for Polylang extracts the strings from the blocks in the Gutenberg content, and translates only those strings, guaranteeing that the content is not broken in any way.

Supported blocks

The following WordPress core blocks are supported out of the box:

  • core/audio
  • core/block (i.e. synced patterns)
  • core/button
  • core/cover
  • core/embed
  • core/heading
  • core/html
  • core/image
  • core/list-item
  • core/media-text
  • core/paragraph
  • core/preformatted
  • core/pullquote
  • core/quote
  • core/table
  • core/verse
  • core/video

Supporting additional blocks

You can also translate custom blocks from your application, or block from 3rd-party plugins.

Check the Translating additional Gutenberg blocks guide for more information.

Translating synced patterns

The default Appearance > Patterns page from WordPress does not support translating synced patterns (also known as reusable blocks), because:

  • Polylang does not add the widget to select the language (only Polylang PRO does)
  • It does not offer Bulk Actions, hence it is not possible to translate existing patterns

For this reason, Gato AI Translations for Polylang offers the standard Patterns CPT page, under menu item Patterns (Gutenberg), enabling these features.

The custom Patterns page
The custom Patterns page

You can translate patterns from this screen (similar to any other CPT):

  • Automatically translate new patterns when published (from the Add Pattern screen)
  • Manually translate existing patterns using Bulk Actions
Translating patterns via Bulk Actions
Translating patterns via Bulk Actions

The screen will also show the translated patterns:

The custom Patterns page
The custom Patterns page

Disabling the custom Patterns page

You can disable showing the Patterns (Gutenberg) page in the menu.

To do so, go to the Settings under Plugin Integration Configuration > Gutenberg, and uncheck the Enable the Custom Patterns page checkbox.

Enable the custom Patterns page in the Settings
Enable the custom Patterns page in the Settings