Ollie Theme Academy

Creating Block Patterns

Using patterns for internationalization – B

Default themes like Twenty Twenty-Two use “hidden patterns” with inserter: false to enable internationalization in templates. These patterns register but don’t appear in the interface.

Templates reference hidden patterns using the wp:pattern block with the pattern’s slug. This enables translated content in template files while maintaining the pattern-based architecture.

The pattern contains internationalized text using standard WordPress translation functions, while the template simply references the pattern by slug.

This technique provides complete internationalization support in block themes using standard WordPress practices, though it requires manual template editing since the pattern block isn’t available through the interface.

Back to: Ollie Theme Academy > Creating Block Patterns