wp-cli/i18n-command
Provides WP-CLI commands for WordPress internationalization: generate POT files, build JSON translations, update PO files, and check translation status from the command line. Part of the WP-CLI toolkit for automating i18n workflows.
wp i18n make-pot turns "we should localize eventually" into an estimable, repeatable build step — string extraction stops being a research spike and becomes a CI job..pot is effectively table stakes for translation eligibility. This package makes that compliance nearly free, which tips distribution decisions toward the marketplace.make-json tells you whether a block-editor/React front end can be localized through the same pipeline as the PHP side. That materially changes the cost estimate for any block-based feature on the roadmap.Adopt when:
.pot/.po/.mo/.json generation without bespoke scripts.Look elsewhere when:
lang/ conventions, __()/@lang helpers, and php artisan lang:publish. A WordPress-specific extractor is a category mismatch here — use Laravel's translation tooling or a general gettext/PHP-parser extractor instead. This package is WordPress tooling, not a general PHP i18n library.Signals to weigh: 122 stars and unknown repository metadata are modest confidence indicators; verify release cadence and pin a version. Blast radius is low — it's a build-time dev dependency, not runtime code shipped to customers.
Executives: This is a free, MIT-licensed developer utility that removes the largest hidden cost of shipping a multilingual WordPress product — manually tracking which strings are translatable. It runs at build time, adds no runtime dependency to what we ship, and emits the standard .pot/.po/.mo formats that every translation vendor and wordpress.org already accept. Cost is near zero; the payoff is that localization becomes a repeatable CI step and a plannable line item rather than an open-ended project. Risk is contained: it lives in the build pipeline, we pin the release, and removing it later is a one-line change.
Engineering: Four commands — make-pot, make-json, make-mo, update-po — replace ad-hoc string-grep scripts and manual catalog maintenance. Wire make-pot/make-json into the build, decide whether artifacts are committed or published per release, and pin the version. Note the scope boundary clearly: this is WordPress tooling; any Laravel services in our portfolio should use Laravel's native translation system rather than this package.
How can I help you explore Laravel packages today?