DEV Community

NEXU WP
NEXU WP

Posted on

How Loco Translate Maps Block Theme Strings in WordPress FSE

The Three Origins of Text in Block Themes

Block themes split visible text into three buckets: editor-saved content (stored in the database as block markup), theme-supplied files (patterns, template parts, and theme.json labels), and plugin domains (WooCommerce, extensions, and script translations). Loco Translate focuses on the latter two, where strings flow through gettext, while explicitly excluding database-driven content that belongs to multilingual plugins or manual editor workflows.

The challenge arises when these layers intersect. A Query Loop block might blend editor-content (post excerpts) with theme-provided gettext (pagination labels or

Block Themes and FSE:Where Strings Hide—and How to Find Them in Loco

Top comments (0)