wp i18n make-json <source> <destination>

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

Arguments

NameDescription
sourcePath to an existing PO file or a directory containing multiple PO files
destinationPath to the destination directory for the resulting JSON files. Defaults to the source directory

Options

NameDescription
--purgeWhether to purge the strings that were extracted from the original source file. Defaults to true, use --no-purge to skip the removal
--pretty-printPretty-print resulting JSON files