wp i18n make-json <source> <destination>
Extract JavaScript strings from PO files and add them to individual JSON files
Arguments
Name | Description |
---|
source | Path to an existing PO file or a directory containing multiple PO files |
destination | Path to the destination directory for the resulting JSON files. Defaults to the source directory |
Options
Name | Description |
---|
--purge | Whether to purge the strings that were extracted from the original source file. Defaults to true, use --no-purge to skip the removal |
--pretty-print | Pretty-print resulting JSON files |