From 134b73f72448566cccb847dee3bc88e3d062f4be Mon Sep 17 00:00:00 2001 From: Alain Schlesser Date: Fri, 25 Apr 2025 21:12:52 +0000 Subject: [PATCH] Regenerate README file - 2025-04-25 --- README.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index dd36922b..d1b5b3f6 100644 --- a/README.md +++ b/README.md @@ -150,7 +150,7 @@ if the source directory is detected as either a plugin or theme. Extract JavaScript strings from PO files and add them to individual JSON files. ~~~ -wp i18n make-json [] [--domain=] [--purge] [--update-mo-files] [--pretty-print] [--use-map=] +wp i18n make-json [] [--domain=] [--extensions=] [--purge] [--update-mo-files] [--pretty-print] [--use-map=] ~~~ For JavaScript internationalization purposes, WordPress requires translations to be split up into @@ -170,6 +170,9 @@ about WordPress JavaScript internationalization. [--domain=] Text domain to use for the JSON file name. Overrides the default one extracted from the PO file. + [--extensions=] + Additional custom JS extensions, comma separated list. By default searches for .min.js and .js extensions. + [--purge] Whether to purge the strings that were extracted from the original source file. Defaults to true, use `--no-purge` to skip the removal.