Skip to content

Commit 5e73d41

Browse files
authored
Merge pull request #440 from wp-cli/regenerate-readme
2 parents 5d79390 + 134b73f commit 5e73d41

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ if the source directory is detected as either a plugin or theme.
150150
Extract JavaScript strings from PO files and add them to individual JSON files.
151151

152152
~~~
153-
wp i18n make-json <source> [<destination>] [--domain=<domain>] [--purge] [--update-mo-files] [--pretty-print] [--use-map=<paths_or_maps>]
153+
wp i18n make-json <source> [<destination>] [--domain=<domain>] [--extensions=<extensions>] [--purge] [--update-mo-files] [--pretty-print] [--use-map=<paths_or_maps>]
154154
~~~
155155

156156
For JavaScript internationalization purposes, WordPress requires translations to be split up into
@@ -170,6 +170,9 @@ about WordPress JavaScript internationalization.
170170
[--domain=<domain>]
171171
Text domain to use for the JSON file name. Overrides the default one extracted from the PO file.
172172

173+
[--extensions=<extensions>]
174+
Additional custom JS extensions, comma separated list. By default searches for .min.js and .js extensions.
175+
173176
[--purge]
174177
Whether to purge the strings that were extracted from the original source file. Defaults to true, use `--no-purge` to skip the removal.
175178

0 commit comments

Comments
 (0)