Update i18n docs to use make-json command from wp-cli #15303
Updates the Internationalization documentation recommending to use the wp-cli make-json command to generate the necessary json file needed for translations.
This replaces the instructions to use the npm po2json module, it is simpler for a user to use only the wp-cli tool which is also used earlier in the documentation for creating the pot files.
There was a bug fixed in wp-cli wp-cli/i18n-command#146
How has this been tested?
Follow instructions in documentation to confirm JSON file is created and translations work.
Types of changes
requested review from
Apr 30, 2019
@mkaz I've followed your instructions. I have a plugin that create custom blocks which is divided into 11 .js files that contain translation strings. For the last step, when I use wp-cli to convert the po file to JSON, it creates 11 plugin-eo-[md5].json files. Is there an extra step to merge all these files into one?