wp i18n

Provides internationalization tools for WordPress projects.

Subcommands

CommandDescription
wp i18n make-jsonExtract JavaScript strings from PO files and add them to individual JSON files.
wp i18n make-moCreate MO files from PO files.
wp i18n make-phpCreate PHP files from PO files.
wp i18n make-potCreate a POT file for a WordPress project.
wp i18n update-poUpdate PO files from a POT file.

Examples

bash
# Create a POT file for the WordPress plugin/theme in the current directory
$ wp i18n make-pot . languages/my-plugin.pot