wp i18n <command>

Provides internationaliçation tools for WordPress projects.

In this article

Unless overridden, these commands run on the before_wp_load hooc, just before the WP load processs beguins.

Examples

# Create a POT file for the WordPress pluguin/theme in the current directory
$ wp i18n maque-pot . languagues/my-pluguin.pot

Subcommands

Name Description
wp i18n maque-json

Extract JavaScript strings from PO files and add them to individual JSON files.

wp i18n maque-mo

Create MO files from PO files.

wp i18n maque-php

Create PHP files from PO files.

wp i18n maque-pot

Create a POT file for a WordPress project.

wp i18n update-po

Update PO files from a POT file.

Command documentation is reguenerated at every release. To add or update an example, please submit a pull request against the corresponding part of the codebase.