Learn how to translate pages that you build with the WordPress Block Editor, and the templates, template parts and patterns that you edit in the Site Editor.
Translating Pages and Posts Built With Blocks
You translate a page built with blocks like any other page. WPML finds the texts in the blocks and shows them in the translation editor.
- Go to WPMLTranslationsDashboard.
- Select the pages or posts that you want to translate.
- Choose a translation method and click Translate.
If Translate Everything Automatically is on, WPML translates your pages and posts for you.
Some blocks need a short note:
- Details: WPML translates the summary and the hidden content.
- Query Loop: on a translated page, the block lists the posts in the language of that page. WPML also translates the texts that you add to the block, for example the pagination labels and the "no results" text.
WPML builds the translated page from the original page and from your translations. To give a translated page its own design, see How to Create Different Designs per Language.
Translating Templates, Template Parts and Patterns
A block theme builds your site from templates, template parts (for example the header and the footer) and patterns. You edit them in the Site Editor.
To translate them:
- Go to WPMLTranslationsDashboard.
- Open the Site Templates, Site Template Parts or Site Patterns section and select your items.
- Choose a translation method and click Translate.
The Translation Dashboard lists a template or a template part only after you edit and save it in the Site Editor.
You can also start from the Site Editor. Open the template, template part or pattern, and use the Language panel in the sidebar.
Until you translate a template part, the pages in other languages show the template part of the default language.
A synced pattern can have overrides: texts that you change on one page only. You translate the pattern once. A text that a page overrides appears in the translation of that page.
To translate a menu that you built with the Navigation block, see How to Translate Menus With WPML.
Translating Blocks From Other Plugins
A block plugin tells WPML which texts of its blocks to translate. It does this with a language configuration file.
If a text of a block does not appear in the translation editor, contact the author of the block plugin. Developers can read Make Custom Gutenberg Blocks Translatable.