File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -150,7 +150,7 @@ if the source directory is detected as either a plugin or theme.
150150Extract 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
156156For 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
You can’t perform that action at this time.
0 commit comments