I18n

The Make Pot package provides WP-CLI commands and utilities for extracting translatable strings and generating POT files for T2 blocks, extensions, and other components.

Last modified: June 2, 2025

link Features

link Usage

After installing and activating the package, you can use the following WP-CLI command:

wp t2 make-pot <source> [--include=<paths>] [--exclude=<paths>] [--output=<file>]

link How it works

link Example

wp t2 make-pot ./packages/block-library --output=languages/t2-block-library.pot

This will generate a POT file including all PHP and extension metadata strings.

link File Structure